@procxo/shared 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/ormconfig.factory.d.ts +10 -0
- package/dist/config/ormconfig.factory.d.ts.map +1 -0
- package/dist/config/ormconfig.factory.js +48 -0
- package/dist/config/ormconfig.factory.js.map +1 -0
- package/dist/config/typeorm.config.d.ts +4 -0
- package/dist/config/typeorm.config.d.ts.map +1 -0
- package/dist/config/typeorm.config.js +22 -0
- package/dist/config/typeorm.config.js.map +1 -0
- package/dist/core/constant/index.d.ts +2 -0
- package/dist/core/constant/index.d.ts.map +1 -0
- package/dist/core/constant/index.js +18 -0
- package/dist/core/constant/index.js.map +1 -0
- package/dist/core/constant/notification-preference.d.ts +29 -0
- package/dist/core/constant/notification-preference.d.ts.map +1 -0
- package/dist/core/constant/notification-preference.js +81 -0
- package/dist/core/constant/notification-preference.js.map +1 -0
- package/dist/core/json/core-data/currency.json +8 -0
- package/{src → dist}/core/json/core-data/department.json +38 -38
- package/{src → dist}/core/json/core-data/permission.json +882 -898
- package/dist/core/json/core-data/role.json +30 -0
- package/dist/core/json/core-data/user.json +12 -0
- package/dist/core/json/geographic-data/cities.json +54693 -0
- package/dist/core/json/geographic-data/countries.json +31 -0
- package/dist/database/entities/activity-logs.entity.d.ts +11 -0
- package/dist/database/entities/activity-logs.entity.d.ts.map +1 -0
- package/dist/database/entities/activity-logs.entity.js +56 -0
- package/dist/database/entities/activity-logs.entity.js.map +1 -0
- package/dist/database/entities/address.entity.d.ts +13 -0
- package/dist/database/entities/address.entity.d.ts.map +1 -0
- package/dist/database/entities/address.entity.js +63 -0
- package/dist/database/entities/address.entity.js.map +1 -0
- package/dist/database/entities/alert.entity.d.ts +37 -0
- package/dist/database/entities/alert.entity.d.ts.map +1 -0
- package/dist/database/entities/alert.entity.js +171 -0
- package/dist/database/entities/alert.entity.js.map +1 -0
- package/dist/database/entities/approval-condition.entity.d.ts +16 -0
- package/dist/database/entities/approval-condition.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-condition.entity.js +66 -0
- package/dist/database/entities/approval-condition.entity.js.map +1 -0
- package/dist/database/entities/approval-hierarchy-role.entity.d.ts +10 -0
- package/dist/database/entities/approval-hierarchy-role.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-hierarchy-role.entity.js +47 -0
- package/dist/database/entities/approval-hierarchy-role.entity.js.map +1 -0
- package/dist/database/entities/approval-hierarchy-user.entity.d.ts +10 -0
- package/dist/database/entities/approval-hierarchy-user.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-hierarchy-user.entity.js +47 -0
- package/dist/database/entities/approval-hierarchy-user.entity.js.map +1 -0
- package/dist/database/entities/approval-hierarchy.entity.d.ts +22 -0
- package/dist/database/entities/approval-hierarchy.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-hierarchy.entity.js +80 -0
- package/dist/database/entities/approval-hierarchy.entity.js.map +1 -0
- package/dist/database/entities/approval-journey.entity.d.ts +32 -0
- package/dist/database/entities/approval-journey.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-journey.entity.js +125 -0
- package/dist/database/entities/approval-journey.entity.js.map +1 -0
- package/dist/database/entities/approval-level-escalation-user.entity.d.ts +10 -0
- package/dist/database/entities/approval-level-escalation-user.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level-escalation-user.entity.js +47 -0
- package/dist/database/entities/approval-level-escalation-user.entity.js.map +1 -0
- package/dist/database/entities/approval-level-escalation.entity.d.ts +14 -0
- package/dist/database/entities/approval-level-escalation.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level-escalation.entity.js +65 -0
- package/dist/database/entities/approval-level-escalation.entity.js.map +1 -0
- package/dist/database/entities/approval-level-user.entity.d.ts +10 -0
- package/dist/database/entities/approval-level-user.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level-user.entity.js +49 -0
- package/dist/database/entities/approval-level-user.entity.js.map +1 -0
- package/dist/database/entities/approval-level.entity.d.ts +17 -0
- package/dist/database/entities/approval-level.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level.entity.js +76 -0
- package/dist/database/entities/approval-level.entity.js.map +1 -0
- package/dist/database/entities/base.entity.d.ts +12 -0
- package/dist/database/entities/base.entity.d.ts.map +1 -0
- package/dist/database/entities/base.entity.js +63 -0
- package/dist/database/entities/base.entity.js.map +1 -0
- package/dist/database/entities/chat.entity.d.ts +13 -0
- package/dist/database/entities/chat.entity.d.ts.map +1 -0
- package/dist/database/entities/chat.entity.js +67 -0
- package/dist/database/entities/chat.entity.js.map +1 -0
- package/dist/database/entities/city.entity.d.ts +11 -0
- package/dist/database/entities/city.entity.d.ts.map +1 -0
- package/dist/database/entities/city.entity.js +53 -0
- package/dist/database/entities/city.entity.js.map +1 -0
- package/dist/database/entities/client.entity.d.ts +44 -0
- package/dist/database/entities/client.entity.d.ts.map +1 -0
- package/dist/database/entities/client.entity.js +191 -0
- package/dist/database/entities/client.entity.js.map +1 -0
- package/dist/database/entities/contact.entity.d.ts +12 -0
- package/dist/database/entities/contact.entity.d.ts.map +1 -0
- package/dist/database/entities/contact.entity.js +57 -0
- package/dist/database/entities/contact.entity.js.map +1 -0
- package/dist/database/entities/country.entity.d.ts +26 -0
- package/dist/database/entities/country.entity.d.ts.map +1 -0
- package/dist/database/entities/country.entity.js +127 -0
- package/dist/database/entities/country.entity.js.map +1 -0
- package/dist/database/entities/credit-note.entity.d.ts +38 -0
- package/dist/database/entities/credit-note.entity.d.ts.map +1 -0
- package/dist/database/entities/credit-note.entity.js +159 -0
- package/dist/database/entities/credit-note.entity.js.map +1 -0
- package/dist/database/entities/currency.entity.d.ts +10 -0
- package/dist/database/entities/currency.entity.d.ts.map +1 -0
- package/dist/database/entities/currency.entity.js +47 -0
- package/dist/database/entities/currency.entity.js.map +1 -0
- package/dist/database/entities/department.entity.d.ts +10 -0
- package/dist/database/entities/department.entity.d.ts.map +1 -0
- package/dist/database/entities/department.entity.js +47 -0
- package/dist/database/entities/department.entity.js.map +1 -0
- package/dist/database/entities/entitlement.entity.d.ts +24 -0
- package/dist/database/entities/entitlement.entity.d.ts.map +1 -0
- package/dist/database/entities/entitlement.entity.js +106 -0
- package/dist/database/entities/entitlement.entity.js.map +1 -0
- package/dist/database/entities/expense.entity.d.ts +47 -0
- package/dist/database/entities/expense.entity.d.ts.map +1 -0
- package/dist/database/entities/expense.entity.js +221 -0
- package/dist/database/entities/expense.entity.js.map +1 -0
- package/dist/database/entities/file.entity.d.ts +11 -0
- package/dist/database/entities/file.entity.d.ts.map +1 -0
- package/dist/database/entities/file.entity.js +56 -0
- package/dist/database/entities/file.entity.js.map +1 -0
- package/dist/database/entities/fixed-invoice-item.entity.d.ts +9 -0
- package/dist/database/entities/fixed-invoice-item.entity.d.ts.map +1 -0
- package/dist/database/entities/fixed-invoice-item.entity.js +52 -0
- package/dist/database/entities/fixed-invoice-item.entity.js.map +1 -0
- package/dist/database/entities/group.entity.d.ts +9 -0
- package/dist/database/entities/group.entity.d.ts.map +1 -0
- package/dist/database/entities/group.entity.js +45 -0
- package/dist/database/entities/group.entity.js.map +1 -0
- package/dist/database/entities/gst.entity.d.ts +6 -0
- package/dist/database/entities/gst.entity.d.ts.map +1 -0
- package/dist/database/entities/gst.entity.js +44 -0
- package/dist/database/entities/gst.entity.js.map +1 -0
- package/dist/database/entities/holiday.entity.d.ts +14 -0
- package/dist/database/entities/holiday.entity.d.ts.map +1 -0
- package/dist/database/entities/holiday.entity.js +79 -0
- package/dist/database/entities/holiday.entity.js.map +1 -0
- package/{src/database/entities/index.ts → dist/database/entities/index.d.ts} +84 -79
- package/dist/database/entities/index.d.ts.map +1 -0
- package/dist/database/entities/index.js +100 -0
- package/dist/database/entities/index.js.map +1 -0
- package/dist/database/entities/invoice-template-footer.entity.d.ts +24 -0
- package/dist/database/entities/invoice-template-footer.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template-footer.entity.js +118 -0
- package/dist/database/entities/invoice-template-footer.entity.js.map +1 -0
- package/dist/database/entities/invoice-template-header.entity.d.ts +14 -0
- package/dist/database/entities/invoice-template-header.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template-header.entity.js +68 -0
- package/dist/database/entities/invoice-template-header.entity.js.map +1 -0
- package/dist/database/entities/invoice-template-table.entity.d.ts +35 -0
- package/dist/database/entities/invoice-template-table.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template-table.entity.js +143 -0
- package/dist/database/entities/invoice-template-table.entity.js.map +1 -0
- package/dist/database/entities/invoice-template.entity.d.ts +39 -0
- package/dist/database/entities/invoice-template.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template.entity.js +157 -0
- package/dist/database/entities/invoice-template.entity.js.map +1 -0
- package/dist/database/entities/invoice.entity.d.ts +49 -0
- package/dist/database/entities/invoice.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice.entity.js +302 -0
- package/dist/database/entities/invoice.entity.js.map +1 -0
- package/dist/database/entities/invoice_item.entity.d.ts +22 -0
- package/dist/database/entities/invoice_item.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice_item.entity.js +89 -0
- package/dist/database/entities/invoice_item.entity.js.map +1 -0
- package/dist/database/entities/leave-balance.entity.d.ts +38 -0
- package/dist/database/entities/leave-balance.entity.d.ts.map +1 -0
- package/dist/database/entities/leave-balance.entity.js +166 -0
- package/dist/database/entities/leave-balance.entity.js.map +1 -0
- package/dist/database/entities/leave-request.entity.d.ts +64 -0
- package/dist/database/entities/leave-request.entity.d.ts.map +1 -0
- package/dist/database/entities/leave-request.entity.js +219 -0
- package/dist/database/entities/leave-request.entity.js.map +1 -0
- package/dist/database/entities/leave-type.entity.d.ts +15 -0
- package/dist/database/entities/leave-type.entity.d.ts.map +1 -0
- package/dist/database/entities/leave-type.entity.js +72 -0
- package/dist/database/entities/leave-type.entity.js.map +1 -0
- package/dist/database/entities/matter-tag.entity.d.ts +10 -0
- package/dist/database/entities/matter-tag.entity.d.ts.map +1 -0
- package/dist/database/entities/matter-tag.entity.js +45 -0
- package/dist/database/entities/matter-tag.entity.js.map +1 -0
- package/dist/database/entities/matter-task-view-filter.entity.d.ts +11 -0
- package/dist/database/entities/matter-task-view-filter.entity.d.ts.map +1 -0
- package/dist/database/entities/matter-task-view-filter.entity.js +42 -0
- package/dist/database/entities/matter-task-view-filter.entity.js.map +1 -0
- package/dist/database/entities/matter-team-member.entity.d.ts +11 -0
- package/dist/database/entities/matter-team-member.entity.d.ts.map +1 -0
- package/dist/database/entities/matter-team-member.entity.js +56 -0
- package/dist/database/entities/matter-team-member.entity.js.map +1 -0
- package/dist/database/entities/matter.entity.d.ts +62 -0
- package/dist/database/entities/matter.entity.d.ts.map +1 -0
- package/dist/database/entities/matter.entity.js +249 -0
- package/dist/database/entities/matter.entity.js.map +1 -0
- package/dist/database/entities/otp.entity.d.ts +24 -0
- package/dist/database/entities/otp.entity.d.ts.map +1 -0
- package/dist/database/entities/otp.entity.js +97 -0
- package/dist/database/entities/otp.entity.js.map +1 -0
- package/dist/database/entities/payment.entity.d.ts +29 -0
- package/dist/database/entities/payment.entity.d.ts.map +1 -0
- package/dist/database/entities/payment.entity.js +207 -0
- package/dist/database/entities/payment.entity.js.map +1 -0
- package/dist/database/entities/permission.entity.d.ts +11 -0
- package/dist/database/entities/permission.entity.d.ts.map +1 -0
- package/dist/database/entities/permission.entity.js +52 -0
- package/dist/database/entities/permission.entity.js.map +1 -0
- package/dist/database/entities/quickbooks-connection.entity.d.ts +14 -0
- package/dist/database/entities/quickbooks-connection.entity.d.ts.map +1 -0
- package/dist/database/entities/quickbooks-connection.entity.js +71 -0
- package/dist/database/entities/quickbooks-connection.entity.js.map +1 -0
- package/dist/database/entities/quickbooks-sync-log.entity.d.ts +34 -0
- package/dist/database/entities/quickbooks-sync-log.entity.d.ts.map +1 -0
- package/dist/database/entities/quickbooks-sync-log.entity.js +116 -0
- package/dist/database/entities/quickbooks-sync-log.entity.js.map +1 -0
- package/dist/database/entities/role-permission.entity.d.ts +10 -0
- package/dist/database/entities/role-permission.entity.d.ts.map +1 -0
- package/dist/database/entities/role-permission.entity.js +49 -0
- package/dist/database/entities/role-permission.entity.js.map +1 -0
- package/dist/database/entities/role-shift.entity.d.ts +8 -0
- package/dist/database/entities/role-shift.entity.d.ts.map +1 -0
- package/dist/database/entities/role-shift.entity.js +48 -0
- package/dist/database/entities/role-shift.entity.js.map +1 -0
- package/dist/database/entities/role.entity.d.ts +13 -0
- package/dist/database/entities/role.entity.d.ts.map +1 -0
- package/dist/database/entities/role.entity.js +58 -0
- package/dist/database/entities/role.entity.js.map +1 -0
- package/dist/database/entities/sequence-generator.entity.d.ts +8 -0
- package/dist/database/entities/sequence-generator.entity.d.ts.map +1 -0
- package/dist/database/entities/sequence-generator.entity.js +64 -0
- package/dist/database/entities/sequence-generator.entity.js.map +1 -0
- package/dist/database/entities/shift.entity.d.ts +18 -0
- package/dist/database/entities/shift.entity.d.ts.map +1 -0
- package/dist/database/entities/shift.entity.js +110 -0
- package/dist/database/entities/shift.entity.js.map +1 -0
- package/dist/database/entities/sub-task-tag.entity.d.ts +10 -0
- package/dist/database/entities/sub-task-tag.entity.d.ts.map +1 -0
- package/dist/database/entities/sub-task-tag.entity.js +45 -0
- package/dist/database/entities/sub-task-tag.entity.js.map +1 -0
- package/dist/database/entities/subtask-user.entity.d.ts +10 -0
- package/dist/database/entities/subtask-user.entity.d.ts.map +1 -0
- package/dist/database/entities/subtask-user.entity.js +45 -0
- package/dist/database/entities/subtask-user.entity.js.map +1 -0
- package/dist/database/entities/subtask.entity.d.ts +47 -0
- package/dist/database/entities/subtask.entity.d.ts.map +1 -0
- package/dist/database/entities/subtask.entity.js +185 -0
- package/dist/database/entities/subtask.entity.js.map +1 -0
- package/dist/database/entities/summary-task-status.entity.d.ts +7 -0
- package/dist/database/entities/summary-task-status.entity.d.ts.map +1 -0
- package/dist/database/entities/summary-task-status.entity.js +37 -0
- package/dist/database/entities/summary-task-status.entity.js.map +1 -0
- package/dist/database/entities/superset.entity.d.ts +15 -0
- package/dist/database/entities/superset.entity.d.ts.map +1 -0
- package/dist/database/entities/superset.entity.js +73 -0
- package/dist/database/entities/superset.entity.js.map +1 -0
- package/dist/database/entities/tag.entity.d.ts +10 -0
- package/dist/database/entities/tag.entity.d.ts.map +1 -0
- package/dist/database/entities/tag.entity.js +43 -0
- package/dist/database/entities/tag.entity.js.map +1 -0
- package/dist/database/entities/task-comment.entity.d.ts +15 -0
- package/dist/database/entities/task-comment.entity.d.ts.map +1 -0
- package/dist/database/entities/task-comment.entity.js +67 -0
- package/dist/database/entities/task-comment.entity.js.map +1 -0
- package/dist/database/entities/task-milestone.entity.d.ts +7 -0
- package/dist/database/entities/task-milestone.entity.d.ts.map +1 -0
- package/dist/database/entities/task-milestone.entity.js +36 -0
- package/dist/database/entities/task-milestone.entity.js.map +1 -0
- package/dist/database/entities/task-remainder.entity.d.ts +12 -0
- package/dist/database/entities/task-remainder.entity.d.ts.map +1 -0
- package/dist/database/entities/task-remainder.entity.js +57 -0
- package/dist/database/entities/task-remainder.entity.js.map +1 -0
- package/dist/database/entities/task-tag.entity.d.ts +10 -0
- package/dist/database/entities/task-tag.entity.d.ts.map +1 -0
- package/dist/database/entities/task-tag.entity.js +45 -0
- package/dist/database/entities/task-tag.entity.js.map +1 -0
- package/dist/database/entities/task-type.entity.d.ts +7 -0
- package/dist/database/entities/task-type.entity.d.ts.map +1 -0
- package/dist/database/entities/task-type.entity.js +36 -0
- package/dist/database/entities/task-type.entity.js.map +1 -0
- package/dist/database/entities/task-user.entity.d.ts +10 -0
- package/dist/database/entities/task-user.entity.d.ts.map +1 -0
- package/dist/database/entities/task-user.entity.js +45 -0
- package/dist/database/entities/task-user.entity.js.map +1 -0
- package/dist/database/entities/task.entity.d.ts +53 -0
- package/dist/database/entities/task.entity.d.ts.map +1 -0
- package/dist/database/entities/task.entity.js +259 -0
- package/dist/database/entities/task.entity.js.map +1 -0
- package/dist/database/entities/template-task.entity.d.ts +11 -0
- package/dist/database/entities/template-task.entity.d.ts.map +1 -0
- package/dist/database/entities/template-task.entity.js +53 -0
- package/dist/database/entities/template-task.entity.js.map +1 -0
- package/dist/database/entities/template.entity.d.ts +13 -0
- package/dist/database/entities/template.entity.d.ts.map +1 -0
- package/dist/database/entities/template.entity.js +58 -0
- package/dist/database/entities/template.entity.js.map +1 -0
- package/dist/database/entities/tenant-configuration.entity.d.ts +16 -0
- package/dist/database/entities/tenant-configuration.entity.d.ts.map +1 -0
- package/dist/database/entities/tenant-configuration.entity.js +77 -0
- package/dist/database/entities/tenant-configuration.entity.js.map +1 -0
- package/dist/database/entities/tenant-module.entity.d.ts +11 -0
- package/dist/database/entities/tenant-module.entity.d.ts.map +1 -0
- package/dist/database/entities/tenant-module.entity.js +50 -0
- package/dist/database/entities/tenant-module.entity.js.map +1 -0
- package/dist/database/entities/tenant-sub-module.entity.d.ts +9 -0
- package/dist/database/entities/tenant-sub-module.entity.d.ts.map +1 -0
- package/dist/database/entities/tenant-sub-module.entity.js +45 -0
- package/dist/database/entities/tenant-sub-module.entity.js.map +1 -0
- package/dist/database/entities/timesheet-comment.entity.d.ts +11 -0
- package/dist/database/entities/timesheet-comment.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet-comment.entity.js +65 -0
- package/dist/database/entities/timesheet-comment.entity.js.map +1 -0
- package/dist/database/entities/timesheet-event.entity.d.ts +48 -0
- package/dist/database/entities/timesheet-event.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet-event.entity.js +328 -0
- package/dist/database/entities/timesheet-event.entity.js.map +1 -0
- package/dist/database/entities/timesheet-summary.entity.d.ts +27 -0
- package/dist/database/entities/timesheet-summary.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet-summary.entity.js +161 -0
- package/dist/database/entities/timesheet-summary.entity.js.map +1 -0
- package/dist/database/entities/timesheet.entity.d.ts +32 -0
- package/dist/database/entities/timesheet.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet.entity.js +112 -0
- package/dist/database/entities/timesheet.entity.js.map +1 -0
- package/dist/database/entities/transfer-ownership.entity.d.ts +15 -0
- package/dist/database/entities/transfer-ownership.entity.d.ts.map +1 -0
- package/dist/database/entities/transfer-ownership.entity.js +75 -0
- package/dist/database/entities/transfer-ownership.entity.js.map +1 -0
- package/dist/database/entities/upload-log.entity.d.ts +32 -0
- package/dist/database/entities/upload-log.entity.d.ts.map +1 -0
- package/dist/database/entities/upload-log.entity.js +116 -0
- package/dist/database/entities/upload-log.entity.js.map +1 -0
- package/dist/database/entities/user-notification-channel.entity.d.ts +8 -0
- package/dist/database/entities/user-notification-channel.entity.d.ts.map +1 -0
- package/dist/database/entities/user-notification-channel.entity.js +63 -0
- package/dist/database/entities/user-notification-channel.entity.js.map +1 -0
- package/dist/database/entities/user-notification-preference.entity.d.ts +10 -0
- package/dist/database/entities/user-notification-preference.entity.d.ts.map +1 -0
- package/dist/database/entities/user-notification-preference.entity.js +72 -0
- package/dist/database/entities/user-notification-preference.entity.js.map +1 -0
- package/dist/database/entities/user-role.entity.d.ts +10 -0
- package/dist/database/entities/user-role.entity.d.ts.map +1 -0
- package/dist/database/entities/user-role.entity.js +45 -0
- package/dist/database/entities/user-role.entity.js.map +1 -0
- package/dist/database/entities/user-session-history.entity.d.ts +24 -0
- package/dist/database/entities/user-session-history.entity.d.ts.map +1 -0
- package/dist/database/entities/user-session-history.entity.js +95 -0
- package/dist/database/entities/user-session-history.entity.js.map +1 -0
- package/dist/database/entities/user-shift.entity.d.ts +24 -0
- package/dist/database/entities/user-shift.entity.d.ts.map +1 -0
- package/dist/database/entities/user-shift.entity.js +153 -0
- package/dist/database/entities/user-shift.entity.js.map +1 -0
- package/dist/database/entities/user.entity.d.ts +77 -0
- package/dist/database/entities/user.entity.d.ts.map +1 -0
- package/dist/database/entities/user.entity.js +295 -0
- package/dist/database/entities/user.entity.js.map +1 -0
- package/dist/database/entities/zohobooks-connection.entity.d.ts +16 -0
- package/dist/database/entities/zohobooks-connection.entity.d.ts.map +1 -0
- package/dist/database/entities/zohobooks-connection.entity.js +81 -0
- package/dist/database/entities/zohobooks-connection.entity.js.map +1 -0
- package/dist/database/entities/zohobooks-sync-log.entity.d.ts +35 -0
- package/dist/database/entities/zohobooks-sync-log.entity.d.ts.map +1 -0
- package/dist/database/entities/zohobooks-sync-log.entity.js +117 -0
- package/dist/database/entities/zohobooks-sync-log.entity.js.map +1 -0
- package/dist/database/index.d.ts +2 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +18 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/migrations/1770794314727-initialMigration.d.ts +7 -0
- package/dist/database/migrations/1770794314727-initialMigration.d.ts.map +1 -0
- package/{src/database/migrations/1770706648232-initialMigration.ts → dist/database/migrations/1770794314727-initialMigration.js} +9 -9
- package/dist/database/migrations/1770794314727-initialMigration.js.map +1 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.d.ts +7 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.d.ts.map +1 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.js +26 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.js.map +1 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.d.ts +7 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.d.ts.map +1 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.js +14 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.js.map +1 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.d.ts +7 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.d.ts.map +1 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.js +16 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.js.map +1 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.d.ts +7 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.d.ts.map +1 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.js +34 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.js.map +1 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.d.ts +7 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.d.ts.map +1 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.js +14 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.js.map +1 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.d.ts +7 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.d.ts.map +1 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.js +34 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.js.map +1 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.d.ts +7 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.d.ts.map +1 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.js +32 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.js.map +1 -0
- package/dist/database/seeder/base.seed.d.ts +19 -0
- package/dist/database/seeder/base.seed.d.ts.map +1 -0
- package/dist/database/seeder/base.seed.js +83 -0
- package/dist/database/seeder/base.seed.js.map +1 -0
- package/dist/database/seeder/config/seeder.config.d.ts +7 -0
- package/dist/database/seeder/config/seeder.config.d.ts.map +1 -0
- package/dist/database/seeder/config/seeder.config.js +21 -0
- package/dist/database/seeder/config/seeder.config.js.map +1 -0
- package/dist/database/seeder/errors/seeder.error.d.ts +11 -0
- package/dist/database/seeder/errors/seeder.error.d.ts.map +1 -0
- package/dist/database/seeder/errors/seeder.error.js +27 -0
- package/dist/database/seeder/errors/seeder.error.js.map +1 -0
- package/dist/database/seeder/seed-runner.d.ts +2 -0
- package/dist/database/seeder/seed-runner.d.ts.map +1 -0
- package/dist/database/seeder/seed-runner.js +157 -0
- package/dist/database/seeder/seed-runner.js.map +1 -0
- package/dist/database/seeder/seeds/city.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/city.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/city.seed.js +62 -0
- package/dist/database/seeder/seeds/city.seed.js.map +1 -0
- package/dist/database/seeder/seeds/country.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/country.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/country.seed.js +54 -0
- package/dist/database/seeder/seeds/country.seed.js.map +1 -0
- package/dist/database/seeder/seeds/currency.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/currency.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/currency.seed.js +50 -0
- package/dist/database/seeder/seeds/currency.seed.js.map +1 -0
- package/dist/database/seeder/seeds/department.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/department.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/department.seed.js +48 -0
- package/dist/database/seeder/seeds/department.seed.js.map +1 -0
- package/dist/database/seeder/seeds/permission.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/permission.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/permission.seed.js +54 -0
- package/dist/database/seeder/seeds/permission.seed.js.map +1 -0
- package/dist/database/seeder/seeds/role-permission.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/role-permission.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/role-permission.seed.js +47 -0
- package/dist/database/seeder/seeds/role-permission.seed.js.map +1 -0
- package/dist/database/seeder/seeds/role.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/role.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/role.seed.js +52 -0
- package/dist/database/seeder/seeds/role.seed.js.map +1 -0
- package/dist/database/seeder/seeds/user-role.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/user-role.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/user-role.seed.js +66 -0
- package/dist/database/seeder/seeds/user-role.seed.js.map +1 -0
- package/dist/database/seeder/seeds/user.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/user.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/user.seed.js +110 -0
- package/dist/database/seeder/seeds/user.seed.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +1 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/scripts/create-schema.d.ts +2 -0
- package/dist/scripts/create-schema.d.ts.map +1 -0
- package/dist/scripts/create-schema.js +77 -0
- package/dist/scripts/create-schema.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +50 -70
- package/README.md +0 -250
- package/src/config/index.ts +0 -5
- package/src/config/ormconfig.factory.ts +0 -102
- package/src/config/typeorm.config.ts +0 -22
- package/src/core/constant/index.ts +0 -1
- package/src/core/constant/notification-preference.ts +0 -113
- package/src/core/json/core-data/currency.json +0 -8
- package/src/core/json/core-data/role.json +0 -30
- package/src/core/json/core-data/user.json +0 -12
- package/src/core/json/geographic-data/cities.json +0 -54693
- package/src/core/json/geographic-data/countries.json +0 -31
- package/src/database/entities/activity-logs.entity.ts +0 -31
- package/src/database/entities/address.entity.ts +0 -31
- package/src/database/entities/alert.entity.ts +0 -139
- package/src/database/entities/approval-condition.entity.ts +0 -48
- package/src/database/entities/approval-hierarchy-role.entity.ts +0 -24
- package/src/database/entities/approval-hierarchy-user.entity.ts +0 -24
- package/src/database/entities/approval-hierarchy.entity.ts +0 -59
- package/src/database/entities/approval-journey.entity.ts +0 -75
- package/src/database/entities/approval-level-escalation-user.entity.ts +0 -23
- package/src/database/entities/approval-level-escalation.entity.ts +0 -45
- package/src/database/entities/approval-level-user.entity.ts +0 -25
- package/src/database/entities/approval-level.entity.ts +0 -51
- package/src/database/entities/base.entity.ts +0 -31
- package/src/database/entities/chat.entity.ts +0 -36
- package/src/database/entities/city.entity.ts +0 -25
- package/src/database/entities/client.entity.ts +0 -91
- package/src/database/entities/contact.entity.ts +0 -27
- package/src/database/entities/country.entity.ts +0 -69
- package/src/database/entities/credit-note.entity.ts +0 -88
- package/src/database/entities/currency.entity.ts +0 -21
- package/src/database/entities/department.entity.ts +0 -21
- package/src/database/entities/entitlement.entity.ts +0 -64
- package/src/database/entities/expense.entity.ts +0 -141
- package/src/database/entities/file.entity.ts +0 -22
- package/src/database/entities/fixed-invoice-item.entity.ts +0 -29
- package/src/database/entities/group.entity.ts +0 -21
- package/src/database/entities/gst.entity.ts +0 -32
- package/src/database/entities/holiday.entity.ts +0 -51
- package/src/database/entities/invoice-template-footer.entity.ts +0 -70
- package/src/database/entities/invoice-template-header.entity.ts +0 -34
- package/src/database/entities/invoice-template-table.entity.ts +0 -83
- package/src/database/entities/invoice-template.entity.ts +0 -119
- package/src/database/entities/invoice.entity.ts +0 -139
- package/src/database/entities/invoice_item.entity.ts +0 -69
- package/src/database/entities/leave-balance.entity.ts +0 -118
- package/src/database/entities/leave-request.entity.ts +0 -155
- package/src/database/entities/leave-type.entity.ts +0 -37
- package/src/database/entities/matter-tag.entity.ts +0 -21
- package/src/database/entities/matter-task-view-filter.entity.ts +0 -21
- package/src/database/entities/matter-team-member.entity.ts +0 -30
- package/src/database/entities/matter.entity.ts +0 -156
- package/src/database/entities/payment.entity.ts +0 -72
- package/src/database/entities/permission.entity.ts +0 -27
- package/src/database/entities/quickbooks-connection.entity.ts +0 -35
- package/src/database/entities/quickbooks-sync-log.entity.ts +0 -79
- package/src/database/entities/role-permission.entity.ts +0 -30
- package/src/database/entities/role-shift.entity.ts +0 -43
- package/src/database/entities/role.entity.ts +0 -30
- package/src/database/entities/sequence-generator.entity.ts +0 -40
- package/src/database/entities/shift.entity.ts +0 -72
- package/src/database/entities/sub-task-tag.entity.ts +0 -22
- package/src/database/entities/subtask-user.entity.ts +0 -21
- package/src/database/entities/subtask.entity.ts +0 -125
- package/src/database/entities/summary-task-status.entity.ts +0 -15
- package/src/database/entities/superset.entity.ts +0 -38
- package/src/database/entities/tag.entity.ts +0 -19
- package/src/database/entities/task-comment.entity.ts +0 -41
- package/src/database/entities/task-milestone.entity.ts +0 -14
- package/src/database/entities/task-remainder.entity.ts +0 -29
- package/src/database/entities/task-tag.entity.ts +0 -22
- package/src/database/entities/task-type.entity.ts +0 -14
- package/src/database/entities/task-user.entity.ts +0 -21
- package/src/database/entities/task.entity.ts +0 -176
- package/src/database/entities/template-task.entity.ts +0 -25
- package/src/database/entities/template.entity.ts +0 -28
- package/src/database/entities/timesheet-comment.entity.ts +0 -45
- package/src/database/entities/timesheet-event.entity.ts +0 -256
- package/src/database/entities/timesheet-summary.entity.ts +0 -101
- package/src/database/entities/timesheet.entity.ts +0 -76
- package/src/database/entities/transfer-ownership.entity.ts +0 -39
- package/src/database/entities/upload-log.entity.ts +0 -78
- package/src/database/entities/user-notification-channel.entity.ts +0 -43
- package/src/database/entities/user-notification-preference.entity.ts +0 -50
- package/src/database/entities/user-role.entity.ts +0 -25
- package/src/database/entities/user-session-history.entity.ts +0 -45
- package/src/database/entities/user-shift.entity.ts +0 -109
- package/src/database/entities/user.entity.ts +0 -198
- package/src/database/index.ts +0 -1
- package/src/database/seeder/base.seed.ts +0 -104
- package/src/database/seeder/config/seeder.config.ts +0 -26
- package/src/database/seeder/errors/seeder.error.ts +0 -20
- package/src/database/seeder/seed-runner.ts +0 -200
- package/src/database/seeder/seeds/city.seed.ts +0 -70
- package/src/database/seeder/seeds/country.seed.ts +0 -58
- package/src/database/seeder/seeds/currency.seed.ts +0 -52
- package/src/database/seeder/seeds/department.seed.ts +0 -47
- package/src/database/seeder/seeds/permission.seed.ts +0 -54
- package/src/database/seeder/seeds/role-permission.seed.ts +0 -58
- package/src/database/seeder/seeds/role.seed.ts +0 -52
- package/src/database/seeder/seeds/user-role.seed.ts +0 -72
- package/src/database/seeder/seeds/user.seed.ts +0 -87
- package/src/scripts/create-schema.ts +0 -94
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { Client } from './client.entity';
|
|
3
|
+
import { Task } from './task.entity';
|
|
4
|
+
import { MatterTeamMember } from './matter-team-member.entity';
|
|
5
|
+
import { MatterTag } from './matter-tag.entity';
|
|
6
|
+
import { Template } from './template.entity';
|
|
7
|
+
import { Invoice } from './invoice.entity';
|
|
8
|
+
import { User } from './user.entity';
|
|
9
|
+
import { TimesheetEvent } from './timesheet-event.entity';
|
|
10
|
+
import { Expense } from './expense.entity';
|
|
11
|
+
import { Currency } from './currency.entity';
|
|
12
|
+
export declare enum ApprovalStatus {
|
|
13
|
+
PENDING_APPROVAL = "pending_approval",
|
|
14
|
+
APPROVED = "approved",
|
|
15
|
+
REJECTED = "rejected",
|
|
16
|
+
AUTO_REJECTED = "auto_rejected"
|
|
17
|
+
}
|
|
18
|
+
export declare enum OvertimeFeeType {
|
|
19
|
+
HOURLY_RATE = "hourly_rate",
|
|
20
|
+
FIXED_RATE = "fixed_rate"
|
|
21
|
+
}
|
|
22
|
+
export declare class Matter extends BaseEntity {
|
|
23
|
+
clientId: number;
|
|
24
|
+
title: string;
|
|
25
|
+
billingMode: string[];
|
|
26
|
+
standardFee: number;
|
|
27
|
+
overtimeFeeType: OvertimeFeeType;
|
|
28
|
+
overtimeFixedRate: number;
|
|
29
|
+
overtimeHourlyRate: number;
|
|
30
|
+
startDate: Date;
|
|
31
|
+
dueDate: Date;
|
|
32
|
+
departmentId: number;
|
|
33
|
+
userId: number;
|
|
34
|
+
user: User;
|
|
35
|
+
notes: string;
|
|
36
|
+
createdFor: number;
|
|
37
|
+
templateId: number | null;
|
|
38
|
+
fileId: number;
|
|
39
|
+
status: string;
|
|
40
|
+
reason_for_matter: string;
|
|
41
|
+
approvalStatus: ApprovalStatus;
|
|
42
|
+
rejectReason: string;
|
|
43
|
+
priority: string;
|
|
44
|
+
riskLevel: string;
|
|
45
|
+
elId: number;
|
|
46
|
+
signatureId: number;
|
|
47
|
+
progress: number;
|
|
48
|
+
flowaceData: any;
|
|
49
|
+
currencyId: number | null;
|
|
50
|
+
isArchived: boolean;
|
|
51
|
+
client: Client;
|
|
52
|
+
partnerId: number;
|
|
53
|
+
template: Template;
|
|
54
|
+
teamMembers: MatterTeamMember[];
|
|
55
|
+
tasks: Task[];
|
|
56
|
+
mattersLabel: MatterTag[];
|
|
57
|
+
expenses: Expense[];
|
|
58
|
+
invoices: Invoice[];
|
|
59
|
+
currency: Currency;
|
|
60
|
+
timesheetEvents: TimesheetEvent[];
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=matter.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matter.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/matter.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAA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AC;IAG1B,UAAU,EAAE,OAAO,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAIlB,QAAQ,EAAE,QAAQ,CAAC;IAGnB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAGhC,KAAK,EAAE,IAAI,EAAE,CAAC;IAGd,YAAY,EAAE,SAAS,EAAE,CAAC;IAG1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IAGpB,QAAQ,EAAE,OAAO,EAAE,CAAC;IAIpB,QAAQ,EAAE,QAAQ,CAAC;IAGnB,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Matter = exports.OvertimeFeeType = exports.ApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
const client_entity_1 = require("./client.entity");
|
|
16
|
+
const task_entity_1 = require("./task.entity");
|
|
17
|
+
const matter_team_member_entity_1 = require("./matter-team-member.entity");
|
|
18
|
+
const matter_tag_entity_1 = require("./matter-tag.entity");
|
|
19
|
+
const template_entity_1 = require("./template.entity");
|
|
20
|
+
const invoice_entity_1 = require("./invoice.entity");
|
|
21
|
+
const user_entity_1 = require("./user.entity");
|
|
22
|
+
const timesheet_event_entity_1 = require("./timesheet-event.entity");
|
|
23
|
+
const expense_entity_1 = require("./expense.entity");
|
|
24
|
+
const currency_entity_1 = require("./currency.entity");
|
|
25
|
+
var ApprovalStatus;
|
|
26
|
+
(function (ApprovalStatus) {
|
|
27
|
+
ApprovalStatus["PENDING_APPROVAL"] = "pending_approval";
|
|
28
|
+
ApprovalStatus["APPROVED"] = "approved";
|
|
29
|
+
ApprovalStatus["REJECTED"] = "rejected";
|
|
30
|
+
ApprovalStatus["AUTO_REJECTED"] = "auto_rejected";
|
|
31
|
+
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
32
|
+
var OvertimeFeeType;
|
|
33
|
+
(function (OvertimeFeeType) {
|
|
34
|
+
OvertimeFeeType["HOURLY_RATE"] = "hourly_rate";
|
|
35
|
+
OvertimeFeeType["FIXED_RATE"] = "fixed_rate";
|
|
36
|
+
})(OvertimeFeeType || (exports.OvertimeFeeType = OvertimeFeeType = {}));
|
|
37
|
+
let Matter = class Matter extends base_entity_1.BaseEntity {
|
|
38
|
+
clientId;
|
|
39
|
+
title;
|
|
40
|
+
billingMode;
|
|
41
|
+
standardFee;
|
|
42
|
+
overtimeFeeType;
|
|
43
|
+
overtimeFixedRate;
|
|
44
|
+
overtimeHourlyRate;
|
|
45
|
+
startDate;
|
|
46
|
+
dueDate;
|
|
47
|
+
departmentId;
|
|
48
|
+
userId;
|
|
49
|
+
user;
|
|
50
|
+
notes;
|
|
51
|
+
createdFor;
|
|
52
|
+
templateId;
|
|
53
|
+
fileId;
|
|
54
|
+
status;
|
|
55
|
+
reason_for_matter;
|
|
56
|
+
approvalStatus;
|
|
57
|
+
rejectReason;
|
|
58
|
+
priority;
|
|
59
|
+
riskLevel;
|
|
60
|
+
elId;
|
|
61
|
+
signatureId;
|
|
62
|
+
progress;
|
|
63
|
+
flowaceData;
|
|
64
|
+
currencyId;
|
|
65
|
+
isArchived;
|
|
66
|
+
client;
|
|
67
|
+
partnerId;
|
|
68
|
+
template;
|
|
69
|
+
teamMembers;
|
|
70
|
+
tasks;
|
|
71
|
+
mattersLabel;
|
|
72
|
+
expenses;
|
|
73
|
+
invoices;
|
|
74
|
+
currency;
|
|
75
|
+
timesheetEvents;
|
|
76
|
+
};
|
|
77
|
+
exports.Matter = Matter;
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'client_id' }),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], Matter.prototype, "clientId", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ length: 200 }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Matter.prototype, "title", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)('text', { array: true, name: 'billing_mode' }),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], Matter.prototype, "billingMode", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, name: 'standard_fee' }),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], Matter.prototype, "standardFee", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ name: 'overtime_fee_type', nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], Matter.prototype, "overtimeFeeType", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({
|
|
100
|
+
type: 'decimal',
|
|
101
|
+
precision: 10,
|
|
102
|
+
scale: 2,
|
|
103
|
+
name: 'overtime_fixed_rate',
|
|
104
|
+
nullable: true,
|
|
105
|
+
}),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], Matter.prototype, "overtimeFixedRate", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({
|
|
110
|
+
type: 'decimal',
|
|
111
|
+
precision: 10,
|
|
112
|
+
scale: 2,
|
|
113
|
+
name: 'overtime_hourly_rate',
|
|
114
|
+
nullable: true,
|
|
115
|
+
}),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], Matter.prototype, "overtimeHourlyRate", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'startDate', nullable: true }),
|
|
120
|
+
__metadata("design:type", Date)
|
|
121
|
+
], Matter.prototype, "startDate", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'dueDate', nullable: true }),
|
|
124
|
+
__metadata("design:type", Date)
|
|
125
|
+
], Matter.prototype, "dueDate", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ name: 'departmentId', nullable: true }),
|
|
128
|
+
__metadata("design:type", Number)
|
|
129
|
+
], Matter.prototype, "departmentId", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ name: 'userId', nullable: true }),
|
|
132
|
+
__metadata("design:type", Number)
|
|
133
|
+
], Matter.prototype, "userId", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
136
|
+
(0, typeorm_1.JoinColumn)({ name: 'userId' }),
|
|
137
|
+
__metadata("design:type", user_entity_1.User)
|
|
138
|
+
], Matter.prototype, "user", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], Matter.prototype, "notes", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ name: 'created_for', nullable: true }),
|
|
145
|
+
__metadata("design:type", Number)
|
|
146
|
+
], Matter.prototype, "createdFor", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ name: 'templateId', nullable: true }),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], Matter.prototype, "templateId", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ name: 'fileId', nullable: true }),
|
|
153
|
+
__metadata("design:type", Number)
|
|
154
|
+
], Matter.prototype, "fileId", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], Matter.prototype, "status", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], Matter.prototype, "reason_for_matter", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ name: 'approval_status', nullable: true, enum: ApprovalStatus }),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], Matter.prototype, "approvalStatus", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ name: 'reject_reason', nullable: true }),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], Matter.prototype, "rejectReason", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ length: 10, nullable: true }),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], Matter.prototype, "priority", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.Column)({ length: 10, nullable: true }),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], Matter.prototype, "riskLevel", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({ name: 'elId', nullable: true }),
|
|
181
|
+
__metadata("design:type", Number)
|
|
182
|
+
], Matter.prototype, "elId", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, typeorm_1.Column)({ name: 'signatureId', nullable: true }),
|
|
185
|
+
__metadata("design:type", Number)
|
|
186
|
+
], Matter.prototype, "signatureId", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
189
|
+
__metadata("design:type", Number)
|
|
190
|
+
], Matter.prototype, "progress", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
193
|
+
__metadata("design:type", Object)
|
|
194
|
+
], Matter.prototype, "flowaceData", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, typeorm_1.Column)({ name: 'currency_id', nullable: true }),
|
|
197
|
+
__metadata("design:type", Object)
|
|
198
|
+
], Matter.prototype, "currencyId", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, typeorm_1.Column)({ name: 'is_archived', default: false }),
|
|
201
|
+
__metadata("design:type", Boolean)
|
|
202
|
+
], Matter.prototype, "isArchived", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, typeorm_1.ManyToOne)(() => client_entity_1.Client),
|
|
205
|
+
(0, typeorm_1.JoinColumn)({ name: 'client_id' }),
|
|
206
|
+
__metadata("design:type", client_entity_1.Client)
|
|
207
|
+
], Matter.prototype, "client", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, typeorm_1.Column)({ name: 'partnerId', nullable: true }),
|
|
210
|
+
__metadata("design:type", Number)
|
|
211
|
+
], Matter.prototype, "partnerId", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, typeorm_1.ManyToOne)(() => template_entity_1.Template),
|
|
214
|
+
(0, typeorm_1.JoinColumn)({ name: 'templateId' }),
|
|
215
|
+
__metadata("design:type", template_entity_1.Template)
|
|
216
|
+
], Matter.prototype, "template", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.OneToMany)(() => matter_team_member_entity_1.MatterTeamMember, (teamMember) => teamMember.matter),
|
|
219
|
+
__metadata("design:type", Array)
|
|
220
|
+
], Matter.prototype, "teamMembers", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.OneToMany)(() => task_entity_1.Task, (task) => task.matter),
|
|
223
|
+
__metadata("design:type", Array)
|
|
224
|
+
], Matter.prototype, "tasks", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, typeorm_1.OneToMany)(() => matter_tag_entity_1.MatterTag, (matterTag) => matterTag.matter),
|
|
227
|
+
__metadata("design:type", Array)
|
|
228
|
+
], Matter.prototype, "mattersLabel", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, typeorm_1.OneToMany)(() => expense_entity_1.Expense, (expense) => expense.matter),
|
|
231
|
+
__metadata("design:type", Array)
|
|
232
|
+
], Matter.prototype, "expenses", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, typeorm_1.OneToMany)(() => invoice_entity_1.Invoice, (invoice) => invoice.matter),
|
|
235
|
+
__metadata("design:type", Array)
|
|
236
|
+
], Matter.prototype, "invoices", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, typeorm_1.ManyToOne)(() => currency_entity_1.Currency, (currency) => currency.matters),
|
|
239
|
+
(0, typeorm_1.JoinColumn)({ name: 'currency_id' }),
|
|
240
|
+
__metadata("design:type", currency_entity_1.Currency)
|
|
241
|
+
], Matter.prototype, "currency", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, typeorm_1.OneToMany)(() => timesheet_event_entity_1.TimesheetEvent, (timesheetEvent) => timesheetEvent.matter),
|
|
244
|
+
__metadata("design:type", Array)
|
|
245
|
+
], Matter.prototype, "timesheetEvents", void 0);
|
|
246
|
+
exports.Matter = Matter = __decorate([
|
|
247
|
+
(0, typeorm_1.Entity)({ name: 'matters', schema: 'core' })
|
|
248
|
+
], Matter);
|
|
249
|
+
//# sourceMappingURL=matter.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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
|
|
8
|
+
}
|
|
9
|
+
export declare class Otp extends BaseEntity {
|
|
10
|
+
identifier: string;
|
|
11
|
+
identifierType: IdentifierType;
|
|
12
|
+
purpose: OtpPurpose;
|
|
13
|
+
otpHash: string;
|
|
14
|
+
expiresAt: Date;
|
|
15
|
+
isUsed: boolean;
|
|
16
|
+
usedAt: Date | null;
|
|
17
|
+
userId: number | null;
|
|
18
|
+
attempts: number;
|
|
19
|
+
maxAttempts: number;
|
|
20
|
+
resendCount: number;
|
|
21
|
+
maxResends: number;
|
|
22
|
+
cooldownUntil: Date | null;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=otp.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/otp.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,oBAAY,UAAU;IACpB,eAAe,QAAQ;CACxB;AAED,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AACD,qBAGa,GAAI,SAAQ,UAAU;IAE/B,UAAU,EAAE,MAAM,CAAC;IAGnB,cAAc,EAAE,cAAc,CAAC;IAG/B,OAAO,EAAE,UAAU,CAAC;IAGpB,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,MAAM,EAAE,OAAO,CAAC;IAGhB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAGpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,QAAQ,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Otp = exports.IdentifierType = exports.OtpPurpose = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
var OtpPurpose;
|
|
16
|
+
(function (OtpPurpose) {
|
|
17
|
+
OtpPurpose["TWO_FACTOR_AUTH"] = "2FA";
|
|
18
|
+
})(OtpPurpose || (exports.OtpPurpose = OtpPurpose = {}));
|
|
19
|
+
var IdentifierType;
|
|
20
|
+
(function (IdentifierType) {
|
|
21
|
+
IdentifierType["EMAIL"] = "email";
|
|
22
|
+
IdentifierType["PHONE"] = "phone";
|
|
23
|
+
})(IdentifierType || (exports.IdentifierType = IdentifierType = {}));
|
|
24
|
+
let Otp = class Otp extends base_entity_1.BaseEntity {
|
|
25
|
+
identifier;
|
|
26
|
+
identifierType;
|
|
27
|
+
purpose;
|
|
28
|
+
otpHash;
|
|
29
|
+
expiresAt;
|
|
30
|
+
isUsed;
|
|
31
|
+
usedAt;
|
|
32
|
+
userId;
|
|
33
|
+
attempts;
|
|
34
|
+
maxAttempts;
|
|
35
|
+
resendCount;
|
|
36
|
+
maxResends;
|
|
37
|
+
cooldownUntil;
|
|
38
|
+
};
|
|
39
|
+
exports.Otp = Otp;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'identifier', type: 'varchar', length: 255 }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Otp.prototype, "identifier", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'identifier_type', type: 'enum', enum: IdentifierType, default: IdentifierType.EMAIL }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Otp.prototype, "identifierType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'purpose', type: 'enum', enum: OtpPurpose }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Otp.prototype, "purpose", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ name: 'otp_hash', type: 'varchar', length: 255 }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Otp.prototype, "otpHash", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamp' }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], Otp.prototype, "expiresAt", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ name: 'is_used', default: false }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], Otp.prototype, "isUsed", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ name: 'used_at', type: 'timestamp', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], Otp.prototype, "usedAt", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ name: 'user_id', type: 'int', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], Otp.prototype, "userId", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ name: 'attempts', type: 'int', default: 0 }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], Otp.prototype, "attempts", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ name: 'max_attempts', type: 'int', default: 5 }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], Otp.prototype, "maxAttempts", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ name: 'resend_count', type: 'int', default: 0 }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], Otp.prototype, "resendCount", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ name: 'max_resends', type: 'int', default: 3 }),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], Otp.prototype, "maxResends", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ name: 'cooldown_until', type: 'timestamp', nullable: true }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], Otp.prototype, "cooldownUntil", void 0);
|
|
92
|
+
exports.Otp = Otp = __decorate([
|
|
93
|
+
(0, typeorm_1.Entity)({ name: 'otps', schema: 'user' }),
|
|
94
|
+
(0, typeorm_1.Index)(['identifier', 'purpose', 'isUsed'], { where: 'is_deleted = false' }),
|
|
95
|
+
(0, typeorm_1.Index)(['expiresAt'], { where: 'is_deleted = false' })
|
|
96
|
+
], Otp);
|
|
97
|
+
//# sourceMappingURL=otp.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp.entity.js","sourceRoot":"","sources":["../../../src/database/entities/otp.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAgD;AAChD,+CAA2C;AAM3C,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,qCAAuB,CAAA;AACzB,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED,IAAY,cAGX;AAHD,WAAY,c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
|
+
import { User } from "./user.entity";
|
|
4
|
+
export declare class Payment extends BaseEntity {
|
|
5
|
+
invoiceId: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
paymentDate: Date;
|
|
8
|
+
confirmedBy: number;
|
|
9
|
+
transactionReferenceNumber: string;
|
|
10
|
+
accountHolderName: string;
|
|
11
|
+
accountNumber: string;
|
|
12
|
+
receivedAmount: number;
|
|
13
|
+
isTdsApplicable: boolean;
|
|
14
|
+
tdsAmount: number;
|
|
15
|
+
tdsPercentage: number;
|
|
16
|
+
totalPaymentRecorded: number;
|
|
17
|
+
paymentMode: "Bank Transfer" | "Card" | "Cash" | "Cheque";
|
|
18
|
+
paymentStatus: "Partially Paid" | "Full Payment" | "Overdue" | "Cancelled" | "Refunded";
|
|
19
|
+
invoiceNo: string;
|
|
20
|
+
quickbooksId: string;
|
|
21
|
+
quickbooksSyncToken: string;
|
|
22
|
+
lastSyncedAt: Date;
|
|
23
|
+
zohobooksId: string;
|
|
24
|
+
zohobooksSyncToken: string;
|
|
25
|
+
lastSyncedAtZoho: Date;
|
|
26
|
+
user: User;
|
|
27
|
+
invoice: Invoice;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=payment.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/payment.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,qBAKa,OAAQ,SAAQ,UAAU;IAErC,SAAS,EAAE,MAAM,CAAC;IASlB,MAAM,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,IAAI,CAAC;IAGlB,WAAW,EAAE,MAAM,CAAC;IAQpB,0BAA0B,EAAE,MAAM,CAAC;IAQnC,iBAAiB,EAAE,MAAM,CAAC;IAQ1B,aAAa,EAAE,MAAM,CAAC;IAStB,cAAc,EAAE,MAAM,CAAC;IAGvB,eAAe,EAAE,OAAO,CAAC;IASzB,SAAS,EAAE,MAAM,CAAC;IASlB,aAAa,EAAE,MAAM,CAAC;IAStB,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAG1D,aAAa,EACT,gBAAgB,GAChB,cAAc,GACd,SAAS,GACT,WAAW,GACX,UAAU,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IASlB,YAAY,EAAE,MAAM,CAAC;IAQrB,mBAAmB,EAAE,MAAM,CAAC;IAG5B,YAAY,EAAE,IAAI,CAAC;IASnB,WAAW,EAAE,MAAM,CAAC;IAQpB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,gBAAgB,EAAE,IAAI,CAAC;IAIvB,IAAI,EAAE,IAAI,CAAC;IAIX,OAAO,EAAE,OAAO,CAAC;CAClB"}
|