@things-factory/accounting 9.0.0-beta.24 → 9.0.0-beta.27
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/package.json +5 -5
- package/dist-client/activities/activity-book-edit.d.ts +0 -14
- package/dist-client/activities/activity-book-edit.js +0 -85
- package/dist-client/activities/activity-book-edit.js.map +0 -1
- package/dist-client/activities/activity-book-view.d.ts +0 -14
- package/dist-client/activities/activity-book-view.js +0 -85
- package/dist-client/activities/activity-book-view.js.map +0 -1
- package/dist-client/activities/activity-expense-edit.d.ts +0 -14
- package/dist-client/activities/activity-expense-edit.js +0 -85
- package/dist-client/activities/activity-expense-edit.js.map +0 -1
- package/dist-client/activities/activity-expense-view.d.ts +0 -14
- package/dist-client/activities/activity-expense-view.js +0 -85
- package/dist-client/activities/activity-expense-view.js.map +0 -1
- package/dist-client/bootstrap.d.ts +0 -1
- package/dist-client/bootstrap.js +0 -8
- package/dist-client/bootstrap.js.map +0 -1
- package/dist-client/components/accounting-category-selector.d.ts +0 -16
- package/dist-client/components/accounting-category-selector.js +0 -134
- package/dist-client/components/accounting-category-selector.js.map +0 -1
- package/dist-client/components/accounting-category-view.d.ts +0 -14
- package/dist-client/components/accounting-category-view.js +0 -81
- package/dist-client/components/accounting-category-view.js.map +0 -1
- package/dist-client/grist-editors/grist-editor-accounting-category-object.d.ts +0 -11
- package/dist-client/grist-editors/grist-editor-accounting-category-object.js +0 -71
- package/dist-client/grist-editors/grist-editor-accounting-category-object.js.map +0 -1
- package/dist-client/grist-editors/grist-renderer-accounting-category-object.d.ts +0 -2
- package/dist-client/grist-editors/grist-renderer-accounting-category-object.js +0 -9
- package/dist-client/grist-editors/grist-renderer-accounting-category-object.js.map +0 -1
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +0 -2
- package/dist-client/index.js.map +0 -1
- package/dist-client/pages/account/account-importer.d.ts +0 -22
- package/dist-client/pages/account/account-importer.js +0 -100
- package/dist-client/pages/account/account-importer.js.map +0 -1
- package/dist-client/pages/account/account-list-page.d.ts +0 -63
- package/dist-client/pages/account/account-list-page.js +0 -350
- package/dist-client/pages/account/account-list-page.js.map +0 -1
- package/dist-client/pages/accounting-category/accounting-category-importer.d.ts +0 -22
- package/dist-client/pages/accounting-category/accounting-category-importer.js +0 -100
- package/dist-client/pages/accounting-category/accounting-category-importer.js.map +0 -1
- package/dist-client/pages/accounting-category/accounting-category-list-page.d.ts +0 -63
- package/dist-client/pages/accounting-category/accounting-category-list-page.js +0 -354
- package/dist-client/pages/accounting-category/accounting-category-list-page.js.map +0 -1
- package/dist-client/pages/accounting-category/accounting-category-tree-page.d.ts +0 -46
- package/dist-client/pages/accounting-category/accounting-category-tree-page.js +0 -329
- package/dist-client/pages/accounting-category/accounting-category-tree-page.js.map +0 -1
- package/dist-client/pages/accounting-document/accounting-document-importer.d.ts +0 -23
- package/dist-client/pages/accounting-document/accounting-document-importer.js +0 -93
- package/dist-client/pages/accounting-document/accounting-document-importer.js.map +0 -1
- package/dist-client/pages/accounting-document/accounting-document-list-page.d.ts +0 -66
- package/dist-client/pages/accounting-document/accounting-document-list-page.js +0 -370
- package/dist-client/pages/accounting-document/accounting-document-list-page.js.map +0 -1
- package/dist-client/pages/bank/bank-importer.d.ts +0 -23
- package/dist-client/pages/bank/bank-importer.js +0 -93
- package/dist-client/pages/bank/bank-importer.js.map +0 -1
- package/dist-client/pages/bank/bank-list-page.d.ts +0 -66
- package/dist-client/pages/bank/bank-list-page.js +0 -370
- package/dist-client/pages/bank/bank-list-page.js.map +0 -1
- package/dist-client/pages/bank-account/bank-account-importer.d.ts +0 -23
- package/dist-client/pages/bank-account/bank-account-importer.js +0 -93
- package/dist-client/pages/bank-account/bank-account-importer.js.map +0 -1
- package/dist-client/pages/bank-account/bank-account-list-page.d.ts +0 -66
- package/dist-client/pages/bank-account/bank-account-list-page.js +0 -370
- package/dist-client/pages/bank-account/bank-account-list-page.js.map +0 -1
- package/dist-client/pages/financial-institution/financial-institution-importer.d.ts +0 -23
- package/dist-client/pages/financial-institution/financial-institution-importer.js +0 -93
- package/dist-client/pages/financial-institution/financial-institution-importer.js.map +0 -1
- package/dist-client/pages/financial-institution/financial-institution-list-page.d.ts +0 -66
- package/dist-client/pages/financial-institution/financial-institution-list-page.js +0 -370
- package/dist-client/pages/financial-institution/financial-institution-list-page.js.map +0 -1
- package/dist-client/pages/financial-statement/financial-statement-importer.d.ts +0 -22
- package/dist-client/pages/financial-statement/financial-statement-importer.js +0 -100
- package/dist-client/pages/financial-statement/financial-statement-importer.js.map +0 -1
- package/dist-client/pages/financial-statement/financial-statement-list-page.d.ts +0 -63
- package/dist-client/pages/financial-statement/financial-statement-list-page.js +0 -324
- package/dist-client/pages/financial-statement/financial-statement-list-page.js.map +0 -1
- package/dist-client/pages/fiscal-month/fiscal-month-importer.d.ts +0 -23
- package/dist-client/pages/fiscal-month/fiscal-month-importer.js +0 -93
- package/dist-client/pages/fiscal-month/fiscal-month-importer.js.map +0 -1
- package/dist-client/pages/fiscal-month/fiscal-month-list-page.d.ts +0 -66
- package/dist-client/pages/fiscal-month/fiscal-month-list-page.js +0 -370
- package/dist-client/pages/fiscal-month/fiscal-month-list-page.js.map +0 -1
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.d.ts +0 -23
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.js +0 -93
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.js.map +0 -1
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.d.ts +0 -66
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.js +0 -370
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.js.map +0 -1
- package/dist-client/pages/fiscal-year/fiscal-year-importer.d.ts +0 -23
- package/dist-client/pages/fiscal-year/fiscal-year-importer.js +0 -93
- package/dist-client/pages/fiscal-year/fiscal-year-importer.js.map +0 -1
- package/dist-client/pages/fiscal-year/fiscal-year-list-page.d.ts +0 -66
- package/dist-client/pages/fiscal-year/fiscal-year-list-page.js +0 -370
- package/dist-client/pages/fiscal-year/fiscal-year-list-page.js.map +0 -1
- package/dist-client/pages/income-statement/income-statement-importer.d.ts +0 -22
- package/dist-client/pages/income-statement/income-statement-importer.js +0 -100
- package/dist-client/pages/income-statement/income-statement-importer.js.map +0 -1
- package/dist-client/pages/income-statement/income-statement-list-page.d.ts +0 -63
- package/dist-client/pages/income-statement/income-statement-list-page.js +0 -324
- package/dist-client/pages/income-statement/income-statement-list-page.js.map +0 -1
- package/dist-client/pages/payment/payment-importer.d.ts +0 -23
- package/dist-client/pages/payment/payment-importer.js +0 -93
- package/dist-client/pages/payment/payment-importer.js.map +0 -1
- package/dist-client/pages/payment/payment-list-page.d.ts +0 -66
- package/dist-client/pages/payment/payment-list-page.js +0 -370
- package/dist-client/pages/payment/payment-list-page.js.map +0 -1
- package/dist-client/pages/transaction/transaction-importer.d.ts +0 -22
- package/dist-client/pages/transaction/transaction-importer.js +0 -100
- package/dist-client/pages/transaction/transaction-importer.js.map +0 -1
- package/dist-client/pages/transaction/transaction-list-page.d.ts +0 -63
- package/dist-client/pages/transaction/transaction-list-page.js +0 -324
- package/dist-client/pages/transaction/transaction-list-page.js.map +0 -1
- package/dist-client/route.d.ts +0 -1
- package/dist-client/route.js +0 -29
- package/dist-client/route.js.map +0 -1
- package/dist-client/tsconfig.tsbuildinfo +0 -1
- package/dist-client/types/accounting-category.d.ts +0 -16
- package/dist-client/types/accounting-category.js +0 -3
- package/dist-client/types/accounting-category.js.map +0 -1
- package/dist-client/types/index.d.ts +0 -1
- package/dist-client/types/index.js +0 -2
- package/dist-client/types/index.js.map +0 -1
- package/dist-server/activities/activity-book.d.ts +0 -58
- package/dist-server/activities/activity-book.js +0 -163
- package/dist-server/activities/activity-book.js.map +0 -1
- package/dist-server/activities/activity-expense.d.ts +0 -58
- package/dist-server/activities/activity-expense.js +0 -150
- package/dist-server/activities/activity-expense.js.map +0 -1
- package/dist-server/activities/index.d.ts +0 -1
- package/dist-server/activities/index.js +0 -19
- package/dist-server/activities/index.js.map +0 -1
- package/dist-server/controllers/index.d.ts +0 -1
- package/dist-server/controllers/index.js +0 -5
- package/dist-server/controllers/index.js.map +0 -1
- package/dist-server/controllers/summary-statements.d.ts +0 -4
- package/dist-server/controllers/summary-statements.js +0 -149
- package/dist-server/controllers/summary-statements.js.map +0 -1
- package/dist-server/index.d.ts +0 -5
- package/dist-server/index.js +0 -9
- package/dist-server/index.js.map +0 -1
- package/dist-server/middlewares/index.d.ts +0 -1
- package/dist-server/middlewares/index.js +0 -7
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/1725200507196-seed-fiscal-entities.d.ts +0 -5
- package/dist-server/migrations/1725200507196-seed-fiscal-entities.js +0 -95
- package/dist-server/migrations/1725200507196-seed-fiscal-entities.js.map +0 -1
- package/dist-server/migrations/1725201467183-seed-accounts.d.ts +0 -5
- package/dist-server/migrations/1725201467183-seed-accounts.js +0 -318
- package/dist-server/migrations/1725201467183-seed-accounts.js.map +0 -1
- package/dist-server/migrations/1725201567284-seed-country-codes.d.ts +0 -5
- package/dist-server/migrations/1725201567284-seed-country-codes.js +0 -248
- package/dist-server/migrations/1725201567284-seed-country-codes.js.map +0 -1
- package/dist-server/migrations/1725201667385-seed-financial-institutions.d.ts +0 -5
- package/dist-server/migrations/1725201667385-seed-financial-institutions.js +0 -348
- package/dist-server/migrations/1725201667385-seed-financial-institutions.js.map +0 -1
- package/dist-server/migrations/index.d.ts +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/routes.js +0 -24
- package/dist-server/routes.js.map +0 -1
- package/dist-server/service/account/account-history.d.ts +0 -26
- package/dist-server/service/account/account-history.js +0 -128
- package/dist-server/service/account/account-history.js.map +0 -1
- package/dist-server/service/account/account-mutation.d.ts +0 -10
- package/dist-server/service/account/account-mutation.js +0 -134
- package/dist-server/service/account/account-mutation.js.map +0 -1
- package/dist-server/service/account/account-query.d.ts +0 -11
- package/dist-server/service/account/account-query.js +0 -81
- package/dist-server/service/account/account-query.js.map +0 -1
- package/dist-server/service/account/account-type.d.ts +0 -17
- package/dist-server/service/account/account-type.js +0 -65
- package/dist-server/service/account/account-type.js.map +0 -1
- package/dist-server/service/account/account.d.ts +0 -22
- package/dist-server/service/account/account.js +0 -113
- package/dist-server/service/account/account.js.map +0 -1
- package/dist-server/service/account/event-subscriber.d.ts +0 -7
- package/dist-server/service/account/event-subscriber.js +0 -21
- package/dist-server/service/account/event-subscriber.js.map +0 -1
- package/dist-server/service/account/index.d.ts +0 -7
- package/dist-server/service/account/index.js +0 -12
- package/dist-server/service/account/index.js.map +0 -1
- package/dist-server/service/accounting-category/accounting-category-history.d.ts +0 -26
- package/dist-server/service/accounting-category/accounting-category-history.js +0 -141
- package/dist-server/service/accounting-category/accounting-category-history.js.map +0 -1
- package/dist-server/service/accounting-category/accounting-category-mutation.d.ts +0 -10
- package/dist-server/service/accounting-category/accounting-category-mutation.js +0 -136
- package/dist-server/service/accounting-category/accounting-category-mutation.js.map +0 -1
- package/dist-server/service/accounting-category/accounting-category-query.d.ts +0 -12
- package/dist-server/service/accounting-category/accounting-category-query.js +0 -102
- package/dist-server/service/accounting-category/accounting-category-query.js.map +0 -1
- package/dist-server/service/accounting-category/accounting-category-type.d.ts +0 -19
- package/dist-server/service/accounting-category/accounting-category-type.js +0 -73
- package/dist-server/service/accounting-category/accounting-category-type.js.map +0 -1
- package/dist-server/service/accounting-category/accounting-category.d.ts +0 -21
- package/dist-server/service/accounting-category/accounting-category.js +0 -105
- package/dist-server/service/accounting-category/accounting-category.js.map +0 -1
- package/dist-server/service/accounting-category/event-subscriber.d.ts +0 -7
- package/dist-server/service/accounting-category/event-subscriber.js +0 -21
- package/dist-server/service/accounting-category/event-subscriber.js.map +0 -1
- package/dist-server/service/accounting-category/index.d.ts +0 -7
- package/dist-server/service/accounting-category/index.js +0 -12
- package/dist-server/service/accounting-category/index.js.map +0 -1
- package/dist-server/service/accounting-document/accounting-document-history.d.ts +0 -26
- package/dist-server/service/accounting-document/accounting-document-history.js +0 -134
- package/dist-server/service/accounting-document/accounting-document-history.js.map +0 -1
- package/dist-server/service/accounting-document/accounting-document-mutation.d.ts +0 -10
- package/dist-server/service/accounting-document/accounting-document-mutation.js +0 -128
- package/dist-server/service/accounting-document/accounting-document-mutation.js.map +0 -1
- package/dist-server/service/accounting-document/accounting-document-query.d.ts +0 -11
- package/dist-server/service/accounting-document/accounting-document-query.js +0 -79
- package/dist-server/service/accounting-document/accounting-document-query.js.map +0 -1
- package/dist-server/service/accounting-document/accounting-document-type.d.ts +0 -20
- package/dist-server/service/accounting-document/accounting-document-type.js +0 -74
- package/dist-server/service/accounting-document/accounting-document-type.js.map +0 -1
- package/dist-server/service/accounting-document/accounting-document.d.ts +0 -21
- package/dist-server/service/accounting-document/accounting-document.js +0 -104
- package/dist-server/service/accounting-document/accounting-document.js.map +0 -1
- package/dist-server/service/accounting-document/event-subscriber.d.ts +0 -7
- package/dist-server/service/accounting-document/event-subscriber.js +0 -21
- package/dist-server/service/accounting-document/event-subscriber.js.map +0 -1
- package/dist-server/service/accounting-document/index.d.ts +0 -7
- package/dist-server/service/accounting-document/index.js +0 -12
- package/dist-server/service/accounting-document/index.js.map +0 -1
- package/dist-server/service/bank-account/bank-account-history.d.ts +0 -34
- package/dist-server/service/bank-account/bank-account-history.js +0 -172
- package/dist-server/service/bank-account/bank-account-history.js.map +0 -1
- package/dist-server/service/bank-account/bank-account-mutation.d.ts +0 -10
- package/dist-server/service/bank-account/bank-account-mutation.js +0 -128
- package/dist-server/service/bank-account/bank-account-mutation.js.map +0 -1
- package/dist-server/service/bank-account/bank-account-query.d.ts +0 -11
- package/dist-server/service/bank-account/bank-account-query.js +0 -79
- package/dist-server/service/bank-account/bank-account-query.js.map +0 -1
- package/dist-server/service/bank-account/bank-account-type.d.ts +0 -39
- package/dist-server/service/bank-account/bank-account-type.js +0 -153
- package/dist-server/service/bank-account/bank-account-type.js.map +0 -1
- package/dist-server/service/bank-account/bank-account.d.ts +0 -38
- package/dist-server/service/bank-account/bank-account.js +0 -164
- package/dist-server/service/bank-account/bank-account.js.map +0 -1
- package/dist-server/service/bank-account/event-subscriber.d.ts +0 -7
- package/dist-server/service/bank-account/event-subscriber.js +0 -21
- package/dist-server/service/bank-account/event-subscriber.js.map +0 -1
- package/dist-server/service/bank-account/index.d.ts +0 -7
- package/dist-server/service/bank-account/index.js +0 -12
- package/dist-server/service/bank-account/index.js.map +0 -1
- package/dist-server/service/common-type.d.ts +0 -5
- package/dist-server/service/common-type.js +0 -15
- package/dist-server/service/common-type.js.map +0 -1
- package/dist-server/service/financial-institution/financial-institution-mutation.d.ts +0 -10
- package/dist-server/service/financial-institution/financial-institution-mutation.js +0 -169
- package/dist-server/service/financial-institution/financial-institution-mutation.js.map +0 -1
- package/dist-server/service/financial-institution/financial-institution-query.d.ts +0 -12
- package/dist-server/service/financial-institution/financial-institution-query.js +0 -97
- package/dist-server/service/financial-institution/financial-institution-query.js.map +0 -1
- package/dist-server/service/financial-institution/financial-institution-type.d.ts +0 -32
- package/dist-server/service/financial-institution/financial-institution-type.js +0 -126
- package/dist-server/service/financial-institution/financial-institution-type.js.map +0 -1
- package/dist-server/service/financial-institution/financial-institution.d.ts +0 -34
- package/dist-server/service/financial-institution/financial-institution.js +0 -137
- package/dist-server/service/financial-institution/financial-institution.js.map +0 -1
- package/dist-server/service/financial-institution/index.d.ts +0 -6
- package/dist-server/service/financial-institution/index.js +0 -10
- package/dist-server/service/financial-institution/index.js.map +0 -1
- package/dist-server/service/financial-statement/event-subscriber.d.ts +0 -7
- package/dist-server/service/financial-statement/event-subscriber.js +0 -21
- package/dist-server/service/financial-statement/event-subscriber.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-history.d.ts +0 -27
- package/dist-server/service/financial-statement/financial-statement-history.js +0 -141
- package/dist-server/service/financial-statement/financial-statement-history.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-line-item.d.ts +0 -19
- package/dist-server/service/financial-statement/financial-statement-line-item.js +0 -94
- package/dist-server/service/financial-statement/financial-statement-line-item.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-mutation.d.ts +0 -10
- package/dist-server/service/financial-statement/financial-statement-mutation.js +0 -136
- package/dist-server/service/financial-statement/financial-statement-mutation.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-query.d.ts +0 -11
- package/dist-server/service/financial-statement/financial-statement-query.js +0 -81
- package/dist-server/service/financial-statement/financial-statement-query.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-type.d.ts +0 -20
- package/dist-server/service/financial-statement/financial-statement-type.js +0 -77
- package/dist-server/service/financial-statement/financial-statement-type.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement.d.ts +0 -27
- package/dist-server/service/financial-statement/financial-statement.js +0 -132
- package/dist-server/service/financial-statement/financial-statement.js.map +0 -1
- package/dist-server/service/financial-statement/index.d.ts +0 -8
- package/dist-server/service/financial-statement/index.js +0 -13
- package/dist-server/service/financial-statement/index.js.map +0 -1
- package/dist-server/service/fiscal-month/fiscal-month-mutation.d.ts +0 -10
- package/dist-server/service/fiscal-month/fiscal-month-mutation.js +0 -134
- package/dist-server/service/fiscal-month/fiscal-month-mutation.js.map +0 -1
- package/dist-server/service/fiscal-month/fiscal-month-query.d.ts +0 -11
- package/dist-server/service/fiscal-month/fiscal-month-query.js +0 -83
- package/dist-server/service/fiscal-month/fiscal-month-query.js.map +0 -1
- package/dist-server/service/fiscal-month/fiscal-month-type.d.ts +0 -26
- package/dist-server/service/fiscal-month/fiscal-month-type.js +0 -98
- package/dist-server/service/fiscal-month/fiscal-month-type.js.map +0 -1
- package/dist-server/service/fiscal-month/fiscal-month.d.ts +0 -22
- package/dist-server/service/fiscal-month/fiscal-month.js +0 -99
- package/dist-server/service/fiscal-month/fiscal-month.js.map +0 -1
- package/dist-server/service/fiscal-month/index.d.ts +0 -6
- package/dist-server/service/fiscal-month/index.js +0 -10
- package/dist-server/service/fiscal-month/index.js.map +0 -1
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.d.ts +0 -10
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js +0 -134
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js.map +0 -1
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.d.ts +0 -11
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js +0 -85
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js.map +0 -1
- package/dist-server/service/fiscal-quarter/fiscal-quarter-type.d.ts +0 -24
- package/dist-server/service/fiscal-quarter/fiscal-quarter-type.js +0 -90
- package/dist-server/service/fiscal-quarter/fiscal-quarter-type.js.map +0 -1
- package/dist-server/service/fiscal-quarter/fiscal-quarter.d.ts +0 -21
- package/dist-server/service/fiscal-quarter/fiscal-quarter.js +0 -94
- package/dist-server/service/fiscal-quarter/fiscal-quarter.js.map +0 -1
- package/dist-server/service/fiscal-quarter/index.d.ts +0 -6
- package/dist-server/service/fiscal-quarter/index.js +0 -10
- package/dist-server/service/fiscal-quarter/index.js.map +0 -1
- package/dist-server/service/fiscal-year/fiscal-year-mutation.d.ts +0 -10
- package/dist-server/service/fiscal-year/fiscal-year-mutation.js +0 -134
- package/dist-server/service/fiscal-year/fiscal-year-mutation.js.map +0 -1
- package/dist-server/service/fiscal-year/fiscal-year-query.d.ts +0 -11
- package/dist-server/service/fiscal-year/fiscal-year-query.js +0 -81
- package/dist-server/service/fiscal-year/fiscal-year-query.js.map +0 -1
- package/dist-server/service/fiscal-year/fiscal-year-type.d.ts +0 -22
- package/dist-server/service/fiscal-year/fiscal-year-type.js +0 -82
- package/dist-server/service/fiscal-year/fiscal-year-type.js.map +0 -1
- package/dist-server/service/fiscal-year/fiscal-year.d.ts +0 -20
- package/dist-server/service/fiscal-year/fiscal-year.js +0 -89
- package/dist-server/service/fiscal-year/fiscal-year.js.map +0 -1
- package/dist-server/service/fiscal-year/index.d.ts +0 -6
- package/dist-server/service/fiscal-year/index.js +0 -10
- package/dist-server/service/fiscal-year/index.js.map +0 -1
- package/dist-server/service/income-statement/event-subscriber.d.ts +0 -7
- package/dist-server/service/income-statement/event-subscriber.js +0 -21
- package/dist-server/service/income-statement/event-subscriber.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-history.d.ts +0 -28
- package/dist-server/service/income-statement/income-statement-history.js +0 -146
- package/dist-server/service/income-statement/income-statement-history.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-line-item.d.ts +0 -19
- package/dist-server/service/income-statement/income-statement-line-item.js +0 -96
- package/dist-server/service/income-statement/income-statement-line-item.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-mutation.d.ts +0 -10
- package/dist-server/service/income-statement/income-statement-mutation.js +0 -136
- package/dist-server/service/income-statement/income-statement-mutation.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-query.d.ts +0 -11
- package/dist-server/service/income-statement/income-statement-query.js +0 -81
- package/dist-server/service/income-statement/income-statement-query.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-type.d.ts +0 -20
- package/dist-server/service/income-statement/income-statement-type.js +0 -77
- package/dist-server/service/income-statement/income-statement-type.js.map +0 -1
- package/dist-server/service/income-statement/income-statement.d.ts +0 -28
- package/dist-server/service/income-statement/income-statement.js +0 -137
- package/dist-server/service/income-statement/income-statement.js.map +0 -1
- package/dist-server/service/income-statement/index.d.ts +0 -8
- package/dist-server/service/income-statement/index.js +0 -13
- package/dist-server/service/income-statement/index.js.map +0 -1
- package/dist-server/service/index.d.ts +0 -16
- package/dist-server/service/index.js +0 -74
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/payment/event-subscriber.d.ts +0 -7
- package/dist-server/service/payment/event-subscriber.js +0 -21
- package/dist-server/service/payment/event-subscriber.js.map +0 -1
- package/dist-server/service/payment/index.d.ts +0 -7
- package/dist-server/service/payment/index.js +0 -12
- package/dist-server/service/payment/index.js.map +0 -1
- package/dist-server/service/payment/payment-history.d.ts +0 -37
- package/dist-server/service/payment/payment-history.js +0 -179
- package/dist-server/service/payment/payment-history.js.map +0 -1
- package/dist-server/service/payment/payment-mutation.d.ts +0 -10
- package/dist-server/service/payment/payment-mutation.js +0 -134
- package/dist-server/service/payment/payment-mutation.js.map +0 -1
- package/dist-server/service/payment/payment-query.d.ts +0 -11
- package/dist-server/service/payment/payment-query.js +0 -81
- package/dist-server/service/payment/payment-query.js.map +0 -1
- package/dist-server/service/payment/payment-type.d.ts +0 -30
- package/dist-server/service/payment/payment-type.js +0 -114
- package/dist-server/service/payment/payment-type.js.map +0 -1
- package/dist-server/service/payment/payment.d.ts +0 -42
- package/dist-server/service/payment/payment.js +0 -181
- package/dist-server/service/payment/payment.js.map +0 -1
- package/dist-server/service/transaction/event-subscriber.d.ts +0 -7
- package/dist-server/service/transaction/event-subscriber.js +0 -21
- package/dist-server/service/transaction/event-subscriber.js.map +0 -1
- package/dist-server/service/transaction/index.d.ts +0 -8
- package/dist-server/service/transaction/index.js +0 -12
- package/dist-server/service/transaction/index.js.map +0 -1
- package/dist-server/service/transaction/transaction-history.d.ts +0 -36
- package/dist-server/service/transaction/transaction-history.js +0 -184
- package/dist-server/service/transaction/transaction-history.js.map +0 -1
- package/dist-server/service/transaction/transaction-mutation.d.ts +0 -10
- package/dist-server/service/transaction/transaction-mutation.js +0 -134
- package/dist-server/service/transaction/transaction-mutation.js.map +0 -1
- package/dist-server/service/transaction/transaction-query.d.ts +0 -11
- package/dist-server/service/transaction/transaction-query.js +0 -81
- package/dist-server/service/transaction/transaction-query.js.map +0 -1
- package/dist-server/service/transaction/transaction-type.d.ts +0 -19
- package/dist-server/service/transaction/transaction-type.js +0 -73
- package/dist-server/service/transaction/transaction-type.js.map +0 -1
- package/dist-server/service/transaction/transaction.d.ts +0 -57
- package/dist-server/service/transaction/transaction.js +0 -241
- package/dist-server/service/transaction/transaction.js.map +0 -1
- package/dist-server/tsconfig.tsbuildinfo +0 -1
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountMutation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const shell_1 = require("@things-factory/shell");
|
|
8
|
-
const account_1 = require("./account");
|
|
9
|
-
const account_type_1 = require("./account-type");
|
|
10
|
-
let AccountMutation = class AccountMutation {
|
|
11
|
-
async createAccount(account, context) {
|
|
12
|
-
const { domain, user, tx } = context.state;
|
|
13
|
-
const result = await (0, shell_1.getRepository)(account_1.Account, tx).save(Object.assign(Object.assign({}, account), { domain, creator: user, updater: user }));
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
async updateAccount(id, patch, context) {
|
|
17
|
-
const { domain, user, tx } = context.state;
|
|
18
|
-
const repository = (0, shell_1.getRepository)(account_1.Account, tx);
|
|
19
|
-
const account = await repository.findOne({
|
|
20
|
-
where: { domain: { id: domain.id }, id }
|
|
21
|
-
});
|
|
22
|
-
const result = await repository.save(Object.assign(Object.assign(Object.assign({}, account), patch), { updater: user }));
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
async updateMultipleAccount(patches, context) {
|
|
26
|
-
const { domain, user, tx } = context.state;
|
|
27
|
-
let results = [];
|
|
28
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
29
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
30
|
-
const accountRepo = (0, shell_1.getRepository)(account_1.Account, tx);
|
|
31
|
-
if (_createRecords.length > 0) {
|
|
32
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
33
|
-
const newRecord = _createRecords[i];
|
|
34
|
-
const result = await accountRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
35
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (_updateRecords.length > 0) {
|
|
39
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
40
|
-
const updateRecord = _updateRecords[i];
|
|
41
|
-
const account = await accountRepo.findOneBy({ id: updateRecord.id });
|
|
42
|
-
const result = await accountRepo.save(Object.assign(Object.assign(Object.assign({}, account), updateRecord), { updater: user }));
|
|
43
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return results;
|
|
47
|
-
}
|
|
48
|
-
async deleteAccount(id, context) {
|
|
49
|
-
const { domain, tx } = context.state;
|
|
50
|
-
await (0, shell_1.getRepository)(account_1.Account, tx).delete({ domain: { id: domain.id }, id });
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
async deleteAccounts(ids, context) {
|
|
54
|
-
const { domain, tx } = context.state;
|
|
55
|
-
await (0, shell_1.getRepository)(account_1.Account, tx).delete({
|
|
56
|
-
domain: { id: domain.id },
|
|
57
|
-
id: (0, typeorm_1.In)(ids)
|
|
58
|
-
});
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
async importAccounts(accounts, context) {
|
|
62
|
-
const { domain, tx } = context.state;
|
|
63
|
-
await Promise.all(accounts.map(async (account) => {
|
|
64
|
-
const createdAccount = await (0, shell_1.getRepository)(account_1.Account, tx).save(Object.assign({ domain }, account));
|
|
65
|
-
}));
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
exports.AccountMutation = AccountMutation;
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
72
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "mutation")'),
|
|
73
|
-
(0, type_graphql_1.Mutation)(returns => account_1.Account, { description: 'To create new Account' }),
|
|
74
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('account')),
|
|
75
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
76
|
-
tslib_1.__metadata("design:type", Function),
|
|
77
|
-
tslib_1.__metadata("design:paramtypes", [account_type_1.NewAccount, Object]),
|
|
78
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
79
|
-
], AccountMutation.prototype, "createAccount", null);
|
|
80
|
-
tslib_1.__decorate([
|
|
81
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
82
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "mutation")'),
|
|
83
|
-
(0, type_graphql_1.Mutation)(returns => account_1.Account, { description: 'To modify Account information' }),
|
|
84
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
85
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
86
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
87
|
-
tslib_1.__metadata("design:type", Function),
|
|
88
|
-
tslib_1.__metadata("design:paramtypes", [String, account_type_1.AccountPatch, Object]),
|
|
89
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
90
|
-
], AccountMutation.prototype, "updateAccount", null);
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
93
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "mutation")'),
|
|
94
|
-
(0, type_graphql_1.Mutation)(returns => [account_1.Account], { description: "To modify multiple Accounts' information" }),
|
|
95
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [account_type_1.AccountPatch])),
|
|
96
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
97
|
-
tslib_1.__metadata("design:type", Function),
|
|
98
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
99
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
100
|
-
], AccountMutation.prototype, "updateMultipleAccount", null);
|
|
101
|
-
tslib_1.__decorate([
|
|
102
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
103
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "mutation")'),
|
|
104
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Account' }),
|
|
105
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
106
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
107
|
-
tslib_1.__metadata("design:type", Function),
|
|
108
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
109
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
110
|
-
], AccountMutation.prototype, "deleteAccount", null);
|
|
111
|
-
tslib_1.__decorate([
|
|
112
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
113
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "mutation")'),
|
|
114
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Accounts' }),
|
|
115
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
116
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
117
|
-
tslib_1.__metadata("design:type", Function),
|
|
118
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
119
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
120
|
-
], AccountMutation.prototype, "deleteAccounts", null);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
123
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "mutation")'),
|
|
124
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To import multiple Accounts' }),
|
|
125
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('accounts', type => [account_type_1.AccountPatch])),
|
|
126
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
127
|
-
tslib_1.__metadata("design:type", Function),
|
|
128
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
129
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
130
|
-
], AccountMutation.prototype, "importAccounts", null);
|
|
131
|
-
exports.AccountMutation = AccountMutation = tslib_1.__decorate([
|
|
132
|
-
(0, type_graphql_1.Resolver)(account_1.Account)
|
|
133
|
-
], AccountMutation);
|
|
134
|
-
//# sourceMappingURL=account-mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-mutation.js","sourceRoot":"","sources":["../../../server/service/account/account-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,iDAAqD;AAErD,uCAAmC;AACnC,iDAAyD;AAGlD,IAAM,eAAe,GAArB,MAAM,eAAe;IAIpB,AAAN,KAAK,CAAC,aAAa,CAAiB,OAAmB,EAAS,OAAwB;QACtF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAa,EAAC,iBAAO,EAAE,EAAE,CAAC,CAAC,IAAI,iCAC/C,OAAO,KACV,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC;IAKK,AAAN,KAAK,CAAC,aAAa,CACN,EAAU,EACP,KAAmB,EAC1B,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAC,iBAAO,EAAE,EAAE,CAAC,CAAA;QAC7C,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;QA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ository } from '@things-factory/shell'\n\nimport { Account } from './account'\nimport { NewAccount, AccountPatch } from './account-type'\n\n@Resolver(Account)\nexport class AccountMutation {\n @Directive('@transaction')\n @Directive('@privilege(category: \"accounting\", privilege: \"mutation\")')\n @Mutation(returns => Account, { description: 'To create new Account' })\n async createAccount(@Arg('account') account: NewAccount, @Ctx() context: ResolverContext): Promise<Account> {\n const { domain, user, tx } = context.state\n\n const result = await getRepository(Account, tx).save({\n ...account,\n domain,\n creator: user,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Directive('@privilege(category: \"accounting\", privilege: \"mutation\")')\n @Mutation(returns => Account, { description: 'To modify Account information' })\n async updateAccount(\n @Arg('id') id: string,\n @Arg('patch') patch: AccountPatch,\n @Ctx() context: ResolverContext\n ): Promise<Account> {\n const { domain, user, tx } = context.state\n\n const repository = getRepository(Account, tx)\n const account = await repository.findOne({\n where: { domain: { id: domain.id }, id }\n })\n\n const result = await repository.save({\n ...account,\n ...patch,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Directive('@privilege(category: \"accounting\", privilege: \"mutation\")')\n @Mutation(returns => [Account], { description: \"To modify multiple Accounts' information\" })\n async updateMultipleAccount(\n @Arg('patches', type => [AccountPatch]) patches: AccountPatch[],\n @Ctx() context: ResolverContext\n ): Promise<Account[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const accountRepo = getRepository(Account, tx)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await accountRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const updateRecord = _updateRecords[i]\n const account = await accountRepo.findOneBy({ id: updateRecord.id })\n\n const result = await accountRepo.save({\n ...account,\n ...updateRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Directive('@privilege(category: \"accounting\", privilege: \"mutation\")')\n @Mutation(returns => Boolean, { description: 'To delete Account' })\n async deleteAccount(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await getRepository(Account, tx).delete({ domain: { id: domain.id }, id })\n\n return true\n }\n\n @Directive('@transaction')\n @Directive('@privilege(category: \"accounting\", privilege: \"mutation\")')\n @Mutation(returns => Boolean, { description: 'To delete multiple Accounts' })\n async deleteAccounts(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await getRepository(Account, tx).delete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n\n @Directive('@transaction')\n @Directive('@privilege(category: \"accounting\", privilege: \"mutation\")')\n @Mutation(returns => Boolean, { description: 'To import multiple Accounts' })\n async importAccounts(\n @Arg('accounts', type => [AccountPatch]) accounts: AccountPatch[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await Promise.all(\n accounts.map(async (account: AccountPatch) => {\n const createdAccount: Account = await getRepository(Account, tx).save({ domain, ...account })\n })\n )\n\n return true\n }\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { Account } from './account';
|
|
4
|
-
import { AccountList } from './account-type';
|
|
5
|
-
export declare class AccountQuery {
|
|
6
|
-
account(id: string, context: ResolverContext): Promise<Account>;
|
|
7
|
-
accounts(params: ListParam, context: ResolverContext): Promise<AccountList>;
|
|
8
|
-
domain(account: Account): Promise<Domain>;
|
|
9
|
-
updater(account: Account): Promise<User>;
|
|
10
|
-
creator(account: Account): Promise<User>;
|
|
11
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const shell_1 = require("@things-factory/shell");
|
|
7
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
-
const account_1 = require("./account");
|
|
9
|
-
const account_type_1 = require("./account-type");
|
|
10
|
-
let AccountQuery = class AccountQuery {
|
|
11
|
-
async account(id, context) {
|
|
12
|
-
const { domain } = context.state;
|
|
13
|
-
return await (0, shell_1.getRepository)(account_1.Account).findOne({
|
|
14
|
-
where: { domain: { id: domain.id }, id }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
async accounts(params, context) {
|
|
18
|
-
const { domain } = context.state;
|
|
19
|
-
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
20
|
-
domain,
|
|
21
|
-
params,
|
|
22
|
-
repository: await (0, shell_1.getRepository)(account_1.Account),
|
|
23
|
-
searchables: ['name', 'description']
|
|
24
|
-
});
|
|
25
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
|
26
|
-
return { items, total };
|
|
27
|
-
}
|
|
28
|
-
async domain(account) {
|
|
29
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: account.domainId });
|
|
30
|
-
}
|
|
31
|
-
async updater(account) {
|
|
32
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: account.updaterId });
|
|
33
|
-
}
|
|
34
|
-
async creator(account) {
|
|
35
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: account.creatorId });
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.AccountQuery = AccountQuery;
|
|
39
|
-
tslib_1.__decorate([
|
|
40
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "query")'),
|
|
41
|
-
(0, type_graphql_1.Query)(returns => account_1.Account, { nullable: true, description: 'To fetch a Account' }),
|
|
42
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
43
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
44
|
-
tslib_1.__metadata("design:type", Function),
|
|
45
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
46
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
47
|
-
], AccountQuery.prototype, "account", null);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.Directive)('@privilege(category: "accounting", privilege: "query")'),
|
|
50
|
-
(0, type_graphql_1.Query)(returns => account_type_1.AccountList, { description: 'To fetch multiple Accounts' }),
|
|
51
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
52
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
53
|
-
tslib_1.__metadata("design:type", Function),
|
|
54
|
-
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
55
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
56
|
-
], AccountQuery.prototype, "accounts", null);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
59
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
60
|
-
tslib_1.__metadata("design:type", Function),
|
|
61
|
-
tslib_1.__metadata("design:paramtypes", [account_1.Account]),
|
|
62
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
63
|
-
], AccountQuery.prototype, "domain", null);
|
|
64
|
-
tslib_1.__decorate([
|
|
65
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
66
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
67
|
-
tslib_1.__metadata("design:type", Function),
|
|
68
|
-
tslib_1.__metadata("design:paramtypes", [account_1.Account]),
|
|
69
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
70
|
-
], AccountQuery.prototype, "updater", null);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
73
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
74
|
-
tslib_1.__metadata("design:type", Function),
|
|
75
|
-
tslib_1.__metadata("design:paramtypes", [account_1.Account]),
|
|
76
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
77
|
-
], AccountQuery.prototype, "creator", null);
|
|
78
|
-
exports.AccountQuery = AccountQuery = tslib_1.__decorate([
|
|
79
|
-
(0, type_graphql_1.Resolver)(account_1.Account)
|
|
80
|
-
], AccountQuery);
|
|
81
|
-
//# sourceMappingURL=account-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-query.js","sourceRoot":"","sources":["../../../server/service/account/account-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8F;AAE9F,iDAAuG;AACvG,yDAAgD;AAChD,uCAAmC;AACnC,iDAA4C;AAGrC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAGjB,AAAN,KAAK,CAAC,OAAO,CAAY,EAAU,EAAS,OAAwB;QAClE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,iBAAO,CAAC,CAAC,OAAO,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,QAAQ,CAAS,MAAiB,EAAS,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IA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BAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;4CAavC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,iBAAO;;0CAEpC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,iBAAO;;2CAErC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,iBAAO;;2CAErC;uBAzCU,YAAY;IADxB,IAAA,uBAAQ,EAAC,iBAAO,CAAC;GACL,YAAY,CA0CxB","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx, Directive } from 'type-graphql'\n\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Account } from './account'\nimport { AccountList } from './account-type'\n\n@Resolver(Account)\nexport class AccountQuery {\n @Directive('@privilege(category: \"accounting\", privilege: \"query\")')\n @Query(returns => Account!, { nullable: true, description: 'To fetch a Account' })\n async account(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Account> {\n const { domain } = context.state\n\n return await getRepository(Account).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Directive('@privilege(category: \"accounting\", privilege: \"query\")')\n @Query(returns => AccountList, { description: 'To fetch multiple Accounts' })\n async accounts(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<AccountList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(Account),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() account: Account): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: account.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() account: Account): Promise<User> {\n return await getRepository(User).findOneBy({ id: account.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() account: Account): Promise<User> {\n return await getRepository(User).findOneBy({ id: account.creatorId })\n }\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Account } from './account';
|
|
2
|
-
export declare class NewAccount {
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class AccountPatch {
|
|
8
|
-
id?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
active?: boolean;
|
|
12
|
-
cuFlag?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class AccountList {
|
|
15
|
-
items: Account[];
|
|
16
|
-
total: number;
|
|
17
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountList = exports.AccountPatch = exports.NewAccount = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const account_1 = require("./account");
|
|
7
|
-
let NewAccount = class NewAccount {
|
|
8
|
-
};
|
|
9
|
-
exports.NewAccount = NewAccount;
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)(),
|
|
12
|
-
tslib_1.__metadata("design:type", String)
|
|
13
|
-
], NewAccount.prototype, "name", void 0);
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], NewAccount.prototype, "description", void 0);
|
|
18
|
-
tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
21
|
-
], NewAccount.prototype, "active", void 0);
|
|
22
|
-
exports.NewAccount = NewAccount = tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.InputType)()
|
|
24
|
-
], NewAccount);
|
|
25
|
-
let AccountPatch = class AccountPatch {
|
|
26
|
-
};
|
|
27
|
-
exports.AccountPatch = AccountPatch;
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
30
|
-
tslib_1.__metadata("design:type", String)
|
|
31
|
-
], AccountPatch.prototype, "id", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], AccountPatch.prototype, "name", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
38
|
-
tslib_1.__metadata("design:type", String)
|
|
39
|
-
], AccountPatch.prototype, "description", void 0);
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
43
|
-
], AccountPatch.prototype, "active", void 0);
|
|
44
|
-
tslib_1.__decorate([
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
-
tslib_1.__metadata("design:type", String)
|
|
47
|
-
], AccountPatch.prototype, "cuFlag", void 0);
|
|
48
|
-
exports.AccountPatch = AccountPatch = tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.InputType)()
|
|
50
|
-
], AccountPatch);
|
|
51
|
-
let AccountList = class AccountList {
|
|
52
|
-
};
|
|
53
|
-
exports.AccountList = AccountList;
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
(0, type_graphql_1.Field)(type => [account_1.Account]),
|
|
56
|
-
tslib_1.__metadata("design:type", Array)
|
|
57
|
-
], AccountList.prototype, "items", void 0);
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
60
|
-
tslib_1.__metadata("design:type", Number)
|
|
61
|
-
], AccountList.prototype, "total", void 0);
|
|
62
|
-
exports.AccountList = AccountList = tslib_1.__decorate([
|
|
63
|
-
(0, type_graphql_1.ObjectType)()
|
|
64
|
-
], AccountList);
|
|
65
|
-
//# sourceMappingURL=account-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-type.js","sourceRoot":"","sources":["../../../server/service/account/account-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAItF,uCAAmC;AAG5B,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,oBAAK,GAAE;;wCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACV;qBARL,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAStB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CAexB,CAAA;AAfY,oCAAY;AAEvB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;uBAdJ,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CAexB;AAGM,IAAM,WAAW,GAAjB,MAAM,WAAW;CAMvB,CAAA;AANY,kCAAW;AAEtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iBAAO,CAAC,CAAC;;0CACT;AAGhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;0CACN;sBALF,WAAW;IADvB,IAAA,yBAAU,GAAE;GACA,WAAW,CAMvB","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { Account } from './account'\n\n@InputType()\nexport class NewAccount {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n active?: boolean\n}\n\n@InputType()\nexport class AccountPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class AccountList {\n @Field(type => [Account])\n items: Account[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Domain } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { AccountingCategory } from '../accounting-category/accounting-category';
|
|
4
|
-
export declare class Account {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
version?: number;
|
|
7
|
-
domain?: Domain;
|
|
8
|
-
domainId?: string;
|
|
9
|
-
code?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
active?: boolean;
|
|
13
|
-
category?: AccountingCategory;
|
|
14
|
-
categoryId?: string;
|
|
15
|
-
createdAt?: Date;
|
|
16
|
-
updatedAt?: Date;
|
|
17
|
-
deletedAt?: Date;
|
|
18
|
-
creator?: User;
|
|
19
|
-
creatorId?: string;
|
|
20
|
-
updater?: User;
|
|
21
|
-
updaterId?: string;
|
|
22
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Account = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const type_graphql_1 = require("type-graphql");
|
|
7
|
-
const shell_1 = require("@things-factory/shell");
|
|
8
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
const accounting_category_1 = require("../accounting-category/accounting-category");
|
|
10
|
-
let Account = class Account {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.version = 1;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
exports.Account = Account;
|
|
16
|
-
tslib_1.__decorate([
|
|
17
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
18
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
19
|
-
tslib_1.__metadata("design:type", String)
|
|
20
|
-
], Account.prototype, "id", void 0);
|
|
21
|
-
tslib_1.__decorate([
|
|
22
|
-
(0, typeorm_1.VersionColumn)(),
|
|
23
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
-
tslib_1.__metadata("design:type", Number)
|
|
25
|
-
], Account.prototype, "version", void 0);
|
|
26
|
-
tslib_1.__decorate([
|
|
27
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
28
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
-
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
30
|
-
], Account.prototype, "domain", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
(0, typeorm_1.RelationId)((account) => account.domain),
|
|
33
|
-
tslib_1.__metadata("design:type", String)
|
|
34
|
-
], Account.prototype, "domainId", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)(),
|
|
37
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Account code number' }),
|
|
38
|
-
tslib_1.__metadata("design:type", String)
|
|
39
|
-
], Account.prototype, "code", void 0);
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
(0, typeorm_1.Column)(),
|
|
42
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Account name' }),
|
|
43
|
-
tslib_1.__metadata("design:type", String)
|
|
44
|
-
], Account.prototype, "name", void 0);
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
47
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
48
|
-
tslib_1.__metadata("design:type", String)
|
|
49
|
-
], Account.prototype, "description", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
53
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
54
|
-
], Account.prototype, "active", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
(0, typeorm_1.ManyToOne)(type => accounting_category_1.AccountingCategory),
|
|
57
|
-
(0, type_graphql_1.Field)(type => accounting_category_1.AccountingCategory, { nullable: true }),
|
|
58
|
-
tslib_1.__metadata("design:type", accounting_category_1.AccountingCategory)
|
|
59
|
-
], Account.prototype, "category", void 0);
|
|
60
|
-
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.RelationId)((account) => account.category),
|
|
62
|
-
tslib_1.__metadata("design:type", String)
|
|
63
|
-
], Account.prototype, "categoryId", void 0);
|
|
64
|
-
tslib_1.__decorate([
|
|
65
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
66
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
tslib_1.__metadata("design:type", Date)
|
|
68
|
-
], Account.prototype, "createdAt", void 0);
|
|
69
|
-
tslib_1.__decorate([
|
|
70
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
71
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
-
tslib_1.__metadata("design:type", Date)
|
|
73
|
-
], Account.prototype, "updatedAt", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
76
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
tslib_1.__metadata("design:type", Date)
|
|
78
|
-
], Account.prototype, "deletedAt", void 0);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
81
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
82
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
83
|
-
], Account.prototype, "creator", void 0);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, typeorm_1.RelationId)((account) => account.creator),
|
|
86
|
-
tslib_1.__metadata("design:type", String)
|
|
87
|
-
], Account.prototype, "creatorId", void 0);
|
|
88
|
-
tslib_1.__decorate([
|
|
89
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
90
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
91
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
92
|
-
], Account.prototype, "updater", void 0);
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
(0, typeorm_1.RelationId)((account) => account.updater),
|
|
95
|
-
tslib_1.__metadata("design:type", String)
|
|
96
|
-
], Account.prototype, "updaterId", void 0);
|
|
97
|
-
exports.Account = Account = tslib_1.__decorate([
|
|
98
|
-
(0, typeorm_1.Entity)(),
|
|
99
|
-
(0, typeorm_1.Index)('ix_account_0', (account) => [account.domain, account.name], {
|
|
100
|
-
unique: true,
|
|
101
|
-
where: '"deleted_at" IS NULL'
|
|
102
|
-
}),
|
|
103
|
-
(0, typeorm_1.Index)('ix_account_1', (account) => [account.domain, account.code], {
|
|
104
|
-
unique: true,
|
|
105
|
-
where: '"deleted_at" IS NULL'
|
|
106
|
-
}),
|
|
107
|
-
(0, typeorm_1.Index)('ix_account_2', (account) => [account.domain, account.category], {
|
|
108
|
-
unique: false,
|
|
109
|
-
where: '"deleted_at" IS NULL'
|
|
110
|
-
}),
|
|
111
|
-
(0, type_graphql_1.ObjectType)({ description: 'Entity for Account' })
|
|
112
|
-
], Account);
|
|
113
|
-
//# sourceMappingURL=account.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../server/service/account/account.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,oFAA+E;AAgBxE,IAAM,OAAO,GAAb,MAAM,OAAO;IAAb;QAOL,YAAO,GAAY,CAAC,CAAA;IAyDtB,CAAC;CAAA,CAAA;AAhEY,0BAAO;AAGT;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;mCACC;AAInB;IAFC,IAAA,uBAAa,GAAE;IACf,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACN;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;uCAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;yCAChC;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,EAAC,EAAE,QAAQ,E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CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { AccountingCategory } from '../accounting-category/accounting-category'\n\n@Entity()\n@Index('ix_account_0', (account: Account) => [account.domain, account.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_account_1', (account: Account) => [account.domain, account.code], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_account_2', (account: Account) => [account.domain, account.category], {\n unique: false,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for Account' })\nexport class Account {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @VersionColumn()\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((account: Account) => account.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true, description: 'Account code number' })\n code?: string\n\n @Column()\n @Field({ nullable: true, description: 'Account name' })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @ManyToOne(type => AccountingCategory)\n @Field(type => AccountingCategory, { nullable: true })\n category?: AccountingCategory\n\n @RelationId((account: Account) => account.category)\n categoryId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((account: Account) => account.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((account: Account) => account.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
-
import { Account } from './account';
|
|
3
|
-
import { AccountHistory } from './account-history';
|
|
4
|
-
export declare class AccountHistoryEntitySubscriber extends HistoryEntitySubscriber<Account, AccountHistory> {
|
|
5
|
-
get entity(): typeof Account;
|
|
6
|
-
get historyEntity(): typeof AccountHistory;
|
|
7
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountHistoryEntitySubscriber = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
7
|
-
const account_1 = require("./account");
|
|
8
|
-
const account_history_1 = require("./account-history");
|
|
9
|
-
let AccountHistoryEntitySubscriber = class AccountHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
-
get entity() {
|
|
11
|
-
return account_1.Account;
|
|
12
|
-
}
|
|
13
|
-
get historyEntity() {
|
|
14
|
-
return account_history_1.AccountHistory;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.AccountHistoryEntitySubscriber = AccountHistoryEntitySubscriber;
|
|
18
|
-
exports.AccountHistoryEntitySubscriber = AccountHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
-
(0, typeorm_1.EventSubscriber)()
|
|
20
|
-
], AccountHistoryEntitySubscriber);
|
|
21
|
-
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/account/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,uCAAmC;AACnC,uDAAkD;AAG3C,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,yCAAgD;IAClG,IAAW,MAAM;QACf,OAAO,iBAAO,CAAA;IAChB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,gCAAc,CAAA;IACvB,CAAC;CACF,CAAA;AARY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,yBAAe,GAAE;GACL,8BAA8B,CAQ1C","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { Account } from './account'\nimport { AccountHistory } from './account-history'\n\n@EventSubscriber()\nexport class AccountHistoryEntitySubscriber extends HistoryEntitySubscriber<Account, AccountHistory> {\n public get entity() {\n return Account\n }\n\n public get historyEntity() {\n return AccountHistory\n }\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Account } from './account';
|
|
2
|
-
import { AccountQuery } from './account-query';
|
|
3
|
-
import { AccountMutation } from './account-mutation';
|
|
4
|
-
import { AccountHistoryEntitySubscriber } from './event-subscriber';
|
|
5
|
-
export declare const entities: (typeof Account)[];
|
|
6
|
-
export declare const resolvers: (typeof AccountQuery | typeof AccountMutation)[];
|
|
7
|
-
export declare const subscribers: (typeof AccountHistoryEntitySubscriber)[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.subscribers = exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const account_1 = require("./account");
|
|
5
|
-
const account_history_1 = require("./account-history");
|
|
6
|
-
const account_query_1 = require("./account-query");
|
|
7
|
-
const account_mutation_1 = require("./account-mutation");
|
|
8
|
-
const event_subscriber_1 = require("./event-subscriber");
|
|
9
|
-
exports.entities = [account_1.Account, account_history_1.AccountHistory];
|
|
10
|
-
exports.resolvers = [account_query_1.AccountQuery, account_mutation_1.AccountMutation];
|
|
11
|
-
exports.subscribers = [event_subscriber_1.AccountHistoryEntitySubscriber];
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/account/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AACnC,uDAAkD;AAClD,mDAA8C;AAC9C,yDAAoD;AACpD,yDAAmE;AAEtD,QAAA,QAAQ,GAAG,CAAC,iBAAO,EAAE,gCAAc,CAAC,CAAA;AACpC,QAAA,SAAS,GAAG,CAAC,4BAAY,EAAE,kCAAe,CAAC,CAAA;AAC3C,QAAA,WAAW,GAAG,CAAC,iDAA8B,CAAC,CAAA","sourcesContent":["import { Account } from './account'\nimport { AccountHistory } from './account-history'\nimport { AccountQuery } from './account-query'\nimport { AccountMutation } from './account-mutation'\nimport { AccountHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [Account, AccountHistory]\nexport const resolvers = [AccountQuery, AccountMutation]\nexport const subscribers = [AccountHistoryEntitySubscriber]\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { Domain } from '@things-factory/shell';
|
|
4
|
-
import { AccountingCategory } from './accounting-category';
|
|
5
|
-
export declare class AccountingCategoryHistory implements HistoryEntityInterface<AccountingCategory> {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
version?: number;
|
|
8
|
-
domain?: Domain;
|
|
9
|
-
domainId?: string;
|
|
10
|
-
code?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
active?: boolean;
|
|
14
|
-
parent?: AccountingCategoryHistory;
|
|
15
|
-
parentId?: string;
|
|
16
|
-
children?: AccountingCategoryHistory[];
|
|
17
|
-
createdAt?: Date;
|
|
18
|
-
updatedAt?: Date;
|
|
19
|
-
deletedAt?: Date;
|
|
20
|
-
creator?: User;
|
|
21
|
-
creatorId?: string;
|
|
22
|
-
updater?: User;
|
|
23
|
-
updaterId?: string;
|
|
24
|
-
originalId: string;
|
|
25
|
-
action: HistoryActionType;
|
|
26
|
-
}
|