@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,241 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Transaction = exports.TransactionStatus = exports.TransactionCategory = exports.TransactionType = 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 account_1 = require("../account/account");
|
|
10
|
-
const payment_1 = require("../payment/payment");
|
|
11
|
-
const accounting_document_1 = require("../accounting-document/accounting-document");
|
|
12
|
-
var TransactionType;
|
|
13
|
-
(function (TransactionType) {
|
|
14
|
-
TransactionType[TransactionType["SalesIncome"] = 0] = "SalesIncome";
|
|
15
|
-
TransactionType[TransactionType["PurchaseExpense"] = 1] = "PurchaseExpense";
|
|
16
|
-
TransactionType[TransactionType["Asset"] = 2] = "Asset";
|
|
17
|
-
TransactionType[TransactionType["Liability"] = 3] = "Liability";
|
|
18
|
-
TransactionType[TransactionType["Equity"] = 4] = "Equity";
|
|
19
|
-
TransactionType[TransactionType["OtherIncome"] = 5] = "OtherIncome";
|
|
20
|
-
TransactionType[TransactionType["OtherExpense"] = 6] = "OtherExpense"; // 기타 비용
|
|
21
|
-
})(TransactionType || (exports.TransactionType = TransactionType = {}));
|
|
22
|
-
(0, type_graphql_1.registerEnumType)(TransactionType, {
|
|
23
|
-
name: 'TransactionType',
|
|
24
|
-
description: 'Type enumeration of a transaction, indicating the nature of the transaction (e.g., Sales, Purchase, etc.)'
|
|
25
|
-
});
|
|
26
|
-
var TransactionCategory;
|
|
27
|
-
(function (TransactionCategory) {
|
|
28
|
-
TransactionCategory["Confirmed"] = "Confirmed";
|
|
29
|
-
TransactionCategory["Forecast"] = "Forecast"; // 예상 전망 건
|
|
30
|
-
})(TransactionCategory || (exports.TransactionCategory = TransactionCategory = {}));
|
|
31
|
-
(0, type_graphql_1.registerEnumType)(TransactionCategory, {
|
|
32
|
-
name: 'TransactionCategory',
|
|
33
|
-
description: 'Category of a transaction, indicating whether it is confirmed or a forecast'
|
|
34
|
-
});
|
|
35
|
-
var TransactionStatus;
|
|
36
|
-
(function (TransactionStatus) {
|
|
37
|
-
TransactionStatus["Pending"] = "Pending";
|
|
38
|
-
TransactionStatus["Paid"] = "Paid";
|
|
39
|
-
TransactionStatus["PartiallyPaid"] = "PartiallyPaid";
|
|
40
|
-
TransactionStatus["Cancelled"] = "Cancelled";
|
|
41
|
-
TransactionStatus["Delayed"] = "Delayed";
|
|
42
|
-
TransactionStatus["ForecastFailed"] = "ForecastFailed"; // 전망이 틀린 경우
|
|
43
|
-
})(TransactionStatus || (exports.TransactionStatus = TransactionStatus = {}));
|
|
44
|
-
(0, type_graphql_1.registerEnumType)(TransactionStatus, {
|
|
45
|
-
name: 'TransactionStatus',
|
|
46
|
-
description: 'Status of a transaction, indicating its processing state (e.g., Paid, Delayed, etc.)'
|
|
47
|
-
});
|
|
48
|
-
let Transaction = class Transaction {
|
|
49
|
-
constructor() {
|
|
50
|
-
this.version = 1;
|
|
51
|
-
this.amount = 0;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.Transaction = Transaction;
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
57
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Unique identifier for the transaction' }),
|
|
58
|
-
tslib_1.__metadata("design:type", String)
|
|
59
|
-
], Transaction.prototype, "id", void 0);
|
|
60
|
-
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.VersionColumn)(),
|
|
62
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Version number for optimistic locking' }),
|
|
63
|
-
tslib_1.__metadata("design:type", Number)
|
|
64
|
-
], Transaction.prototype, "version", void 0);
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
67
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The domain in which this transaction belongs' }),
|
|
68
|
-
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
69
|
-
], Transaction.prototype, "domain", void 0);
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
(0, typeorm_1.RelationId)((transaction) => transaction.domain),
|
|
72
|
-
tslib_1.__metadata("design:type", String)
|
|
73
|
-
], Transaction.prototype, "domainId", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
(0, typeorm_1.Column)(),
|
|
76
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Name or title of the transaction' }),
|
|
77
|
-
tslib_1.__metadata("design:type", String)
|
|
78
|
-
], Transaction.prototype, "name", void 0);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Detailed description of the transaction' }),
|
|
82
|
-
tslib_1.__metadata("design:type", String)
|
|
83
|
-
], Transaction.prototype, "description", void 0);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Currency in which the transaction is denominated' }),
|
|
87
|
-
tslib_1.__metadata("design:type", String)
|
|
88
|
-
], Transaction.prototype, "currency", void 0);
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
91
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Amount involved in the transaction' }),
|
|
92
|
-
tslib_1.__metadata("design:type", Number)
|
|
93
|
-
], Transaction.prototype, "amount", void 0);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
96
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Indicates whether the transaction is currently active or not' }),
|
|
97
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
98
|
-
], Transaction.prototype, "active", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Type of the transaction (e.g., SalesIncome, PurchaseExpense)' }),
|
|
102
|
-
tslib_1.__metadata("design:type", Number)
|
|
103
|
-
], Transaction.prototype, "type", void 0);
|
|
104
|
-
tslib_1.__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
106
|
-
(0, type_graphql_1.Field)(type => TransactionCategory, {
|
|
107
|
-
nullable: false,
|
|
108
|
-
description: 'Category of the transaction (Confirmed or Forecast)'
|
|
109
|
-
}),
|
|
110
|
-
tslib_1.__metadata("design:type", String)
|
|
111
|
-
], Transaction.prototype, "category", void 0);
|
|
112
|
-
tslib_1.__decorate([
|
|
113
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
114
|
-
(0, type_graphql_1.Field)(type => TransactionStatus, {
|
|
115
|
-
nullable: false,
|
|
116
|
-
description: 'Current status of the transaction (e.g., Paid, Delayed)'
|
|
117
|
-
}),
|
|
118
|
-
tslib_1.__metadata("design:type", String)
|
|
119
|
-
], Transaction.prototype, "status", void 0);
|
|
120
|
-
tslib_1.__decorate([
|
|
121
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
122
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The probability of the forecast being realized (0 to 100)' }),
|
|
123
|
-
tslib_1.__metadata("design:type", Number)
|
|
124
|
-
], Transaction.prototype, "probability", void 0);
|
|
125
|
-
tslib_1.__decorate([
|
|
126
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
127
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Additional notes or comments about the forecast' }),
|
|
128
|
-
tslib_1.__metadata("design:type", String)
|
|
129
|
-
], Transaction.prototype, "forecastNotes", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
(0, typeorm_1.ManyToOne)(type => account_1.Account),
|
|
132
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Associated account for this transaction' }),
|
|
133
|
-
tslib_1.__metadata("design:type", account_1.Account)
|
|
134
|
-
], Transaction.prototype, "account", void 0);
|
|
135
|
-
tslib_1.__decorate([
|
|
136
|
-
(0, typeorm_1.RelationId)((transaction) => transaction.account),
|
|
137
|
-
tslib_1.__metadata("design:type", String)
|
|
138
|
-
], Transaction.prototype, "accountId", void 0);
|
|
139
|
-
tslib_1.__decorate([
|
|
140
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
141
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal year in which the transaction occurs' }),
|
|
142
|
-
tslib_1.__metadata("design:type", Number)
|
|
143
|
-
], Transaction.prototype, "year", void 0);
|
|
144
|
-
tslib_1.__decorate([
|
|
145
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
146
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal quarter in which the transaction occurs' }),
|
|
147
|
-
tslib_1.__metadata("design:type", Number)
|
|
148
|
-
], Transaction.prototype, "quarter", void 0);
|
|
149
|
-
tslib_1.__decorate([
|
|
150
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
151
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal month in which the transaction occurs' }),
|
|
152
|
-
tslib_1.__metadata("design:type", Number)
|
|
153
|
-
], Transaction.prototype, "month", void 0);
|
|
154
|
-
tslib_1.__decorate([
|
|
155
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
156
|
-
(0, type_graphql_1.Field)({ nullable: false, description: 'The date the transaction occurs or is scheduled (in string format)' }),
|
|
157
|
-
tslib_1.__metadata("design:type", String)
|
|
158
|
-
], Transaction.prototype, "transactionDate", void 0);
|
|
159
|
-
tslib_1.__decorate([
|
|
160
|
-
(0, typeorm_1.OneToMany)(type => payment_1.Payment, payment => payment.transaction),
|
|
161
|
-
(0, type_graphql_1.Field)(type => [payment_1.Payment], { nullable: true, description: 'List of payments associated with this transaction' }),
|
|
162
|
-
tslib_1.__metadata("design:type", Array)
|
|
163
|
-
], Transaction.prototype, "payments", void 0);
|
|
164
|
-
tslib_1.__decorate([
|
|
165
|
-
(0, typeorm_1.OneToMany)(type => accounting_document_1.AccountingDocument, document => document.transaction),
|
|
166
|
-
(0, type_graphql_1.Field)(type => [accounting_document_1.AccountingDocument], {
|
|
167
|
-
nullable: true,
|
|
168
|
-
description: 'List of accounting documents linked to this transaction'
|
|
169
|
-
}),
|
|
170
|
-
tslib_1.__metadata("design:type", Array)
|
|
171
|
-
], Transaction.prototype, "documents", void 0);
|
|
172
|
-
tslib_1.__decorate([
|
|
173
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
174
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Timestamp when the transaction record was created' }),
|
|
175
|
-
tslib_1.__metadata("design:type", Date)
|
|
176
|
-
], Transaction.prototype, "createdAt", void 0);
|
|
177
|
-
tslib_1.__decorate([
|
|
178
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
179
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Timestamp when the transaction record was last updated' }),
|
|
180
|
-
tslib_1.__metadata("design:type", Date)
|
|
181
|
-
], Transaction.prototype, "updatedAt", void 0);
|
|
182
|
-
tslib_1.__decorate([
|
|
183
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
184
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Timestamp when the transaction record was deleted (soft delete)' }),
|
|
185
|
-
tslib_1.__metadata("design:type", Date)
|
|
186
|
-
], Transaction.prototype, "deletedAt", void 0);
|
|
187
|
-
tslib_1.__decorate([
|
|
188
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
189
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'User who created the transaction record' }),
|
|
190
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
191
|
-
], Transaction.prototype, "creator", void 0);
|
|
192
|
-
tslib_1.__decorate([
|
|
193
|
-
(0, typeorm_1.RelationId)((transaction) => transaction.creator),
|
|
194
|
-
tslib_1.__metadata("design:type", String)
|
|
195
|
-
], Transaction.prototype, "creatorId", void 0);
|
|
196
|
-
tslib_1.__decorate([
|
|
197
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
198
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'User who last updated the transaction record' }),
|
|
199
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
200
|
-
], Transaction.prototype, "updater", void 0);
|
|
201
|
-
tslib_1.__decorate([
|
|
202
|
-
(0, typeorm_1.RelationId)((transaction) => transaction.updater),
|
|
203
|
-
tslib_1.__metadata("design:type", String)
|
|
204
|
-
], Transaction.prototype, "updaterId", void 0);
|
|
205
|
-
exports.Transaction = Transaction = tslib_1.__decorate([
|
|
206
|
-
(0, type_graphql_1.ObjectType)({
|
|
207
|
-
description: 'Entity representing a financial transaction, which could be sales, purchase, or other types of financial operations.'
|
|
208
|
-
}),
|
|
209
|
-
(0, typeorm_1.Entity)(),
|
|
210
|
-
(0, typeorm_1.Index)('ix_transaction_0', (transaction) => [
|
|
211
|
-
transaction.domain,
|
|
212
|
-
transaction.transactionDate,
|
|
213
|
-
transaction.type,
|
|
214
|
-
transaction.account
|
|
215
|
-
], {
|
|
216
|
-
unique: false,
|
|
217
|
-
where: '"deleted_at" IS NULL'
|
|
218
|
-
}),
|
|
219
|
-
(0, typeorm_1.Index)('ix_transaction_1', (transaction) => [
|
|
220
|
-
transaction.domain,
|
|
221
|
-
transaction.type,
|
|
222
|
-
transaction.account,
|
|
223
|
-
transaction.transactionDate
|
|
224
|
-
], {
|
|
225
|
-
unique: false,
|
|
226
|
-
where: '"deleted_at" IS NULL'
|
|
227
|
-
}),
|
|
228
|
-
(0, typeorm_1.Index)('ix_transaction_2', (transaction) => [
|
|
229
|
-
transaction.domain,
|
|
230
|
-
transaction.year,
|
|
231
|
-
transaction.quarter,
|
|
232
|
-
transaction.month,
|
|
233
|
-
transaction.transactionDate,
|
|
234
|
-
transaction.type,
|
|
235
|
-
transaction.account
|
|
236
|
-
], {
|
|
237
|
-
unique: true,
|
|
238
|
-
where: '"deleted_at" IS NULL'
|
|
239
|
-
})
|
|
240
|
-
], Transaction);
|
|
241
|
-
//# sourceMappingURL=transaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../server/service/transaction/transaction.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AAEtE,iDAA8C;AAC9C,yDAAgD;AAChD,gDAA4C;AAC5C,gDAA4C;AAC5C,oFAA+E;AAE/E,IAAY,eAQX;AARD,WAAY,eAAe;IACzB,mEAAW,CAAA;IACX,2EAAe,CAAA;IACf,uDAAK,CAAA;IACL,+DAAS,CAAA;IACT,yDAAM,CAAA;IACN,mEAAW,CAAA;IACX,qEAAY,CAAA,CAAC,QAAQ;AACvB,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B;AAED,IAAA,+BAAgB,EAAC,eAAe,EAAE;IAChC,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,2GAA2G;CAC9G,CAAC,CAAA;AAEF,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,4CAAqB,CAAA,CAAC,UAAU;AAClC,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAA,+BAAgB,EAAC,mBAAmB,EAAE;IACpC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,6EAA6E;CAC3F,CAAC,CAAA;AAEF,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,kCAAa,CAAA;IACb,oDAA+B,CAAA;IAC/B,4CAAuB,CAAA;IACvB,wCAAmB,CAAA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{\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n VersionColumn\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 { Account } from '../account/account'\nimport { Payment } from '../payment/payment'\nimport { AccountingDocument } from '../accounting-document/accounting-document'\n\nexport enum TransactionType {\n SalesIncome, // 매출\n PurchaseExpense, // 매입\n Asset, // 자산\n Liability, // 부채\n Equity, // 자본\n OtherIncome, // 기타 수익\n OtherExpense // 기타 비용\n}\n\nregisterEnumType(TransactionType, {\n name: 'TransactionType',\n description:\n 'Type enumeration of a transaction, indicating the nature of the transaction (e.g., Sales, Purchase, etc.)'\n})\n\nexport enum TransactionCategory {\n Confirmed = 'Confirmed', // 확정된 건\n Forecast = 'Forecast' // 예상 전망 건\n}\n\nregisterEnumType(TransactionCategory, {\n name: 'TransactionCategory',\n description: 'Category of a transaction, indicating whether it is confirmed or a forecast'\n})\n\nexport enum TransactionStatus {\n Pending = 'Pending', // 처리 대기 중\n Paid = 'Paid', // 전액 결제됨\n PartiallyPaid = 'PartiallyPaid', // 일부만 결제됨\n Cancelled = 'Cancelled', // 취소됨\n Delayed = 'Delayed', // 지연됨\n ForecastFailed = 'ForecastFailed' // 전망이 틀린 경우\n}\n\nregisterEnumType(TransactionStatus, {\n name: 'TransactionStatus',\n description: 'Status of a transaction, indicating its processing state (e.g., Paid, Delayed, etc.)'\n})\n\n@ObjectType({\n description:\n 'Entity representing a financial transaction, which could be sales, purchase, or other types of financial operations.'\n})\n@Entity()\n@Index(\n 'ix_transaction_0',\n (transaction: Transaction) => [\n transaction.domain,\n transaction.transactionDate,\n transaction.type,\n transaction.account\n ],\n {\n unique: false,\n where: '\"deleted_at\" IS NULL'\n }\n)\n@Index(\n 'ix_transaction_1',\n (transaction: Transaction) => [\n transaction.domain,\n transaction.type,\n transaction.account,\n transaction.transactionDate\n ],\n {\n unique: false,\n where: '\"deleted_at\" IS NULL'\n }\n)\n@Index(\n 'ix_transaction_2',\n (transaction: Transaction) => [\n transaction.domain,\n transaction.year,\n transaction.quarter,\n transaction.month,\n transaction.transactionDate,\n transaction.type,\n transaction.account\n ],\n {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n }\n)\nexport class Transaction {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Unique identifier for the transaction' })\n readonly id: string\n\n @VersionColumn()\n @Field({ nullable: true, description: 'Version number for optimistic locking' })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true, description: 'The domain in which this transaction belongs' })\n domain?: Domain\n\n @RelationId((transaction: Transaction) => transaction.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true, description: 'Name or title of the transaction' })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Detailed description of the transaction' })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Currency in which the transaction is denominated' })\n currency?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Amount involved in the transaction' })\n amount?: number = 0\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Indicates whether the transaction is currently active or not' })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Type of the transaction (e.g., SalesIncome, PurchaseExpense)' })\n type?: TransactionType\n\n @Column({ nullable: false })\n @Field(type => TransactionCategory, {\n nullable: false,\n description: 'Category of the transaction (Confirmed or Forecast)'\n })\n category: TransactionCategory // 트랜잭션의 카테고리 (확정, 전망)\n\n @Column({ nullable: false })\n @Field(type => TransactionStatus, {\n nullable: false,\n description: 'Current status of the transaction (e.g., Paid, Delayed)'\n })\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, description: 'Associated account for this transaction' })\n account?: Account\n\n @RelationId((transaction: Transaction) => transaction.account)\n accountId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal year in which the transaction occurs' })\n year?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal quarter in which the transaction occurs' })\n quarter?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal month in which the transaction occurs' })\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 @OneToMany(type => Payment, payment => payment.transaction)\n @Field(type => [Payment], { nullable: true, description: 'List of payments associated with this transaction' })\n payments?: Payment[]\n\n @OneToMany(type => AccountingDocument, document => document.transaction)\n @Field(type => [AccountingDocument], {\n nullable: true,\n description: 'List of accounting documents linked to this transaction'\n })\n documents?: AccountingDocument[] // 트랜잭션과 연결된 회계 문서\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Timestamp when the transaction record was created' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Timestamp when the transaction record was last updated' })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'Timestamp when the transaction record was deleted (soft delete)' })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'User who created the transaction record' })\n creator?: User\n\n @RelationId((transaction: Transaction) => transaction.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'User who last updated the transaction record' })\n updater?: User\n\n @RelationId((transaction: Transaction) => transaction.updater)\n updaterId?: string\n}\n"]}
|