@procxo/shared 1.0.1
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/README.md +250 -0
- 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 +47 -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/dist/core/json/core-data/department.json +38 -0
- package/dist/core/json/core-data/permission.json +898 -0
- 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 +40 -0
- package/dist/database/entities/client.entity.d.ts.map +1 -0
- package/dist/database/entities/client.entity.js +146 -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 +35 -0
- package/dist/database/entities/credit-note.entity.d.ts.map +1 -0
- package/dist/database/entities/credit-note.entity.js +144 -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 +9 -0
- package/dist/database/entities/file.entity.d.ts.map +1 -0
- package/dist/database/entities/file.entity.js +46 -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/dist/database/entities/index.d.ts +78 -0
- package/dist/database/entities/index.d.ts.map +1 -0
- package/dist/database/entities/index.js +94 -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 +46 -0
- package/dist/database/entities/invoice.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice.entity.js +212 -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/payment.entity.d.ts +26 -0
- package/dist/database/entities/payment.entity.d.ts.map +1 -0
- package/dist/database/entities/payment.entity.js +127 -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/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 +31 -0
- package/dist/database/entities/upload-log.entity.d.ts.map +1 -0
- package/dist/database/entities/upload-log.entity.js +111 -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 +16 -0
- package/dist/database/entities/user-session-history.entity.d.ts.map +1 -0
- package/dist/database/entities/user-session-history.entity.js +78 -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 +74 -0
- package/dist/database/entities/user.entity.d.ts.map +1 -0
- package/dist/database/entities/user.entity.js +280 -0
- package/dist/database/entities/user.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/1770706648232-initialMigration.d.ts +7 -0
- package/dist/database/migrations/1770706648232-initialMigration.d.ts.map +1 -0
- package/dist/database/migrations/1770706648232-initialMigration.js +474 -0
- package/dist/database/migrations/1770706648232-initialMigration.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/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -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 +68 -0
|
@@ -0,0 +1,52 @@
|
|
|
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.Permission = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
const role_permission_entity_1 = require("./role-permission.entity");
|
|
16
|
+
let Permission = class Permission extends base_entity_1.BaseEntity {
|
|
17
|
+
permissionName;
|
|
18
|
+
permissionSlug;
|
|
19
|
+
permissionDescription;
|
|
20
|
+
moduleName;
|
|
21
|
+
isActive;
|
|
22
|
+
role_permissions;
|
|
23
|
+
};
|
|
24
|
+
exports.Permission = Permission;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'permission_name', unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Permission.prototype, "permissionName", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'permission_slug', unique: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Permission.prototype, "permissionSlug", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'permission_description', nullable: true, type: 'text' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Permission.prototype, "permissionDescription", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'module_name' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Permission.prototype, "moduleName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'is_active', default: true }),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], Permission.prototype, "isActive", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.OneToMany)(() => role_permission_entity_1.RolePermission, (rolePermission) => rolePermission.permission),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], Permission.prototype, "role_permissions", void 0);
|
|
49
|
+
exports.Permission = Permission = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({ name: 'permissions', schema: 'user' })
|
|
51
|
+
], Permission);
|
|
52
|
+
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../src/database/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,+CAA2C;AAC3C,qEAA0D;AAGnD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAExC,cAAc,CAAS;IAGvB,cAAc,CAAS;IAGvB,qBAAqB,CAAS;IAG9B,UAAU,CAAS;IAGnB,QAAQ,CAAU;IAMlB,gBAAgB,CAAmB;CACpC,CAAA;AArBY,gCAAU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDAC3B;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDAC3B;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDAC3C;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;8CACb;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CAC3B;AAMlB;IAJC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,uCAAc,EACpB,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,UAAU,CAC9C;;oDACkC;qBApBxB,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GACnC,UAAU,CAqBtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
export declare class QuickBooksConnection extends BaseEntity {
|
|
3
|
+
organizationId: number;
|
|
4
|
+
realmId: string;
|
|
5
|
+
accessToken: string;
|
|
6
|
+
refreshToken: string;
|
|
7
|
+
tokenExpiresAt: Date;
|
|
8
|
+
scope: string[];
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
lastSyncAt: Date;
|
|
11
|
+
companyName: string;
|
|
12
|
+
environment: 'sandbox' | 'production';
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=quickbooks-connection.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quickbooks-connection.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/quickbooks-connection.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,oBAAqB,SAAQ,UAAU;IAElD,cAAc,EAAE,MAAM,CAAC;IAGvB,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,cAAc,EAAE,IAAI,CAAC;IAGrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAGhB,QAAQ,EAAE,OAAO,CAAC;IAGlB,UAAU,EAAE,IAAI,CAAC;IAGjB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,SAAS,GAAG,YAAY,CAAC;CACvC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.QuickBooksConnection = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
let QuickBooksConnection = class QuickBooksConnection extends base_entity_1.BaseEntity {
|
|
16
|
+
organizationId;
|
|
17
|
+
realmId;
|
|
18
|
+
accessToken;
|
|
19
|
+
refreshToken;
|
|
20
|
+
tokenExpiresAt;
|
|
21
|
+
scope;
|
|
22
|
+
isActive;
|
|
23
|
+
lastSyncAt;
|
|
24
|
+
companyName;
|
|
25
|
+
environment;
|
|
26
|
+
};
|
|
27
|
+
exports.QuickBooksConnection = QuickBooksConnection;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'organization_id', nullable: true }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], QuickBooksConnection.prototype, "organizationId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, name: 'realm_id', unique: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], QuickBooksConnection.prototype, "realmId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'text', name: 'access_token' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], QuickBooksConnection.prototype, "accessToken", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'text', name: 'refresh_token' }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], QuickBooksConnection.prototype, "refreshToken", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'token_expires_at' }),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], QuickBooksConnection.prototype, "tokenExpiresAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'scope', nullable: true }),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], QuickBooksConnection.prototype, "scope", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'boolean', name: 'is_active', default: true }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], QuickBooksConnection.prototype, "isActive", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'last_sync_at', nullable: true }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], QuickBooksConnection.prototype, "lastSyncAt", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, name: 'company_name', nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], QuickBooksConnection.prototype, "companyName", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, name: 'environment', default: 'sandbox' }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], QuickBooksConnection.prototype, "environment", void 0);
|
|
68
|
+
exports.QuickBooksConnection = QuickBooksConnection = __decorate([
|
|
69
|
+
(0, typeorm_1.Entity)({ name: 'quickbooks_connections', schema: 'core' })
|
|
70
|
+
], QuickBooksConnection);
|
|
71
|
+
//# sourceMappingURL=quickbooks-connection.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quickbooks-connection.entity.js","sourceRoot":"","sources":["../../../src/database/entities/quickbooks-connection.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA2C;AAGpC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,wBAAU;IAElD,cAAc,CAAS;IAGvB,OAAO,CAAS;IAGhB,WAAW,CAAS;IAGpB,YAAY,CAAS;IAGrB,cAAc,CAAO;IAGrB,KAAK,CAAW;IAGhB,QAAQ,CAAU;IAGlB,UAAU,CAAO;IAGjB,WAAW,CAAS;IAGpB,WAAW,CAA2B;CACvC,CAAA;AA9BY,oDAAoB;AAE/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC1C;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qDACzD;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;yDAC3B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;0DAC3B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BACxC,IAAI;4DAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sDAC5C;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACxD,IAAI;wDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC3D;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;yDAC3C;+BA7B3B,oBAAoB;IADhC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC9C,oBAAoB,CA8BhC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
export declare enum QBEntityType {
|
|
3
|
+
CLIENT = "client",
|
|
4
|
+
INVOICE = "invoice",
|
|
5
|
+
PAYMENT = "payment"
|
|
6
|
+
}
|
|
7
|
+
export declare enum QBSyncAction {
|
|
8
|
+
CREATE = "create",
|
|
9
|
+
UPDATE = "update",
|
|
10
|
+
DELETE = "delete"
|
|
11
|
+
}
|
|
12
|
+
export declare enum QBSyncDirection {
|
|
13
|
+
TO_QB = "to_qb",
|
|
14
|
+
FROM_QB = "from_qb"
|
|
15
|
+
}
|
|
16
|
+
export declare enum QBSyncStatus {
|
|
17
|
+
PENDING = "pending",
|
|
18
|
+
SUCCESS = "success",
|
|
19
|
+
FAILED = "failed"
|
|
20
|
+
}
|
|
21
|
+
export declare class QuickBooksSyncLog extends BaseEntity {
|
|
22
|
+
entityType: QBEntityType;
|
|
23
|
+
entityId: number;
|
|
24
|
+
action: QBSyncAction;
|
|
25
|
+
direction: QBSyncDirection;
|
|
26
|
+
status: QBSyncStatus;
|
|
27
|
+
errorMessage: string;
|
|
28
|
+
retryCount: number;
|
|
29
|
+
quickbooksId: string;
|
|
30
|
+
syncedAt: Date;
|
|
31
|
+
requestPayload: any;
|
|
32
|
+
responsePayload: any;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=quickbooks-sync-log.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quickbooks-sync-log.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/quickbooks-sync-log.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,qBACa,iBAAkB,SAAQ,UAAU;IAM/C,UAAU,EAAE,YAAY,CAAC;IAGzB,QAAQ,EAAE,MAAM,CAAC;IAOjB,MAAM,EAAE,YAAY,CAAC;IAOrB,SAAS,EAAE,eAAe,CAAC;IAQ3B,MAAM,EAAE,YAAY,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,YAAY,EAAE,MAAM,CAAC;IAGrB,QAAQ,EAAE,IAAI,CAAC;IAGf,cAAc,EAAE,GAAG,CAAC;IAGpB,eAAe,EAAE,GAAG,CAAC;CACtB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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.QuickBooksSyncLog = exports.QBSyncStatus = exports.QBSyncDirection = exports.QBSyncAction = exports.QBEntityType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
var QBEntityType;
|
|
16
|
+
(function (QBEntityType) {
|
|
17
|
+
QBEntityType["CLIENT"] = "client";
|
|
18
|
+
QBEntityType["INVOICE"] = "invoice";
|
|
19
|
+
QBEntityType["PAYMENT"] = "payment";
|
|
20
|
+
})(QBEntityType || (exports.QBEntityType = QBEntityType = {}));
|
|
21
|
+
var QBSyncAction;
|
|
22
|
+
(function (QBSyncAction) {
|
|
23
|
+
QBSyncAction["CREATE"] = "create";
|
|
24
|
+
QBSyncAction["UPDATE"] = "update";
|
|
25
|
+
QBSyncAction["DELETE"] = "delete";
|
|
26
|
+
})(QBSyncAction || (exports.QBSyncAction = QBSyncAction = {}));
|
|
27
|
+
var QBSyncDirection;
|
|
28
|
+
(function (QBSyncDirection) {
|
|
29
|
+
QBSyncDirection["TO_QB"] = "to_qb";
|
|
30
|
+
QBSyncDirection["FROM_QB"] = "from_qb";
|
|
31
|
+
})(QBSyncDirection || (exports.QBSyncDirection = QBSyncDirection = {}));
|
|
32
|
+
var QBSyncStatus;
|
|
33
|
+
(function (QBSyncStatus) {
|
|
34
|
+
QBSyncStatus["PENDING"] = "pending";
|
|
35
|
+
QBSyncStatus["SUCCESS"] = "success";
|
|
36
|
+
QBSyncStatus["FAILED"] = "failed";
|
|
37
|
+
})(QBSyncStatus || (exports.QBSyncStatus = QBSyncStatus = {}));
|
|
38
|
+
let QuickBooksSyncLog = class QuickBooksSyncLog extends base_entity_1.BaseEntity {
|
|
39
|
+
entityType;
|
|
40
|
+
entityId;
|
|
41
|
+
action;
|
|
42
|
+
direction;
|
|
43
|
+
status;
|
|
44
|
+
errorMessage;
|
|
45
|
+
retryCount;
|
|
46
|
+
quickbooksId;
|
|
47
|
+
syncedAt;
|
|
48
|
+
requestPayload;
|
|
49
|
+
responsePayload;
|
|
50
|
+
};
|
|
51
|
+
exports.QuickBooksSyncLog = QuickBooksSyncLog;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: 'enum',
|
|
55
|
+
enum: QBEntityType,
|
|
56
|
+
name: 'entity_type',
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], QuickBooksSyncLog.prototype, "entityType", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'entity_id' }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], QuickBooksSyncLog.prototype, "entityId", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({
|
|
66
|
+
type: 'enum',
|
|
67
|
+
enum: QBSyncAction,
|
|
68
|
+
name: 'action',
|
|
69
|
+
}),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], QuickBooksSyncLog.prototype, "action", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({
|
|
74
|
+
type: 'enum',
|
|
75
|
+
enum: QBSyncDirection,
|
|
76
|
+
name: 'direction',
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], QuickBooksSyncLog.prototype, "direction", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({
|
|
82
|
+
type: 'enum',
|
|
83
|
+
enum: QBSyncStatus,
|
|
84
|
+
name: 'status',
|
|
85
|
+
default: QBSyncStatus.PENDING,
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], QuickBooksSyncLog.prototype, "status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'text', name: 'error_message', nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], QuickBooksSyncLog.prototype, "errorMessage", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'retry_count', default: 0 }),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], QuickBooksSyncLog.prototype, "retryCount", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, name: 'quickbooks_id', nullable: true }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], QuickBooksSyncLog.prototype, "quickbooksId", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'synced_at', nullable: true }),
|
|
103
|
+
__metadata("design:type", Date)
|
|
104
|
+
], QuickBooksSyncLog.prototype, "syncedAt", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'request_payload', nullable: true }),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], QuickBooksSyncLog.prototype, "requestPayload", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'response_payload', nullable: true }),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], QuickBooksSyncLog.prototype, "responsePayload", void 0);
|
|
113
|
+
exports.QuickBooksSyncLog = QuickBooksSyncLog = __decorate([
|
|
114
|
+
(0, typeorm_1.Entity)({ name: 'quickbooks_sync_logs', schema: 'core' })
|
|
115
|
+
], QuickBooksSyncLog);
|
|
116
|
+
//# sourceMappingURL=quickbooks-sync-log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quickbooks-sync-log.entity.js","sourceRoot":"","sources":["../../../src/database/entities/quickbooks-sync-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA2C;AAE3C,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAM/C,UAAU,CAAe;IAGzB,QAAQ,CAAS;IAOjB,MAAM,CAAe;IAOrB,SAAS,CAAkB;IAQ3B,MAAM,CAAe;IAGrB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,YAAY,CAAS;IAGrB,QAAQ,CAAO;IAGf,cAAc,CAAM;IAGpB,eAAe,CAAM;CACtB,CAAA;AAlDY,8CAAiB;AAM5B;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,aAAa;KACpB,CAAC;;qDACuB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;mDAC1B;AAOjB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;KACf,CAAC;;iDACmB;AAOrB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,WAAW;KAClB,CAAC;;oDACyB;AAQ3B;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,YAAY,CAAC,OAAO;KAC9B,CAAC;;iDACmB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC3C;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACtC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC3D;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvD,IAAI;mDAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC/C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC/C;4BAjDV,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC5C,iBAAiB,CAkD7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Permission } from './permission.entity';
|
|
2
|
+
import { Role } from './role.entity';
|
|
3
|
+
import { BaseEntity } from './base.entity';
|
|
4
|
+
export declare class RolePermission extends BaseEntity {
|
|
5
|
+
permission_id: number;
|
|
6
|
+
role_id: number;
|
|
7
|
+
permission: Permission;
|
|
8
|
+
role: Role;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=role-permission.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-permission.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/role-permission.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAOjD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,cAAe,SAAQ,UAAU;IAE5C,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,MAAM,CAAC;IAMhB,UAAU,EAAE,UAAU,CAAC;IAMvB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.RolePermission = void 0;
|
|
13
|
+
const permission_entity_1 = require("./permission.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const role_entity_1 = require("./role.entity");
|
|
16
|
+
const base_entity_1 = require("./base.entity");
|
|
17
|
+
let RolePermission = class RolePermission extends base_entity_1.BaseEntity {
|
|
18
|
+
permission_id;
|
|
19
|
+
role_id;
|
|
20
|
+
permission;
|
|
21
|
+
role;
|
|
22
|
+
};
|
|
23
|
+
exports.RolePermission = RolePermission;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RolePermission.prototype, "permission_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], RolePermission.prototype, "role_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.ManyToOne)(() => permission_entity_1.Permission, (permission) => permission.role_permissions, {
|
|
34
|
+
onDelete: 'CASCADE',
|
|
35
|
+
}),
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: 'permission_id' }),
|
|
37
|
+
__metadata("design:type", permission_entity_1.Permission)
|
|
38
|
+
], RolePermission.prototype, "permission", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => role_entity_1.Role, (role) => role.role_permissions, {
|
|
41
|
+
onDelete: 'CASCADE',
|
|
42
|
+
}),
|
|
43
|
+
(0, typeorm_1.JoinColumn)({ name: 'role_id' }),
|
|
44
|
+
__metadata("design:type", role_entity_1.Role)
|
|
45
|
+
], RolePermission.prototype, "role", void 0);
|
|
46
|
+
exports.RolePermission = RolePermission = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'role_permissions', schema: 'user' })
|
|
48
|
+
], RolePermission);
|
|
49
|
+
//# sourceMappingURL=role-permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-permission.entity.js","sourceRoot":"","sources":["../../../src/database/entities/role-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAiD;AACjD,qCAKiB;AACjB,+CAAqC;AACrC,+CAA2C;AAGpC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,wBAAU;IAE5C,aAAa,CAAS;IAGtB,OAAO,CAAS;IAMhB,UAAU,CAAa;IAMvB,IAAI,CAAO;CACZ,CAAA;AAlBY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDACF;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;+CACR;AAMhB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,gBAAgB,EAAE;QACxE,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC1B,8BAAU;kDAAC;AAMvB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE;QACtD,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;4CAAC;yBAjBA,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GACxC,cAAc,CAkB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-shift.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/role-shift.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,qBACa,SAAU,SAAQ,UAAU;IAOvC,OAAO,EAAE,MAAM,CAAC;IAQhB,QAAQ,EAAE,MAAM,CAAC;IAoBjB,KAAK,EAAE,KAAK,CAAC;CAEd"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.RoleShift = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
const shift_entity_1 = require("./shift.entity");
|
|
16
|
+
let RoleShift = class RoleShift extends base_entity_1.BaseEntity {
|
|
17
|
+
role_id;
|
|
18
|
+
shift_id;
|
|
19
|
+
shift;
|
|
20
|
+
};
|
|
21
|
+
exports.RoleShift = RoleShift;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({
|
|
24
|
+
name: 'role_id',
|
|
25
|
+
type: 'integer',
|
|
26
|
+
nullable: true,
|
|
27
|
+
comment: 'Role id',
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], RoleShift.prototype, "role_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({
|
|
33
|
+
name: 'shift_id',
|
|
34
|
+
type: 'integer',
|
|
35
|
+
nullable: true,
|
|
36
|
+
comment: 'Shift id',
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], RoleShift.prototype, "shift_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ManyToOne)(() => shift_entity_1.Shift),
|
|
42
|
+
(0, typeorm_1.JoinColumn)({ name: 'shift_id' }),
|
|
43
|
+
__metadata("design:type", shift_entity_1.Shift)
|
|
44
|
+
], RoleShift.prototype, "shift", void 0);
|
|
45
|
+
exports.RoleShift = RoleShift = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)({ name: 'role_shifts', schema: 'timesheet' })
|
|
47
|
+
], RoleShift);
|
|
48
|
+
//# sourceMappingURL=role-shift.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-shift.entity.js","sourceRoot":"","sources":["../../../src/database/entities/role-shift.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,+CAA2C;AAC3C,iDAAuC;AAGhC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAU;IAOvC,OAAO,CAAS;IAQhB,QAAQ,CAAS;IAoBjB,KAAK,CAAQ;CAEd,CAAA;AArCY,8BAAS;AAOpB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,SAAS;KACnB,CAAC;;0CACc;AAQhB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,UAAU;KACpB,CAAC;;2CACe;AAoBjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACtB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,oBAAK;wCAAC;oBAnCF,SAAS;IADrB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;GACxC,SAAS,CAqCrB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { RolePermission } from './role-permission.entity';
|
|
3
|
+
import { UserRole } from './user-role.entity';
|
|
4
|
+
export declare class Role extends BaseEntity {
|
|
5
|
+
roleName: string;
|
|
6
|
+
roleSlug: string;
|
|
7
|
+
isMainRoleSlug: boolean;
|
|
8
|
+
roleDescription: string;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
role_permissions: RolePermission[];
|
|
11
|
+
user_roles: UserRole[];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=role.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/role.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,qBACa,IAAK,SAAQ,UAAU;IAElC,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,cAAc,EAAE,OAAO,CAAC;IAGxB,eAAe,EAAE,MAAM,CAAC;IAGxB,QAAQ,EAAE,OAAO,CAAC;IAGlB,gBAAgB,EAAE,cAAc,EAAE,CAAC;IAGnC,UAAU,EAAE,QAAQ,EAAE,CAAC;CAIxB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.Role = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
const role_permission_entity_1 = require("./role-permission.entity");
|
|
16
|
+
const user_role_entity_1 = require("./user-role.entity");
|
|
17
|
+
let Role = class Role extends base_entity_1.BaseEntity {
|
|
18
|
+
roleName;
|
|
19
|
+
roleSlug;
|
|
20
|
+
isMainRoleSlug;
|
|
21
|
+
roleDescription;
|
|
22
|
+
isActive;
|
|
23
|
+
role_permissions;
|
|
24
|
+
user_roles;
|
|
25
|
+
};
|
|
26
|
+
exports.Role = Role;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'role_name', unique: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Role.prototype, "roleName", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'role_slug', unique: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Role.prototype, "roleSlug", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'is_main_role_slug', default: false, type: 'boolean' }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], Role.prototype, "isMainRoleSlug", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'role_description', nullable: true, type: 'text' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Role.prototype, "roleDescription", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'is_active', default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], Role.prototype, "isActive", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.OneToMany)(() => role_permission_entity_1.RolePermission, (rolePermission) => rolePermission.role),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], Role.prototype, "role_permissions", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.OneToMany)(() => user_role_entity_1.UserRole, (userRole) => userRole.role),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], Role.prototype, "user_roles", void 0);
|
|
55
|
+
exports.Role = Role = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)({ name: 'roles', schema: 'user' })
|
|
57
|
+
], Role);
|
|
58
|
+
//# sourceMappingURL=role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../src/database/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmD;AACnD,+CAA2C;AAC3C,qEAA0D;AAC1D,yDAA2C;AAEpC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAElC,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,cAAc,CAAU;IAGxB,eAAe,CAAS;IAGxB,QAAQ,CAAU;IAGlB,gBAAgB,CAAmB;IAGnC,UAAU,CAAa;CAIxB,CAAA;AAxBY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCAC3B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;sCAC5B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CAC9C;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAC3C;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sCAC3B;AAGlB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC;;8CACtC;AAGnC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;;wCAChC;eApBZ,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC7B,IAAI,CAwBhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequence-generator.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/sequence-generator.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAEa,iBAAkB,SAAQ,UAAU;IAQ/C,MAAM,EAAE,MAAM,CAAC;IASf,MAAM,EAAE,MAAM,CAAC;IAQf,YAAY,EAAE,MAAM,CAAC;IAQrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.SequenceGenerator = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
let SequenceGenerator = class SequenceGenerator extends base_entity_1.BaseEntity {
|
|
16
|
+
module;
|
|
17
|
+
prefix;
|
|
18
|
+
lastSequence;
|
|
19
|
+
year;
|
|
20
|
+
};
|
|
21
|
+
exports.SequenceGenerator = SequenceGenerator;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({
|
|
24
|
+
name: 'module',
|
|
25
|
+
type: 'varchar',
|
|
26
|
+
length: 50,
|
|
27
|
+
nullable: false,
|
|
28
|
+
comment: 'Module name (e.g., PROFILE, USER, etc.)'
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SequenceGenerator.prototype, "module", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({
|
|
34
|
+
name: 'prefix',
|
|
35
|
+
type: 'varchar',
|
|
36
|
+
length: 10,
|
|
37
|
+
nullable: false,
|
|
38
|
+
comment: 'Prefix for the sequence (e.g., PROF)'
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], SequenceGenerator.prototype, "prefix", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({
|
|
44
|
+
name: 'last_sequence',
|
|
45
|
+
type: 'int',
|
|
46
|
+
nullable: false,
|
|
47
|
+
comment: 'Last used sequence number'
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], SequenceGenerator.prototype, "lastSequence", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({
|
|
53
|
+
name: 'year',
|
|
54
|
+
type: 'int',
|
|
55
|
+
nullable: true,
|
|
56
|
+
comment: 'Year for which sequence is being generated (null for non-reset modules)'
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], SequenceGenerator.prototype, "year", void 0);
|
|
60
|
+
exports.SequenceGenerator = SequenceGenerator = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'sequence_generator', schema: 'core' }),
|
|
62
|
+
(0, typeorm_1.Unique)(['module', 'prefix', 'year'])
|
|
63
|
+
], SequenceGenerator);
|
|
64
|
+
//# sourceMappingURL=sequence-generator.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequence-generator.entity.js","sourceRoot":"","sources":["../../../src/database/entities/sequence-generator.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiD;AACjD,+CAA2C;AAIpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAQ/C,MAAM,CAAS;IASf,MAAM,CAAS;IAQf,YAAY,CAAS;IAQrB,IAAI,CAAgB;CACrB,CAAA;AAlCY,8CAAiB;AAQ5B;IAPC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,yCAAyC;KACnD,CAAC;;iDACa;AASf;IAPC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,sCAAsC;KAChD,CAAC;;iDACa;AAQf;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,2BAA2B;KACrC,CAAC;;uDACmB;AAQrB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,yEAAyE;KACnF,CAAC;;+CACkB;4BAjCT,iBAAiB;IAF7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;IACrD,IAAA,gBAAM,EAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;GACxB,iBAAiB,CAkC7B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { User } from './user.entity';
|
|
3
|
+
import { UserShift } from './user-shift.entity';
|
|
4
|
+
import { RoleShift } from './role-shift.entity';
|
|
5
|
+
export declare class Shift extends BaseEntity {
|
|
6
|
+
shift_name: string;
|
|
7
|
+
shift_start_time: string;
|
|
8
|
+
shift_end_time: string;
|
|
9
|
+
break: number;
|
|
10
|
+
grace: number;
|
|
11
|
+
is_active: boolean;
|
|
12
|
+
created_By: User;
|
|
13
|
+
user_current_shifts: UserShift[];
|
|
14
|
+
user_alternate_shifts: UserShift[];
|
|
15
|
+
user_planned_shifts: UserShift[];
|
|
16
|
+
role_shifts: RoleShift[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=shift.entity.d.ts.map
|