{"openapi":"3.0.0","paths":{"/auth/logout":{"post":{"operationId":"AuthController_logout_1","parameters":[],"responses":{"201":{"description":""},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Logout and clear session","tags":["auth"]}},"/auth/info":{"post":{"operationId":"AuthController_updateInfo_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInfoDto"}}}},"responses":{"201":{"description":""},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update session info","tags":["auth"]}},"/auth/user":{"post":{"operationId":"AuthController_loginAs_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginAsDto"}}}},"responses":{"201":{"description":""},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Login on behalf of another user (Admin)","tags":["auth"]}},"/auth/token":{"post":{"operationId":"AuthController_token_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenAuthDto"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"token":{"type":"string"},"refresh_token":{"type":"string"},"token_expiry":{"type":"string","format":"date-time"}}},"message":{"type":"string","example":"Created"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"summary":"Get new token with refresh token","tags":["auth"]}},"/auth/password/forgot":{"post":{"operationId":"AuthController_forgotPassword_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordDto"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"session_id":{"type":"string"}}},"message":{"type":"string","example":"OTP sent"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"summary":"Forgot password","tags":["auth"]}},"/auth/otp/send":{"post":{"operationId":"AuthController_sendOtp_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOtpDto"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"session_id":{"type":"string"}}},"message":{"type":"string","example":"OTP sent"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"summary":"Resend OTP","tags":["auth"]}},"/auth/otp/verify":{"post":{"operationId":"AuthController_verifyOtp_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpDto"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"session_id":{"type":"string"}}},"message":{"type":"string","example":"OTP verified"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"summary":"Verify OTP","tags":["auth"]}},"/auth/password/reset":{"post":{"operationId":"AuthController_resetPassword_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordDto"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Password changed"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"summary":"Reset password","tags":["auth"]}},"/auth/local":{"post":{"operationId":"LocalAuthController_localLogin_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthDto"}}}},"responses":{"200":{"description":"Login success","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"},"token":{"type":"string"},"token_expiry":{"type":"string","format":"date-time"},"refresh_token":{"type":"string"}}},"message":{"type":"string","example":"Created"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":401},"error":{"type":"string","example":"Unauthorized"},"message":{"type":"string","example":"Invalid credentials"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"summary":"Local authentication","tags":["auth"]}},"/user":{"post":{"operationId":"UserController_create_1","parameters":[{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Created"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Create a new user","tags":["user"]},"get":{"operationId":"UserController_findAll_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"users":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get all users","tags":["user"]}},"/user/me":{"put":{"operationId":"UserController_updateMe_1","parameters":[{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserDto"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Updated"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update logged in user details","tags":["user"]},"get":{"operationId":"UserController_findMe_1","parameters":[{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get logged in user details","tags":["user"]}},"/user/password":{"put":{"operationId":"UserController_changePassword_1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordDto"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Password changed"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Change password for logged in user","tags":["user"]}},"/user/{id}":{"put":{"operationId":"UserController_update_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserDto"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Updated"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update a user using id","tags":["user"]},"get":{"operationId":"UserController_findById_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get a user using id","tags":["user"]},"delete":{"operationId":"UserController_delete_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"mode","required":false,"in":"query","description":"Delete mode","examples":{"soft":{"summary":"Soft delete mode","value":"soft"},"hard":{"summary":"Hard delete mode","value":"hard"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Deleted"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Delete a user using id","tags":["user"]}},"/user/find":{"get":{"operationId":"UserController_findOne_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find a user","tags":["user"]}},"/elder_profile":{"post":{"operationId":"ElderProfileController_create_1","parameters":[{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateElderProfileDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"elder_profile":{"$ref":"#/components/schemas/ElderProfile"}}},"message":{"type":"string","example":"Created"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Create new elder_profile","tags":["elder_profile"]},"get":{"operationId":"ElderProfileController_findAll_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"elder_profiles":{"type":"array","items":{"$ref":"#/components/schemas/ElderProfile"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get all elder_profiles","tags":["elder_profile"]}},"/elder_profile/{uid}":{"put":{"operationId":"ElderProfileController_update_1","parameters":[{"name":"uid","required":true,"in":"path","schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateElderProfileDto"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"elder_profile":{"$ref":"#/components/schemas/ElderProfile"}}},"message":{"type":"string","example":"Updated"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update elder_profile using uid","tags":["elder_profile"]},"get":{"operationId":"ElderProfileController_findByUid_1","parameters":[{"name":"uid","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"elder_profile":{"$ref":"#/components/schemas/ElderProfile"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find elder_profile using uid","tags":["elder_profile"]},"delete":{"operationId":"ElderProfileController_delete_1","parameters":[{"name":"uid","required":true,"in":"path","schema":{"type":"string"}},{"name":"mode","required":false,"in":"query","description":"Delete mode","examples":{"soft":{"summary":"Soft delete mode","value":"soft"},"hard":{"summary":"Hard delete mode","value":"hard"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"elder_profile":{"$ref":"#/components/schemas/ElderProfile"}}},"message":{"type":"string","example":"Deleted"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Delete elder_profile using uid","tags":["elder_profile"]}},"/elder_profile/my":{"get":{"operationId":"ElderProfileController_myElders_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"elder_profiles":{"type":"array","items":{"$ref":"#/components/schemas/ElderProfile"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get elders accessible to the current user","tags":["elder_profile"]}},"/elder_profile/count":{"get":{"operationId":"ElderProfileController_countAll_1","parameters":[{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"count":{"type":"number","description":"Total no of records available","example":10}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get count of elder_profiles","tags":["elder_profile"]}},"/elder_profile/find":{"get":{"operationId":"ElderProfileController_findOne_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"elder_profile":{"$ref":"#/components/schemas/ElderProfile"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find one elder_profile","tags":["elder_profile"]}},"/schedule_kind":{"post":{"operationId":"ScheduleKindController_create_1","parameters":[{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScheduleKindDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule_kind":{"$ref":"#/components/schemas/ScheduleKind"}}},"message":{"type":"string","example":"Created"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Create custom schedule_kind","tags":["schedule_kind"]},"get":{"operationId":"ScheduleKindController_findAll_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"schedule_kinds":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleKind"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get all schedule_kinds","tags":["schedule_kind"]}},"/schedule_kind/{id}":{"put":{"operationId":"ScheduleKindController_update_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateScheduleKindDto"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule_kind":{"$ref":"#/components/schemas/ScheduleKind"}}},"message":{"type":"string","example":"Updated"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update schedule_kind using id","tags":["schedule_kind"]},"get":{"operationId":"ScheduleKindController_findById_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule_kind":{"$ref":"#/components/schemas/ScheduleKind"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find schedule_kind using id","tags":["schedule_kind"]},"delete":{"operationId":"ScheduleKindController_delete_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"mode","required":false,"in":"query","description":"Delete mode","examples":{"soft":{"summary":"Soft delete mode","value":"soft"},"hard":{"summary":"Hard delete mode","value":"hard"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule_kind":{"$ref":"#/components/schemas/ScheduleKind"}}},"message":{"type":"string","example":"Deleted"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Delete custom schedule_kind using id","tags":["schedule_kind"]}},"/schedule_kind/my":{"get":{"operationId":"ScheduleKindController_myScheduleKinds_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"schedule_kinds":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleKind"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get schedule_kinds for current user","tags":["schedule_kind"]}},"/schedule_kind/count":{"get":{"operationId":"ScheduleKindController_countAll_1","parameters":[{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"count":{"type":"number","description":"Total no of records available","example":10}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get count of schedule_kinds","tags":["schedule_kind"]}},"/schedule_kind/find":{"get":{"operationId":"ScheduleKindController_findOne_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule_kind":{"$ref":"#/components/schemas/ScheduleKind"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find one schedule_kind","tags":["schedule_kind"]}},"/schedule":{"post":{"operationId":"ScheduleController_create_1","parameters":[{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScheduleDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule":{"$ref":"#/components/schemas/Schedule"}}},"message":{"type":"string","example":"Created"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Create new schedule","tags":["schedule"]},"get":{"operationId":"ScheduleController_findAll_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get all schedules","tags":["schedule"]}},"/schedule/{uid}":{"put":{"operationId":"ScheduleController_update_1","parameters":[{"name":"uid","required":true,"in":"path","schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateScheduleDto"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule":{"$ref":"#/components/schemas/Schedule"}}},"message":{"type":"string","example":"Updated"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update schedule using uid","tags":["schedule"]},"get":{"operationId":"ScheduleController_findByUid_1","parameters":[{"name":"uid","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule":{"$ref":"#/components/schemas/Schedule"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find schedule using uid","tags":["schedule"]},"delete":{"operationId":"ScheduleController_delete_1","parameters":[{"name":"uid","required":true,"in":"path","schema":{"type":"string"}},{"name":"mode","required":false,"in":"query","description":"Delete mode","examples":{"soft":{"summary":"Soft delete mode","value":"soft"},"hard":{"summary":"Hard delete mode","value":"hard"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule":{"$ref":"#/components/schemas/Schedule"}}},"message":{"type":"string","example":"Deleted"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Delete schedule using uid","tags":["schedule"]}},"/schedule/my":{"get":{"operationId":"ScheduleController_mySchedules_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}},{"name":"elder_id","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get all schedules for the current user's elders","tags":["schedule"]}},"/schedule/count":{"get":{"operationId":"ScheduleController_countAll_1","parameters":[{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"count":{"type":"number","description":"Total no of records available","example":10}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get count of schedules","tags":["schedule"]}},"/schedule/find":{"get":{"operationId":"ScheduleController_findOne_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"schedule":{"$ref":"#/components/schemas/Schedule"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find one schedule","tags":["schedule"]}},"/call":{"post":{"operationId":"CallController_create_1","parameters":[{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/Call"}}},"message":{"type":"string","example":"Created"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Create new call","tags":["call"]},"get":{"operationId":"CallController_findAll_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit for Pagination","examples":{"default":{"summary":"Default limit","value":10},"custom":{"summary":"Custom limit","value":25},"empty":{"summary":"Without limit","value":-1}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"offset":{"type":"number","description":"No of records to skip","example":0},"limit":{"type":"number","description":"No of records to take","example":10},"count":{"type":"number","description":"Total no of records available","example":10},"calls":{"type":"array","items":{"$ref":"#/components/schemas/Call"}}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get all calls","tags":["call"]}},"/call/{id}":{"put":{"operationId":"CallController_update_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCallDto"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/Call"}}},"message":{"type":"string","example":"Updated"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Update call using id","tags":["call"]},"get":{"operationId":"CallController_findById_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/Call"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find call using id","tags":["call"]},"delete":{"operationId":"CallController_delete_1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}},{"name":"mode","required":false,"in":"query","description":"Delete mode","examples":{"soft":{"summary":"Soft delete mode","value":"soft"},"hard":{"summary":"Hard delete mode","value":"hard"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/Call"}}},"message":{"type":"string","example":"Deleted"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Delete call using id","tags":["call"]}},"/call/stats":{"get":{"operationId":"CallController_getStats_1","parameters":[],"responses":{"200":{"description":""},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get call stats for the current week (scoped to logged-in user)","tags":["call"]}},"/call/count":{"get":{"operationId":"CallController_countAll_1","parameters":[{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"count":{"type":"number","description":"Total no of records available","example":10}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Get count of calls","tags":["call"]}},"/call/find":{"get":{"operationId":"CallController_findOne_1","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset for Pagination","examples":{"default":{"summary":"Default offset","value":0},"custom":{"summary":"Custom offset","value":25}},"schema":{"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search Keyword","examples":{"empty":{"summary":"No search"},"default":{"summary":"Search string","value":"search text"},"scope":{"summary":"Search with scope","value":"[\"scope\",\"search text\"]"}},"schema":{"type":"string"}},{"name":"select","required":false,"in":"query","description":"Select fields to return","examples":{"empty":{"summary":"Select all fields"},"specific":{"summary":"Select specific fields","value":"[\"id\",\"name\"]"},"populate":{"summary":"Select specific fields from populate","value":"[\"id\",\"name\",\"populate_1.id\",\"populate_1.title\"]"}},"schema":{"type":"string"}},{"name":"where","required":false,"in":"query","description":"Where conditions for filtering records","examples":{"empty":{"summary":"All records"},"equals":{"summary":"Equal conditions","value":"{\"field_1\":\"value\",\"field_2\":true,\"field_3\":null}"},"others":{"summary":"Other conditions","value":"{\"field_1\":{\"$ne\":\"value\"},\"field_2\":{\"$gte\":5,\"$lte\":10},\"field_3\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"},"populate":{"summary":"Populate conditions","value":"{\"$populate_1.field_1$\":\"value\",\"$populate_1.field_2$\":{\"$gte\":5,\"$lte\":10},\"$populate_2.field_3$\":{\"$in\":[1,2],\"$notIn\":[3,4]}}"}},"schema":{"type":"string"}},{"name":"populate","required":false,"in":"query","description":"Populate Relations","examples":{"empty":{"summary":"No populate"},"simple":{"summary":"Direct populate","value":"[\"populate_1\",\"populate_2\"]"},"nested":{"summary":"Nested populate","value":"[\"populate_1\",\"populate_1.child_populate_1\",\"populate_1.child_populate_2\"]"}},"schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope (Predefined Conditions)","examples":{"empty":{"summary":"No scope"},"simple":{"summary":"With scope","value":"[\"scope_1\",\"scope_2\"]"},"advanced":{"summary":"With scope and options","value":"[[\"scope_1\",\"option_1\",\"option_2\"],\"scope_2\"]"}},"schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Sort order of records","examples":{"empty":{"summary":"Default sort"},"single":{"summary":"Sort single","value":"[\"field_1\"]"},"multi":{"summary":"Sort multi","value":"[\"field_1\",\"field_2\"]"},"desc":{"summary":"Sort direction","value":"[[\"field_1\",\"desc\"],[\"field_2\",\"asc\"]]"},"populate":{"summary":"Sort populate","value":"[[\"populate_1\",\"field_1\",\"desc\"],[\"populate_2\",\"field_2\",\"asc\"]]"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/Call"}}},"message":{"type":"string","example":"Ok"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"array","items":{"properties":{"property":{"type":"string","example":"email"},"value":{"type":"string","example":"invalid@email"},"constraints":{"type":"object","example":{"isEmail":"email should be a valid email"}}}}}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"Internal Server Error"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"Find one call","tags":["call"]}},"/call/webhook":{"post":{"operationId":"CallWebhookController_handle_1","parameters":[{"name":"x-retell-signature","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"201":{"description":""}},"summary":"RetellAI webhook receiver","tags":["call"]}}},"info":{"title":"Elder AI API","description":"REST API for the Elder AI platform.\n\n## Authentication\nMost endpoints require a Bearer token. Obtain one via **POST /auth/local**, then click **Authorize** and paste the token.\n\n## Pagination\nList endpoints accept `offset`, `limit`, `search`, `where`, `sort`, `populate`, and `scope` query parameters.\n\n## Versioning\nThe API is versioned via the `x-version` request header.","version":"v1","contact":{"name":"Elder AI Support","url":"","email":"support@elder.ai"}},"tags":[{"name":"auth","description":"Authentication — login, logout, OTP, password reset"},{"name":"user","description":"User management — CRUD and profile operations"},{"name":"elder_profile","description":"Elder profiles — create and manage elder profiles"},{"name":"schedule_kind","description":"Schedule kinds — types of schedules for elder care"},{"name":"schedule","description":"Schedules — manage elder care schedules"},{"name":"call","description":"Calls — outbound AI call records and history"}],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"UpdateInfoDto":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID","example":1},"info":{"type":"object","description":"Additional session info","example":{"device":"iOS","device_token":"token"}}},"required":["info"]},"LoginAsDto":{"type":"object","properties":{"user_id":{"type":"number","format":"int32","description":"User ID","example":1}},"required":["user_id"]},"TokenAuthDto":{"type":"object","properties":{"refresh_token":{"type":"string","description":"Refresh Token","example":"token"}},"required":["refresh_token"]},"ForgotPasswordDto":{"type":"object","properties":{"email":{"type":"string","description":"Email","example":"admin@admin.com"}},"required":["email"]},"SendOtpDto":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID","example":"60659e99e61b6b3bbc7b5051"}},"required":["session_id"]},"VerifyOtpDto":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID","example":"60659e99e61b6b3bbc7b5051"},"otp":{"type":"string","description":"OTP","example":"123456"}},"required":["session_id","otp"]},"ResetPasswordDto":{"type":"object","properties":{"session_id":{"type":"string","description":"Session ID","example":"60659e99e61b6b3bbc7b5051"},"password":{"type":"string","description":"Password","example":"123456"}},"required":["session_id","password"]},"User":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"uid":{"type":"string","description":"Unique ID","example":"a926d382-6741-4d95-86cf-1f5c421cf654","readOnly":true},"email":{"type":"string","description":"Email","example":"ross.geller@gmail.com"},"password":{"type":"string","description":"Password","example":"123456","writeOnly":true},"email_verified":{"type":"boolean","description":"Email Verified?","example":false,"readOnly":true},"enable_2fa":{"type":"boolean","description":"Enable 2FA?","example":false},"first_name":{"type":"string","description":"First Name","example":"Ross"},"last_name":{"type":"string","description":"Last Name","example":"Geller"},"name":{"type":"string","description":"Full Name","example":"Ross Geller","readOnly":true},"phone_code":{"type":"string","description":"Phone Code","example":"+1"},"phone":{"type":"string","description":"Phone","example":"9999999999"},"role":{"type":"string","enum":["super_admin","owner","admin","member","view"],"description":"Role","example":"member"},"status":{"type":"string","description":"Account status","example":"active","enum":["active","invited","suspended"]},"relation":{"type":"string","description":"Relation to elder","example":"Son","enum":["Son","Daughter","Spouse","Sibling","Other"]},"invited_by":{"type":"number","description":"Invited by (users.id)","example":1,"readOnly":true},"invite_accepted_at":{"format":"date-time","type":"string","description":"Invite Accepted At","example":"2021-01-01T00:00:00Z","readOnly":true},"last_login_at":{"format":"date-time","type":"string","description":"Last Login At","example":"2021-01-01T00:00:00Z","readOnly":true}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","uid","email","password","email_verified","first_name","last_name","name","role","status","last_login_at"]},"LocalAuthDto":{"type":"object","properties":{"username":{"type":"string","description":"Username","example":"admin@admin.com"},"password":{"type":"string","description":"Passsword","example":"123456"},"info":{"type":"object","description":"Additional session info","example":{"device":"iOS","device_token":"token"}}},"required":["username","password","info"]},"CreateUserDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"email":{"type":"string","description":"Email","example":"ross.geller@gmail.com"},"password":{"type":"string","description":"Password","example":"123456","writeOnly":true},"enable_2fa":{"type":"boolean","description":"Enable 2FA?","example":false},"first_name":{"type":"string","description":"First Name","example":"Ross"},"last_name":{"type":"string","description":"Last Name","example":"Geller"},"phone_code":{"type":"string","description":"Phone Code","example":"+1"},"phone":{"type":"string","description":"Phone","example":"9999999999"},"role":{"type":"string","enum":["super_admin","owner","admin","member","view"],"description":"Role","example":"member"},"status":{"type":"string","description":"Account status","example":"active","enum":["active","invited","suspended"]},"relation":{"type":"string","description":"Relation to elder","example":"Son","enum":["Son","Daughter","Spouse","Sibling","Other"]}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","email","password","first_name","last_name","role","status"]},"UpdateUserDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"uid":{"type":"string","description":"Unique ID","example":"a926d382-6741-4d95-86cf-1f5c421cf654","readOnly":true},"email":{"type":"string","description":"Email","example":"ross.geller@gmail.com"},"email_verified":{"type":"boolean","description":"Email Verified?","example":false,"readOnly":true},"enable_2fa":{"type":"boolean","description":"Enable 2FA?","example":false},"first_name":{"type":"string","description":"First Name","example":"Ross"},"last_name":{"type":"string","description":"Last Name","example":"Geller"},"name":{"type":"string","description":"Full Name","example":"Ross Geller","readOnly":true},"phone_code":{"type":"string","description":"Phone Code","example":"+1"},"phone":{"type":"string","description":"Phone","example":"9999999999"},"status":{"type":"string","description":"Account status","example":"active","enum":["active","invited","suspended"]},"relation":{"type":"string","description":"Relation to elder","example":"Son","enum":["Son","Daughter","Spouse","Sibling","Other"]},"invited_by":{"type":"number","description":"Invited by (users.id)","example":1,"readOnly":true},"invite_accepted_at":{"format":"date-time","type":"string","description":"Invite Accepted At","example":"2021-01-01T00:00:00Z","readOnly":true},"last_login_at":{"format":"date-time","type":"string","description":"Last Login At","example":"2021-01-01T00:00:00Z","readOnly":true}}},"ChangePasswordDto":{"type":"object","properties":{"password":{"type":"string","description":"Password","example":"123456","writeOnly":true},"old_password":{"type":"string","description":"Old Password","example":"123456","writeOnly":true}},"required":["password","old_password"]},"ElderProfile":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"uid":{"type":"string","description":"Unique ID","example":"a926d382-6741-4d95-86cf-1f5c421cf654","readOnly":true},"full_name":{"type":"string","description":"Full Name","example":"Margaret Thompson"},"phone_code":{"type":"string","description":"Phone Code","example":"+1"},"phone":{"type":"string","description":"Phone Number","example":"5550001234"},"avatar":{"type":"string","description":"Avatar URL","example":"https://cdn.example.com/avatars/margaret.jpg"},"initials":{"type":"string","description":"Initials (auto-computed)","example":"MT","readOnly":true},"color":{"type":"string","description":"Avatar background color (auto-assigned hex)","example":"#4F46E5","readOnly":true},"language":{"type":"string","description":"AI call language","example":"en","enum":["en","es","fr","zh","de","pt","it"]},"care_notes":{"type":"string","description":"Personality, habits, and health context fed to the AI as prompt context","example":"Margaret enjoys gardening and classical music. Hard of hearing in left ear."},"location":{"type":"string","description":"Location / City","example":"Austin, TX"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","uid","full_name","phone","initials","color"]},"CreateElderProfileDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"full_name":{"type":"string","description":"Full Name","example":"Margaret Thompson"},"phone_code":{"type":"string","description":"Phone Code","example":"+1"},"phone":{"type":"string","description":"Phone Number","example":"5550001234"},"avatar":{"type":"string","description":"Avatar URL","example":"https://cdn.example.com/avatars/margaret.jpg"},"language":{"type":"string","description":"AI call language","example":"en","enum":["en","es","fr","zh","de","pt","it"]},"care_notes":{"type":"string","description":"Personality, habits, and health context fed to the AI as prompt context","example":"Margaret enjoys gardening and classical music. Hard of hearing in left ear."},"location":{"type":"string","description":"Location / City","example":"Austin, TX"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","full_name","phone"]},"UpdateElderProfileDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"full_name":{"type":"string","description":"Full Name","example":"Margaret Thompson"},"phone_code":{"type":"string","description":"Phone Code","example":"+1"},"phone":{"type":"string","description":"Phone Number","example":"5550001234"},"avatar":{"type":"string","description":"Avatar URL","example":"https://cdn.example.com/avatars/margaret.jpg"},"language":{"type":"string","description":"AI call language","example":"en","enum":["en","es","fr","zh","de","pt","it"]},"care_notes":{"type":"string","description":"Personality, habits, and health context fed to the AI as prompt context","example":"Margaret enjoys gardening and classical music. Hard of hearing in left ear."},"location":{"type":"string","description":"Location / City","example":"Austin, TX"}}},"ElderAccess":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"user_id":{"type":"number","description":"User ID (family member)","example":1},"elder_id":{"type":"number","description":"Elder Profile ID","example":1}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","user_id","elder_id"]},"CreateElderAccessDto":{"type":"object","properties":{"user_id":{"type":"number","description":"User ID (family member)","example":1},"elder_id":{"type":"number","description":"Elder Profile ID","example":1}},"required":["user_id","elder_id"]},"UpdateElderAccessDto":{"type":"object","properties":{"user_id":{"type":"number","description":"User ID (family member)","example":1},"elder_id":{"type":"number","description":"Elder Profile ID","example":1}}},"ScheduleKind":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"slug":{"type":"string","description":"Kind slug","example":"med"},"name":{"type":"string","description":"Display name","example":"Medication"},"icon":{"type":"string","description":"Icon key or URL","example":"pill"},"color":{"type":"string","description":"Hex color","example":"#4CAF50"},"is_system":{"type":"boolean","description":"System kind — protected from edit/delete","example":false,"readOnly":true},"sort_order":{"type":"number","description":"Display sort order","example":0}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","slug","name","color","is_system"]},"CreateScheduleKindDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"slug":{"type":"string","description":"Kind slug","example":"med"},"name":{"type":"string","description":"Display name","example":"Medication"},"icon":{"type":"string","description":"Icon key or URL","example":"pill"},"color":{"type":"string","description":"Hex color","example":"#4CAF50"},"sort_order":{"type":"number","description":"Display sort order","example":0}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","slug","name","color"]},"UpdateScheduleKindDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"slug":{"type":"string","description":"Kind slug","example":"med"},"name":{"type":"string","description":"Display name","example":"Medication"},"icon":{"type":"string","description":"Icon key or URL","example":"pill"},"color":{"type":"string","description":"Hex color","example":"#4CAF50"},"sort_order":{"type":"number","description":"Display sort order","example":0}}},"Schedule":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"uid":{"type":"string","description":"Unique ID","example":"b1c2d3e4-5f6a-7b8c-9d0e-1f2a3b4c5d6e","readOnly":true},"elder_id":{"type":"number","description":"Elder profile ID","example":1},"kind_id":{"type":"number","description":"Schedule kind ID","example":1},"title":{"type":"string","description":"Schedule title","example":"Morning Medication"},"detail":{"type":"string","description":"Additional detail","example":"Take with water after breakfast"},"cron":{"type":"string","description":"UTC cron expression","example":"0 13 * * 1,4,6,0"},"timezone":{"type":"string","description":"IANA timezone for display/edit roundtrip","example":"America/Los_Angeles"},"enabled":{"type":"boolean","description":"User on/off toggle","example":true}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","uid","elder_id","kind_id","title","cron"]},"CreateScheduleDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"elder_id":{"type":"number","description":"Elder profile ID","example":1},"kind_id":{"type":"number","description":"Schedule kind ID","example":1},"title":{"type":"string","description":"Schedule title","example":"Morning Medication"},"detail":{"type":"string","description":"Additional detail","example":"Take with water after breakfast"},"cron":{"type":"string","description":"UTC cron expression","example":"0 13 * * 1,4,6,0"},"timezone":{"type":"string","description":"IANA timezone for display/edit roundtrip","example":"America/Los_Angeles"},"enabled":{"type":"boolean","description":"User on/off toggle","example":true}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","elder_id","kind_id","title","cron"]},"UpdateScheduleDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"elder_id":{"type":"number","description":"Elder profile ID","example":1},"kind_id":{"type":"number","description":"Schedule kind ID","example":1},"title":{"type":"string","description":"Schedule title","example":"Morning Medication"},"detail":{"type":"string","description":"Additional detail","example":"Take with water after breakfast"},"cron":{"type":"string","description":"UTC cron expression","example":"0 13 * * 1,4,6,0"},"timezone":{"type":"string","description":"IANA timezone for display/edit roundtrip","example":"America/Los_Angeles"},"enabled":{"type":"boolean","description":"User on/off toggle","example":true}}},"Call":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"uid":{"type":"string","description":"Unique ID","readOnly":true},"schedule_id":{"type":"number","description":"Schedule ID","example":1},"elder_id":{"type":"number","description":"Elder profile ID","example":1},"status":{"type":"string","description":"Call status","enum":["pending","initiated","in_progress","completed","failed","no_answer"],"example":"pending"},"call_sid":{"type":"string","description":"External call ID from RetellAI"},"started_at":{"format":"date-time","type":"string","description":"When the call started"},"ended_at":{"format":"date-time","type":"string","description":"When the call ended"},"duration_seconds":{"type":"number","description":"Call duration in seconds"},"summary":{"type":"string","description":"AI-generated call summary"},"sentiment":{"type":"string","description":"Elder sentiment from RetellAI post-call analysis","enum":["Happy","Sad","Confused","Low energy","No answer"]},"failure_reason":{"type":"string","description":"Failure reason if status is failed/no_answer"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","uid","schedule_id","elder_id"]},"CreateCallDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"schedule_id":{"type":"number","description":"Schedule ID","example":1},"elder_id":{"type":"number","description":"Elder profile ID","example":1},"status":{"type":"string","description":"Call status","enum":["pending","initiated","in_progress","completed","failed","no_answer"],"example":"pending"},"call_sid":{"type":"string","description":"External call ID from RetellAI"},"started_at":{"format":"date-time","type":"string","description":"When the call started"},"ended_at":{"format":"date-time","type":"string","description":"When the call ended"},"duration_seconds":{"type":"number","description":"Call duration in seconds"},"summary":{"type":"string","description":"AI-generated call summary"},"sentiment":{"type":"string","description":"Elder sentiment from RetellAI post-call analysis","enum":["Happy","Sad","Confused","Low energy","No answer"]},"failure_reason":{"type":"string","description":"Failure reason if status is failed/no_answer"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","schedule_id","elder_id"]},"UpdateCallDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"schedule_id":{"type":"number","description":"Schedule ID","example":1},"elder_id":{"type":"number","description":"Elder profile ID","example":1},"status":{"type":"string","description":"Call status","enum":["pending","initiated","in_progress","completed","failed","no_answer"],"example":"pending"},"call_sid":{"type":"string","description":"External call ID from RetellAI"},"started_at":{"format":"date-time","type":"string","description":"When the call started"},"ended_at":{"format":"date-time","type":"string","description":"When the call ended"},"duration_seconds":{"type":"number","description":"Call duration in seconds"},"summary":{"type":"string","description":"AI-generated call summary"},"sentiment":{"type":"string","description":"Elder sentiment from RetellAI post-call analysis","enum":["Happy","Sad","Confused","Low energy","No answer"]},"failure_reason":{"type":"string","description":"Failure reason if status is failed/no_answer"}}},"Page":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Page Name","example":"about_us"},"title":{"type":"string","description":"Page Title","example":"About Us"},"content":{"type":"string","description":"Page Content","example":"About us sample content"},"allow_html":{"type":"boolean","description":"Allow HTML Content?","example":true}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","name","title","content","allow_html"]},"CreatePageDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Page Name","example":"about_us"},"title":{"type":"string","description":"Page Title","example":"About Us"},"content":{"type":"string","description":"Page Content","example":"About us sample content"},"allow_html":{"type":"boolean","description":"Allow HTML Content?","example":true}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","name","title","content","allow_html"]},"UpdatePageDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"title":{"type":"string","description":"Page Title","example":"About Us"},"content":{"type":"string","description":"Page Content","example":"About us sample content"}}},"Template":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Template Name","example":"new_account"},"title":{"type":"string","description":"Template Title","example":"New Account"},"send_email":{"type":"boolean","description":"Send Email?","example":true},"email_subject":{"type":"string","description":"Email Subject","example":"New account created"},"email_body":{"type":"string","description":"Email Body","example":"<p>HTML content</p>"},"send_sms":{"type":"boolean","description":"Send SMS?","example":true},"sms_body":{"type":"string","description":"SMS Body","example":"SMS content"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","name","title","send_email","email_subject","email_body","send_sms","sms_body"]},"UpdateTemplateDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"title":{"type":"string","description":"Template Title","example":"New Account"},"send_email":{"type":"boolean","description":"Send Email?","example":true},"email_subject":{"type":"string","description":"Email Subject","example":"New account created"},"email_body":{"type":"string","description":"Email Body","example":"<p>HTML content</p>"},"send_sms":{"type":"boolean","description":"Send SMS?","example":true},"sms_body":{"type":"string","description":"SMS Body","example":"SMS content"}}},"Setting":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Setting Name","example":"timezone"},"display_name":{"type":"string","description":"Setting Display Name","example":"System Timezone"},"value":{"type":"string","description":"Setting Value","example":"America/New_York"},"editable":{"type":"boolean","description":"Editable?","example":true},"group_id":{"type":"number","description":"Group ID","example":1},"sort_no":{"type":"number","description":"Sort Order","example":1},"options":{"type":"object","description":"Settings Input Options"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","name","display_name","value","editable","group_id","sort_no","options"]},"UpdateSettingDto":{"type":"object","properties":{"value":{"type":"string","description":"Setting Value","example":"America/New_York"}},"required":["value"]},"UpdateBulkSettingDto":{"type":"object","properties":{"value":{"type":"string","description":"Setting Value","example":"America/New_York"},"id":{"type":"number","format":"int32","description":"Setting Id","example":1}},"required":["value","id"]},"Country":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Country name","example":"United States"},"code":{"type":"string","description":"Country code","example":"US"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","name","code"]},"CreateCountryDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Country name","example":"United States"},"code":{"type":"string","description":"Country code","example":"US"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","name","code"]},"UpdateCountryDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"name":{"type":"string","description":"Country name","example":"United States"},"code":{"type":"string","description":"Country code","example":"US"}}},"State":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"country_id":{"type":"number","description":"Country ID","example":1},"name":{"type":"string","description":"State Name","example":"Alabama"},"code":{"type":"string","description":"State Code","example":"AL"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","country_id","name","code"]},"CreateStateDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"country_id":{"type":"number","description":"Country ID","example":1},"name":{"type":"string","description":"State Name","example":"Alabama"},"code":{"type":"string","description":"State Code","example":"AL"}},"required":["id","created_at","created_by","updated_at","updated_by","deleted_by","country_id","name","code"]},"UpdateStateDto":{"type":"object","properties":{"id":{"type":"number","format":"int32","description":"ID","example":1,"readOnly":true},"active":{"type":"boolean","description":"Is Active?","example":true},"created_at":{"format":"date-time","type":"string","description":"Created At","example":"2021-01-01T00:00:00Z","readOnly":true},"created_by":{"type":"number","format":"int32","description":"Created By","example":1,"readOnly":true},"updated_at":{"format":"date-time","type":"string","description":"Updated At","example":"2021-01-01T00:00:00Z","readOnly":true},"updated_by":{"type":"number","format":"int32","description":"Updated By","example":1,"readOnly":true},"deleted_by":{"type":"number","format":"int32","description":"Deleted By","example":1,"readOnly":true},"country_id":{"type":"number","description":"Country ID","example":1},"name":{"type":"string","description":"State Name","example":"Alabama"},"code":{"type":"string","description":"State Code","example":"AL"}}}}}}