@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,42 +0,0 @@
|
|
|
1
|
-
import { Domain } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { Transaction } from '../transaction/transaction';
|
|
4
|
-
import { BankAccount } from '../bank-account/bank-account';
|
|
5
|
-
export declare enum PaymentDirection {
|
|
6
|
-
Incoming = "Incoming",// 수금
|
|
7
|
-
Outgoing = "Outgoing"
|
|
8
|
-
}
|
|
9
|
-
export declare enum PaymentType {
|
|
10
|
-
Transfer = "Transfer",// 계좌 이체
|
|
11
|
-
Cash = "Cash",// 현금
|
|
12
|
-
CreditCard = "CreditCard",// 신용카드
|
|
13
|
-
DebitCard = "DebitCard"
|
|
14
|
-
}
|
|
15
|
-
export declare class Payment {
|
|
16
|
-
readonly id: string;
|
|
17
|
-
version?: number;
|
|
18
|
-
domain?: Domain;
|
|
19
|
-
domainId?: string;
|
|
20
|
-
transaction: Transaction;
|
|
21
|
-
transactionId: string;
|
|
22
|
-
currency?: string;
|
|
23
|
-
amount: number;
|
|
24
|
-
paymentType: PaymentType;
|
|
25
|
-
sourceBankAccount?: BankAccount;
|
|
26
|
-
sourceBankAccountId?: string;
|
|
27
|
-
destinationBankAccount?: BankAccount;
|
|
28
|
-
destinationBankAccountId?: string;
|
|
29
|
-
year?: number;
|
|
30
|
-
quarter?: number;
|
|
31
|
-
month?: number;
|
|
32
|
-
paidAt: Date;
|
|
33
|
-
direction: PaymentDirection;
|
|
34
|
-
note?: string;
|
|
35
|
-
createdAt?: Date;
|
|
36
|
-
updatedAt?: Date;
|
|
37
|
-
deletedAt?: Date;
|
|
38
|
-
creator?: User;
|
|
39
|
-
creatorId?: string;
|
|
40
|
-
updater?: User;
|
|
41
|
-
updaterId?: string;
|
|
42
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Payment = exports.PaymentType = exports.PaymentDirection = 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 transaction_1 = require("../transaction/transaction");
|
|
10
|
-
const bank_account_1 = require("../bank-account/bank-account");
|
|
11
|
-
var PaymentDirection;
|
|
12
|
-
(function (PaymentDirection) {
|
|
13
|
-
PaymentDirection["Incoming"] = "Incoming";
|
|
14
|
-
PaymentDirection["Outgoing"] = "Outgoing"; // 지출
|
|
15
|
-
})(PaymentDirection || (exports.PaymentDirection = PaymentDirection = {}));
|
|
16
|
-
(0, type_graphql_1.registerEnumType)(PaymentDirection, {
|
|
17
|
-
name: 'PaymentDirection',
|
|
18
|
-
description: 'Indicates whether the payment is incoming (received) or outgoing (paid)' // 결제 방향을 나타냅니다 (수금 또는 지출)
|
|
19
|
-
});
|
|
20
|
-
var PaymentType;
|
|
21
|
-
(function (PaymentType) {
|
|
22
|
-
PaymentType["Transfer"] = "Transfer";
|
|
23
|
-
PaymentType["Cash"] = "Cash";
|
|
24
|
-
PaymentType["CreditCard"] = "CreditCard";
|
|
25
|
-
PaymentType["DebitCard"] = "DebitCard"; // 직불카드
|
|
26
|
-
})(PaymentType || (exports.PaymentType = PaymentType = {}));
|
|
27
|
-
(0, type_graphql_1.registerEnumType)(PaymentType, {
|
|
28
|
-
name: 'PaymentType',
|
|
29
|
-
description: 'Type of the payment (e.g., Transfer, Cash, CreditCard, DebitCard)' // 결제 유형을 나타냅니다
|
|
30
|
-
});
|
|
31
|
-
let Payment = class Payment {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.version = 1; // 낙관적 잠금을 위한 버전 관리 필드
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.Payment = Payment;
|
|
37
|
-
tslib_1.__decorate([
|
|
38
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
39
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Unique identifier for the payment record' }),
|
|
40
|
-
tslib_1.__metadata("design:type", String)
|
|
41
|
-
], Payment.prototype, "id", void 0);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
(0, typeorm_1.VersionColumn)(),
|
|
44
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Version number used for optimistic locking' }),
|
|
45
|
-
tslib_1.__metadata("design:type", Number)
|
|
46
|
-
], Payment.prototype, "version", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
49
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The domain to which this payment belongs' }),
|
|
50
|
-
tslib_1.__metadata("design:type", shell_1.Domain // 결제가 속한 도메인
|
|
51
|
-
)
|
|
52
|
-
], Payment.prototype, "domain", void 0);
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
(0, typeorm_1.RelationId)((payment) => payment.domain),
|
|
55
|
-
tslib_1.__metadata("design:type", String)
|
|
56
|
-
], Payment.prototype, "domainId", void 0);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
(0, typeorm_1.ManyToOne)(type => transaction_1.Transaction, transaction => transaction.payments),
|
|
59
|
-
(0, type_graphql_1.Field)(type => transaction_1.Transaction, { description: 'The transaction associated with this payment' }),
|
|
60
|
-
tslib_1.__metadata("design:type", transaction_1.Transaction // 결제와 연결된 트랜잭션
|
|
61
|
-
)
|
|
62
|
-
], Payment.prototype, "transaction", void 0);
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
(0, typeorm_1.RelationId)((payment) => payment.transaction),
|
|
65
|
-
tslib_1.__metadata("design:type", String)
|
|
66
|
-
], Payment.prototype, "transactionId", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
69
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The currency used in the payment' }),
|
|
70
|
-
tslib_1.__metadata("design:type", String)
|
|
71
|
-
], Payment.prototype, "currency", void 0);
|
|
72
|
-
tslib_1.__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
74
|
-
(0, type_graphql_1.Field)({ nullable: false, description: 'The amount of money involved in the payment' }),
|
|
75
|
-
tslib_1.__metadata("design:type", Number)
|
|
76
|
-
], Payment.prototype, "amount", void 0);
|
|
77
|
-
tslib_1.__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
79
|
-
(0, type_graphql_1.Field)(type => PaymentType, { description: 'Type of the payment' }),
|
|
80
|
-
tslib_1.__metadata("design:type", String)
|
|
81
|
-
], Payment.prototype, "paymentType", void 0);
|
|
82
|
-
tslib_1.__decorate([
|
|
83
|
-
(0, typeorm_1.ManyToOne)(type => bank_account_1.BankAccount, { nullable: true }),
|
|
84
|
-
(0, type_graphql_1.Field)(type => bank_account_1.BankAccount, { nullable: true, description: 'Source bank account for the payment' }),
|
|
85
|
-
tslib_1.__metadata("design:type", bank_account_1.BankAccount)
|
|
86
|
-
], Payment.prototype, "sourceBankAccount", void 0);
|
|
87
|
-
tslib_1.__decorate([
|
|
88
|
-
(0, typeorm_1.RelationId)((payment) => payment.sourceBankAccount),
|
|
89
|
-
tslib_1.__metadata("design:type", String)
|
|
90
|
-
], Payment.prototype, "sourceBankAccountId", void 0);
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
(0, typeorm_1.ManyToOne)(type => bank_account_1.BankAccount, { nullable: true }),
|
|
93
|
-
(0, type_graphql_1.Field)(type => bank_account_1.BankAccount, { nullable: true, description: 'Destination bank account for the payment' }),
|
|
94
|
-
tslib_1.__metadata("design:type", bank_account_1.BankAccount)
|
|
95
|
-
], Payment.prototype, "destinationBankAccount", void 0);
|
|
96
|
-
tslib_1.__decorate([
|
|
97
|
-
(0, typeorm_1.RelationId)((payment) => payment.destinationBankAccount),
|
|
98
|
-
tslib_1.__metadata("design:type", String)
|
|
99
|
-
], Payment.prototype, "destinationBankAccountId", void 0);
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal year in which the payment was made' }),
|
|
103
|
-
tslib_1.__metadata("design:type", Number)
|
|
104
|
-
], Payment.prototype, "year", void 0);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
107
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal quarter in which the payment was made' }),
|
|
108
|
-
tslib_1.__metadata("design:type", Number)
|
|
109
|
-
], Payment.prototype, "quarter", void 0);
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
112
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal month in which the payment was made' }),
|
|
113
|
-
tslib_1.__metadata("design:type", Number)
|
|
114
|
-
], Payment.prototype, "month", void 0);
|
|
115
|
-
tslib_1.__decorate([
|
|
116
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
117
|
-
(0, type_graphql_1.Field)({ nullable: false, description: 'The date and time when the payment was made' }),
|
|
118
|
-
tslib_1.__metadata("design:type", Date // 결제가 이루어진 날짜 및 시간
|
|
119
|
-
)
|
|
120
|
-
], Payment.prototype, "paidAt", void 0);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
123
|
-
(0, type_graphql_1.Field)(type => PaymentDirection, { description: 'Direction of the payment (Incoming or Outgoing)' }),
|
|
124
|
-
tslib_1.__metadata("design:type", String)
|
|
125
|
-
], Payment.prototype, "direction", void 0);
|
|
126
|
-
tslib_1.__decorate([
|
|
127
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
128
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Additional notes or comments about the payment' }),
|
|
129
|
-
tslib_1.__metadata("design:type", String)
|
|
130
|
-
], Payment.prototype, "note", void 0);
|
|
131
|
-
tslib_1.__decorate([
|
|
132
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
133
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The date and time when the payment record was created' }),
|
|
134
|
-
tslib_1.__metadata("design:type", Date // 결제 레코드가 생성된 날짜 및 시간
|
|
135
|
-
)
|
|
136
|
-
], Payment.prototype, "createdAt", void 0);
|
|
137
|
-
tslib_1.__decorate([
|
|
138
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
139
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The date and time when the payment record was last updated' }),
|
|
140
|
-
tslib_1.__metadata("design:type", Date // 결제 레코드가 마지막으로 업데이트된 날짜 및 시간
|
|
141
|
-
)
|
|
142
|
-
], Payment.prototype, "updatedAt", void 0);
|
|
143
|
-
tslib_1.__decorate([
|
|
144
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
145
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The date and time when the payment record was deleted' }),
|
|
146
|
-
tslib_1.__metadata("design:type", Date // 결제 레코드가 삭제된 날짜 및 시간
|
|
147
|
-
)
|
|
148
|
-
], Payment.prototype, "deletedAt", void 0);
|
|
149
|
-
tslib_1.__decorate([
|
|
150
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
151
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who created the payment record' }),
|
|
152
|
-
tslib_1.__metadata("design:type", auth_base_1.User // 결제 레코드를 생성한 사용자
|
|
153
|
-
)
|
|
154
|
-
], Payment.prototype, "creator", void 0);
|
|
155
|
-
tslib_1.__decorate([
|
|
156
|
-
(0, typeorm_1.RelationId)((payment) => payment.creator),
|
|
157
|
-
tslib_1.__metadata("design:type", String)
|
|
158
|
-
], Payment.prototype, "creatorId", void 0);
|
|
159
|
-
tslib_1.__decorate([
|
|
160
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
161
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who last updated the payment record' }),
|
|
162
|
-
tslib_1.__metadata("design:type", auth_base_1.User // 결제 레코드를 마지막으로 업데이트한 사용자
|
|
163
|
-
)
|
|
164
|
-
], Payment.prototype, "updater", void 0);
|
|
165
|
-
tslib_1.__decorate([
|
|
166
|
-
(0, typeorm_1.RelationId)((payment) => payment.updater),
|
|
167
|
-
tslib_1.__metadata("design:type", String)
|
|
168
|
-
], Payment.prototype, "updaterId", void 0);
|
|
169
|
-
exports.Payment = Payment = tslib_1.__decorate([
|
|
170
|
-
(0, typeorm_1.Entity)(),
|
|
171
|
-
(0, typeorm_1.Index)('ix_payment_0', (payment) => [payment.domain, payment.transaction, payment.paidAt], {
|
|
172
|
-
where: '"deleted_at" IS NULL',
|
|
173
|
-
unique: true
|
|
174
|
-
}),
|
|
175
|
-
(0, typeorm_1.Index)('ix_payment_1', (payment) => [payment.domain, payment.year, payment.quarter, payment.month, payment.paidAt], {
|
|
176
|
-
unique: true,
|
|
177
|
-
where: '"deleted_at" IS NULL'
|
|
178
|
-
}),
|
|
179
|
-
(0, type_graphql_1.ObjectType)({ description: 'Entity representing a Payment record in the system' }) // 시스템 내에서 결제 기록을 나타내는 엔티티
|
|
180
|
-
], Payment);
|
|
181
|
-
//# sourceMappingURL=payment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../server/service/payment/payment.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAsE;AAEtE,iDAA8C;AAC9C,yDAAgD;AAChD,4DAAwD;AACxD,+DAA0D;AAE1D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,yCAAqB,CAAA,CAAC,KAAK;AAC7B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAA,+BAAgB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0CAChC;kBAjGP,OAAO;IAdnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE;QAClG,KAAK,EAAE,sBAAsB;QAC7B,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,eAAK,EACJ,cAAc,EACd,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,EACpG;QACE,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CACF;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oDAAoD,EAAE,CAAC,CAAC,0BAA0B;GAChG,OAAO,CAkGnB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n VersionColumn,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Transaction } from '../transaction/transaction'\nimport { BankAccount } from '../bank-account/bank-account'\n\nexport enum PaymentDirection {\n Incoming = 'Incoming', // 수금\n Outgoing = 'Outgoing' // 지출\n}\n\nregisterEnumType(PaymentDirection, {\n name: 'PaymentDirection',\n description: 'Indicates whether the payment is incoming (received) or outgoing (paid)' // 결제 방향을 나타냅니다 (수금 또는 지출)\n})\n\nexport enum PaymentType {\n Transfer = 'Transfer', // 계좌 이체\n Cash = 'Cash', // 현금\n CreditCard = 'CreditCard', // 신용카드\n DebitCard = 'DebitCard' // 직불카드\n}\n\nregisterEnumType(PaymentType, {\n name: 'PaymentType',\n description: 'Type of the payment (e.g., Transfer, Cash, CreditCard, DebitCard)' // 결제 유형을 나타냅니다\n})\n\n@Entity()\n@Index('ix_payment_0', (payment: Payment) => [payment.domain, payment.transaction, payment.paidAt], {\n where: '\"deleted_at\" IS NULL',\n unique: true\n})\n@Index(\n 'ix_payment_1',\n (payment: Payment) => [payment.domain, payment.year, payment.quarter, payment.month, payment.paidAt],\n {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n }\n)\n@ObjectType({ description: 'Entity representing a Payment record in the system' }) // 시스템 내에서 결제 기록을 나타내는 엔티티\nexport class Payment {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Unique identifier for the payment record' })\n readonly id: string // 고유 식별자 (UUID)\n\n @VersionColumn()\n @Field({ nullable: true, description: 'Version number used for optimistic locking' })\n version?: number = 1 // 낙관적 잠금을 위한 버전 관리 필드\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true, description: 'The domain to which this payment belongs' })\n domain?: Domain // 결제가 속한 도메인\n\n @RelationId((payment: Payment) => payment.domain)\n domainId?: string // 도메인의 ID\n\n @ManyToOne(type => Transaction, transaction => transaction.payments)\n @Field(type => Transaction, { description: 'The transaction associated with this payment' })\n transaction: Transaction // 결제와 연결된 트랜잭션\n\n @RelationId((payment: Payment) => payment.transaction)\n transactionId: string // 연결된 트랜잭션의 ID\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The currency used in the payment' })\n currency?: string // 결제에 사용된 통화\n\n @Column({ nullable: false })\n @Field({ nullable: false, description: 'The amount of money involved in the payment' })\n amount: number // 결제된 금액\n\n @Column({ nullable: false })\n @Field(type => PaymentType, { description: 'Type of the payment' })\n paymentType: PaymentType // 결제 유형\n\n @ManyToOne(type => BankAccount, { nullable: true })\n @Field(type => BankAccount, { nullable: true, description: 'Source bank account for the payment' })\n sourceBankAccount?: BankAccount\n\n @RelationId((payment: Payment) => payment.sourceBankAccount)\n sourceBankAccountId?: string\n\n @ManyToOne(type => BankAccount, { nullable: true })\n @Field(type => BankAccount, { nullable: true, description: 'Destination bank account for the payment' })\n destinationBankAccount?: BankAccount\n\n @RelationId((payment: Payment) => payment.destinationBankAccount)\n destinationBankAccountId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal year in which the payment was made' })\n year?: number // 결제가 발생한 회계 연도\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal quarter in which the payment was made' })\n quarter?: number // 결제가 발생한 회계 분기\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal month in which the payment was made' })\n month?: number // 결제가 발생한 회계 월\n\n @Column({ nullable: false })\n @Field({ nullable: false, description: 'The date and time when the payment was made' })\n paidAt: Date // 결제가 이루어진 날짜 및 시간\n\n @Column({ nullable: false })\n @Field(type => PaymentDirection, { description: 'Direction of the payment (Incoming or Outgoing)' })\n direction: PaymentDirection // 결제 방향 (수금 또는 지출)\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Additional notes or comments about the payment' })\n note?: string // 결제에 대한 추가 설명 또는 메모\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'The date and time when the payment record was created' })\n createdAt?: Date // 결제 레코드가 생성된 날짜 및 시간\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'The date and time when the payment record was last updated' })\n updatedAt?: Date // 결제 레코드가 마지막으로 업데이트된 날짜 및 시간\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'The date and time when the payment record was deleted' })\n deletedAt?: Date // 결제 레코드가 삭제된 날짜 및 시간\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who created the payment record' })\n creator?: User // 결제 레코드를 생성한 사용자\n\n @RelationId((payment: Payment) => payment.creator)\n creatorId?: string // 결제 레코드를 생성한 사용자의 ID\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who last updated the payment record' })\n updater?: User // 결제 레코드를 마지막으로 업데이트한 사용자\n\n @RelationId((payment: Payment) => payment.updater)\n updaterId?: string // 결제 레코드를 업데이트한 사용자의 ID\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
-
import { Transaction } from './transaction';
|
|
3
|
-
import { TransactionHistory } from './transaction-history';
|
|
4
|
-
export declare class TransactionHistoryEntitySubscriber extends HistoryEntitySubscriber<Transaction, TransactionHistory> {
|
|
5
|
-
get entity(): typeof Transaction;
|
|
6
|
-
get historyEntity(): typeof TransactionHistory;
|
|
7
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionHistoryEntitySubscriber = 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 transaction_1 = require("./transaction");
|
|
8
|
-
const transaction_history_1 = require("./transaction-history");
|
|
9
|
-
let TransactionHistoryEntitySubscriber = class TransactionHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
-
get entity() {
|
|
11
|
-
return transaction_1.Transaction;
|
|
12
|
-
}
|
|
13
|
-
get historyEntity() {
|
|
14
|
-
return transaction_history_1.TransactionHistory;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.TransactionHistoryEntitySubscriber = TransactionHistoryEntitySubscriber;
|
|
18
|
-
exports.TransactionHistoryEntitySubscriber = TransactionHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
-
(0, typeorm_1.EventSubscriber)()
|
|
20
|
-
], TransactionHistoryEntitySubscriber);
|
|
21
|
-
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/transaction/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,+CAA2C;AAC3C,+DAA0D;AAGnD,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,yCAAwD;IAC9G,IAAW,MAAM;QACf,OAAO,yBAAW,CAAA;IACpB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,wCAAkB,CAAA;IAC3B,CAAC;CACF,CAAA;AARY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,yBAAe,GAAE;GACL,kCAAkC,CAQ9C","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { Transaction } from './transaction'\nimport { TransactionHistory } from './transaction-history'\n\n@EventSubscriber()\nexport class TransactionHistoryEntitySubscriber extends HistoryEntitySubscriber<Transaction, TransactionHistory> {\n public get entity() {\n return Transaction\n }\n\n public get historyEntity() {\n return TransactionHistory\n }\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Transaction } from './transaction';
|
|
2
|
-
import { TransactionHistory } from './transaction-history';
|
|
3
|
-
import { TransactionQuery } from './transaction-query';
|
|
4
|
-
import { TransactionMutation } from './transaction-mutation';
|
|
5
|
-
import { TransactionHistoryEntitySubscriber } from './event-subscriber';
|
|
6
|
-
export declare const entities: (typeof Transaction | typeof TransactionHistory)[];
|
|
7
|
-
export declare const resolvers: (typeof TransactionQuery | typeof TransactionMutation)[];
|
|
8
|
-
export declare const subscribers: (typeof TransactionHistoryEntitySubscriber)[];
|
|
@@ -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 transaction_1 = require("./transaction");
|
|
5
|
-
const transaction_history_1 = require("./transaction-history");
|
|
6
|
-
const transaction_query_1 = require("./transaction-query");
|
|
7
|
-
const transaction_mutation_1 = require("./transaction-mutation");
|
|
8
|
-
const event_subscriber_1 = require("./event-subscriber");
|
|
9
|
-
exports.entities = [transaction_1.Transaction, transaction_history_1.TransactionHistory];
|
|
10
|
-
exports.resolvers = [transaction_query_1.TransactionQuery, transaction_mutation_1.TransactionMutation];
|
|
11
|
-
exports.subscribers = [event_subscriber_1.TransactionHistoryEntitySubscriber];
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/transaction/index.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+DAA0D;AAC1D,2DAAsD;AACtD,iEAA4D;AAC5D,yDAAuE;AAE1D,QAAA,QAAQ,GAAG,CAAC,yBAAW,EAAE,wCAAkB,CAAC,CAAA;AAC5C,QAAA,SAAS,GAAG,CAAC,oCAAgB,EAAE,0CAAmB,CAAC,CAAA;AACnD,QAAA,WAAW,GAAG,CAAC,qDAAkC,CAAC,CAAA","sourcesContent":["import { Transaction } from './transaction'\nimport { TransactionHistory } from './transaction-history'\nimport { TransactionQuery } from './transaction-query'\nimport { TransactionMutation } from './transaction-mutation'\nimport { TransactionHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [Transaction, TransactionHistory]\nexport const resolvers = [TransactionQuery, TransactionMutation]\nexport const subscribers = [TransactionHistoryEntitySubscriber]\n"]}
|
|
@@ -1,36 +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 { Transaction, TransactionCategory, TransactionStatus, TransactionType } from './transaction';
|
|
5
|
-
import { Account } from '../account/account';
|
|
6
|
-
export declare class TransactionHistory implements HistoryEntityInterface<Transaction> {
|
|
7
|
-
readonly id: string;
|
|
8
|
-
version?: number;
|
|
9
|
-
domain?: Domain;
|
|
10
|
-
domainId?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
currency?: string;
|
|
14
|
-
amount?: number;
|
|
15
|
-
active?: boolean;
|
|
16
|
-
type?: TransactionType;
|
|
17
|
-
category: TransactionCategory;
|
|
18
|
-
status: TransactionStatus;
|
|
19
|
-
probability?: number;
|
|
20
|
-
forecastNotes?: string;
|
|
21
|
-
account?: Account;
|
|
22
|
-
accountId?: string;
|
|
23
|
-
year?: number;
|
|
24
|
-
quarter?: number;
|
|
25
|
-
month?: number;
|
|
26
|
-
transactionDate: string;
|
|
27
|
-
createdAt?: Date;
|
|
28
|
-
updatedAt?: Date;
|
|
29
|
-
deletedAt?: Date;
|
|
30
|
-
creator?: User;
|
|
31
|
-
creatorId?: string;
|
|
32
|
-
updater?: User;
|
|
33
|
-
updaterId?: string;
|
|
34
|
-
originalId: string;
|
|
35
|
-
action: HistoryActionType;
|
|
36
|
-
}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionHistory = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
const env_1 = require("@things-factory/env");
|
|
10
|
-
const shell_1 = require("@things-factory/shell");
|
|
11
|
-
const transaction_1 = require("./transaction");
|
|
12
|
-
const account_1 = require("../account/account");
|
|
13
|
-
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
14
|
-
const DATABASE_TYPE = ORMCONFIG.type;
|
|
15
|
-
let TransactionHistory = class TransactionHistory {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.version = 1;
|
|
18
|
-
this.amount = 0;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.TransactionHistory = TransactionHistory;
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
25
|
-
tslib_1.__metadata("design:type", String)
|
|
26
|
-
], TransactionHistory.prototype, "id", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true, default: 1 }),
|
|
29
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
30
|
-
tslib_1.__metadata("design:type", Number)
|
|
31
|
-
], TransactionHistory.prototype, "version", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
34
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
35
|
-
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
36
|
-
], TransactionHistory.prototype, "domain", void 0);
|
|
37
|
-
tslib_1.__decorate([
|
|
38
|
-
(0, typeorm_1.RelationId)((transactionHistory) => transactionHistory.domain),
|
|
39
|
-
tslib_1.__metadata("design:type", String)
|
|
40
|
-
], TransactionHistory.prototype, "domainId", void 0);
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, typeorm_1.Column)(),
|
|
43
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
-
tslib_1.__metadata("design:type", String)
|
|
45
|
-
], TransactionHistory.prototype, "name", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
-
tslib_1.__metadata("design:type", String)
|
|
50
|
-
], TransactionHistory.prototype, "description", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
-
tslib_1.__metadata("design:type", String)
|
|
55
|
-
], TransactionHistory.prototype, "currency", void 0);
|
|
56
|
-
tslib_1.__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
tslib_1.__metadata("design:type", Number)
|
|
60
|
-
], TransactionHistory.prototype, "amount", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
64
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
65
|
-
], TransactionHistory.prototype, "active", void 0);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
68
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
-
tslib_1.__metadata("design:type", Number)
|
|
70
|
-
], TransactionHistory.prototype, "type", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
73
|
-
(0, type_graphql_1.Field)(type => transaction_1.TransactionCategory, { nullable: false }),
|
|
74
|
-
tslib_1.__metadata("design:type", String)
|
|
75
|
-
], TransactionHistory.prototype, "category", void 0);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
78
|
-
(0, type_graphql_1.Field)(type => transaction_1.TransactionStatus, { nullable: false }),
|
|
79
|
-
tslib_1.__metadata("design:type", String)
|
|
80
|
-
], TransactionHistory.prototype, "status", void 0);
|
|
81
|
-
tslib_1.__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
83
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The probability of the forecast being realized (0 to 100)' }),
|
|
84
|
-
tslib_1.__metadata("design:type", Number)
|
|
85
|
-
], TransactionHistory.prototype, "probability", void 0);
|
|
86
|
-
tslib_1.__decorate([
|
|
87
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Additional notes or comments about the forecast' }),
|
|
89
|
-
tslib_1.__metadata("design:type", String)
|
|
90
|
-
], TransactionHistory.prototype, "forecastNotes", void 0);
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
(0, typeorm_1.ManyToOne)(type => account_1.Account),
|
|
93
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
94
|
-
tslib_1.__metadata("design:type", account_1.Account)
|
|
95
|
-
], TransactionHistory.prototype, "account", void 0);
|
|
96
|
-
tslib_1.__decorate([
|
|
97
|
-
(0, typeorm_1.RelationId)((transactionHistory) => transactionHistory.account),
|
|
98
|
-
tslib_1.__metadata("design:type", String)
|
|
99
|
-
], TransactionHistory.prototype, "accountId", void 0);
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'fiscal year' }),
|
|
103
|
-
tslib_1.__metadata("design:type", Number)
|
|
104
|
-
], TransactionHistory.prototype, "year", void 0);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
107
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'fiscal quarter' }),
|
|
108
|
-
tslib_1.__metadata("design:type", Number)
|
|
109
|
-
], TransactionHistory.prototype, "quarter", void 0);
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
112
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'fiscal month' }),
|
|
113
|
-
tslib_1.__metadata("design:type", Number)
|
|
114
|
-
], TransactionHistory.prototype, "month", void 0);
|
|
115
|
-
tslib_1.__decorate([
|
|
116
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
117
|
-
(0, type_graphql_1.Field)({ nullable: false, description: 'The date the transaction occurs or is scheduled (in string format)' }),
|
|
118
|
-
tslib_1.__metadata("design:type", String)
|
|
119
|
-
], TransactionHistory.prototype, "transactionDate", void 0);
|
|
120
|
-
tslib_1.__decorate([
|
|
121
|
-
(0, typeorm_1.Column)(),
|
|
122
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
123
|
-
tslib_1.__metadata("design:type", Date)
|
|
124
|
-
], TransactionHistory.prototype, "createdAt", void 0);
|
|
125
|
-
tslib_1.__decorate([
|
|
126
|
-
(0, typeorm_1.Column)(),
|
|
127
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
128
|
-
tslib_1.__metadata("design:type", Date)
|
|
129
|
-
], TransactionHistory.prototype, "updatedAt", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
(0, typeorm_1.Column)(),
|
|
132
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
tslib_1.__metadata("design:type", Date)
|
|
134
|
-
], TransactionHistory.prototype, "deletedAt", void 0);
|
|
135
|
-
tslib_1.__decorate([
|
|
136
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
137
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
138
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
139
|
-
], TransactionHistory.prototype, "creator", void 0);
|
|
140
|
-
tslib_1.__decorate([
|
|
141
|
-
(0, typeorm_1.RelationId)((transactionHistory) => transactionHistory.creator),
|
|
142
|
-
tslib_1.__metadata("design:type", String)
|
|
143
|
-
], TransactionHistory.prototype, "creatorId", void 0);
|
|
144
|
-
tslib_1.__decorate([
|
|
145
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
146
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
147
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
148
|
-
], TransactionHistory.prototype, "updater", void 0);
|
|
149
|
-
tslib_1.__decorate([
|
|
150
|
-
(0, typeorm_1.RelationId)((transactionHistory) => transactionHistory.updater),
|
|
151
|
-
tslib_1.__metadata("design:type", String)
|
|
152
|
-
], TransactionHistory.prototype, "updaterId", void 0);
|
|
153
|
-
tslib_1.__decorate([
|
|
154
|
-
(0, typeorm_history_1.HistoryOriginalIdColumn)(),
|
|
155
|
-
tslib_1.__metadata("design:type", String)
|
|
156
|
-
], TransactionHistory.prototype, "originalId", void 0);
|
|
157
|
-
tslib_1.__decorate([
|
|
158
|
-
(0, typeorm_history_1.HistoryActionColumn)({
|
|
159
|
-
nullable: false,
|
|
160
|
-
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
161
|
-
? 'enum'
|
|
162
|
-
: DATABASE_TYPE == 'oracle'
|
|
163
|
-
? 'varchar2'
|
|
164
|
-
: DATABASE_TYPE == 'mssql'
|
|
165
|
-
? 'nvarchar'
|
|
166
|
-
: 'varchar',
|
|
167
|
-
enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
168
|
-
? typeorm_history_1.HistoryActionType
|
|
169
|
-
: undefined,
|
|
170
|
-
length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
|
|
171
|
-
}),
|
|
172
|
-
tslib_1.__metadata("design:type", String)
|
|
173
|
-
], TransactionHistory.prototype, "action", void 0);
|
|
174
|
-
exports.TransactionHistory = TransactionHistory = tslib_1.__decorate([
|
|
175
|
-
(0, typeorm_1.Entity)(),
|
|
176
|
-
(0, typeorm_1.Index)('ix_transaction_history_0', (transactionHistory) => [transactionHistory.originalId, transactionHistory.version], { unique: true }),
|
|
177
|
-
(0, typeorm_1.Index)('ix_transaction_history_1', (transactionHistory) => [
|
|
178
|
-
transactionHistory.domain,
|
|
179
|
-
transactionHistory.originalId,
|
|
180
|
-
transactionHistory.version
|
|
181
|
-
], { unique: true }),
|
|
182
|
-
(0, type_graphql_1.ObjectType)({ description: 'History Entity of Transaction' })
|
|
183
|
-
], TransactionHistory);
|
|
184
|
-
//# sourceMappingURL=transaction-history.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-history.js","sourceRoot":"","sources":["../../../server/service/transaction/transaction-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAE9F,8DAKiC;AACjC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA8C;AAE9C,+CAAoG;AACpG,gDAA4C;AAE5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAkB7B,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAAxB;QAOL,YAAO,GAAY,CAAC,CAAA;QAuBpB,WAAM,GAAY,CAAC,CAAA;IA+FrB,CAAC;CAAA,CAAA;AA7HY,gDAAkB;AAGpB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;8CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACN;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;kDAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC;;oDACjE;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACb;AAIb;IAFC,I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I,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,mCAAiB;YACnB,CAAC,CAAC,SAAS;QACf,MAAM,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;kDAC+B;6BA5HtB,kBAAkB;IAhB9B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,UAAU,EAAE,kBAAkB,CAAC,OAAO,CAAC,EACvG,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC;QAC1C,kBAAkB,CAAC,MAAM;QACzB,kBAAkB,CAAC,UAAU;QAC7B,kBAAkB,CAAC,OAAO;KAC3B,EACD,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;GAChD,kBAAkB,CA6H9B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@operato/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { Transaction, TransactionCategory, TransactionStatus, TransactionType } from './transaction'\nimport { Account } from '../account/account'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_transaction_history_0',\n (transactionHistory: TransactionHistory) => [transactionHistory.originalId, transactionHistory.version],\n { unique: true }\n)\n@Index(\n 'ix_transaction_history_1',\n (transactionHistory: TransactionHistory) => [\n transactionHistory.domain,\n transactionHistory.originalId,\n transactionHistory.version\n ],\n { unique: true }\n)\n@ObjectType({ description: 'History Entity of Transaction' })\nexport class TransactionHistory implements HistoryEntityInterface<Transaction> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((transactionHistory: TransactionHistory) => transactionHistory.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\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 currency?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n amount?: number = 0\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n type?: TransactionType\n\n @Column({ nullable: false })\n @Field(type => TransactionCategory, { nullable: false })\n category: TransactionCategory // 트랜잭션의 카테고리 (확정, 전망)\n\n @Column({ nullable: false })\n @Field(type => TransactionStatus, { nullable: false })\n status: TransactionStatus // 트랜잭션의 상태 (예: Paid, Delayed 등)\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The probability of the forecast being realized (0 to 100)' })\n probability?: number // 예측이 실현될 확률 (0 ~ 100)\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Additional notes or comments about the forecast' })\n forecastNotes?: string // 전망에 대한 추가 설명이나 메모\n\n @ManyToOne(type => Account)\n @Field({ nullable: true })\n account?: Account\n\n @RelationId((transactionHistory: TransactionHistory) => transactionHistory.account)\n accountId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'fiscal year' })\n year?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'fiscal quarter' })\n quarter?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'fiscal month' })\n month?: number\n\n @Column({ nullable: false })\n @Field({ nullable: false, description: 'The date the transaction occurs or is scheduled (in string format)' })\n transactionDate: string // 트랜잭션이 발생하거나 발생할 날짜\n\n @Column()\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @Column()\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((transactionHistory: TransactionHistory) => transactionHistory.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((transactionHistory: TransactionHistory) => transactionHistory.updater)\n updaterId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? HistoryActionType\n : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Transaction } from './transaction';
|
|
2
|
-
import { NewTransaction, TransactionPatch } from './transaction-type';
|
|
3
|
-
export declare class TransactionMutation {
|
|
4
|
-
createTransaction(transaction: NewTransaction, context: ResolverContext): Promise<Transaction>;
|
|
5
|
-
updateTransaction(id: string, patch: TransactionPatch, context: ResolverContext): Promise<Transaction>;
|
|
6
|
-
updateMultipleTransaction(patches: TransactionPatch[], context: ResolverContext): Promise<Transaction[]>;
|
|
7
|
-
deleteTransaction(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
-
deleteTransactions(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
-
importTransactions(transactions: TransactionPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
-
}
|