{"openapi":"3.0.0","info":{"title":"AGENTE-IA-API","version":"1.12.3","description":"A boilerplate starter code base for setting up a loopback4 API for a multi-tenant application","contact":{"name":"Sourcefuse"}},"paths":{"/agents/count":{"get":{"x-controller-name":"AgentsController","x-operation-name":"count","tags":["AgentsController"],"description":"","responses":{"200":{"description":"Agents model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Agents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Agents>"}}}}],"operationId":"AgentsController.count"}},"/agents/export":{"get":{"x-controller-name":"AgentsController","x-operation-name":"exportAgents","tags":["AgentsController"],"description":"","responses":{"200":{"description":"Export agents to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"AgentsController.exportAgents"}},"/agents/from-user":{"post":{"x-controller-name":"AgentsController","x-operation-name":"createFromUser","tags":["AgentsController"],"responses":{"200":{"description":"Agent created from existing user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| CreateUsers   |\n","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"AgentsController.createFromUser"}},"/agents/secret-api-key":{"get":{"x-controller-name":"AgentsSecretApiKeyController","x-operation-name":"getSecretKeyByToken","tags":["AgentsSecretApiKeyController"],"responses":{"200":{"description":"Agents has one SecretApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretApiKey"}}}}},"description":"","operationId":"AgentsSecretApiKeyController.getSecretKeyByToken"}},"/agents/{id}/cascade":{"delete":{"x-controller-name":"AgentsController","x-operation-name":"cascadeDelete","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| DeleteAgents   |\n","responses":{"200":{"description":"Return value of AgentsController.cascadeDelete","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agent and all related data deleted"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AgentsController.cascadeDelete"}},"/agents/{id}/migrate":{"delete":{"x-controller-name":"AgentsController","x-operation-name":"migrateAndDelete","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| DeleteAgents   |\n","responses":{"200":{"description":"Return value of AgentsController.migrateAndDelete","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agent migrated and deleted"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"targetAgentId","in":"query","schema":{"type":"number"}}],"operationId":"AgentsController.migrateAndDelete"}},"/agents/{id}/secret-api-key":{"post":{"x-controller-name":"AgentsSecretApiKeyController","x-operation-name":"create","tags":["AgentsSecretApiKeyController"],"responses":{"200":{"description":"Agents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretApiKey"}}}}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AgentsSecretApiKeyController.create"},"get":{"x-controller-name":"AgentsSecretApiKeyController","x-operation-name":"get","tags":["AgentsSecretApiKeyController"],"responses":{"200":{"description":"Agents has one SecretApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretApiKey"}}}}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AgentsSecretApiKeyController.get"}},"/agents/{id}/unlink":{"delete":{"x-controller-name":"AgentsController","x-operation-name":"unlinkAgent","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| DeleteAgents   |\n","responses":{"200":{"description":"Return value of AgentsController.unlinkAgent","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"targetAgentId","in":"query","schema":{"type":"number"}}],"operationId":"AgentsController.unlinkAgent"}},"/agents/{id}":{"put":{"x-controller-name":"AgentsController","x-operation-name":"replaceById","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| UpdateAgents   |\n","responses":{"200":{"description":"Return value of AgentsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agents PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents"}}},"x-parameter-index":1},"operationId":"AgentsController.replaceById"},"patch":{"x-controller-name":"AgentsController","x-operation-name":"updateById","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| UpdateAgents   |\n","responses":{"200":{"description":"Return value of AgentsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agents PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsPartial"}}},"x-parameter-index":1},"operationId":"AgentsController.updateById"},"get":{"x-controller-name":"AgentsController","x-operation-name":"findById","tags":["AgentsController"],"description":"","responses":{"200":{"description":"Agents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents.Filter"}}}}],"operationId":"AgentsController.findById"},"delete":{"x-controller-name":"AgentsController","x-operation-name":"deleteById","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| DeleteAgents   |\n","responses":{"200":{"description":"Return value of AgentsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agents DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AgentsController.deleteById"}},"/agents":{"post":{"x-controller-name":"AgentsController","x-operation-name":"create","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| CreateAgents   |\n","responses":{"200":{"description":"Agents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents"}}}}},"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/AgentsExcluding_id_"},{"properties":{"roleId":{"type":"number","nullable":true}}}]}}}},"operationId":"AgentsController.create"},"patch":{"x-controller-name":"AgentsController","x-operation-name":"updateAll","tags":["AgentsController"],"description":"\n\n| Permissions |\n| ------- |\n| UpdateAgents   |\n","responses":{"200":{"description":"Agents PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Agents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Agents>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsPartial"}}}},"operationId":"AgentsController.updateAll"},"get":{"x-controller-name":"AgentsController","x-operation-name":"find","tags":["AgentsController"],"description":"","responses":{"200":{"description":"Array of Agents model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents.Filter1"}}}}],"operationId":"AgentsController.find"}},"/api/agents/{id}/instructions":{"post":{"x-controller-name":"MastraController","x-operation-name":"updateInstruction","tags":["MastraController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Instructions updated successfully"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["instructions"],"properties":{"instructions":{"type":"string"}}}}},"x-parameter-index":1},"operationId":"MastraController.updateInstruction"}},"/api/agents":{"get":{"x-controller-name":"MastraController","x-operation-name":"findAgents","tags":["MastraController"],"description":"","responses":{"200":{"description":"Array of AI Agents model instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"operationId":"MastraController.findAgents"}},"/audit-logs/count":{"get":{"x-controller-name":"AuditLogController","x-operation-name":"count","tags":["AuditLogController"],"responses":{"200":{"description":"AuditLog model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| ViewAudit   |\n","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"audit_logs.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<AuditLog>"}}}}],"operationId":"AuditLogController.count"}},"/audit-logs/{id}":{"put":{"x-controller-name":"AuditLogController","x-operation-name":"replaceById","tags":["AuditLogController"],"responses":{"204":{"description":"AuditLog PUT success"}},"description":"\n\n| Permissions |\n| ------- |\n| UpdateAudit   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLog"}}},"x-parameter-index":1},"operationId":"AuditLogController.replaceById"},"patch":{"x-controller-name":"AuditLogController","x-operation-name":"updateById","tags":["AuditLogController"],"responses":{"204":{"description":"AuditLog PATCH success"}},"description":"\n\n| Permissions |\n| ------- |\n| UpdateAudit   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLog"}}},"x-parameter-index":1},"operationId":"AuditLogController.updateById"},"get":{"x-controller-name":"AuditLogController","x-operation-name":"findById","tags":["AuditLogController"],"responses":{"200":{"description":"AuditLog model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLog"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| ViewAudit   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AuditLogController.findById"},"delete":{"x-controller-name":"AuditLogController","x-operation-name":"deleteById","tags":["AuditLogController"],"responses":{"204":{"description":"AuditLog DELETE success"}},"description":"\n\n| Permissions |\n| ------- |\n| DeleteAudit   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AuditLogController.deleteById"}},"/audit-logs":{"post":{"x-controller-name":"AuditLogController","x-operation-name":"create","tags":["AuditLogController"],"responses":{"200":{"description":"AuditLog model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLog"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| CreateAudit   |\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLog"}}}},"operationId":"AuditLogController.create"},"patch":{"x-controller-name":"AuditLogController","x-operation-name":"updateAll","tags":["AuditLogController"],"responses":{"200":{"description":"AuditLog PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| UpdateAudit   |\n","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"audit_logs.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<AuditLog>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLog"}}}},"operationId":"AuditLogController.updateAll"},"get":{"x-controller-name":"AuditLogController","x-operation-name":"find","tags":["AuditLogController"],"responses":{"200":{"description":"Array of AuditLog model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLog"}}}}}},"description":"\n\n| Permissions |\n| ------- |\n| ViewAudit   |\n","parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/audit_logs.Filter"}}}}],"operationId":"AuditLogController.find"}},"/auth/auth-user":{"get":{"x-controller-name":"LoginController","x-operation-name":"authUser","tags":["LoginController"],"description":"","responses":{"200":{"description":"Return value of LoginController.authUser","content":{}}},"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"operationId":"LoginController.authUser"}},"/auth/google":{"get":{"x-controller-name":"LoginController","x-operation-name":"loginViaGoogle","tags":["LoginController"],"responses":{"200":{"description":"Token Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}},"description":"","parameters":[{"name":"client_id","in":"query","schema":{"type":"string"}},{"name":"client_secret","in":"query","schema":{"type":"string"}}],"operationId":"LoginController.loginViaGoogle"}},"/auth/google-auth-redirect":{"get":{"x-controller-name":"LoginController","x-operation-name":"googleCallback","tags":["LoginController"],"responses":{"200":{"description":"Token Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}},"description":"","parameters":[{"name":"code","in":"query","schema":{"type":"string"}},{"name":"state","in":"query","schema":{"type":"string"}}],"operationId":"LoginController.googleCallback"}},"/auth/login":{"post":{"x-controller-name":"LoginController","x-operation-name":"login","tags":["LoginController"],"responses":{"200":{"description":"Auth Code","content":{}}},"description":"","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"operationId":"LoginController.login"}},"/auth/login-token":{"post":{"x-controller-name":"LoginController","x-operation-name":"loginWithClientUser","tags":["LoginController"],"responses":{"200":{"description":"Token Response Model","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}},"description":"","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"operationId":"LoginController.loginWithClientUser"}},"/auth/token":{"post":{"x-controller-name":"LoginController","x-operation-name":"getToken","tags":["LoginController"],"responses":{"200":{"description":"Token Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}},"description":"","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTokenRequest"}}}},"operationId":"LoginController.getToken"}},"/auth/token-refresh":{"post":{"x-controller-name":"LoginController","x-operation-name":"exchangeToken","tags":["LoginController"],"responses":{"200":{"description":"Token Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}},"description":"","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthRefreshTokenRequest"}}}},"operationId":"LoginController.exchangeToken"}},"/business-unit-agents/count":{"get":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"count","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"BusinessUnitAgents model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_agents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitAgents>"}}}}],"operationId":"BusinessUnitAgentsController.count"}},"/business-unit-agents/{id}":{"put":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"replaceById","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitAgentsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitAgents PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitAgents"}}},"x-parameter-index":1},"operationId":"BusinessUnitAgentsController.replaceById"},"patch":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"updateById","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitAgentsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitAgents PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitAgentsPartial"}}},"x-parameter-index":1},"operationId":"BusinessUnitAgentsController.updateById"},"get":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"findById","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"BusinessUnitAgents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitAgentsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_unit_agents.Filter"}}}}],"operationId":"BusinessUnitAgentsController.findById"},"delete":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"deleteById","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitAgentsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitAgents DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitAgentsController.deleteById"}},"/business-unit-agents":{"post":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"create","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"BusinessUnitAgents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitAgents"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBusinessUnitAgents"}}}},"operationId":"BusinessUnitAgentsController.create"},"patch":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"updateAll","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"BusinessUnitAgents PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_agents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitAgents>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitAgentsPartial"}}}},"operationId":"BusinessUnitAgentsController.updateAll"},"get":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"find","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"Array of BusinessUnitAgents model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitAgentsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_unit_agents.Filter1"}}}}],"operationId":"BusinessUnitAgentsController.find"},"delete":{"x-controller-name":"BusinessUnitAgentsController","x-operation-name":"deleteAll","tags":["BusinessUnitAgentsController"],"description":"","responses":{"200":{"description":"BusinessUnitAgents DELETE all success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_agents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitAgents>"}}}}],"operationId":"BusinessUnitAgentsController.deleteAll"}},"/business-unit-categories/count":{"get":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"count","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"BusinessUnitCategories model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_categories.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitCategories>"}}}}],"operationId":"BusinessUnitCategoriesController.count"}},"/business-unit-categories/{id}":{"put":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"replaceById","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitCategoriesController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitCategories PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitCategories"}}},"x-parameter-index":1},"operationId":"BusinessUnitCategoriesController.replaceById"},"patch":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"updateById","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitCategoriesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitCategories PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitCategoriesPartial"}}},"x-parameter-index":1},"operationId":"BusinessUnitCategoriesController.updateById"},"get":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"findById","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"BusinessUnitCategories model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitCategoriesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_unit_categories.Filter"}}}}],"operationId":"BusinessUnitCategoriesController.findById"},"delete":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"deleteById","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitCategoriesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitCategories DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitCategoriesController.deleteById"}},"/business-unit-categories":{"post":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"create","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"BusinessUnitCategories model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitCategories"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBusinessUnitCategories"}}}},"operationId":"BusinessUnitCategoriesController.create"},"patch":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"updateAll","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"BusinessUnitCategories PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_categories.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitCategories>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitCategoriesPartial"}}}},"operationId":"BusinessUnitCategoriesController.updateAll"},"get":{"x-controller-name":"BusinessUnitCategoriesController","x-operation-name":"find","tags":["BusinessUnitCategoriesController"],"description":"","responses":{"200":{"description":"Array of BusinessUnitCategories model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitCategoriesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_unit_categories.Filter1"}}}}],"operationId":"BusinessUnitCategoriesController.find"}},"/business-unit-type-products/count":{"get":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"count","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"BusinessUnitTypeProducts model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_type_products.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitTypeProducts>"}}}}],"operationId":"BusinessUnitTypeProductsController.count"}},"/business-unit-type-products/{id}":{"put":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"replaceById","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitTypeProductsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitTypeProducts PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitTypeProducts"}}},"x-parameter-index":1},"operationId":"BusinessUnitTypeProductsController.replaceById"},"patch":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"updateById","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitTypeProductsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitTypeProducts PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitTypeProductsPartial"}}},"x-parameter-index":1},"operationId":"BusinessUnitTypeProductsController.updateById"},"get":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"findById","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"BusinessUnitTypeProducts model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitTypeProductsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_unit_type_products.Filter"}}}}],"operationId":"BusinessUnitTypeProductsController.findById"},"delete":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"deleteById","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitTypeProductsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnitTypeProducts DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitTypeProductsController.deleteById"}},"/business-unit-type-products":{"post":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"create","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"BusinessUnitTypeProducts model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitTypeProducts"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBusinessUnitTypeProducts"}}}},"operationId":"BusinessUnitTypeProductsController.create"},"patch":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"updateAll","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"BusinessUnitTypeProducts PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_unit_type_products.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnitTypeProducts>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitTypeProductsPartial"}}}},"operationId":"BusinessUnitTypeProductsController.updateAll"},"get":{"x-controller-name":"BusinessUnitTypeProductsController","x-operation-name":"find","tags":["BusinessUnitTypeProductsController"],"description":"","responses":{"200":{"description":"Array of BusinessUnitTypeProducts model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitTypeProductsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_unit_type_products.Filter1"}}}}],"operationId":"BusinessUnitTypeProductsController.find"}},"/business-units/count":{"get":{"x-controller-name":"BusinessUnitsController","x-operation-name":"count","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"BusinessUnits model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_units.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnits>"}}}}],"operationId":"BusinessUnitsController.count"}},"/business-units/{id}/agents":{"put":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"configureAgents","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Configure agents for a business unit","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"agentId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"priority":{"type":"number"},"maxConcurrentLeads":{"type":"number"}},"required":["agentId","categoryProductId","typeProductId"]}}}},"x-parameter-index":1},"operationId":"BusinessUnitConfigurationController.configureAgents"}},"/business-units/{id}/categories":{"put":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"configureCategories","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Configure categories for a business unit","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["categoryProductId","typeProductId"]}}}},"x-parameter-index":1},"operationId":"BusinessUnitConfigurationController.configureCategories"}},"/business-units/{id}/configuration":{"get":{"x-controller-name":"BusinessUnitsController","x-operation-name":"getConfiguration","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"Complete configuration for a BusinessUnit","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitsController.getConfiguration"}},"/business-units/{id}/history":{"get":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"getHistory","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Get configuration change history for a business unit","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"limit","in":"query","schema":{"type":"number"}}],"operationId":"BusinessUnitConfigurationController.getHistory"}},"/business-units/{id}/metrics":{"get":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"getMetrics","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Get configuration metrics for a business unit","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitConfigurationController.getMetrics"}},"/business-units/{id}/preview-changes":{"post":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"previewChanges","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Preview configuration changes without applying them","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"typeProductIds":{"type":"array","items":{"type":"number"}},"categories":{"type":"array","items":{"type":"object","properties":{"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}}}},"agents":{"type":"array","items":{"type":"object","properties":{"agentId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}}}}}}}},"x-parameter-index":1},"operationId":"BusinessUnitConfigurationController.previewChanges"}},"/business-units/{id}/type-products":{"put":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"configureTypeProducts","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Configure type products for a business unit","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"number"}}}},"x-parameter-index":1},"operationId":"BusinessUnitConfigurationController.configureTypeProducts"}},"/business-units/{id}/validate":{"get":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"validateConfiguration","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Validate configuration integrity for a business unit","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitConfigurationController.validateConfiguration"}},"/business-units/{id}":{"put":{"x-controller-name":"BusinessUnitsController","x-operation-name":"replaceById","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnits PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnits"}}},"x-parameter-index":1},"operationId":"BusinessUnitsController.replaceById"},"patch":{"x-controller-name":"BusinessUnitsController","x-operation-name":"updateById","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnits PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitsPartial"}}},"x-parameter-index":1},"operationId":"BusinessUnitsController.updateById"},"get":{"x-controller-name":"BusinessUnitsController","x-operation-name":"findById","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"BusinessUnits model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_units.Filter"}}}}],"operationId":"BusinessUnitsController.findById"},"delete":{"x-controller-name":"BusinessUnitsController","x-operation-name":"deleteById","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"Return value of BusinessUnitsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"BusinessUnits DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"BusinessUnitsController.deleteById"}},"/business-units":{"post":{"x-controller-name":"BusinessUnitsController","x-operation-name":"create","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"BusinessUnits model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnits"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBusinessUnits"}}}},"operationId":"BusinessUnitsController.create"},"patch":{"x-controller-name":"BusinessUnitsController","x-operation-name":"updateAll","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"BusinessUnits PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"business_units.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<BusinessUnits>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessUnitsPartial"}}}},"operationId":"BusinessUnitsController.updateAll"},"get":{"x-controller-name":"BusinessUnitsController","x-operation-name":"find","tags":["BusinessUnitsController"],"description":"","responses":{"200":{"description":"Array of BusinessUnits model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/business_units.Filter1"}}}}],"operationId":"BusinessUnitsController.find"}},"/calendar-dates":{"get":{"x-controller-name":"CalendarEventsController","x-operation-name":"findEvent","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"Endpoint that returns array list with events of the calendar (legacy)","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEvents"}}}}}},"parameters":[{"name":"agentId","in":"query","schema":{"type":"number"}}],"operationId":"CalendarEventsController.findEvent"}},"/calendar-events/count":{"get":{"x-controller-name":"CalendarEventsController","x-operation-name":"count","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"CalendarEvents model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"CalendarEvents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<CalendarEvents>"}}}}],"operationId":"CalendarEventsController.count"}},"/calendar-events/filter":{"get":{"x-controller-name":"CalendarEventsController","x-operation-name":"filterEvents","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"Filter calendar events by date range, label, agent, client or lead","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEventsWithRelations"}}}}}},"parameters":[{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}},{"name":"label","in":"query","schema":{"type":"string"}},{"name":"clientId","in":"query","schema":{"type":"number"}},{"name":"leadId","in":"query","schema":{"type":"number"}}],"operationId":"CalendarEventsController.filterEvents"}},"/calendar-events/{id}":{"put":{"x-controller-name":"CalendarEventsController","x-operation-name":"replaceById","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"Return value of CalendarEventsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CalendarEvents PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEvents"}}},"x-parameter-index":1},"operationId":"CalendarEventsController.replaceById"},"patch":{"x-controller-name":"CalendarEventsController","x-operation-name":"updateById","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"Return value of CalendarEventsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CalendarEvents PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventsPartial"}}},"x-parameter-index":1},"operationId":"CalendarEventsController.updateById"},"get":{"x-controller-name":"CalendarEventsController","x-operation-name":"findById","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"CalendarEvents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEvents.Filter"}}}}],"operationId":"CalendarEventsController.findById"},"delete":{"x-controller-name":"CalendarEventsController","x-operation-name":"deleteById","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"Return value of CalendarEventsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CalendarEvents DELETE success (soft delete)"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CalendarEventsController.deleteById"}},"/calendar-events":{"post":{"x-controller-name":"CalendarEventsController","x-operation-name":"create","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"CalendarEvents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEvents"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCalendarEvents"}}}},"operationId":"CalendarEventsController.create"},"patch":{"x-controller-name":"CalendarEventsController","x-operation-name":"updateAll","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"CalendarEvents PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"CalendarEvents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<CalendarEvents>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventsPartial"}}}},"operationId":"CalendarEventsController.updateAll"},"get":{"x-controller-name":"CalendarEventsController","x-operation-name":"find","tags":["CalendarEventsController"],"description":"","responses":{"200":{"description":"Array of CalendarEvents model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEventsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEvents.Filter1"}}}}],"operationId":"CalendarEventsController.find"}},"/category-products/count":{"get":{"x-controller-name":"CategoryProductsController","x-operation-name":"count","tags":["CategoryProductsController"],"description":"","responses":{"200":{"description":"CategoryProduct model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"category_product.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<CategoryProduct>"}}}}],"operationId":"CategoryProductsController.count"}},"/category-products/{id}":{"patch":{"x-controller-name":"CategoryProductsController","x-operation-name":"updateById","tags":["CategoryProductsController"],"description":"","responses":{"200":{"description":"Return value of CategoryProductsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CategoryProduct PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryProductPartial"}}},"x-parameter-index":1},"operationId":"CategoryProductsController.updateById"},"get":{"x-controller-name":"CategoryProductsController","x-operation-name":"findById","tags":["CategoryProductsController"],"description":"","responses":{"200":{"description":"CategoryProduct model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryProductWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/category_product.Filter"}}}}],"operationId":"CategoryProductsController.findById"},"delete":{"x-controller-name":"CategoryProductsController","x-operation-name":"deleteById","tags":["CategoryProductsController"],"description":"","responses":{"200":{"description":"Return value of CategoryProductsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CategoryProduct DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CategoryProductsController.deleteById"}},"/category-products":{"post":{"x-controller-name":"CategoryProductsController","x-operation-name":"create","tags":["CategoryProductsController"],"description":"","responses":{"200":{"description":"CategoryProduct model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryProduct"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCategoryProduct"}}}},"operationId":"CategoryProductsController.create"},"get":{"x-controller-name":"CategoryProductsController","x-operation-name":"find","tags":["CategoryProductsController"],"description":"","responses":{"200":{"description":"Array of CategoryProduct model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryProductWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/category_product.Filter1"}}}}],"operationId":"CategoryProductsController.find"}},"/chatbot/return-to-bot":{"post":{"x-controller-name":"ChatbotController","x-operation-name":"returnToBot","tags":["ChatbotController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Return chatbot conversation to bot with context handoff"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"ChatbotController.returnToBot"}},"/chatbot/send-agent-message":{"post":{"x-controller-name":"ChatbotController","x-operation-name":"sendAgentMessage","tags":["ChatbotController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Agent message sent from CRM to chatbot widget"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"ChatbotController.sendAgentMessage"}},"/chatbot":{"post":{"x-controller-name":"ChatbotController","x-operation-name":"handleMessage","tags":["ChatbotController"],"responses":{"200":{"description":"Chatbot message received"}},"description":"","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"ChatbotController.handleMessage"}},"/chatbot-configs/count":{"get":{"x-controller-name":"ChatbotConfigController","x-operation-name":"count","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"ChatbotConfig model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"chat_config.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ChatbotConfig>"}}}}],"operationId":"ChatbotConfigController.count"}},"/chatbot-configs/{id}":{"put":{"x-controller-name":"ChatbotConfigController","x-operation-name":"replaceById","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"Return value of ChatbotConfigController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotConfig PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotConfig"}}},"x-parameter-index":1},"operationId":"ChatbotConfigController.replaceById"},"patch":{"x-controller-name":"ChatbotConfigController","x-operation-name":"updateById","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"Return value of ChatbotConfigController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotConfig PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotConfigPartial"}}},"x-parameter-index":1},"operationId":"ChatbotConfigController.updateById"},"get":{"x-controller-name":"ChatbotConfigController","x-operation-name":"findById","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"ChatbotConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotConfigWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat_config.Filter"}}}}],"operationId":"ChatbotConfigController.findById"},"delete":{"x-controller-name":"ChatbotConfigController","x-operation-name":"deleteById","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"Return value of ChatbotConfigController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotConfig DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ChatbotConfigController.deleteById"}},"/chatbot-configs":{"post":{"x-controller-name":"ChatbotConfigController","x-operation-name":"create","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"ChatbotConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotConfig"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewChatbotConfig"}}}},"operationId":"ChatbotConfigController.create"},"patch":{"x-controller-name":"ChatbotConfigController","x-operation-name":"updateAll","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"ChatbotConfig PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"chat_config.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ChatbotConfig>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotConfigPartial"}}}},"operationId":"ChatbotConfigController.updateAll"},"get":{"x-controller-name":"ChatbotConfigController","x-operation-name":"find","tags":["ChatbotConfigController"],"description":"","responses":{"200":{"description":"Array of ChatbotConfig model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatbotConfigWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat_config.Filter1"}}}}],"operationId":"ChatbotConfigController.find"}},"/chatbot-customizations/count":{"get":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"count","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"ChatbotCustomization model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"chat_customization.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ChatbotCustomization>"}}}}],"operationId":"ChatbotCustomizationController.count"}},"/chatbot-customizations/{id}":{"put":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"replaceById","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"Return value of ChatbotCustomizationController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotCustomization PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotCustomization"}}},"x-parameter-index":1},"operationId":"ChatbotCustomizationController.replaceById"},"patch":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"updateById","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"Return value of ChatbotCustomizationController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotCustomization PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotCustomizationPartial"}}},"x-parameter-index":1},"operationId":"ChatbotCustomizationController.updateById"},"get":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"findById","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"ChatbotCustomization model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotCustomizationWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat_customization.Filter"}}}}],"operationId":"ChatbotCustomizationController.findById"},"delete":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"deleteById","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"Return value of ChatbotCustomizationController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotCustomization DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ChatbotCustomizationController.deleteById"}},"/chatbot-customizations":{"post":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"create","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"ChatbotCustomization model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotCustomization"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewChatbotCustomization"}}}},"operationId":"ChatbotCustomizationController.create"},"patch":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"updateAll","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"ChatbotCustomization PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"chat_customization.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ChatbotCustomization>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotCustomizationPartial"}}}},"operationId":"ChatbotCustomizationController.updateAll"},"get":{"x-controller-name":"ChatbotCustomizationController","x-operation-name":"find","tags":["ChatbotCustomizationController"],"description":"","responses":{"200":{"description":"Array of ChatbotCustomization model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatbotCustomizationWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat_customization.Filter1"}}}}],"operationId":"ChatbotCustomizationController.find"}},"/chatbot-leads":{"post":{"x-controller-name":"ChatbotLeadController","x-operation-name":"create","tags":["ChatbotLeadController"],"description":"","responses":{"200":{"description":"Leads model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLeads1"}}}},"operationId":"ChatbotLeadController.create"}},"/chatbot-themes/count":{"get":{"x-controller-name":"ChatbotThemeController","x-operation-name":"count","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"ChatbotTheme model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"chat_theme.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ChatbotTheme>"}}}}],"operationId":"ChatbotThemeController.count"}},"/chatbot-themes/{id}":{"put":{"x-controller-name":"ChatbotThemeController","x-operation-name":"replaceById","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"Return value of ChatbotThemeController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotTheme PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotTheme"}}},"x-parameter-index":1},"operationId":"ChatbotThemeController.replaceById"},"patch":{"x-controller-name":"ChatbotThemeController","x-operation-name":"updateById","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"Return value of ChatbotThemeController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotTheme PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotThemePartial"}}},"x-parameter-index":1},"operationId":"ChatbotThemeController.updateById"},"get":{"x-controller-name":"ChatbotThemeController","x-operation-name":"findById","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"ChatbotTheme model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotThemeWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat_theme.Filter"}}}}],"operationId":"ChatbotThemeController.findById"},"delete":{"x-controller-name":"ChatbotThemeController","x-operation-name":"deleteById","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"Return value of ChatbotThemeController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ChatbotTheme DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ChatbotThemeController.deleteById"}},"/chatbot-themes":{"post":{"x-controller-name":"ChatbotThemeController","x-operation-name":"create","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"ChatbotTheme model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotTheme"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewChatbotTheme"}}}},"operationId":"ChatbotThemeController.create"},"patch":{"x-controller-name":"ChatbotThemeController","x-operation-name":"updateAll","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"ChatbotTheme PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"chat_theme.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ChatbotTheme>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatbotThemePartial"}}}},"operationId":"ChatbotThemeController.updateAll"},"get":{"x-controller-name":"ChatbotThemeController","x-operation-name":"find","tags":["ChatbotThemeController"],"description":"","responses":{"200":{"description":"Array of ChatbotTheme model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatbotThemeWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat_theme.Filter1"}}}}],"operationId":"ChatbotThemeController.find"}},"/classification-leads/count":{"get":{"x-controller-name":"ClassificationLeadController","x-operation-name":"count","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"ClassificationLead model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"classification_lead.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ClassificationLead>"}}}}],"operationId":"ClassificationLeadController.count"}},"/classification-leads/{id}":{"put":{"x-controller-name":"ClassificationLeadController","x-operation-name":"replaceById","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"Return value of ClassificationLeadController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ClassificationLead PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationLead"}}},"x-parameter-index":1},"operationId":"ClassificationLeadController.replaceById"},"patch":{"x-controller-name":"ClassificationLeadController","x-operation-name":"updateById","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"Return value of ClassificationLeadController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ClassificationLead PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationLeadPartial"}}},"x-parameter-index":1},"operationId":"ClassificationLeadController.updateById"},"get":{"x-controller-name":"ClassificationLeadController","x-operation-name":"findById","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"ClassificationLead model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationLeadWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/classification_lead.Filter"}}}}],"operationId":"ClassificationLeadController.findById"},"delete":{"x-controller-name":"ClassificationLeadController","x-operation-name":"deleteById","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"Return value of ClassificationLeadController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ClassificationLead DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ClassificationLeadController.deleteById"}},"/classification-leads":{"post":{"x-controller-name":"ClassificationLeadController","x-operation-name":"create","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"ClassificationLead model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationLead"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClassificationLead"}}}},"operationId":"ClassificationLeadController.create"},"patch":{"x-controller-name":"ClassificationLeadController","x-operation-name":"updateAll","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"ClassificationLead PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"classification_lead.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ClassificationLead>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationLeadPartial"}}}},"operationId":"ClassificationLeadController.updateAll"},"get":{"x-controller-name":"ClassificationLeadController","x-operation-name":"find","tags":["ClassificationLeadController"],"description":"","responses":{"200":{"description":"Array of ClassificationLead model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClassificationLeadWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/classification_lead.Filter1"}}}}],"operationId":"ClassificationLeadController.find"}},"/commercial-targets/agent/all":{"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getAllAgentTargets","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"All agent targets for a given period"}}}}},"parameters":[{"name":"periodMonth","in":"query","schema":{"type":"number"}},{"name":"periodYear","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.getAllAgentTargets"}},"/commercial-targets/agent/{id}":{"delete":{"x-controller-name":"CommercialTargetsController","x-operation-name":"deleteAgentTarget","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"Return value of CommercialTargetsController.deleteAgentTarget","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agent target soft-deleted"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommercialTargetsController.deleteAgentTarget"}},"/commercial-targets/agent":{"post":{"x-controller-name":"CommercialTargetsController","x-operation-name":"upsertAgentTarget","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Agent target upserted"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["agentId","targetType","targetAmount","periodMonth","periodYear"],"properties":{"agentId":{"type":"number"},"targetType":{"type":"string","enum":["sales","won_opportunities","new_clients"]},"targetAmount":{"type":"number","minimum":0},"periodMonth":{"type":"number","minimum":1,"maximum":12},"periodYear":{"type":"number"}}}}}},"operationId":"CommercialTargetsController.upsertAgentTarget"},"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getAgentTargets","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Agent targets for a given period"}}}}},"parameters":[{"name":"agentId","in":"query","schema":{"type":"number"}},{"name":"periodMonth","in":"query","schema":{"type":"number"}},{"name":"periodYear","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.getAgentTargets"}},"/commercial-targets/branch/all":{"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getAllBranchTargets","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"All branch targets for a given period across all business units"}}}}},"parameters":[{"name":"periodMonth","in":"query","schema":{"type":"number"}},{"name":"periodYear","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.getAllBranchTargets"}},"/commercial-targets/branch/{id}":{"delete":{"x-controller-name":"CommercialTargetsController","x-operation-name":"deleteBranchTarget","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"Return value of CommercialTargetsController.deleteBranchTarget","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Branch target soft-deleted"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommercialTargetsController.deleteBranchTarget"}},"/commercial-targets/branch":{"post":{"x-controller-name":"CommercialTargetsController","x-operation-name":"upsertBranchTarget","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Branch target upserted"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["businessUnitId","targetType","targetAmount","periodMonth","periodYear"],"properties":{"businessUnitId":{"type":"number"},"targetType":{"type":"string","enum":["sales","won_opportunities","new_clients"]},"targetAmount":{"type":"number","minimum":0},"periodMonth":{"type":"number","minimum":1,"maximum":12},"periodYear":{"type":"number"}}}}}},"operationId":"CommercialTargetsController.upsertBranchTarget"},"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getBranchTargets","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Branch targets for a given period"}}}}},"parameters":[{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"periodMonth","in":"query","schema":{"type":"number"}},{"name":"periodYear","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.getBranchTargets"}},"/commercial-targets/effective":{"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getEffectiveTargets","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Effective targets for an agent, resolving agent-over-branch priority"}}}}},"parameters":[{"name":"agentId","in":"query","schema":{"type":"number"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"periodMonth","in":"query","schema":{"type":"number"}},{"name":"periodYear","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.getEffectiveTargets"}},"/commission-priorities/history":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getPriorityHistory","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Audit history of priority changes"}}}}},"operationId":"CommissionsController.getPriorityHistory"}},"/commission-priorities":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"updatePriorities","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Updated priority order"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["newOrder"],"properties":{"newOrder":{"type":"array","items":{"type":"object","required":["ruleType","position"],"properties":{"ruleType":{"type":"string","enum":["global","agent","product_category","classification"]},"position":{"type":"number","minimum":1,"maximum":4}}},"minItems":4,"maxItems":4},"description":{"type":"string"}}}}}},"operationId":"CommissionsController.updatePriorities"},"get":{"x-controller-name":"CommissionsController","x-operation-name":"getPriorities","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Current priority order (sorted by position ASC)"}}}}},"operationId":"CommissionsController.getPriorities"}},"/commission-rules/agents/{agentId}":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"upsertAgentRule","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Agent commission rule upserted"}}}}},"parameters":[{"name":"agentId","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"percentage":{"type":"number","nullable":true,"minimum":0,"maximum":100}}}}},"x-parameter-index":1},"operationId":"CommissionsController.upsertAgentRule"}},"/commission-rules/{id}":{"patch":{"x-controller-name":"CommissionsController","x-operation-name":"updateRule","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.updateRule","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Commission rule updated"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionRulePartial"}}},"x-parameter-index":1},"operationId":"CommissionsController.updateRule"},"get":{"x-controller-name":"CommissionsController","x-operation-name":"getRuleById","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Single commission rule"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommissionsController.getRuleById"},"delete":{"x-controller-name":"CommissionsController","x-operation-name":"deactivateRule","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.deactivateRule","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Commission rule deactivated (soft-delete)"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommissionsController.deactivateRule"}},"/commission-rules":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"createRule","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.createRule","content":{}},"201":{"description":"Created","content":{"application/json":{"schema":{"description":"Created commission rule"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCommissionRule"}}}},"operationId":"CommissionsController.createRule"},"get":{"x-controller-name":"CommissionsController","x-operation-name":"getRules","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"List of all commission rules"}}}}},"operationId":"CommissionsController.getRules"}},"/commissions/agents/{agentId}/summary":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getAgentSummary","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Agent commission summary for the detail panel"}}}}},"parameters":[{"name":"agentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommissionsController.getAgentSummary"}},"/commissions/agents":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getAgentsList","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"All agents commission summary list"}}}}},"operationId":"CommissionsController.getAgentsList"}},"/commissions/bulk-cancel":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"bulkCancel","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.bulkCancel","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"CommissionsController.bulkCancel"}},"/commissions/bulk-status":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"bulkUpdateStatus","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.bulkUpdateStatus","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"CommissionsController.bulkUpdateStatus"}},"/commissions/config/ranking-criteria":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"updateRankingCriteria","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.updateRankingCriteria","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"CommissionsController.updateRankingCriteria"}},"/commissions/config/ranking-threshold":{"patch":{"x-controller-name":"CommissionsController","x-operation-name":"updateRankingThreshold","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.updateRankingThreshold","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Ranking threshold updated"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","enum":["ranking_min_amount","ranking_min_count"]},"value":{"type":"number","minimum":1}}}}}},"operationId":"CommissionsController.updateRankingThreshold"},"get":{"x-controller-name":"CommissionsController","x-operation-name":"getRankingThresholds","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.getRankingThresholds","content":{}}},"operationId":"CommissionsController.getRankingThresholds"}},"/commissions/config":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getConfig","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.getConfig","content":{}}},"operationId":"CommissionsController.getConfig"}},"/commissions/export":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"exportCommissions","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Export commissions to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"agentId","in":"query","schema":{"type":"number"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"dateFrom","in":"query","schema":{"type":"string"}},{"name":"dateTo","in":"query","schema":{"type":"string"}},{"name":"classificationId","in":"query","schema":{"type":"number"}},{"name":"productCategoryId","in":"query","schema":{"type":"number"}}],"operationId":"CommissionsController.exportCommissions"}},"/commissions/monthly-close/mark-paid":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"markAllApprovedAsPaid","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Mark all approved commissions as paid"}}}}},"operationId":"CommissionsController.markAllApprovedAsPaid"}},"/commissions/monthly-close/send-email":{"post":{"x-controller-name":"CommissionsController","x-operation-name":"sendMonthlyEmail","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.sendMonthlyEmail","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Send monthly commission email to admins"}}}}},"operationId":"CommissionsController.sendMonthlyEmail"}},"/commissions/monthly-close":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getMontlyCloseSummary","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Monthly close summary"}}}}},"operationId":"CommissionsController.getMontlyCloseSummary"}},"/commissions/stats":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getStats","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Commission summary stats"}}}}},"parameters":[{"name":"dateFrom","in":"query","schema":{"type":"string"}},{"name":"dateTo","in":"query","schema":{"type":"string"}}],"operationId":"CommissionsController.getStats"}},"/commissions/{id}/cancel":{"patch":{"x-controller-name":"CommissionsController","x-operation-name":"cancelCommission","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.cancelCommission","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Commission cancelled"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["cancelledReason"],"properties":{"cancelledReason":{"type":"string","minLength":1}}}}},"x-parameter-index":1},"operationId":"CommissionsController.cancelCommission"}},"/commissions/{id}/reassign-agent":{"patch":{"x-controller-name":"CommissionsController","x-operation-name":"reassignAgent","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Commission agent reassigned"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"x-parameter-index":1},"operationId":"CommissionsController.reassignAgent"}},"/commissions/{id}/status":{"patch":{"x-controller-name":"CommissionsController","x-operation-name":"updateCommissionStatus","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"Return value of CommissionsController.updateCommissionStatus","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Commission status updated"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["approved","paid"]},"notes":{"type":"string"}}}}},"x-parameter-index":1},"operationId":"CommissionsController.updateCommissionStatus"}},"/commissions/{id}":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getCommissionById","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Single commission record"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommissionsController.getCommissionById"}},"/commissions":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getCommissions","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"List of commission records"}}}}},"parameters":[{"name":"agentId","in":"query","schema":{"type":"number"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"dateFrom","in":"query","schema":{"type":"string"}},{"name":"dateTo","in":"query","schema":{"type":"string"}},{"name":"classificationId","in":"query","schema":{"type":"number"}},{"name":"productCategoryId","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"skip","in":"query","schema":{"type":"number"}}],"operationId":"CommissionsController.getCommissions"}},"/companies/count":{"get":{"x-controller-name":"CompaniesController","x-operation-name":"count","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Companies model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"companies.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Companies>"}}}}],"operationId":"CompaniesController.count"}},"/companies/export":{"get":{"x-controller-name":"CompaniesController","x-operation-name":"exportCompanies","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Export companies to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"CompaniesController.exportCompanies"}},"/companies/{id}":{"put":{"x-controller-name":"CompaniesController","x-operation-name":"replaceById","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Return value of CompaniesController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Companies PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Companies"}}},"x-parameter-index":1},"operationId":"CompaniesController.replaceById"},"patch":{"x-controller-name":"CompaniesController","x-operation-name":"updateById","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Return value of CompaniesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Companies PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesPartial"}}},"x-parameter-index":1},"operationId":"CompaniesController.updateById"},"get":{"x-controller-name":"CompaniesController","x-operation-name":"findById","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Companies model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/companies.Filter"}}}}],"operationId":"CompaniesController.findById"},"delete":{"x-controller-name":"CompaniesController","x-operation-name":"deleteById","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Return value of CompaniesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Companies DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CompaniesController.deleteById"}},"/companies":{"post":{"x-controller-name":"CompaniesController","x-operation-name":"create","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Companies model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Companies"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCompanies"}}}},"operationId":"CompaniesController.create"},"patch":{"x-controller-name":"CompaniesController","x-operation-name":"updateAll","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Companies PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"companies.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Companies>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesPartial"}}}},"operationId":"CompaniesController.updateAll"},"get":{"x-controller-name":"CompaniesController","x-operation-name":"find","tags":["CompaniesController"],"description":"","responses":{"200":{"description":"Array of Companies model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompaniesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/companies.Filter1"}}}}],"operationId":"CompaniesController.find"}},"/contacts/count":{"get":{"x-controller-name":"ContactsController","x-operation-name":"count","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Contacts model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Contacts.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Contacts>"}}}}],"operationId":"ContactsController.count"}},"/contacts/export":{"get":{"x-controller-name":"ContactsController","x-operation-name":"exportContacts","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Export contacts to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"ContactsController.exportContacts"}},"/contacts/{id}":{"put":{"x-controller-name":"ContactsController","x-operation-name":"replaceById","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Return value of ContactsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Contacts PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contacts"}}},"x-parameter-index":1},"operationId":"ContactsController.replaceById"},"patch":{"x-controller-name":"ContactsController","x-operation-name":"updateById","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Return value of ContactsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Contacts PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsPartial"}}},"x-parameter-index":1},"operationId":"ContactsController.updateById"},"get":{"x-controller-name":"ContactsController","x-operation-name":"findById","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Contacts model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contacts.Filter"}}}}],"operationId":"ContactsController.findById"},"delete":{"x-controller-name":"ContactsController","x-operation-name":"deleteById","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Return value of ContactsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Contacts DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ContactsController.deleteById"}},"/contacts":{"post":{"x-controller-name":"ContactsController","x-operation-name":"create","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Contacts model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contacts"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewContacts"}}}},"operationId":"ContactsController.create"},"patch":{"x-controller-name":"ContactsController","x-operation-name":"updateAll","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Contacts PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Contacts.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Contacts>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsPartial"}}}},"operationId":"ContactsController.updateAll"},"get":{"x-controller-name":"ContactsController","x-operation-name":"find","tags":["ContactsController"],"description":"","responses":{"200":{"description":"Array of Contacts model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contacts.Filter1"}}}}],"operationId":"ContactsController.find"}},"/contract-templates/preview/from-quote":{"post":{"x-controller-name":"CommercialTargetsController","x-operation-name":"previewContractFromQuote","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Rendered contract preview resolved from a real quote"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["templateBody","quoteId"],"properties":{"templateBody":{"type":"string"},"quoteId":{"type":"number"}}}}}},"operationId":"CommercialTargetsController.previewContractFromQuote"}},"/contract-templates/preview":{"post":{"x-controller-name":"CommercialTargetsController","x-operation-name":"previewContract","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Rendered contract preview with variables resolved"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["templateBody"],"properties":{"templateBody":{"type":"string"},"contact":{"type":"object"},"company":{"type":"object"},"lead":{"type":"object"},"quote":{"type":"object"},"agent":{"type":"object"},"quote_agent":{"type":"object"},"seller_agent":{"type":"object"}}}}}},"operationId":"CommercialTargetsController.previewContract"}},"/contract-templates/variables":{"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getAvailableVariables","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Available dynamic variables for contract templates"}}}}},"operationId":"CommercialTargetsController.getAvailableVariables"}},"/contract-templates/{id}":{"patch":{"x-controller-name":"CommercialTargetsController","x-operation-name":"updateContractTemplate","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"Return value of CommercialTargetsController.updateContractTemplate","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Contract template updated"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"variables":{"type":"object"},"categoryProductIds":{"type":"array","items":{"type":"number"}},"forceActivate":{"type":"boolean"}}}}},"x-parameter-index":1},"operationId":"CommercialTargetsController.updateContractTemplate"},"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getContractTemplateById","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Single contract template"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommercialTargetsController.getContractTemplateById"},"delete":{"x-controller-name":"CommercialTargetsController","x-operation-name":"deleteContractTemplate","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"Return value of CommercialTargetsController.deleteContractTemplate","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Contract template soft-deleted"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommercialTargetsController.deleteContractTemplate"}},"/contract-templates":{"post":{"x-controller-name":"CommercialTargetsController","x-operation-name":"createContractTemplate","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Contract template created"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","body","categoryProductIds"],"properties":{"name":{"type":"string"},"body":{"type":"string"},"categoryProductIds":{"type":"array","items":{"type":"number"},"minItems":1},"variables":{"type":"object"},"status":{"type":"string","enum":["active","inactive"]}}}}}},"operationId":"CommercialTargetsController.createContractTemplate"},"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"getContractTemplates","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"List of contract templates"}}}}},"parameters":[{"name":"categoryProductId","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"page","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.getContractTemplates"}},"/contracts/preview-pdf":{"post":{"x-controller-name":"CommercialTargetsController","x-operation-name":"previewContractPDF","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"Preview PDF from resolved contract body","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["body","templateName"],"properties":{"body":{"type":"string"},"templateName":{"type":"string"}}}}}},"operationId":"CommercialTargetsController.previewContractPDF"}},"/conversation-history/count":{"get":{"x-controller-name":"ConversationHistoryController","x-operation-name":"count","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"ConversationHistory model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"ConversationHistory.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ConversationHistory>"}}}}],"operationId":"ConversationHistoryController.count"}},"/conversation-history/{id}":{"put":{"x-controller-name":"ConversationHistoryController","x-operation-name":"replaceById","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"Return value of ConversationHistoryController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ConversationHistory PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistory"}}},"x-parameter-index":1},"operationId":"ConversationHistoryController.replaceById"},"patch":{"x-controller-name":"ConversationHistoryController","x-operation-name":"updateById","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"Return value of ConversationHistoryController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ConversationHistory PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistoryPartial"}}},"x-parameter-index":1},"operationId":"ConversationHistoryController.updateById"},"get":{"x-controller-name":"ConversationHistoryController","x-operation-name":"findById","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"ConversationHistory model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistoryWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistory.Filter"}}}}],"operationId":"ConversationHistoryController.findById"},"delete":{"x-controller-name":"ConversationHistoryController","x-operation-name":"deleteById","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"Return value of ConversationHistoryController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ConversationHistory DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ConversationHistoryController.deleteById"}},"/conversation-history":{"post":{"x-controller-name":"ConversationHistoryController","x-operation-name":"create","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"ConversationHistory model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistory"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewConversationHistory"}}}},"operationId":"ConversationHistoryController.create"},"patch":{"x-controller-name":"ConversationHistoryController","x-operation-name":"updateAll","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"ConversationHistory PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"ConversationHistory.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ConversationHistory>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistoryPartial"}}}},"operationId":"ConversationHistoryController.updateAll"},"get":{"x-controller-name":"ConversationHistoryController","x-operation-name":"find","tags":["ConversationHistoryController"],"description":"","responses":{"200":{"description":"Array of ConversationHistory model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationHistoryWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistory.Filter1"}}}}],"operationId":"ConversationHistoryController.find"}},"/conversation-states/by-thread/{threadId}":{"patch":{"x-controller-name":"ConversationsStateController","x-operation-name":"updateByThreadId","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"ConversationState updated by threadId","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsStatePartial"}}}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsStatePartial"}}},"x-parameter-index":1},"operationId":"ConversationsStateController.updateByThreadId"}},"/conversation-states/close-thread/{threadId}":{"patch":{"x-controller-name":"ConversationsStateController","x-operation-name":"closeByThreadId","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"Conversation closed or reopened by threadId","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"},"isConversationClosed":{"type":"boolean"}}}}}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["isConversationClosed"],"properties":{"isConversationClosed":{"type":"boolean"}}}}},"x-parameter-index":1},"operationId":"ConversationsStateController.closeByThreadId"}},"/conversation-states/count":{"get":{"x-controller-name":"ConversationsStateController","x-operation-name":"count","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"ConversationState model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"conversations_state.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ConversationsState>"}}}}],"operationId":"ConversationsStateController.count"}},"/conversation-states/{id}":{"put":{"x-controller-name":"ConversationsStateController","x-operation-name":"replaceById","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"Return value of ConversationsStateController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ConversationState PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsState"}}},"x-parameter-index":1},"operationId":"ConversationsStateController.replaceById"},"patch":{"x-controller-name":"ConversationsStateController","x-operation-name":"updateById","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"Return value of ConversationsStateController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ConversationState PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsStatePartial"}}},"x-parameter-index":1},"operationId":"ConversationsStateController.updateById"},"get":{"x-controller-name":"ConversationsStateController","x-operation-name":"findById","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"ConversationState model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsStateWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/conversations_state.Filter"}}}}],"operationId":"ConversationsStateController.findById"},"delete":{"x-controller-name":"ConversationsStateController","x-operation-name":"deleteById","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"Return value of ConversationsStateController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ConversationState DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ConversationsStateController.deleteById"}},"/conversation-states":{"post":{"x-controller-name":"ConversationsStateController","x-operation-name":"create","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"ConversationState model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsState"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewConversationState"}}}},"operationId":"ConversationsStateController.create"},"patch":{"x-controller-name":"ConversationsStateController","x-operation-name":"updateAll","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"ConversationState PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"conversations_state.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ConversationsState>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsStatePartial"}}}},"operationId":"ConversationsStateController.updateAll"},"get":{"x-controller-name":"ConversationsStateController","x-operation-name":"find","tags":["ConversationsStateController"],"description":"","responses":{"200":{"description":"Array of ConversationState model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationsStateWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/conversations_state.Filter1"}}}}],"operationId":"ConversationsStateController.find"}},"/conversations/count":{"get":{"x-controller-name":"ConversationsController","x-operation-name":"count","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Conversation model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"conversations.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Conversation>"}}}}],"operationId":"ConversationsController.count"}},"/conversations/count-groups":{"get":{"x-controller-name":"ConversationsController","x-operation-name":"countGroups","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Conversation groups count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/conversations.Filter"}}}}],"operationId":"ConversationsController.countGroups"}},"/conversations/export":{"get":{"x-controller-name":"ConversationsController","x-operation-name":"exportConversationsSummary","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Export conversations summary to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"ConversationsController.exportConversationsSummary"}},"/conversations/export-thread/{threadId}":{"get":{"x-controller-name":"ConversationsController","x-operation-name":"exportThreadMessages","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Export specific thread messages to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ConversationsController.exportThreadMessages"}},"/conversations/grouped":{"get":{"x-controller-name":"ConversationsController","x-operation-name":"findConversations","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Array of Conversation model instances grouped by thread, enriched with state and unread count","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/conversations.Filter"}}}}],"operationId":"ConversationsController.findConversations"}},"/conversations/needs-attention":{"get":{"x-controller-name":"ConversationsController","x-operation-name":"findNeedsAttention","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Conversations where a human takeover was requested and not yet handled","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"operationId":"ConversationsController.findNeedsAttention"}},"/conversations/{threadId}/read":{"patch":{"x-controller-name":"ConversationsController","x-operation-name":"markAsRead","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Return value of ConversationsController.markAsRead","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Marks all messages in a thread as read for the calling agent"}}}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ConversationsController.markAsRead"}},"/conversations/{id}":{"put":{"x-controller-name":"ConversationsController","x-operation-name":"replaceById","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Return value of ConversationsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Conversation PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}},"x-parameter-index":1},"operationId":"ConversationsController.replaceById"},"patch":{"x-controller-name":"ConversationsController","x-operation-name":"updateById","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Return value of ConversationsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Conversation PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationPartial"}}},"x-parameter-index":1},"operationId":"ConversationsController.updateById"},"get":{"x-controller-name":"ConversationsController","x-operation-name":"findById","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Conversation model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/conversations.Filter1"}}}}],"operationId":"ConversationsController.findById"},"delete":{"x-controller-name":"ConversationsController","x-operation-name":"deleteById","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Return value of ConversationsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Conversation DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ConversationsController.deleteById"}},"/conversations":{"post":{"x-controller-name":"ConversationsController","x-operation-name":"create","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Conversation model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewConversation"}}}},"operationId":"ConversationsController.create"},"patch":{"x-controller-name":"ConversationsController","x-operation-name":"updateAll","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Conversation PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"conversations.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Conversation>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationPartial"}}}},"operationId":"ConversationsController.updateAll"},"get":{"x-controller-name":"ConversationsController","x-operation-name":"find","tags":["ConversationsController"],"description":"","responses":{"200":{"description":"Array of Conversation model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/conversations.Filter"}}}}],"operationId":"ConversationsController.find"}},"/crm-configs/count":{"get":{"x-controller-name":"CrmConfigController","x-operation-name":"count","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"CrmConfig model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"crm_config.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<CrmConfig>"}}}}],"operationId":"CrmConfigController.count"}},"/crm-configs/{id}/upload-icon":{"post":{"x-controller-name":"CrmConfigController","x-operation-name":"uploadIcon","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"Upload icon for CRM config","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"filePath":{"type":"string"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CrmConfigController.uploadIcon"}},"/crm-configs/{id}":{"put":{"x-controller-name":"CrmConfigController","x-operation-name":"replaceById","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"Return value of CrmConfigController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CrmConfig PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmConfig"}}},"x-parameter-index":1},"operationId":"CrmConfigController.replaceById"},"patch":{"x-controller-name":"CrmConfigController","x-operation-name":"updateById","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"Return value of CrmConfigController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CrmConfig PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmConfigPartial"}}},"x-parameter-index":1},"operationId":"CrmConfigController.updateById"},"get":{"x-controller-name":"CrmConfigController","x-operation-name":"findById","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"CrmConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmConfigWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/crm_config.Filter"}}}}],"operationId":"CrmConfigController.findById"}},"/crm-configs":{"post":{"x-controller-name":"CrmConfigController","x-operation-name":"create","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"CrmConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmConfig"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCrmConfig"}}}},"operationId":"CrmConfigController.create"},"patch":{"x-controller-name":"CrmConfigController","x-operation-name":"updateAll","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"CrmConfig PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"crm_config.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<CrmConfig>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmConfigPartial"}}}},"operationId":"CrmConfigController.updateAll"},"get":{"x-controller-name":"CrmConfigController","x-operation-name":"find","tags":["CrmConfigController"],"description":"","responses":{"200":{"description":"Array of CrmConfig model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmConfigWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/crm_config.Filter1"}}}}],"operationId":"CrmConfigController.find"}},"/dashboard/activity":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getDashboardActivity","tags":["DashboardController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Paginated activity log entries"}}}}},"parameters":[{"name":"page","in":"query","schema":{"type":"number"}},{"name":"pageSize","in":"query","schema":{"type":"number"}}],"operationId":"DashboardController.getDashboardActivity"}},"/dashboard/agent-performance/{agentId}/avg-close-time":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getAgentAverageCloseTime","tags":["DashboardController"],"description":"","responses":{"200":{"description":"Average time to close for an agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCloseTime"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Authentication required"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"description":"Insufficient permissions"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"description":"Internal server error"}}}}},"parameters":[{"name":"agentId","in":"path","schema":{"type":"number"},"required":true},{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}}],"operationId":"DashboardController.getAgentAverageCloseTime"}},"/dashboard/agent-performance":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getAgentPerformance","tags":["DashboardController"],"description":"","responses":{"200":{"description":"Agent performance ranking, paginated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPerformancePage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Authentication required"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"description":"Insufficient permissions"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"description":"Internal server error"}}}}},"parameters":[{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"number"}},{"name":"pageSize","in":"query","schema":{"type":"number"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"DashboardController.getAgentPerformance"}},"/dashboard/alerts":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getDashboardAlerts","tags":["DashboardController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Dashboard alerts: sin seguimiento, próximas a vencer, actividades vencidas"}}}}},"parameters":[{"name":"tab","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"number"}},{"name":"pageSize","in":"query","schema":{"type":"number"}},{"name":"filterAgentId","in":"query","schema":{"type":"number"}},{"name":"filterBusinessUnitId","in":"query","schema":{"type":"number"}},{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}}],"operationId":"DashboardController.getDashboardAlerts"}},"/dashboard/objetivos":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getDashboardObjetivos","tags":["DashboardController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Monthly objetivos progress vs targets"}}}}},"parameters":[{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}}],"operationId":"DashboardController.getDashboardObjetivos"}},"/dashboard/pipeline":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getPipelineChart","tags":["DashboardController"],"description":"","responses":{"200":{"description":"Pipeline chart grouped by stage","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PipelineStageData"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Authentication required"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"description":"Insufficient permissions"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"description":"Internal server error"}}}}},"parameters":[{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}},{"name":"stageIds","in":"query","schema":{"type":"string"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}}],"operationId":"DashboardController.getPipelineChart"}},"/dashboard/sales-projection":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getDashboardSalesProjection","tags":["DashboardController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Sales projection chart data"}}}}},"parameters":[{"name":"month","in":"query","schema":{"type":"number"}},{"name":"year","in":"query","schema":{"type":"number"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"filterAgentId","in":"query","schema":{"type":"number"}}],"operationId":"DashboardController.getDashboardSalesProjection"}},"/dashboard-info/range":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getDashboardInfoWithRange","tags":["DashboardController"],"description":"","responses":{"200":{"description":"Dashboard information with custom date range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInfo"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"description":"Invalid date format"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Authentication required"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"description":"Insufficient permissions"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"description":"Internal server error"}}}}},"parameters":[{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}}],"operationId":"DashboardController.getDashboardInfoWithRange"}},"/dashboard-info":{"get":{"x-controller-name":"DashboardController","x-operation-name":"getDashboardInfo","tags":["DashboardController"],"description":"","responses":{"200":{"description":"Dashboard information with all metrics and data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInfo"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Authentication required"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"description":"Insufficient permissions"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"description":"Internal server error"}}}}},"operationId":"DashboardController.getDashboardInfo"}},"/documents/export-with-chunks":{"get":{"x-controller-name":"DocumentController","x-operation-name":"exportDocumentsWithChunks","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Export documents with chunks to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"DocumentController.exportDocumentsWithChunks"}},"/documents/stats":{"get":{"x-controller-name":"DocumentController","x-operation-name":"getDocumentStats","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.getDocumentStats","content":{}}},"operationId":"DocumentController.getDocumentStats"}},"/documents/upload":{"post":{"x-controller-name":"DocumentController","x-operation-name":"uploadDocument2","tags":["DocumentController"],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true},"responses":{"200":{"description":"Documento subido exitosamente","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"fileSize":{"type":"number"},"status":{"type":"string"},"message":{"type":"string"}}}}}},"400":{"description":"Error en el archivo subido"}},"description":"","operationId":"DocumentController.uploadDocument2"}},"/documents/{id}/chunks/{chunkId}":{"get":{"x-controller-name":"DocumentController","x-operation-name":"getDocumentChunk","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.getDocumentChunk","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"chunkId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DocumentController.getDocumentChunk"}},"/documents/{id}/chunks":{"get":{"x-controller-name":"DocumentController","x-operation-name":"getDocumentChunks","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.getDocumentChunks","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"offset","in":"query","schema":{"type":"number"}}],"operationId":"DocumentController.getDocumentChunks"}},"/documents/{id}/reprocess":{"patch":{"x-controller-name":"DocumentController","x-operation-name":"reprocessDocument","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.reprocessDocument","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DocumentController.reprocessDocument"}},"/documents/{id}":{"get":{"x-controller-name":"DocumentController","x-operation-name":"getDocument","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.getDocument","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DocumentController.getDocument"},"delete":{"x-controller-name":"DocumentController","x-operation-name":"deleteDocument","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.deleteDocument","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DocumentController.deleteDocument"}},"/documents":{"get":{"x-controller-name":"DocumentController","x-operation-name":"getDocuments","tags":["DocumentController"],"description":"","responses":{"200":{"description":"Return value of DocumentController.getDocuments","content":{}}},"parameters":[{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"offset","in":"query","schema":{"type":"number"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"DocumentController.getDocuments"}},"/file-by-lead":{"get":{"x-controller-name":"UploadFilesController","x-operation-name":"findFileByPath","tags":["UploadFilesController"],"description":"","responses":{"200":{"description":"return file by path","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"path","in":"query","schema":{"type":"string"}}],"operationId":"UploadFilesController.findFileByPath"}},"/form-leads/create/{secretkey}":{"post":{"x-controller-name":"FormLeadController","x-operation-name":"create","tags":["FormLeadController"],"description":"","responses":{"200":{"description":"Lead created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads"}}}}},"parameters":[{"name":"secretkey","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/ContactsExcluding_id_"},"lead":{"$ref":"#/components/schemas/LeadsExcluding_id-contactId-agentId_"}}}}},"x-parameter-index":1},"operationId":"FormLeadController.create"}},"/instructions/by-page/{pageId}":{"get":{"x-controller-name":"InstructionsController","x-operation-name":"findByPage","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Latest instruction for a page (falls back to global prompt)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsWithRelations"}}}}},"parameters":[{"name":"pageId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"InstructionsController.findByPage"}},"/instructions/count":{"get":{"x-controller-name":"InstructionsController","x-operation-name":"count","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Instructions model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Instructions.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Instructions>"}}}}],"operationId":"InstructionsController.count"}},"/instructions/latest":{"get":{"x-controller-name":"InstructionsController","x-operation-name":"findLatest","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Latest instruction entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsWithRelations"}}}}},"operationId":"InstructionsController.findLatest"}},"/instructions/{id}":{"put":{"x-controller-name":"InstructionsController","x-operation-name":"replaceById","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Return value of InstructionsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Instructions PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Instructions"}}},"x-parameter-index":1},"operationId":"InstructionsController.replaceById"},"patch":{"x-controller-name":"InstructionsController","x-operation-name":"updateById","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Return value of InstructionsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Instructions PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsPartial"}}},"x-parameter-index":1},"operationId":"InstructionsController.updateById"},"get":{"x-controller-name":"InstructionsController","x-operation-name":"findById","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Instructions model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Instructions.Filter"}}}}],"operationId":"InstructionsController.findById"},"delete":{"x-controller-name":"InstructionsController","x-operation-name":"deleteById","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Return value of InstructionsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Instructions DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"InstructionsController.deleteById"}},"/instructions":{"post":{"x-controller-name":"InstructionsController","x-operation-name":"create","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Instructions model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Instructions"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewInstructions"}}}},"operationId":"InstructionsController.create"},"patch":{"x-controller-name":"InstructionsController","x-operation-name":"updateAll","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Instructions PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Instructions.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Instructions>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsPartial"}}}},"operationId":"InstructionsController.updateAll"},"get":{"x-controller-name":"InstructionsController","x-operation-name":"find","tags":["InstructionsController"],"description":"","responses":{"200":{"description":"Array of Instructions model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstructionsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Instructions.Filter1"}}}}],"operationId":"InstructionsController.find"}},"/internal-messages/contacts/{userId}":{"get":{"x-controller-name":"InternalMessageController","x-operation-name":"getContacts","tags":["InternalMessageController"],"description":"","responses":{"200":{"description":"Agents grouped by business unit for DM","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["businessUnitId","businessUnitName","agents"],"properties":{"businessUnitId":{"type":"number"},"businessUnitName":{"type":"string"},"agents":{"type":"array","items":{"type":"object"}}}}}}}}},"parameters":[{"name":"userId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"InternalMessageController.getContacts"}},"/internal-messages/thread/{threadId}/read":{"patch":{"x-controller-name":"InternalMessageController","x-operation-name":"markAsRead","tags":["InternalMessageController"],"description":"","responses":{"200":{"description":"Return value of InternalMessageController.markAsRead","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Thread marked as read"}}}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true},{"name":"agentId","in":"query","schema":{"type":"number"}}],"operationId":"InternalMessageController.markAsRead"}},"/internal-messages/thread/{threadId}/unread-count":{"get":{"x-controller-name":"InternalMessageController","x-operation-name":"getUnreadCount","tags":["InternalMessageController"],"description":"","responses":{"200":{"description":"Return value of InternalMessageController.getUnreadCount","content":{}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true},{"name":"agentId","in":"query","schema":{"type":"number"}}],"operationId":"InternalMessageController.getUnreadCount"}},"/internal-messages/thread/{threadId}":{"get":{"x-controller-name":"InternalMessageController","x-operation-name":"getByThread","tags":["InternalMessageController"],"description":"","responses":{"200":{"description":"Messages for a DM thread","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InternalMessage"}}}}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"InternalMessageController.getByThread"}},"/internal-messages/{id}":{"delete":{"x-controller-name":"InternalMessageController","x-operation-name":"delete","tags":["InternalMessageController"],"description":"","responses":{"200":{"description":"Return value of InternalMessageController.delete","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Message soft-deleted"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"actorId","in":"query","schema":{"type":"number"}}],"operationId":"InternalMessageController.delete"}},"/internal-messages":{"post":{"x-controller-name":"InternalMessageController","x-operation-name":"create","tags":["InternalMessageController"],"description":"","responses":{"200":{"description":"Return value of InternalMessageController.create","content":{}},"201":{"description":"Message created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalMessage"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"InternalMessageController.create"}},"/inventory/adjust":{"post":{"x-controller-name":"InventoryController","x-operation-name":"adjustStock","tags":["InventoryController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Stock adjusted"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["productId","businessUnitId","quantityDelta"],"properties":{"productId":{"type":"number"},"businessUnitId":{"type":"number"},"quantityDelta":{"type":"number"},"observations":{"type":"string"}}}}}},"operationId":"InventoryController.adjustStock"}},"/inventory/branches-for-product/{productId}":{"get":{"x-controller-name":"InventoryController","x-operation-name":"getBranchesForProduct","tags":["InventoryController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Available branches for a product based on its category"}}}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"InventoryController.getBranchesForProduct"}},"/inventory/bulk-update":{"post":{"x-controller-name":"InventoryController","x-operation-name":"bulkUpdate","tags":["InventoryController"],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true},"responses":{"200":{"description":"Bulk update result"}},"description":"","operationId":"InventoryController.bulkUpdate"}},"/inventory/export":{"get":{"x-controller-name":"InventoryController","x-operation-name":"exportExcel","tags":["InventoryController"],"description":"","responses":{"200":{"description":"Excel export","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"categoryId","in":"query","schema":{"type":"number"}},{"name":"categoryIds","in":"query","schema":{"type":"string"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"InventoryController.exportExcel"}},"/inventory/log/{productId}":{"get":{"x-controller-name":"InventoryController","x-operation-name":"getLog","tags":["InventoryController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Inventory change log for a product"}}}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true},{"name":"businessUnitId","in":"query","schema":{"type":"number"}}],"operationId":"InventoryController.getLog"}},"/inventory/stats":{"get":{"x-controller-name":"InventoryController","x-operation-name":"getStats","tags":["InventoryController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Inventory stats"}}}}},"parameters":[{"name":"categoryId","in":"query","schema":{"type":"number"}},{"name":"categoryIds","in":"query","schema":{"type":"string"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"InventoryController.getStats"}},"/inventory/summary/{productId}":{"get":{"x-controller-name":"InventoryController","x-operation-name":"getProductSummary","tags":["InventoryController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Product inventory summary per branch"}}}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"InventoryController.getProductSummary"}},"/inventory":{"get":{"x-controller-name":"InventoryController","x-operation-name":"getInventoryList","tags":["InventoryController"],"description":"","responses":{"200":{"description":"Return value of InventoryController.getInventoryList","content":{}}},"parameters":[{"name":"categoryId","in":"query","schema":{"type":"number"}},{"name":"categoryIds","in":"query","schema":{"type":"string"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"pageIndex","in":"query","schema":{"type":"number"}}],"operationId":"InventoryController.getInventoryList"}},"/lead/lead-document/{id}":{"delete":{"x-controller-name":"LeadsLeadDocumentsController","x-operation-name":"deleteLeadDocument","tags":["LeadsLeadDocumentsController"],"description":"","responses":{"200":{"description":"Return value of LeadsLeadDocumentsController.deleteLeadDocument","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"LeadsLeadDocumentsController.deleteLeadDocument"}},"/lead-origens/count":{"get":{"x-controller-name":"OriginLeadsController","x-operation-name":"count","tags":["OriginLeadsController"],"description":"","responses":{"200":{"description":"LeadOrigen model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"lead_origen.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<LeadOrigen>"}}}}],"operationId":"OriginLeadsController.count"}},"/lead-origens/{id}":{"patch":{"x-controller-name":"OriginLeadsController","x-operation-name":"updateById","tags":["OriginLeadsController"],"description":"","responses":{"200":{"description":"Return value of OriginLeadsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LeadOrigen PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadOrigenPartial"}}},"x-parameter-index":1},"operationId":"OriginLeadsController.updateById"},"get":{"x-controller-name":"OriginLeadsController","x-operation-name":"findById","tags":["OriginLeadsController"],"description":"","responses":{"200":{"description":"LeadOrigen model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadOrigenWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/lead_origen.Filter"}}}}],"operationId":"OriginLeadsController.findById"},"delete":{"x-controller-name":"OriginLeadsController","x-operation-name":"deleteById","tags":["OriginLeadsController"],"description":"","responses":{"200":{"description":"Return value of OriginLeadsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LeadOrigen DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"OriginLeadsController.deleteById"}},"/lead-origens":{"post":{"x-controller-name":"OriginLeadsController","x-operation-name":"create","tags":["OriginLeadsController"],"description":"","responses":{"200":{"description":"LeadOrigen model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadOrigen"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLeadOrigen"}}}},"operationId":"OriginLeadsController.create"},"get":{"x-controller-name":"OriginLeadsController","x-operation-name":"find","tags":["OriginLeadsController"],"description":"","responses":{"200":{"description":"Array of LeadOrigen model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadOrigenWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/lead_origen.Filter1"}}}}],"operationId":"OriginLeadsController.find"}},"/leads/count":{"get":{"x-controller-name":"LeadsController","x-operation-name":"count","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Leads model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Leads.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Leads>"}}}}],"operationId":"LeadsController.count"}},"/leads/export":{"post":{"x-controller-name":"LeadsController","x-operation-name":"exportLeads","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Export leads to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"filtersSelected":{"type":"array","items":{"type":"object"}}}}}}},"operationId":"LeadsController.exportLeads"}},"/leads/probability":{"get":{"x-controller-name":"LeadsController","x-operation-name":"getProbability","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Calculated closing probability percentage","content":{"application/json":{"schema":{"type":"object","properties":{"probability":{"type":"number"}}}}}}},"operationId":"LeadsController.getProbability"}},"/leads/{id}/lead-documents":{"get":{"x-controller-name":"LeadsLeadDocumentsController","x-operation-name":"find","tags":["LeadsLeadDocumentsController"],"responses":{"200":{"description":"Array of Leads has many LeadDocuments","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadDocuments"}}}}}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}],"operationId":"LeadsLeadDocumentsController.find"}},"/leads/{id}/products":{"post":{"x-controller-name":"LeadsController","x-operation-name":"saveLeadProducts","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Return value of LeadsController.saveLeadProducts","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"number"},"quantity":{"type":"number"},"unitPrice":{"type":"number"}}}}}},"x-parameter-index":1},"operationId":"LeadsController.saveLeadProducts"},"get":{"x-controller-name":"LeadsController","x-operation-name":"getLeadProducts","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Return value of LeadsController.getLeadProducts","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"LeadsController.getLeadProducts"}},"/leads/{id}/redistribute":{"post":{"x-controller-name":"BusinessUnitConfigurationController","x-operation-name":"redistributeLead","tags":["BusinessUnitConfigurationController"],"description":"","responses":{"200":{"description":"Redistribute a lead to a different agent","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"number"}},"required":["agentId"]}}},"x-parameter-index":1},"operationId":"BusinessUnitConfigurationController.redistributeLead"}},"/leads/{id}/won":{"post":{"x-controller-name":"LeadsController","x-operation-name":"markAsWon","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Return value of LeadsController.markAsWon","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["newStageId"],"properties":{"newStageId":{"type":"number"},"businessUnitId":{"type":"number"},"businessUnitOverrides":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"number"},"businessUnitId":{"type":"number"}}}}}}}},"x-parameter-index":1},"operationId":"LeadsController.markAsWon"}},"/leads/{id}":{"put":{"x-controller-name":"LeadsController","x-operation-name":"replaceById","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Return value of LeadsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Leads PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads"}}},"x-parameter-index":1},"operationId":"LeadsController.replaceById"},"patch":{"x-controller-name":"LeadsController","x-operation-name":"updateById","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Return value of LeadsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Leads PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadsPartial"}}},"x-parameter-index":1},"operationId":"LeadsController.updateById"},"get":{"x-controller-name":"LeadsController","x-operation-name":"findById","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Leads model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads.Filter"}}}}],"operationId":"LeadsController.findById"},"delete":{"x-controller-name":"LeadsController","x-operation-name":"deleteById","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Return value of LeadsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Leads DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"LeadsController.deleteById"}},"/leads":{"post":{"x-controller-name":"LeadsController","x-operation-name":"create","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Leads model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLeads"}}}},"operationId":"LeadsController.create"},"patch":{"x-controller-name":"LeadsController","x-operation-name":"updateAll","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Leads PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Leads.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Leads>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadsPartial"}}}},"operationId":"LeadsController.updateAll"},"get":{"x-controller-name":"LeadsController","x-operation-name":"find","tags":["LeadsController"],"description":"","responses":{"200":{"description":"Array of Leads model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads.Filter1"}}}}],"operationId":"LeadsController.find"}},"/leads-sources/count":{"get":{"x-controller-name":"LeadsSourceController","x-operation-name":"count","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"LeadsSource model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"LeadSources.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<LeadSources>"}}}}],"operationId":"LeadsSourceController.count"}},"/leads-sources/{id}":{"put":{"x-controller-name":"LeadsSourceController","x-operation-name":"replaceById","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"Return value of LeadsSourceController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LeadsSource PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSources"}}},"x-parameter-index":1},"operationId":"LeadsSourceController.replaceById"},"patch":{"x-controller-name":"LeadsSourceController","x-operation-name":"updateById","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"Return value of LeadsSourceController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LeadsSource PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSourcesPartial"}}},"x-parameter-index":1},"operationId":"LeadsSourceController.updateById"},"get":{"x-controller-name":"LeadsSourceController","x-operation-name":"findById","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"LeadsSource model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSourcesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSources.Filter"}}}}],"operationId":"LeadsSourceController.findById"},"delete":{"x-controller-name":"LeadsSourceController","x-operation-name":"deleteById","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"Return value of LeadsSourceController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LeadsSource DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"LeadsSourceController.deleteById"}},"/leads-sources":{"post":{"x-controller-name":"LeadsSourceController","x-operation-name":"create","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"LeadsSource model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSources"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLeadsSource"}}}},"operationId":"LeadsSourceController.create"},"patch":{"x-controller-name":"LeadsSourceController","x-operation-name":"updateAll","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"LeadsSource PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"LeadSources.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<LeadSources>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSourcesPartial"}}}},"operationId":"LeadsSourceController.updateAll"},"get":{"x-controller-name":"LeadsSourceController","x-operation-name":"find","tags":["LeadsSourceController"],"description":"","responses":{"200":{"description":"Array of LeadsSource model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadSourcesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSources.Filter1"}}}}],"operationId":"LeadsSourceController.find"}},"/link-marketings/by-token/{token}":{"get":{"x-controller-name":"LinksController","x-operation-name":"findByToken","tags":["LinksController"],"description":"","responses":{"200":{"description":"LinkMarketing model instance by token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkMarketingWithRelations"}}}}},"parameters":[{"name":"token","in":"path","schema":{"type":"string"},"required":true}],"operationId":"LinksController.findByToken"}},"/link-marketings/count":{"get":{"x-controller-name":"LinksController","x-operation-name":"count","tags":["LinksController"],"description":"","responses":{"200":{"description":"LinkMarketing model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"link_marketing.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<LinkMarketing>"}}}}],"operationId":"LinksController.count"}},"/link-marketings/{id}":{"post":{"x-controller-name":"LinksController","x-operation-name":"createTokenToMarketing","tags":["LinksController"],"description":"","responses":{"200":{"description":"LinkMarketing model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkMarketing"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/newLink"}}},"x-parameter-index":1},"operationId":"LinksController.createTokenToMarketing"},"patch":{"x-controller-name":"LinksController","x-operation-name":"updateById","tags":["LinksController"],"description":"","responses":{"200":{"description":"Return value of LinksController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LinkMarketing PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkMarketingPartial"}}},"x-parameter-index":1},"operationId":"LinksController.updateById"},"get":{"x-controller-name":"LinksController","x-operation-name":"findById","tags":["LinksController"],"description":"","responses":{"200":{"description":"LinkMarketing model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkMarketingWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/link_marketing.Filter"}}}}],"operationId":"LinksController.findById"},"delete":{"x-controller-name":"LinksController","x-operation-name":"deleteLinkMarketing","tags":["LinksController"],"description":"","responses":{"200":{"description":"Return value of LinksController.deleteLinkMarketing","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"LinkMarketing DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"LinksController.deleteLinkMarketing"}},"/link-marketings":{"get":{"x-controller-name":"LinksController","x-operation-name":"find","tags":["LinksController"],"description":"","responses":{"200":{"description":"Array of LinkMarketing model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LinkMarketingWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/link_marketing.Filter1"}}}}],"operationId":"LinksController.find"}},"/logout":{"post":{"x-controller-name":"LogoutController","x-operation-name":"logout","tags":["LogoutController"],"description":"","responses":{"200":{"description":"Return value of LogoutController.logout","content":{}}},"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"operationId":"LogoutController.logout"}},"/me/role":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getMyRole","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Role flags for the authenticated user"}}}}},"operationId":"CommissionsController.getMyRole"}},"/media/count":{"get":{"x-controller-name":"MediaController","x-operation-name":"count","tags":["MediaController"],"description":"","responses":{"200":{"description":"Media model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Media.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Media>"}}}}],"operationId":"MediaController.count"}},"/media/{id}":{"put":{"x-controller-name":"MediaController","x-operation-name":"replaceById","tags":["MediaController"],"description":"","responses":{"200":{"description":"Return value of MediaController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Media PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}},"x-parameter-index":1},"operationId":"MediaController.replaceById"},"patch":{"x-controller-name":"MediaController","x-operation-name":"updateById","tags":["MediaController"],"description":"","responses":{"200":{"description":"Return value of MediaController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Media PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaPartial"}}},"x-parameter-index":1},"operationId":"MediaController.updateById"},"get":{"x-controller-name":"MediaController","x-operation-name":"findById","tags":["MediaController"],"description":"","responses":{"200":{"description":"Media model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media.Filter"}}}}],"operationId":"MediaController.findById"},"delete":{"x-controller-name":"MediaController","x-operation-name":"deleteById","tags":["MediaController"],"description":"","responses":{"200":{"description":"Return value of MediaController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Media DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MediaController.deleteById"}},"/media":{"post":{"x-controller-name":"MediaController","x-operation-name":"create","tags":["MediaController"],"description":"","responses":{"200":{"description":"Media model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMedia"}}}},"operationId":"MediaController.create"},"patch":{"x-controller-name":"MediaController","x-operation-name":"updateAll","tags":["MediaController"],"description":"","responses":{"200":{"description":"Media PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Media.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Media>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaPartial"}}}},"operationId":"MediaController.updateAll"},"get":{"x-controller-name":"MediaController","x-operation-name":"find","tags":["MediaController"],"description":"","responses":{"200":{"description":"Array of Media model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MediaWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media.Filter1"}}}}],"operationId":"MediaController.find"}},"/modules/has-permission/{id}":{"get":{"x-controller-name":"ModulesController","x-operation-name":"hasPermission","tags":["ModulesController"],"description":"","responses":{"200":{"description":"Array of Modules model instances","content":{"application/json":{"schema":{"type":"object","properties":{"hasPermission":{"type":"boolean"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ModulesController.hasPermission"}},"/modules/list/{id}":{"get":{"x-controller-name":"ModulesController","x-operation-name":"findModulesPermissions","tags":["ModulesController"],"description":"","responses":{"200":{"description":"Array of Modules model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModulePermissionsWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ModulesController.findModulesPermissions"}},"/modules/user/id/{id}":{"get":{"x-controller-name":"ModulesController","x-operation-name":"findModulesByIdUser","tags":["ModulesController"],"description":"","responses":{"200":{"description":"Array of Modules model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModulesWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ModulesController.findModulesByIdUser"}},"/modules/user/{token}":{"get":{"x-controller-name":"ModulesController","x-operation-name":"findModulesByTokenUser","tags":["ModulesController"],"description":"","responses":{"200":{"description":"Array of Modules model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModulesWithRelations"}}}}}},"parameters":[{"name":"token","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ModulesController.findModulesByTokenUser"}},"/modules":{"get":{"x-controller-name":"ModulesController","x-operation-name":"findAllModules","tags":["ModulesController"],"description":"","responses":{"200":{"description":"Array of Modules model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModuleNodeModelWithRelations"}}}}}},"operationId":"ModulesController.findAllModules"}},"/modules-add-permissions":{"post":{"x-controller-name":"ModulesController","x-operation-name":"createModulesPermissions","tags":["ModulesController"],"description":"","responses":{"200":{"description":"Create permissions modules","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModulePermissions"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModulePermissionsPartialExcluding_id_"}}}},"description":"Create permissions modules"},"operationId":"ModulesController.createModulesPermissions"}},"/my-commissions/ranking":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getMyRanking","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Current month ranking for the authenticated agent"}}}}},"operationId":"CommissionsController.getMyRanking"}},"/my-commissions/stats":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getMyStats","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Commission stats for the authenticated agent"}}}}},"parameters":[{"name":"dateFrom","in":"query","schema":{"type":"string"}},{"name":"dateTo","in":"query","schema":{"type":"string"}}],"operationId":"CommissionsController.getMyStats"}},"/my-commissions":{"get":{"x-controller-name":"CommissionsController","x-operation-name":"getMyCommissions","tags":["CommissionsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Commissions for the authenticated agent"}}}}},"parameters":[{"name":"status","in":"query","schema":{"type":"string"}},{"name":"dateFrom","in":"query","schema":{"type":"string"}},{"name":"dateTo","in":"query","schema":{"type":"string"}},{"name":"classificationId","in":"query","schema":{"type":"number"}},{"name":"productCategoryId","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"skip","in":"query","schema":{"type":"number"}}],"operationId":"CommissionsController.getMyCommissions"}},"/notes/{id}":{"patch":{"x-controller-name":"NotesController","x-operation-name":"updateById","tags":["NotesController"],"description":"","responses":{"200":{"description":"Return value of NotesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Notes PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesPartial"}}},"x-parameter-index":1},"operationId":"NotesController.updateById"},"get":{"x-controller-name":"NotesController","x-operation-name":"findById","tags":["NotesController"],"description":"","responses":{"200":{"description":"Notes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotesController.findById"},"delete":{"x-controller-name":"NotesController","x-operation-name":"deleteById","tags":["NotesController"],"description":"","responses":{"200":{"description":"Return value of NotesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Notes DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotesController.deleteById"}},"/notes":{"post":{"x-controller-name":"NotesController","x-operation-name":"create","tags":["NotesController"],"description":"","responses":{"200":{"description":"Notes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notes"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewNotes"}}}},"operationId":"NotesController.create"}},"/notes-by-lead/{id}":{"get":{"x-controller-name":"NotesController","x-operation-name":"find","tags":["NotesController"],"description":"","responses":{"200":{"description":"Array of Notes model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotesWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notes.Filter"}}}}],"operationId":"NotesController.find"}},"/notifications/count":{"get":{"x-controller-name":"NotificationsController","x-operation-name":"count","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Notifications model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Notifications.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Notifications>"}}}}],"operationId":"NotificationsController.count"}},"/notifications/{id}":{"patch":{"x-controller-name":"NotificationsController","x-operation-name":"updateById","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Return value of NotificationsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Notifications PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsPartial"}}},"x-parameter-index":1},"operationId":"NotificationsController.updateById"},"get":{"x-controller-name":"NotificationsController","x-operation-name":"findById","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Notifications model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications.Filter"}}}}],"operationId":"NotificationsController.findById"},"delete":{"x-controller-name":"NotificationsController","x-operation-name":"deleteById","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Return value of NotificationsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Notifications DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationsController.deleteById"}},"/notifications":{"post":{"x-controller-name":"NotificationsController","x-operation-name":"create","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Notifications model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewNotifications"}}}},"operationId":"NotificationsController.create"},"get":{"x-controller-name":"NotificationsController","x-operation-name":"find","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Array of Notifications model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications.Filter1"}}}}],"operationId":"NotificationsController.find"}},"/notifications-mark-all/{id}":{"post":{"x-controller-name":"NotificationsController","x-operation-name":"markAllNotificationsByUser","tags":["NotificationsController"],"description":"","responses":{"200":{"description":"Return value of NotificationsController.markAllNotificationsByUser","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationsController.markAllNotificationsByUser"}},"/origins/count":{"get":{"x-controller-name":"OriginsController","x-operation-name":"count","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Origins model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Origins.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Origins>"}}}}],"operationId":"OriginsController.count"}},"/origins/{id}":{"put":{"x-controller-name":"OriginsController","x-operation-name":"replaceById","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Return value of OriginsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Origins PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Origins"}}},"x-parameter-index":1},"operationId":"OriginsController.replaceById"},"patch":{"x-controller-name":"OriginsController","x-operation-name":"updateById","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Return value of OriginsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Origins PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginsPartial"}}},"x-parameter-index":1},"operationId":"OriginsController.updateById"},"get":{"x-controller-name":"OriginsController","x-operation-name":"findById","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Origins model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Origins.Filter"}}}}],"operationId":"OriginsController.findById"},"delete":{"x-controller-name":"OriginsController","x-operation-name":"deleteById","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Return value of OriginsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Origins DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"OriginsController.deleteById"}},"/origins":{"post":{"x-controller-name":"OriginsController","x-operation-name":"create","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Origins model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Origins"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewOrigins"}}}},"operationId":"OriginsController.create"},"patch":{"x-controller-name":"OriginsController","x-operation-name":"updateAll","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Origins PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Origins.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Origins>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginsPartial"}}}},"operationId":"OriginsController.updateAll"},"get":{"x-controller-name":"OriginsController","x-operation-name":"find","tags":["OriginsController"],"description":"","responses":{"200":{"description":"Array of Origins model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OriginsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Origins.Filter1"}}}}],"operationId":"OriginsController.find"}},"/page-configurations/count":{"get":{"x-controller-name":"PageConfigurationController","x-operation-name":"count","tags":["PageConfigurationController"],"description":"","responses":{"200":{"description":"PageConfiguration model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"page_configuration.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<PageConfiguration>"}}}}],"operationId":"PageConfigurationController.count"}},"/page-configurations/{id}":{"patch":{"x-controller-name":"PageConfigurationController","x-operation-name":"updateById","tags":["PageConfigurationController"],"description":"","responses":{"200":{"description":"Return value of PageConfigurationController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PageConfiguration PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageConfigurationPartial"}}},"x-parameter-index":1},"operationId":"PageConfigurationController.updateById"},"get":{"x-controller-name":"PageConfigurationController","x-operation-name":"findById","tags":["PageConfigurationController"],"description":"","responses":{"200":{"description":"PageConfiguration model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageConfigurationWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/page_configuration.Filter"}}}}],"operationId":"PageConfigurationController.findById"},"delete":{"x-controller-name":"PageConfigurationController","x-operation-name":"deleteById","tags":["PageConfigurationController"],"description":"","responses":{"200":{"description":"Return value of PageConfigurationController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PageConfiguration DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"PageConfigurationController.deleteById"}},"/page-configurations":{"post":{"x-controller-name":"PageConfigurationController","x-operation-name":"create","tags":["PageConfigurationController"],"description":"","responses":{"200":{"description":"PageConfiguration model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageConfiguration"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPageConfiguration"}}}},"operationId":"PageConfigurationController.create"},"get":{"x-controller-name":"PageConfigurationController","x-operation-name":"find","tags":["PageConfigurationController"],"description":"","responses":{"200":{"description":"Array of PageConfiguration model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PageConfigurationWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/page_configuration.Filter1"}}}}],"operationId":"PageConfigurationController.find"}},"/payment-conditions/count":{"get":{"x-controller-name":"PaymentConditionsController","x-operation-name":"count","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"PaymentConditions model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"PaymentConditions.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<PaymentConditions>"}}}}],"operationId":"PaymentConditionsController.count"}},"/payment-conditions/{id}":{"put":{"x-controller-name":"PaymentConditionsController","x-operation-name":"replaceById","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"Return value of PaymentConditionsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PaymentConditions PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditions"}}},"x-parameter-index":1},"operationId":"PaymentConditionsController.replaceById"},"patch":{"x-controller-name":"PaymentConditionsController","x-operation-name":"updateById","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"Return value of PaymentConditionsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PaymentConditions PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditionsPartial"}}},"x-parameter-index":1},"operationId":"PaymentConditionsController.updateById"},"get":{"x-controller-name":"PaymentConditionsController","x-operation-name":"findById","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"PaymentConditions model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditionsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditions.Filter"}}}}],"operationId":"PaymentConditionsController.findById"},"delete":{"x-controller-name":"PaymentConditionsController","x-operation-name":"deleteById","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"Return value of PaymentConditionsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PaymentConditions DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"PaymentConditionsController.deleteById"}},"/payment-conditions":{"post":{"x-controller-name":"PaymentConditionsController","x-operation-name":"create","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"PaymentConditions model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditions"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPaymentConditions"}}}},"operationId":"PaymentConditionsController.create"},"patch":{"x-controller-name":"PaymentConditionsController","x-operation-name":"updateAll","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"PaymentConditions PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"PaymentConditions.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<PaymentConditions>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditionsPartial"}}}},"operationId":"PaymentConditionsController.updateAll"},"get":{"x-controller-name":"PaymentConditionsController","x-operation-name":"find","tags":["PaymentConditionsController"],"description":"","responses":{"200":{"description":"Array of PaymentConditions model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PaymentConditionsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConditions.Filter1"}}}}],"operationId":"PaymentConditionsController.find"}},"/ping":{"get":{"x-controller-name":"PingController","x-operation-name":"ping","tags":["PingController"],"responses":{"200":{"description":"Ping Response","content":{"application/json":{"schema":{"type":"object","properties":{"greeting":{"type":"string"},"date":{"type":"string"},"url":{"type":"string"},"headers":{"type":"object","properties":{"Content-Type":{"type":"string"}},"additionalProperties":true}}}}}}},"description":"","operationId":"PingController.ping"}},"/product-documents/{productId}/tracking-log":{"get":{"x-controller-name":"ProductDocumentsController","x-operation-name":"getTrackingLog","tags":["ProductDocumentsController"],"description":"","responses":{"200":{"description":"Return value of ProductDocumentsController.getTrackingLog","content":{}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductDocumentsController.getTrackingLog"}},"/product-documents/{productId}":{"post":{"x-controller-name":"ProductDocumentsController","x-operation-name":"uploadProductFiles","tags":["ProductDocumentsController"],"description":"","responses":{"200":{"description":"Return value of ProductDocumentsController.uploadProductFiles","content":{}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"array","items":{"type":"string","format":"binary"}}}}}},"description":"Upload files for a product","required":true,"x-parameter-index":1},"operationId":"ProductDocumentsController.uploadProductFiles"},"get":{"x-controller-name":"ProductDocumentsController","x-operation-name":"getProductDocuments","tags":["ProductDocumentsController"],"description":"","responses":{"200":{"description":"Return value of ProductDocumentsController.getProductDocuments","content":{}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductDocumentsController.getProductDocuments"}},"/product-documents/{id}":{"delete":{"x-controller-name":"ProductDocumentsController","x-operation-name":"deleteProductDocument","tags":["ProductDocumentsController"],"description":"","responses":{"200":{"description":"Return value of ProductDocumentsController.deleteProductDocument","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductDocumentsController.deleteProductDocument"}},"/product-inventories/count":{"get":{"x-controller-name":"ProductInventoryController","x-operation-name":"count","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"ProductInventory model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"product_inventory.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ProductInventory>"}}}}],"operationId":"ProductInventoryController.count"}},"/product-inventories/{id}":{"put":{"x-controller-name":"ProductInventoryController","x-operation-name":"replaceById","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"Return value of ProductInventoryController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductInventory PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInventory"}}},"x-parameter-index":1},"operationId":"ProductInventoryController.replaceById"},"patch":{"x-controller-name":"ProductInventoryController","x-operation-name":"updateById","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"Return value of ProductInventoryController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductInventory PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInventoryPartial"}}},"x-parameter-index":1},"operationId":"ProductInventoryController.updateById"},"get":{"x-controller-name":"ProductInventoryController","x-operation-name":"findById","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"ProductInventory model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInventoryWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product_inventory.Filter"}}}}],"operationId":"ProductInventoryController.findById"},"delete":{"x-controller-name":"ProductInventoryController","x-operation-name":"deleteById","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"Return value of ProductInventoryController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductInventory DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductInventoryController.deleteById"}},"/product-inventories":{"post":{"x-controller-name":"ProductInventoryController","x-operation-name":"create","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"ProductInventory model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInventory"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewProductInventory"}}}},"operationId":"ProductInventoryController.create"},"patch":{"x-controller-name":"ProductInventoryController","x-operation-name":"updateAll","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"ProductInventory PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"product_inventory.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ProductInventory>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInventoryPartial"}}}},"operationId":"ProductInventoryController.updateAll"},"get":{"x-controller-name":"ProductInventoryController","x-operation-name":"find","tags":["ProductInventoryController"],"description":"","responses":{"200":{"description":"Array of ProductInventory model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductInventoryWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product_inventory.Filter1"}}}}],"operationId":"ProductInventoryController.find"}},"/products/catalog":{"get":{"x-controller-name":"ProductsController","x-operation-name":"getCatalog","tags":["ProductsController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Products and services grouped by category and type"}}}}},"operationId":"ProductsController.getCatalog"}},"/products/count":{"get":{"x-controller-name":"ProductsController","x-operation-name":"count","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Products model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"products.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Products>"}}}}],"operationId":"ProductsController.count"}},"/products/export":{"post":{"x-controller-name":"ProductsController","x-operation-name":"exportProducts","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Export products to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"filtersSelected":{"type":"array","items":{"type":"object"}}}}}}},"operationId":"ProductsController.exportProducts"}},"/products/images/{imageId}":{"delete":{"x-controller-name":"ProductsController","x-operation-name":"deleteProductImage","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Return value of ProductsController.deleteProductImage","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductsMedia DELETE success"}}}}},"parameters":[{"name":"imageId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsController.deleteProductImage"}},"/products/purchase-tracking":{"get":{"x-controller-name":"ProductsController","x-operation-name":"getPurchaseTracking","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Products for purchase tracking kanban","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/ProductsWithRelations"}},"count":{"type":"number"}}}}}}},"parameters":[{"name":"stageId","in":"query","schema":{"type":"number"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"pageIndex","in":"query","schema":{"type":"number"}},{"name":"categoryId","in":"query","schema":{"type":"number"}},{"name":"createdOnGte","in":"query","schema":{"type":"string"}}],"operationId":"ProductsController.getPurchaseTracking"}},"/products/with-images":{"post":{"x-controller-name":"ProductsController","x-operation-name":"createWithImages","tags":["ProductsController"],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true},"responses":{"200":{"description":"Products model instance with images","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products"}}}}},"description":"","operationId":"ProductsController.createWithImages"}},"/products/{id}/images":{"get":{"x-controller-name":"ProductsController","x-operation-name":"getProductImages","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Array of product images","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductsMedia"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsController.getProductImages"}},"/products/{id}/move-stage":{"patch":{"x-controller-name":"ProductsController","x-operation-name":"moveStage","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Return value of ProductsController.moveStage","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Product stage updated and logged"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"stageId":{"type":"number"}},"required":["stageId"]}}},"x-parameter-index":1},"operationId":"ProductsController.moveStage"}},"/products/{id}/technical-sheet":{"post":{"x-controller-name":"ProductsController","x-operation-name":"uploadTechnicalSheet","tags":["ProductsController"],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":1},"responses":{"200":{"description":"Archivo subido y producto actualizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products"}}}},"400":{"description":"Error en archivo"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsController.uploadTechnicalSheet"}},"/products/{id}/view-file":{"get":{"x-controller-name":"ProductsController","x-operation-name":"viewFile","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Products File View","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsController.viewFile"}},"/products/{id}/with-images":{"patch":{"x-controller-name":"ProductsController","x-operation-name":"updateWithImages","tags":["ProductsController"],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":1},"responses":{"200":{"description":"Products model instance updated with images","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products"}}}}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsController.updateWithImages"}},"/products/{id}":{"put":{"x-controller-name":"ProductsController","x-operation-name":"replaceById","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Return value of ProductsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Products PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products"}}},"x-parameter-index":1},"operationId":"ProductsController.replaceById"},"patch":{"x-controller-name":"ProductsController","x-operation-name":"updateById","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Return value of ProductsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Products PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsPartial"}}},"x-parameter-index":1},"operationId":"ProductsController.updateById"},"get":{"x-controller-name":"ProductsController","x-operation-name":"findById","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Products model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/products.Filter"}}}}],"operationId":"ProductsController.findById"},"delete":{"x-controller-name":"ProductsController","x-operation-name":"deleteById","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Return value of ProductsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Products DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsController.deleteById"}},"/products":{"post":{"x-controller-name":"ProductsController","x-operation-name":"create","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Products model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewProducts"}}}},"operationId":"ProductsController.create"},"patch":{"x-controller-name":"ProductsController","x-operation-name":"updateAll","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Products PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"products.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Products>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsPartial"}}}},"operationId":"ProductsController.updateAll"},"get":{"x-controller-name":"ProductsController","x-operation-name":"find","tags":["ProductsController"],"description":"","responses":{"200":{"description":"Array of Products model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/products.Filter1"}}}}],"operationId":"ProductsController.find"}},"/products-media/count":{"get":{"x-controller-name":"ProductsMediaController","x-operation-name":"count","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"ProductsMedia model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"ProductsMedia.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ProductsMedia>"}}}}],"operationId":"ProductsMediaController.count"}},"/products-media/{id}":{"put":{"x-controller-name":"ProductsMediaController","x-operation-name":"replaceById","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"Return value of ProductsMediaController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductsMedia PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMedia"}}},"x-parameter-index":1},"operationId":"ProductsMediaController.replaceById"},"patch":{"x-controller-name":"ProductsMediaController","x-operation-name":"updateById","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"Return value of ProductsMediaController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductsMedia PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMediaPartial"}}},"x-parameter-index":1},"operationId":"ProductsMediaController.updateById"},"get":{"x-controller-name":"ProductsMediaController","x-operation-name":"findById","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"ProductsMedia model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMediaWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMedia.Filter"}}}}],"operationId":"ProductsMediaController.findById"},"delete":{"x-controller-name":"ProductsMediaController","x-operation-name":"deleteById","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"Return value of ProductsMediaController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ProductsMedia DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ProductsMediaController.deleteById"}},"/products-media":{"post":{"x-controller-name":"ProductsMediaController","x-operation-name":"create","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"ProductsMedia model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMedia"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewProductsMedia"}}}},"operationId":"ProductsMediaController.create"},"patch":{"x-controller-name":"ProductsMediaController","x-operation-name":"updateAll","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"ProductsMedia PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"ProductsMedia.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ProductsMedia>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMediaPartial"}}}},"operationId":"ProductsMediaController.updateAll"},"get":{"x-controller-name":"ProductsMediaController","x-operation-name":"find","tags":["ProductsMediaController"],"description":"","responses":{"200":{"description":"Array of ProductsMedia model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductsMediaWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsMedia.Filter1"}}}}],"operationId":"ProductsMediaController.find"}},"/public/form-leads":{"post":{"x-controller-name":"FormLeadController","x-operation-name":"createPublicLead","tags":["FormLeadController"],"description":"","responses":{"200":{"description":"Public lead created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["contact","lead"],"properties":{"contact":{"$ref":"#/components/schemas/ContactsExcluding_id_"},"lead":{"$ref":"#/components/schemas/LeadsExcluding_id-contactId-agentId_"}}}}}},"operationId":"FormLeadController.createPublicLead"}},"/purchase-tracking-stages/count":{"get":{"x-controller-name":"PurchaseTrackingStagesController","x-operation-name":"count","tags":["PurchaseTrackingStagesController"],"description":"","responses":{"200":{"description":"PurchaseTrackingStages model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"purchase_tracking_stages.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<PurchaseTrackingStages>"}}}}],"operationId":"PurchaseTrackingStagesController.count"}},"/purchase-tracking-stages/{id}":{"patch":{"x-controller-name":"PurchaseTrackingStagesController","x-operation-name":"updateById","tags":["PurchaseTrackingStagesController"],"description":"","responses":{"200":{"description":"Return value of PurchaseTrackingStagesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PurchaseTrackingStages PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseTrackingStagesPartial"}}},"x-parameter-index":1},"operationId":"PurchaseTrackingStagesController.updateById"},"get":{"x-controller-name":"PurchaseTrackingStagesController","x-operation-name":"findById","tags":["PurchaseTrackingStagesController"],"description":"","responses":{"200":{"description":"PurchaseTrackingStages model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseTrackingStagesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/purchase_tracking_stages.Filter"}}}}],"operationId":"PurchaseTrackingStagesController.findById"},"delete":{"x-controller-name":"PurchaseTrackingStagesController","x-operation-name":"deleteById","tags":["PurchaseTrackingStagesController"],"description":"","responses":{"200":{"description":"Return value of PurchaseTrackingStagesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"PurchaseTrackingStages DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"PurchaseTrackingStagesController.deleteById"}},"/purchase-tracking-stages":{"post":{"x-controller-name":"PurchaseTrackingStagesController","x-operation-name":"create","tags":["PurchaseTrackingStagesController"],"description":"","responses":{"200":{"description":"PurchaseTrackingStages model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseTrackingStages"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPurchaseTrackingStages"}}}},"operationId":"PurchaseTrackingStagesController.create"},"get":{"x-controller-name":"PurchaseTrackingStagesController","x-operation-name":"find","tags":["PurchaseTrackingStagesController"],"description":"","responses":{"200":{"description":"Array of PurchaseTrackingStages model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseTrackingStagesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/purchase_tracking_stages.Filter1"}}}}],"operationId":"PurchaseTrackingStagesController.find"}},"/quote-items/count":{"get":{"x-controller-name":"QuoteItemsController","x-operation-name":"count","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"QuoteItems model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"quote_items.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<QuoteItems>"}}}}],"operationId":"QuoteItemsController.count"}},"/quote-items/{id}":{"put":{"x-controller-name":"QuoteItemsController","x-operation-name":"replaceById","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"Return value of QuoteItemsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"QuoteItems PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteItems"}}},"x-parameter-index":1},"operationId":"QuoteItemsController.replaceById"},"patch":{"x-controller-name":"QuoteItemsController","x-operation-name":"updateById","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"Return value of QuoteItemsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"QuoteItems PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteItemsPartial"}}},"x-parameter-index":1},"operationId":"QuoteItemsController.updateById"},"get":{"x-controller-name":"QuoteItemsController","x-operation-name":"findById","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"QuoteItems model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteItemsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote_items.Filter"}}}}],"operationId":"QuoteItemsController.findById"},"delete":{"x-controller-name":"QuoteItemsController","x-operation-name":"deleteById","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"Return value of QuoteItemsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"QuoteItems DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"QuoteItemsController.deleteById"}},"/quote-items":{"post":{"x-controller-name":"QuoteItemsController","x-operation-name":"create","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"QuoteItems model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteItems"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewQuoteItems"}}}},"operationId":"QuoteItemsController.create"},"patch":{"x-controller-name":"QuoteItemsController","x-operation-name":"updateAll","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"QuoteItems PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"quote_items.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<QuoteItems>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteItemsPartial"}}}},"operationId":"QuoteItemsController.updateAll"},"get":{"x-controller-name":"QuoteItemsController","x-operation-name":"find","tags":["QuoteItemsController"],"description":"","responses":{"200":{"description":"Array of QuoteItems model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuoteItemsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote_items.Filter1"}}}}],"operationId":"QuoteItemsController.find"}},"/quotes/count":{"get":{"x-controller-name":"QuotesController","x-operation-name":"count","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Quotes model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"quotes.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Quotes>"}}}}],"operationId":"QuotesController.count"}},"/quotes/export/excel":{"post":{"x-controller-name":"QuotesController","x-operation-name":"exportQuotesToExcel","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Export quotes to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"filtersSelected":{"type":"array","items":{"type":"object"}}}}}}},"operationId":"QuotesController.exportQuotesToExcel"}},"/quotes/export/pdf":{"post":{"x-controller-name":"QuotesController","x-operation-name":"exportQuotesToPDF","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Export quotes to PDF","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"filtersSelected":{"type":"array","items":{"type":"object"}}}}}}},"operationId":"QuotesController.exportQuotesToPDF"}},"/quotes/{quoteId}/contract-pdf":{"get":{"x-controller-name":"CommercialTargetsController","x-operation-name":"generateContractPDF","tags":["CommercialTargetsController"],"description":"","responses":{"200":{"description":"Generated contract PDF for a quote","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"quoteId","in":"path","schema":{"type":"number"},"required":true},{"name":"categoryProductId","in":"query","schema":{"type":"number"}}],"operationId":"CommercialTargetsController.generateContractPDF"}},"/quotes/{id}/pdf":{"get":{"x-controller-name":"QuotesController","x-operation-name":"generatePDF","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Generate PDF for single quote","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"QuotesController.generatePDF"}},"/quotes/{id}/send-email":{"post":{"x-controller-name":"QuotesController","x-operation-name":"sendQuoteByEmail","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Send quote via email and update status to Enviado","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"recipientEmail":{"type":"string"},"customMessage":{"type":"string"}}}}},"x-parameter-index":1},"operationId":"QuotesController.sendQuoteByEmail"}},"/quotes/{id}":{"put":{"x-controller-name":"QuotesController","x-operation-name":"replaceById","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Return value of QuotesController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Quotes PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quotes"}}},"x-parameter-index":1},"operationId":"QuotesController.replaceById"},"patch":{"x-controller-name":"QuotesController","x-operation-name":"updateById","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Return value of QuotesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Quotes PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotesPartial"}}},"x-parameter-index":1},"operationId":"QuotesController.updateById"},"get":{"x-controller-name":"QuotesController","x-operation-name":"findById","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Quotes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quotes.Filter"}}}}],"operationId":"QuotesController.findById"},"delete":{"x-controller-name":"QuotesController","x-operation-name":"deleteById","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Return value of QuotesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Quotes DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"QuotesController.deleteById"}},"/quotes":{"post":{"x-controller-name":"QuotesController","x-operation-name":"create","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Quotes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quotes"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewQuotes"}}}},"operationId":"QuotesController.create"},"patch":{"x-controller-name":"QuotesController","x-operation-name":"updateAll","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Quotes PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"quotes.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Quotes>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotesPartial"}}}},"operationId":"QuotesController.updateAll"},"get":{"x-controller-name":"QuotesController","x-operation-name":"find","tags":["QuotesController"],"description":"","responses":{"200":{"description":"Array of Quotes model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuotesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quotes.Filter1"}}}}],"operationId":"QuotesController.find"}},"/reminders/count":{"get":{"x-controller-name":"RemindersController","x-operation-name":"count","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Reminders model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Reminders.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Reminders>"}}}}],"operationId":"RemindersController.count"}},"/reminders/{id}":{"put":{"x-controller-name":"RemindersController","x-operation-name":"replaceById","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Return value of RemindersController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Reminders PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reminders"}}},"x-parameter-index":1},"operationId":"RemindersController.replaceById"},"patch":{"x-controller-name":"RemindersController","x-operation-name":"updateById","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Return value of RemindersController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Reminders PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemindersPartial"}}},"x-parameter-index":1},"operationId":"RemindersController.updateById"},"get":{"x-controller-name":"RemindersController","x-operation-name":"findById","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Reminders model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemindersWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reminders.Filter"}}}}],"operationId":"RemindersController.findById"},"delete":{"x-controller-name":"RemindersController","x-operation-name":"deleteById","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Return value of RemindersController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Reminders DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RemindersController.deleteById"}},"/reminders":{"post":{"x-controller-name":"RemindersController","x-operation-name":"create","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Reminders model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reminders"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewReminders"}}}},"operationId":"RemindersController.create"},"patch":{"x-controller-name":"RemindersController","x-operation-name":"updateAll","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Reminders PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Reminders.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Reminders>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemindersPartial"}}}},"operationId":"RemindersController.updateAll"},"get":{"x-controller-name":"RemindersController","x-operation-name":"find","tags":["RemindersController"],"description":"","responses":{"200":{"description":"Array of Reminders model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RemindersWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reminders.Filter1"}}}}],"operationId":"RemindersController.find"}},"/roles/count":{"get":{"x-controller-name":"RoleController","x-operation-name":"count","tags":["RoleController"],"responses":{"200":{"description":"Role model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"roles.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Role>"}}}}],"operationId":"RoleController.count"}},"/roles/{id}":{"put":{"x-controller-name":"RoleController","x-operation-name":"replaceById","tags":["RoleController"],"responses":{"204":{"description":"Role PUT success"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}},"x-parameter-index":1},"operationId":"RoleController.replaceById"},"patch":{"x-controller-name":"RoleController","x-operation-name":"updateById","tags":["RoleController"],"responses":{"204":{"description":"Role PATCH success"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}},"x-parameter-index":1},"operationId":"RoleController.updateById"},"get":{"x-controller-name":"RoleController","x-operation-name":"findById","tags":["RoleController"],"responses":{"200":{"description":"Role model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RoleController.findById"},"delete":{"x-controller-name":"RoleController","x-operation-name":"deleteById","tags":["RoleController"],"responses":{"204":{"description":"Role DELETE success"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RoleController.deleteById"}},"/roles":{"post":{"x-controller-name":"RoleController","x-operation-name":"create","tags":["RoleController"],"responses":{"200":{"description":"Role model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}},"description":"","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"operationId":"RoleController.create"},"get":{"x-controller-name":"RoleController","x-operation-name":"find","tags":["RoleController"],"responses":{"200":{"description":"Array of Role model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Role"}}}}}},"description":"","parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/roles.Filter"}}}}],"operationId":"RoleController.find"}},"/stage-leads/count":{"get":{"x-controller-name":"StageLeadController","x-operation-name":"count","tags":["StageLeadController"],"description":"","responses":{"200":{"description":"StageLead model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"stage_lead.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<StageLead>"}}}}],"operationId":"StageLeadController.count"}},"/stage-leads/{id}":{"patch":{"x-controller-name":"StageLeadController","x-operation-name":"updateById","tags":["StageLeadController"],"description":"","responses":{"200":{"description":"Return value of StageLeadController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"StageLead PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageLeadPartial"}}},"x-parameter-index":1},"operationId":"StageLeadController.updateById"},"get":{"x-controller-name":"StageLeadController","x-operation-name":"findById","tags":["StageLeadController"],"description":"","responses":{"200":{"description":"StageLead model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageLeadWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/stage_lead.Filter"}}}}],"operationId":"StageLeadController.findById"},"delete":{"x-controller-name":"StageLeadController","x-operation-name":"deleteById","tags":["StageLeadController"],"description":"","responses":{"200":{"description":"Return value of StageLeadController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"StageLead DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"StageLeadController.deleteById"}},"/stage-leads":{"post":{"x-controller-name":"StageLeadController","x-operation-name":"create","tags":["StageLeadController"],"description":"","responses":{"200":{"description":"StageLead model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageLead"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStageLead"}}}},"operationId":"StageLeadController.create"},"get":{"x-controller-name":"StageLeadController","x-operation-name":"find","tags":["StageLeadController"],"description":"","responses":{"200":{"description":"Array of StageLead model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StageLeadWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/stage_lead.Filter1"}}}}],"operationId":"StageLeadController.find"}},"/status-quotes/count":{"get":{"x-controller-name":"StatusQuotesController","x-operation-name":"count","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"StatusQuotes model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"status_quotes.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<StatusQuotes>"}}}}],"operationId":"StatusQuotesController.count"}},"/status-quotes/{id}":{"put":{"x-controller-name":"StatusQuotesController","x-operation-name":"replaceById","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"Return value of StatusQuotesController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"StatusQuotes PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusQuotes"}}},"x-parameter-index":1},"operationId":"StatusQuotesController.replaceById"},"patch":{"x-controller-name":"StatusQuotesController","x-operation-name":"updateById","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"Return value of StatusQuotesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"StatusQuotes PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusQuotesPartial"}}},"x-parameter-index":1},"operationId":"StatusQuotesController.updateById"},"get":{"x-controller-name":"StatusQuotesController","x-operation-name":"findById","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"StatusQuotes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusQuotesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/status_quotes.Filter"}}}}],"operationId":"StatusQuotesController.findById"},"delete":{"x-controller-name":"StatusQuotesController","x-operation-name":"deleteById","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"Return value of StatusQuotesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"StatusQuotes DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"StatusQuotesController.deleteById"}},"/status-quotes":{"post":{"x-controller-name":"StatusQuotesController","x-operation-name":"create","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"StatusQuotes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusQuotes"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStatusQuotes"}}}},"operationId":"StatusQuotesController.create"},"patch":{"x-controller-name":"StatusQuotesController","x-operation-name":"updateAll","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"StatusQuotes PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"status_quotes.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<StatusQuotes>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusQuotesPartial"}}}},"operationId":"StatusQuotesController.updateAll"},"get":{"x-controller-name":"StatusQuotesController","x-operation-name":"find","tags":["StatusQuotesController"],"description":"","responses":{"200":{"description":"Array of StatusQuotes model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StatusQuotesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/status_quotes.Filter1"}}}}],"operationId":"StatusQuotesController.find"}},"/task-statuses/count":{"get":{"x-controller-name":"TaskStatusController","x-operation-name":"count","tags":["TaskStatusController"],"description":"","responses":{"200":{"description":"TaskStatus model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"status_task.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskStatus>"}}}}],"operationId":"TaskStatusController.count"}},"/task-statuses/{id}":{"patch":{"x-controller-name":"TaskStatusController","x-operation-name":"updateById","tags":["TaskStatusController"],"description":"","responses":{"200":{"description":"Return value of TaskStatusController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskStatus PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusPartial"}}},"x-parameter-index":1},"operationId":"TaskStatusController.updateById"},"get":{"x-controller-name":"TaskStatusController","x-operation-name":"findById","tags":["TaskStatusController"],"description":"","responses":{"200":{"description":"TaskStatus model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/status_task.Filter"}}}}],"operationId":"TaskStatusController.findById"},"delete":{"x-controller-name":"TaskStatusController","x-operation-name":"deleteById","tags":["TaskStatusController"],"description":"","responses":{"200":{"description":"Return value of TaskStatusController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskStatus DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TaskStatusController.deleteById"}},"/task-statuses":{"post":{"x-controller-name":"TaskStatusController","x-operation-name":"create","tags":["TaskStatusController"],"description":"","responses":{"200":{"description":"TaskStatus model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTaskStatus"}}}},"operationId":"TaskStatusController.create"},"get":{"x-controller-name":"TaskStatusController","x-operation-name":"find","tags":["TaskStatusController"],"description":"","responses":{"200":{"description":"Array of TaskStatus model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskStatusWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/status_task.Filter1"}}}}],"operationId":"TaskStatusController.find"}},"/task-wheel-agents/count":{"get":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"count","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"TaskWheelAgents model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheelAgents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheelAgents>"}}}}],"operationId":"TaskWheelAgentsController.count"}},"/task-wheel-agents/{id}":{"put":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"replaceById","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelAgentsController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelAgents PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgents"}}},"x-parameter-index":1},"operationId":"TaskWheelAgentsController.replaceById"},"patch":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"updateById","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelAgentsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelAgents PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgentsPartial"}}},"x-parameter-index":1},"operationId":"TaskWheelAgentsController.updateById"},"get":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"findById","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"TaskWheelAgents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgentsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgents.Filter"}}}}],"operationId":"TaskWheelAgentsController.findById"},"delete":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"deleteById","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelAgentsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelAgents DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TaskWheelAgentsController.deleteById"}},"/task-wheel-agents":{"post":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"create","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"TaskWheelAgents model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgents"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTaskWheelAgents"}}}},"operationId":"TaskWheelAgentsController.create"},"patch":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"updateAll","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"TaskWheelAgents PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheelAgents.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheelAgents>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgentsPartial"}}}},"operationId":"TaskWheelAgentsController.updateAll"},"get":{"x-controller-name":"TaskWheelAgentsController","x-operation-name":"find","tags":["TaskWheelAgentsController"],"description":"","responses":{"200":{"description":"Array of TaskWheelAgents model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelAgentsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAgents.Filter1"}}}}],"operationId":"TaskWheelAgentsController.find"}},"/task-wheel-assignment-logs/count":{"get":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"count","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"TaskWheelAssignmentLog model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheelAssignmentLog.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheelAssignmentLog>"}}}}],"operationId":"TaskWheelAssignmentLogController.count"}},"/task-wheel-assignment-logs/search":{"get":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"search","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Paginated assignment logs with relations"}}}}},"parameters":[{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"skip","in":"query","schema":{"type":"number"}},{"name":"taskWheelId","in":"query","schema":{"type":"number"}},{"name":"leadSourceId","in":"query","schema":{"type":"number"}},{"name":"businessUnitId","in":"query","schema":{"type":"number"}},{"name":"dateFrom","in":"query","schema":{"type":"string"}},{"name":"dateTo","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"TaskWheelAssignmentLogController.search"}},"/task-wheel-assignment-logs/{id}":{"put":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"replaceById","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelAssignmentLogController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelAssignmentLog PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLog"}}},"x-parameter-index":1},"operationId":"TaskWheelAssignmentLogController.replaceById"},"patch":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"updateById","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelAssignmentLogController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelAssignmentLog PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLogPartial"}}},"x-parameter-index":1},"operationId":"TaskWheelAssignmentLogController.updateById"},"get":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"findById","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"TaskWheelAssignmentLog model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLogWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLog.Filter"}}}}],"operationId":"TaskWheelAssignmentLogController.findById"},"delete":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"deleteById","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelAssignmentLogController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelAssignmentLog DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TaskWheelAssignmentLogController.deleteById"}},"/task-wheel-assignment-logs":{"post":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"create","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"TaskWheelAssignmentLog model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLog"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTaskWheelAssignmentLog"}}}},"operationId":"TaskWheelAssignmentLogController.create"},"patch":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"updateAll","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"TaskWheelAssignmentLog PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheelAssignmentLog.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheelAssignmentLog>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLogPartial"}}}},"operationId":"TaskWheelAssignmentLogController.updateAll"},"get":{"x-controller-name":"TaskWheelAssignmentLogController","x-operation-name":"find","tags":["TaskWheelAssignmentLogController"],"description":"","responses":{"200":{"description":"Array of TaskWheelAssignmentLog model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelAssignmentLogWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelAssignmentLog.Filter1"}}}}],"operationId":"TaskWheelAssignmentLogController.find"}},"/task-wheel-sources/count":{"get":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"count","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"TaskWheelSources model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheelSources.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheelSources>"}}}}],"operationId":"TaskWheelSourcesController.count"}},"/task-wheel-sources/{id}":{"put":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"replaceById","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelSourcesController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelSources PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSources"}}},"x-parameter-index":1},"operationId":"TaskWheelSourcesController.replaceById"},"patch":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"updateById","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelSourcesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelSources PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSourcesPartial"}}},"x-parameter-index":1},"operationId":"TaskWheelSourcesController.updateById"},"get":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"findById","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"TaskWheelSources model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSourcesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSources.Filter"}}}}],"operationId":"TaskWheelSourcesController.findById"},"delete":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"deleteById","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelSourcesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheelSources DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TaskWheelSourcesController.deleteById"}},"/task-wheel-sources":{"post":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"create","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"TaskWheelSources model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSources"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTaskWheelSources"}}}},"operationId":"TaskWheelSourcesController.create"},"patch":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"updateAll","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"TaskWheelSources PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheelSources.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheelSources>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSourcesPartial"}}}},"operationId":"TaskWheelSourcesController.updateAll"},"get":{"x-controller-name":"TaskWheelSourcesController","x-operation-name":"find","tags":["TaskWheelSourcesController"],"description":"","responses":{"200":{"description":"Array of TaskWheelSources model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelSourcesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelSources.Filter1"}}}}],"operationId":"TaskWheelSourcesController.find"}},"/task-wheels/capacity-status":{"get":{"x-controller-name":"TaskWheelController","x-operation-name":"getCapacityStatus","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"Returns isMaxedOut flag per wheel id","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"wheelId":{"type":"number"},"isMaxedOut":{"type":"boolean"}}}}}}}},"parameters":[{"name":"wheelIds","in":"query","schema":{"type":"string"}}],"operationId":"TaskWheelController.getCapacityStatus"}},"/task-wheels/count":{"get":{"x-controller-name":"TaskWheelController","x-operation-name":"count","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"TaskWheel model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheels.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheels>"}}}}],"operationId":"TaskWheelController.count"}},"/task-wheels/{id}":{"put":{"x-controller-name":"TaskWheelController","x-operation-name":"replaceById","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheel PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheels"}}},"x-parameter-index":1},"operationId":"TaskWheelController.replaceById"},"patch":{"x-controller-name":"TaskWheelController","x-operation-name":"updateById","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheel PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelsPartial"}}},"x-parameter-index":1},"operationId":"TaskWheelController.updateById"},"get":{"x-controller-name":"TaskWheelController","x-operation-name":"findById","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"TaskWheel model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheels.Filter"}}}}],"operationId":"TaskWheelController.findById"},"delete":{"x-controller-name":"TaskWheelController","x-operation-name":"deleteById","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"Return value of TaskWheelController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TaskWheel DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TaskWheelController.deleteById"}},"/task-wheels":{"post":{"x-controller-name":"TaskWheelController","x-operation-name":"create","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"TaskWheel model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheels"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTaskWheel"}}}},"operationId":"TaskWheelController.create"},"patch":{"x-controller-name":"TaskWheelController","x-operation-name":"updateAll","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"TaskWheel PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"TaskWheels.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TaskWheels>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheelsPartial"}}}},"operationId":"TaskWheelController.updateAll"},"get":{"x-controller-name":"TaskWheelController","x-operation-name":"find","tags":["TaskWheelController"],"description":"","responses":{"200":{"description":"Array of TaskWheel model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWheels.Filter1"}}}}],"operationId":"TaskWheelController.find"}},"/tasks/count":{"get":{"x-controller-name":"TasksController","x-operation-name":"count","tags":["TasksController"],"description":"","responses":{"200":{"description":"Tasks model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"Tasks.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Tasks>"}}}}],"operationId":"TasksController.count"}},"/tasks/export":{"post":{"x-controller-name":"TasksController","x-operation-name":"exportTasks","tags":["TasksController"],"description":"","responses":{"200":{"description":"Export tasks to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"filtersSelected":{"type":"array","items":{"type":"object"}}}}}}},"operationId":"TasksController.exportTasks"}},"/tasks/{id}":{"patch":{"x-controller-name":"TasksController","x-operation-name":"updateById","tags":["TasksController"],"description":"","responses":{"200":{"description":"Return value of TasksController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Tasks PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksPartial"}}},"x-parameter-index":1},"operationId":"TasksController.updateById"},"get":{"x-controller-name":"TasksController","x-operation-name":"findById","tags":["TasksController"],"description":"","responses":{"200":{"description":"Tasks model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasks.Filter"}}}}],"operationId":"TasksController.findById"},"delete":{"x-controller-name":"TasksController","x-operation-name":"deleteById","tags":["TasksController"],"description":"","responses":{"200":{"description":"Return value of TasksController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Tasks DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TasksController.deleteById"}},"/tasks":{"post":{"x-controller-name":"TasksController","x-operation-name":"create","tags":["TasksController"],"description":"","responses":{"200":{"description":"Tasks model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasks"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTasks"}}}},"operationId":"TasksController.create"},"get":{"x-controller-name":"TasksController","x-operation-name":"find","tags":["TasksController"],"description":"","responses":{"200":{"description":"Array of Tasks model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TasksWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasks.Filter1"}}}}],"operationId":"TasksController.find"}},"/tasks-by-lead/{id}":{"get":{"x-controller-name":"TasksController","x-operation-name":"findByLead","tags":["TasksController"],"description":"","responses":{"200":{"description":"Array of Tasks model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TasksWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasks.Filter1"}}}}],"operationId":"TasksController.findByLead"}},"/tenants/count":{"get":{"x-controller-name":"TenantController","x-operation-name":"count","tags":["TenantController"],"responses":{"200":{"description":"Tenant model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| ViewTenant   |\n","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"tenants.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Tenant>"}}}}],"operationId":"TenantController.count"}},"/tenants/{id}":{"put":{"x-controller-name":"TenantController","x-operation-name":"replaceById","tags":["TenantController"],"responses":{"204":{"description":"Tenant PUT success"}},"description":"\n\n| Permissions |\n| ------- |\n| UpdateTenant   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}},"x-parameter-index":1},"operationId":"TenantController.replaceById"},"patch":{"x-controller-name":"TenantController","x-operation-name":"updateById","tags":["TenantController"],"responses":{"204":{"description":"Tenant PATCH success"}},"description":"\n\n| Permissions |\n| ------- |\n| UpdateTenant   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}},"x-parameter-index":1},"operationId":"TenantController.updateById"},"get":{"x-controller-name":"TenantController","x-operation-name":"findById","tags":["TenantController"],"responses":{"200":{"description":"Tenant model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| ViewTenant   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TenantController.findById"},"delete":{"x-controller-name":"TenantController","x-operation-name":"deleteById","tags":["TenantController"],"responses":{"204":{"description":"Tenant DELETE success"}},"description":"\n\n| Permissions |\n| ------- |\n| DeleteTenant   |\n","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TenantController.deleteById"}},"/tenants":{"post":{"x-controller-name":"TenantController","x-operation-name":"create","tags":["TenantController"],"responses":{"200":{"description":"Tenant model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| CreateTenant   |\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"operationId":"TenantController.create"},"patch":{"x-controller-name":"TenantController","x-operation-name":"updateAll","tags":["TenantController"],"responses":{"200":{"description":"Tenant PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"\n\n| Permissions |\n| ------- |\n| UpdateTenant   |\n","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"tenants.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<Tenant>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"operationId":"TenantController.updateAll"},"get":{"x-controller-name":"TenantController","x-operation-name":"find","tags":["TenantController"],"responses":{"200":{"description":"Array of Tenant model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tenant"}}}}}},"description":"\n\n| Permissions |\n| ------- |\n| ViewTenant   |\n","parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tenants.Filter"}}}}],"operationId":"TenantController.find"}},"/tenants-types/count":{"get":{"x-controller-name":"TenantsTypeController","x-operation-name":"count","tags":["TenantsTypeController"],"description":"","responses":{"200":{"description":"TenantsType model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"tenants_type.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TenantsType>"}}}}],"operationId":"TenantsTypeController.count"}},"/tenants-types/{id}":{"put":{"x-controller-name":"TenantsTypeController","x-operation-name":"replaceById","tags":["TenantsTypeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TenantsType PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantsType"}}},"x-parameter-index":1},"operationId":"TenantsTypeController.replaceById"},"patch":{"x-controller-name":"TenantsTypeController","x-operation-name":"updateById","tags":["TenantsTypeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TenantsType PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantsTypePartial"}}},"x-parameter-index":1},"operationId":"TenantsTypeController.updateById"},"get":{"x-controller-name":"TenantsTypeController","x-operation-name":"findById","tags":["TenantsTypeController"],"responses":{"200":{"description":"TenantsType model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantsTypeWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tenants_type.Filter"}}}}],"operationId":"TenantsTypeController.findById"},"delete":{"x-controller-name":"TenantsTypeController","x-operation-name":"deleteById","tags":["TenantsTypeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TenantsType DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TenantsTypeController.deleteById"}},"/tenants-types":{"post":{"x-controller-name":"TenantsTypeController","x-operation-name":"create","tags":["TenantsTypeController"],"responses":{"200":{"description":"TenantsType model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantsType"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTenantsType"}}}},"operationId":"TenantsTypeController.create"},"patch":{"x-controller-name":"TenantsTypeController","x-operation-name":"updateAll","tags":["TenantsTypeController"],"responses":{"200":{"description":"TenantsType PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"tenants_type.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TenantsType>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantsTypePartial"}}}},"operationId":"TenantsTypeController.updateAll"},"get":{"x-controller-name":"TenantsTypeController","x-operation-name":"find","tags":["TenantsTypeController"],"description":"","responses":{"200":{"description":"Array of TenantsType model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantsTypeWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tenants_type.Filter1"}}}}],"operationId":"TenantsTypeController.find"}},"/type-products/count":{"get":{"x-controller-name":"TypeProductsController","x-operation-name":"count","tags":["TypeProductsController"],"description":"","responses":{"200":{"description":"TypeProduct model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"type_product.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<TypeProduct>"}}}}],"operationId":"TypeProductsController.count"}},"/type-products/{id}":{"patch":{"x-controller-name":"TypeProductsController","x-operation-name":"updateById","tags":["TypeProductsController"],"description":"","responses":{"200":{"description":"Return value of TypeProductsController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TypeProduct PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypeProductPartial"}}},"x-parameter-index":1},"operationId":"TypeProductsController.updateById"},"get":{"x-controller-name":"TypeProductsController","x-operation-name":"findById","tags":["TypeProductsController"],"description":"","responses":{"200":{"description":"TypeProduct model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypeProductWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_product.Filter"}}}}],"operationId":"TypeProductsController.findById"},"delete":{"x-controller-name":"TypeProductsController","x-operation-name":"deleteById","tags":["TypeProductsController"],"description":"","responses":{"200":{"description":"Return value of TypeProductsController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TypeProduct DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TypeProductsController.deleteById"}},"/type-products":{"post":{"x-controller-name":"TypeProductsController","x-operation-name":"create","tags":["TypeProductsController"],"description":"","responses":{"200":{"description":"TypeProduct model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypeProduct"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTypeProduct"}}}},"operationId":"TypeProductsController.create"},"get":{"x-controller-name":"TypeProductsController","x-operation-name":"find","tags":["TypeProductsController"],"description":"","responses":{"200":{"description":"Array of TypeProduct model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TypeProductWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_product.Filter1"}}}}],"operationId":"TypeProductsController.find"}},"/upload-files-lead/{idLead}":{"post":{"x-controller-name":"UploadFilesController","x-operation-name":"uploadFiles","tags":["UploadFilesController"],"description":"","responses":{"200":{"description":"Return value of UploadFilesController.uploadFiles","content":{}}},"parameters":[{"name":"idLead","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"array","items":{"type":"string","format":"binary"}}}}}},"description":"Upload files by lead","required":true,"x-parameter-index":1},"operationId":"UploadFilesController.uploadFiles"}},"/upload-files-product/{productId}":{"post":{"x-controller-name":"UploadFilesController","x-operation-name":"uploadProductFiles","tags":["UploadFilesController"],"description":"","responses":{"200":{"description":"Return value of UploadFilesController.uploadProductFiles","content":{}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"array","items":{"type":"string","format":"binary"}}}}}},"description":"Upload files by product","required":true,"x-parameter-index":1},"operationId":"UploadFilesController.uploadProductFiles"},"get":{"x-controller-name":"UploadFilesController","x-operation-name":"getProductDocuments","tags":["UploadFilesController"],"description":"","responses":{"200":{"description":"Return value of UploadFilesController.getProductDocuments","content":{}}},"parameters":[{"name":"productId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UploadFilesController.getProductDocuments"}},"/upload-files-product/{id}":{"delete":{"x-controller-name":"UploadFilesController","x-operation-name":"deleteProductDocument","tags":["UploadFilesController"],"description":"","responses":{"200":{"description":"Return value of UploadFilesController.deleteProductDocument","content":{}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UploadFilesController.deleteProductDocument"}},"/uploads/getImage/{imagePath}":{"get":{"x-controller-name":"FileUploadController","x-operation-name":"getImage","tags":["FileUploadController"],"description":"","responses":{"200":{"description":"View images from uploads.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"imagePath","in":"path","schema":{"type":"string"},"required":true}],"operationId":"FileUploadController.getImage"}},"/uploads/profilePhoto/{id}":{"post":{"x-controller-name":"FileUploadController","x-operation-name":"fileUpload","tags":["FileUploadController"],"description":"","responses":{"200":{"description":"Save image profile of user.","content":{"application/json":{"schema":{"type":"object","properties":{"imagePath":{"type":"string"},"url":{"type":"string"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true},"operationId":"FileUploadController.fileUpload"}},"/uploads/{imagePath}/{subdirectory}/{id}":{"delete":{"x-controller-name":"FileUploadController","x-operation-name":"deleteById","tags":["FileUploadController"],"description":"\n\n| Permissions |\n| ------- |\n| DeleteAnyUser   |\n| DeleteTenantUser   |\n","responses":{"200":{"description":"Return value of FileUploadController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Image DELETE success"}}}}},"parameters":[{"name":"imagePath","in":"path","schema":{"type":"string"},"required":true},{"name":"subdirectory","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"FileUploadController.deleteById"}},"/user-credentials/count":{"get":{"x-controller-name":"UserCredentialController","x-operation-name":"count","tags":["UserCredentialController"],"description":"","responses":{"200":{"description":"UserCredentials model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"user_credentials.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<UserCredentials>"}}}}],"operationId":"UserCredentialController.count"}},"/user-credentials/{id}":{"put":{"x-controller-name":"UserCredentialController","x-operation-name":"replaceById","tags":["UserCredentialController"],"description":"\n\n| Permissions |\n| ------- |\n| UpdateAnyUser   |\n| UpdateOwnUser   |\n| UpdateTenantUser   |\n","responses":{"200":{"description":"Return value of UserCredentialController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"UserCredentials PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCredentials"}}},"x-parameter-index":1},"operationId":"UserCredentialController.replaceById"},"patch":{"x-controller-name":"UserCredentialController","x-operation-name":"updateById","tags":["UserCredentialController"],"description":"","responses":{"200":{"description":"Return value of UserCredentialController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"UserCredentials PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCredentialsPartial"}}},"x-parameter-index":1},"operationId":"UserCredentialController.updateById"},"get":{"x-controller-name":"UserCredentialController","x-operation-name":"findById","tags":["UserCredentialController"],"description":"","responses":{"200":{"description":"UserCredentials model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCredentialsWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user_credentials.Filter"}}}}],"operationId":"UserCredentialController.findById"},"delete":{"x-controller-name":"UserCredentialController","x-operation-name":"deleteById","tags":["UserCredentialController"],"description":"\n\n| Permissions |\n| ------- |\n| DeleteAnyUser   |\n| DeleteTenantUser   |\n","responses":{"200":{"description":"Return value of UserCredentialController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"UserCredentials DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UserCredentialController.deleteById"}},"/user-credentials":{"post":{"x-controller-name":"UserCredentialController","x-operation-name":"create","tags":["UserCredentialController"],"description":"","responses":{"200":{"description":"UserCredentials model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCredentials"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUserCredentials"}}}},"operationId":"UserCredentialController.create"},"patch":{"x-controller-name":"UserCredentialController","x-operation-name":"updateAll","tags":["UserCredentialController"],"description":"","responses":{"200":{"description":"UserCredentials PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"user_credentials.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<UserCredentials>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCredentialsPartial"}}}},"operationId":"UserCredentialController.updateAll"},"get":{"x-controller-name":"UserCredentialController","x-operation-name":"find","tags":["UserCredentialController"],"description":"","responses":{"200":{"description":"Array of UserCredentials model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserCredentialsWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user_credentials.Filter1"}}}}],"operationId":"UserCredentialController.find"}},"/user-tenants/count":{"get":{"x-controller-name":"UserTenantController","x-operation-name":"count","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"UserTenant model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"user_tenants.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<UserTenant>"}}}}],"operationId":"UserTenantController.count"}},"/user-tenants/{id}":{"put":{"x-controller-name":"UserTenantController","x-operation-name":"replaceById","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"Return value of UserTenantController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"UserTenant PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTenant"}}},"x-parameter-index":1},"operationId":"UserTenantController.replaceById"},"patch":{"x-controller-name":"UserTenantController","x-operation-name":"updateById","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"Return value of UserTenantController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"UserTenant PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTenantPartial"}}},"x-parameter-index":1},"operationId":"UserTenantController.updateById"},"get":{"x-controller-name":"UserTenantController","x-operation-name":"findById","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"UserTenant model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTenantWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user_tenants.Filter"}}}}],"operationId":"UserTenantController.findById"},"delete":{"x-controller-name":"UserTenantController","x-operation-name":"deleteById","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"Return value of UserTenantController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"UserTenant DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UserTenantController.deleteById"}},"/user-tenants":{"post":{"x-controller-name":"UserTenantController","x-operation-name":"create","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"UserTenant model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTenant"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUserTenant"}}}},"operationId":"UserTenantController.create"},"patch":{"x-controller-name":"UserTenantController","x-operation-name":"updateAll","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"UserTenant PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"user_tenants.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<UserTenant>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTenantPartial"}}}},"operationId":"UserTenantController.updateAll"},"get":{"x-controller-name":"UserTenantController","x-operation-name":"find","tags":["UserTenantController"],"description":"","responses":{"200":{"description":"Array of UserTenant model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserTenantWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user_tenants.Filter1"}}}}],"operationId":"UserTenantController.find"}},"/users/count":{"get":{"x-controller-name":"UserController","x-operation-name":"count","tags":["UserController"],"responses":{"200":{"description":"User model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"users.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<User>"}}}}],"operationId":"UserController.count"}},"/users/export":{"get":{"x-controller-name":"UserController","x-operation-name":"exportUsers","tags":["UserController"],"description":"","responses":{"200":{"description":"Export users to Excel","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"UserController.exportUsers"}},"/users/generate-id-pdf/{id}":{"post":{"x-controller-name":"UserController","x-operation-name":"generateUserPDF","tags":["UserController"],"responses":{"200":{"description":"Creates the users a PDF."}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UserController.generateUserPDF"}},"/users/generate-qr-path/{id}":{"post":{"x-controller-name":"UserController","x-operation-name":"generateUserQR","tags":["UserController"],"responses":{"200":{"description":"Creates the users QR."}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UserController.generateUserQR"}},"/users/me/role":{"get":{"x-controller-name":"UserController","x-operation-name":"getMyRole","tags":["UserController"],"description":"","responses":{"200":{"description":"Current user role flags","content":{"application/json":{"schema":{"type":"object"}}}}},"operationId":"UserController.getMyRole"}},"/users/send-card-email/{id}":{"post":{"x-controller-name":"UserController","x-operation-name":"sendEmail","tags":["UserController"],"responses":{"200":{"description":"Email the users card."}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UserController.sendEmail"}},"/users/{id}":{"put":{"x-controller-name":"UserController","x-operation-name":"replaceById","tags":["UserController"],"responses":{"204":{"description":"User PUT success"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"x-parameter-index":1},"operationId":"UserController.replaceById"},"patch":{"x-controller-name":"UserController","x-operation-name":"updateById","tags":["UserController"],"responses":{"204":{"description":"User PATCH success"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPartial"}}},"x-parameter-index":1},"operationId":"UserController.updateById"},"get":{"x-controller-name":"UserController","x-operation-name":"findById","tags":["UserController"],"responses":{"200":{"description":"User model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"UserController.findById"},"delete":{"x-controller-name":"UserController","x-operation-name":"deleteById","tags":["UserController"],"responses":{"204":{"description":"User DELETE success"}},"description":"","parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"mode","in":"query","schema":{"type":"string"}},{"name":"targetAgentId","in":"query","schema":{"type":"number"}}],"operationId":"UserController.deleteById"}},"/users":{"post":{"x-controller-name":"UserController","x-operation-name":"create","tags":["UserController"],"description":"","responses":{"200":{"description":"Return value of UserController.create","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"operationId":"UserController.create"},"patch":{"x-controller-name":"UserController","x-operation-name":"updateAll","tags":["UserController"],"responses":{"200":{"description":"User PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"description":"","parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"users.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<User>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"operationId":"UserController.updateAll"},"get":{"x-controller-name":"UserController","x-operation-name":"find","tags":["UserController"],"responses":{"200":{"description":"Array of User model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}}},"description":"","parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/users.Filter"}}}}],"operationId":"UserController.find"}},"/valid-until-quotes/count":{"get":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"count","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"ValidUntilQuotes model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"valid_until_quotes.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ValidUntilQuotes>"}}}}],"operationId":"ValidUntilQuotesController.count"}},"/valid-until-quotes/{id}":{"put":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"replaceById","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"Return value of ValidUntilQuotesController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ValidUntilQuotes PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidUntilQuotes"}}},"x-parameter-index":1},"operationId":"ValidUntilQuotesController.replaceById"},"patch":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"updateById","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"Return value of ValidUntilQuotesController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ValidUntilQuotes PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidUntilQuotesPartial"}}},"x-parameter-index":1},"operationId":"ValidUntilQuotesController.updateById"},"get":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"findById","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"ValidUntilQuotes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidUntilQuotesWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/valid_until_quotes.Filter"}}}}],"operationId":"ValidUntilQuotesController.findById"},"delete":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"deleteById","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"Return value of ValidUntilQuotesController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ValidUntilQuotes DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ValidUntilQuotesController.deleteById"}},"/valid-until-quotes":{"post":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"create","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"ValidUntilQuotes model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidUntilQuotes"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewValidUntilQuotes"}}}},"operationId":"ValidUntilQuotesController.create"},"patch":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"updateAll","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"ValidUntilQuotes PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"valid_until_quotes.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<ValidUntilQuotes>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidUntilQuotesPartial"}}}},"operationId":"ValidUntilQuotesController.updateAll"},"get":{"x-controller-name":"ValidUntilQuotesController","x-operation-name":"find","tags":["ValidUntilQuotesController"],"description":"","responses":{"200":{"description":"Array of ValidUntilQuotes model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ValidUntilQuotesWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/valid_until_quotes.Filter1"}}}}],"operationId":"ValidUntilQuotesController.find"}},"/webhook/active-human-conversations":{"get":{"x-controller-name":"WebhookController","x-operation-name":"getActiveHumanConversations","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.getActiveHumanConversations","content":{}}},"operationId":"WebhookController.getActiveHumanConversations"}},"/webhook/conversation-state/{threadId}":{"get":{"x-controller-name":"WebhookController","x-operation-name":"getConversationState","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.getConversationState","content":{}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"WebhookController.getConversationState"}},"/webhook/health":{"get":{"x-controller-name":"WebhookController","x-operation-name":"healthCheck","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.healthCheck","content":{}}},"operationId":"WebhookController.healthCheck"}},"/webhook/notifications":{"get":{"x-controller-name":"WebhookController","x-operation-name":"getNotifications","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.getNotifications","content":{}}},"operationId":"WebhookController.getNotifications"}},"/webhook/queue/cleanup":{"post":{"x-controller-name":"WebhookController","x-operation-name":"cleanupOldMessages","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.cleanupOldMessages","content":{}}},"operationId":"WebhookController.cleanupOldMessages"}},"/webhook/queue/clear":{"delete":{"x-controller-name":"WebhookController","x-operation-name":"clearQueue","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.clearQueue","content":{}}},"operationId":"WebhookController.clearQueue"}},"/webhook/queue/pause":{"post":{"x-controller-name":"WebhookController","x-operation-name":"pauseQueue","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.pauseQueue","content":{}}},"operationId":"WebhookController.pauseQueue"}},"/webhook/queue/resume":{"post":{"x-controller-name":"WebhookController","x-operation-name":"resumeQueue","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.resumeQueue","content":{}}},"operationId":"WebhookController.resumeQueue"}},"/webhook/queue/status":{"get":{"x-controller-name":"WebhookController","x-operation-name":"getQueueStatus","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.getQueueStatus","content":{}}},"operationId":"WebhookController.getQueueStatus"}},"/webhook/return-to-bot":{"post":{"x-controller-name":"WebhookController","x-operation-name":"returnToBot","tags":["WebhookController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Return conversation to bot with context handoff"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"WebhookController.returnToBot"}},"/webhook/send-agent-message":{"post":{"x-controller-name":"WebhookController","x-operation-name":"sendAgentMessage","tags":["WebhookController"],"description":"","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Agent message sent from CRM"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"WebhookController.sendAgentMessage"}},"/webhook/stream/{threadId}":{"get":{"x-controller-name":"WebhookController","x-operation-name":"streamConversation","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.streamConversation","content":{}}},"parameters":[{"name":"threadId","in":"path","schema":{"type":"string"},"required":true},{"name":"access_token","in":"query","schema":{"type":"string"}}],"operationId":"WebhookController.streamConversation"}},"/webhook/test":{"post":{"x-controller-name":"WebhookController","x-operation-name":"testWebhook","tags":["WebhookController"],"responses":{"200":{"description":"Test webhook endpoint"}},"description":"","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"WebhookController.testWebhook"}},"/webhook":{"post":{"x-controller-name":"WebhookController","x-operation-name":"handleMessage","tags":["WebhookController"],"responses":{"200":{"description":"Webhook message received"}},"description":"","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"operationId":"WebhookController.handleMessage"},"get":{"x-controller-name":"WebhookController","x-operation-name":"verifyWebhook","tags":["WebhookController"],"responses":{"200":{"description":"Webhook verification"}},"description":"","operationId":"WebhookController.verifyWebhook"}},"/webhook-configs/count":{"get":{"x-controller-name":"WebhookController","x-operation-name":"count","tags":["WebhookController"],"description":"","responses":{"200":{"description":"WebhookConfig model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"webhook_configs.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<WebhookConfig>"}}}}],"operationId":"WebhookController.count"}},"/webhook-configs/{id}":{"put":{"x-controller-name":"WebhookController","x-operation-name":"replaceById","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Agents PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfig"}}},"x-parameter-index":1},"operationId":"WebhookController.replaceById"},"patch":{"x-controller-name":"WebhookController","x-operation-name":"updateById","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"WebhookConfig PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfigPartial"}}},"x-parameter-index":1},"operationId":"WebhookController.updateById"},"get":{"x-controller-name":"WebhookController","x-operation-name":"findById","tags":["WebhookController"],"description":"","responses":{"200":{"description":"WebhookConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfigWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook_configs.Filter"}}}}],"operationId":"WebhookController.findById"},"delete":{"x-controller-name":"WebhookController","x-operation-name":"deleteById","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Return value of WebhookController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"WebhookConfig DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"WebhookController.deleteById"}},"/webhook-configs":{"post":{"x-controller-name":"WebhookController","x-operation-name":"create","tags":["WebhookController"],"description":"","responses":{"200":{"description":"WebhookConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfig"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWebhookConfig"}}}},"operationId":"WebhookController.create"},"patch":{"x-controller-name":"WebhookController","x-operation-name":"updateAll","tags":["WebhookController"],"description":"","responses":{"200":{"description":"WebhookConfig PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"webhook_configs.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<WebhookConfig>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfigPartial"}}}},"operationId":"WebhookController.updateAll"},"get":{"x-controller-name":"WebhookController","x-operation-name":"find","tags":["WebhookController"],"description":"","responses":{"200":{"description":"Array of WebhookConfig model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookConfigWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook_configs.Filter1"}}}}],"operationId":"WebhookController.find"}},"/workflow-configs/count":{"get":{"x-controller-name":"WorkflowConfigController","x-operation-name":"count","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"WorkflowConfig model count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"workflow_configs.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<WorkflowConfig>"}}}}],"operationId":"WorkflowConfigController.count"}},"/workflow-configs/templates":{"get":{"x-controller-name":"WorkflowConfigController","x-operation-name":"getTemplates","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Plantillas predefinidas de workflows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}},"operationId":"WorkflowConfigController.getTemplates"}},"/workflow-configs/{id}/executions":{"get":{"x-controller-name":"WorkflowConfigController","x-operation-name":"getExecutions","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Historial de ejecuciones del workflow","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowExecutionWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"limit","in":"query","schema":{"type":"number"}}],"operationId":"WorkflowConfigController.getExecutions"}},"/workflow-configs/{id}/stats":{"get":{"x-controller-name":"WorkflowConfigController","x-operation-name":"getWorkflowStats","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Estadísticas del workflow","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"days","in":"query","schema":{"type":"number"}}],"operationId":"WorkflowConfigController.getWorkflowStats"}},"/workflow-configs/{id}/test":{"post":{"x-controller-name":"WorkflowConfigController","x-operation-name":"testWorkflow","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Resultado de la prueba del workflow","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"testData":{"type":"object"}}}}},"x-parameter-index":1},"operationId":"WorkflowConfigController.testWorkflow"}},"/workflow-configs/{id}/toggle":{"post":{"x-controller-name":"WorkflowConfigController","x-operation-name":"toggleActive","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Toggle workflow active status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConfig"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"WorkflowConfigController.toggleActive"}},"/workflow-configs/{id}":{"put":{"x-controller-name":"WorkflowConfigController","x-operation-name":"replaceById","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Return value of WorkflowConfigController.replaceById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"WorkflowConfig PUT success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConfig"}}},"x-parameter-index":1},"operationId":"WorkflowConfigController.replaceById"},"patch":{"x-controller-name":"WorkflowConfigController","x-operation-name":"updateById","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Return value of WorkflowConfigController.updateById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"WorkflowConfig PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConfigPartial"}}},"x-parameter-index":1},"operationId":"WorkflowConfigController.updateById"},"get":{"x-controller-name":"WorkflowConfigController","x-operation-name":"findById","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"WorkflowConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConfigWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/workflow_configs.Filter"}}}}],"operationId":"WorkflowConfigController.findById"},"delete":{"x-controller-name":"WorkflowConfigController","x-operation-name":"deleteById","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Return value of WorkflowConfigController.deleteById","content":{}},"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"WorkflowConfig DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"WorkflowConfigController.deleteById"}},"/workflow-configs":{"post":{"x-controller-name":"WorkflowConfigController","x-operation-name":"create","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"WorkflowConfig model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConfig"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWorkflowConfig"}}}},"operationId":"WorkflowConfigController.create"},"patch":{"x-controller-name":"WorkflowConfigController","x-operation-name":"updateAll","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"WorkflowConfig PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"where","in":"query","content":{"application/json":{"schema":{"type":"object","title":"workflow_configs.WhereFilter","additionalProperties":true,"x-typescript-type":"@loopback/repository#Where<WorkflowConfig>"}}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowConfigPartial"}}}},"operationId":"WorkflowConfigController.updateAll"},"get":{"x-controller-name":"WorkflowConfigController","x-operation-name":"find","tags":["WorkflowConfigController"],"description":"","responses":{"200":{"description":"Array of WorkflowConfig model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowConfigWithRelations"}}}}}},"parameters":[{"name":"filter","in":"query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/workflow_configs.Filter1"}}}}],"operationId":"WorkflowConfigController.find"}},"/":{"get":{"x-controller-name":"HomePageController","x-operation-name":"homePage","tags":["HomePageController"],"responses":{"200":{"description":"Home Page","content":{"text/html":{"schema":{"type":"string"}}}}},"description":"","operationId":"HomePageController.homePage"}}},"servers":[{"url":"https://api.inmobiliariacasmora.com"}],"components":{"schemas":{"WorkflowConfig":{"title":"WorkflowConfig","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"entityType":{"type":"string"},"triggerEvent":{"type":"string"},"conditions":{"type":"array","items":{"type":"object"}},"actions":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"description":{"type":"string"}},"required":["name","entityType","triggerEvent","actions"],"additionalProperties":false},"NewWorkflowConfig":{"title":"NewWorkflowConfig","type":"object","description":"(tsType: Omit<WorkflowConfig, 'id'>, schemaOptions: { title: 'NewWorkflowConfig', exclude: [ 'id' ] })","properties":{"name":{"type":"string"},"entityType":{"type":"string"},"triggerEvent":{"type":"string"},"conditions":{"type":"array","items":{"type":"object"}},"actions":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"description":{"type":"string"}},"required":["name","entityType","triggerEvent","actions"],"additionalProperties":false,"x-typescript-type":"Omit<WorkflowConfig, 'id'>"},"WorkflowExecutionWithRelations":{"title":"WorkflowExecutionWithRelations","type":"object","description":"(tsType: WorkflowExecutionWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"entityId":{"type":"number"},"entityType":{"type":"string"},"status":{"type":"string"},"executionData":{"type":"object"},"actionResults":{"type":"array","items":{"type":"object"}},"errorMessage":{"type":"string"},"executedAt":{"type":"string","format":"date-time"},"workflowConfigId":{"type":"number"},"workflowConfig":{"$ref":"#/components/schemas/WorkflowConfigWithRelations"},"foreignKey":{}},"required":["entityId","entityType","workflowConfigId"],"additionalProperties":false,"x-typescript-type":"WorkflowExecutionWithRelations"},"WorkflowConfigWithRelations":{"title":"WorkflowConfigWithRelations","type":"object","description":"(tsType: WorkflowConfigWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"entityType":{"type":"string"},"triggerEvent":{"type":"string"},"conditions":{"type":"array","items":{"type":"object"}},"actions":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"description":{"type":"string"},"executions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowExecutionWithRelations"}}},"required":["name","entityType","triggerEvent","actions"],"additionalProperties":false,"x-typescript-type":"WorkflowConfigWithRelations"},"WorkflowConfigPartial":{"title":"WorkflowConfigPartial","type":"object","description":"(tsType: Partial<WorkflowConfig>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"entityType":{"type":"string"},"triggerEvent":{"type":"string"},"conditions":{"type":"array","items":{"type":"object"}},"actions":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"description":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<WorkflowConfig>"},"WebhookConfigPartial":{"title":"WebhookConfigPartial","type":"object","description":"(tsType: Partial<WebhookConfig>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"platform":{"type":"string"},"pageId":{"type":"string"},"accessToken":{"type":"string"},"webhookVerifyToken":{"type":"string"},"businessAccountId":{"type":"string"},"phoneNumberId":{"type":"string"},"urlWebhook":{"type":"string"},"isActive":{"type":"boolean"},"metadata":{"type":"object"}},"additionalProperties":false,"x-typescript-type":"Partial<WebhookConfig>"},"WebhookConfig":{"title":"WebhookConfig","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"platform":{"type":"string"},"pageId":{"type":"string"},"accessToken":{"type":"string"},"webhookVerifyToken":{"type":"string"},"businessAccountId":{"type":"string"},"phoneNumberId":{"type":"string"},"urlWebhook":{"type":"string"},"isActive":{"type":"boolean"},"metadata":{"type":"object"}},"required":["platform"],"additionalProperties":false},"NewWebhookConfig":{"title":"NewWebhookConfig","type":"object","description":"(tsType: Omit<WebhookConfig, 'id'>, schemaOptions: { title: 'NewWebhookConfig', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"platform":{"type":"string"},"pageId":{"type":"string"},"accessToken":{"type":"string"},"webhookVerifyToken":{"type":"string"},"businessAccountId":{"type":"string"},"phoneNumberId":{"type":"string"},"urlWebhook":{"type":"string"},"isActive":{"type":"boolean"},"metadata":{"type":"object"}},"required":["platform"],"additionalProperties":false,"x-typescript-type":"Omit<WebhookConfig, 'id'>"},"WebhookConfigWithRelations":{"title":"WebhookConfigWithRelations","type":"object","description":"(tsType: WebhookConfigWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"platform":{"type":"string"},"pageId":{"type":"string"},"accessToken":{"type":"string"},"webhookVerifyToken":{"type":"string"},"businessAccountId":{"type":"string"},"phoneNumberId":{"type":"string"},"urlWebhook":{"type":"string"},"isActive":{"type":"boolean"},"metadata":{"type":"object"}},"required":["platform"],"additionalProperties":false,"x-typescript-type":"WebhookConfigWithRelations"},"ValidUntilQuotes":{"title":"ValidUntilQuotes","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"days":{"type":"string"}},"required":["days"],"additionalProperties":false},"NewValidUntilQuotes":{"title":"NewValidUntilQuotes","type":"object","description":"(tsType: Omit<ValidUntilQuotes, 'id'>, schemaOptions: { title: 'NewValidUntilQuotes', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"days":{"type":"string"}},"required":["days"],"additionalProperties":false,"x-typescript-type":"Omit<ValidUntilQuotes, 'id'>"},"OriginsWithRelations":{"title":"OriginsWithRelations","type":"object","description":"(tsType: OriginsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/AgentsWithRelations"}}},"required":["name","status"],"additionalProperties":false,"x-typescript-type":"OriginsWithRelations"},"MediaWithRelations":{"title":"MediaWithRelations","type":"object","description":"(tsType: MediaWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/AgentsWithRelations"}}},"required":["name","status"],"additionalProperties":false,"x-typescript-type":"MediaWithRelations"},"SecretApiKeyWithRelations":{"title":"SecretApiKeyWithRelations","type":"object","description":"(tsType: SecretApiKeyWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"key":{"type":"string"},"agentsId":{"type":"number"}},"required":["key"],"additionalProperties":false,"x-typescript-type":"SecretApiKeyWithRelations"},"TaskStatusWithRelations":{"title":"TaskStatusWithRelations","type":"object","description":"(tsType: TaskStatusWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TasksWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"TaskStatusWithRelations"},"TasksWithRelations":{"title":"TasksWithRelations","type":"object","description":"(tsType: TasksWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"leadsId":{"type":"number"},"createdBy":{"type":"string"},"taskStatusId":{"type":"number"},"lead":{"$ref":"#/components/schemas/LeadsWithRelations"},"foreignKey":{},"taskStatus":{"$ref":"#/components/schemas/TaskStatusWithRelations"}},"required":["leadsId"],"additionalProperties":false,"x-typescript-type":"TasksWithRelations"},"NotesWithRelations":{"title":"NotesWithRelations","type":"object","description":"(tsType: NotesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"author":{"type":"string"},"leadsId":{"type":"number"}},"required":["title","description"],"additionalProperties":false,"x-typescript-type":"NotesWithRelations"},"LeadDocumentsWithRelations":{"title":"LeadDocumentsWithRelations","type":"object","description":"(tsType: LeadDocumentsWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"mimeType":{"type":"string"},"uploadedAt":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"leadId":{"type":"number"},"lead":{"$ref":"#/components/schemas/LeadsWithRelations"},"foreignKey":{}},"additionalProperties":false,"x-typescript-type":"LeadDocumentsWithRelations"},"LeadProductWithRelations":{"title":"LeadProductWithRelations","type":"object","description":"(tsType: LeadProductWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"deleted":{"type":"boolean"},"leadId":{"type":"number"},"productId":{"type":"number"},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"lead":{"$ref":"#/components/schemas/LeadsWithRelations"},"foreignKey":{},"product":{"$ref":"#/components/schemas/ProductsWithRelations"}},"required":["quantity"],"additionalProperties":false,"x-typescript-type":"LeadProductWithRelations"},"CalendarEventsWithRelations":{"title":"CalendarEventsWithRelations","type":"object","description":"(tsType: CalendarEventsWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"title":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"label":{"type":"string","enum":["event","task","lead"]},"clientId":{"type":"number"},"leadId":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"},"date":{"type":"string","format":"date-time"},"type":{"type":"string"},"client":{"$ref":"#/components/schemas/ContactsWithRelations"},"foreignKey":{},"lead":{"$ref":"#/components/schemas/LeadsWithRelations"}},"required":["title","startDate","endDate","label"],"additionalProperties":false,"x-typescript-type":"CalendarEventsWithRelations"},"StageLeadWithRelations":{"title":"StageLeadWithRelations","type":"object","description":"(tsType: StageLeadWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}}},"required":["name","order","isWon"],"additionalProperties":false,"x-typescript-type":"StageLeadWithRelations"},"LeadOrigenWithRelations":{"title":"LeadOrigenWithRelations","type":"object","description":"(tsType: LeadOrigenWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"LeadOrigenWithRelations"},"LinkMarketingWithRelations":{"title":"LinkMarketingWithRelations","type":"object","description":"(tsType: LinkMarketingWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"status":{"type":"boolean"},"customProperties":{"type":"object"},"userId":{"type":"number"},"user":{"$ref":"#/components/schemas/UserWithRelations"},"foreignKey":{},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}}},"required":["title","description","expirationDate"],"additionalProperties":false,"x-typescript-type":"LinkMarketingWithRelations"},"ChatbotConfigWithRelations":{"title":"ChatbotConfigWithRelations","type":"object","description":"(tsType: ChatbotConfigWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"baseUrl":{"type":"string"},"chatbotEndpoint":{"type":"string"},"loginEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"agentId":{"type":"string"},"resourceId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"pageUsername":{"type":"string"},"pagePassword":{"type":"string"}},"required":["baseUrl","chatbotEndpoint","loginEndpoint","tokenEndpoint","agentId","resourceId","clientId","clientSecret","pageUsername","pagePassword"],"additionalProperties":false,"x-typescript-type":"ChatbotConfigWithRelations"},"LeadSourcesWithRelations":{"title":"LeadSourcesWithRelations","type":"object","description":"(tsType: LeadSourcesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"sourceType":{"type":"string","enum":["campaign","webhook","chatbot","form"]},"status":{"type":"boolean"},"linkMarketingId":{"type":"number"},"webhookConfigId":{"type":"number"},"chatConfigId":{"type":"number"},"linkMarketing":{"$ref":"#/components/schemas/LinkMarketingWithRelations"},"foreignKey":{},"webhookConfig":{"$ref":"#/components/schemas/WebhookConfigWithRelations"},"chatConfig":{"$ref":"#/components/schemas/ChatbotConfigWithRelations"}},"required":["name","sourceType"],"additionalProperties":false,"x-typescript-type":"LeadSourcesWithRelations"},"TaskWheelSourcesWithRelations":{"title":"TaskWheelSourcesWithRelations","type":"object","description":"(tsType: TaskWheelSourcesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"taskWheel":{"$ref":"#/components/schemas/TaskWheelsWithRelations"},"foreignKey":{},"leadSource":{"$ref":"#/components/schemas/LeadSourcesWithRelations"}},"required":["taskWheelId","leadSourceId"],"additionalProperties":false,"x-typescript-type":"TaskWheelSourcesWithRelations"},"CategoryProductWithRelations":{"title":"CategoryProductWithRelations","type":"object","description":"(tsType: CategoryProductWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"scheduleMeeting":{"type":"boolean"},"existence":{"type":"boolean"},"purchaseTracking":{"type":"boolean"},"products":{"type":"array","items":{"$ref":"#/components/schemas/ProductsWithRelations"}}},"required":["name","scheduleMeeting","existence","purchaseTracking"],"additionalProperties":false,"x-typescript-type":"CategoryProductWithRelations"},"TaskWheelAgentsWithRelations":{"title":"TaskWheelAgentsWithRelations","type":"object","description":"(tsType: TaskWheelAgentsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"taskWheelId":{"type":"number"},"agentId":{"type":"number"},"status":{"type":"string","enum":["active","paused","inactive"]},"participationPercentage":{"type":"number"},"dailyLimit":{"type":"number"},"currentDailyCount":{"type":"number"},"order":{"type":"number"},"lastAssignedAt":{"type":"string","format":"date-time"},"categoryProductId":{"type":"number"},"taskWheel":{"$ref":"#/components/schemas/TaskWheelsWithRelations"},"foreignKey":{},"agent":{"$ref":"#/components/schemas/AgentsWithRelations"},"categoryProduct":{"$ref":"#/components/schemas/CategoryProductWithRelations"}},"required":["taskWheelId","agentId","status","currentDailyCount","order","categoryProductId"],"additionalProperties":false,"x-typescript-type":"TaskWheelAgentsWithRelations"},"TaskWheelAssignmentLogWithRelations":{"title":"TaskWheelAssignmentLogWithRelations","type":"object","description":"(tsType: TaskWheelAssignmentLogWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"taskWheelId":{"type":"number"},"leadId":{"type":"number"},"agentId":{"type":"number"},"assignmentType":{"type":"string","enum":["automatic","manual","redistributed"]},"assignedAt":{"type":"string","format":"date-time"},"taskWheel":{"$ref":"#/components/schemas/TaskWheelsWithRelations"},"foreignKey":{},"lead":{"$ref":"#/components/schemas/LeadsWithRelations"},"agent":{"$ref":"#/components/schemas/AgentsWithRelations"}},"required":["taskWheelId","leadId","agentId","assignmentType","assignedAt"],"additionalProperties":false,"x-typescript-type":"TaskWheelAssignmentLogWithRelations"},"TaskWheelsWithRelations":{"title":"TaskWheelsWithRelations","type":"object","description":"(tsType: TaskWheelsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"assignmentType":{"type":"string","enum":["round-robin","random","weighted"]},"lastAssignedAgentId":{"type":"number"},"businessUnitId":{"type":"number"},"lastAssignedAgent":{"$ref":"#/components/schemas/AgentsWithRelations"},"foreignKey":{},"sources":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelSourcesWithRelations"}},"agents":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelAgentsWithRelations"}},"assignmentLogs":{"type":"array","items":{"$ref":"#/components/schemas/TaskWheelAssignmentLogWithRelations"}},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"}},"required":["name","status","assignmentType"],"additionalProperties":false,"x-typescript-type":"TaskWheelsWithRelations"},"ClassificationLeadWithRelations":{"title":"ClassificationLeadWithRelations","type":"object","description":"(tsType: ClassificationLeadWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"ClassificationLeadWithRelations"},"LeadStageHistoryWithRelations":{"title":"LeadStageHistoryWithRelations","type":"object","description":"(tsType: LeadStageHistoryWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"leadId":{"type":"number"},"stageId":{"type":"number"},"enteredAt":{"type":"string","format":"date-time"},"exitedAt":{"type":"string","format":"date-time"},"daysInStage":{"type":"number"},"lead":{"$ref":"#/components/schemas/LeadsWithRelations"},"foreignKey":{},"stageLead":{"$ref":"#/components/schemas/StageLeadWithRelations"}},"required":["leadId","stageId","enteredAt"],"additionalProperties":false,"x-typescript-type":"LeadStageHistoryWithRelations"},"LeadsWithRelations":{"title":"LeadsWithRelations","type":"object","description":"(tsType: LeadsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"value":{"type":"number"},"probability":{"type":"number"},"closingDate":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"string","format":"date-time"},"isOverdue":{"type":"boolean"},"contactId":{"type":"number"},"agentId":{"type":"number"},"productId":{"type":"number"},"stageId":{"type":"number"},"businessUnitId":{"type":"number"},"assignmentStatus":{"type":"string"},"assignmentDate":{"type":"string","format":"date-time"},"origin":{"type":"string"},"location":{"type":"string"},"lostAt":{"type":"string","format":"date-time"},"wonAt":{"type":"string","format":"date-time"},"origenId":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"linkId":{"type":"number"},"classificationId":{"type":"number"},"contact":{"$ref":"#/components/schemas/ContactsWithRelations"},"foreignKey":{},"agent":{"$ref":"#/components/schemas/AgentsWithRelations"},"product":{"$ref":"#/components/schemas/ProductsWithRelations"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TasksWithRelations"}},"notes":{"type":"array","items":{"$ref":"#/components/schemas/NotesWithRelations"}},"leadDocuments":{"type":"array","items":{"$ref":"#/components/schemas/LeadDocumentsWithRelations"}},"leadProducts":{"type":"array","items":{"$ref":"#/components/schemas/LeadProductWithRelations"}},"calendarEvents":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEventsWithRelations"}},"stageLead":{"$ref":"#/components/schemas/StageLeadWithRelations"},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"},"origen":{"$ref":"#/components/schemas/LeadOrigenWithRelations"},"taskWheel":{"$ref":"#/components/schemas/TaskWheelsWithRelations"},"leadSource":{"$ref":"#/components/schemas/LeadSourcesWithRelations"},"link":{"$ref":"#/components/schemas/LinkMarketingWithRelations"},"classificationLead":{"$ref":"#/components/schemas/ClassificationLeadWithRelations"},"stageHistory":{"type":"array","items":{"$ref":"#/components/schemas/LeadStageHistoryWithRelations"}}},"required":["name","quantity","value","probability","closingDate","contactId","agentId","productId"],"additionalProperties":false,"x-typescript-type":"LeadsWithRelations"},"ProductsMediaWithRelations":{"title":"ProductsMediaWithRelations","type":"object","description":"(tsType: ProductsMediaWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"productId":{"type":"number"},"filename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"mimeType":{"type":"string"},"displayOrder":{"type":"number"},"uploadedAt":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"product":{"$ref":"#/components/schemas/ProductsWithRelations"},"foreignKey":{}},"required":["productId","filename","filePath","mimeType"],"additionalProperties":false,"x-typescript-type":"ProductsMediaWithRelations"},"PurchaseTrackingStagesWithRelations":{"title":"PurchaseTrackingStagesWithRelations","type":"object","description":"(tsType: PurchaseTrackingStagesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"},"products":{"type":"array","items":{"$ref":"#/components/schemas/ProductsWithRelations"}}},"required":["name","order","isWon"],"additionalProperties":false,"x-typescript-type":"PurchaseTrackingStagesWithRelations"},"ProductInventoryWithRelations":{"title":"ProductInventoryWithRelations","type":"object","description":"(tsType: ProductInventoryWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"quantity":{"type":"number"},"status":{"type":"boolean"},"productsId":{"type":"number"},"product":{"$ref":"#/components/schemas/ProductsWithRelations"},"foreignKey":{}},"required":["quantity","status"],"additionalProperties":false,"x-typescript-type":"ProductInventoryWithRelations"},"ProductInventoryBranchWithRelations":{"title":"ProductInventoryBranchWithRelations","type":"object","description":"(tsType: ProductInventoryBranchWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"quantity":{"type":"number"},"status":{"type":"boolean"},"productId":{"type":"number"},"businessUnitId":{"type":"number"},"product":{"$ref":"#/components/schemas/ProductsWithRelations"},"foreignKey":{},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"}},"required":["quantity","status"],"additionalProperties":false,"x-typescript-type":"ProductInventoryBranchWithRelations"},"ProductsWithRelations":{"title":"ProductsWithRelations","type":"object","description":"(tsType: ProductsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"cost":{"type":"number"},"status":{"type":"boolean"},"sku":{"type":"string"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"fileMimeType":{"type":"string"},"productUrl":{"type":"string"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"purchaseTrackingStageId":{"type":"number"},"createdBy":{"type":"number"},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}},"productsMedia":{"type":"array","items":{"$ref":"#/components/schemas/ProductsMediaWithRelations"}},"categoryProduct":{"$ref":"#/components/schemas/CategoryProductWithRelations"},"foreignKey":{},"typeProduct":{"$ref":"#/components/schemas/TypeProductWithRelations"},"purchaseTrackingStage":{"$ref":"#/components/schemas/PurchaseTrackingStagesWithRelations"},"createdByUser":{"$ref":"#/components/schemas/UserWithRelations"},"inventory":{"$ref":"#/components/schemas/ProductInventoryWithRelations"},"inventoryBranches":{"type":"array","items":{"$ref":"#/components/schemas/ProductInventoryBranchWithRelations"}}},"required":["name","price","cost","status"],"additionalProperties":false,"x-typescript-type":"ProductsWithRelations"},"TypeProductWithRelations":{"title":"TypeProductWithRelations","type":"object","description":"(tsType: TypeProductWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/ProductsWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"TypeProductWithRelations"},"BusinessUnitTypeProductsWithRelations":{"title":"BusinessUnitTypeProductsWithRelations","type":"object","description":"(tsType: BusinessUnitTypeProductsWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"typeProductId":{"type":"number"},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"},"foreignKey":{},"typeProduct":{"$ref":"#/components/schemas/TypeProductWithRelations"}},"required":["businessUnitId","typeProductId"],"additionalProperties":false,"x-typescript-type":"BusinessUnitTypeProductsWithRelations"},"BusinessUnitCategoriesWithRelations":{"title":"BusinessUnitCategoriesWithRelations","type":"object","description":"(tsType: BusinessUnitCategoriesWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"},"foreignKey":{},"categoryProduct":{"$ref":"#/components/schemas/CategoryProductWithRelations"},"typeProduct":{"$ref":"#/components/schemas/TypeProductWithRelations"}},"required":["businessUnitId","categoryProductId","typeProductId"],"additionalProperties":false,"x-typescript-type":"BusinessUnitCategoriesWithRelations"},"BusinessUnitAgentsWithRelations":{"title":"BusinessUnitAgentsWithRelations","type":"object","description":"(tsType: BusinessUnitAgentsWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"assignmentOrder":{"type":"number"},"lastAssignmentDate":{"type":"string","format":"date-time"},"status":{"type":"string"},"maxConcurrentLeads":{"type":"number"},"currentLeadCount":{"type":"number"},"priority":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"agentId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"},"foreignKey":{},"agent":{"$ref":"#/components/schemas/AgentsWithRelations"},"categoryProduct":{"$ref":"#/components/schemas/CategoryProductWithRelations"},"typeProduct":{"$ref":"#/components/schemas/TypeProductWithRelations"}},"required":["businessUnitId","agentId","categoryProductId"],"additionalProperties":false,"x-typescript-type":"BusinessUnitAgentsWithRelations"},"BranchTargetWithRelations":{"title":"BranchTargetWithRelations","type":"object","description":"(tsType: BranchTargetWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"targetType":{"type":"string","enum":["sales","won_opportunities","new_clients"]},"targetAmount":{"type":"number"},"periodMonth":{"type":"number"},"periodYear":{"type":"number"},"businessUnitId":{"type":"number"},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"},"foreignKey":{}},"required":["targetType","targetAmount","periodMonth","periodYear","businessUnitId"],"additionalProperties":false,"x-typescript-type":"BranchTargetWithRelations"},"BusinessUnitsWithRelations":{"title":"BusinessUnitsWithRelations","type":"object","description":"(tsType: BusinessUnitsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"status":{"type":"string"},"operatingHours":{"type":"object"},"timezone":{"type":"string"},"priority":{"type":"number"},"createdBy":{"type":"number"},"responsibleUserId":{"type":"number"},"responsibleUser":{"$ref":"#/components/schemas/UserWithRelations"},"foreignKey":{},"businessUnitTypeProducts":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitTypeProductsWithRelations"}},"businessUnitCategories":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitCategoriesWithRelations"}},"businessUnitAgents":{"type":"array","items":{"$ref":"#/components/schemas/BusinessUnitAgentsWithRelations"}},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}},"targets":{"type":"array","items":{"$ref":"#/components/schemas/BranchTargetWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"BusinessUnitsWithRelations"},"InternalMessageWithRelations":{"title":"InternalMessageWithRelations","type":"object","description":"(tsType: InternalMessageWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"content":{"type":"string"},"threadId":{"type":"string"},"authorId":{"type":"number"},"receiverId":{"type":"number"},"businessUnitId":{"type":"number"},"author":{"$ref":"#/components/schemas/UserWithRelations"},"foreignKey":{},"receiver":{"$ref":"#/components/schemas/UserWithRelations"},"businessUnit":{"$ref":"#/components/schemas/BusinessUnitsWithRelations"}},"required":["content","threadId","authorId","receiverId"],"additionalProperties":false,"x-typescript-type":"InternalMessageWithRelations"},"UserCredentialsWithRelations":{"title":"UserCredentialsWithRelations","type":"object","description":"(tsType: UserCredentialsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"userId":{"type":"number"},"authProvider":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"password":{"type":"string"},"user_id":{"$ref":"#/components/schemas/UserWithRelations"},"foreignKey":{}},"required":["userId","authProvider"],"additionalProperties":false,"x-typescript-type":"UserCredentialsWithRelations"},"TenantsTypeWithRelations":{"title":"TenantsTypeWithRelations","type":"object","description":"(tsType: TenantsTypeWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"TenantsTypeWithRelations"},"TenantWithRelations":{"title":"TenantWithRelations","type":"object","description":"(tsType: TenantWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"name":{"type":"string"},"type":{"type":"string"},"address1":{"type":"string"},"address2":{"type":"string"},"address3":{"type":"string"},"address4":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"status":{"type":"string"},"tenantsTypeId":{"type":"number"},"tenantsType":{"$ref":"#/components/schemas/TenantsTypeWithRelations"},"foreignKey":{}},"required":["name","type","status","tenantsTypeId"],"additionalProperties":false,"x-typescript-type":"TenantWithRelations"},"RoleWithRelations":{"title":"RoleWithRelations","type":"object","description":"(tsType: RoleWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"modulePermissions":{"type":"array","items":{"type":"string"}},"roleKey":{"type":"number"},"isAgent":{"type":"boolean"},"hasFullAccess":{"type":"boolean"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"RoleWithRelations"},"UserTenantWithRelations":{"title":"UserTenantWithRelations","type":"object","description":"(tsType: UserTenantWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"userId":{"type":"number"},"tenantId":{"type":"number"},"roleId":{"type":"number"},"status":{"type":"string"},"user":{"$ref":"#/components/schemas/UserWithRelations"},"foreignKey":{},"tenant_id":{"$ref":"#/components/schemas/TenantWithRelations"},"role":{"$ref":"#/components/schemas/RoleWithRelations"}},"required":["userId","tenantId","roleId","status"],"additionalProperties":false,"x-typescript-type":"UserTenantWithRelations"},"ModulesWithRelations":{"title":"ModulesWithRelations","type":"object","description":"(tsType: ModulesWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"label":{"type":"string"},"route":{"type":"string"},"icon":{"type":"string"},"order":{"type":"number"},"parentId":{"type":"number"},"showInSidebar":{"type":"boolean"},"children":{"type":"array","items":{"$ref":"#/components/schemas/ModulesWithRelations"}}},"required":["label","route","icon","order"],"additionalProperties":false,"x-typescript-type":"ModulesWithRelations"},"NotificationsWithRelations":{"title":"NotificationsWithRelations","type":"object","description":"(tsType: NotificationsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"isRead":{"type":"boolean"},"moduleOrigen":{"type":"string"},"userId":{"type":"number"},"user":{"$ref":"#/components/schemas/UserWithRelations"},"foreignKey":{}},"required":["title","description","moduleOrigen","userId"],"additionalProperties":false,"x-typescript-type":"NotificationsWithRelations"},"UserWithRelations":{"title":"UserWithRelations","type":"object","description":"(tsType: UserWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"firstName":{"type":"string"},"lastName":{"type":"string"},"middleName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"defaultTenant":{"type":"number"},"lastLogin":{"type":"string","format":"date-time"},"imagePath":{"type":"string"},"qrPath":{"type":"string"},"active":{"type":"boolean"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/AgentsWithRelations"}},"internalMessages":{"type":"array","items":{"$ref":"#/components/schemas/InternalMessageWithRelations"}},"credentials":{"$ref":"#/components/schemas/UserCredentialsWithRelations"},"userTenant":{"$ref":"#/components/schemas/UserTenantWithRelations"},"modules":{"type":"array","items":{"$ref":"#/components/schemas/ModulesWithRelations"}},"notifications":{"type":"array","items":{"$ref":"#/components/schemas/NotificationsWithRelations"}},"linkMarketings":{"type":"array","items":{"$ref":"#/components/schemas/LinkMarketingWithRelations"}}},"required":["firstName","username"],"additionalProperties":false,"x-typescript-type":"UserWithRelations"},"AgentTargetWithRelations":{"title":"AgentTargetWithRelations","type":"object","description":"(tsType: AgentTargetWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"targetType":{"type":"string","enum":["sales","won_opportunities","new_clients"]},"targetAmount":{"type":"number"},"periodMonth":{"type":"number"},"periodYear":{"type":"number"},"agentId":{"type":"number"},"agent":{"$ref":"#/components/schemas/AgentsWithRelations"},"foreignKey":{}},"required":["targetType","targetAmount","periodMonth","periodYear","agentId"],"additionalProperties":false,"x-typescript-type":"AgentTargetWithRelations"},"AgentsWithRelations":{"title":"AgentsWithRelations","type":"object","description":"(tsType: AgentsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"status":{"type":"boolean"},"createdBy":{"type":"string"},"originId":{"type":"number"},"mediaId":{"type":"number"},"userId":{"type":"number"},"origins":{"$ref":"#/components/schemas/OriginsWithRelations"},"foreignKey":{},"media":{"$ref":"#/components/schemas/MediaWithRelations"},"secretApiKey":{"$ref":"#/components/schemas/SecretApiKeyWithRelations"},"user":{"$ref":"#/components/schemas/UserWithRelations"},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}},"companies":{"type":"array","items":{"$ref":"#/components/schemas/CompaniesWithRelations"}},"targets":{"type":"array","items":{"$ref":"#/components/schemas/AgentTargetWithRelations"}}},"required":["name","email","status"],"additionalProperties":false,"x-typescript-type":"AgentsWithRelations"},"CompaniesWithRelations":{"title":"CompaniesWithRelations","type":"object","description":"(tsType: CompaniesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"rfc":{"type":"string"},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"createdBy":{"type":"string"},"agentId":{"type":"number"},"agent":{"$ref":"#/components/schemas/AgentsWithRelations"},"foreignKey":{},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContactsWithRelations"}}},"required":["name","rfc","agentId"],"additionalProperties":false,"x-typescript-type":"CompaniesWithRelations"},"ContactsWithRelations":{"title":"ContactsWithRelations","type":"object","description":"(tsType: ContactsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"first_name":{"type":"string"},"last_name":{"type":"string"},"job_title":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"createdBy":{"type":"number"},"companyId":{"type":"number"},"company":{"$ref":"#/components/schemas/CompaniesWithRelations"},"foreignKey":{},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadsWithRelations"}},"calendarEvents":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEventsWithRelations"}}},"required":["first_name","last_name","email"],"additionalProperties":false,"x-typescript-type":"ContactsWithRelations"},"StatusQuotesWithRelations":{"title":"StatusQuotesWithRelations","type":"object","description":"(tsType: StatusQuotesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/QuotesWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"StatusQuotesWithRelations"},"PaymentConditionsWithRelations":{"title":"PaymentConditionsWithRelations","type":"object","description":"(tsType: PaymentConditionsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"PaymentConditionsWithRelations"},"QuoteItemsWithRelations":{"title":"QuoteItemsWithRelations","type":"object","description":"(tsType: QuoteItemsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"},"subtotal":{"type":"number"},"quoteId":{"type":"number"},"productId":{"type":"number"},"quotes":{"$ref":"#/components/schemas/QuotesWithRelations"},"foreignKey":{},"products":{"$ref":"#/components/schemas/ProductsWithRelations"}},"required":["quantity","unit_price","subtotal","productId"],"additionalProperties":false,"x-typescript-type":"QuoteItemsWithRelations"},"QuotesWithRelations":{"title":"QuotesWithRelations","type":"object","description":"(tsType: QuotesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"email":{"type":"string"},"observations":{"type":"string"},"subtotal":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"valid_until_date":{"type":"string","format":"date-time"},"discount":{"type":"number"},"ccEmails":{"type":"string"},"createdBy":{"type":"string"},"contactId":{"type":"number"},"companyId":{"type":"number"},"leadsId":{"type":"number"},"statusId":{"type":"number"},"validUntilId":{"type":"number"},"paymentConditionsId":{"type":"number"},"contact":{"$ref":"#/components/schemas/ContactsWithRelations"},"foreignKey":{},"company":{"$ref":"#/components/schemas/CompaniesWithRelations"},"leads":{"$ref":"#/components/schemas/LeadsWithRelations"},"status_quotes":{"$ref":"#/components/schemas/StatusQuotesWithRelations"},"valid_until_quotes":{"$ref":"#/components/schemas/ValidUntilQuotesWithRelations"},"payment_conditions":{"$ref":"#/components/schemas/PaymentConditionsWithRelations"},"quoteItems":{"type":"array","items":{"$ref":"#/components/schemas/QuoteItemsWithRelations"}}},"required":["email","subtotal","tax","total","valid_until_date","contactId","statusId","validUntilId"],"additionalProperties":false,"x-typescript-type":"QuotesWithRelations"},"ValidUntilQuotesWithRelations":{"title":"ValidUntilQuotesWithRelations","type":"object","description":"(tsType: ValidUntilQuotesWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"days":{"type":"string"},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/QuotesWithRelations"}}},"required":["days"],"additionalProperties":false,"x-typescript-type":"ValidUntilQuotesWithRelations"},"ValidUntilQuotesPartial":{"title":"ValidUntilQuotesPartial","type":"object","description":"(tsType: Partial<ValidUntilQuotes>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"days":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<ValidUntilQuotes>"},"UserTenant":{"title":"UserTenant","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"userId":{"type":"number"},"tenantId":{"type":"number"},"roleId":{"type":"number"},"status":{"type":"string"}},"required":["userId","tenantId","roleId","status"],"additionalProperties":false},"NewUserTenant":{"title":"NewUserTenant","type":"object","description":"(tsType: Omit<UserTenant, 'id'>, schemaOptions: { title: 'NewUserTenant', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"userId":{"type":"number"},"tenantId":{"type":"number"},"roleId":{"type":"number"},"status":{"type":"string"}},"required":["userId","tenantId","roleId","status"],"additionalProperties":false,"x-typescript-type":"Omit<UserTenant, 'id'>"},"UserTenantPartial":{"title":"UserTenantPartial","type":"object","description":"(tsType: Partial<UserTenant>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"userId":{"type":"number"},"tenantId":{"type":"number"},"roleId":{"type":"number"},"status":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<UserTenant>"},"UserCredentials":{"title":"UserCredentials","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"userId":{"type":"number"},"authProvider":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"password":{"type":"string"}},"required":["userId","authProvider"],"additionalProperties":false},"NewUserCredentials":{"title":"NewUserCredentials","type":"object","description":"(tsType: Omit<UserCredentials, 'id'>, schemaOptions: { title: 'NewUserCredentials', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"userId":{"type":"number"},"authProvider":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"password":{"type":"string"}},"required":["userId","authProvider"],"additionalProperties":false,"x-typescript-type":"Omit<UserCredentials, 'id'>"},"UserCredentialsPartial":{"title":"UserCredentialsPartial","type":"object","description":"(tsType: Partial<UserCredentials>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"userId":{"type":"number"},"authProvider":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"password":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<UserCredentials>"},"TypeProduct":{"title":"TypeProduct","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewTypeProduct":{"title":"NewTypeProduct","type":"object","description":"(tsType: Omit<TypeProduct, 'id'>, schemaOptions: { title: 'NewTypeProduct', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<TypeProduct, 'id'>"},"TypeProductPartial":{"title":"TypeProductPartial","type":"object","description":"(tsType: Partial<TypeProduct>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<TypeProduct>"},"TenantsType":{"title":"TenantsType","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewTenantsType":{"title":"NewTenantsType","type":"object","description":"(tsType: Omit<TenantsType, 'id'>, schemaOptions: { title: 'NewTenantsType', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<TenantsType, 'id'>"},"TenantsTypePartial":{"title":"TenantsTypePartial","type":"object","description":"(tsType: Partial<TenantsType>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<TenantsType>"},"Tasks":{"title":"Tasks","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"leadsId":{"type":"number"},"createdBy":{"type":"string"},"taskStatusId":{"type":"number"}},"required":["leadsId"],"additionalProperties":false},"NewTasks":{"title":"NewTasks","type":"object","description":"(tsType: Omit<Tasks, 'id'>, schemaOptions: { title: 'NewTasks', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"leadsId":{"type":"number"},"createdBy":{"type":"string"},"taskStatusId":{"type":"number"}},"required":["leadsId"],"additionalProperties":false,"x-typescript-type":"Omit<Tasks, 'id'>"},"TasksPartial":{"title":"TasksPartial","type":"object","description":"(tsType: Partial<Tasks>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"leadsId":{"type":"number"},"createdBy":{"type":"string"},"taskStatusId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Tasks>"},"TaskWheels":{"title":"TaskWheels","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"assignmentType":{"type":"string","enum":["round-robin","random","weighted"]},"lastAssignedAgentId":{"type":"number"},"businessUnitId":{"type":"number"}},"required":["name","status","assignmentType"],"additionalProperties":false},"NewTaskWheel":{"title":"NewTaskWheel","type":"object","description":"(tsType: Omit<TaskWheels, 'id'>, schemaOptions: { title: 'NewTaskWheel', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"assignmentType":{"type":"string","enum":["round-robin","random","weighted"]},"lastAssignedAgentId":{"type":"number"},"businessUnitId":{"type":"number"}},"required":["name","status","assignmentType"],"additionalProperties":false,"x-typescript-type":"Omit<TaskWheels, 'id'>"},"TaskWheelsPartial":{"title":"TaskWheelsPartial","type":"object","description":"(tsType: Partial<TaskWheels>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"assignmentType":{"type":"string","enum":["round-robin","random","weighted"]},"lastAssignedAgentId":{"type":"number"},"businessUnitId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<TaskWheels>"},"TaskWheelSources":{"title":"TaskWheelSources","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"}},"required":["taskWheelId","leadSourceId"],"additionalProperties":false},"NewTaskWheelSources":{"title":"NewTaskWheelSources","type":"object","description":"(tsType: Omit<TaskWheelSources, 'id'>, schemaOptions: { title: 'NewTaskWheelSources', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"}},"required":["taskWheelId","leadSourceId"],"additionalProperties":false,"x-typescript-type":"Omit<TaskWheelSources, 'id'>"},"TaskWheelSourcesPartial":{"title":"TaskWheelSourcesPartial","type":"object","description":"(tsType: Partial<TaskWheelSources>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<TaskWheelSources>"},"TaskWheelAssignmentLog":{"title":"TaskWheelAssignmentLog","type":"object","properties":{"id":{"type":"number"},"taskWheelId":{"type":"number"},"leadId":{"type":"number"},"agentId":{"type":"number"},"assignmentType":{"type":"string","enum":["automatic","manual","redistributed"]},"assignedAt":{"type":"string","format":"date-time"}},"required":["taskWheelId","leadId","agentId","assignmentType","assignedAt"],"additionalProperties":false},"NewTaskWheelAssignmentLog":{"title":"NewTaskWheelAssignmentLog","type":"object","description":"(tsType: Omit<TaskWheelAssignmentLog, 'id'>, schemaOptions: { title: 'NewTaskWheelAssignmentLog', exclude: [ 'id' ] })","properties":{"taskWheelId":{"type":"number"},"leadId":{"type":"number"},"agentId":{"type":"number"},"assignmentType":{"type":"string","enum":["automatic","manual","redistributed"]},"assignedAt":{"type":"string","format":"date-time"}},"required":["taskWheelId","leadId","agentId","assignmentType","assignedAt"],"additionalProperties":false,"x-typescript-type":"Omit<TaskWheelAssignmentLog, 'id'>"},"TaskWheelAssignmentLogPartial":{"title":"TaskWheelAssignmentLogPartial","type":"object","description":"(tsType: Partial<TaskWheelAssignmentLog>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"taskWheelId":{"type":"number"},"leadId":{"type":"number"},"agentId":{"type":"number"},"assignmentType":{"type":"string","enum":["automatic","manual","redistributed"]},"assignedAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"x-typescript-type":"Partial<TaskWheelAssignmentLog>"},"TaskWheelAgents":{"title":"TaskWheelAgents","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"taskWheelId":{"type":"number"},"agentId":{"type":"number"},"status":{"type":"string","enum":["active","paused","inactive"]},"participationPercentage":{"type":"number"},"dailyLimit":{"type":"number"},"currentDailyCount":{"type":"number"},"order":{"type":"number"},"lastAssignedAt":{"type":"string","format":"date-time"},"categoryProductId":{"type":"number"}},"required":["taskWheelId","agentId","status","currentDailyCount","order","categoryProductId"],"additionalProperties":false},"NewTaskWheelAgents":{"title":"NewTaskWheelAgents","type":"object","description":"(tsType: Omit<TaskWheelAgents, 'id'>, schemaOptions: { title: 'NewTaskWheelAgents', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"taskWheelId":{"type":"number"},"agentId":{"type":"number"},"status":{"type":"string","enum":["active","paused","inactive"]},"participationPercentage":{"type":"number"},"dailyLimit":{"type":"number"},"currentDailyCount":{"type":"number"},"order":{"type":"number"},"lastAssignedAt":{"type":"string","format":"date-time"},"categoryProductId":{"type":"number"}},"required":["taskWheelId","agentId","status","currentDailyCount","order","categoryProductId"],"additionalProperties":false,"x-typescript-type":"Omit<TaskWheelAgents, 'id'>"},"TaskWheelAgentsPartial":{"title":"TaskWheelAgentsPartial","type":"object","description":"(tsType: Partial<TaskWheelAgents>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"taskWheelId":{"type":"number"},"agentId":{"type":"number"},"status":{"type":"string","enum":["active","paused","inactive"]},"participationPercentage":{"type":"number"},"dailyLimit":{"type":"number"},"currentDailyCount":{"type":"number"},"order":{"type":"number"},"lastAssignedAt":{"type":"string","format":"date-time"},"categoryProductId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<TaskWheelAgents>"},"TaskStatus":{"title":"TaskStatus","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewTaskStatus":{"title":"NewTaskStatus","type":"object","description":"(tsType: Omit<TaskStatus, 'id'>, schemaOptions: { title: 'NewTaskStatus', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<TaskStatus, 'id'>"},"TaskStatusPartial":{"title":"TaskStatusPartial","type":"object","description":"(tsType: Partial<TaskStatus>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<TaskStatus>"},"StatusQuotes":{"title":"StatusQuotes","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewStatusQuotes":{"title":"NewStatusQuotes","type":"object","description":"(tsType: Omit<StatusQuotes, 'id'>, schemaOptions: { title: 'NewStatusQuotes', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<StatusQuotes, 'id'>"},"StatusQuotesPartial":{"title":"StatusQuotesPartial","type":"object","description":"(tsType: Partial<StatusQuotes>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<StatusQuotes>"},"StageLead":{"title":"StageLead","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"}},"required":["name","order","isWon"],"additionalProperties":false},"NewStageLead":{"title":"NewStageLead","type":"object","description":"(tsType: Omit<StageLead, 'id'>, schemaOptions: { title: 'NewStageLead', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"}},"required":["name","order","isWon"],"additionalProperties":false,"x-typescript-type":"Omit<StageLead, 'id'>"},"StageLeadPartial":{"title":"StageLeadPartial","type":"object","description":"(tsType: Partial<StageLead>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<StageLead>"},"Reminders":{"title":"Reminders","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"dateReminder":{"type":"string","format":"date-time"},"idTarget":{"type":"number"},"target":{"type":"string"},"status":{"type":"boolean"}},"required":["dateReminder","idTarget","target"],"additionalProperties":false},"NewReminders":{"title":"NewReminders","type":"object","description":"(tsType: Omit<Reminders, 'id'>, schemaOptions: { title: 'NewReminders', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"dateReminder":{"type":"string","format":"date-time"},"idTarget":{"type":"number"},"target":{"type":"string"},"status":{"type":"boolean"}},"required":["dateReminder","idTarget","target"],"additionalProperties":false,"x-typescript-type":"Omit<Reminders, 'id'>"},"RemindersWithRelations":{"title":"RemindersWithRelations","type":"object","description":"(tsType: RemindersWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"dateReminder":{"type":"string","format":"date-time"},"idTarget":{"type":"number"},"target":{"type":"string"},"status":{"type":"boolean"}},"required":["dateReminder","idTarget","target"],"additionalProperties":false,"x-typescript-type":"RemindersWithRelations"},"RemindersPartial":{"title":"RemindersPartial","type":"object","description":"(tsType: Partial<Reminders>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"dateReminder":{"type":"string","format":"date-time"},"idTarget":{"type":"number"},"target":{"type":"string"},"status":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<Reminders>"},"Quotes":{"title":"Quotes","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"email":{"type":"string"},"observations":{"type":"string"},"subtotal":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"valid_until_date":{"type":"string","format":"date-time"},"discount":{"type":"number"},"ccEmails":{"type":"string"},"createdBy":{"type":"string"},"contactId":{"type":"number"},"companyId":{"type":"number"},"leadsId":{"type":"number"},"statusId":{"type":"number"},"validUntilId":{"type":"number"},"paymentConditionsId":{"type":"number"}},"required":["email","subtotal","tax","total","valid_until_date","contactId","statusId","validUntilId"],"additionalProperties":false},"NewQuotes":{"title":"NewQuotes","type":"object","description":"(tsType: Omit<Quotes, 'id' | 'createdBy'>, schemaOptions: { title: 'NewQuotes', exclude: [ 'id', 'createdBy' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"email":{"type":"string"},"observations":{"type":"string"},"subtotal":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"valid_until_date":{"type":"string","format":"date-time"},"discount":{"type":"number"},"ccEmails":{"type":"string"},"contactId":{"type":"number"},"companyId":{"type":"number"},"leadsId":{"type":"number"},"statusId":{"type":"number"},"validUntilId":{"type":"number"},"paymentConditionsId":{"type":"number"}},"required":["email","subtotal","tax","total","valid_until_date","contactId","statusId","validUntilId"],"additionalProperties":false,"x-typescript-type":"Omit<Quotes, 'id' | 'createdBy'>"},"QuotesPartial":{"title":"QuotesPartial","type":"object","description":"(tsType: Partial<Quotes>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"email":{"type":"string"},"observations":{"type":"string"},"subtotal":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"valid_until_date":{"type":"string","format":"date-time"},"discount":{"type":"number"},"ccEmails":{"type":"string"},"createdBy":{"type":"string"},"contactId":{"type":"number"},"companyId":{"type":"number"},"leadsId":{"type":"number"},"statusId":{"type":"number"},"validUntilId":{"type":"number"},"paymentConditionsId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Quotes>"},"QuoteItems":{"title":"QuoteItems","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"},"subtotal":{"type":"number"},"quoteId":{"type":"number"},"productId":{"type":"number"}},"required":["quantity","unit_price","subtotal","productId"],"additionalProperties":false},"NewQuoteItems":{"title":"NewQuoteItems","type":"object","description":"(tsType: Omit<QuoteItems, 'id'>, schemaOptions: { title: 'NewQuoteItems', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"},"subtotal":{"type":"number"},"quoteId":{"type":"number"},"productId":{"type":"number"}},"required":["quantity","unit_price","subtotal","productId"],"additionalProperties":false,"x-typescript-type":"Omit<QuoteItems, 'id'>"},"QuoteItemsPartial":{"title":"QuoteItemsPartial","type":"object","description":"(tsType: Partial<QuoteItems>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"},"subtotal":{"type":"number"},"quoteId":{"type":"number"},"productId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<QuoteItems>"},"PurchaseTrackingStages":{"title":"PurchaseTrackingStages","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"}},"required":["name","order","isWon"],"additionalProperties":false},"NewPurchaseTrackingStages":{"title":"NewPurchaseTrackingStages","type":"object","description":"(tsType: Omit<PurchaseTrackingStages, 'id'>, schemaOptions: { title: 'NewPurchaseTrackingStages', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"}},"required":["name","order","isWon"],"additionalProperties":false,"x-typescript-type":"Omit<PurchaseTrackingStages, 'id'>"},"PurchaseTrackingStagesPartial":{"title":"PurchaseTrackingStagesPartial","type":"object","description":"(tsType: Partial<PurchaseTrackingStages>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<PurchaseTrackingStages>"},"Products":{"title":"Products","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"cost":{"type":"number"},"status":{"type":"boolean"},"sku":{"type":"string"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"fileMimeType":{"type":"string"},"productUrl":{"type":"string"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"purchaseTrackingStageId":{"type":"number"},"createdBy":{"type":"number"}},"required":["name","price","cost","status"],"additionalProperties":false},"NewProducts":{"title":"NewProducts","type":"object","description":"(tsType: Omit<Products, 'id'>, schemaOptions: { title: 'NewProducts', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"cost":{"type":"number"},"status":{"type":"boolean"},"sku":{"type":"string"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"fileMimeType":{"type":"string"},"productUrl":{"type":"string"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"purchaseTrackingStageId":{"type":"number"},"createdBy":{"type":"number"}},"required":["name","price","cost","status"],"additionalProperties":false,"x-typescript-type":"Omit<Products, 'id'>"},"ProductsMedia":{"title":"ProductsMedia","type":"object","properties":{"id":{"type":"number"},"productId":{"type":"number"},"filename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"mimeType":{"type":"string"},"displayOrder":{"type":"number"},"uploadedAt":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"}},"required":["productId","filename","filePath","mimeType"],"additionalProperties":false},"ProductsPartial":{"title":"ProductsPartial","type":"object","description":"(tsType: Partial<Products>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"cost":{"type":"number"},"status":{"type":"boolean"},"sku":{"type":"string"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"fileMimeType":{"type":"string"},"productUrl":{"type":"string"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"},"purchaseTrackingStageId":{"type":"number"},"createdBy":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Products>"},"NewProductsMedia":{"title":"NewProductsMedia","type":"object","description":"(tsType: Omit<ProductsMedia, 'id'>, schemaOptions: { title: 'NewProductsMedia', exclude: [ 'id' ] })","properties":{"productId":{"type":"number"},"filename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"mimeType":{"type":"string"},"displayOrder":{"type":"number"},"uploadedAt":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"}},"required":["productId","filename","filePath","mimeType"],"additionalProperties":false,"x-typescript-type":"Omit<ProductsMedia, 'id'>"},"ProductsMediaPartial":{"title":"ProductsMediaPartial","type":"object","description":"(tsType: Partial<ProductsMedia>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"productId":{"type":"number"},"filename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"mimeType":{"type":"string"},"displayOrder":{"type":"number"},"uploadedAt":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"}},"additionalProperties":false,"x-typescript-type":"Partial<ProductsMedia>"},"ProductInventory":{"title":"ProductInventory","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"quantity":{"type":"number"},"status":{"type":"boolean"},"productsId":{"type":"number"}},"required":["quantity","status"],"additionalProperties":false},"NewProductInventory":{"title":"NewProductInventory","type":"object","description":"(tsType: Omit<ProductInventory, 'id'>, schemaOptions: { title: 'NewProductInventory', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"quantity":{"type":"number"},"status":{"type":"boolean"},"productsId":{"type":"number"}},"required":["quantity","status"],"additionalProperties":false,"x-typescript-type":"Omit<ProductInventory, 'id'>"},"ProductInventoryPartial":{"title":"ProductInventoryPartial","type":"object","description":"(tsType: Partial<ProductInventory>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"quantity":{"type":"number"},"status":{"type":"boolean"},"productsId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<ProductInventory>"},"PaymentConditions":{"title":"PaymentConditions","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewPaymentConditions":{"title":"NewPaymentConditions","type":"object","description":"(tsType: Omit<PaymentConditions, 'id'>, schemaOptions: { title: 'NewPaymentConditions', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<PaymentConditions, 'id'>"},"PaymentConditionsPartial":{"title":"PaymentConditionsPartial","type":"object","description":"(tsType: Partial<PaymentConditions>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<PaymentConditions>"},"PageConfiguration":{"title":"PageConfiguration","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"value":{"type":"string"},"metadata":{"type":"object"}},"required":["name","value"],"additionalProperties":false},"NewPageConfiguration":{"title":"NewPageConfiguration","type":"object","description":"(tsType: Omit<PageConfiguration, 'id'>, schemaOptions: { title: 'NewPageConfiguration', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"value":{"type":"string"},"metadata":{"type":"object"}},"required":["name","value"],"additionalProperties":false,"x-typescript-type":"Omit<PageConfiguration, 'id'>"},"PageConfigurationWithRelations":{"title":"PageConfigurationWithRelations","type":"object","description":"(tsType: PageConfigurationWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"value":{"type":"string"},"metadata":{"type":"object"}},"required":["name","value"],"additionalProperties":false,"x-typescript-type":"PageConfigurationWithRelations"},"PageConfigurationPartial":{"title":"PageConfigurationPartial","type":"object","description":"(tsType: Partial<PageConfiguration>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"value":{"type":"string"},"metadata":{"type":"object"}},"additionalProperties":false,"x-typescript-type":"Partial<PageConfiguration>"},"Origins":{"title":"Origins","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"}},"required":["name","status"],"additionalProperties":false},"NewOrigins":{"title":"NewOrigins","type":"object","description":"(tsType: Omit<Origins, 'id'>, schemaOptions: { title: 'NewOrigins', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"}},"required":["name","status"],"additionalProperties":false,"x-typescript-type":"Omit<Origins, 'id'>"},"OriginsPartial":{"title":"OriginsPartial","type":"object","description":"(tsType: Partial<Origins>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<Origins>"},"LeadOrigen":{"title":"LeadOrigen","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewLeadOrigen":{"title":"NewLeadOrigen","type":"object","description":"(tsType: Omit<LeadOrigen, 'id'>, schemaOptions: { title: 'NewLeadOrigen', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<LeadOrigen, 'id'>"},"LeadOrigenPartial":{"title":"LeadOrigenPartial","type":"object","description":"(tsType: Partial<LeadOrigen>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<LeadOrigen>"},"Notifications":{"title":"Notifications","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"isRead":{"type":"boolean"},"moduleOrigen":{"type":"string"},"userId":{"type":"number"}},"required":["title","description","moduleOrigen","userId"],"additionalProperties":false},"NewNotifications":{"title":"NewNotifications","type":"object","description":"(tsType: Omit<Notifications, 'id'>, schemaOptions: { title: 'NewNotifications', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"title":{"type":"string"},"description":{"type":"string"},"isRead":{"type":"boolean"},"moduleOrigen":{"type":"string"},"userId":{"type":"number"}},"required":["title","description","moduleOrigen","userId"],"additionalProperties":false,"x-typescript-type":"Omit<Notifications, 'id'>"},"NotificationsPartial":{"title":"NotificationsPartial","type":"object","description":"(tsType: Partial<Notifications>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"isRead":{"type":"boolean"},"moduleOrigen":{"type":"string"},"userId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Notifications>"},"Notes":{"title":"Notes","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"author":{"type":"string"},"leadsId":{"type":"number"}},"required":["title","description"],"additionalProperties":false},"NewNotes":{"title":"NewNotes","type":"object","description":"(tsType: Omit<Notes, 'id'>, schemaOptions: { title: 'NewNotes', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"title":{"type":"string"},"description":{"type":"string"},"author":{"type":"string"},"leadsId":{"type":"number"}},"required":["title","description"],"additionalProperties":false,"x-typescript-type":"Omit<Notes, 'id'>"},"NotesPartial":{"title":"NotesPartial","type":"object","description":"(tsType: Partial<Notes>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"author":{"type":"string"},"leadsId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Notes>"},"ModuleNodeModel":{"title":"ModuleNodeModel","type":"object","properties":{"id":{"type":"number"},"label":{"type":"string"},"route":{"type":"string"},"icon":{"type":"string"},"order":{"type":"number"},"parentId":{"type":"number"},"showInSidebar":{"type":"boolean"},"children":{"type":"array","items":{"$ref":"#/components/schemas/ModuleNodeModel"}}},"required":["label","route","icon","order"],"additionalProperties":false},"ModuleNodeModelWithRelations":{"title":"ModuleNodeModelWithRelations","type":"object","description":"(tsType: ModuleNodeModelWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"label":{"type":"string"},"route":{"type":"string"},"icon":{"type":"string"},"order":{"type":"number"},"parentId":{"type":"number"},"showInSidebar":{"type":"boolean"},"children":{"type":"array","items":{"$ref":"#/components/schemas/ModuleNodeModel"}}},"required":["label","route","icon","order"],"additionalProperties":false,"x-typescript-type":"ModuleNodeModelWithRelations"},"ModulePermissionsWithRelations":{"title":"ModulePermissionsWithRelations","type":"object","description":"(tsType: ModulePermissionsWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"userId":{"type":"number"},"modulesId":{"type":"number"}},"required":["userId","modulesId"],"additionalProperties":false,"x-typescript-type":"ModulePermissionsWithRelations"},"ModulePermissions":{"title":"ModulePermissions","type":"object","properties":{"id":{"type":"number"},"userId":{"type":"number"},"modulesId":{"type":"number"}},"required":["userId","modulesId"],"additionalProperties":false},"ModulePermissionsPartialExcluding_id_":{"title":"ModulePermissionsPartialExcluding_id_","type":"object","description":"(tsType: Omit<Partial<ModulePermissions>, 'id'>, schemaOptions: { partial: true, exclude: [ 'id' ] })","properties":{"userId":{"type":"number"},"modulesId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Omit<Partial<ModulePermissions>, 'id'>"},"Media":{"title":"Media","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"}},"required":["name","status"],"additionalProperties":false},"NewMedia":{"title":"NewMedia","type":"object","description":"(tsType: Omit<Media, 'id'>, schemaOptions: { title: 'NewMedia', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"}},"required":["name","status"],"additionalProperties":false,"x-typescript-type":"Omit<Media, 'id'>"},"MediaPartial":{"title":"MediaPartial","type":"object","description":"(tsType: Partial<Media>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<Media>"},"LinkMarketing":{"title":"LinkMarketing","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"status":{"type":"boolean"},"customProperties":{"type":"object"},"userId":{"type":"number"}},"required":["title","description","expirationDate"],"additionalProperties":false},"newLink":{"title":"newLink","type":"object","description":"(tsType: Omit<LinkMarketing, 'id'>, schemaOptions: { title: 'newLink', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"title":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"status":{"type":"boolean"},"customProperties":{"type":"object"},"userId":{"type":"number"}},"required":["title","description","expirationDate"],"additionalProperties":false,"x-typescript-type":"Omit<LinkMarketing, 'id'>"},"LinkMarketingPartial":{"title":"LinkMarketingPartial","type":"object","description":"(tsType: Partial<LinkMarketing>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"title":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"expirationDate":{"type":"string","format":"date-time"},"status":{"type":"boolean"},"customProperties":{"type":"object"},"userId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<LinkMarketing>"},"Leads":{"title":"Leads","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"value":{"type":"number"},"probability":{"type":"number"},"closingDate":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"string","format":"date-time"},"isOverdue":{"type":"boolean"},"contactId":{"type":"number"},"agentId":{"type":"number"},"productId":{"type":"number"},"stageId":{"type":"number"},"businessUnitId":{"type":"number"},"assignmentStatus":{"type":"string"},"assignmentDate":{"type":"string","format":"date-time"},"origin":{"type":"string"},"location":{"type":"string"},"lostAt":{"type":"string","format":"date-time"},"wonAt":{"type":"string","format":"date-time"},"origenId":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"linkId":{"type":"number"},"classificationId":{"type":"number"}},"required":["name","quantity","value","probability","closingDate","contactId","agentId","productId"],"additionalProperties":false},"NewLeads":{"title":"NewLeads","type":"object","description":"(tsType: Omit<Leads, 'id'>, schemaOptions: { title: 'NewLeads', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"value":{"type":"number"},"probability":{"type":"number"},"closingDate":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"string","format":"date-time"},"isOverdue":{"type":"boolean"},"contactId":{"type":"number"},"agentId":{"type":"number"},"productId":{"type":"number"},"stageId":{"type":"number"},"businessUnitId":{"type":"number"},"assignmentStatus":{"type":"string"},"assignmentDate":{"type":"string","format":"date-time"},"origin":{"type":"string"},"location":{"type":"string"},"lostAt":{"type":"string","format":"date-time"},"wonAt":{"type":"string","format":"date-time"},"origenId":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"linkId":{"type":"number"},"classificationId":{"type":"number"}},"required":["name","quantity","value","probability","closingDate","contactId","agentId","productId"],"additionalProperties":false,"x-typescript-type":"Omit<Leads, 'id'>"},"LeadsPartial":{"title":"LeadsPartial","type":"object","description":"(tsType: Partial<Leads>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"value":{"type":"number"},"probability":{"type":"number"},"closingDate":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"string","format":"date-time"},"isOverdue":{"type":"boolean"},"contactId":{"type":"number"},"agentId":{"type":"number"},"productId":{"type":"number"},"stageId":{"type":"number"},"businessUnitId":{"type":"number"},"assignmentStatus":{"type":"string"},"assignmentDate":{"type":"string","format":"date-time"},"origin":{"type":"string"},"location":{"type":"string"},"lostAt":{"type":"string","format":"date-time"},"wonAt":{"type":"string","format":"date-time"},"origenId":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"linkId":{"type":"number"},"classificationId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Leads>"},"LeadSources":{"title":"LeadSources","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"sourceType":{"type":"string","enum":["campaign","webhook","chatbot","form"]},"status":{"type":"boolean"},"linkMarketingId":{"type":"number"},"webhookConfigId":{"type":"number"},"chatConfigId":{"type":"number"}},"required":["name","sourceType"],"additionalProperties":false},"NewLeadsSource":{"title":"NewLeadsSource","type":"object","description":"(tsType: Omit<LeadSources, 'id'>, schemaOptions: { title: 'NewLeadsSource', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"sourceType":{"type":"string","enum":["campaign","webhook","chatbot","form"]},"status":{"type":"boolean"},"linkMarketingId":{"type":"number"},"webhookConfigId":{"type":"number"},"chatConfigId":{"type":"number"}},"required":["name","sourceType"],"additionalProperties":false,"x-typescript-type":"Omit<LeadSources, 'id'>"},"LeadSourcesPartial":{"title":"LeadSourcesPartial","type":"object","description":"(tsType: Partial<LeadSources>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"sourceType":{"type":"string","enum":["campaign","webhook","chatbot","form"]},"status":{"type":"boolean"},"linkMarketingId":{"type":"number"},"webhookConfigId":{"type":"number"},"chatConfigId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<LeadSources>"},"LeadDocuments":{"title":"LeadDocuments","type":"object","properties":{"id":{"type":"number"},"filename":{"type":"string"},"originalFilename":{"type":"string"},"filePath":{"type":"string"},"fileSize":{"type":"number"},"mimeType":{"type":"string"},"uploadedAt":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"leadId":{"type":"number"}},"additionalProperties":false},"InternalMessage":{"title":"InternalMessage","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"content":{"type":"string"},"threadId":{"type":"string"},"authorId":{"type":"number"},"receiverId":{"type":"number"},"businessUnitId":{"type":"number"}},"required":["content","threadId","authorId","receiverId"],"additionalProperties":false},"Instructions":{"title":"Instructions","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"instructions":{"type":"string"},"pageId":{"type":"string"}},"required":["instructions"],"additionalProperties":false},"NewInstructions":{"title":"NewInstructions","type":"object","description":"(tsType: Omit<Instructions, 'id'>, schemaOptions: { title: 'NewInstructions', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"instructions":{"type":"string"},"pageId":{"type":"string"}},"required":["instructions"],"additionalProperties":false,"x-typescript-type":"Omit<Instructions, 'id'>"},"InstructionsWithRelations":{"title":"InstructionsWithRelations","type":"object","description":"(tsType: InstructionsWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"instructions":{"type":"string"},"pageId":{"type":"string"}},"required":["instructions"],"additionalProperties":false,"x-typescript-type":"InstructionsWithRelations"},"InstructionsPartial":{"title":"InstructionsPartial","type":"object","description":"(tsType: Partial<Instructions>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"instructions":{"type":"string"},"pageId":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<Instructions>"},"ContactsExcluding_id_":{"title":"ContactsExcluding_id_","type":"object","description":"(tsType: Omit<Contacts, 'id'>, schemaOptions: { exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"first_name":{"type":"string"},"last_name":{"type":"string"},"job_title":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"createdBy":{"type":"number"},"companyId":{"type":"number"}},"required":["first_name","last_name","email"],"additionalProperties":false,"x-typescript-type":"Omit<Contacts, 'id'>"},"LeadsExcluding_id-contactId-agentId_":{"title":"LeadsExcluding_id-contactId-agentId_","type":"object","description":"(tsType: Omit<Leads, 'id' | 'contactId' | 'agentId'>, schemaOptions: { exclude: [ 'id', 'contactId', 'agentId' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"value":{"type":"number"},"probability":{"type":"number"},"closingDate":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"string","format":"date-time"},"isOverdue":{"type":"boolean"},"productId":{"type":"number"},"stageId":{"type":"number"},"businessUnitId":{"type":"number"},"assignmentStatus":{"type":"string"},"assignmentDate":{"type":"string","format":"date-time"},"origin":{"type":"string"},"location":{"type":"string"},"lostAt":{"type":"string","format":"date-time"},"wonAt":{"type":"string","format":"date-time"},"origenId":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"linkId":{"type":"number"},"classificationId":{"type":"number"}},"required":["name","quantity","value","probability","closingDate","productId"],"additionalProperties":false,"x-typescript-type":"Omit<Leads, 'id' | 'contactId' | 'agentId'>"},"Contacts":{"title":"Contacts","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"first_name":{"type":"string"},"last_name":{"type":"string"},"job_title":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"createdBy":{"type":"number"},"companyId":{"type":"number"}},"required":["first_name","last_name","email"],"additionalProperties":false},"ContactsLeads":{"title":"ContactsLeads","type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contacts"},"lead":{"$ref":"#/components/schemas/Leads"}},"additionalProperties":false},"MetricCard":{"title":"MetricCard","type":"object","description":"(tsType: MetricCard, schemaOptions: { includeRelations: false })","properties":{"count":{"type":"number","description":"Valor actual de la métrica"},"percentageChange":{"type":"number","description":"Porcentaje de cambio vs mes anterior"},"statusText":{"type":"string","description":"Texto de estado personalizado (ej: \"Todos activos\" para agentes)"},"trendType":{"type":"string","description":"Tipo de tendencia: positive, negative, neutral"}},"required":["count","trendType"],"additionalProperties":false,"x-typescript-type":"MetricCard"},"MainMetrics":{"title":"MainMetrics","type":"object","description":"(tsType: MainMetrics, schemaOptions: { includeRelations: false })","properties":{"companies":{"$ref":"#/components/schemas/MetricCard"},"contacts":{"$ref":"#/components/schemas/MetricCard"},"opportunities":{"$ref":"#/components/schemas/MetricCard"},"products":{"$ref":"#/components/schemas/MetricCard"},"agents":{"$ref":"#/components/schemas/MetricCard"}},"required":["companies","contacts","opportunities","products","agents"],"additionalProperties":false,"x-typescript-type":"MainMetrics"},"RecentOpportunity":{"title":"RecentOpportunity","type":"object","description":"(tsType: RecentOpportunity, schemaOptions: { includeRelations: false })","properties":{"title":{"type":"string","description":"Título de la oportunidad"},"amount":{"type":"number","description":"Valor monetario de la oportunidad"},"status":{"type":"string","description":"Estado de la oportunidad: qualified, proposal, prospect, etc."},"company":{"type":"string","description":"Nombre de la empresa"},"opportunityId":{"type":"string","description":"ID de la oportunidad para navegación"}},"required":["title","amount","status","company"],"additionalProperties":false,"x-typescript-type":"RecentOpportunity"},"TopPerformer":{"title":"TopPerformer","type":"object","description":"(tsType: TopPerformer, schemaOptions: { includeRelations: false })","properties":{"name":{"type":"string","description":"Nombre completo del agente"},"initials":{"type":"string","description":"Iniciales del agente para avatar"},"opportunitiesCount":{"type":"number","description":"Número de oportunidades gestionadas"},"totalRevenue":{"type":"number","description":"Ingresos totales generados"},"growthPercentage":{"type":"number","description":"Porcentaje de crecimiento"},"agentId":{"type":"string","description":"ID del agente para navegación"}},"required":["name","initials","opportunitiesCount","totalRevenue","growthPercentage"],"additionalProperties":false,"x-typescript-type":"TopPerformer"},"SummaryCard":{"title":"SummaryCard","type":"object","description":"(tsType: SummaryCard, schemaOptions: { includeRelations: false })","properties":{"value":{"type":"number","description":"Valor principal de la métrica"},"valueType":{"type":"string","description":"Tipo de valor: currency, percentage, count"},"percentageChange":{"type":"number","description":"Porcentaje de cambio vs período anterior"},"comparisonPeriod":{"type":"string","description":"Descripción del período de comparación"},"trendType":{"type":"string","description":"Tipo de tendencia: positive, negative, neutral"}},"required":["value","valueType","trendType"],"additionalProperties":false,"x-typescript-type":"SummaryCard"},"SummaryCards":{"title":"SummaryCards","type":"object","description":"(tsType: SummaryCards, schemaOptions: { includeRelations: false })","properties":{"monthlyRevenue":{"$ref":"#/components/schemas/SummaryCard"},"conversionRate":{"$ref":"#/components/schemas/SummaryCard"},"upcomingClosures":{"$ref":"#/components/schemas/SummaryCard"}},"required":["monthlyRevenue","conversionRate","upcomingClosures"],"additionalProperties":false,"x-typescript-type":"SummaryCards"},"DashboardMetadata":{"title":"DashboardMetadata","type":"object","description":"(tsType: DashboardMetadata, schemaOptions: { includeRelations: false })","properties":{"generatedAt":{"type":"string","format":"date-time","description":"Timestamp de cuando se generó la información"},"dataPeriod":{"type":"string","description":"Período de datos consultado"},"tenantId":{"type":"number","description":"ID del tenant para multi-tenancy"},"apiVersion":{"type":"string","description":"Versión del endpoint para versionado"}},"required":["generatedAt","dataPeriod","tenantId"],"additionalProperties":false,"x-typescript-type":"DashboardMetadata"},"DashboardInfo":{"title":"DashboardInfo","type":"object","description":"(tsType: DashboardInfo, schemaOptions: { includeRelations: false })","properties":{"mainMetrics":{"$ref":"#/components/schemas/MainMetrics"},"recentOpportunities":{"type":"array","items":{"$ref":"#/components/schemas/RecentOpportunity"}},"topPerformers":{"type":"array","items":{"$ref":"#/components/schemas/TopPerformer"}},"summaryCards":{"$ref":"#/components/schemas/SummaryCards"},"metadata":{"$ref":"#/components/schemas/DashboardMetadata"},"kpiMetrics":{"type":"object"}},"required":["mainMetrics","recentOpportunities","topPerformers","summaryCards","metadata"],"additionalProperties":false,"x-typescript-type":"DashboardInfo"},"PipelineStageData":{"title":"PipelineStageData","type":"object","properties":{"stageId":{"type":"number"},"stageName":{"type":"string"},"order":{"type":"number"},"isWon":{"type":"boolean"},"leadCount":{"type":"number"},"totalValue":{"type":"number"},"avgDaysInStage":{"type":"number"}},"required":["stageId","stageName","order","isWon","leadCount","totalValue","avgDaysInStage"],"additionalProperties":false},"AgentPerformanceRow":{"title":"AgentPerformanceRow","type":"object","properties":{"agentId":{"type":"number"},"name":{"type":"string"},"initials":{"type":"string"},"ventasCerradas":{"type":"number"},"conversionRate":{"type":"number"},"cumplimiento":{"type":"number"},"comisionesGeneradas":{"type":"number"},"isTopPerformer":{"type":"boolean"},"targetAmount":{"type":"number"}},"required":["agentId","name","initials","ventasCerradas","conversionRate","cumplimiento","comisionesGeneradas","isTopPerformer"],"additionalProperties":false},"AgentPerformancePage":{"title":"AgentPerformancePage","type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/components/schemas/AgentPerformanceRow"}},"total":{"type":"number"},"page":{"type":"number"},"pageSize":{"type":"number"}},"required":["rows","total","page","pageSize"],"additionalProperties":false},"AgentCloseTime":{"title":"AgentCloseTime","type":"object","properties":{"agentId":{"type":"number"},"avgDaysToClose":{"type":"number"}},"required":["agentId","avgDaysToClose"],"additionalProperties":false},"CrmConfig":{"title":"CrmConfig","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"legalName":{"type":"string"},"rfc":{"type":"string"},"direction":{"type":"string"},"phone":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewCrmConfig":{"title":"NewCrmConfig","type":"object","description":"(tsType: Omit<CrmConfig, 'id'>, schemaOptions: { title: 'NewCrmConfig', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"legalName":{"type":"string"},"rfc":{"type":"string"},"direction":{"type":"string"},"phone":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<CrmConfig, 'id'>"},"CrmConfigWithRelations":{"title":"CrmConfigWithRelations","type":"object","description":"(tsType: CrmConfigWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"legalName":{"type":"string"},"rfc":{"type":"string"},"direction":{"type":"string"},"phone":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"CrmConfigWithRelations"},"CrmConfigPartial":{"title":"CrmConfigPartial","type":"object","description":"(tsType: Partial<CrmConfig>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"legalName":{"type":"string"},"rfc":{"type":"string"},"direction":{"type":"string"},"phone":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<CrmConfig>"},"Conversation":{"title":"Conversation","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"senderId":{"type":"string"},"message":{"type":"string"},"role":{"type":"string","enum":["user","agent"]},"threadId":{"type":"string"},"pageId":{"type":"string"},"platform":{"type":"string","enum":["instagram","messenger","whatsapp"]},"messageTimestamp":{"type":"string","format":"date-time"},"metadata":{"type":"object"},"isError":{"type":"boolean"},"errorMessage":{"type":"string"}},"required":["senderId","message","role","threadId"],"additionalProperties":false},"NewConversation":{"title":"NewConversation","type":"object","description":"(tsType: Omit<Conversation, 'id'>, schemaOptions: { title: 'NewConversation', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"senderId":{"type":"string"},"message":{"type":"string"},"role":{"type":"string","enum":["user","agent"]},"threadId":{"type":"string"},"pageId":{"type":"string"},"platform":{"type":"string","enum":["instagram","messenger","whatsapp"]},"messageTimestamp":{"type":"string","format":"date-time"},"metadata":{"type":"object"},"isError":{"type":"boolean"},"errorMessage":{"type":"string"}},"required":["senderId","message","role","threadId"],"additionalProperties":false,"x-typescript-type":"Omit<Conversation, 'id'>"},"ConversationWithRelations":{"title":"ConversationWithRelations","type":"object","description":"(tsType: ConversationWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"senderId":{"type":"string"},"message":{"type":"string"},"role":{"type":"string","enum":["user","agent"]},"threadId":{"type":"string"},"pageId":{"type":"string"},"platform":{"type":"string","enum":["instagram","messenger","whatsapp"]},"messageTimestamp":{"type":"string","format":"date-time"},"metadata":{"type":"object"},"isError":{"type":"boolean"},"errorMessage":{"type":"string"}},"required":["senderId","message","role","threadId"],"additionalProperties":false,"x-typescript-type":"ConversationWithRelations"},"ConversationPartial":{"title":"ConversationPartial","type":"object","description":"(tsType: Partial<Conversation>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"senderId":{"type":"string"},"message":{"type":"string"},"role":{"type":"string","enum":["user","agent"]},"threadId":{"type":"string"},"pageId":{"type":"string"},"platform":{"type":"string","enum":["instagram","messenger","whatsapp"]},"messageTimestamp":{"type":"string","format":"date-time"},"metadata":{"type":"object"},"isError":{"type":"boolean"},"errorMessage":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<Conversation>"},"ConversationsState":{"title":"ConversationsState","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"senderId":{"type":"string"},"platform":{"type":"string"},"threadId":{"type":"string"},"humanAgentId":{"type":"string"},"isWithHuman":{"type":"boolean"},"escalatedAt":{"type":"string","format":"date-time"},"lastBotMessageAt":{"type":"string","format":"date-time"},"isConversationClosed":{"type":"boolean"},"senderName":{"type":"string"},"contactId":{"type":"number"}},"required":["senderId","platform","threadId","isWithHuman","isConversationClosed"],"additionalProperties":false},"NewConversationState":{"title":"NewConversationState","type":"object","description":"(tsType: Omit<ConversationsState, 'id'>, schemaOptions: { title: 'NewConversationState', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"senderId":{"type":"string"},"platform":{"type":"string"},"threadId":{"type":"string"},"humanAgentId":{"type":"string"},"isWithHuman":{"type":"boolean"},"escalatedAt":{"type":"string","format":"date-time"},"lastBotMessageAt":{"type":"string","format":"date-time"},"isConversationClosed":{"type":"boolean"},"senderName":{"type":"string"},"contactId":{"type":"number"}},"required":["senderId","platform","threadId","isWithHuman","isConversationClosed"],"additionalProperties":false,"x-typescript-type":"Omit<ConversationsState, 'id'>"},"ConversationsStateWithRelations":{"title":"ConversationsStateWithRelations","type":"object","description":"(tsType: ConversationsStateWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"senderId":{"type":"string"},"platform":{"type":"string"},"threadId":{"type":"string"},"humanAgentId":{"type":"string"},"isWithHuman":{"type":"boolean"},"escalatedAt":{"type":"string","format":"date-time"},"lastBotMessageAt":{"type":"string","format":"date-time"},"isConversationClosed":{"type":"boolean"},"senderName":{"type":"string"},"contactId":{"type":"number"}},"required":["senderId","platform","threadId","isWithHuman","isConversationClosed"],"additionalProperties":false,"x-typescript-type":"ConversationsStateWithRelations"},"ConversationsStatePartial":{"title":"ConversationsStatePartial","type":"object","description":"(tsType: Partial<ConversationsState>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"senderId":{"type":"string"},"platform":{"type":"string"},"threadId":{"type":"string"},"humanAgentId":{"type":"string"},"isWithHuman":{"type":"boolean"},"escalatedAt":{"type":"string","format":"date-time"},"lastBotMessageAt":{"type":"string","format":"date-time"},"isConversationClosed":{"type":"boolean"},"senderName":{"type":"string"},"contactId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<ConversationsState>"},"ConversationHistory":{"title":"ConversationHistory","type":"object","properties":{"id":{"type":"number"},"threadId":{"type":"string"},"actorName":{"type":"string"},"actorType":{"type":"string"},"action":{"type":"string"},"agentId":{"type":"number"},"userId":{"type":"number"},"metadata":{"type":"object"},"timestamp":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"}},"required":["threadId","actorType","action","timestamp"],"additionalProperties":false},"NewConversationHistory":{"title":"NewConversationHistory","type":"object","description":"(tsType: Omit<ConversationHistory, 'id'>, schemaOptions: { title: 'NewConversationHistory', exclude: [ 'id' ] })","properties":{"threadId":{"type":"string"},"actorName":{"type":"string"},"actorType":{"type":"string"},"action":{"type":"string"},"agentId":{"type":"number"},"userId":{"type":"number"},"metadata":{"type":"object"},"timestamp":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"}},"required":["threadId","actorType","action","timestamp"],"additionalProperties":false,"x-typescript-type":"Omit<ConversationHistory, 'id'>"},"ConversationHistoryWithRelations":{"title":"ConversationHistoryWithRelations","type":"object","description":"(tsType: ConversationHistoryWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"threadId":{"type":"string"},"actorName":{"type":"string"},"actorType":{"type":"string"},"action":{"type":"string"},"agentId":{"type":"number"},"userId":{"type":"number"},"metadata":{"type":"object"},"timestamp":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"}},"required":["threadId","actorType","action","timestamp"],"additionalProperties":false,"x-typescript-type":"ConversationHistoryWithRelations"},"ConversationHistoryPartial":{"title":"ConversationHistoryPartial","type":"object","description":"(tsType: Partial<ConversationHistory>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"threadId":{"type":"string"},"actorName":{"type":"string"},"actorType":{"type":"string"},"action":{"type":"string"},"agentId":{"type":"number"},"userId":{"type":"number"},"metadata":{"type":"object"},"timestamp":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<ConversationHistory>"},"NewContacts":{"title":"NewContacts","type":"object","description":"(tsType: Omit<Contacts, 'id'>, schemaOptions: { title: 'NewContacts', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"first_name":{"type":"string"},"last_name":{"type":"string"},"job_title":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"createdBy":{"type":"number"},"companyId":{"type":"number"}},"required":["first_name","last_name","email"],"additionalProperties":false,"x-typescript-type":"Omit<Contacts, 'id'>"},"ContactsPartial":{"title":"ContactsPartial","type":"object","description":"(tsType: Partial<Contacts>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"first_name":{"type":"string"},"last_name":{"type":"string"},"job_title":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"createdBy":{"type":"number"},"companyId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Contacts>"},"Companies":{"title":"Companies","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"rfc":{"type":"string"},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"createdBy":{"type":"string"},"agentId":{"type":"number"}},"required":["name","rfc","agentId"],"additionalProperties":false},"NewCompanies":{"title":"NewCompanies","type":"object","description":"(tsType: Omit<Companies, 'id'>, schemaOptions: { title: 'NewCompanies', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"rfc":{"type":"string"},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"createdBy":{"type":"string"},"agentId":{"type":"number"}},"required":["name","rfc","agentId"],"additionalProperties":false,"x-typescript-type":"Omit<Companies, 'id'>"},"CompaniesPartial":{"title":"CompaniesPartial","type":"object","description":"(tsType: Partial<Companies>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"rfc":{"type":"string"},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"createdBy":{"type":"string"},"agentId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Companies>"},"NewCommissionRule":{"title":"NewCommissionRule","type":"object","description":"(tsType: Omit<CommissionRule, 'id' | 'createdBy' | 'updatedBy'>, schemaOptions: { title: 'NewCommissionRule', exclude: [ 'id', 'createdBy', 'updatedBy' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"ruleType":{"type":"string","enum":["global","agent","product_category","classification"]},"percentage":{"type":"number","minimum":0,"maximum":100},"agentId":{"type":"number"},"productCategoryId":{"type":"number"},"classificationId":{"type":"number"},"isActive":{"type":"boolean"}},"required":["ruleType","percentage"],"additionalProperties":false,"x-typescript-type":"Omit<CommissionRule, 'id' | 'createdBy' | 'updatedBy'>"},"CommissionRulePartial":{"title":"CommissionRulePartial","type":"object","description":"(tsType: Partial<CommissionRule>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"ruleType":{"type":"string","enum":["global","agent","product_category","classification"]},"percentage":{"type":"number","minimum":0,"maximum":100},"agentId":{"type":"number"},"productCategoryId":{"type":"number"},"classificationId":{"type":"number"},"isActive":{"type":"boolean"},"createdBy":{"type":"number"},"updatedBy":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<CommissionRule>"},"ClassificationLead":{"title":"ClassificationLead","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"NewClassificationLead":{"title":"NewClassificationLead","type":"object","description":"(tsType: Omit<ClassificationLead, 'id'>, schemaOptions: { title: 'NewClassificationLead', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<ClassificationLead, 'id'>"},"ClassificationLeadPartial":{"title":"ClassificationLeadPartial","type":"object","description":"(tsType: Partial<ClassificationLead>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<ClassificationLead>"},"ChatbotTheme":{"title":"ChatbotTheme","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"customizationId":{"type":"number"},"primaryColor":{"type":"string"},"primaryTextColor":{"type":"string"},"secondaryColor":{"type":"string"},"secondaryTextColor":{"type":"string"},"accentColor":{"type":"string"},"accentTextColor":{"type":"string"},"primaryDarkColor":{"type":"string"},"primaryTextDarkColor":{"type":"string"},"secondaryDarkColor":{"type":"string"},"secondaryTextDarkColor":{"type":"string"},"accentDarkColor":{"type":"string"},"accentTextDarkColor":{"type":"string"}},"required":["customizationId"],"additionalProperties":false},"NewChatbotTheme":{"title":"NewChatbotTheme","type":"object","description":"(tsType: Omit<ChatbotTheme, 'id'>, schemaOptions: { title: 'NewChatbotTheme', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"customizationId":{"type":"number"},"primaryColor":{"type":"string"},"primaryTextColor":{"type":"string"},"secondaryColor":{"type":"string"},"secondaryTextColor":{"type":"string"},"accentColor":{"type":"string"},"accentTextColor":{"type":"string"},"primaryDarkColor":{"type":"string"},"primaryTextDarkColor":{"type":"string"},"secondaryDarkColor":{"type":"string"},"secondaryTextDarkColor":{"type":"string"},"accentDarkColor":{"type":"string"},"accentTextDarkColor":{"type":"string"}},"required":["customizationId"],"additionalProperties":false,"x-typescript-type":"Omit<ChatbotTheme, 'id'>"},"ChatbotCustomizationWithRelations":{"title":"ChatbotCustomizationWithRelations","type":"object","description":"(tsType: ChatbotCustomizationWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"chatbotIcon":{"type":"string"},"inputIcon":{"type":"string"},"bubbleIcon":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string"},"chatbotTitle":{"type":"string"},"frequentQuestions":{"type":"array","items":{"type":"string"}},"fontSize":{"type":"string"},"showTitle":{"type":"boolean"},"showSubtitle":{"type":"boolean"},"theme":{"$ref":"#/components/schemas/ChatbotThemeWithRelations"}},"required":["chatbotIcon","inputIcon","bubbleIcon","title","subtitle","description","chatbotTitle","frequentQuestions"],"additionalProperties":false,"x-typescript-type":"ChatbotCustomizationWithRelations"},"ChatbotThemeWithRelations":{"title":"ChatbotThemeWithRelations","type":"object","description":"(tsType: ChatbotThemeWithRelations, schemaOptions: { includeRelations: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"customizationId":{"type":"number"},"primaryColor":{"type":"string"},"primaryTextColor":{"type":"string"},"secondaryColor":{"type":"string"},"secondaryTextColor":{"type":"string"},"accentColor":{"type":"string"},"accentTextColor":{"type":"string"},"primaryDarkColor":{"type":"string"},"primaryTextDarkColor":{"type":"string"},"secondaryDarkColor":{"type":"string"},"secondaryTextDarkColor":{"type":"string"},"accentDarkColor":{"type":"string"},"accentTextDarkColor":{"type":"string"},"customization":{"$ref":"#/components/schemas/ChatbotCustomizationWithRelations"},"foreignKey":{}},"required":["customizationId"],"additionalProperties":false,"x-typescript-type":"ChatbotThemeWithRelations"},"ChatbotThemePartial":{"title":"ChatbotThemePartial","type":"object","description":"(tsType: Partial<ChatbotTheme>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"customizationId":{"type":"number"},"primaryColor":{"type":"string"},"primaryTextColor":{"type":"string"},"secondaryColor":{"type":"string"},"secondaryTextColor":{"type":"string"},"accentColor":{"type":"string"},"accentTextColor":{"type":"string"},"primaryDarkColor":{"type":"string"},"primaryTextDarkColor":{"type":"string"},"secondaryDarkColor":{"type":"string"},"secondaryTextDarkColor":{"type":"string"},"accentDarkColor":{"type":"string"},"accentTextDarkColor":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<ChatbotTheme>"},"ChatbotCustomization":{"title":"ChatbotCustomization","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"chatbotIcon":{"type":"string"},"inputIcon":{"type":"string"},"bubbleIcon":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string"},"chatbotTitle":{"type":"string"},"frequentQuestions":{"type":"array","items":{"type":"string"}},"fontSize":{"type":"string"},"showTitle":{"type":"boolean"},"showSubtitle":{"type":"boolean"}},"required":["chatbotIcon","inputIcon","bubbleIcon","title","subtitle","description","chatbotTitle","frequentQuestions"],"additionalProperties":false},"NewChatbotCustomization":{"title":"NewChatbotCustomization","type":"object","description":"(tsType: Omit<ChatbotCustomization, 'id'>, schemaOptions: { title: 'NewChatbotCustomization', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"chatbotIcon":{"type":"string"},"inputIcon":{"type":"string"},"bubbleIcon":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string"},"chatbotTitle":{"type":"string"},"frequentQuestions":{"type":"array","items":{"type":"string"}},"fontSize":{"type":"string"},"showTitle":{"type":"boolean"},"showSubtitle":{"type":"boolean"}},"required":["chatbotIcon","inputIcon","bubbleIcon","title","subtitle","description","chatbotTitle","frequentQuestions"],"additionalProperties":false,"x-typescript-type":"Omit<ChatbotCustomization, 'id'>"},"ChatbotCustomizationPartial":{"title":"ChatbotCustomizationPartial","type":"object","description":"(tsType: Partial<ChatbotCustomization>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"chatbotIcon":{"type":"string"},"inputIcon":{"type":"string"},"bubbleIcon":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string"},"chatbotTitle":{"type":"string"},"frequentQuestions":{"type":"array","items":{"type":"string"}},"fontSize":{"type":"string"},"showTitle":{"type":"boolean"},"showSubtitle":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<ChatbotCustomization>"},"ChatbotConfig":{"title":"ChatbotConfig","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"baseUrl":{"type":"string"},"chatbotEndpoint":{"type":"string"},"loginEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"agentId":{"type":"string"},"resourceId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"pageUsername":{"type":"string"},"pagePassword":{"type":"string"}},"required":["baseUrl","chatbotEndpoint","loginEndpoint","tokenEndpoint","agentId","resourceId","clientId","clientSecret","pageUsername","pagePassword"],"additionalProperties":false},"NewChatbotConfig":{"title":"NewChatbotConfig","type":"object","description":"(tsType: Omit<ChatbotConfig, 'id'>, schemaOptions: { title: 'NewChatbotConfig', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"baseUrl":{"type":"string"},"chatbotEndpoint":{"type":"string"},"loginEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"agentId":{"type":"string"},"resourceId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"pageUsername":{"type":"string"},"pagePassword":{"type":"string"}},"required":["baseUrl","chatbotEndpoint","loginEndpoint","tokenEndpoint","agentId","resourceId","clientId","clientSecret","pageUsername","pagePassword"],"additionalProperties":false,"x-typescript-type":"Omit<ChatbotConfig, 'id'>"},"ChatbotConfigPartial":{"title":"ChatbotConfigPartial","type":"object","description":"(tsType: Partial<ChatbotConfig>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"baseUrl":{"type":"string"},"chatbotEndpoint":{"type":"string"},"loginEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"agentId":{"type":"string"},"resourceId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"pageUsername":{"type":"string"},"pagePassword":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<ChatbotConfig>"},"CategoryProduct":{"title":"CategoryProduct","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"scheduleMeeting":{"type":"boolean"},"existence":{"type":"boolean"},"purchaseTracking":{"type":"boolean"}},"required":["name","scheduleMeeting","existence","purchaseTracking"],"additionalProperties":false},"NewCategoryProduct":{"title":"NewCategoryProduct","type":"object","description":"(tsType: Omit<CategoryProduct, 'id'>, schemaOptions: { title: 'NewCategoryProduct', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"scheduleMeeting":{"type":"boolean"},"existence":{"type":"boolean"},"purchaseTracking":{"type":"boolean"}},"required":["name","scheduleMeeting","existence","purchaseTracking"],"additionalProperties":false,"x-typescript-type":"Omit<CategoryProduct, 'id'>"},"CategoryProductPartial":{"title":"CategoryProductPartial","type":"object","description":"(tsType: Partial<CategoryProduct>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"scheduleMeeting":{"type":"boolean"},"existence":{"type":"boolean"},"purchaseTracking":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<CategoryProduct>"},"CalendarEvents":{"title":"CalendarEvents","type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"label":{"type":"string","enum":["event","task","lead"]},"clientId":{"type":"number"},"leadId":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"},"date":{"type":"string","format":"date-time"},"type":{"type":"string"}},"required":["title","startDate","endDate","label"],"additionalProperties":false},"NewCalendarEvents":{"title":"NewCalendarEvents","type":"object","description":"(tsType: Omit<CalendarEvents, 'id' | 'createdOn' | 'modifiedOn' | 'deleted' | 'deletedOn' | 'deletedBy'>, schemaOptions: { title: 'NewCalendarEvents', exclude: [ 'id', 'createdOn', 'modifiedOn', 'deleted', 'deletedOn', 'deletedBy' ] })","properties":{"title":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"label":{"type":"string","enum":["event","task","lead"]},"clientId":{"type":"number"},"leadId":{"type":"number"},"date":{"type":"string","format":"date-time"},"type":{"type":"string"}},"required":["title","startDate","endDate","label"],"additionalProperties":false,"x-typescript-type":"Omit<CalendarEvents, 'id' | 'createdOn' | 'modifiedOn' | 'deleted' | 'deletedOn' | 'deletedBy'>"},"CalendarEventsPartial":{"title":"CalendarEventsPartial","type":"object","description":"(tsType: Partial<CalendarEvents>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"title":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"description":{"type":"string"},"label":{"type":"string","enum":["event","task","lead"]},"clientId":{"type":"number"},"leadId":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time"},"deletedBy":{"type":"number"},"date":{"type":"string","format":"date-time"},"type":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<CalendarEvents>"},"BusinessUnits":{"title":"BusinessUnits","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"status":{"type":"string"},"operatingHours":{"type":"object"},"timezone":{"type":"string"},"priority":{"type":"number"},"createdBy":{"type":"number"},"responsibleUserId":{"type":"number"}},"required":["name"],"additionalProperties":false},"NewBusinessUnits":{"title":"NewBusinessUnits","type":"object","description":"(tsType: Omit<BusinessUnits, 'id'>, schemaOptions: { title: 'NewBusinessUnits', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"status":{"type":"string"},"operatingHours":{"type":"object"},"timezone":{"type":"string"},"priority":{"type":"number"},"createdBy":{"type":"number"},"responsibleUserId":{"type":"number"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"Omit<BusinessUnits, 'id'>"},"BusinessUnitsPartial":{"title":"BusinessUnitsPartial","type":"object","description":"(tsType: Partial<BusinessUnits>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"status":{"type":"string"},"operatingHours":{"type":"object"},"timezone":{"type":"string"},"priority":{"type":"number"},"createdBy":{"type":"number"},"responsibleUserId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<BusinessUnits>"},"BusinessUnitTypeProducts":{"title":"BusinessUnitTypeProducts","type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["businessUnitId","typeProductId"],"additionalProperties":false},"NewBusinessUnitTypeProducts":{"title":"NewBusinessUnitTypeProducts","type":"object","description":"(tsType: Omit<BusinessUnitTypeProducts, 'id'>, schemaOptions: { title: 'NewBusinessUnitTypeProducts', exclude: [ 'id' ] })","properties":{"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["businessUnitId","typeProductId"],"additionalProperties":false,"x-typescript-type":"Omit<BusinessUnitTypeProducts, 'id'>"},"BusinessUnitTypeProductsPartial":{"title":"BusinessUnitTypeProductsPartial","type":"object","description":"(tsType: Partial<BusinessUnitTypeProducts>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"typeProductId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<BusinessUnitTypeProducts>"},"BusinessUnitCategories":{"title":"BusinessUnitCategories","type":"object","properties":{"id":{"type":"number"},"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["businessUnitId","categoryProductId","typeProductId"],"additionalProperties":false},"NewBusinessUnitCategories":{"title":"NewBusinessUnitCategories","type":"object","description":"(tsType: Omit<BusinessUnitCategories, 'id'>, schemaOptions: { title: 'NewBusinessUnitCategories', exclude: [ 'id' ] })","properties":{"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["businessUnitId","categoryProductId","typeProductId"],"additionalProperties":false,"x-typescript-type":"Omit<BusinessUnitCategories, 'id'>"},"BusinessUnitCategoriesPartial":{"title":"BusinessUnitCategoriesPartial","type":"object","description":"(tsType: Partial<BusinessUnitCategories>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"status":{"type":"string"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<BusinessUnitCategories>"},"BusinessUnitAgents":{"title":"BusinessUnitAgents","type":"object","properties":{"id":{"type":"number"},"assignmentOrder":{"type":"number"},"lastAssignmentDate":{"type":"string","format":"date-time"},"status":{"type":"string"},"maxConcurrentLeads":{"type":"number"},"currentLeadCount":{"type":"number"},"priority":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"agentId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["businessUnitId","agentId","categoryProductId"],"additionalProperties":false},"NewBusinessUnitAgents":{"title":"NewBusinessUnitAgents","type":"object","description":"(tsType: Omit<BusinessUnitAgents, 'id'>, schemaOptions: { title: 'NewBusinessUnitAgents', exclude: [ 'id' ] })","properties":{"assignmentOrder":{"type":"number"},"lastAssignmentDate":{"type":"string","format":"date-time"},"status":{"type":"string"},"maxConcurrentLeads":{"type":"number"},"currentLeadCount":{"type":"number"},"priority":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"agentId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"required":["businessUnitId","agentId","categoryProductId"],"additionalProperties":false,"x-typescript-type":"Omit<BusinessUnitAgents, 'id'>"},"BusinessUnitAgentsPartial":{"title":"BusinessUnitAgentsPartial","type":"object","description":"(tsType: Partial<BusinessUnitAgents>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"assignmentOrder":{"type":"number"},"lastAssignmentDate":{"type":"string","format":"date-time"},"status":{"type":"string"},"maxConcurrentLeads":{"type":"number"},"currentLeadCount":{"type":"number"},"priority":{"type":"number"},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"businessUnitId":{"type":"number"},"agentId":{"type":"number"},"categoryProductId":{"type":"number"},"typeProductId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<BusinessUnitAgents>"},"Agents":{"title":"Agents","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"status":{"type":"boolean"},"createdBy":{"type":"string"},"originId":{"type":"number"},"mediaId":{"type":"number"},"userId":{"type":"number"}},"required":["name","email","status"],"additionalProperties":false},"AgentsExcluding_id_":{"title":"AgentsExcluding_id_","type":"object","description":"(tsType: Omit<Agents, 'id'>, schemaOptions: { exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"status":{"type":"boolean"},"createdBy":{"type":"string"},"originId":{"type":"number"},"mediaId":{"type":"number"},"userId":{"type":"number"}},"required":["name","email","status"],"additionalProperties":false,"x-typescript-type":"Omit<Agents, 'id'>"},"AgentsPartial":{"title":"AgentsPartial","type":"object","description":"(tsType: Partial<Agents>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"status":{"type":"boolean"},"createdBy":{"type":"string"},"originId":{"type":"number"},"mediaId":{"type":"number"},"userId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Agents>"},"SecretApiKey":{"title":"SecretApiKey","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"key":{"type":"string"},"agentsId":{"type":"number"}},"required":["key"],"additionalProperties":false},"User":{"title":"User","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"firstName":{"type":"string"},"lastName":{"type":"string"},"middleName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"defaultTenant":{"type":"number"},"lastLogin":{"type":"string","format":"date-time"},"imagePath":{"type":"string"},"qrPath":{"type":"string"},"active":{"type":"boolean"}},"required":["firstName","username"],"additionalProperties":false},"UserPartial":{"title":"UserPartial","type":"object","description":"(tsType: Partial<User>, schemaOptions: { partial: true })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"firstName":{"type":"string"},"lastName":{"type":"string"},"middleName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"defaultTenant":{"type":"number"},"lastLogin":{"type":"string","format":"date-time"},"imagePath":{"type":"string"},"qrPath":{"type":"string"},"active":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<User>"},"Tenant":{"title":"Tenant","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"number"},"modifiedBy":{"type":"number"},"id":{"type":"number"},"name":{"type":"string"},"type":{"type":"string"},"address1":{"type":"string"},"address2":{"type":"string"},"address3":{"type":"string"},"address4":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"status":{"type":"string"},"tenantsTypeId":{"type":"number"}},"required":["name","type","status","tenantsTypeId"],"additionalProperties":false},"Role":{"title":"Role","type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"id":{"type":"number"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"modulePermissions":{"type":"array","items":{"type":"string"}},"roleKey":{"type":"number"},"isAgent":{"type":"boolean"},"hasFullAccess":{"type":"boolean"}},"required":["name"],"additionalProperties":false},"LoginRequest":{"title":"LoginRequest","type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"}},"required":["client_id","client_secret","username","password"],"additionalProperties":false},"TokenResponse":{"title":"TokenResponse","type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"}},"required":["accessToken","refreshToken"],"additionalProperties":false},"AuthTokenRequest":{"title":"AuthTokenRequest","type":"object","properties":{"code":{"type":"string"},"clientId":{"type":"string"},"username":{"type":"string"}},"required":["code","clientId","username"],"additionalProperties":false},"AuthRefreshTokenRequest":{"title":"AuthRefreshTokenRequest","type":"object","properties":{"refreshToken":{"type":"string"}},"required":["refreshToken"],"additionalProperties":false},"AuditLog":{"title":"AuditLog","type":"object","properties":{"id":{"type":"number"},"operationName":{"type":"string"},"operationTime":{"type":"string","format":"date-time"},"tableName":{"type":"string"},"logType":{"type":"string"},"entityId":{"type":"string"},"userId":{"type":"string"},"before":{"type":"object"},"after":{"type":"object"}},"required":["operationName","operationTime","tableName"],"additionalProperties":false},"loopback.Count":{"type":"object","title":"loopback.Count","x-typescript-type":"@loopback/repository#Count","properties":{"count":{"type":"number"}}},"Agents.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Agents.ScopeFilter"},"Agents.IncludeFilter.Items":{"title":"Agents.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["origins","media","secretApiKey","user","leads","companies","targets"]},"scope":{"$ref":"#/components/schemas/Agents.ScopeFilter"}}},"Agents.Filter":{"type":"object","title":"Agents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"email":{"type":"boolean"},"phone":{"type":"boolean"},"status":{"type":"boolean"},"createdBy":{"type":"boolean"},"originId":{"type":"boolean"},"mediaId":{"type":"boolean"},"userId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","email","phone","status","createdBy","originId","mediaId","userId"],"example":"deleted"},"uniqueItems":true}],"title":"Agents.Fields"},"include":{"title":"Agents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Agents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Agents>"},"Agents.Filter1":{"type":"object","title":"Agents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Agents.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"email":{"type":"boolean"},"phone":{"type":"boolean"},"status":{"type":"boolean"},"createdBy":{"type":"boolean"},"originId":{"type":"boolean"},"mediaId":{"type":"boolean"},"userId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","email","phone","status","createdBy","originId","mediaId","userId"],"example":"deleted"},"uniqueItems":true}],"title":"Agents.Fields"},"include":{"title":"Agents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Agents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Agents>"},"audit_logs.Filter":{"type":"object","title":"audit_logs.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"audit_logs.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"operationName":{"type":"boolean"},"operationTime":{"type":"boolean"},"tableName":{"type":"boolean"},"logType":{"type":"boolean"},"entityId":{"type":"boolean"},"userId":{"type":"boolean"},"before":{"type":"boolean"},"after":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","operationName","operationTime","tableName","logType","entityId","userId","before","after"],"example":"id"},"uniqueItems":true}],"title":"audit_logs.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<AuditLog>"},"business_unit_agents.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"business_unit_agents.ScopeFilter"},"business_unit_agents.IncludeFilter.Items":{"title":"business_unit_agents.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["businessUnit","agent","categoryProduct","typeProduct"]},"scope":{"$ref":"#/components/schemas/business_unit_agents.ScopeFilter"}}},"business_unit_agents.Filter":{"type":"object","title":"business_unit_agents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"assignmentOrder":{"type":"boolean"},"lastAssignmentDate":{"type":"boolean"},"status":{"type":"boolean"},"maxConcurrentLeads":{"type":"boolean"},"currentLeadCount":{"type":"boolean"},"priority":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"agentId":{"type":"boolean"},"categoryProductId":{"type":"boolean"},"typeProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","assignmentOrder","lastAssignmentDate","status","maxConcurrentLeads","currentLeadCount","priority","createdOn","modifiedOn","businessUnitId","agentId","categoryProductId","typeProductId"],"example":"id"},"uniqueItems":true}],"title":"business_unit_agents.Fields"},"include":{"title":"business_unit_agents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_unit_agents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnitAgents>"},"business_unit_agents.Filter1":{"type":"object","title":"business_unit_agents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"business_unit_agents.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"assignmentOrder":{"type":"boolean"},"lastAssignmentDate":{"type":"boolean"},"status":{"type":"boolean"},"maxConcurrentLeads":{"type":"boolean"},"currentLeadCount":{"type":"boolean"},"priority":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"agentId":{"type":"boolean"},"categoryProductId":{"type":"boolean"},"typeProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","assignmentOrder","lastAssignmentDate","status","maxConcurrentLeads","currentLeadCount","priority","createdOn","modifiedOn","businessUnitId","agentId","categoryProductId","typeProductId"],"example":"id"},"uniqueItems":true}],"title":"business_unit_agents.Fields"},"include":{"title":"business_unit_agents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_unit_agents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnitAgents>"},"business_unit_categories.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"business_unit_categories.ScopeFilter"},"business_unit_categories.IncludeFilter.Items":{"title":"business_unit_categories.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["businessUnit","categoryProduct","typeProduct"]},"scope":{"$ref":"#/components/schemas/business_unit_categories.ScopeFilter"}}},"business_unit_categories.Filter":{"type":"object","title":"business_unit_categories.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"status":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"categoryProductId":{"type":"boolean"},"typeProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","status","createdOn","modifiedOn","businessUnitId","categoryProductId","typeProductId"],"example":"id"},"uniqueItems":true}],"title":"business_unit_categories.Fields"},"include":{"title":"business_unit_categories.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_unit_categories.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnitCategories>"},"business_unit_categories.Filter1":{"type":"object","title":"business_unit_categories.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"business_unit_categories.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"status":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"categoryProductId":{"type":"boolean"},"typeProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","status","createdOn","modifiedOn","businessUnitId","categoryProductId","typeProductId"],"example":"id"},"uniqueItems":true}],"title":"business_unit_categories.Fields"},"include":{"title":"business_unit_categories.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_unit_categories.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnitCategories>"},"business_unit_type_products.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"business_unit_type_products.ScopeFilter"},"business_unit_type_products.IncludeFilter.Items":{"title":"business_unit_type_products.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["businessUnit","typeProduct"]},"scope":{"$ref":"#/components/schemas/business_unit_type_products.ScopeFilter"}}},"business_unit_type_products.Filter":{"type":"object","title":"business_unit_type_products.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"status":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"typeProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","status","createdOn","modifiedOn","businessUnitId","typeProductId"],"example":"id"},"uniqueItems":true}],"title":"business_unit_type_products.Fields"},"include":{"title":"business_unit_type_products.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_unit_type_products.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnitTypeProducts>"},"business_unit_type_products.Filter1":{"type":"object","title":"business_unit_type_products.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"business_unit_type_products.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"status":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"typeProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","status","createdOn","modifiedOn","businessUnitId","typeProductId"],"example":"id"},"uniqueItems":true}],"title":"business_unit_type_products.Fields"},"include":{"title":"business_unit_type_products.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_unit_type_products.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnitTypeProducts>"},"business_units.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"business_units.ScopeFilter"},"business_units.IncludeFilter.Items":{"title":"business_units.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["responsibleUser","businessUnitTypeProducts","businessUnitCategories","businessUnitAgents","leads","targets"]},"scope":{"$ref":"#/components/schemas/business_units.ScopeFilter"}}},"business_units.Filter":{"type":"object","title":"business_units.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"address":{"type":"boolean"},"city":{"type":"boolean"},"state":{"type":"boolean"},"country":{"type":"boolean"},"phone":{"type":"boolean"},"email":{"type":"boolean"},"status":{"type":"boolean"},"operatingHours":{"type":"boolean"},"timezone":{"type":"boolean"},"priority":{"type":"boolean"},"createdBy":{"type":"boolean"},"responsibleUserId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","address","city","state","country","phone","email","status","operatingHours","timezone","priority","createdBy","responsibleUserId"],"example":"deleted"},"uniqueItems":true}],"title":"business_units.Fields"},"include":{"title":"business_units.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_units.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnits>"},"business_units.Filter1":{"type":"object","title":"business_units.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"business_units.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"address":{"type":"boolean"},"city":{"type":"boolean"},"state":{"type":"boolean"},"country":{"type":"boolean"},"phone":{"type":"boolean"},"email":{"type":"boolean"},"status":{"type":"boolean"},"operatingHours":{"type":"boolean"},"timezone":{"type":"boolean"},"priority":{"type":"boolean"},"createdBy":{"type":"boolean"},"responsibleUserId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","address","city","state","country","phone","email","status","operatingHours","timezone","priority","createdBy","responsibleUserId"],"example":"deleted"},"uniqueItems":true}],"title":"business_units.Fields"},"include":{"title":"business_units.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/business_units.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<BusinessUnits>"},"CalendarEvents.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"CalendarEvents.ScopeFilter"},"CalendarEvents.IncludeFilter.Items":{"title":"CalendarEvents.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["client","lead"]},"scope":{"$ref":"#/components/schemas/CalendarEvents.ScopeFilter"}}},"CalendarEvents.Filter":{"type":"object","title":"CalendarEvents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"title":{"type":"boolean"},"startDate":{"type":"boolean"},"endDate":{"type":"boolean"},"description":{"type":"boolean"},"label":{"type":"boolean"},"clientId":{"type":"boolean"},"leadId":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"date":{"type":"boolean"},"type":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","title","startDate","endDate","description","label","clientId","leadId","createdOn","modifiedOn","deleted","deletedOn","deletedBy","date","type"],"example":"id"},"uniqueItems":true}],"title":"CalendarEvents.Fields"},"include":{"title":"CalendarEvents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CalendarEvents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<CalendarEvents>"},"CalendarEvents.Filter1":{"type":"object","title":"CalendarEvents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"CalendarEvents.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"title":{"type":"boolean"},"startDate":{"type":"boolean"},"endDate":{"type":"boolean"},"description":{"type":"boolean"},"label":{"type":"boolean"},"clientId":{"type":"boolean"},"leadId":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"date":{"type":"boolean"},"type":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","title","startDate","endDate","description","label","clientId","leadId","createdOn","modifiedOn","deleted","deletedOn","deletedBy","date","type"],"example":"id"},"uniqueItems":true}],"title":"CalendarEvents.Fields"},"include":{"title":"CalendarEvents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CalendarEvents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<CalendarEvents>"},"category_product.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"category_product.ScopeFilter"},"category_product.IncludeFilter.Items":{"title":"category_product.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["products"]},"scope":{"$ref":"#/components/schemas/category_product.ScopeFilter"}}},"category_product.Filter":{"type":"object","title":"category_product.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"scheduleMeeting":{"type":"boolean"},"existence":{"type":"boolean"},"purchaseTracking":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","scheduleMeeting","existence","purchaseTracking"],"example":"deleted"},"uniqueItems":true}],"title":"category_product.Fields"},"include":{"title":"category_product.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/category_product.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<CategoryProduct>"},"category_product.Filter1":{"type":"object","title":"category_product.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"category_product.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"scheduleMeeting":{"type":"boolean"},"existence":{"type":"boolean"},"purchaseTracking":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","scheduleMeeting","existence","purchaseTracking"],"example":"deleted"},"uniqueItems":true}],"title":"category_product.Fields"},"include":{"title":"category_product.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/category_product.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<CategoryProduct>"},"chat_config.Filter":{"type":"object","title":"chat_config.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"baseUrl":{"type":"boolean"},"chatbotEndpoint":{"type":"boolean"},"loginEndpoint":{"type":"boolean"},"tokenEndpoint":{"type":"boolean"},"agentId":{"type":"boolean"},"resourceId":{"type":"boolean"},"clientId":{"type":"boolean"},"clientSecret":{"type":"boolean"},"pageUsername":{"type":"boolean"},"pagePassword":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","baseUrl","chatbotEndpoint","loginEndpoint","tokenEndpoint","agentId","resourceId","clientId","clientSecret","pageUsername","pagePassword"],"example":"deleted"},"uniqueItems":true}],"title":"chat_config.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ChatbotConfig>"},"chat_config.Filter1":{"type":"object","title":"chat_config.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"chat_config.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"baseUrl":{"type":"boolean"},"chatbotEndpoint":{"type":"boolean"},"loginEndpoint":{"type":"boolean"},"tokenEndpoint":{"type":"boolean"},"agentId":{"type":"boolean"},"resourceId":{"type":"boolean"},"clientId":{"type":"boolean"},"clientSecret":{"type":"boolean"},"pageUsername":{"type":"boolean"},"pagePassword":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","baseUrl","chatbotEndpoint","loginEndpoint","tokenEndpoint","agentId","resourceId","clientId","clientSecret","pageUsername","pagePassword"],"example":"deleted"},"uniqueItems":true}],"title":"chat_config.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ChatbotConfig>"},"chat_customization.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"chat_customization.ScopeFilter"},"chat_customization.IncludeFilter.Items":{"title":"chat_customization.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["theme"]},"scope":{"$ref":"#/components/schemas/chat_customization.ScopeFilter"}}},"chat_customization.Filter":{"type":"object","title":"chat_customization.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"chatbotIcon":{"type":"boolean"},"inputIcon":{"type":"boolean"},"bubbleIcon":{"type":"boolean"},"title":{"type":"boolean"},"subtitle":{"type":"boolean"},"description":{"type":"boolean"},"chatbotTitle":{"type":"boolean"},"frequentQuestions":{"type":"boolean"},"fontSize":{"type":"boolean"},"showTitle":{"type":"boolean"},"showSubtitle":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","chatbotIcon","inputIcon","bubbleIcon","title","subtitle","description","chatbotTitle","frequentQuestions","fontSize","showTitle","showSubtitle"],"example":"deleted"},"uniqueItems":true}],"title":"chat_customization.Fields"},"include":{"title":"chat_customization.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/chat_customization.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ChatbotCustomization>"},"chat_customization.Filter1":{"type":"object","title":"chat_customization.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"chat_customization.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"chatbotIcon":{"type":"boolean"},"inputIcon":{"type":"boolean"},"bubbleIcon":{"type":"boolean"},"title":{"type":"boolean"},"subtitle":{"type":"boolean"},"description":{"type":"boolean"},"chatbotTitle":{"type":"boolean"},"frequentQuestions":{"type":"boolean"},"fontSize":{"type":"boolean"},"showTitle":{"type":"boolean"},"showSubtitle":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","chatbotIcon","inputIcon","bubbleIcon","title","subtitle","description","chatbotTitle","frequentQuestions","fontSize","showTitle","showSubtitle"],"example":"deleted"},"uniqueItems":true}],"title":"chat_customization.Fields"},"include":{"title":"chat_customization.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/chat_customization.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ChatbotCustomization>"},"NewLeads1":{"title":"NewLeads","type":"object","description":"(tsType: Omit<Leads, 'id'>, schemaOptions: { title: 'NewLeads', exclude: [ 'id' ] })","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"string","format":"date-time","nullable":true},"deletedBy":{"type":"string","nullable":true},"createdOn":{"type":"string","format":"date-time"},"modifiedOn":{"type":"string","format":"date-time"},"name":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"value":{"type":"number"},"probability":{"type":"number"},"closingDate":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"string","format":"date-time"},"isOverdue":{"type":"boolean"},"contactId":{"type":"number"},"agentId":{"type":"number"},"productId":{"type":"number"},"stageId":{"type":"number"},"businessUnitId":{"type":"number"},"assignmentStatus":{"type":"string"},"assignmentDate":{"type":"string","format":"date-time"},"origin":{"type":"string"},"location":{"type":"string"},"lostAt":{"type":"string","format":"date-time"},"wonAt":{"type":"string","format":"date-time"},"origenId":{"type":"number"},"taskWheelId":{"type":"number"},"leadSourceId":{"type":"number"},"linkId":{"type":"number"},"classificationId":{"type":"number"},"threadId":{"type":"string"}},"required":["name","quantity","value","probability","closingDate","contactId","agentId","productId"],"additionalProperties":false,"x-typescript-type":"Omit<Leads, 'id'>"},"chat_theme.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"chat_theme.ScopeFilter"},"chat_theme.IncludeFilter.Items":{"title":"chat_theme.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["customization"]},"scope":{"$ref":"#/components/schemas/chat_theme.ScopeFilter"}}},"chat_theme.Filter":{"type":"object","title":"chat_theme.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"customizationId":{"type":"boolean"},"primaryColor":{"type":"boolean"},"primaryTextColor":{"type":"boolean"},"secondaryColor":{"type":"boolean"},"secondaryTextColor":{"type":"boolean"},"accentColor":{"type":"boolean"},"accentTextColor":{"type":"boolean"},"primaryDarkColor":{"type":"boolean"},"primaryTextDarkColor":{"type":"boolean"},"secondaryDarkColor":{"type":"boolean"},"secondaryTextDarkColor":{"type":"boolean"},"accentDarkColor":{"type":"boolean"},"accentTextDarkColor":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","customizationId","primaryColor","primaryTextColor","secondaryColor","secondaryTextColor","accentColor","accentTextColor","primaryDarkColor","primaryTextDarkColor","secondaryDarkColor","secondaryTextDarkColor","accentDarkColor","accentTextDarkColor"],"example":"deleted"},"uniqueItems":true}],"title":"chat_theme.Fields"},"include":{"title":"chat_theme.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/chat_theme.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ChatbotTheme>"},"chat_theme.Filter1":{"type":"object","title":"chat_theme.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"chat_theme.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"customizationId":{"type":"boolean"},"primaryColor":{"type":"boolean"},"primaryTextColor":{"type":"boolean"},"secondaryColor":{"type":"boolean"},"secondaryTextColor":{"type":"boolean"},"accentColor":{"type":"boolean"},"accentTextColor":{"type":"boolean"},"primaryDarkColor":{"type":"boolean"},"primaryTextDarkColor":{"type":"boolean"},"secondaryDarkColor":{"type":"boolean"},"secondaryTextDarkColor":{"type":"boolean"},"accentDarkColor":{"type":"boolean"},"accentTextDarkColor":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","customizationId","primaryColor","primaryTextColor","secondaryColor","secondaryTextColor","accentColor","accentTextColor","primaryDarkColor","primaryTextDarkColor","secondaryDarkColor","secondaryTextDarkColor","accentDarkColor","accentTextDarkColor"],"example":"deleted"},"uniqueItems":true}],"title":"chat_theme.Fields"},"include":{"title":"chat_theme.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/chat_theme.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ChatbotTheme>"},"classification_lead.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"classification_lead.ScopeFilter"},"classification_lead.IncludeFilter.Items":{"title":"classification_lead.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["leads"]},"scope":{"$ref":"#/components/schemas/classification_lead.ScopeFilter"}}},"classification_lead.Filter":{"type":"object","title":"classification_lead.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"classification_lead.Fields"},"include":{"title":"classification_lead.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/classification_lead.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ClassificationLead>"},"classification_lead.Filter1":{"type":"object","title":"classification_lead.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"classification_lead.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"classification_lead.Fields"},"include":{"title":"classification_lead.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/classification_lead.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ClassificationLead>"},"companies.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"companies.ScopeFilter"},"companies.IncludeFilter.Items":{"title":"companies.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["agent","contacts"]},"scope":{"$ref":"#/components/schemas/companies.ScopeFilter"}}},"companies.Filter":{"type":"object","title":"companies.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"rfc":{"type":"boolean"},"address":{"type":"boolean"},"email":{"type":"boolean"},"phone":{"type":"boolean"},"website":{"type":"boolean"},"createdBy":{"type":"boolean"},"agentId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","rfc","address","email","phone","website","createdBy","agentId"],"example":"deleted"},"uniqueItems":true}],"title":"companies.Fields"},"include":{"title":"companies.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/companies.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Companies>"},"companies.Filter1":{"type":"object","title":"companies.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"companies.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"rfc":{"type":"boolean"},"address":{"type":"boolean"},"email":{"type":"boolean"},"phone":{"type":"boolean"},"website":{"type":"boolean"},"createdBy":{"type":"boolean"},"agentId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","rfc","address","email","phone","website","createdBy","agentId"],"example":"deleted"},"uniqueItems":true}],"title":"companies.Fields"},"include":{"title":"companies.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/companies.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Companies>"},"Contacts.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Contacts.ScopeFilter"},"Contacts.IncludeFilter.Items":{"title":"Contacts.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["company","leads","calendarEvents"]},"scope":{"$ref":"#/components/schemas/Contacts.ScopeFilter"}}},"Contacts.Filter":{"type":"object","title":"Contacts.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"first_name":{"type":"boolean"},"last_name":{"type":"boolean"},"job_title":{"type":"boolean"},"phone":{"type":"boolean"},"email":{"type":"boolean"},"createdBy":{"type":"boolean"},"companyId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","first_name","last_name","job_title","phone","email","createdBy","companyId"],"example":"deleted"},"uniqueItems":true}],"title":"Contacts.Fields"},"include":{"title":"Contacts.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Contacts.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Contacts>"},"Contacts.Filter1":{"type":"object","title":"Contacts.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Contacts.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"first_name":{"type":"boolean"},"last_name":{"type":"boolean"},"job_title":{"type":"boolean"},"phone":{"type":"boolean"},"email":{"type":"boolean"},"createdBy":{"type":"boolean"},"companyId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","first_name","last_name","job_title","phone","email","createdBy","companyId"],"example":"deleted"},"uniqueItems":true}],"title":"Contacts.Fields"},"include":{"title":"Contacts.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Contacts.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Contacts>"},"ConversationHistory.Filter":{"type":"object","title":"ConversationHistory.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"threadId":{"type":"boolean"},"actorName":{"type":"boolean"},"actorType":{"type":"boolean"},"action":{"type":"boolean"},"agentId":{"type":"boolean"},"userId":{"type":"boolean"},"metadata":{"type":"boolean"},"timestamp":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","threadId","actorName","actorType","action","agentId","userId","metadata","timestamp","deleted","deletedOn","deletedBy"],"example":"id"},"uniqueItems":true}],"title":"ConversationHistory.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ConversationHistory>"},"ConversationHistory.Filter1":{"type":"object","title":"ConversationHistory.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"ConversationHistory.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"threadId":{"type":"boolean"},"actorName":{"type":"boolean"},"actorType":{"type":"boolean"},"action":{"type":"boolean"},"agentId":{"type":"boolean"},"userId":{"type":"boolean"},"metadata":{"type":"boolean"},"timestamp":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","threadId","actorName","actorType","action","agentId","userId","metadata","timestamp","deleted","deletedOn","deletedBy"],"example":"id"},"uniqueItems":true}],"title":"ConversationHistory.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ConversationHistory>"},"conversations_state.Filter":{"type":"object","title":"conversations_state.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"senderId":{"type":"boolean"},"platform":{"type":"boolean"},"threadId":{"type":"boolean"},"humanAgentId":{"type":"boolean"},"isWithHuman":{"type":"boolean"},"escalatedAt":{"type":"boolean"},"lastBotMessageAt":{"type":"boolean"},"isConversationClosed":{"type":"boolean"},"senderName":{"type":"boolean"},"contactId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","senderId","platform","threadId","humanAgentId","isWithHuman","escalatedAt","lastBotMessageAt","isConversationClosed","senderName","contactId"],"example":"deleted"},"uniqueItems":true}],"title":"conversations_state.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ConversationsState>"},"conversations_state.Filter1":{"type":"object","title":"conversations_state.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"conversations_state.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"senderId":{"type":"boolean"},"platform":{"type":"boolean"},"threadId":{"type":"boolean"},"humanAgentId":{"type":"boolean"},"isWithHuman":{"type":"boolean"},"escalatedAt":{"type":"boolean"},"lastBotMessageAt":{"type":"boolean"},"isConversationClosed":{"type":"boolean"},"senderName":{"type":"boolean"},"contactId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","senderId","platform","threadId","humanAgentId","isWithHuman","escalatedAt","lastBotMessageAt","isConversationClosed","senderName","contactId"],"example":"deleted"},"uniqueItems":true}],"title":"conversations_state.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ConversationsState>"},"conversations.Filter":{"type":"object","title":"conversations.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"conversations.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"senderId":{"type":"boolean"},"message":{"type":"boolean"},"role":{"type":"boolean"},"threadId":{"type":"boolean"},"pageId":{"type":"boolean"},"platform":{"type":"boolean"},"messageTimestamp":{"type":"boolean"},"metadata":{"type":"boolean"},"isError":{"type":"boolean"},"errorMessage":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","senderId","message","role","threadId","pageId","platform","messageTimestamp","metadata","isError","errorMessage"],"example":"deleted"},"uniqueItems":true}],"title":"conversations.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Conversation>"},"conversations.Filter1":{"type":"object","title":"conversations.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"senderId":{"type":"boolean"},"message":{"type":"boolean"},"role":{"type":"boolean"},"threadId":{"type":"boolean"},"pageId":{"type":"boolean"},"platform":{"type":"boolean"},"messageTimestamp":{"type":"boolean"},"metadata":{"type":"boolean"},"isError":{"type":"boolean"},"errorMessage":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","senderId","message","role","threadId","pageId","platform","messageTimestamp","metadata","isError","errorMessage"],"example":"deleted"},"uniqueItems":true}],"title":"conversations.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Conversation>"},"crm_config.Filter":{"type":"object","title":"crm_config.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"icon":{"type":"boolean"},"legalName":{"type":"boolean"},"rfc":{"type":"boolean"},"direction":{"type":"boolean"},"phone":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","icon","legalName","rfc","direction","phone"],"example":"deleted"},"uniqueItems":true}],"title":"crm_config.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<CrmConfig>"},"crm_config.Filter1":{"type":"object","title":"crm_config.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"crm_config.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"icon":{"type":"boolean"},"legalName":{"type":"boolean"},"rfc":{"type":"boolean"},"direction":{"type":"boolean"},"phone":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","icon","legalName","rfc","direction","phone"],"example":"deleted"},"uniqueItems":true}],"title":"crm_config.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<CrmConfig>"},"Instructions.Filter":{"type":"object","title":"Instructions.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"instructions":{"type":"boolean"},"pageId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","instructions","pageId"],"example":"deleted"},"uniqueItems":true}],"title":"Instructions.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Instructions>"},"Instructions.Filter1":{"type":"object","title":"Instructions.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Instructions.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"instructions":{"type":"boolean"},"pageId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","instructions","pageId"],"example":"deleted"},"uniqueItems":true}],"title":"Instructions.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Instructions>"},"lead_origen.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"lead_origen.ScopeFilter"},"lead_origen.IncludeFilter.Items":{"title":"lead_origen.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["leads"]},"scope":{"$ref":"#/components/schemas/lead_origen.ScopeFilter"}}},"lead_origen.Filter":{"type":"object","title":"lead_origen.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"lead_origen.Fields"},"include":{"title":"lead_origen.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/lead_origen.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<LeadOrigen>"},"lead_origen.Filter1":{"type":"object","title":"lead_origen.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"lead_origen.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"lead_origen.Fields"},"include":{"title":"lead_origen.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/lead_origen.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<LeadOrigen>"},"Leads.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Leads.ScopeFilter"},"Leads.IncludeFilter.Items":{"title":"Leads.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["contact","agent","product","tasks","notes","leadDocuments","leadProducts","calendarEvents","stageLead","businessUnit","origen","taskWheel","leadSource","link","classificationLead","stageHistory"]},"scope":{"$ref":"#/components/schemas/Leads.ScopeFilter"}}},"Leads.Filter":{"type":"object","title":"Leads.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"quantity":{"type":"boolean"},"value":{"type":"boolean"},"probability":{"type":"boolean"},"closingDate":{"type":"boolean"},"createdBy":{"type":"boolean"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"boolean"},"isOverdue":{"type":"boolean"},"contactId":{"type":"boolean"},"agentId":{"type":"boolean"},"productId":{"type":"boolean"},"stageId":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"assignmentStatus":{"type":"boolean"},"assignmentDate":{"type":"boolean"},"origin":{"type":"boolean"},"location":{"type":"boolean"},"lostAt":{"type":"boolean"},"wonAt":{"type":"boolean"},"origenId":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"leadSourceId":{"type":"boolean"},"linkId":{"type":"boolean"},"classificationId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","quantity","value","probability","closingDate","createdBy","isWon","inactivityNotifiedAt","isOverdue","contactId","agentId","productId","stageId","businessUnitId","assignmentStatus","assignmentDate","origin","location","lostAt","wonAt","origenId","taskWheelId","leadSourceId","linkId","classificationId"],"example":"deleted"},"uniqueItems":true}],"title":"Leads.Fields"},"include":{"title":"Leads.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Leads.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Leads>"},"Leads.Filter1":{"type":"object","title":"Leads.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Leads.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"quantity":{"type":"boolean"},"value":{"type":"boolean"},"probability":{"type":"boolean"},"closingDate":{"type":"boolean"},"createdBy":{"type":"boolean"},"isWon":{"type":"boolean"},"inactivityNotifiedAt":{"type":"boolean"},"isOverdue":{"type":"boolean"},"contactId":{"type":"boolean"},"agentId":{"type":"boolean"},"productId":{"type":"boolean"},"stageId":{"type":"boolean"},"businessUnitId":{"type":"boolean"},"assignmentStatus":{"type":"boolean"},"assignmentDate":{"type":"boolean"},"origin":{"type":"boolean"},"location":{"type":"boolean"},"lostAt":{"type":"boolean"},"wonAt":{"type":"boolean"},"origenId":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"leadSourceId":{"type":"boolean"},"linkId":{"type":"boolean"},"classificationId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","quantity","value","probability","closingDate","createdBy","isWon","inactivityNotifiedAt","isOverdue","contactId","agentId","productId","stageId","businessUnitId","assignmentStatus","assignmentDate","origin","location","lostAt","wonAt","origenId","taskWheelId","leadSourceId","linkId","classificationId"],"example":"deleted"},"uniqueItems":true}],"title":"Leads.Fields"},"include":{"title":"Leads.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Leads.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Leads>"},"LeadSources.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"LeadSources.ScopeFilter"},"LeadSources.IncludeFilter.Items":{"title":"LeadSources.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["linkMarketing","webhookConfig","chatConfig"]},"scope":{"$ref":"#/components/schemas/LeadSources.ScopeFilter"}}},"LeadSources.Filter":{"type":"object","title":"LeadSources.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"sourceType":{"type":"boolean"},"status":{"type":"boolean"},"linkMarketingId":{"type":"boolean"},"webhookConfigId":{"type":"boolean"},"chatConfigId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","sourceType","status","linkMarketingId","webhookConfigId","chatConfigId"],"example":"deleted"},"uniqueItems":true}],"title":"LeadSources.Fields"},"include":{"title":"LeadSources.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/LeadSources.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<LeadSources>"},"LeadSources.Filter1":{"type":"object","title":"LeadSources.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"LeadSources.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"sourceType":{"type":"boolean"},"status":{"type":"boolean"},"linkMarketingId":{"type":"boolean"},"webhookConfigId":{"type":"boolean"},"chatConfigId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","sourceType","status","linkMarketingId","webhookConfigId","chatConfigId"],"example":"deleted"},"uniqueItems":true}],"title":"LeadSources.Fields"},"include":{"title":"LeadSources.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/LeadSources.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<LeadSources>"},"link_marketing.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"link_marketing.ScopeFilter"},"link_marketing.IncludeFilter.Items":{"title":"link_marketing.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["user","leads"]},"scope":{"$ref":"#/components/schemas/link_marketing.ScopeFilter"}}},"link_marketing.Filter":{"type":"object","title":"link_marketing.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"title":{"type":"boolean"},"url":{"type":"boolean"},"description":{"type":"boolean"},"expirationDate":{"type":"boolean"},"status":{"type":"boolean"},"customProperties":{"type":"boolean"},"userId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","title","url","description","expirationDate","status","customProperties","userId"],"example":"deleted"},"uniqueItems":true}],"title":"link_marketing.Fields"},"include":{"title":"link_marketing.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/link_marketing.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<LinkMarketing>"},"link_marketing.Filter1":{"type":"object","title":"link_marketing.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"link_marketing.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"title":{"type":"boolean"},"url":{"type":"boolean"},"description":{"type":"boolean"},"expirationDate":{"type":"boolean"},"status":{"type":"boolean"},"customProperties":{"type":"boolean"},"userId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","title","url","description","expirationDate","status","customProperties","userId"],"example":"deleted"},"uniqueItems":true}],"title":"link_marketing.Fields"},"include":{"title":"link_marketing.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/link_marketing.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<LinkMarketing>"},"Media.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Media.ScopeFilter"},"Media.IncludeFilter.Items":{"title":"Media.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["agents"]},"scope":{"$ref":"#/components/schemas/Media.ScopeFilter"}}},"Media.Filter":{"type":"object","title":"Media.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","status"],"example":"deleted"},"uniqueItems":true}],"title":"Media.Fields"},"include":{"title":"Media.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Media.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Media>"},"Media.Filter1":{"type":"object","title":"Media.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Media.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","status"],"example":"deleted"},"uniqueItems":true}],"title":"Media.Fields"},"include":{"title":"Media.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Media.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Media>"},"Notes.Filter":{"type":"object","title":"Notes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Notes.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"title":{"type":"boolean"},"description":{"type":"boolean"},"author":{"type":"boolean"},"leadsId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","title","description","author","leadsId"],"example":"deleted"},"uniqueItems":true}],"title":"Notes.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Notes>"},"Notifications.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Notifications.ScopeFilter"},"Notifications.IncludeFilter.Items":{"title":"Notifications.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["user"]},"scope":{"$ref":"#/components/schemas/Notifications.ScopeFilter"}}},"Notifications.Filter":{"type":"object","title":"Notifications.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"title":{"type":"boolean"},"description":{"type":"boolean"},"isRead":{"type":"boolean"},"moduleOrigen":{"type":"boolean"},"userId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","title","description","isRead","moduleOrigen","userId"],"example":"deleted"},"uniqueItems":true}],"title":"Notifications.Fields"},"include":{"title":"Notifications.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Notifications.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Notifications>"},"Notifications.Filter1":{"type":"object","title":"Notifications.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Notifications.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"title":{"type":"boolean"},"description":{"type":"boolean"},"isRead":{"type":"boolean"},"moduleOrigen":{"type":"boolean"},"userId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","title","description","isRead","moduleOrigen","userId"],"example":"deleted"},"uniqueItems":true}],"title":"Notifications.Fields"},"include":{"title":"Notifications.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Notifications.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Notifications>"},"Origins.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Origins.ScopeFilter"},"Origins.IncludeFilter.Items":{"title":"Origins.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["agents"]},"scope":{"$ref":"#/components/schemas/Origins.ScopeFilter"}}},"Origins.Filter":{"type":"object","title":"Origins.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","status"],"example":"deleted"},"uniqueItems":true}],"title":"Origins.Fields"},"include":{"title":"Origins.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Origins.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Origins>"},"Origins.Filter1":{"type":"object","title":"Origins.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Origins.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","status"],"example":"deleted"},"uniqueItems":true}],"title":"Origins.Fields"},"include":{"title":"Origins.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Origins.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Origins>"},"page_configuration.Filter":{"type":"object","title":"page_configuration.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"value":{"type":"boolean"},"metadata":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","value","metadata"],"example":"deleted"},"uniqueItems":true}],"title":"page_configuration.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<PageConfiguration>"},"page_configuration.Filter1":{"type":"object","title":"page_configuration.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"page_configuration.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"value":{"type":"boolean"},"metadata":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","value","metadata"],"example":"deleted"},"uniqueItems":true}],"title":"page_configuration.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<PageConfiguration>"},"PaymentConditions.Filter":{"type":"object","title":"PaymentConditions.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"PaymentConditions.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<PaymentConditions>"},"PaymentConditions.Filter1":{"type":"object","title":"PaymentConditions.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"PaymentConditions.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"PaymentConditions.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<PaymentConditions>"},"product_inventory.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"product_inventory.ScopeFilter"},"product_inventory.IncludeFilter.Items":{"title":"product_inventory.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["product"]},"scope":{"$ref":"#/components/schemas/product_inventory.ScopeFilter"}}},"product_inventory.Filter":{"type":"object","title":"product_inventory.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"quantity":{"type":"boolean"},"status":{"type":"boolean"},"productsId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","quantity","status","productsId"],"example":"deleted"},"uniqueItems":true}],"title":"product_inventory.Fields"},"include":{"title":"product_inventory.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/product_inventory.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ProductInventory>"},"product_inventory.Filter1":{"type":"object","title":"product_inventory.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"product_inventory.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"quantity":{"type":"boolean"},"status":{"type":"boolean"},"productsId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","quantity","status","productsId"],"example":"deleted"},"uniqueItems":true}],"title":"product_inventory.Fields"},"include":{"title":"product_inventory.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/product_inventory.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ProductInventory>"},"products.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"products.ScopeFilter"},"products.IncludeFilter.Items":{"title":"products.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["leads","productsMedia","categoryProduct","typeProduct","purchaseTrackingStage","createdByUser","inventory","inventoryBranches"]},"scope":{"$ref":"#/components/schemas/products.ScopeFilter"}}},"products.Filter":{"type":"object","title":"products.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"price":{"type":"boolean"},"cost":{"type":"boolean"},"status":{"type":"boolean"},"sku":{"type":"boolean"},"filename":{"type":"boolean"},"originalFilename":{"type":"boolean"},"filePath":{"type":"boolean"},"fileSize":{"type":"boolean"},"fileMimeType":{"type":"boolean"},"productUrl":{"type":"boolean"},"categoryProductId":{"type":"boolean"},"typeProductId":{"type":"boolean"},"purchaseTrackingStageId":{"type":"boolean"},"createdBy":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","price","cost","status","sku","filename","originalFilename","filePath","fileSize","fileMimeType","productUrl","categoryProductId","typeProductId","purchaseTrackingStageId","createdBy"],"example":"deleted"},"uniqueItems":true}],"title":"products.Fields"},"include":{"title":"products.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/products.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Products>"},"products.Filter1":{"type":"object","title":"products.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"products.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"price":{"type":"boolean"},"cost":{"type":"boolean"},"status":{"type":"boolean"},"sku":{"type":"boolean"},"filename":{"type":"boolean"},"originalFilename":{"type":"boolean"},"filePath":{"type":"boolean"},"fileSize":{"type":"boolean"},"fileMimeType":{"type":"boolean"},"productUrl":{"type":"boolean"},"categoryProductId":{"type":"boolean"},"typeProductId":{"type":"boolean"},"purchaseTrackingStageId":{"type":"boolean"},"createdBy":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","price","cost","status","sku","filename","originalFilename","filePath","fileSize","fileMimeType","productUrl","categoryProductId","typeProductId","purchaseTrackingStageId","createdBy"],"example":"deleted"},"uniqueItems":true}],"title":"products.Fields"},"include":{"title":"products.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/products.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Products>"},"ProductsMedia.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"ProductsMedia.ScopeFilter"},"ProductsMedia.IncludeFilter.Items":{"title":"ProductsMedia.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["product"]},"scope":{"$ref":"#/components/schemas/ProductsMedia.ScopeFilter"}}},"ProductsMedia.Filter":{"type":"object","title":"ProductsMedia.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"productId":{"type":"boolean"},"filename":{"type":"boolean"},"filePath":{"type":"boolean"},"fileSize":{"type":"boolean"},"mimeType":{"type":"boolean"},"displayOrder":{"type":"boolean"},"uploadedAt":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","productId","filename","filePath","fileSize","mimeType","displayOrder","uploadedAt","deleted","deletedOn"],"example":"id"},"uniqueItems":true}],"title":"ProductsMedia.Fields"},"include":{"title":"ProductsMedia.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ProductsMedia.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ProductsMedia>"},"ProductsMedia.Filter1":{"type":"object","title":"ProductsMedia.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"ProductsMedia.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"productId":{"type":"boolean"},"filename":{"type":"boolean"},"filePath":{"type":"boolean"},"fileSize":{"type":"boolean"},"mimeType":{"type":"boolean"},"displayOrder":{"type":"boolean"},"uploadedAt":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","productId","filename","filePath","fileSize","mimeType","displayOrder","uploadedAt","deleted","deletedOn"],"example":"id"},"uniqueItems":true}],"title":"ProductsMedia.Fields"},"include":{"title":"ProductsMedia.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ProductsMedia.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ProductsMedia>"},"purchase_tracking_stages.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"purchase_tracking_stages.ScopeFilter"},"purchase_tracking_stages.IncludeFilter.Items":{"title":"purchase_tracking_stages.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["products"]},"scope":{"$ref":"#/components/schemas/purchase_tracking_stages.ScopeFilter"}}},"purchase_tracking_stages.Filter":{"type":"object","title":"purchase_tracking_stages.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"order":{"type":"boolean"},"isWon":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","order","isWon"],"example":"deleted"},"uniqueItems":true}],"title":"purchase_tracking_stages.Fields"},"include":{"title":"purchase_tracking_stages.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/purchase_tracking_stages.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<PurchaseTrackingStages>"},"purchase_tracking_stages.Filter1":{"type":"object","title":"purchase_tracking_stages.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"purchase_tracking_stages.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"order":{"type":"boolean"},"isWon":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","order","isWon"],"example":"deleted"},"uniqueItems":true}],"title":"purchase_tracking_stages.Fields"},"include":{"title":"purchase_tracking_stages.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/purchase_tracking_stages.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<PurchaseTrackingStages>"},"quote_items.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"quote_items.ScopeFilter"},"quote_items.IncludeFilter.Items":{"title":"quote_items.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["quotes","products"]},"scope":{"$ref":"#/components/schemas/quote_items.ScopeFilter"}}},"quote_items.Filter":{"type":"object","title":"quote_items.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"description":{"type":"boolean"},"quantity":{"type":"boolean"},"unit_price":{"type":"boolean"},"subtotal":{"type":"boolean"},"quoteId":{"type":"boolean"},"productId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","description","quantity","unit_price","subtotal","quoteId","productId"],"example":"deleted"},"uniqueItems":true}],"title":"quote_items.Fields"},"include":{"title":"quote_items.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/quote_items.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<QuoteItems>"},"quote_items.Filter1":{"type":"object","title":"quote_items.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"quote_items.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"description":{"type":"boolean"},"quantity":{"type":"boolean"},"unit_price":{"type":"boolean"},"subtotal":{"type":"boolean"},"quoteId":{"type":"boolean"},"productId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","description","quantity","unit_price","subtotal","quoteId","productId"],"example":"deleted"},"uniqueItems":true}],"title":"quote_items.Fields"},"include":{"title":"quote_items.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/quote_items.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<QuoteItems>"},"quotes.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"quotes.ScopeFilter"},"quotes.IncludeFilter.Items":{"title":"quotes.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["contact","company","leads","status_quotes","valid_until_quotes","payment_conditions","quoteItems"]},"scope":{"$ref":"#/components/schemas/quotes.ScopeFilter"}}},"quotes.Filter":{"type":"object","title":"quotes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"email":{"type":"boolean"},"observations":{"type":"boolean"},"subtotal":{"type":"boolean"},"tax":{"type":"boolean"},"total":{"type":"boolean"},"valid_until_date":{"type":"boolean"},"discount":{"type":"boolean"},"ccEmails":{"type":"boolean"},"createdBy":{"type":"boolean"},"contactId":{"type":"boolean"},"companyId":{"type":"boolean"},"leadsId":{"type":"boolean"},"statusId":{"type":"boolean"},"validUntilId":{"type":"boolean"},"paymentConditionsId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","email","observations","subtotal","tax","total","valid_until_date","discount","ccEmails","createdBy","contactId","companyId","leadsId","statusId","validUntilId","paymentConditionsId"],"example":"deleted"},"uniqueItems":true}],"title":"quotes.Fields"},"include":{"title":"quotes.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/quotes.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Quotes>"},"quotes.Filter1":{"type":"object","title":"quotes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"quotes.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"email":{"type":"boolean"},"observations":{"type":"boolean"},"subtotal":{"type":"boolean"},"tax":{"type":"boolean"},"total":{"type":"boolean"},"valid_until_date":{"type":"boolean"},"discount":{"type":"boolean"},"ccEmails":{"type":"boolean"},"createdBy":{"type":"boolean"},"contactId":{"type":"boolean"},"companyId":{"type":"boolean"},"leadsId":{"type":"boolean"},"statusId":{"type":"boolean"},"validUntilId":{"type":"boolean"},"paymentConditionsId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","email","observations","subtotal","tax","total","valid_until_date","discount","ccEmails","createdBy","contactId","companyId","leadsId","statusId","validUntilId","paymentConditionsId"],"example":"deleted"},"uniqueItems":true}],"title":"quotes.Fields"},"include":{"title":"quotes.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/quotes.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Quotes>"},"Reminders.Filter":{"type":"object","title":"Reminders.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"dateReminder":{"type":"boolean"},"idTarget":{"type":"boolean"},"target":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","dateReminder","idTarget","target","status"],"example":"deleted"},"uniqueItems":true}],"title":"Reminders.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Reminders>"},"Reminders.Filter1":{"type":"object","title":"Reminders.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Reminders.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"dateReminder":{"type":"boolean"},"idTarget":{"type":"boolean"},"target":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","dateReminder","idTarget","target","status"],"example":"deleted"},"uniqueItems":true}],"title":"Reminders.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Reminders>"},"roles.Filter":{"type":"object","title":"roles.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"roles.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"permissions":{"type":"boolean"},"modulePermissions":{"type":"boolean"},"roleKey":{"type":"boolean"},"isAgent":{"type":"boolean"},"hasFullAccess":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","permissions","modulePermissions","roleKey","isAgent","hasFullAccess"],"example":"deleted"},"uniqueItems":true}],"title":"roles.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Role>"},"stage_lead.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"stage_lead.ScopeFilter"},"stage_lead.IncludeFilter.Items":{"title":"stage_lead.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["leads"]},"scope":{"$ref":"#/components/schemas/stage_lead.ScopeFilter"}}},"stage_lead.Filter":{"type":"object","title":"stage_lead.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"order":{"type":"boolean"},"isWon":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","order","isWon"],"example":"deleted"},"uniqueItems":true}],"title":"stage_lead.Fields"},"include":{"title":"stage_lead.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/stage_lead.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<StageLead>"},"stage_lead.Filter1":{"type":"object","title":"stage_lead.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"stage_lead.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"order":{"type":"boolean"},"isWon":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","order","isWon"],"example":"deleted"},"uniqueItems":true}],"title":"stage_lead.Fields"},"include":{"title":"stage_lead.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/stage_lead.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<StageLead>"},"status_quotes.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"status_quotes.ScopeFilter"},"status_quotes.IncludeFilter.Items":{"title":"status_quotes.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["quotes"]},"scope":{"$ref":"#/components/schemas/status_quotes.ScopeFilter"}}},"status_quotes.Filter":{"type":"object","title":"status_quotes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"status_quotes.Fields"},"include":{"title":"status_quotes.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/status_quotes.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<StatusQuotes>"},"status_quotes.Filter1":{"type":"object","title":"status_quotes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"status_quotes.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"status_quotes.Fields"},"include":{"title":"status_quotes.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/status_quotes.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<StatusQuotes>"},"status_task.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"status_task.ScopeFilter"},"status_task.IncludeFilter.Items":{"title":"status_task.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["tasks"]},"scope":{"$ref":"#/components/schemas/status_task.ScopeFilter"}}},"status_task.Filter":{"type":"object","title":"status_task.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"status_task.Fields"},"include":{"title":"status_task.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/status_task.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskStatus>"},"status_task.Filter1":{"type":"object","title":"status_task.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"status_task.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"status_task.Fields"},"include":{"title":"status_task.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/status_task.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskStatus>"},"TaskWheelAgents.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"TaskWheelAgents.ScopeFilter"},"TaskWheelAgents.IncludeFilter.Items":{"title":"TaskWheelAgents.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["taskWheel","agent","categoryProduct"]},"scope":{"$ref":"#/components/schemas/TaskWheelAgents.ScopeFilter"}}},"TaskWheelAgents.Filter":{"type":"object","title":"TaskWheelAgents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"agentId":{"type":"boolean"},"status":{"type":"boolean"},"participationPercentage":{"type":"boolean"},"dailyLimit":{"type":"boolean"},"currentDailyCount":{"type":"boolean"},"order":{"type":"boolean"},"lastAssignedAt":{"type":"boolean"},"categoryProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","taskWheelId","agentId","status","participationPercentage","dailyLimit","currentDailyCount","order","lastAssignedAt","categoryProductId"],"example":"deleted"},"uniqueItems":true}],"title":"TaskWheelAgents.Fields"},"include":{"title":"TaskWheelAgents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheelAgents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheelAgents>"},"TaskWheelAgents.Filter1":{"type":"object","title":"TaskWheelAgents.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"TaskWheelAgents.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"agentId":{"type":"boolean"},"status":{"type":"boolean"},"participationPercentage":{"type":"boolean"},"dailyLimit":{"type":"boolean"},"currentDailyCount":{"type":"boolean"},"order":{"type":"boolean"},"lastAssignedAt":{"type":"boolean"},"categoryProductId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","taskWheelId","agentId","status","participationPercentage","dailyLimit","currentDailyCount","order","lastAssignedAt","categoryProductId"],"example":"deleted"},"uniqueItems":true}],"title":"TaskWheelAgents.Fields"},"include":{"title":"TaskWheelAgents.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheelAgents.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheelAgents>"},"TaskWheelAssignmentLog.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"TaskWheelAssignmentLog.ScopeFilter"},"TaskWheelAssignmentLog.IncludeFilter.Items":{"title":"TaskWheelAssignmentLog.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["taskWheel","lead","agent"]},"scope":{"$ref":"#/components/schemas/TaskWheelAssignmentLog.ScopeFilter"}}},"TaskWheelAssignmentLog.Filter":{"type":"object","title":"TaskWheelAssignmentLog.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"leadId":{"type":"boolean"},"agentId":{"type":"boolean"},"assignmentType":{"type":"boolean"},"assignedAt":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","taskWheelId","leadId","agentId","assignmentType","assignedAt"],"example":"id"},"uniqueItems":true}],"title":"TaskWheelAssignmentLog.Fields"},"include":{"title":"TaskWheelAssignmentLog.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheelAssignmentLog.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheelAssignmentLog>"},"TaskWheelAssignmentLog.Filter1":{"type":"object","title":"TaskWheelAssignmentLog.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"TaskWheelAssignmentLog.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"leadId":{"type":"boolean"},"agentId":{"type":"boolean"},"assignmentType":{"type":"boolean"},"assignedAt":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","taskWheelId","leadId","agentId","assignmentType","assignedAt"],"example":"id"},"uniqueItems":true}],"title":"TaskWheelAssignmentLog.Fields"},"include":{"title":"TaskWheelAssignmentLog.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheelAssignmentLog.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheelAssignmentLog>"},"TaskWheelSources.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"TaskWheelSources.ScopeFilter"},"TaskWheelSources.IncludeFilter.Items":{"title":"TaskWheelSources.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["taskWheel","leadSource"]},"scope":{"$ref":"#/components/schemas/TaskWheelSources.ScopeFilter"}}},"TaskWheelSources.Filter":{"type":"object","title":"TaskWheelSources.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"leadSourceId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","taskWheelId","leadSourceId"],"example":"deleted"},"uniqueItems":true}],"title":"TaskWheelSources.Fields"},"include":{"title":"TaskWheelSources.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheelSources.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheelSources>"},"TaskWheelSources.Filter1":{"type":"object","title":"TaskWheelSources.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"TaskWheelSources.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"taskWheelId":{"type":"boolean"},"leadSourceId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","taskWheelId","leadSourceId"],"example":"deleted"},"uniqueItems":true}],"title":"TaskWheelSources.Fields"},"include":{"title":"TaskWheelSources.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheelSources.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheelSources>"},"TaskWheels.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"TaskWheels.ScopeFilter"},"TaskWheels.IncludeFilter.Items":{"title":"TaskWheels.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["lastAssignedAgent","sources","agents","assignmentLogs","businessUnit"]},"scope":{"$ref":"#/components/schemas/TaskWheels.ScopeFilter"}}},"TaskWheels.Filter":{"type":"object","title":"TaskWheels.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"status":{"type":"boolean"},"assignmentType":{"type":"boolean"},"lastAssignedAgentId":{"type":"boolean"},"businessUnitId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","status","assignmentType","lastAssignedAgentId","businessUnitId"],"example":"deleted"},"uniqueItems":true}],"title":"TaskWheels.Fields"},"include":{"title":"TaskWheels.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheels.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheels>"},"TaskWheels.Filter1":{"type":"object","title":"TaskWheels.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"TaskWheels.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"description":{"type":"boolean"},"status":{"type":"boolean"},"assignmentType":{"type":"boolean"},"lastAssignedAgentId":{"type":"boolean"},"businessUnitId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","description","status","assignmentType","lastAssignedAgentId","businessUnitId"],"example":"deleted"},"uniqueItems":true}],"title":"TaskWheels.Fields"},"include":{"title":"TaskWheels.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskWheels.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TaskWheels>"},"Tasks.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"Tasks.ScopeFilter"},"Tasks.IncludeFilter.Items":{"title":"Tasks.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["lead","taskStatus"]},"scope":{"$ref":"#/components/schemas/Tasks.ScopeFilter"}}},"Tasks.Filter":{"type":"object","title":"Tasks.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"expirationDate":{"type":"boolean"},"description":{"type":"boolean"},"leadsId":{"type":"boolean"},"createdBy":{"type":"boolean"},"taskStatusId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","expirationDate","description","leadsId","createdBy","taskStatusId"],"example":"deleted"},"uniqueItems":true}],"title":"Tasks.Fields"},"include":{"title":"Tasks.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Tasks.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Tasks>"},"Tasks.Filter1":{"type":"object","title":"Tasks.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"Tasks.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"expirationDate":{"type":"boolean"},"description":{"type":"boolean"},"leadsId":{"type":"boolean"},"createdBy":{"type":"boolean"},"taskStatusId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name","expirationDate","description","leadsId","createdBy","taskStatusId"],"example":"deleted"},"uniqueItems":true}],"title":"Tasks.Fields"},"include":{"title":"Tasks.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Tasks.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Tasks>"},"tenants.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"tenants.ScopeFilter"},"tenants.IncludeFilter.Items":{"title":"tenants.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["tenantsType"]},"scope":{"$ref":"#/components/schemas/tenants.ScopeFilter"}}},"tenants.Filter":{"type":"object","title":"tenants.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"tenants.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"createdBy":{"type":"boolean"},"modifiedBy":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"},"type":{"type":"boolean"},"address1":{"type":"boolean"},"address2":{"type":"boolean"},"address3":{"type":"boolean"},"address4":{"type":"boolean"},"city":{"type":"boolean"},"state":{"type":"boolean"},"zip":{"type":"boolean"},"country":{"type":"boolean"},"status":{"type":"boolean"},"tenantsTypeId":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","createdBy","modifiedBy","id","name","type","address1","address2","address3","address4","city","state","zip","country","status","tenantsTypeId"],"example":"deleted"},"uniqueItems":true}],"title":"tenants.Fields"},"include":{"title":"tenants.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/tenants.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<Tenant>"},"tenants_type.Filter":{"type":"object","title":"tenants_type.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"createdBy":{"type":"boolean"},"modifiedBy":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","createdBy","modifiedBy","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"tenants_type.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TenantsType>"},"tenants_type.Filter1":{"type":"object","title":"tenants_type.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"tenants_type.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"createdBy":{"type":"boolean"},"modifiedBy":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","createdBy","modifiedBy","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"tenants_type.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TenantsType>"},"type_product.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"type_product.ScopeFilter"},"type_product.IncludeFilter.Items":{"title":"type_product.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["products"]},"scope":{"$ref":"#/components/schemas/type_product.ScopeFilter"}}},"type_product.Filter":{"type":"object","title":"type_product.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"type_product.Fields"},"include":{"title":"type_product.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/type_product.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TypeProduct>"},"type_product.Filter1":{"type":"object","title":"type_product.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"type_product.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"name":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","name"],"example":"deleted"},"uniqueItems":true}],"title":"type_product.Fields"},"include":{"title":"type_product.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/type_product.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<TypeProduct>"},"user_credentials.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"user_credentials.ScopeFilter"},"user_credentials.IncludeFilter.Items":{"title":"user_credentials.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["user_id"]},"scope":{"$ref":"#/components/schemas/user_credentials.ScopeFilter"}}},"user_credentials.Filter":{"type":"object","title":"user_credentials.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"userId":{"type":"boolean"},"authProvider":{"type":"boolean"},"authId":{"type":"boolean"},"authToken":{"type":"boolean"},"password":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","userId","authProvider","authId","authToken","password"],"example":"deleted"},"uniqueItems":true}],"title":"user_credentials.Fields"},"include":{"title":"user_credentials.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/user_credentials.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<UserCredentials>"},"user_credentials.Filter1":{"type":"object","title":"user_credentials.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"user_credentials.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"userId":{"type":"boolean"},"authProvider":{"type":"boolean"},"authId":{"type":"boolean"},"authToken":{"type":"boolean"},"password":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","userId","authProvider","authId","authToken","password"],"example":"deleted"},"uniqueItems":true}],"title":"user_credentials.Fields"},"include":{"title":"user_credentials.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/user_credentials.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<UserCredentials>"},"user_tenants.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"user_tenants.ScopeFilter"},"user_tenants.IncludeFilter.Items":{"title":"user_tenants.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["user","tenant_id","role"]},"scope":{"$ref":"#/components/schemas/user_tenants.ScopeFilter"}}},"user_tenants.Filter":{"type":"object","title":"user_tenants.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"userId":{"type":"boolean"},"tenantId":{"type":"boolean"},"roleId":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","userId","tenantId","roleId","status"],"example":"deleted"},"uniqueItems":true}],"title":"user_tenants.Fields"},"include":{"title":"user_tenants.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/user_tenants.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<UserTenant>"},"user_tenants.Filter1":{"type":"object","title":"user_tenants.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"user_tenants.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"userId":{"type":"boolean"},"tenantId":{"type":"boolean"},"roleId":{"type":"boolean"},"status":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","userId","tenantId","roleId","status"],"example":"deleted"},"uniqueItems":true}],"title":"user_tenants.Fields"},"include":{"title":"user_tenants.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/user_tenants.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<UserTenant>"},"users.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"users.ScopeFilter"},"users.IncludeFilter.Items":{"title":"users.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["agents","internalMessages","credentials","userTenant","modules","notifications","linkMarketings"]},"scope":{"$ref":"#/components/schemas/users.ScopeFilter"}}},"users.Filter":{"type":"object","title":"users.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"users.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"createdBy":{"type":"boolean"},"modifiedBy":{"type":"boolean"},"id":{"type":"boolean"},"firstName":{"type":"boolean"},"lastName":{"type":"boolean"},"middleName":{"type":"boolean"},"username":{"type":"boolean"},"email":{"type":"boolean"},"phone":{"type":"boolean"},"defaultTenant":{"type":"boolean"},"lastLogin":{"type":"boolean"},"imagePath":{"type":"boolean"},"qrPath":{"type":"boolean"},"active":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","createdBy","modifiedBy","id","firstName","lastName","middleName","username","email","phone","defaultTenant","lastLogin","imagePath","qrPath","active"],"example":"deleted"},"uniqueItems":true}],"title":"users.Fields"},"include":{"title":"users.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/users.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<User>"},"valid_until_quotes.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"valid_until_quotes.ScopeFilter"},"valid_until_quotes.IncludeFilter.Items":{"title":"valid_until_quotes.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["quotes"]},"scope":{"$ref":"#/components/schemas/valid_until_quotes.ScopeFilter"}}},"valid_until_quotes.Filter":{"type":"object","title":"valid_until_quotes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"days":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","days"],"example":"deleted"},"uniqueItems":true}],"title":"valid_until_quotes.Fields"},"include":{"title":"valid_until_quotes.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/valid_until_quotes.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ValidUntilQuotes>"},"valid_until_quotes.Filter1":{"type":"object","title":"valid_until_quotes.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"valid_until_quotes.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"days":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","days"],"example":"deleted"},"uniqueItems":true}],"title":"valid_until_quotes.Fields"},"include":{"title":"valid_until_quotes.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/valid_until_quotes.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<ValidUntilQuotes>"},"webhook_configs.Filter":{"type":"object","title":"webhook_configs.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"platform":{"type":"boolean"},"pageId":{"type":"boolean"},"accessToken":{"type":"boolean"},"webhookVerifyToken":{"type":"boolean"},"businessAccountId":{"type":"boolean"},"phoneNumberId":{"type":"boolean"},"urlWebhook":{"type":"boolean"},"isActive":{"type":"boolean"},"metadata":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","platform","pageId","accessToken","webhookVerifyToken","businessAccountId","phoneNumberId","urlWebhook","isActive","metadata"],"example":"deleted"},"uniqueItems":true}],"title":"webhook_configs.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<WebhookConfig>"},"webhook_configs.Filter1":{"type":"object","title":"webhook_configs.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"webhook_configs.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"deleted":{"type":"boolean"},"deletedOn":{"type":"boolean"},"deletedBy":{"type":"boolean"},"createdOn":{"type":"boolean"},"modifiedOn":{"type":"boolean"},"id":{"type":"boolean"},"platform":{"type":"boolean"},"pageId":{"type":"boolean"},"accessToken":{"type":"boolean"},"webhookVerifyToken":{"type":"boolean"},"businessAccountId":{"type":"boolean"},"phoneNumberId":{"type":"boolean"},"urlWebhook":{"type":"boolean"},"isActive":{"type":"boolean"},"metadata":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["deleted","deletedOn","deletedBy","createdOn","modifiedOn","id","platform","pageId","accessToken","webhookVerifyToken","businessAccountId","phoneNumberId","urlWebhook","isActive","metadata"],"example":"deleted"},"uniqueItems":true}],"title":"webhook_configs.Fields"}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<WebhookConfig>"},"workflow_configs.ScopeFilter":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array","items":{"type":"string"},"uniqueItems":true}]},"include":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"additionalProperties":false,"title":"workflow_configs.ScopeFilter"},"workflow_configs.IncludeFilter.Items":{"title":"workflow_configs.IncludeFilter.Items","type":"object","properties":{"relation":{"type":"string","enum":["executions"]},"scope":{"$ref":"#/components/schemas/workflow_configs.ScopeFilter"}}},"workflow_configs.Filter":{"type":"object","title":"workflow_configs.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"boolean"},"entityType":{"type":"boolean"},"triggerEvent":{"type":"boolean"},"conditions":{"type":"boolean"},"actions":{"type":"boolean"},"isActive":{"type":"boolean"},"description":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","name","entityType","triggerEvent","conditions","actions","isActive","description"],"example":"id"},"uniqueItems":true}],"title":"workflow_configs.Fields"},"include":{"title":"workflow_configs.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/workflow_configs.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<WorkflowConfig>"},"workflow_configs.Filter1":{"type":"object","title":"workflow_configs.Filter","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"example":100},"skip":{"type":"integer","minimum":0},"order":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"where":{"title":"workflow_configs.WhereFilter","type":"object","additionalProperties":true},"fields":{"oneOf":[{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"boolean"},"entityType":{"type":"boolean"},"triggerEvent":{"type":"boolean"},"conditions":{"type":"boolean"},"actions":{"type":"boolean"},"isActive":{"type":"boolean"},"description":{"type":"boolean"}},"additionalProperties":false},{"type":"array","items":{"type":"string","enum":["id","name","entityType","triggerEvent","conditions","actions","isActive","description"],"example":"id"},"uniqueItems":true}],"title":"workflow_configs.Fields"},"include":{"title":"workflow_configs.IncludeFilter","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/workflow_configs.IncludeFilter.Items"},{"type":"string"}]}}},"additionalProperties":false,"x-typescript-type":"@loopback/repository#Filter<WorkflowConfig>"}},"securitySchemes":{"jwt":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"jwt":[]}]}