@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,31 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 101,
|
|
4
|
+
"name": "India",
|
|
5
|
+
"iso3": "IND",
|
|
6
|
+
"iso2": "IN",
|
|
7
|
+
"numeric_code": "356",
|
|
8
|
+
"phonecode": "91",
|
|
9
|
+
"capital": "New Delhi",
|
|
10
|
+
"currency": "INR",
|
|
11
|
+
"currency_name": "Indian rupee",
|
|
12
|
+
"currency_symbol": "₹",
|
|
13
|
+
"tld": ".in",
|
|
14
|
+
"native": "भारत",
|
|
15
|
+
"region": "Asia",
|
|
16
|
+
"nationality": "Indian",
|
|
17
|
+
"timezones": [
|
|
18
|
+
{
|
|
19
|
+
"zoneName": "Asia/Kolkata",
|
|
20
|
+
"gmtOffset": 19800,
|
|
21
|
+
"gmtOffsetName": "UTC+05:30",
|
|
22
|
+
"abbreviation": "IST",
|
|
23
|
+
"tzName": "Indian Standard Time"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"latitude": "20.00000000",
|
|
27
|
+
"longitude": "77.00000000",
|
|
28
|
+
"emoji": "🇮🇳",
|
|
29
|
+
"emojiU": "U+1F1EE U+1F1F3"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
export declare class ActivityLog extends BaseEntity {
|
|
3
|
+
userId: number;
|
|
4
|
+
resourceType: string;
|
|
5
|
+
resourceId: number;
|
|
6
|
+
action: string;
|
|
7
|
+
description: string;
|
|
8
|
+
beforeData: Record<string, any>;
|
|
9
|
+
afterData: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=activity-logs.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-logs.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/activity-logs.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMzC,qBACa,WAAY,SAAQ,UAAU;IAEzC,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGhC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAEhC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.ActivityLog = void 0;
|
|
13
|
+
const base_entity_1 = require("./base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let ActivityLog = class ActivityLog extends base_entity_1.BaseEntity {
|
|
16
|
+
userId;
|
|
17
|
+
resourceType;
|
|
18
|
+
resourceId;
|
|
19
|
+
action;
|
|
20
|
+
description;
|
|
21
|
+
beforeData;
|
|
22
|
+
afterData;
|
|
23
|
+
};
|
|
24
|
+
exports.ActivityLog = ActivityLog;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'user_id', nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ActivityLog.prototype, "userId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'resource_type', nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ActivityLog.prototype, "resourceType", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'resource_id', nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ActivityLog.prototype, "resourceId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'action', nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ActivityLog.prototype, "action", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'description', nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ActivityLog.prototype, "description", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'before_data', type: 'json', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ActivityLog.prototype, "beforeData", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ name: 'after_data', type: 'json', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], ActivityLog.prototype, "afterData", void 0);
|
|
53
|
+
exports.ActivityLog = ActivityLog = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)({ name: 'activity_logs', schema: 'core' })
|
|
55
|
+
], ActivityLog);
|
|
56
|
+
//# sourceMappingURL=activity-logs.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-logs.entity.js","sourceRoot":"","sources":["../../../src/database/entities/activity-logs.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA2C;AAC3C,qCAGmB;AAGV,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAEzC,MAAM,CAAS;IAGf,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,UAAU,CAAsB;IAGhC,SAAS,CAAsB;CAEhC,CAAA;AAtBY,kCAAW;AAEtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;2CAC7B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;iDAC7B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CAC7B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;2CAC5B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;gDAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAG,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC/B;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAG,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC/B;sBApBpB,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GACrC,WAAW,CAsBvB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { Client } from './client.entity';
|
|
3
|
+
export declare class Address extends BaseEntity {
|
|
4
|
+
clientId: number;
|
|
5
|
+
address: string;
|
|
6
|
+
billingContactPerson: string;
|
|
7
|
+
invoiceFrequency: string;
|
|
8
|
+
invoiceDayOfWeek: number;
|
|
9
|
+
attachment: string;
|
|
10
|
+
notes: string;
|
|
11
|
+
client: Client;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=address.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/address.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBACa,OAAQ,SAAQ,UAAU;IAErC,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,MAAM,CAAC;IAGhB,oBAAoB,EAAE,MAAM,CAAC;IAG7B,gBAAgB,EAAE,MAAM,CAAC;IAGzB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAId,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.Address = 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
|
+
let Address = class Address extends base_entity_1.BaseEntity {
|
|
17
|
+
clientId;
|
|
18
|
+
address;
|
|
19
|
+
billingContactPerson;
|
|
20
|
+
invoiceFrequency;
|
|
21
|
+
invoiceDayOfWeek;
|
|
22
|
+
attachment;
|
|
23
|
+
notes;
|
|
24
|
+
client;
|
|
25
|
+
};
|
|
26
|
+
exports.Address = Address;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], Address.prototype, "clientId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Address.prototype, "address", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ length: 100, nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Address.prototype, "billingContactPerson", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Address.prototype, "invoiceFrequency", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], Address.prototype, "invoiceDayOfWeek", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Address.prototype, "attachment", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Address.prototype, "notes", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.OneToOne)(() => client_entity_1.Client, client => client.address),
|
|
57
|
+
(0, typeorm_1.JoinColumn)({ name: 'clientId' }),
|
|
58
|
+
__metadata("design:type", client_entity_1.Client)
|
|
59
|
+
], Address.prototype, "client", void 0);
|
|
60
|
+
exports.Address = Address = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'addresses', schema: 'core' })
|
|
62
|
+
], Address);
|
|
63
|
+
//# sourceMappingURL=address.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.entity.js","sourceRoot":"","sources":["../../../src/database/entities/address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAA2C;AAC3C,mDAAyC;AAGlC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAErC,QAAQ,CAAS;IAGjB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= "other"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AlertStatus {
|
|
8
|
+
UNREAD = "unread",
|
|
9
|
+
READ = "read",
|
|
10
|
+
ARCHIVED = "archived",
|
|
11
|
+
DELETED = "deleted"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AlertPriority {
|
|
14
|
+
CRITICAL = "critical",
|
|
15
|
+
HIGH = "high",
|
|
16
|
+
NORMAL = "normal",
|
|
17
|
+
LOW = "low",
|
|
18
|
+
BULK = "bulk"
|
|
19
|
+
}
|
|
20
|
+
export declare class Alert extends BaseEntity {
|
|
21
|
+
title: string;
|
|
22
|
+
message?: string;
|
|
23
|
+
type: AlertType;
|
|
24
|
+
priority: AlertPriority;
|
|
25
|
+
status: AlertStatus;
|
|
26
|
+
userId: number;
|
|
27
|
+
readAt: Date | null;
|
|
28
|
+
expiresAt?: Date;
|
|
29
|
+
metadata: Record<string, any> | null;
|
|
30
|
+
actionData: Record<string, any> | null;
|
|
31
|
+
relatedEntityId: string | null;
|
|
32
|
+
relatedEntityType: string | null;
|
|
33
|
+
markAsRead(): void;
|
|
34
|
+
markAsUnread(): void;
|
|
35
|
+
archive(): void;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=alert.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/alert.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,aAAa;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAMD,qBACa,KAAM,SAAQ,UAAU;IAOnC,KAAK,EAAE,MAAM,CAAC;IAOd,OAAO,CAAC,EAAE,MAAM,CAAC;IAQjB,IAAI,EAAE,SAAS,CAAC;IAQhB,QAAQ,EAAE,aAAa,CAAC;IAQxB,MAAM,EAAE,WAAW,CAAC;IAQpB,MAAM,EAAE,MAAM,CAAC;IAQf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAOpB,SAAS,CAAC,EAAE,IAAI,CAAC;IAOjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAOrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAUvC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAS/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,UAAU,IAAI,IAAI;IAKlB,YAAY,IAAI,IAAI;IAKpB,OAAO,IAAI,IAAI;CAGhB"}
|
|
@@ -0,0 +1,171 @@
|
|
|
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.Alert = exports.AlertPriority = exports.AlertStatus = exports.AlertType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
var AlertType;
|
|
16
|
+
(function (AlertType) {
|
|
17
|
+
AlertType["MATTER"] = "matter";
|
|
18
|
+
AlertType["INVOICE"] = "invoice";
|
|
19
|
+
AlertType["OTHER"] = "other";
|
|
20
|
+
})(AlertType || (exports.AlertType = AlertType = {}));
|
|
21
|
+
var AlertStatus;
|
|
22
|
+
(function (AlertStatus) {
|
|
23
|
+
AlertStatus["UNREAD"] = "unread";
|
|
24
|
+
AlertStatus["READ"] = "read";
|
|
25
|
+
AlertStatus["ARCHIVED"] = "archived";
|
|
26
|
+
AlertStatus["DELETED"] = "deleted";
|
|
27
|
+
})(AlertStatus || (exports.AlertStatus = AlertStatus = {}));
|
|
28
|
+
var AlertPriority;
|
|
29
|
+
(function (AlertPriority) {
|
|
30
|
+
AlertPriority["CRITICAL"] = "critical";
|
|
31
|
+
AlertPriority["HIGH"] = "high";
|
|
32
|
+
AlertPriority["NORMAL"] = "normal";
|
|
33
|
+
AlertPriority["LOW"] = "low";
|
|
34
|
+
AlertPriority["BULK"] = "bulk";
|
|
35
|
+
})(AlertPriority || (exports.AlertPriority = AlertPriority = {}));
|
|
36
|
+
let Alert = class Alert extends base_entity_1.BaseEntity {
|
|
37
|
+
title;
|
|
38
|
+
message;
|
|
39
|
+
type;
|
|
40
|
+
priority;
|
|
41
|
+
status;
|
|
42
|
+
userId;
|
|
43
|
+
readAt;
|
|
44
|
+
expiresAt;
|
|
45
|
+
metadata;
|
|
46
|
+
actionData;
|
|
47
|
+
relatedEntityId;
|
|
48
|
+
relatedEntityType;
|
|
49
|
+
markAsRead() {
|
|
50
|
+
this.status = AlertStatus.READ;
|
|
51
|
+
this.readAt = new Date();
|
|
52
|
+
}
|
|
53
|
+
markAsUnread() {
|
|
54
|
+
this.status = AlertStatus.UNREAD;
|
|
55
|
+
this.readAt = null;
|
|
56
|
+
}
|
|
57
|
+
archive() {
|
|
58
|
+
this.status = AlertStatus.ARCHIVED;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
exports.Alert = Alert;
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'varchar',
|
|
65
|
+
length: 255,
|
|
66
|
+
nullable: false,
|
|
67
|
+
comment: 'Title of the alert entry',
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], Alert.prototype, "title", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: 'text',
|
|
74
|
+
nullable: false,
|
|
75
|
+
comment: 'Message of the alert entry',
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Alert.prototype, "message", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({
|
|
81
|
+
type: 'enum',
|
|
82
|
+
enum: AlertType,
|
|
83
|
+
default: AlertType.OTHER,
|
|
84
|
+
comment: 'Type of the alert entry',
|
|
85
|
+
}),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Alert.prototype, "type", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({
|
|
90
|
+
type: 'enum',
|
|
91
|
+
enum: AlertPriority,
|
|
92
|
+
default: AlertPriority.NORMAL,
|
|
93
|
+
comment: 'Priority of the alert entry',
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], Alert.prototype, "priority", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({
|
|
99
|
+
type: 'enum',
|
|
100
|
+
enum: AlertStatus,
|
|
101
|
+
default: AlertStatus.UNREAD,
|
|
102
|
+
comment: 'Status of the alert entry',
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], Alert.prototype, "status", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({
|
|
108
|
+
name: 'user_id',
|
|
109
|
+
type: 'integer',
|
|
110
|
+
nullable: false,
|
|
111
|
+
comment: 'ID of the user associated with the alert entry',
|
|
112
|
+
}),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], Alert.prototype, "userId", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({
|
|
117
|
+
name: 'read_at',
|
|
118
|
+
type: 'timestamp',
|
|
119
|
+
nullable: true,
|
|
120
|
+
comment: 'Read at of the alert entry',
|
|
121
|
+
}),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], Alert.prototype, "readAt", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({
|
|
126
|
+
type: 'timestamp',
|
|
127
|
+
nullable: true,
|
|
128
|
+
comment: 'Expires at of the alert entry',
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", Date)
|
|
131
|
+
], Alert.prototype, "expiresAt", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({
|
|
134
|
+
type: 'json',
|
|
135
|
+
nullable: true,
|
|
136
|
+
comment: 'Metadata of the alert entry',
|
|
137
|
+
}),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], Alert.prototype, "metadata", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({
|
|
142
|
+
type: 'json',
|
|
143
|
+
nullable: true,
|
|
144
|
+
comment: 'Action data of the alert entry',
|
|
145
|
+
}),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], Alert.prototype, "actionData", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({
|
|
150
|
+
name: 'related_entity_id',
|
|
151
|
+
type: 'varchar',
|
|
152
|
+
length: 100,
|
|
153
|
+
nullable: true,
|
|
154
|
+
comment: 'ID of related business entity (matter, invoice, etc.)',
|
|
155
|
+
}),
|
|
156
|
+
__metadata("design:type", Object)
|
|
157
|
+
], Alert.prototype, "relatedEntityId", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({
|
|
160
|
+
name: 'related_entity_type',
|
|
161
|
+
type: 'varchar',
|
|
162
|
+
length: 50,
|
|
163
|
+
nullable: true,
|
|
164
|
+
comment: 'Type of related business entity',
|
|
165
|
+
}),
|
|
166
|
+
__metadata("design:type", Object)
|
|
167
|
+
], Alert.prototype, "relatedEntityType", void 0);
|
|
168
|
+
exports.Alert = Alert = __decorate([
|
|
169
|
+
(0, typeorm_1.Entity)({ name: 'alerts', schema: 'notification' })
|
|
170
|
+
], Alert);
|
|
171
|
+
//# sourceMappingURL=alert.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.entity.js","sourceRoot":"","sources":["../../../src/database/entities/alert.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,+CAA2C;AAE3C,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAOM,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAOnC,KAAK,CAAS;IAOd,OAAO,CAAU;IAQjB,IAAI,CAAY;IAQhB,QAAQ,CAAgB;IAQxB,M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provalHierarchy } from './approval-hierarchy.entity';
|
|
2
|
+
import { ApprovalLevel } from './approval-level.entity';
|
|
3
|
+
import { BaseEntity } from './base.entity';
|
|
4
|
+
export declare enum ConditionTypeEnum {
|
|
5
|
+
Price = "Price",
|
|
6
|
+
Escalation = "Escalation"
|
|
7
|
+
}
|
|
8
|
+
export declare class ApprovalCondition extends BaseEntity {
|
|
9
|
+
approval_hierarchy_id: number;
|
|
10
|
+
approval_hierarchy: ApprovalHierarchy;
|
|
11
|
+
conditions: ConditionTypeEnum;
|
|
12
|
+
price_from: number;
|
|
13
|
+
price_to: number;
|
|
14
|
+
approval_level: ApprovalLevel[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=approval-condition.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-condition.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/approval-condition.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B;AAED,qBACa,iBAAkB,SAAQ,UAAU;IAE/C,qBAAqB,EAAE,MAAM,CAAC;IAU9B,kBAAkB,EAAE,iBAAiB,CAAC;IAQtC,UAAU,EAAE,iBAAiB,CAAC;IAG9B,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IAGjB,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.ApprovalCondition = exports.ConditionTypeEnum = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const approval_hierarchy_entity_1 = require("./approval-hierarchy.entity");
|
|
15
|
+
const approval_level_entity_1 = require("./approval-level.entity");
|
|
16
|
+
const base_entity_1 = require("./base.entity");
|
|
17
|
+
var ConditionTypeEnum;
|
|
18
|
+
(function (ConditionTypeEnum) {
|
|
19
|
+
ConditionTypeEnum["Price"] = "Price";
|
|
20
|
+
ConditionTypeEnum["Escalation"] = "Escalation";
|
|
21
|
+
})(ConditionTypeEnum || (exports.ConditionTypeEnum = ConditionTypeEnum = {}));
|
|
22
|
+
let ApprovalCondition = class ApprovalCondition extends base_entity_1.BaseEntity {
|
|
23
|
+
approval_hierarchy_id;
|
|
24
|
+
approval_hierarchy;
|
|
25
|
+
conditions;
|
|
26
|
+
price_from;
|
|
27
|
+
price_to;
|
|
28
|
+
approval_level;
|
|
29
|
+
};
|
|
30
|
+
exports.ApprovalCondition = ApprovalCondition;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'approval_hierarchy_id', nullable: true }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], ApprovalCondition.prototype, "approval_hierarchy_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => approval_hierarchy_entity_1.ApprovalHierarchy, (hierarchy) => hierarchy.approval_condition, {
|
|
37
|
+
onDelete: 'CASCADE',
|
|
38
|
+
}),
|
|
39
|
+
(0, typeorm_1.JoinColumn)({ name: 'approval_hierarchy_id' }),
|
|
40
|
+
__metadata("design:type", approval_hierarchy_entity_1.ApprovalHierarchy)
|
|
41
|
+
], ApprovalCondition.prototype, "approval_hierarchy", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({
|
|
44
|
+
name: 'conditions',
|
|
45
|
+
nullable: true,
|
|
46
|
+
type: 'enum',
|
|
47
|
+
enum: ConditionTypeEnum,
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ApprovalCondition.prototype, "conditions", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ name: 'price_from', nullable: true, type: 'float' }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], ApprovalCondition.prototype, "price_from", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'price_to', nullable: true, type: 'float' }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], ApprovalCondition.prototype, "price_to", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.OneToMany)(() => approval_level_entity_1.ApprovalLevel, (level) => level.approval_condition),
|
|
61
|
+
__metadata("design:type", Array)
|
|
62
|
+
], ApprovalCondition.prototype, "approval_level", void 0);
|
|
63
|
+
exports.ApprovalCondition = ApprovalCondition = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'approval_conditions', schema: 'user' })
|
|
65
|
+
], ApprovalCondition);
|
|
66
|
+
//# sourceMappingURL=approval-condition.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-condition.entity.js","sourceRoot":"","sources":["../../../src/database/entities/approval-condition.entity.ts"],"names":[],"mappings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,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC;;yDACpC;4BA7BrB,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC3C,iBAAiB,CA8B7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApprovalHierarchy } from './approval-hierarchy.entity';
|
|
2
|
+
import { Role } from './role.entity';
|
|
3
|
+
import { BaseEntity } from './base.entity';
|
|
4
|
+
export declare class ApprovalHierarchyRole extends BaseEntity {
|
|
5
|
+
approval_hierarchy_id: number;
|
|
6
|
+
approval_hierarchy: ApprovalHierarchy;
|
|
7
|
+
role_id: number;
|
|
8
|
+
role: Role;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=approval-hierarchy-role.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-hierarchy-role.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/approval-hierarchy-role.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,qBAAqB,EAAE,MAAM,CAAC;IAM9B,kBAAkB,EAAE,iBAAiB,CAAC;IAGtC,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ApprovalHierarchyRole = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const approval_hierarchy_entity_1 = require("./approval-hierarchy.entity");
|
|
15
|
+
const role_entity_1 = require("./role.entity");
|
|
16
|
+
const base_entity_1 = require("./base.entity");
|
|
17
|
+
let ApprovalHierarchyRole = class ApprovalHierarchyRole extends base_entity_1.BaseEntity {
|
|
18
|
+
approval_hierarchy_id;
|
|
19
|
+
approval_hierarchy;
|
|
20
|
+
role_id;
|
|
21
|
+
role;
|
|
22
|
+
};
|
|
23
|
+
exports.ApprovalHierarchyRole = ApprovalHierarchyRole;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ name: 'approval_hierarchy_id' }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ApprovalHierarchyRole.prototype, "approval_hierarchy_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.ManyToOne)(() => approval_hierarchy_entity_1.ApprovalHierarchy, (hierarchy) => hierarchy.initiator_roles, {
|
|
30
|
+
onDelete: 'CASCADE',
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: 'approval_hierarchy_id' }),
|
|
33
|
+
__metadata("design:type", approval_hierarchy_entity_1.ApprovalHierarchy)
|
|
34
|
+
], ApprovalHierarchyRole.prototype, "approval_hierarchy", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'role_id' }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], ApprovalHierarchyRole.prototype, "role_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => role_entity_1.Role, { onDelete: 'CASCADE' }),
|
|
41
|
+
(0, typeorm_1.JoinColumn)({ name: 'role_id' }),
|
|
42
|
+
__metadata("design:type", role_entity_1.Role)
|
|
43
|
+
], ApprovalHierarchyRole.prototype, "role", void 0);
|
|
44
|
+
exports.ApprovalHierarchyRole = ApprovalHierarchyRole = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ name: 'approval_hierarchy_roles', schema: 'user' })
|
|
46
|
+
], ApprovalHierarchyRole);
|
|
47
|
+
//# sourceMappingURL=approval-hierarchy-role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-hierarchy-role.entity.js","sourceRoot":"","sources":["../../../src/database/entities/approval-hierarchy-role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAgE;AAChE,2EAAgE;AAChE,+CAAqC;AACrC,+CAA2C;AAGpC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;IAEnD,qBAAqB,CAAS;IAM9B,kBAAkB,CAAoB;IAGtC,OAAO,CAAS;IAIhB,IAAI,CAAO;CACZ,CAAA;AAhBY,sDAAqB;AAEhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;;oEACZ;AAM9B;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,EAAE;QAC5E,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;8BAC1B,6CAAiB;iEAAC;AAGtC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACZ;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;mDAAC;gCAfA,qBAAqB;IADjC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAChD,qBAAqB,CAgBjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApprovalHierarchy } from './approval-hierarchy.entity';
|
|
2
|
+
import { User } from './user.entity';
|
|
3
|
+
import { BaseEntity } from './base.entity';
|
|
4
|
+
export declare class ApprovalHierarchyUser extends BaseEntity {
|
|
5
|
+
approval_hierarchy_id: number;
|
|
6
|
+
approval_hierarchy: ApprovalHierarchy;
|
|
7
|
+
user_id: number;
|
|
8
|
+
user: User;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=approval-hierarchy-user.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-hierarchy-user.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/approval-hierarchy-user.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,qBAAqB,EAAE,MAAM,CAAC;IAM9B,kBAAkB,EAAE,iBAAiB,CAAC;IAGtC,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ApprovalHierarchyUser = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const approval_hierarchy_entity_1 = require("./approval-hierarchy.entity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
const base_entity_1 = require("./base.entity");
|
|
17
|
+
let ApprovalHierarchyUser = class ApprovalHierarchyUser extends base_entity_1.BaseEntity {
|
|
18
|
+
approval_hierarchy_id;
|
|
19
|
+
approval_hierarchy;
|
|
20
|
+
user_id;
|
|
21
|
+
user;
|
|
22
|
+
};
|
|
23
|
+
exports.ApprovalHierarchyUser = ApprovalHierarchyUser;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ name: 'approval_hierarchy_id' }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ApprovalHierarchyUser.prototype, "approval_hierarchy_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.ManyToOne)(() => approval_hierarchy_entity_1.ApprovalHierarchy, (hierarchy) => hierarchy.initiator_users, {
|
|
30
|
+
onDelete: 'CASCADE',
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: 'approval_hierarchy_id' }),
|
|
33
|
+
__metadata("design:type", approval_hierarchy_entity_1.ApprovalHierarchy)
|
|
34
|
+
], ApprovalHierarchyUser.prototype, "approval_hierarchy", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'user_id' }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], ApprovalHierarchyUser.prototype, "user_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
41
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
42
|
+
__metadata("design:type", user_entity_1.User)
|
|
43
|
+
], ApprovalHierarchyUser.prototype, "user", void 0);
|
|
44
|
+
exports.ApprovalHierarchyUser = ApprovalHierarchyUser = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ name: 'approval_hierarchy_users', schema: 'user' })
|
|
46
|
+
], ApprovalHierarchyUser);
|
|
47
|
+
//# sourceMappingURL=approval-hierarchy-user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-hierarchy-user.entity.js","sourceRoot":"","sources":["../../../src/database/entities/approval-hierarchy-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAgE;AAChE,2EAAgE;AAChE,+CAAqC;AACrC,+CAA2C;AAGpC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;IAEnD,qBAAqB,CAAS;IAM9B,kBAAkB,CAAoB;IAGtC,OAAO,CAAS;IAIhB,IAAI,CAAO;CACZ,CAAA;AAhBY,sDAAqB;AAEhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;;oEACZ;AAM9B;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,EAAE;QAC5E,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;8BAC1B,6CAAiB;iEAAC;AAGtC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACZ;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;mDAAC;gCAfA,qBAAqB;IADjC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAChD,qBAAqB,CAgBjC"}
|