@tomei/finance 0.2.15 → 0.3.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/.commitlintrc.json +22 -22
- package/.eslintrc.js +72 -72
- package/.husky/commit-msg +4 -4
- package/.husky/pre-commit +4 -4
- package/.prettierrc +4 -4
- package/CONTRIBUTING.md +30 -30
- package/LICENSE +21 -21
- package/README.md +13 -41
- package/dist/account/account.d.ts +35 -38
- package/dist/account/account.js +109 -116
- package/dist/account/account.js.map +1 -1
- package/dist/account/account.repository.d.ts +5 -16
- package/dist/account/account.repository.js +11 -46
- package/dist/account/account.repository.js.map +1 -1
- package/dist/account/entities/account.entity.d.ts +26 -26
- package/dist/account/entities/account.entity.js +198 -198
- package/dist/account/entities/fee-associated-object.entity.d.ts +6 -0
- package/dist/account/entities/fee-associated-object.entity.js +52 -0
- package/dist/account/entities/fee-associated-object.entity.js.map +1 -0
- package/dist/account/index.d.ts +6 -6
- package/dist/account/index.js +9 -9
- package/dist/account/interfaces/account-attr.interface.d.ts +29 -21
- package/dist/account/interfaces/account-attr.interface.js +2 -2
- package/dist/account/interfaces/account.repository.interface.d.ts +3 -3
- package/dist/account/interfaces/account.repository.interface.js +2 -2
- package/dist/account-system-entity/account-system-entity.d.ts +21 -21
- package/dist/account-system-entity/account-system-entity.js +96 -75
- package/dist/account-system-entity/account-system-entity.js.map +1 -1
- package/dist/account-system-entity/index.d.ts +2 -2
- package/dist/account-system-entity/index.js +5 -5
- package/dist/account-system-entity/post-history.entity.d.ts +11 -11
- package/dist/account-system-entity/post-history.entity.js +64 -64
- package/dist/account-system-entity/post-history.repository.d.ts +5 -5
- package/dist/account-system-entity/post-history.repository.js +11 -12
- package/dist/account-system-entity/post-history.repository.js.map +1 -1
- package/dist/base/account-system.interface.d.ts +7 -7
- package/dist/base/account-system.interface.js +2 -2
- package/dist/base/address.base.abstract.d.ts +4 -0
- package/dist/base/address.base.abstract.js +10 -0
- package/dist/base/address.base.abstract.js.map +1 -0
- package/dist/base/base.address.d.ts +8 -0
- package/dist/base/base.address.js +15 -0
- package/dist/base/base.address.js.map +1 -0
- package/dist/base/base.object.d.ts +7 -0
- package/dist/base/base.object.js +14 -0
- package/dist/base/base.object.js.map +1 -0
- package/dist/base/base.owner.d.ts +23 -0
- package/dist/base/base.owner.js +34 -0
- package/dist/base/base.owner.js.map +1 -0
- package/dist/base/base.repository.abstract.d.ts +12 -12
- package/dist/base/base.repository.abstract.js +21 -21
- package/dist/base/base.repository.interface.d.ts +9 -9
- package/dist/base/base.repository.interface.js +2 -2
- package/dist/base/index.d.ts +4 -6
- package/dist/base/index.js +9 -7
- package/dist/base/index.js.map +1 -1
- package/dist/base/object/base.object.abstract.d.ts +5 -5
- package/dist/base/object/base.object.abstract.js +6 -6
- package/dist/base/object/base.object.d.ts +7 -0
- package/dist/base/object/base.object.js +14 -0
- package/dist/base/object/base.object.js.map +1 -0
- package/dist/base/object/object.interface.d.ts +4 -4
- package/dist/base/object/object.interface.js +2 -2
- package/dist/base/object.base.abstract.d.ts +5 -0
- package/dist/base/object.base.abstract.js +11 -0
- package/dist/base/object.base.abstract.js.map +1 -0
- package/dist/base/owner/base.owner.abstract.d.ts +20 -20
- package/dist/base/owner/base.owner.abstract.js +7 -7
- package/dist/base/owner/base.owner.d.ts +22 -0
- package/dist/base/owner/base.owner.js +31 -0
- package/dist/base/owner/base.owner.js.map +1 -0
- package/dist/base/owner/owner.interface.d.ts +19 -19
- package/dist/base/owner/owner.interface.js +2 -2
- package/dist/base/person.base.abstract.d.ts +21 -0
- package/dist/base/person.base.abstract.js +17 -0
- package/dist/base/person.base.abstract.js.map +1 -0
- package/dist/base/repository/base.repository.abstract.d.ts +12 -0
- package/dist/base/repository/base.repository.abstract.js +22 -0
- package/dist/base/repository/base.repository.abstract.js.map +1 -0
- package/dist/base/repository/base.repository.interface.d.ts +9 -0
- package/dist/base/repository/base.repository.interface.js +3 -0
- package/dist/base/repository/base.repository.interface.js.map +1 -0
- package/dist/config.d.ts +34 -34
- package/dist/config.js +148 -148
- package/dist/customer/customer.d.ts +28 -27
- package/dist/customer/customer.js +64 -52
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/customer.repository.d.ts +0 -0
- package/dist/customer/customer.repository.js +1 -0
- package/dist/customer/customer.repository.js.map +1 -0
- package/dist/customer/entities/customer.entity.d.ts +13 -13
- package/dist/customer/entities/customer.entity.js +110 -110
- package/dist/customer/finance-customer.repository.d.ts +10 -10
- package/dist/customer/finance-customer.repository.js +37 -37
- package/dist/customer/finance-customer.repository.js.map +1 -1
- package/dist/customer/index.d.ts +7 -7
- package/dist/customer/index.js +9 -9
- package/dist/customer/interfaces/customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/customer.repository.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +10 -10
- package/dist/customer/interfaces/finance-customer-attr.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/finance-customer.repository.interface.js +2 -2
- package/dist/database.d.ts +4 -0
- package/dist/database.js +15 -0
- package/dist/database.js.map +1 -0
- package/dist/document/document-item.d.ts +22 -22
- package/dist/document/document-item.js +5 -6
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +17 -17
- package/dist/document/document-item.repository.js +50 -50
- package/dist/document/document-item.repository.js.map +1 -1
- package/dist/document/document.d.ts +64 -44
- package/dist/document/document.js +288 -141
- package/dist/document/document.js.map +1 -1
- package/dist/document/document.repository.d.ts +5 -16
- package/dist/document/document.repository.js +11 -46
- package/dist/document/document.repository.js.map +1 -1
- package/dist/document/entities/document-item.entity.d.ts +27 -27
- package/dist/document/entities/document-item.entity.js +173 -173
- package/dist/document/entities/document.entity.d.ts +22 -22
- package/dist/document/entities/document.entity.js +138 -138
- package/dist/document/index.d.ts +11 -11
- package/dist/document/index.js +19 -19
- package/dist/document/interfaces/document-attr.interface.d.ts +25 -19
- package/dist/document/interfaces/document-attr.interface.js +6 -6
- package/dist/document/interfaces/document-attr.interface.js.map +1 -1
- package/dist/document/interfaces/document-item-attr.interface.d.ts +22 -22
- package/dist/document/interfaces/document-item-attr.interface.js +6 -6
- package/dist/document/interfaces/document-item.repository.interface.d.ts +3 -3
- package/dist/document/interfaces/document-item.repository.interface.js +2 -2
- package/dist/document/interfaces/document.repository.interface.d.ts +3 -3
- package/dist/document/interfaces/document.repository.interface.js +2 -2
- package/dist/enum/doc-type.enum.d.ts +8 -7
- package/dist/enum/doc-type.enum.js +12 -11
- package/dist/enum/doc-type.enum.js.map +1 -1
- package/dist/enum/document-status.enum.d.ts +5 -4
- package/dist/enum/document-status.enum.js +9 -8
- package/dist/enum/document-status.enum.js.map +1 -1
- package/dist/enum/document-type.enum.d.ts +7 -0
- package/dist/enum/document-type.enum.js +12 -0
- package/dist/enum/document-type.enum.js.map +1 -0
- package/dist/enum/index.d.ts +8 -7
- package/dist/enum/index.js +17 -15
- package/dist/enum/index.js.map +1 -1
- package/dist/enum/intuit-client.enum.d.ts +13 -0
- package/dist/enum/intuit-client.enum.js +19 -0
- package/dist/enum/intuit-client.enum.js.map +1 -0
- package/dist/enum/payment-method.enum.d.ts +3 -3
- package/dist/enum/payment-method.enum.js +7 -7
- package/dist/enum/payment-status.enum.d.ts +4 -0
- package/dist/enum/payment-status.enum.js +9 -0
- package/dist/enum/payment-status.enum.js.map +1 -0
- package/dist/enum/payment-type.enum.d.ts +4 -4
- package/dist/enum/payment-type.enum.js +8 -8
- package/dist/enum/quick-book-client-scopes.enum.d.ts +13 -13
- package/dist/enum/quick-book-client-scopes.enum.js +18 -18
- package/dist/enum/transaction-type.enum.d.ts +4 -4
- package/dist/enum/transaction-type.enum.js +8 -8
- package/dist/finance-company/entities/finance-company.entity.d.ts +13 -0
- package/dist/finance-company/entities/finance-company.entity.js +113 -0
- package/dist/finance-company/entities/finance-company.entity.js.map +1 -0
- package/dist/finance-company/finance-company.d.ts +39 -36
- package/dist/finance-company/finance-company.entity.d.ts +13 -13
- package/dist/finance-company/finance-company.entity.js +65 -65
- package/dist/finance-company/finance-company.js +249 -210
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +5 -5
- package/dist/finance-company/finance-company.repository.js +11 -12
- package/dist/finance-company/finance-company.repository.js.map +1 -1
- package/dist/finance-company/index.d.ts +3 -3
- package/dist/finance-company/index.js +7 -7
- package/dist/finance-company/interfaces/finance-company-attr.interface.d.ts +10 -0
- package/dist/finance-company/interfaces/finance-company-attr.interface.js +3 -0
- package/dist/finance-company/interfaces/finance-company-attr.interface.js.map +1 -0
- package/dist/finance-company/interfaces/finance-company.repository.interface.d.ts +3 -0
- package/dist/finance-company/interfaces/finance-company.repository.interface.js +3 -0
- package/dist/finance-company/interfaces/finance-company.repository.interface.js.map +1 -0
- package/dist/index.d.ts +15 -9
- package/dist/index.js +28 -27
- package/dist/index.js.map +1 -1
- package/dist/interfaces/account-system-entity.interface.d.ts +7 -7
- package/dist/interfaces/account-system-entity.interface.js +2 -2
- package/dist/interfaces/account-system.interface.d.ts +13 -13
- package/dist/interfaces/account-system.interface.js +2 -2
- package/dist/interfaces/customer.repository.interface.d.ts +3 -0
- package/dist/interfaces/customer.repository.interface.js +3 -0
- package/dist/interfaces/customer.repository.interface.js.map +1 -0
- package/dist/interfaces/finance-customer.repository.interface.d.ts +3 -0
- package/dist/interfaces/finance-customer.repository.interface.js +3 -0
- package/dist/interfaces/finance-customer.repository.interface.js.map +1 -0
- package/dist/interfaces/index.d.ts +2 -2
- package/dist/interfaces/index.js +2 -2
- package/dist/interfaces/systemConfig.interface.d.ts +0 -0
- package/dist/interfaces/systemConfig.interface.js +1 -0
- package/dist/interfaces/systemConfig.interface.js.map +1 -0
- package/dist/intuit-client/client.d.ts +14 -0
- package/dist/intuit-client/client.js +44 -0
- package/dist/intuit-client/client.js.map +1 -0
- package/dist/journal-entry/entities/journal-entry.entity.d.ts +16 -16
- package/dist/journal-entry/entities/journal-entry.entity.js +128 -128
- package/dist/journal-entry/index.d.ts +6 -6
- package/dist/journal-entry/index.js +9 -9
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +11 -11
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.js +2 -2
- package/dist/journal-entry/interfaces/journal-entry.repository.interface.d.ts +10 -10
- package/dist/journal-entry/interfaces/journal-entry.repository.interface.js +2 -2
- package/dist/journal-entry/journal-entry.d.ts +43 -45
- package/dist/journal-entry/journal-entry.js +151 -137
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/journal-entry/journal-entry.repository.d.ts +5 -15
- package/dist/journal-entry/journal-entry.repository.js +11 -44
- package/dist/journal-entry/journal-entry.repository.js.map +1 -1
- package/dist/ledger-transaction/entities/ledger-transaction.entity.d.ts +19 -19
- package/dist/ledger-transaction/entities/ledger-transaction.entity.js +156 -156
- package/dist/ledger-transaction/index.d.ts +6 -6
- package/dist/ledger-transaction/index.js +9 -9
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +18 -18
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.js +2 -2
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.d.ts +5 -5
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.js +2 -2
- package/dist/ledger-transaction/ledger-transaction.d.ts +35 -35
- package/dist/ledger-transaction/ledger-transaction.js +82 -70
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.repository.d.ts +10 -10
- package/dist/ledger-transaction/ledger-transaction.repository.js +38 -38
- package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
- package/dist/models/account.entity.d.ts +30 -0
- package/dist/models/account.entity.js +233 -0
- package/dist/models/account.entity.js.map +1 -0
- package/dist/models/customer.entity.d.ts +13 -0
- package/dist/models/customer.entity.js +110 -0
- package/dist/models/customer.entity.js.map +1 -0
- package/dist/models/document-item.entity.d.ts +27 -0
- package/dist/models/document-item.entity.js +173 -0
- package/dist/models/document-item.entity.js.map +1 -0
- package/dist/models/document.entity.d.ts +30 -0
- package/dist/models/document.entity.js +222 -0
- package/dist/models/document.entity.js.map +1 -0
- package/dist/models/finance-company.entity.d.ts +9 -0
- package/dist/models/finance-company.entity.js +45 -0
- package/dist/models/finance-company.entity.js.map +1 -0
- package/dist/models/journal-entry.entity.d.ts +16 -0
- package/dist/models/journal-entry.entity.js +128 -0
- package/dist/models/journal-entry.entity.js.map +1 -0
- package/dist/models/ledger-transaction.entity.d.ts +19 -0
- package/dist/models/ledger-transaction.entity.js +156 -0
- package/dist/models/ledger-transaction.entity.js.map +1 -0
- package/dist/models/payment-item.entity.d.ts +11 -0
- package/dist/models/payment-item.entity.js +68 -0
- package/dist/models/payment-item.entity.js.map +1 -0
- package/dist/models/payment-method-type.entity.d.ts +13 -0
- package/dist/models/payment-method-type.entity.js +86 -0
- package/dist/models/payment-method-type.entity.js.map +1 -0
- package/dist/models/payment-method.entity.d.ts +7 -0
- package/dist/models/payment-method.entity.js +46 -0
- package/dist/models/payment-method.entity.js.map +1 -0
- package/dist/models/payment.entity.d.ts +30 -0
- package/dist/models/payment.entity.js +209 -0
- package/dist/models/payment.entity.js.map +1 -0
- package/dist/models/post-history.entity.d.ts +11 -0
- package/dist/models/post-history.entity.js +64 -0
- package/dist/models/post-history.entity.js.map +1 -0
- package/dist/payment/entities/payment-item.entity.d.ts +10 -10
- package/dist/payment/entities/payment-item.entity.js +61 -61
- package/dist/payment/entities/payment.entity.d.ts +25 -25
- package/dist/payment/entities/payment.entity.js +151 -151
- package/dist/payment/index.d.ts +10 -10
- package/dist/payment/index.js +17 -17
- package/dist/payment/interfaces/payment-attr.interface.d.ts +23 -20
- package/dist/payment/interfaces/payment-attr.interface.js +6 -6
- package/dist/payment/interfaces/payment-attr.interface.js.map +1 -1
- package/dist/payment/interfaces/payment-item-attr.interface.d.ts +8 -7
- package/dist/payment/interfaces/payment-item-attr.interface.js +6 -6
- package/dist/payment/interfaces/payment-item-attr.interface.js.map +1 -1
- package/dist/payment/interfaces/payment-item.repository.interface.d.ts +3 -3
- package/dist/payment/interfaces/payment-item.repository.interface.js +2 -2
- package/dist/payment/interfaces/payment-params.interface.d.ts +7 -7
- package/dist/payment/interfaces/payment-params.interface.js +2 -2
- package/dist/payment/interfaces/payment.repository.interface.d.ts +3 -3
- package/dist/payment/interfaces/payment.repository.interface.js +2 -2
- package/dist/payment/payment-item.repository.d.ts +5 -17
- package/dist/payment/payment-item.repository.js +11 -50
- package/dist/payment/payment-item.repository.js.map +1 -1
- package/dist/payment/payment.d.ts +50 -52
- package/dist/payment/payment.js +132 -138
- package/dist/payment/payment.js.map +1 -1
- package/dist/payment/payment.repository.d.ts +5 -16
- package/dist/payment/payment.repository.js +11 -46
- package/dist/payment/payment.repository.js.map +1 -1
- package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +8 -0
- package/dist/payment-item/interfaces/payment-item-attr.interface.js +7 -0
- package/dist/payment-item/interfaces/payment-item-attr.interface.js.map +1 -0
- package/{src/payment/interfaces/payment-item.repository.interface.ts → dist/payment-item/interfaces/payment-item.repository.interface.d.ts} +3 -4
- package/dist/payment-item/interfaces/payment-item.repository.interface.js +3 -0
- package/dist/payment-item/interfaces/payment-item.repository.interface.js.map +1 -0
- package/dist/payment-item/payment-item.d.ts +22 -0
- package/dist/payment-item/payment-item.js +42 -0
- package/dist/payment-item/payment-item.js.map +1 -0
- package/dist/payment-item/payment-item.repository.d.ts +5 -0
- package/dist/payment-item/payment-item.repository.js +12 -0
- package/dist/payment-item/payment-item.repository.js.map +1 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +4 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.js +3 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.js.map +1 -0
- package/dist/payment-method/payment-method.d.ts +10 -0
- package/dist/payment-method/payment-method.js +15 -0
- package/dist/payment-method/payment-method.js.map +1 -0
- package/dist/payment-method/payment-method.repository.d.ts +5 -0
- package/dist/payment-method/payment-method.repository.js +12 -0
- package/dist/payment-method/payment-method.repository.js.map +1 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +3 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js.map +1 -0
- package/dist/payment-method-type/payment-method-type.d.ts +14 -0
- package/dist/payment-method-type/payment-method-type.js +15 -0
- package/dist/payment-method-type/payment-method-type.js.map +1 -0
- package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -0
- package/dist/payment-method-type/payment-method-type.repository.js +12 -0
- package/dist/payment-method-type/payment-method-type.repository.js.map +1 -0
- package/dist/quickbook-client/client.d.ts +39 -26
- package/dist/quickbook-client/client.js +204 -90
- package/dist/quickbook-client/client.js.map +1 -1
- package/dist/quickbook-client/constant.d.ts +1 -1
- package/dist/quickbook-client/constant.js +4 -4
- package/dist/quickbook-client/index.d.ts +5 -5
- package/dist/quickbook-client/index.js +5 -9
- package/dist/quickbook-client/index.js.map +1 -1
- package/dist/quickbook-client/interfaces/quickbook-client-call-options.interface.d.ts +6 -6
- package/dist/quickbook-client/interfaces/quickbook-client-call-options.interface.js +2 -2
- package/dist/quickbook-client/interfaces/quickbook-client-create-account-options.interface.d.ts +9 -0
- package/dist/quickbook-client/interfaces/quickbook-client-create-account-options.interface.js +3 -0
- package/dist/quickbook-client/interfaces/quickbook-client-create-account-options.interface.js.map +1 -0
- package/dist/quickbook-client/interfaces/quickbook-client-create-customer-options.interface.d.ts +7 -0
- package/dist/quickbook-client/interfaces/quickbook-client-create-customer-options.interface.js +3 -0
- package/dist/quickbook-client/interfaces/quickbook-client-create-customer-options.interface.js.map +1 -0
- package/dist/quickbook-client/interfaces/quickbook-client-options.interface.d.ts +8 -8
- package/dist/quickbook-client/interfaces/quickbook-client-options.interface.js +2 -2
- package/dist/quickbook-client/quickbook-client.module-definition.d.ts +2 -2
- package/dist/quickbook-client/quickbook-client.module-definition.js +8 -8
- package/dist/quickbook-client/quickbook-client.module.d.ts +6 -6
- package/dist/quickbook-client/quickbook-client.module.js +33 -33
- package/dist/test.d.ts +1 -1
- package/dist/test.js +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/img.png +0 -0
- package/img_1.png +0 -0
- package/invoice-template/assets/css/style.css.map +12 -12
- package/invoice-template/assets/css/style.min.css +1 -1
- package/invoice-template/assets/img/arrow_bg.svg +11 -11
- package/invoice-template/assets/img/coffy_shop_img.svg +18 -18
- package/invoice-template/assets/img/logo_accent.svg +3 -3
- package/invoice-template/assets/img/logo_white.svg +4 -4
- package/invoice-template/assets/img/sign.svg +12 -12
- package/invoice-template/assets/js/html2canvas.min.js +10379 -10379
- package/invoice-template/assets/js/jquery.min.js +1 -1
- package/invoice-template/assets/sass/common/_color_variable.scss +12 -12
- package/invoice-template/assets/sass/common/_typography.scss +178 -178
- package/invoice-template/assets/sass/style.scss +12 -12
- package/migrations/finance-account-migration.js +97 -83
- package/migrations/finance-company-migration.js +29 -43
- package/migrations/finance-customer-migration.js +51 -51
- package/migrations/finance-document-item-migration.js +111 -111
- package/migrations/finance-document-migration.js +108 -77
- package/migrations/finance-payment-item-migration.js +43 -39
- package/migrations/finance-payment-method-migration.js +21 -0
- package/migrations/finance-payment-method-type-migration.js +55 -0
- package/migrations/finance-payment-migration.js +106 -89
- package/migrations/finance-post-history-migration.js +45 -45
- package/nest-cli.json +19 -19
- package/package.json +79 -76
- package/src/account/account.repository.ts +11 -44
- package/src/account/account.ts +137 -157
- package/src/account/interfaces/account-attr.interface.ts +31 -23
- package/src/account-system-entity/account-system-entity.ts +106 -102
- package/src/account-system-entity/post-history.repository.ts +11 -12
- package/src/config.ts +178 -178
- package/src/customer/customer.ts +99 -92
- package/src/customer/finance-customer.repository.ts +30 -30
- package/src/customer/interfaces/customer.repository.interface.ts +3 -3
- package/src/customer/interfaces/finance-customer-attr.interface.ts +10 -10
- package/src/customer/interfaces/finance-customer.repository.interface.ts +4 -4
- package/src/database.ts +15 -0
- package/src/document/document-item.repository.ts +49 -49
- package/src/document/document-item.ts +3 -3
- package/src/document/document.repository.ts +11 -41
- package/src/document/document.ts +299 -83
- package/src/document/interfaces/document-attr.interface.ts +26 -20
- package/src/document/interfaces/document-item-attr.interface.ts +22 -22
- package/src/document/interfaces/document-item.repository.interface.ts +4 -4
- package/src/enum/doc-type.enum.ts +8 -7
- package/src/enum/document-status.enum.ts +3 -2
- package/src/enum/index.ts +17 -15
- package/src/enum/payment-method.enum.ts +3 -3
- package/src/enum/payment-status.enum.ts +4 -0
- package/src/enum/payment-type.enum.ts +4 -4
- package/src/finance-company/finance-company.repository.ts +11 -12
- package/src/finance-company/finance-company.ts +67 -41
- package/src/index.ts +28 -9
- package/src/interfaces/account-system.interface.ts +20 -14
- package/src/interfaces/index.ts +3 -3
- package/src/journal-entry/journal-entry.repository.ts +6 -35
- package/src/journal-entry/journal-entry.ts +16 -19
- package/src/ledger-transaction/ledger-transaction.repository.ts +1 -1
- package/src/ledger-transaction/ledger-transaction.ts +1 -1
- package/src/{account/entities → models}/account.entity.ts +206 -171
- package/src/{customer/entities → models}/customer.entity.ts +93 -93
- package/src/{document/entities → models}/document-item.entity.ts +143 -143
- package/src/models/document.entity.ts +193 -0
- package/src/{finance-company → models}/finance-company.entity.ts +25 -41
- package/src/{journal-entry/entities → models}/journal-entry.entity.ts +3 -3
- package/src/{ledger-transaction/entities → models}/ledger-transaction.entity.ts +3 -3
- package/src/{payment/entities → models}/payment-item.entity.ts +53 -47
- package/src/models/payment-method-type.entity.ts +70 -0
- package/src/models/payment-method.entity.ts +28 -0
- package/src/models/payment.entity.ts +180 -0
- package/src/{account-system-entity → models}/post-history.entity.ts +41 -41
- package/src/payment/interfaces/payment-attr.interface.ts +24 -21
- package/src/payment/interfaces/payment-params.interface.ts +8 -8
- package/src/payment/payment.repository.ts +11 -41
- package/src/payment/payment.ts +175 -203
- package/src/{payment → payment-item}/interfaces/payment-item-attr.interface.ts +8 -7
- package/src/payment-item/payment-item.repository.ts +11 -0
- package/src/payment-item/payment-item.ts +58 -0
- package/src/payment-method/interfaces/payment-method-attr.interface.ts +4 -0
- package/src/payment-method/payment-method.repository.ts +11 -0
- package/src/payment-method/payment-method.ts +20 -0
- package/src/payment-method-type/interfaces/payment-method-type-attr.interface.ts +8 -0
- package/src/payment-method-type/payment-method-type.repository.ts +11 -0
- package/src/payment-method-type/payment-method-type.ts +24 -0
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +22 -30
- package/tslint.json +18 -18
- package/src/account/index.ts +0 -17
- package/src/account/interfaces/account.repository.interface.ts +0 -4
- package/src/account-system-entity/index.ts +0 -3
- package/src/customer/index.ts +0 -15
- package/src/document/entities/document.entity.ts +0 -106
- package/src/document/index.ts +0 -23
- package/src/document/interfaces/document.repository.interface.ts +0 -4
- package/src/finance-company/index.ts +0 -4
- package/src/journal-entry/index.ts +0 -13
- package/src/journal-entry/interfaces/journal-entry.repository.interface.ts +0 -11
- package/src/ledger-transaction/index.ts +0 -13
- package/src/payment/entities/payment.entity.ts +0 -125
- package/src/payment/index.ts +0 -21
- package/src/payment/interfaces/payment.repository.interface.ts +0 -4
- package/src/payment/payment-item.repository.ts +0 -49
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import Account from './account/account';
|
|
2
|
+
import FinanceCompany from './finance-company/finance-company';
|
|
3
|
+
import FinanceCustomerBase from './customer/customer';
|
|
4
|
+
import Document from './document/document';
|
|
5
|
+
import DocumentItem from './document/document-item';
|
|
6
|
+
import JournalEntry from './journal-entry/journal-entry';
|
|
7
|
+
import LedgerTransaction from './ledger-transaction/ledger-transaction';
|
|
8
|
+
import Payment from './payment/payment';
|
|
9
|
+
import PaymentItem from './payment-item/payment-item';
|
|
10
|
+
import PaymentMethod from './payment-method/payment-method';
|
|
11
|
+
import PaymentMethodType from './payment-method-type/payment-method-type';
|
|
12
|
+
export { FinanceCompany, Account, FinanceCustomerBase, Document, DocumentItem, JournalEntry, LedgerTransaction, Payment, PaymentItem, PaymentMethod, PaymentMethodType, };
|
|
13
|
+
export * as FinanceEnum from './enum';
|
|
14
|
+
export * as FinanceInterfaces from './interfaces';
|
|
15
|
+
export * as FinanceDb from './database';
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinanceDb = exports.FinanceInterfaces = exports.FinanceEnum = exports.PaymentMethodType = exports.PaymentMethod = exports.PaymentItem = exports.Payment = exports.LedgerTransaction = exports.JournalEntry = exports.DocumentItem = exports.Document = exports.FinanceCustomerBase = exports.Account = exports.FinanceCompany = void 0;
|
|
4
|
+
const account_1 = require("./account/account");
|
|
5
|
+
exports.Account = account_1.default;
|
|
6
|
+
const finance_company_1 = require("./finance-company/finance-company");
|
|
7
|
+
exports.FinanceCompany = finance_company_1.default;
|
|
8
|
+
const customer_1 = require("./customer/customer");
|
|
9
|
+
exports.FinanceCustomerBase = customer_1.default;
|
|
10
|
+
const document_1 = require("./document/document");
|
|
11
|
+
exports.Document = document_1.default;
|
|
12
|
+
const document_item_1 = require("./document/document-item");
|
|
13
|
+
exports.DocumentItem = document_item_1.default;
|
|
14
|
+
const journal_entry_1 = require("./journal-entry/journal-entry");
|
|
15
|
+
exports.JournalEntry = journal_entry_1.default;
|
|
16
|
+
const ledger_transaction_1 = require("./ledger-transaction/ledger-transaction");
|
|
17
|
+
exports.LedgerTransaction = ledger_transaction_1.default;
|
|
18
|
+
const payment_1 = require("./payment/payment");
|
|
19
|
+
exports.Payment = payment_1.default;
|
|
20
|
+
const payment_item_1 = require("./payment-item/payment-item");
|
|
21
|
+
exports.PaymentItem = payment_item_1.default;
|
|
22
|
+
const payment_method_1 = require("./payment-method/payment-method");
|
|
23
|
+
exports.PaymentMethod = payment_method_1.default;
|
|
24
|
+
const payment_method_type_1 = require("./payment-method-type/payment-method-type");
|
|
25
|
+
exports.PaymentMethodType = payment_method_type_1.default;
|
|
26
|
+
exports.FinanceEnum = require("./enum");
|
|
27
|
+
exports.FinanceInterfaces = require("./interfaces");
|
|
28
|
+
exports.FinanceDb = require("./database");
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AActC,kBAdK,iBAAO,CAcL;AAbT,uEAA+D;AAY7D,yBAZK,yBAAc,CAYL;AAXhB,kDAAsD;AAapD,8BAbK,kBAAmB,CAaL;AAZrB,kDAA2C;AAazC,mBAbK,kBAAQ,CAaL;AAZV,4DAAoD;AAalD,uBAbK,uBAAY,CAaL;AAZd,iEAAyD;AAavD,uBAbK,uBAAY,CAaL;AAZd,gFAAwE;AAatE,4BAbK,4BAAiB,CAaL;AAZnB,+CAAwC;AAatC,kBAbK,iBAAO,CAaL;AAZT,8DAAsD;AAapD,sBAbK,sBAAW,CAaL;AAZb,oEAA4D;AAa1D,wBAbK,wBAAa,CAaL;AAZf,mFAA0E;AAaxE,4BAbK,6BAAiB,CAaL;AAEnB,wCAAsC;AACtC,oDAAkD;AAClD,0CAAwC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IAccountSystemEntity {
|
|
2
|
-
AccSystemCode: string;
|
|
3
|
-
PostedToAccSystemYN: string;
|
|
4
|
-
AccSystemRefId: string;
|
|
5
|
-
PostedById: string;
|
|
6
|
-
PostedDateTime: Date;
|
|
7
|
-
}
|
|
1
|
+
export interface IAccountSystemEntity {
|
|
2
|
+
AccSystemCode: string;
|
|
3
|
+
PostedToAccSystemYN: string;
|
|
4
|
+
AccSystemRefId: string;
|
|
5
|
+
PostedById: string;
|
|
6
|
+
PostedDateTime: Date;
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=account-system-entity.interface.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export interface IAccountSystem {
|
|
4
|
-
createAccount(payload: any): Promise<any>;
|
|
5
|
-
createInvoice(payload: any): Promise<any>;
|
|
6
|
-
createDebitNote(payload: any): Promise<any>;
|
|
7
|
-
createCreditNote(payload: any): Promise<any>;
|
|
8
|
-
postTransaction(payload: any): Promise<any>;
|
|
9
|
-
createCustomer(payload: any): Promise<any>;
|
|
10
|
-
makePayment(customer:
|
|
11
|
-
collectPayments(customer:
|
|
12
|
-
postJournalEntry(payload: any): Promise<any>;
|
|
13
|
-
}
|
|
1
|
+
import Payment from '../payment/payment';
|
|
2
|
+
import FinanceCustomerBase from '../customer/customer';
|
|
3
|
+
export interface IAccountSystem {
|
|
4
|
+
createAccount(payload: any): Promise<any>;
|
|
5
|
+
createInvoice(payload: any): Promise<any>;
|
|
6
|
+
createDebitNote(payload: any): Promise<any>;
|
|
7
|
+
createCreditNote(payload: any): Promise<any>;
|
|
8
|
+
postTransaction(payload: any): Promise<any>;
|
|
9
|
+
createCustomer(payload: any): Promise<any>;
|
|
10
|
+
makePayment(customer: FinanceCustomerBase, paymentInfo: Payment): Promise<any>;
|
|
11
|
+
collectPayments(customer: FinanceCustomerBase, paymentInfo: Payment): Promise<any>;
|
|
12
|
+
postJournalEntry(payload: any): Promise<any>;
|
|
13
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=account-system.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.repository.interface.js","sourceRoot":"","sources":["../../src/interfaces/customer.repository.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-customer.repository.interface.js","sourceRoot":"","sources":["../../src/interfaces/finance-customer.repository.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IAccountSystem } from '../interfaces/account-system.interface';
|
|
2
|
-
export { IAccountSystem };
|
|
1
|
+
import { IAccountSystem } from '../interfaces/account-system.interface';
|
|
2
|
+
export { IAccountSystem };
|
package/dist/interfaces/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=systemConfig.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemConfig.interface.js","sourceRoot":"","sources":["../../src/interfaces/systemConfig.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as OAuthClient from 'intuit-oauth';
|
|
2
|
+
import { ClientScopes } from 'src/enum/intuit-client.enum';
|
|
3
|
+
export declare class IntuitClient {
|
|
4
|
+
private client;
|
|
5
|
+
accessToken: string;
|
|
6
|
+
refreshToken: string;
|
|
7
|
+
constructor();
|
|
8
|
+
connect(scopes: ClientScopes[]): Promise<any>;
|
|
9
|
+
authCallback(url: string): Promise<void>;
|
|
10
|
+
isTokenValid(): any;
|
|
11
|
+
refreshAccessToken(): Promise<void>;
|
|
12
|
+
logout(): Promise<void>;
|
|
13
|
+
getClient(): OAuthClient;
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntuitClient = void 0;
|
|
4
|
+
const OAuthClient = require("intuit-oauth");
|
|
5
|
+
class IntuitClient {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.client = new OAuthClient({
|
|
8
|
+
clientId: process.env.QUICKBOOK_API_KEY,
|
|
9
|
+
clientSecret: process.env.QUICKBOOK_API_SECRET,
|
|
10
|
+
environment: process.env.NODE_ENV === 'production' ? 'production' : 'sandbox',
|
|
11
|
+
redirectUri: process.env.INTUIT_REDIRECT_URL,
|
|
12
|
+
logging: process.env.NODE_ENV === 'production' ? false : true,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
connect(scopes) {
|
|
16
|
+
try {
|
|
17
|
+
const authUrl = this.client.authorizeUri({
|
|
18
|
+
scope: scopes,
|
|
19
|
+
state: 'testState',
|
|
20
|
+
});
|
|
21
|
+
return authUrl;
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
async authCallback(url) {
|
|
28
|
+
await this.client.createToken(url);
|
|
29
|
+
}
|
|
30
|
+
isTokenValid() {
|
|
31
|
+
return this.client.isAccessTokenValid();
|
|
32
|
+
}
|
|
33
|
+
async refreshAccessToken() {
|
|
34
|
+
await this.client.refresh();
|
|
35
|
+
}
|
|
36
|
+
async logout() {
|
|
37
|
+
await this.client.revokeToken();
|
|
38
|
+
}
|
|
39
|
+
async getClient() {
|
|
40
|
+
return this.client;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.IntuitClient = IntuitClient;
|
|
44
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/intuit-client/client.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAG5C,MAAa,YAAY;IAKvB;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,WAAW,CAAC;YAC5B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;YACvC,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;YAC9C,WAAW,EACT,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;YAClE,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;YAC5C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;SAC9D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,MAAsB;QAC5B,IAAI;YACF,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;gBACvC,KAAK,EAAE,MAAM;gBACb,KAAK,EAAE,WAAW;aACnB,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC;SAChB;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAW;QAC5B,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAhDD,oCAgDC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { FinanceCompanyModel } from '../../finance-company';
|
|
3
|
-
import { LedgerTransactionModel } from '../../ledger-transaction/entities/ledger-transaction.entity';
|
|
4
|
-
export declare class JournalEntryModel extends Model {
|
|
5
|
-
CompanyId: string;
|
|
6
|
-
JournalEntryId: string;
|
|
7
|
-
Date: Date;
|
|
8
|
-
Name: string;
|
|
9
|
-
Description: string;
|
|
10
|
-
AccSystemRefId: string;
|
|
11
|
-
PostedToAccSystemYN: string;
|
|
12
|
-
PostedById: string;
|
|
13
|
-
PostedDateTime: Date;
|
|
14
|
-
LedgerTransactions: LedgerTransactionModel[];
|
|
15
|
-
FinanceCompany: FinanceCompanyModel;
|
|
16
|
-
}
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { FinanceCompanyModel } from '../../finance-company';
|
|
3
|
+
import { LedgerTransactionModel } from '../../ledger-transaction/entities/ledger-transaction.entity';
|
|
4
|
+
export declare class JournalEntryModel extends Model {
|
|
5
|
+
CompanyId: string;
|
|
6
|
+
JournalEntryId: string;
|
|
7
|
+
Date: Date;
|
|
8
|
+
Name: string;
|
|
9
|
+
Description: string;
|
|
10
|
+
AccSystemRefId: string;
|
|
11
|
+
PostedToAccSystemYN: string;
|
|
12
|
+
PostedById: string;
|
|
13
|
+
PostedDateTime: Date;
|
|
14
|
+
LedgerTransactions: LedgerTransactionModel[];
|
|
15
|
+
FinanceCompany: FinanceCompanyModel;
|
|
16
|
+
}
|
|
@@ -1,129 +1,129 @@
|
|
|
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.JournalEntryModel = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
15
|
-
const finance_company_1 = require("../../finance-company");
|
|
16
|
-
const ledger_transaction_entity_1 = require("../../ledger-transaction/entities/ledger-transaction.entity");
|
|
17
|
-
let JournalEntryModel = class JournalEntryModel extends sequelize_typescript_1.Model {
|
|
18
|
-
};
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)({
|
|
21
|
-
example: 'cl6nzvo780000qcw38ihpd8w6',
|
|
22
|
-
description: 'CompanyId',
|
|
23
|
-
}),
|
|
24
|
-
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_1.FinanceCompanyModel),
|
|
25
|
-
(0, sequelize_typescript_1.Column)({
|
|
26
|
-
allowNull: false,
|
|
27
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
28
|
-
}),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], JournalEntryModel.prototype, "CompanyId", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'JournalEntryId' }),
|
|
33
|
-
(0, sequelize_typescript_1.Column)({
|
|
34
|
-
primaryKey: true,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], JournalEntryModel.prototype, "JournalEntryId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Date' }),
|
|
42
|
-
(0, sequelize_typescript_1.Column)({
|
|
43
|
-
allowNull: true,
|
|
44
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", Date)
|
|
47
|
-
], JournalEntryModel.prototype, "Date", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({
|
|
50
|
-
type: String,
|
|
51
|
-
description: 'Name of the journal entry',
|
|
52
|
-
}),
|
|
53
|
-
(0, sequelize_typescript_1.Column)({
|
|
54
|
-
allowNull: false,
|
|
55
|
-
type: sequelize_typescript_1.DataType.STRING(200),
|
|
56
|
-
}),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], JournalEntryModel.prototype, "Name", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, swagger_1.ApiProperty)({
|
|
61
|
-
type: String,
|
|
62
|
-
description: 'Description of the journal entry',
|
|
63
|
-
}),
|
|
64
|
-
(0, sequelize_typescript_1.Column)({
|
|
65
|
-
allowNull: true,
|
|
66
|
-
type: sequelize_typescript_1.DataType.STRING(1000),
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], JournalEntryModel.prototype, "Description", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, swagger_1.ApiProperty)({
|
|
72
|
-
type: String,
|
|
73
|
-
description: 'Account Customer Id in API',
|
|
74
|
-
}),
|
|
75
|
-
(0, sequelize_typescript_1.Column)({
|
|
76
|
-
allowNull: true,
|
|
77
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
78
|
-
}),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], JournalEntryModel.prototype, "AccSystemRefId", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, swagger_1.ApiProperty)({
|
|
83
|
-
example: 'N',
|
|
84
|
-
description: 'PostedToAccSystemYN',
|
|
85
|
-
}),
|
|
86
|
-
(0, sequelize_typescript_1.Column)({
|
|
87
|
-
allowNull: false,
|
|
88
|
-
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
89
|
-
}),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], JournalEntryModel.prototype, "PostedToAccSystemYN", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, swagger_1.ApiProperty)({
|
|
94
|
-
example: '138140891dd211b288',
|
|
95
|
-
description: 'PostedById',
|
|
96
|
-
}),
|
|
97
|
-
(0, sequelize_typescript_1.Column)({
|
|
98
|
-
allowNull: false,
|
|
99
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
100
|
-
}),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], JournalEntryModel.prototype, "PostedById", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, swagger_1.ApiProperty)({
|
|
105
|
-
example: new Date(),
|
|
106
|
-
description: 'PostedToAccSystem Date',
|
|
107
|
-
}),
|
|
108
|
-
(0, sequelize_typescript_1.Column)({
|
|
109
|
-
allowNull: true,
|
|
110
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
111
|
-
}),
|
|
112
|
-
__metadata("design:type", Date)
|
|
113
|
-
], JournalEntryModel.prototype, "PostedDateTime", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, sequelize_typescript_1.HasMany)(() => ledger_transaction_entity_1.LedgerTransactionModel),
|
|
116
|
-
__metadata("design:type", Array)
|
|
117
|
-
], JournalEntryModel.prototype, "LedgerTransactions", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_1.FinanceCompanyModel),
|
|
120
|
-
__metadata("design:type", finance_company_1.FinanceCompanyModel)
|
|
121
|
-
], JournalEntryModel.prototype, "FinanceCompany", void 0);
|
|
122
|
-
JournalEntryModel = __decorate([
|
|
123
|
-
(0, sequelize_typescript_1.Table)({
|
|
124
|
-
tableName: 'finance_JournalEntry',
|
|
125
|
-
timestamps: false,
|
|
126
|
-
})
|
|
127
|
-
], JournalEntryModel);
|
|
128
|
-
exports.JournalEntryModel = JournalEntryModel;
|
|
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.JournalEntryModel = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
15
|
+
const finance_company_1 = require("../../finance-company");
|
|
16
|
+
const ledger_transaction_entity_1 = require("../../ledger-transaction/entities/ledger-transaction.entity");
|
|
17
|
+
let JournalEntryModel = class JournalEntryModel extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
example: 'cl6nzvo780000qcw38ihpd8w6',
|
|
22
|
+
description: 'CompanyId',
|
|
23
|
+
}),
|
|
24
|
+
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_1.FinanceCompanyModel),
|
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
|
26
|
+
allowNull: false,
|
|
27
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], JournalEntryModel.prototype, "CompanyId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'JournalEntryId' }),
|
|
33
|
+
(0, sequelize_typescript_1.Column)({
|
|
34
|
+
primaryKey: true,
|
|
35
|
+
allowNull: false,
|
|
36
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], JournalEntryModel.prototype, "JournalEntryId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Date' }),
|
|
42
|
+
(0, sequelize_typescript_1.Column)({
|
|
43
|
+
allowNull: true,
|
|
44
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], JournalEntryModel.prototype, "Date", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
type: String,
|
|
51
|
+
description: 'Name of the journal entry',
|
|
52
|
+
}),
|
|
53
|
+
(0, sequelize_typescript_1.Column)({
|
|
54
|
+
allowNull: false,
|
|
55
|
+
type: sequelize_typescript_1.DataType.STRING(200),
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], JournalEntryModel.prototype, "Name", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
type: String,
|
|
62
|
+
description: 'Description of the journal entry',
|
|
63
|
+
}),
|
|
64
|
+
(0, sequelize_typescript_1.Column)({
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: sequelize_typescript_1.DataType.STRING(1000),
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], JournalEntryModel.prototype, "Description", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
type: String,
|
|
73
|
+
description: 'Account Customer Id in API',
|
|
74
|
+
}),
|
|
75
|
+
(0, sequelize_typescript_1.Column)({
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], JournalEntryModel.prototype, "AccSystemRefId", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({
|
|
83
|
+
example: 'N',
|
|
84
|
+
description: 'PostedToAccSystemYN',
|
|
85
|
+
}),
|
|
86
|
+
(0, sequelize_typescript_1.Column)({
|
|
87
|
+
allowNull: false,
|
|
88
|
+
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], JournalEntryModel.prototype, "PostedToAccSystemYN", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
example: '138140891dd211b288',
|
|
95
|
+
description: 'PostedById',
|
|
96
|
+
}),
|
|
97
|
+
(0, sequelize_typescript_1.Column)({
|
|
98
|
+
allowNull: false,
|
|
99
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
100
|
+
}),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], JournalEntryModel.prototype, "PostedById", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({
|
|
105
|
+
example: new Date(),
|
|
106
|
+
description: 'PostedToAccSystem Date',
|
|
107
|
+
}),
|
|
108
|
+
(0, sequelize_typescript_1.Column)({
|
|
109
|
+
allowNull: true,
|
|
110
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", Date)
|
|
113
|
+
], JournalEntryModel.prototype, "PostedDateTime", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, sequelize_typescript_1.HasMany)(() => ledger_transaction_entity_1.LedgerTransactionModel),
|
|
116
|
+
__metadata("design:type", Array)
|
|
117
|
+
], JournalEntryModel.prototype, "LedgerTransactions", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_1.FinanceCompanyModel),
|
|
120
|
+
__metadata("design:type", finance_company_1.FinanceCompanyModel)
|
|
121
|
+
], JournalEntryModel.prototype, "FinanceCompany", void 0);
|
|
122
|
+
JournalEntryModel = __decorate([
|
|
123
|
+
(0, sequelize_typescript_1.Table)({
|
|
124
|
+
tableName: 'finance_JournalEntry',
|
|
125
|
+
timestamps: false,
|
|
126
|
+
})
|
|
127
|
+
], JournalEntryModel);
|
|
128
|
+
exports.JournalEntryModel = JournalEntryModel;
|
|
129
129
|
//# sourceMappingURL=journal-entry.entity.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JournalEntry } from './journal-entry';
|
|
2
|
-
import { IJournalEntryRepository } from './interfaces/journal-entry.repository.interface';
|
|
3
|
-
import { JournalEntryRepository } from './journal-entry.repository';
|
|
4
|
-
import { JournalEntryModel } from './entities/journal-entry.entity';
|
|
5
|
-
import { IJournalEntryAttr } from './interfaces/journal-entry-attr.interface';
|
|
6
|
-
export { JournalEntry, IJournalEntryRepository, JournalEntryRepository, JournalEntryModel, IJournalEntryAttr, };
|
|
1
|
+
import { JournalEntry } from './journal-entry';
|
|
2
|
+
import { IJournalEntryRepository } from './interfaces/journal-entry.repository.interface';
|
|
3
|
+
import { JournalEntryRepository } from './journal-entry.repository';
|
|
4
|
+
import { JournalEntryModel } from './entities/journal-entry.entity';
|
|
5
|
+
import { IJournalEntryAttr } from './interfaces/journal-entry-attr.interface';
|
|
6
|
+
export { JournalEntry, IJournalEntryRepository, JournalEntryRepository, JournalEntryModel, IJournalEntryAttr, };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JournalEntryModel = exports.JournalEntryRepository = exports.JournalEntry = void 0;
|
|
4
|
-
const journal_entry_1 = require("./journal-entry");
|
|
5
|
-
Object.defineProperty(exports, "JournalEntry", { enumerable: true, get: function () { return journal_entry_1.JournalEntry; } });
|
|
6
|
-
const journal_entry_repository_1 = require("./journal-entry.repository");
|
|
7
|
-
Object.defineProperty(exports, "JournalEntryRepository", { enumerable: true, get: function () { return journal_entry_repository_1.JournalEntryRepository; } });
|
|
8
|
-
const journal_entry_entity_1 = require("./entities/journal-entry.entity");
|
|
9
|
-
Object.defineProperty(exports, "JournalEntryModel", { enumerable: true, get: function () { return journal_entry_entity_1.JournalEntryModel; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JournalEntryModel = exports.JournalEntryRepository = exports.JournalEntry = void 0;
|
|
4
|
+
const journal_entry_1 = require("./journal-entry");
|
|
5
|
+
Object.defineProperty(exports, "JournalEntry", { enumerable: true, get: function () { return journal_entry_1.JournalEntry; } });
|
|
6
|
+
const journal_entry_repository_1 = require("./journal-entry.repository");
|
|
7
|
+
Object.defineProperty(exports, "JournalEntryRepository", { enumerable: true, get: function () { return journal_entry_repository_1.JournalEntryRepository; } });
|
|
8
|
+
const journal_entry_entity_1 = require("./entities/journal-entry.entity");
|
|
9
|
+
Object.defineProperty(exports, "JournalEntryModel", { enumerable: true, get: function () { return journal_entry_entity_1.JournalEntryModel; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface IJournalEntryAttr {
|
|
2
|
-
CompanyId: string;
|
|
3
|
-
JournalEntryId: string;
|
|
4
|
-
Date?: Date;
|
|
5
|
-
Name: string;
|
|
6
|
-
Description?: string;
|
|
7
|
-
AccSystemRefId?: string;
|
|
8
|
-
PostedToAccSystemYN: string;
|
|
9
|
-
PostedById?: string;
|
|
10
|
-
PostedDateTime?: Date;
|
|
11
|
-
}
|
|
1
|
+
export interface IJournalEntryAttr {
|
|
2
|
+
CompanyId: string;
|
|
3
|
+
JournalEntryId: string;
|
|
4
|
+
Date?: Date;
|
|
5
|
+
Name: string;
|
|
6
|
+
Description?: string;
|
|
7
|
+
AccSystemRefId?: string;
|
|
8
|
+
PostedToAccSystemYN: string;
|
|
9
|
+
PostedById?: string;
|
|
10
|
+
PostedDateTime?: Date;
|
|
11
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=journal-entry-attr.interface.js.map
|