@procxo/shared 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/ormconfig.factory.d.ts +10 -0
- package/dist/config/ormconfig.factory.d.ts.map +1 -0
- package/dist/config/ormconfig.factory.js +48 -0
- package/dist/config/ormconfig.factory.js.map +1 -0
- package/dist/config/typeorm.config.d.ts +4 -0
- package/dist/config/typeorm.config.d.ts.map +1 -0
- package/dist/config/typeorm.config.js +22 -0
- package/dist/config/typeorm.config.js.map +1 -0
- package/dist/core/constant/index.d.ts +2 -0
- package/dist/core/constant/index.d.ts.map +1 -0
- package/dist/core/constant/index.js +18 -0
- package/dist/core/constant/index.js.map +1 -0
- package/dist/core/constant/notification-preference.d.ts +29 -0
- package/dist/core/constant/notification-preference.d.ts.map +1 -0
- package/dist/core/constant/notification-preference.js +81 -0
- package/dist/core/constant/notification-preference.js.map +1 -0
- package/dist/core/json/core-data/currency.json +8 -0
- package/{src → dist}/core/json/core-data/department.json +38 -38
- package/{src → dist}/core/json/core-data/permission.json +882 -898
- package/dist/core/json/core-data/role.json +30 -0
- package/dist/core/json/core-data/user.json +12 -0
- package/dist/core/json/geographic-data/cities.json +54693 -0
- package/dist/core/json/geographic-data/countries.json +31 -0
- package/dist/database/entities/activity-logs.entity.d.ts +11 -0
- package/dist/database/entities/activity-logs.entity.d.ts.map +1 -0
- package/dist/database/entities/activity-logs.entity.js +56 -0
- package/dist/database/entities/activity-logs.entity.js.map +1 -0
- package/dist/database/entities/address.entity.d.ts +13 -0
- package/dist/database/entities/address.entity.d.ts.map +1 -0
- package/dist/database/entities/address.entity.js +63 -0
- package/dist/database/entities/address.entity.js.map +1 -0
- package/dist/database/entities/alert.entity.d.ts +37 -0
- package/dist/database/entities/alert.entity.d.ts.map +1 -0
- package/dist/database/entities/alert.entity.js +171 -0
- package/dist/database/entities/alert.entity.js.map +1 -0
- package/dist/database/entities/approval-condition.entity.d.ts +16 -0
- package/dist/database/entities/approval-condition.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-condition.entity.js +66 -0
- package/dist/database/entities/approval-condition.entity.js.map +1 -0
- package/dist/database/entities/approval-hierarchy-role.entity.d.ts +10 -0
- package/dist/database/entities/approval-hierarchy-role.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-hierarchy-role.entity.js +47 -0
- package/dist/database/entities/approval-hierarchy-role.entity.js.map +1 -0
- package/dist/database/entities/approval-hierarchy-user.entity.d.ts +10 -0
- package/dist/database/entities/approval-hierarchy-user.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-hierarchy-user.entity.js +47 -0
- package/dist/database/entities/approval-hierarchy-user.entity.js.map +1 -0
- package/dist/database/entities/approval-hierarchy.entity.d.ts +22 -0
- package/dist/database/entities/approval-hierarchy.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-hierarchy.entity.js +80 -0
- package/dist/database/entities/approval-hierarchy.entity.js.map +1 -0
- package/dist/database/entities/approval-journey.entity.d.ts +32 -0
- package/dist/database/entities/approval-journey.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-journey.entity.js +125 -0
- package/dist/database/entities/approval-journey.entity.js.map +1 -0
- package/dist/database/entities/approval-level-escalation-user.entity.d.ts +10 -0
- package/dist/database/entities/approval-level-escalation-user.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level-escalation-user.entity.js +47 -0
- package/dist/database/entities/approval-level-escalation-user.entity.js.map +1 -0
- package/dist/database/entities/approval-level-escalation.entity.d.ts +14 -0
- package/dist/database/entities/approval-level-escalation.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level-escalation.entity.js +65 -0
- package/dist/database/entities/approval-level-escalation.entity.js.map +1 -0
- package/dist/database/entities/approval-level-user.entity.d.ts +10 -0
- package/dist/database/entities/approval-level-user.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level-user.entity.js +49 -0
- package/dist/database/entities/approval-level-user.entity.js.map +1 -0
- package/dist/database/entities/approval-level.entity.d.ts +17 -0
- package/dist/database/entities/approval-level.entity.d.ts.map +1 -0
- package/dist/database/entities/approval-level.entity.js +76 -0
- package/dist/database/entities/approval-level.entity.js.map +1 -0
- package/dist/database/entities/base.entity.d.ts +12 -0
- package/dist/database/entities/base.entity.d.ts.map +1 -0
- package/dist/database/entities/base.entity.js +63 -0
- package/dist/database/entities/base.entity.js.map +1 -0
- package/dist/database/entities/chat.entity.d.ts +13 -0
- package/dist/database/entities/chat.entity.d.ts.map +1 -0
- package/dist/database/entities/chat.entity.js +67 -0
- package/dist/database/entities/chat.entity.js.map +1 -0
- package/dist/database/entities/city.entity.d.ts +11 -0
- package/dist/database/entities/city.entity.d.ts.map +1 -0
- package/dist/database/entities/city.entity.js +53 -0
- package/dist/database/entities/city.entity.js.map +1 -0
- package/dist/database/entities/client.entity.d.ts +44 -0
- package/dist/database/entities/client.entity.d.ts.map +1 -0
- package/dist/database/entities/client.entity.js +191 -0
- package/dist/database/entities/client.entity.js.map +1 -0
- package/dist/database/entities/contact.entity.d.ts +12 -0
- package/dist/database/entities/contact.entity.d.ts.map +1 -0
- package/dist/database/entities/contact.entity.js +57 -0
- package/dist/database/entities/contact.entity.js.map +1 -0
- package/dist/database/entities/country.entity.d.ts +26 -0
- package/dist/database/entities/country.entity.d.ts.map +1 -0
- package/dist/database/entities/country.entity.js +127 -0
- package/dist/database/entities/country.entity.js.map +1 -0
- package/dist/database/entities/credit-note.entity.d.ts +38 -0
- package/dist/database/entities/credit-note.entity.d.ts.map +1 -0
- package/dist/database/entities/credit-note.entity.js +159 -0
- package/dist/database/entities/credit-note.entity.js.map +1 -0
- package/dist/database/entities/currency.entity.d.ts +10 -0
- package/dist/database/entities/currency.entity.d.ts.map +1 -0
- package/dist/database/entities/currency.entity.js +47 -0
- package/dist/database/entities/currency.entity.js.map +1 -0
- package/dist/database/entities/department.entity.d.ts +10 -0
- package/dist/database/entities/department.entity.d.ts.map +1 -0
- package/dist/database/entities/department.entity.js +47 -0
- package/dist/database/entities/department.entity.js.map +1 -0
- package/dist/database/entities/entitlement.entity.d.ts +24 -0
- package/dist/database/entities/entitlement.entity.d.ts.map +1 -0
- package/dist/database/entities/entitlement.entity.js +106 -0
- package/dist/database/entities/entitlement.entity.js.map +1 -0
- package/dist/database/entities/expense.entity.d.ts +47 -0
- package/dist/database/entities/expense.entity.d.ts.map +1 -0
- package/dist/database/entities/expense.entity.js +221 -0
- package/dist/database/entities/expense.entity.js.map +1 -0
- package/dist/database/entities/file.entity.d.ts +11 -0
- package/dist/database/entities/file.entity.d.ts.map +1 -0
- package/dist/database/entities/file.entity.js +56 -0
- package/dist/database/entities/file.entity.js.map +1 -0
- package/dist/database/entities/fixed-invoice-item.entity.d.ts +9 -0
- package/dist/database/entities/fixed-invoice-item.entity.d.ts.map +1 -0
- package/dist/database/entities/fixed-invoice-item.entity.js +52 -0
- package/dist/database/entities/fixed-invoice-item.entity.js.map +1 -0
- package/dist/database/entities/group.entity.d.ts +9 -0
- package/dist/database/entities/group.entity.d.ts.map +1 -0
- package/dist/database/entities/group.entity.js +45 -0
- package/dist/database/entities/group.entity.js.map +1 -0
- package/dist/database/entities/gst.entity.d.ts +6 -0
- package/dist/database/entities/gst.entity.d.ts.map +1 -0
- package/dist/database/entities/gst.entity.js +44 -0
- package/dist/database/entities/gst.entity.js.map +1 -0
- package/dist/database/entities/holiday.entity.d.ts +14 -0
- package/dist/database/entities/holiday.entity.d.ts.map +1 -0
- package/dist/database/entities/holiday.entity.js +79 -0
- package/dist/database/entities/holiday.entity.js.map +1 -0
- package/{src/database/entities/index.ts → dist/database/entities/index.d.ts} +84 -79
- package/dist/database/entities/index.d.ts.map +1 -0
- package/dist/database/entities/index.js +100 -0
- package/dist/database/entities/index.js.map +1 -0
- package/dist/database/entities/invoice-template-footer.entity.d.ts +24 -0
- package/dist/database/entities/invoice-template-footer.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template-footer.entity.js +118 -0
- package/dist/database/entities/invoice-template-footer.entity.js.map +1 -0
- package/dist/database/entities/invoice-template-header.entity.d.ts +14 -0
- package/dist/database/entities/invoice-template-header.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template-header.entity.js +68 -0
- package/dist/database/entities/invoice-template-header.entity.js.map +1 -0
- package/dist/database/entities/invoice-template-table.entity.d.ts +35 -0
- package/dist/database/entities/invoice-template-table.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template-table.entity.js +143 -0
- package/dist/database/entities/invoice-template-table.entity.js.map +1 -0
- package/dist/database/entities/invoice-template.entity.d.ts +39 -0
- package/dist/database/entities/invoice-template.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice-template.entity.js +157 -0
- package/dist/database/entities/invoice-template.entity.js.map +1 -0
- package/dist/database/entities/invoice.entity.d.ts +49 -0
- package/dist/database/entities/invoice.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice.entity.js +302 -0
- package/dist/database/entities/invoice.entity.js.map +1 -0
- package/dist/database/entities/invoice_item.entity.d.ts +22 -0
- package/dist/database/entities/invoice_item.entity.d.ts.map +1 -0
- package/dist/database/entities/invoice_item.entity.js +89 -0
- package/dist/database/entities/invoice_item.entity.js.map +1 -0
- package/dist/database/entities/leave-balance.entity.d.ts +38 -0
- package/dist/database/entities/leave-balance.entity.d.ts.map +1 -0
- package/dist/database/entities/leave-balance.entity.js +166 -0
- package/dist/database/entities/leave-balance.entity.js.map +1 -0
- package/dist/database/entities/leave-request.entity.d.ts +64 -0
- package/dist/database/entities/leave-request.entity.d.ts.map +1 -0
- package/dist/database/entities/leave-request.entity.js +219 -0
- package/dist/database/entities/leave-request.entity.js.map +1 -0
- package/dist/database/entities/leave-type.entity.d.ts +15 -0
- package/dist/database/entities/leave-type.entity.d.ts.map +1 -0
- package/dist/database/entities/leave-type.entity.js +72 -0
- package/dist/database/entities/leave-type.entity.js.map +1 -0
- package/dist/database/entities/matter-tag.entity.d.ts +10 -0
- package/dist/database/entities/matter-tag.entity.d.ts.map +1 -0
- package/dist/database/entities/matter-tag.entity.js +45 -0
- package/dist/database/entities/matter-tag.entity.js.map +1 -0
- package/dist/database/entities/matter-task-view-filter.entity.d.ts +11 -0
- package/dist/database/entities/matter-task-view-filter.entity.d.ts.map +1 -0
- package/dist/database/entities/matter-task-view-filter.entity.js +42 -0
- package/dist/database/entities/matter-task-view-filter.entity.js.map +1 -0
- package/dist/database/entities/matter-team-member.entity.d.ts +11 -0
- package/dist/database/entities/matter-team-member.entity.d.ts.map +1 -0
- package/dist/database/entities/matter-team-member.entity.js +56 -0
- package/dist/database/entities/matter-team-member.entity.js.map +1 -0
- package/dist/database/entities/matter.entity.d.ts +62 -0
- package/dist/database/entities/matter.entity.d.ts.map +1 -0
- package/dist/database/entities/matter.entity.js +249 -0
- package/dist/database/entities/matter.entity.js.map +1 -0
- package/dist/database/entities/otp.entity.d.ts +24 -0
- package/dist/database/entities/otp.entity.d.ts.map +1 -0
- package/dist/database/entities/otp.entity.js +97 -0
- package/dist/database/entities/otp.entity.js.map +1 -0
- package/dist/database/entities/payment.entity.d.ts +29 -0
- package/dist/database/entities/payment.entity.d.ts.map +1 -0
- package/dist/database/entities/payment.entity.js +207 -0
- package/dist/database/entities/payment.entity.js.map +1 -0
- package/dist/database/entities/permission.entity.d.ts +11 -0
- package/dist/database/entities/permission.entity.d.ts.map +1 -0
- package/dist/database/entities/permission.entity.js +52 -0
- package/dist/database/entities/permission.entity.js.map +1 -0
- package/dist/database/entities/quickbooks-connection.entity.d.ts +14 -0
- package/dist/database/entities/quickbooks-connection.entity.d.ts.map +1 -0
- package/dist/database/entities/quickbooks-connection.entity.js +71 -0
- package/dist/database/entities/quickbooks-connection.entity.js.map +1 -0
- package/dist/database/entities/quickbooks-sync-log.entity.d.ts +34 -0
- package/dist/database/entities/quickbooks-sync-log.entity.d.ts.map +1 -0
- package/dist/database/entities/quickbooks-sync-log.entity.js +116 -0
- package/dist/database/entities/quickbooks-sync-log.entity.js.map +1 -0
- package/dist/database/entities/role-permission.entity.d.ts +10 -0
- package/dist/database/entities/role-permission.entity.d.ts.map +1 -0
- package/dist/database/entities/role-permission.entity.js +49 -0
- package/dist/database/entities/role-permission.entity.js.map +1 -0
- package/dist/database/entities/role-shift.entity.d.ts +8 -0
- package/dist/database/entities/role-shift.entity.d.ts.map +1 -0
- package/dist/database/entities/role-shift.entity.js +48 -0
- package/dist/database/entities/role-shift.entity.js.map +1 -0
- package/dist/database/entities/role.entity.d.ts +13 -0
- package/dist/database/entities/role.entity.d.ts.map +1 -0
- package/dist/database/entities/role.entity.js +58 -0
- package/dist/database/entities/role.entity.js.map +1 -0
- package/dist/database/entities/sequence-generator.entity.d.ts +8 -0
- package/dist/database/entities/sequence-generator.entity.d.ts.map +1 -0
- package/dist/database/entities/sequence-generator.entity.js +64 -0
- package/dist/database/entities/sequence-generator.entity.js.map +1 -0
- package/dist/database/entities/shift.entity.d.ts +18 -0
- package/dist/database/entities/shift.entity.d.ts.map +1 -0
- package/dist/database/entities/shift.entity.js +110 -0
- package/dist/database/entities/shift.entity.js.map +1 -0
- package/dist/database/entities/sub-task-tag.entity.d.ts +10 -0
- package/dist/database/entities/sub-task-tag.entity.d.ts.map +1 -0
- package/dist/database/entities/sub-task-tag.entity.js +45 -0
- package/dist/database/entities/sub-task-tag.entity.js.map +1 -0
- package/dist/database/entities/subtask-user.entity.d.ts +10 -0
- package/dist/database/entities/subtask-user.entity.d.ts.map +1 -0
- package/dist/database/entities/subtask-user.entity.js +45 -0
- package/dist/database/entities/subtask-user.entity.js.map +1 -0
- package/dist/database/entities/subtask.entity.d.ts +47 -0
- package/dist/database/entities/subtask.entity.d.ts.map +1 -0
- package/dist/database/entities/subtask.entity.js +185 -0
- package/dist/database/entities/subtask.entity.js.map +1 -0
- package/dist/database/entities/summary-task-status.entity.d.ts +7 -0
- package/dist/database/entities/summary-task-status.entity.d.ts.map +1 -0
- package/dist/database/entities/summary-task-status.entity.js +37 -0
- package/dist/database/entities/summary-task-status.entity.js.map +1 -0
- package/dist/database/entities/superset.entity.d.ts +15 -0
- package/dist/database/entities/superset.entity.d.ts.map +1 -0
- package/dist/database/entities/superset.entity.js +73 -0
- package/dist/database/entities/superset.entity.js.map +1 -0
- package/dist/database/entities/tag.entity.d.ts +10 -0
- package/dist/database/entities/tag.entity.d.ts.map +1 -0
- package/dist/database/entities/tag.entity.js +43 -0
- package/dist/database/entities/tag.entity.js.map +1 -0
- package/dist/database/entities/task-comment.entity.d.ts +15 -0
- package/dist/database/entities/task-comment.entity.d.ts.map +1 -0
- package/dist/database/entities/task-comment.entity.js +67 -0
- package/dist/database/entities/task-comment.entity.js.map +1 -0
- package/dist/database/entities/task-milestone.entity.d.ts +7 -0
- package/dist/database/entities/task-milestone.entity.d.ts.map +1 -0
- package/dist/database/entities/task-milestone.entity.js +36 -0
- package/dist/database/entities/task-milestone.entity.js.map +1 -0
- package/dist/database/entities/task-remainder.entity.d.ts +12 -0
- package/dist/database/entities/task-remainder.entity.d.ts.map +1 -0
- package/dist/database/entities/task-remainder.entity.js +57 -0
- package/dist/database/entities/task-remainder.entity.js.map +1 -0
- package/dist/database/entities/task-tag.entity.d.ts +10 -0
- package/dist/database/entities/task-tag.entity.d.ts.map +1 -0
- package/dist/database/entities/task-tag.entity.js +45 -0
- package/dist/database/entities/task-tag.entity.js.map +1 -0
- package/dist/database/entities/task-type.entity.d.ts +7 -0
- package/dist/database/entities/task-type.entity.d.ts.map +1 -0
- package/dist/database/entities/task-type.entity.js +36 -0
- package/dist/database/entities/task-type.entity.js.map +1 -0
- package/dist/database/entities/task-user.entity.d.ts +10 -0
- package/dist/database/entities/task-user.entity.d.ts.map +1 -0
- package/dist/database/entities/task-user.entity.js +45 -0
- package/dist/database/entities/task-user.entity.js.map +1 -0
- package/dist/database/entities/task.entity.d.ts +53 -0
- package/dist/database/entities/task.entity.d.ts.map +1 -0
- package/dist/database/entities/task.entity.js +259 -0
- package/dist/database/entities/task.entity.js.map +1 -0
- package/dist/database/entities/template-task.entity.d.ts +11 -0
- package/dist/database/entities/template-task.entity.d.ts.map +1 -0
- package/dist/database/entities/template-task.entity.js +53 -0
- package/dist/database/entities/template-task.entity.js.map +1 -0
- package/dist/database/entities/template.entity.d.ts +13 -0
- package/dist/database/entities/template.entity.d.ts.map +1 -0
- package/dist/database/entities/template.entity.js +58 -0
- package/dist/database/entities/template.entity.js.map +1 -0
- package/dist/database/entities/tenant-configuration.entity.d.ts +16 -0
- package/dist/database/entities/tenant-configuration.entity.d.ts.map +1 -0
- package/dist/database/entities/tenant-configuration.entity.js +77 -0
- package/dist/database/entities/tenant-configuration.entity.js.map +1 -0
- package/dist/database/entities/tenant-module.entity.d.ts +11 -0
- package/dist/database/entities/tenant-module.entity.d.ts.map +1 -0
- package/dist/database/entities/tenant-module.entity.js +50 -0
- package/dist/database/entities/tenant-module.entity.js.map +1 -0
- package/dist/database/entities/tenant-sub-module.entity.d.ts +9 -0
- package/dist/database/entities/tenant-sub-module.entity.d.ts.map +1 -0
- package/dist/database/entities/tenant-sub-module.entity.js +45 -0
- package/dist/database/entities/tenant-sub-module.entity.js.map +1 -0
- package/dist/database/entities/timesheet-comment.entity.d.ts +11 -0
- package/dist/database/entities/timesheet-comment.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet-comment.entity.js +65 -0
- package/dist/database/entities/timesheet-comment.entity.js.map +1 -0
- package/dist/database/entities/timesheet-event.entity.d.ts +48 -0
- package/dist/database/entities/timesheet-event.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet-event.entity.js +328 -0
- package/dist/database/entities/timesheet-event.entity.js.map +1 -0
- package/dist/database/entities/timesheet-summary.entity.d.ts +27 -0
- package/dist/database/entities/timesheet-summary.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet-summary.entity.js +161 -0
- package/dist/database/entities/timesheet-summary.entity.js.map +1 -0
- package/dist/database/entities/timesheet.entity.d.ts +32 -0
- package/dist/database/entities/timesheet.entity.d.ts.map +1 -0
- package/dist/database/entities/timesheet.entity.js +112 -0
- package/dist/database/entities/timesheet.entity.js.map +1 -0
- package/dist/database/entities/transfer-ownership.entity.d.ts +15 -0
- package/dist/database/entities/transfer-ownership.entity.d.ts.map +1 -0
- package/dist/database/entities/transfer-ownership.entity.js +75 -0
- package/dist/database/entities/transfer-ownership.entity.js.map +1 -0
- package/dist/database/entities/upload-log.entity.d.ts +32 -0
- package/dist/database/entities/upload-log.entity.d.ts.map +1 -0
- package/dist/database/entities/upload-log.entity.js +116 -0
- package/dist/database/entities/upload-log.entity.js.map +1 -0
- package/dist/database/entities/user-notification-channel.entity.d.ts +8 -0
- package/dist/database/entities/user-notification-channel.entity.d.ts.map +1 -0
- package/dist/database/entities/user-notification-channel.entity.js +63 -0
- package/dist/database/entities/user-notification-channel.entity.js.map +1 -0
- package/dist/database/entities/user-notification-preference.entity.d.ts +10 -0
- package/dist/database/entities/user-notification-preference.entity.d.ts.map +1 -0
- package/dist/database/entities/user-notification-preference.entity.js +72 -0
- package/dist/database/entities/user-notification-preference.entity.js.map +1 -0
- package/dist/database/entities/user-role.entity.d.ts +10 -0
- package/dist/database/entities/user-role.entity.d.ts.map +1 -0
- package/dist/database/entities/user-role.entity.js +45 -0
- package/dist/database/entities/user-role.entity.js.map +1 -0
- package/dist/database/entities/user-session-history.entity.d.ts +24 -0
- package/dist/database/entities/user-session-history.entity.d.ts.map +1 -0
- package/dist/database/entities/user-session-history.entity.js +95 -0
- package/dist/database/entities/user-session-history.entity.js.map +1 -0
- package/dist/database/entities/user-shift.entity.d.ts +24 -0
- package/dist/database/entities/user-shift.entity.d.ts.map +1 -0
- package/dist/database/entities/user-shift.entity.js +153 -0
- package/dist/database/entities/user-shift.entity.js.map +1 -0
- package/dist/database/entities/user.entity.d.ts +77 -0
- package/dist/database/entities/user.entity.d.ts.map +1 -0
- package/dist/database/entities/user.entity.js +295 -0
- package/dist/database/entities/user.entity.js.map +1 -0
- package/dist/database/entities/zohobooks-connection.entity.d.ts +16 -0
- package/dist/database/entities/zohobooks-connection.entity.d.ts.map +1 -0
- package/dist/database/entities/zohobooks-connection.entity.js +81 -0
- package/dist/database/entities/zohobooks-connection.entity.js.map +1 -0
- package/dist/database/entities/zohobooks-sync-log.entity.d.ts +35 -0
- package/dist/database/entities/zohobooks-sync-log.entity.d.ts.map +1 -0
- package/dist/database/entities/zohobooks-sync-log.entity.js +117 -0
- package/dist/database/entities/zohobooks-sync-log.entity.js.map +1 -0
- package/dist/database/index.d.ts +2 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +18 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/migrations/1770794314727-initialMigration.d.ts +7 -0
- package/dist/database/migrations/1770794314727-initialMigration.d.ts.map +1 -0
- package/{src/database/migrations/1770706648232-initialMigration.ts → dist/database/migrations/1770794314727-initialMigration.js} +9 -9
- package/dist/database/migrations/1770794314727-initialMigration.js.map +1 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.d.ts +7 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.d.ts.map +1 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.js +26 -0
- package/dist/database/migrations/1771421233389-initialTenantConfiguration_module_submodule_tables.js.map +1 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.d.ts +7 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.d.ts.map +1 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.js +14 -0
- package/dist/database/migrations/1771494127263-added_tenantUserfieldInTenantConfigurationTable.js.map +1 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.d.ts +7 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.d.ts.map +1 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.js +16 -0
- package/dist/database/migrations/1773212696542-Added_profileUrl_in_user_And_error_file_presigned_url_in_uploadLog.js.map +1 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.d.ts +7 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.d.ts.map +1 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.js +34 -0
- package/dist/database/migrations/1773395645993-AddedOtpEntityAndUpdateUserSessionEntity.js.map +1 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.d.ts +7 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.d.ts.map +1 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.js +14 -0
- package/dist/database/migrations/1773397322355-AddedSystemUserName_in_UserEntity.js.map +1 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.d.ts +7 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.d.ts.map +1 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.js +34 -0
- package/dist/database/migrations/1775023603725-updateClient_creditNote_file_invoice_payment_entity_and_Added_zohobookConnection_And_zohobookSync_log_entities.js.map +1 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.d.ts +7 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.d.ts.map +1 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.js +32 -0
- package/dist/database/migrations/1775111804920-uptodate_tables.js.map +1 -0
- package/dist/database/seeder/base.seed.d.ts +19 -0
- package/dist/database/seeder/base.seed.d.ts.map +1 -0
- package/dist/database/seeder/base.seed.js +83 -0
- package/dist/database/seeder/base.seed.js.map +1 -0
- package/dist/database/seeder/config/seeder.config.d.ts +7 -0
- package/dist/database/seeder/config/seeder.config.d.ts.map +1 -0
- package/dist/database/seeder/config/seeder.config.js +21 -0
- package/dist/database/seeder/config/seeder.config.js.map +1 -0
- package/dist/database/seeder/errors/seeder.error.d.ts +11 -0
- package/dist/database/seeder/errors/seeder.error.d.ts.map +1 -0
- package/dist/database/seeder/errors/seeder.error.js +27 -0
- package/dist/database/seeder/errors/seeder.error.js.map +1 -0
- package/dist/database/seeder/seed-runner.d.ts +2 -0
- package/dist/database/seeder/seed-runner.d.ts.map +1 -0
- package/dist/database/seeder/seed-runner.js +157 -0
- package/dist/database/seeder/seed-runner.js.map +1 -0
- package/dist/database/seeder/seeds/city.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/city.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/city.seed.js +62 -0
- package/dist/database/seeder/seeds/city.seed.js.map +1 -0
- package/dist/database/seeder/seeds/country.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/country.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/country.seed.js +54 -0
- package/dist/database/seeder/seeds/country.seed.js.map +1 -0
- package/dist/database/seeder/seeds/currency.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/currency.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/currency.seed.js +50 -0
- package/dist/database/seeder/seeds/currency.seed.js.map +1 -0
- package/dist/database/seeder/seeds/department.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/department.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/department.seed.js +48 -0
- package/dist/database/seeder/seeds/department.seed.js.map +1 -0
- package/dist/database/seeder/seeds/permission.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/permission.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/permission.seed.js +54 -0
- package/dist/database/seeder/seeds/permission.seed.js.map +1 -0
- package/dist/database/seeder/seeds/role-permission.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/role-permission.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/role-permission.seed.js +47 -0
- package/dist/database/seeder/seeds/role-permission.seed.js.map +1 -0
- package/dist/database/seeder/seeds/role.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/role.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/role.seed.js +52 -0
- package/dist/database/seeder/seeds/role.seed.js.map +1 -0
- package/dist/database/seeder/seeds/user-role.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/user-role.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/user-role.seed.js +66 -0
- package/dist/database/seeder/seeds/user-role.seed.js.map +1 -0
- package/dist/database/seeder/seeds/user.seed.d.ts +8 -0
- package/dist/database/seeder/seeds/user.seed.d.ts.map +1 -0
- package/dist/database/seeder/seeds/user.seed.js +110 -0
- package/dist/database/seeder/seeds/user.seed.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +1 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/scripts/create-schema.d.ts +2 -0
- package/dist/scripts/create-schema.d.ts.map +1 -0
- package/dist/scripts/create-schema.js +77 -0
- package/dist/scripts/create-schema.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +50 -70
- package/README.md +0 -250
- package/src/config/index.ts +0 -5
- package/src/config/ormconfig.factory.ts +0 -102
- package/src/config/typeorm.config.ts +0 -22
- package/src/core/constant/index.ts +0 -1
- package/src/core/constant/notification-preference.ts +0 -113
- package/src/core/json/core-data/currency.json +0 -8
- package/src/core/json/core-data/role.json +0 -30
- package/src/core/json/core-data/user.json +0 -12
- package/src/core/json/geographic-data/cities.json +0 -54693
- package/src/core/json/geographic-data/countries.json +0 -31
- package/src/database/entities/activity-logs.entity.ts +0 -31
- package/src/database/entities/address.entity.ts +0 -31
- package/src/database/entities/alert.entity.ts +0 -139
- package/src/database/entities/approval-condition.entity.ts +0 -48
- package/src/database/entities/approval-hierarchy-role.entity.ts +0 -24
- package/src/database/entities/approval-hierarchy-user.entity.ts +0 -24
- package/src/database/entities/approval-hierarchy.entity.ts +0 -59
- package/src/database/entities/approval-journey.entity.ts +0 -75
- package/src/database/entities/approval-level-escalation-user.entity.ts +0 -23
- package/src/database/entities/approval-level-escalation.entity.ts +0 -45
- package/src/database/entities/approval-level-user.entity.ts +0 -25
- package/src/database/entities/approval-level.entity.ts +0 -51
- package/src/database/entities/base.entity.ts +0 -31
- package/src/database/entities/chat.entity.ts +0 -36
- package/src/database/entities/city.entity.ts +0 -25
- package/src/database/entities/client.entity.ts +0 -91
- package/src/database/entities/contact.entity.ts +0 -27
- package/src/database/entities/country.entity.ts +0 -69
- package/src/database/entities/credit-note.entity.ts +0 -88
- package/src/database/entities/currency.entity.ts +0 -21
- package/src/database/entities/department.entity.ts +0 -21
- package/src/database/entities/entitlement.entity.ts +0 -64
- package/src/database/entities/expense.entity.ts +0 -141
- package/src/database/entities/file.entity.ts +0 -22
- package/src/database/entities/fixed-invoice-item.entity.ts +0 -29
- package/src/database/entities/group.entity.ts +0 -21
- package/src/database/entities/gst.entity.ts +0 -32
- package/src/database/entities/holiday.entity.ts +0 -51
- package/src/database/entities/invoice-template-footer.entity.ts +0 -70
- package/src/database/entities/invoice-template-header.entity.ts +0 -34
- package/src/database/entities/invoice-template-table.entity.ts +0 -83
- package/src/database/entities/invoice-template.entity.ts +0 -119
- package/src/database/entities/invoice.entity.ts +0 -139
- package/src/database/entities/invoice_item.entity.ts +0 -69
- package/src/database/entities/leave-balance.entity.ts +0 -118
- package/src/database/entities/leave-request.entity.ts +0 -155
- package/src/database/entities/leave-type.entity.ts +0 -37
- package/src/database/entities/matter-tag.entity.ts +0 -21
- package/src/database/entities/matter-task-view-filter.entity.ts +0 -21
- package/src/database/entities/matter-team-member.entity.ts +0 -30
- package/src/database/entities/matter.entity.ts +0 -156
- package/src/database/entities/payment.entity.ts +0 -72
- package/src/database/entities/permission.entity.ts +0 -27
- package/src/database/entities/quickbooks-connection.entity.ts +0 -35
- package/src/database/entities/quickbooks-sync-log.entity.ts +0 -79
- package/src/database/entities/role-permission.entity.ts +0 -30
- package/src/database/entities/role-shift.entity.ts +0 -43
- package/src/database/entities/role.entity.ts +0 -30
- package/src/database/entities/sequence-generator.entity.ts +0 -40
- package/src/database/entities/shift.entity.ts +0 -72
- package/src/database/entities/sub-task-tag.entity.ts +0 -22
- package/src/database/entities/subtask-user.entity.ts +0 -21
- package/src/database/entities/subtask.entity.ts +0 -125
- package/src/database/entities/summary-task-status.entity.ts +0 -15
- package/src/database/entities/superset.entity.ts +0 -38
- package/src/database/entities/tag.entity.ts +0 -19
- package/src/database/entities/task-comment.entity.ts +0 -41
- package/src/database/entities/task-milestone.entity.ts +0 -14
- package/src/database/entities/task-remainder.entity.ts +0 -29
- package/src/database/entities/task-tag.entity.ts +0 -22
- package/src/database/entities/task-type.entity.ts +0 -14
- package/src/database/entities/task-user.entity.ts +0 -21
- package/src/database/entities/task.entity.ts +0 -176
- package/src/database/entities/template-task.entity.ts +0 -25
- package/src/database/entities/template.entity.ts +0 -28
- package/src/database/entities/timesheet-comment.entity.ts +0 -45
- package/src/database/entities/timesheet-event.entity.ts +0 -256
- package/src/database/entities/timesheet-summary.entity.ts +0 -101
- package/src/database/entities/timesheet.entity.ts +0 -76
- package/src/database/entities/transfer-ownership.entity.ts +0 -39
- package/src/database/entities/upload-log.entity.ts +0 -78
- package/src/database/entities/user-notification-channel.entity.ts +0 -43
- package/src/database/entities/user-notification-preference.entity.ts +0 -50
- package/src/database/entities/user-role.entity.ts +0 -25
- package/src/database/entities/user-session-history.entity.ts +0 -45
- package/src/database/entities/user-shift.entity.ts +0 -109
- package/src/database/entities/user.entity.ts +0 -198
- package/src/database/index.ts +0 -1
- package/src/database/seeder/base.seed.ts +0 -104
- package/src/database/seeder/config/seeder.config.ts +0 -26
- package/src/database/seeder/errors/seeder.error.ts +0 -20
- package/src/database/seeder/seed-runner.ts +0 -200
- package/src/database/seeder/seeds/city.seed.ts +0 -70
- package/src/database/seeder/seeds/country.seed.ts +0 -58
- package/src/database/seeder/seeds/currency.seed.ts +0 -52
- package/src/database/seeder/seeds/department.seed.ts +0 -47
- package/src/database/seeder/seeds/permission.seed.ts +0 -54
- package/src/database/seeder/seeds/role-permission.seed.ts +0 -58
- package/src/database/seeder/seeds/role.seed.ts +0 -52
- package/src/database/seeder/seeds/user-role.seed.ts +0 -72
- package/src/database/seeder/seeds/user.seed.ts +0 -87
- package/src/scripts/create-schema.ts +0 -94
|
@@ -0,0 +1,207 @@
|
|
|
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.Payment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("./base.entity");
|
|
15
|
+
const invoice_entity_1 = require("./invoice.entity");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
17
|
+
let Payment = class Payment extends base_entity_1.BaseEntity {
|
|
18
|
+
invoiceId;
|
|
19
|
+
amount;
|
|
20
|
+
paymentDate;
|
|
21
|
+
confirmedBy;
|
|
22
|
+
transactionReferenceNumber;
|
|
23
|
+
accountHolderName;
|
|
24
|
+
accountNumber;
|
|
25
|
+
receivedAmount;
|
|
26
|
+
isTdsApplicable;
|
|
27
|
+
tdsAmount;
|
|
28
|
+
tdsPercentage;
|
|
29
|
+
totalPaymentRecorded;
|
|
30
|
+
paymentMode;
|
|
31
|
+
paymentStatus;
|
|
32
|
+
invoiceNo;
|
|
33
|
+
quickbooksId;
|
|
34
|
+
quickbooksSyncToken;
|
|
35
|
+
lastSyncedAt;
|
|
36
|
+
zohobooksId;
|
|
37
|
+
zohobooksSyncToken;
|
|
38
|
+
lastSyncedAtZoho;
|
|
39
|
+
user;
|
|
40
|
+
invoice;
|
|
41
|
+
};
|
|
42
|
+
exports.Payment = Payment;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: "invoice_id", type: "integer" }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], Payment.prototype, "invoiceId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
name: "amount",
|
|
50
|
+
type: "decimal",
|
|
51
|
+
precision: 10,
|
|
52
|
+
scale: 2,
|
|
53
|
+
nullable: true,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Payment.prototype, "amount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: "payment_date", type: "timestamp" }),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], Payment.prototype, "paymentDate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: "confirmed_by", type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Payment.prototype, "confirmedBy", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({
|
|
67
|
+
name: "transaction_reference_number",
|
|
68
|
+
type: "varchar",
|
|
69
|
+
length: 255,
|
|
70
|
+
nullable: true,
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Payment.prototype, "transactionReferenceNumber", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({
|
|
76
|
+
name: "account_holder_name",
|
|
77
|
+
type: "varchar",
|
|
78
|
+
length: 255,
|
|
79
|
+
nullable: true,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Payment.prototype, "accountHolderName", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({
|
|
85
|
+
name: "account_number",
|
|
86
|
+
type: "varchar",
|
|
87
|
+
length: 255,
|
|
88
|
+
nullable: true,
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Payment.prototype, "accountNumber", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({
|
|
94
|
+
name: "received_amount",
|
|
95
|
+
type: "decimal",
|
|
96
|
+
precision: 10,
|
|
97
|
+
scale: 2,
|
|
98
|
+
nullable: true,
|
|
99
|
+
}),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], Payment.prototype, "receivedAmount", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ name: "is_tds_applicable", type: "boolean", default: false }),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], Payment.prototype, "isTdsApplicable", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({
|
|
108
|
+
name: "tds_amount",
|
|
109
|
+
type: "decimal",
|
|
110
|
+
precision: 10,
|
|
111
|
+
scale: 2,
|
|
112
|
+
nullable: true,
|
|
113
|
+
}),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], Payment.prototype, "tdsAmount", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({
|
|
118
|
+
name: "tds_percentage",
|
|
119
|
+
type: "decimal",
|
|
120
|
+
precision: 10,
|
|
121
|
+
scale: 2,
|
|
122
|
+
nullable: true,
|
|
123
|
+
}),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], Payment.prototype, "tdsPercentage", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({
|
|
128
|
+
name: "total_payment_recorded",
|
|
129
|
+
type: "decimal",
|
|
130
|
+
precision: 10,
|
|
131
|
+
scale: 2,
|
|
132
|
+
nullable: true,
|
|
133
|
+
}),
|
|
134
|
+
__metadata("design:type", Number)
|
|
135
|
+
], Payment.prototype, "totalPaymentRecorded", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ name: "payment_mode", type: "varchar", length: 50 }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], Payment.prototype, "paymentMode", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({ name: "payment_status", type: "varchar", length: 50 }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], Payment.prototype, "paymentStatus", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.Column)({ name: "invoice_no", type: "varchar", nullable: true }),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], Payment.prototype, "invoiceNo", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({
|
|
150
|
+
type: "varchar",
|
|
151
|
+
length: 255,
|
|
152
|
+
nullable: true,
|
|
153
|
+
name: "quickbooks_id",
|
|
154
|
+
}),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], Payment.prototype, "quickbooksId", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({
|
|
159
|
+
type: "varchar",
|
|
160
|
+
length: 50,
|
|
161
|
+
nullable: true,
|
|
162
|
+
name: "quickbooks_sync_token",
|
|
163
|
+
}),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], Payment.prototype, "quickbooksSyncToken", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true, name: "last_synced_at" }),
|
|
168
|
+
__metadata("design:type", Date)
|
|
169
|
+
], Payment.prototype, "lastSyncedAt", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, typeorm_1.Column)({
|
|
172
|
+
type: "varchar",
|
|
173
|
+
length: 255,
|
|
174
|
+
nullable: true,
|
|
175
|
+
name: "zohobooks_id",
|
|
176
|
+
}),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], Payment.prototype, "zohobooksId", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({
|
|
181
|
+
type: "varchar",
|
|
182
|
+
length: 50,
|
|
183
|
+
nullable: true,
|
|
184
|
+
name: "zohobooks_sync_token",
|
|
185
|
+
}),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], Payment.prototype, "zohobooksSyncToken", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true, name: "last_synced_at_zoho" }),
|
|
190
|
+
__metadata("design:type", Date)
|
|
191
|
+
], Payment.prototype, "lastSyncedAtZoho", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: "SET NULL", onUpdate: "CASCADE" }),
|
|
194
|
+
(0, typeorm_1.JoinColumn)({ name: "confirmed_by" }),
|
|
195
|
+
__metadata("design:type", user_entity_1.User)
|
|
196
|
+
], Payment.prototype, "user", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.ManyToOne)(() => invoice_entity_1.Invoice, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
199
|
+
(0, typeorm_1.JoinColumn)({ name: "invoice_id" }),
|
|
200
|
+
__metadata("design:type", invoice_entity_1.Invoice)
|
|
201
|
+
], Payment.prototype, "invoice", void 0);
|
|
202
|
+
exports.Payment = Payment = __decorate([
|
|
203
|
+
(0, typeorm_1.Entity)({ name: "payments", schema: "core" }),
|
|
204
|
+
(0, typeorm_1.Check)(`payment_mode IN ('Bank Transfer', 'Card', 'Cash', 'Cheque')`),
|
|
205
|
+
(0, typeorm_1.Check)(`payment_status IN ('Partially Paid', 'Full Payment', 'Overdue', 'Cancelled', 'Refunded')`)
|
|
206
|
+
], Payment);
|
|
207
|
+
//# sourceMappingURL=payment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.entity.js","sourceRoot":"","sources":["../../../src/database/entities/payment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,+CAA2C;AAC3C,qDAA2C;AAC3C,+CAAqC;AAO9B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAErC,SAAS,CAAS;IASlB,MAAM,CAAS;IAGf,WAAW,CAAO;IAGlB,WAAW,CAAS;IAQpB,0BAA0B,CAAS;IAQnC,iBAAiB,CAAS;IAQ1B,aAAa,CAAS;IAStB,cAAc,CAAS;IAGvB,eAAe,CAAU;IASzB,SAAS,CAAS;IASlB,aAAa,CAAS;IAStB,oBAAoB,CAAS;IAG7B,WAAW,CAA+C;IAG1D,aAAa,CAKE;IAGf,SAAS,CAAS;IASlB,YAAY,CAAS;IAQrB,mBAAmB,CAAS;IAG5B,YAAY,CAAO;IASnB,WAAW,CAAS;IAQpB,kBAAkB,CAAS;IAG3B,gBAAgB,CAAO;IAIvB,IAAI,CAAO;IAIX,OAAO,CAAU;CAClB,CAAA;AA/IY,0BAAO;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CAC9B;AASlB;IAPC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,IA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B;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,sBAAsB;KAC7B,CAAC;;mDACyB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BACzD,IAAI;iDAAC;AAIvB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAC/B,kBAAI;qCAAC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,wBAAO;wCAAC;kBA9IN,OAAO;IALnB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC5C,IAAA,eAAK,EAAC,6DAA6D,CAAC;IACpE,IAAA,eAAK,EACJ,0FAA0F,CAC3F;GACY,OAAO,CA+InB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { RolePermission } from './role-permission.entity';
|
|
3
|
+
export declare class Permission extends BaseEntity {
|
|
4
|
+
permissionName: string;
|
|
5
|
+
permissionSlug: string;
|
|
6
|
+
permissionDescription: string;
|
|
7
|
+
moduleName: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
role_permissions: RolePermission[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=permission.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.entity.d.ts","sourceRoot":"","sources":["../../../src/database/entities/permission.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBACa,UAAW,SAAQ,UAAU;IAExC,cAAc,EAAE,MAAM,CAAC;IAGvB,cAAc,EAAE,MAAM,CAAC;IAGvB,qBAAqB,EAAE,MAAM,CAAC;IAG9B,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,OAAO,CAAC;IAMlB,gBAAgB,EAAE,cAAc,EAAE,CAAC;CACpC"}
|
|
@@ -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,K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,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-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kD7B"}
|
|
@@ -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":"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