@things-factory/accounting 10.1.134 → 10.1.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +0 -12
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +0 -1
- package/dist-server/index.js +0 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/service/account/account-history.d.ts +13 -6
- package/dist-server/service/account/account-history.js +44 -17
- package/dist-server/service/account/account-history.js.map +1 -1
- package/dist-server/service/account/account-mutation.js +2 -2
- package/dist-server/service/account/account-mutation.js.map +1 -1
- package/dist-server/service/account/account-type.d.ts +16 -0
- package/dist-server/service/account/account-type.js +71 -13
- package/dist-server/service/account/account-type.js.map +1 -1
- package/dist-server/service/account/account.d.ts +9 -3
- package/dist-server/service/account/account.js +34 -8
- package/dist-server/service/account/account.js.map +1 -1
- package/dist-server/service/accounting-category/accounting-category-mutation.js +2 -2
- package/dist-server/service/accounting-category/accounting-category-mutation.js.map +1 -1
- package/dist-server/service/accounting-document/accounting-document-mutation.js +12 -3
- package/dist-server/service/accounting-document/accounting-document-mutation.js.map +1 -1
- package/dist-server/service/accounting-document/accounting-document-query.js +2 -0
- package/dist-server/service/accounting-document/accounting-document-query.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-history.d.ts +11 -14
- package/dist-server/service/bank-account/bank-account-history.js +46 -59
- package/dist-server/service/bank-account/bank-account-history.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-mutation.d.ts +1 -2
- package/dist-server/service/bank-account/bank-account-mutation.js +25 -69
- package/dist-server/service/bank-account/bank-account-mutation.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-query.js +2 -0
- package/dist-server/service/bank-account/bank-account-query.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-service.d.ts +5 -0
- package/dist-server/service/bank-account/bank-account-service.js +21 -0
- package/dist-server/service/bank-account/bank-account-service.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-type.d.ts +13 -19
- package/dist-server/service/bank-account/bank-account-type.js +45 -69
- package/dist-server/service/bank-account/bank-account-type.js.map +1 -1
- package/dist-server/service/bank-account/bank-account.d.ts +14 -17
- package/dist-server/service/bank-account/bank-account.js +45 -57
- package/dist-server/service/bank-account/bank-account.js.map +1 -1
- package/dist-server/service/bank-statement/bank-statement-query.d.ts +14 -0
- package/dist-server/service/bank-statement/bank-statement-query.js +92 -0
- package/dist-server/service/bank-statement/bank-statement-query.js.map +1 -0
- package/dist-server/service/bank-statement/bank-statement.d.ts +26 -0
- package/dist-server/service/bank-statement/bank-statement.js +109 -0
- package/dist-server/service/bank-statement/bank-statement.js.map +1 -0
- package/dist-server/service/bank-statement/index.d.ts +5 -0
- package/dist-server/service/bank-statement/index.js +9 -0
- package/dist-server/service/bank-statement/index.js.map +1 -0
- package/dist-server/service/cash-flow-type.d.ts +5 -0
- package/dist-server/service/cash-flow-type.js +15 -0
- package/dist-server/service/cash-flow-type.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.js +10 -1
- package/dist-server/service/financial-institution/financial-institution-mutation.js.map +1 -1
- package/dist-server/service/financial-institution/financial-institution-query.js +14 -6
- package/dist-server/service/financial-institution/financial-institution-query.js.map +1 -1
- package/dist-server/service/financial-institution/index.d.ts +1 -1
- package/dist-server/service/financial-statement/financial-statement-history.d.ts +11 -9
- package/dist-server/service/financial-statement/financial-statement-history.js +47 -36
- package/dist-server/service/financial-statement/financial-statement-history.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-line.d.ts +24 -0
- package/dist-server/service/financial-statement/financial-statement-line.js +108 -0
- package/dist-server/service/financial-statement/financial-statement-line.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.d.ts +1 -8
- package/dist-server/service/financial-statement/financial-statement-mutation.js +10 -135
- package/dist-server/service/financial-statement/financial-statement-mutation.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-query.d.ts +8 -7
- package/dist-server/service/financial-statement/financial-statement-query.js +40 -30
- package/dist-server/service/financial-statement/financial-statement-query.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-service.d.ts +33 -0
- package/dist-server/service/financial-statement/financial-statement-service.js +44 -0
- package/dist-server/service/financial-statement/financial-statement-service.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement.d.ts +19 -11
- package/dist-server/service/financial-statement/financial-statement.js +73 -65
- package/dist-server/service/financial-statement/financial-statement.js.map +1 -1
- package/dist-server/service/financial-statement/index.d.ts +3 -2
- package/dist-server/service/financial-statement/index.js +2 -2
- package/dist-server/service/financial-statement/index.js.map +1 -1
- package/dist-server/service/index.d.ts +15 -3
- package/dist-server/service/index.js +30 -13
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/payment/index.d.ts +1 -0
- package/dist-server/service/payment/index.js +1 -0
- package/dist-server/service/payment/index.js.map +1 -1
- package/dist-server/service/payment/payment-history.d.ts +9 -16
- package/dist-server/service/payment/payment-history.js +36 -70
- package/dist-server/service/payment/payment-history.js.map +1 -1
- package/dist-server/service/payment/payment-mutation.d.ts +0 -1
- package/dist-server/service/payment/payment-mutation.js +14 -79
- package/dist-server/service/payment/payment-mutation.js.map +1 -1
- package/dist-server/service/payment/payment-query.d.ts +3 -0
- package/dist-server/service/payment/payment-query.js +30 -1
- package/dist-server/service/payment/payment-query.js.map +1 -1
- package/dist-server/service/payment/payment-service.d.ts +16 -0
- package/dist-server/service/payment/payment-service.js +140 -0
- package/dist-server/service/payment/payment-service.js.map +1 -0
- package/dist-server/service/payment/payment-targets.d.ts +31 -0
- package/dist-server/service/payment/payment-targets.js +19 -0
- package/dist-server/service/payment/payment-targets.js.map +1 -0
- package/dist-server/service/payment/payment-type.d.ts +13 -17
- package/dist-server/service/payment/payment-type.js +35 -51
- package/dist-server/service/payment/payment-type.js.map +1 -1
- package/dist-server/service/payment/payment.d.ts +23 -22
- package/dist-server/service/payment/payment.js +66 -94
- package/dist-server/service/payment/payment.js.map +1 -1
- package/dist-server/service/payment/transfer-target.d.ts +1 -0
- package/dist-server/service/payment/transfer-target.js +43 -0
- package/dist-server/service/payment/transfer-target.js.map +1 -0
- package/dist-server/service/recurring-cash-item/index.d.ts +6 -0
- package/dist-server/service/recurring-cash-item/index.js +10 -0
- package/dist-server/service/recurring-cash-item/index.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.d.ts +7 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.js +63 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.d.ts +15 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.js +101 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-service.d.ts +23 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-service.js +91 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-service.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.d.ts +23 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.js +85 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item.d.ts +35 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item.js +142 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-schedule.d.ts +36 -0
- package/dist-server/service/recurring-cash-item/recurring-schedule.js +41 -0
- package/dist-server/service/recurring-cash-item/recurring-schedule.js.map +1 -0
- package/dist-server/service/transaction/transaction-history.d.ts +42 -15
- package/dist-server/service/transaction/transaction-history.js +160 -54
- package/dist-server/service/transaction/transaction-history.js.map +1 -1
- package/dist-server/service/transaction/transaction-mutation.d.ts +0 -1
- package/dist-server/service/transaction/transaction-mutation.js +13 -78
- package/dist-server/service/transaction/transaction-mutation.js.map +1 -1
- package/dist-server/service/transaction/transaction-period.d.ts +16 -0
- package/dist-server/service/transaction/transaction-period.js +49 -0
- package/dist-server/service/transaction/transaction-period.js.map +1 -0
- package/dist-server/service/transaction/transaction-query.d.ts +12 -0
- package/dist-server/service/transaction/transaction-query.js +84 -2
- package/dist-server/service/transaction/transaction-query.js.map +1 -1
- package/dist-server/service/transaction/transaction-service.d.ts +30 -0
- package/dist-server/service/transaction/transaction-service.js +130 -0
- package/dist-server/service/transaction/transaction-service.js.map +1 -0
- package/dist-server/service/transaction/transaction-type.d.ts +39 -7
- package/dist-server/service/transaction/transaction-type.js +145 -23
- package/dist-server/service/transaction/transaction-type.js.map +1 -1
- package/dist-server/service/transaction/transaction.d.ts +58 -31
- package/dist-server/service/transaction/transaction.js +216 -102
- package/dist-server/service/transaction/transaction.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/things-factory.config.js +0 -4
- package/translations/en.json +34 -2
- package/translations/ja.json +0 -1
- package/translations/ko.json +34 -2
- package/translations/ms.json +0 -1
- package/translations/zh.json +0 -1
- package/dist-client/pages/account/account-importer.d.ts +0 -22
- package/dist-client/pages/account/account-importer.js +0 -99
- package/dist-client/pages/account/account-importer.js.map +0 -1
- package/dist-client/pages/account/account-list-page.d.ts +0 -57
- package/dist-client/pages/account/account-list-page.js +0 -306
- package/dist-client/pages/account/account-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 -92
- 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 -60
- package/dist-client/pages/bank-account/bank-account-list-page.js +0 -317
- package/dist-client/pages/bank-account/bank-account-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 -99
- 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 -57
- package/dist-client/pages/financial-statement/financial-statement-list-page.js +0 -280
- package/dist-client/pages/financial-statement/financial-statement-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 -99
- 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 -57
- package/dist-client/pages/income-statement/income-statement-list-page.js +0 -280
- 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 -92
- package/dist-client/pages/payment/payment-importer.js.map +0 -1
- package/dist-client/pages/payment/payment-list-page.d.ts +0 -60
- package/dist-client/pages/payment/payment-list-page.js +0 -317
- 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 -99
- package/dist-client/pages/transaction/transaction-importer.js.map +0 -1
- package/dist-client/pages/transaction/transaction-list-page.d.ts +0 -57
- package/dist-client/pages/transaction/transaction-list-page.js +0 -280
- package/dist-client/pages/transaction/transaction-list-page.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/migrations/1725201567284-seed-country-codes.d.ts +0 -5
- package/dist-server/migrations/1725201567284-seed-country-codes.js +0 -255
- package/dist-server/migrations/1725201567284-seed-country-codes.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 -95
- package/dist-server/service/financial-statement/financial-statement-line-item.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/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 -97
- 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 -159
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type.js","sourceRoot":"","sources":["../../../server/service/transaction/transaction-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,+CAA4D;AAGrD,IAAM,cAAc,GAApB,MAAM,cAAc;CAY1B,CAAA;AA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AAC,EAAE,CAAC,kBAAG,CAAC;;8CACN;0BALF,eAAe;IAD3B,IAAA,yBAAU,GAAE;GACA,eAAe,CAM3B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Transaction, TransactionType } from './transaction'\n\n@InputType()\nexport class NewTransaction {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => TransactionType, { nullable: true })\n type?: TransactionType\n\n @Field({ nullable: true })\n active?: boolean\n}\n\n@InputType()\nexport class TransactionPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => TransactionType, { nullable: true })\n type?: TransactionType\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class TransactionList {\n @Field(type => [Transaction])\n items: Transaction[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
1
|
+
{"version":3,"file":"transaction-type.js","sourceRoot":"","sources":["../../../server/service/transaction/transaction-type.ts"],"names":[],"mappings":";;;;AAAA,+CAA2E;AAE3E,iDAAiD;AAEjD,sDAAgD;AAChD,+CAAgF;AAGzE,IAAM,cAAc,GAApB,MAAM,cAAc;CAyD1B,CAAA;AAzDY,wCAAc;AAEzB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iCAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;;gDAClE;AAG9B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,6BAAY,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;4CACpD;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;sCACxF,iBAAS;mDA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AAgB;IAD5B,IAAA,wBAAS,EAAC,EAAE,WAAW,EAAE,+EAA+E,EAAE,CAAC;GAC/F,gBAAgB,CA+D5B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAM3B,CAAA;AANY,0CAAe;AAE1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,yBAAW,CAAC,EAAE,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;;8CAC3D;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;8CACpD;0BALF,eAAe;IAD3B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;GACzC,eAAe,CAM3B","sourcesContent":["import { ObjectType, Field, Float, InputType, Int, ID } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { CashFlowType } from '../cash-flow-type'\nimport { ForecastStatus, Transaction, TransactionCategory } from './transaction'\n\n@InputType({ description: 'A transaction someone writes - a bank line by hand, or a forecast' })\nexport class NewTransaction {\n @Field(type => TransactionCategory, { nullable: true, description: 'Confirmed when not given' })\n category?: TransactionCategory\n\n @Field(type => CashFlowType, { description: 'Money in or money out' })\n type: CashFlowType\n\n @Field(type => ObjectRef, { nullable: true, description: 'The account the money moved in or out of' })\n bankAccount?: ObjectRef\n\n @Field({ nullable: true, description: 'YYYY-MM-DD - required for a confirmed transaction' })\n transactionDate?: string\n\n @Field(type => Int, { nullable: true, description: 'The year a forecast is planned in' })\n year?: number\n\n @Field(type => Int, { nullable: true, description: 'The month a forecast is planned in' })\n month?: number\n\n @Field(type => Float, { nullable: true, description: 'Amount - zero when not given' })\n amount?: number\n\n @Field({ nullable: true, description: \"ISO 4217 code - the bank account's when not given\" })\n currency?: string\n\n @Field(type => Float, { nullable: true, description: 'Account balance after it' })\n balance?: number\n\n @Field(type => ObjectRef, { nullable: true, description: 'The account subject it is booked to' })\n account?: ObjectRef\n\n @Field({ nullable: true, description: 'What a person wrote about it' })\n description?: string\n\n @Field({ nullable: true, description: 'The classifying word of the ledger it was kept in' })\n ledgerCategory?: string\n\n @Field({ nullable: true, description: 'The counterparty name as a person wrote it' })\n counterpartyName?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'The registered counterparty' })\n counterparty?: ObjectRef\n\n @Field({ nullable: true, description: 'When in the month a forecast falls' })\n timing?: string\n\n @Field(type => ForecastStatus, { nullable: true, description: 'State of a forecast' })\n status?: ForecastStatus\n\n @Field(type => Int, { nullable: true, description: 'The probability of a forecast being realized (0 to 100)' })\n probability?: number\n\n @Field({ nullable: true, description: 'Notes' })\n notes?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'The recurring item a forecast was made from' })\n recurringItem?: ObjectRef\n}\n\n@InputType({ description: 'A change to a transaction, or a grid row: cuFlag + adds, M changes, - deletes' })\nexport class TransactionPatch {\n @Field(type => ID, { nullable: true, description: 'The transaction to change or delete' })\n id?: string\n\n @Field(type => TransactionCategory, { nullable: true, description: 'Confirmed or forecast' })\n category?: TransactionCategory\n\n @Field(type => CashFlowType, { nullable: true, description: 'Money in or money out' })\n type?: CashFlowType\n\n @Field(type => ObjectRef, { nullable: true, description: 'The account the money moved in or out of' })\n bankAccount?: ObjectRef\n\n @Field({ nullable: true, description: 'YYYY-MM-DD' })\n transactionDate?: string\n\n @Field(type => Int, { nullable: true, description: 'The year a forecast is planned in' })\n year?: number\n\n @Field(type => Int, { nullable: true, description: 'The month a forecast is planned in' })\n month?: number\n\n @Field(type => Float, { nullable: true, description: 'Amount' })\n amount?: number\n\n @Field({ nullable: true, description: 'ISO 4217 code' })\n currency?: string\n\n @Field(type => Float, { nullable: true, description: 'Account balance after it' })\n balance?: number\n\n @Field(type => ObjectRef, { nullable: true, description: 'The account subject it is booked to' })\n account?: ObjectRef\n\n @Field({ nullable: true, description: 'What a person wrote about it' })\n description?: string\n\n @Field({ nullable: true, description: 'The classifying word of the ledger it was kept in' })\n ledgerCategory?: string\n\n @Field({ nullable: true, description: 'The counterparty name as a person wrote it' })\n counterpartyName?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'The registered counterparty' })\n counterparty?: ObjectRef\n\n @Field({ nullable: true, description: 'When in the month a forecast falls' })\n timing?: string\n\n @Field(type => ForecastStatus, { nullable: true, description: 'State of a forecast' })\n status?: ForecastStatus\n\n @Field(type => Int, { nullable: true, description: 'The probability of a forecast being realized (0 to 100)' })\n probability?: number\n\n @Field({ nullable: true, description: 'Notes' })\n notes?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'The recurring item a forecast was made from' })\n recurringItem?: ObjectRef\n\n @Field({ nullable: true, description: '+ adds, M changes, - deletes' })\n cuFlag?: string\n}\n\n@ObjectType({ description: 'A page of transactions' })\nexport class TransactionList {\n @Field(type => [Transaction], { description: 'The transactions on this page' })\n items: Transaction[]\n\n @Field(type => Int, { description: 'How many there are in all' })\n total: number\n}\n"]}
|
|
@@ -1,50 +1,77 @@
|
|
|
1
1
|
import { Domain } from '@things-factory/shell';
|
|
2
2
|
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Counterparty } from '@things-factory/biz-base';
|
|
3
4
|
import { Account } from '../account/account';
|
|
5
|
+
import { BankAccount } from '../bank-account/bank-account';
|
|
6
|
+
import { BankStatement } from '../bank-statement/bank-statement';
|
|
7
|
+
import { CashFlowType } from '../cash-flow-type';
|
|
4
8
|
import { Payment } from '../payment/payment';
|
|
5
9
|
import { AccountingDocument } from '../accounting-document/accounting-document';
|
|
6
|
-
|
|
7
|
-
SalesIncome = 0,// 매출
|
|
8
|
-
PurchaseExpense = 1,// 매입
|
|
9
|
-
Asset = 2,// 자산
|
|
10
|
-
Liability = 3,// 부채
|
|
11
|
-
Equity = 4,// 자본
|
|
12
|
-
OtherIncome = 5,// 기타 수익
|
|
13
|
-
OtherExpense = 6
|
|
14
|
-
}
|
|
10
|
+
import { RecurringCashItem } from '../recurring-cash-item/recurring-cash-item';
|
|
15
11
|
export declare enum TransactionCategory {
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
CONFIRMED = "CONFIRMED",
|
|
13
|
+
FORECAST = "FORECAST"
|
|
14
|
+
}
|
|
15
|
+
export declare enum TransactionSource {
|
|
16
|
+
BANK_STATEMENT = "BANK_STATEMENT",
|
|
17
|
+
LEGACY = "LEGACY",
|
|
18
|
+
MANUAL = "MANUAL"
|
|
18
19
|
}
|
|
19
|
-
export declare enum
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Cancelled = "Cancelled",// 취소됨
|
|
24
|
-
Delayed = "Delayed",// 지연됨
|
|
25
|
-
ForecastFailed = "ForecastFailed"
|
|
20
|
+
export declare enum ForecastStatus {
|
|
21
|
+
PLANNED = "PLANNED",
|
|
22
|
+
DONE = "DONE",
|
|
23
|
+
CANCELLED = "CANCELLED"
|
|
26
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Money that moves in or out of the business: a line on a bank account (confirmed), or a plan someone made of money
|
|
27
|
+
* still to come or go (forecast).
|
|
28
|
+
*
|
|
29
|
+
* What a transaction paid - a contract round, a tax invoice, a VAT period - is its payments (§`Payment`). The facts
|
|
30
|
+
* of a bank line are kept as the bank gave them, beside what a person wrote about it.
|
|
31
|
+
*/
|
|
27
32
|
export declare class Transaction {
|
|
28
33
|
readonly id: string;
|
|
29
34
|
version?: number;
|
|
30
35
|
domain?: Domain;
|
|
31
36
|
domainId?: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
currency?: string;
|
|
35
|
-
amount?: number;
|
|
36
|
-
active?: boolean;
|
|
37
|
-
type?: TransactionType;
|
|
38
37
|
category: TransactionCategory;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
type: CashFlowType;
|
|
39
|
+
bankAccount?: BankAccount;
|
|
40
|
+
bankAccountId?: string;
|
|
41
|
+
transactionDate?: string;
|
|
42
|
+
transactionAt?: string;
|
|
43
|
+
year: number;
|
|
44
|
+
month: number;
|
|
45
|
+
amount: number;
|
|
46
|
+
currency: string;
|
|
47
|
+
balance?: number;
|
|
42
48
|
account?: Account;
|
|
43
49
|
accountId?: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
description?: string;
|
|
51
|
+
ledgerCategory?: string;
|
|
52
|
+
counterpartyName?: string;
|
|
53
|
+
counterparty?: Counterparty;
|
|
54
|
+
counterpartyId?: string;
|
|
55
|
+
source: TransactionSource;
|
|
56
|
+
bankStatement?: BankStatement;
|
|
57
|
+
bankStatementId?: string;
|
|
58
|
+
sourceFile?: string;
|
|
59
|
+
sourceRow?: number;
|
|
60
|
+
bankSequence?: number;
|
|
61
|
+
bankFingerprint?: string;
|
|
62
|
+
bankReconciliationBefore?: Record<string, any>;
|
|
63
|
+
bankDescription?: string;
|
|
64
|
+
bankKind?: string;
|
|
65
|
+
bankCounterpartyName?: string;
|
|
66
|
+
bankCounterpartyAccount?: string;
|
|
67
|
+
bankCounterpartyBank?: string;
|
|
68
|
+
bankMemo?: string;
|
|
69
|
+
timing?: string;
|
|
70
|
+
status?: ForecastStatus;
|
|
71
|
+
probability?: number;
|
|
72
|
+
notes?: string;
|
|
73
|
+
recurringItem?: RecurringCashItem;
|
|
74
|
+
recurringItemId?: string;
|
|
48
75
|
payments?: Payment[];
|
|
49
76
|
documents?: AccountingDocument[];
|
|
50
77
|
createdAt?: Date;
|
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Transaction = exports.
|
|
3
|
+
exports.Transaction = exports.ForecastStatus = exports.TransactionSource = exports.TransactionCategory = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const type_graphql_1 = require("type-graphql");
|
|
7
7
|
const shell_1 = require("@things-factory/shell");
|
|
8
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
9
10
|
const account_1 = require("../account/account");
|
|
11
|
+
const bank_account_1 = require("../bank-account/bank-account");
|
|
12
|
+
const bank_statement_1 = require("../bank-statement/bank-statement");
|
|
13
|
+
const cash_flow_type_1 = require("../cash-flow-type");
|
|
10
14
|
const payment_1 = require("../payment/payment");
|
|
11
15
|
const accounting_document_1 = require("../accounting-document/accounting-document");
|
|
12
|
-
|
|
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
|
-
});
|
|
16
|
+
const recurring_cash_item_1 = require("../recurring-cash-item/recurring-cash-item");
|
|
26
17
|
var TransactionCategory;
|
|
27
18
|
(function (TransactionCategory) {
|
|
28
|
-
TransactionCategory["
|
|
29
|
-
TransactionCategory["
|
|
19
|
+
TransactionCategory["CONFIRMED"] = "CONFIRMED";
|
|
20
|
+
TransactionCategory["FORECAST"] = "FORECAST";
|
|
30
21
|
})(TransactionCategory || (exports.TransactionCategory = TransactionCategory = {}));
|
|
31
22
|
(0, type_graphql_1.registerEnumType)(TransactionCategory, {
|
|
32
23
|
name: 'TransactionCategory',
|
|
33
|
-
description: '
|
|
24
|
+
description: 'Whether a transaction happened on the bank account (confirmed) or is a plan someone made (forecast)'
|
|
25
|
+
});
|
|
26
|
+
var TransactionSource;
|
|
27
|
+
(function (TransactionSource) {
|
|
28
|
+
TransactionSource["BANK_STATEMENT"] = "BANK_STATEMENT";
|
|
29
|
+
TransactionSource["LEGACY"] = "LEGACY";
|
|
30
|
+
TransactionSource["MANUAL"] = "MANUAL";
|
|
31
|
+
})(TransactionSource || (exports.TransactionSource = TransactionSource = {}));
|
|
32
|
+
(0, type_graphql_1.registerEnumType)(TransactionSource, {
|
|
33
|
+
name: 'TransactionSource',
|
|
34
|
+
description: 'Where the facts of a confirmed transaction come from - a bank statement file, an old ledger, or a person'
|
|
34
35
|
});
|
|
35
|
-
var
|
|
36
|
-
(function (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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.)'
|
|
36
|
+
var ForecastStatus;
|
|
37
|
+
(function (ForecastStatus) {
|
|
38
|
+
ForecastStatus["PLANNED"] = "PLANNED";
|
|
39
|
+
ForecastStatus["DONE"] = "DONE";
|
|
40
|
+
ForecastStatus["CANCELLED"] = "CANCELLED";
|
|
41
|
+
})(ForecastStatus || (exports.ForecastStatus = ForecastStatus = {}));
|
|
42
|
+
(0, type_graphql_1.registerEnumType)(ForecastStatus, {
|
|
43
|
+
name: 'ForecastStatus',
|
|
44
|
+
description: 'State of a forecast - still expected, happened, dropped'
|
|
47
45
|
});
|
|
46
|
+
/**
|
|
47
|
+
* Money that moves in or out of the business: a line on a bank account (confirmed), or a plan someone made of money
|
|
48
|
+
* still to come or go (forecast).
|
|
49
|
+
*
|
|
50
|
+
* What a transaction paid - a contract round, a tax invoice, a VAT period - is its payments (§`Payment`). The facts
|
|
51
|
+
* of a bank line are kept as the bank gave them, beside what a person wrote about it.
|
|
52
|
+
*/
|
|
48
53
|
let Transaction = class Transaction {
|
|
49
54
|
constructor() {
|
|
50
55
|
this.version = 1;
|
|
51
|
-
this.amount = 0;
|
|
52
56
|
}
|
|
53
57
|
};
|
|
54
58
|
exports.Transaction = Transaction;
|
|
@@ -64,7 +68,7 @@ tslib_1.__decorate([
|
|
|
64
68
|
], Transaction.prototype, "version", void 0);
|
|
65
69
|
tslib_1.__decorate([
|
|
66
70
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
67
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The domain in which this transaction belongs' }),
|
|
71
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true, description: 'The domain in which this transaction belongs' }),
|
|
68
72
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
69
73
|
], Transaction.prototype, "domain", void 0);
|
|
70
74
|
tslib_1.__decorate([
|
|
@@ -72,101 +76,215 @@ tslib_1.__decorate([
|
|
|
72
76
|
tslib_1.__metadata("design:type", String)
|
|
73
77
|
], Transaction.prototype, "domainId", void 0);
|
|
74
78
|
tslib_1.__decorate([
|
|
75
|
-
(0, typeorm_1.Column)(),
|
|
76
|
-
(0, type_graphql_1.Field)(
|
|
79
|
+
(0, typeorm_1.Column)({ default: TransactionCategory.CONFIRMED }),
|
|
80
|
+
(0, type_graphql_1.Field)(type => TransactionCategory, { description: 'Confirmed (on the bank account) or forecast (a plan)' }),
|
|
81
|
+
tslib_1.__metadata("design:type", String)
|
|
82
|
+
], Transaction.prototype, "category", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ default: cash_flow_type_1.CashFlowType.INCOME }),
|
|
85
|
+
(0, type_graphql_1.Field)(type => cash_flow_type_1.CashFlowType, { description: 'Money in or money out' }),
|
|
86
|
+
tslib_1.__metadata("design:type", String)
|
|
87
|
+
], Transaction.prototype, "type", void 0);
|
|
88
|
+
tslib_1.__decorate([
|
|
89
|
+
(0, typeorm_1.ManyToOne)(type => bank_account_1.BankAccount, { nullable: true }),
|
|
90
|
+
(0, type_graphql_1.Field)(type => bank_account_1.BankAccount, { nullable: true, description: 'The account the money moved in or out of' }),
|
|
91
|
+
tslib_1.__metadata("design:type", bank_account_1.BankAccount)
|
|
92
|
+
], Transaction.prototype, "bankAccount", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, typeorm_1.RelationId)((transaction) => transaction.bankAccount),
|
|
77
95
|
tslib_1.__metadata("design:type", String)
|
|
78
|
-
], Transaction.prototype, "
|
|
96
|
+
], Transaction.prototype, "bankAccountId", void 0);
|
|
79
97
|
tslib_1.__decorate([
|
|
80
98
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
-
(0, type_graphql_1.Field)({
|
|
99
|
+
(0, type_graphql_1.Field)({
|
|
100
|
+
nullable: true,
|
|
101
|
+
description: "YYYY-MM-DD - the day in the account's time zone; for a forecast, the day its timing names, empty when it names none"
|
|
102
|
+
}),
|
|
82
103
|
tslib_1.__metadata("design:type", String)
|
|
83
|
-
], Transaction.prototype, "
|
|
104
|
+
], Transaction.prototype, "transactionDate", void 0);
|
|
84
105
|
tslib_1.__decorate([
|
|
85
106
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
107
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Bank timestamp with UTC offset; empty when only a date is known' }),
|
|
87
108
|
tslib_1.__metadata("design:type", String)
|
|
88
|
-
], Transaction.prototype, "
|
|
109
|
+
], Transaction.prototype, "transactionAt", void 0);
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
112
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'Year of the transaction date - for a forecast, the year it is planned in' }),
|
|
113
|
+
tslib_1.__metadata("design:type", Number)
|
|
114
|
+
], Transaction.prototype, "year", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
117
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'Month of the transaction date - for a forecast, the month it is planned in' }),
|
|
118
|
+
tslib_1.__metadata("design:type", Number)
|
|
119
|
+
], Transaction.prototype, "month", void 0);
|
|
89
120
|
tslib_1.__decorate([
|
|
90
|
-
(0, typeorm_1.Column)((0, shell_1.moneyColumn)(
|
|
91
|
-
(0, type_graphql_1.Field)(
|
|
121
|
+
(0, typeorm_1.Column)((0, shell_1.moneyColumn)()),
|
|
122
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { description: 'Amount, in the currency' }),
|
|
92
123
|
tslib_1.__metadata("design:type", Number)
|
|
93
124
|
], Transaction.prototype, "amount", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ default: 'KRW' }),
|
|
127
|
+
(0, type_graphql_1.Field)({ description: 'ISO 4217 code - the currency of the account' }),
|
|
128
|
+
tslib_1.__metadata("design:type", String)
|
|
129
|
+
], Transaction.prototype, "currency", void 0);
|
|
130
|
+
tslib_1.__decorate([
|
|
131
|
+
(0, typeorm_1.Column)((0, shell_1.moneyColumn)({ nullable: true, default: null })),
|
|
132
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, {
|
|
133
|
+
nullable: true,
|
|
134
|
+
description: 'Account balance after this transaction, as the bank statement says'
|
|
135
|
+
}),
|
|
136
|
+
tslib_1.__metadata("design:type", Number)
|
|
137
|
+
], Transaction.prototype, "balance", void 0);
|
|
138
|
+
tslib_1.__decorate([
|
|
139
|
+
(0, typeorm_1.ManyToOne)(type => account_1.Account, { nullable: true, onDelete: 'SET NULL' }),
|
|
140
|
+
(0, type_graphql_1.Field)(type => account_1.Account, { nullable: true, description: 'The account subject it is booked to' }),
|
|
141
|
+
tslib_1.__metadata("design:type", account_1.Account)
|
|
142
|
+
], Transaction.prototype, "account", void 0);
|
|
143
|
+
tslib_1.__decorate([
|
|
144
|
+
(0, typeorm_1.RelationId)((transaction) => transaction.account),
|
|
145
|
+
tslib_1.__metadata("design:type", String)
|
|
146
|
+
], Transaction.prototype, "accountId", void 0);
|
|
147
|
+
tslib_1.__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
149
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'What a person wrote about it - for a forecast, what is planned' }),
|
|
150
|
+
tslib_1.__metadata("design:type", String)
|
|
151
|
+
], Transaction.prototype, "description", void 0);
|
|
94
152
|
tslib_1.__decorate([
|
|
95
153
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
96
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
97
|
-
tslib_1.__metadata("design:type",
|
|
98
|
-
], Transaction.prototype, "
|
|
154
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The classifying word of the ledger it was kept in' }),
|
|
155
|
+
tslib_1.__metadata("design:type", String)
|
|
156
|
+
], Transaction.prototype, "ledgerCategory", void 0);
|
|
99
157
|
tslib_1.__decorate([
|
|
100
158
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
102
|
-
tslib_1.__metadata("design:type",
|
|
103
|
-
], Transaction.prototype, "
|
|
159
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The counterparty name as a person wrote it' }),
|
|
160
|
+
tslib_1.__metadata("design:type", String)
|
|
161
|
+
], Transaction.prototype, "counterpartyName", void 0);
|
|
104
162
|
tslib_1.__decorate([
|
|
105
|
-
(0, typeorm_1.
|
|
106
|
-
(0, type_graphql_1.Field)(type =>
|
|
107
|
-
nullable:
|
|
108
|
-
description: '
|
|
163
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Counterparty, { nullable: true, onDelete: 'SET NULL' }),
|
|
164
|
+
(0, type_graphql_1.Field)(type => biz_base_1.Counterparty, {
|
|
165
|
+
nullable: true,
|
|
166
|
+
description: 'The registered counterparty, when the name is one the domain knows'
|
|
109
167
|
}),
|
|
168
|
+
tslib_1.__metadata("design:type", biz_base_1.Counterparty)
|
|
169
|
+
], Transaction.prototype, "counterparty", void 0);
|
|
170
|
+
tslib_1.__decorate([
|
|
171
|
+
(0, typeorm_1.RelationId)((transaction) => transaction.counterparty),
|
|
110
172
|
tslib_1.__metadata("design:type", String)
|
|
111
|
-
], Transaction.prototype, "
|
|
173
|
+
], Transaction.prototype, "counterpartyId", void 0);
|
|
112
174
|
tslib_1.__decorate([
|
|
113
|
-
(0, typeorm_1.Column)({
|
|
114
|
-
(0, type_graphql_1.Field)(type =>
|
|
115
|
-
nullable: false,
|
|
116
|
-
description: 'Current status of the transaction (e.g., Paid, Delayed)'
|
|
117
|
-
}),
|
|
175
|
+
(0, typeorm_1.Column)({ default: TransactionSource.MANUAL }),
|
|
176
|
+
(0, type_graphql_1.Field)(type => TransactionSource, { description: 'Where the facts of the line come from' }),
|
|
118
177
|
tslib_1.__metadata("design:type", String)
|
|
119
|
-
], Transaction.prototype, "
|
|
178
|
+
], Transaction.prototype, "source", void 0);
|
|
179
|
+
tslib_1.__decorate([
|
|
180
|
+
(0, typeorm_1.ManyToOne)(type => bank_statement_1.BankStatement, { nullable: true, onDelete: 'RESTRICT' }),
|
|
181
|
+
(0, type_graphql_1.Field)(type => bank_statement_1.BankStatement, { nullable: true, description: 'The bank statement file the line was read from' }),
|
|
182
|
+
tslib_1.__metadata("design:type", bank_statement_1.BankStatement)
|
|
183
|
+
], Transaction.prototype, "bankStatement", void 0);
|
|
184
|
+
tslib_1.__decorate([
|
|
185
|
+
(0, typeorm_1.RelationId)((transaction) => transaction.bankStatement),
|
|
186
|
+
tslib_1.__metadata("design:type", String)
|
|
187
|
+
], Transaction.prototype, "bankStatementId", void 0);
|
|
120
188
|
tslib_1.__decorate([
|
|
121
189
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
122
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The
|
|
190
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The file the line was read from, for lines from before statements were kept' }),
|
|
191
|
+
tslib_1.__metadata("design:type", String)
|
|
192
|
+
], Transaction.prototype, "sourceFile", void 0);
|
|
193
|
+
tslib_1.__decorate([
|
|
194
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
195
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'The row of the source file' }),
|
|
123
196
|
tslib_1.__metadata("design:type", Number)
|
|
124
|
-
], Transaction.prototype, "
|
|
197
|
+
], Transaction.prototype, "sourceRow", void 0);
|
|
198
|
+
tslib_1.__decorate([
|
|
199
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
200
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'Chronological order within the source statement' }),
|
|
201
|
+
tslib_1.__metadata("design:type", Number)
|
|
202
|
+
], Transaction.prototype, "bankSequence", void 0);
|
|
125
203
|
tslib_1.__decorate([
|
|
126
204
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
127
|
-
(0, type_graphql_1.Field)({
|
|
205
|
+
(0, type_graphql_1.Field)({
|
|
206
|
+
nullable: true,
|
|
207
|
+
description: 'What makes the bank line itself unique in the domain - the same line read twice is refused'
|
|
208
|
+
}),
|
|
128
209
|
tslib_1.__metadata("design:type", String)
|
|
129
|
-
], Transaction.prototype, "
|
|
210
|
+
], Transaction.prototype, "bankFingerprint", void 0);
|
|
130
211
|
tslib_1.__decorate([
|
|
131
|
-
(0, typeorm_1.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
], Transaction.prototype, "account", void 0);
|
|
212
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true }),
|
|
213
|
+
tslib_1.__metadata("design:type", Object)
|
|
214
|
+
], Transaction.prototype, "bankReconciliationBefore", void 0);
|
|
135
215
|
tslib_1.__decorate([
|
|
136
|
-
(0, typeorm_1.
|
|
216
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
217
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Description as the bank wrote it' }),
|
|
137
218
|
tslib_1.__metadata("design:type", String)
|
|
138
|
-
], Transaction.prototype, "
|
|
219
|
+
], Transaction.prototype, "bankDescription", void 0);
|
|
139
220
|
tslib_1.__decorate([
|
|
140
221
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
141
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
142
|
-
tslib_1.__metadata("design:type",
|
|
143
|
-
], Transaction.prototype, "
|
|
222
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Kind of the line as the bank wrote it' }),
|
|
223
|
+
tslib_1.__metadata("design:type", String)
|
|
224
|
+
], Transaction.prototype, "bankKind", void 0);
|
|
144
225
|
tslib_1.__decorate([
|
|
145
226
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
146
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
147
|
-
tslib_1.__metadata("design:type",
|
|
148
|
-
], Transaction.prototype, "
|
|
227
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Counterparty name as the bank wrote it' }),
|
|
228
|
+
tslib_1.__metadata("design:type", String)
|
|
229
|
+
], Transaction.prototype, "bankCounterpartyName", void 0);
|
|
230
|
+
tslib_1.__decorate([
|
|
231
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
232
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "Counterparty's account number as the bank wrote it" }),
|
|
233
|
+
tslib_1.__metadata("design:type", String)
|
|
234
|
+
], Transaction.prototype, "bankCounterpartyAccount", void 0);
|
|
235
|
+
tslib_1.__decorate([
|
|
236
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
237
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "Counterparty's bank as the bank wrote it" }),
|
|
238
|
+
tslib_1.__metadata("design:type", String)
|
|
239
|
+
], Transaction.prototype, "bankCounterpartyBank", void 0);
|
|
149
240
|
tslib_1.__decorate([
|
|
150
241
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
151
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
242
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Memo as the bank wrote it' }),
|
|
243
|
+
tslib_1.__metadata("design:type", String)
|
|
244
|
+
], Transaction.prototype, "bankMemo", void 0);
|
|
245
|
+
tslib_1.__decorate([
|
|
246
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
247
|
+
(0, type_graphql_1.Field)({
|
|
248
|
+
nullable: true,
|
|
249
|
+
description: 'When in the month a forecast falls, as a person wrote it - 15th, end of month'
|
|
250
|
+
}),
|
|
251
|
+
tslib_1.__metadata("design:type", String)
|
|
252
|
+
], Transaction.prototype, "timing", void 0);
|
|
253
|
+
tslib_1.__decorate([
|
|
254
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
255
|
+
(0, type_graphql_1.Field)(type => ForecastStatus, {
|
|
256
|
+
nullable: true,
|
|
257
|
+
description: 'State of a forecast; empty on a confirmed transaction'
|
|
258
|
+
}),
|
|
259
|
+
tslib_1.__metadata("design:type", String)
|
|
260
|
+
], Transaction.prototype, "status", void 0);
|
|
261
|
+
tslib_1.__decorate([
|
|
262
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
263
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'The probability of a forecast being realized (0 to 100)' }),
|
|
152
264
|
tslib_1.__metadata("design:type", Number)
|
|
153
|
-
], Transaction.prototype, "
|
|
265
|
+
], Transaction.prototype, "probability", void 0);
|
|
154
266
|
tslib_1.__decorate([
|
|
155
|
-
(0, typeorm_1.Column)({ nullable:
|
|
156
|
-
(0, type_graphql_1.Field)({ nullable:
|
|
267
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
268
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Notes' }),
|
|
157
269
|
tslib_1.__metadata("design:type", String)
|
|
158
|
-
], Transaction.prototype, "
|
|
270
|
+
], Transaction.prototype, "notes", void 0);
|
|
271
|
+
tslib_1.__decorate([
|
|
272
|
+
(0, typeorm_1.ManyToOne)(type => recurring_cash_item_1.RecurringCashItem, { nullable: true, onDelete: 'SET NULL' }),
|
|
273
|
+
(0, type_graphql_1.Field)(type => recurring_cash_item_1.RecurringCashItem, { nullable: true, description: 'The recurring item a forecast was made from' }),
|
|
274
|
+
tslib_1.__metadata("design:type", recurring_cash_item_1.RecurringCashItem)
|
|
275
|
+
], Transaction.prototype, "recurringItem", void 0);
|
|
276
|
+
tslib_1.__decorate([
|
|
277
|
+
(0, typeorm_1.RelationId)((transaction) => transaction.recurringItem),
|
|
278
|
+
tslib_1.__metadata("design:type", String)
|
|
279
|
+
], Transaction.prototype, "recurringItemId", void 0);
|
|
159
280
|
tslib_1.__decorate([
|
|
160
281
|
(0, typeorm_1.OneToMany)(type => payment_1.Payment, payment => payment.transaction),
|
|
161
|
-
(0, type_graphql_1.Field)(type => [payment_1.Payment], { nullable: true, description: '
|
|
282
|
+
(0, type_graphql_1.Field)(type => [payment_1.Payment], { nullable: true, description: 'What this transaction paid' }),
|
|
162
283
|
tslib_1.__metadata("design:type", Array)
|
|
163
284
|
], Transaction.prototype, "payments", void 0);
|
|
164
285
|
tslib_1.__decorate([
|
|
165
286
|
(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
|
-
}),
|
|
287
|
+
(0, type_graphql_1.Field)(type => [accounting_document_1.AccountingDocument], { nullable: true, description: 'Documents linked to this transaction' }),
|
|
170
288
|
tslib_1.__metadata("design:type", Array)
|
|
171
289
|
], Transaction.prototype, "documents", void 0);
|
|
172
290
|
tslib_1.__decorate([
|
|
@@ -181,7 +299,7 @@ tslib_1.__decorate([
|
|
|
181
299
|
], Transaction.prototype, "updatedAt", void 0);
|
|
182
300
|
tslib_1.__decorate([
|
|
183
301
|
(0, typeorm_1.DeleteDateColumn)(),
|
|
184
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
|
302
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it was deleted - financial rows are kept, not erased' }),
|
|
185
303
|
tslib_1.__metadata("design:type", Date)
|
|
186
304
|
], Transaction.prototype, "deletedAt", void 0);
|
|
187
305
|
tslib_1.__decorate([
|
|
@@ -203,27 +321,23 @@ tslib_1.__decorate([
|
|
|
203
321
|
tslib_1.__metadata("design:type", String)
|
|
204
322
|
], Transaction.prototype, "updaterId", void 0);
|
|
205
323
|
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
|
-
}),
|
|
324
|
+
(0, type_graphql_1.ObjectType)({ description: 'Money moving in or out - a bank line (confirmed) or a plan (forecast)' }),
|
|
209
325
|
(0, typeorm_1.Entity)(),
|
|
210
|
-
(0, typeorm_1.Index)('ix_transaction_0', (transaction) => [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
transaction.type,
|
|
214
|
-
transaction.account
|
|
215
|
-
], {
|
|
216
|
-
unique: false,
|
|
217
|
-
where: '"deleted_at" IS NULL'
|
|
326
|
+
(0, typeorm_1.Index)('ix_transaction_0', (transaction) => [transaction.domain, transaction.bankFingerprint], {
|
|
327
|
+
unique: true,
|
|
328
|
+
where: '"deleted_at" IS NULL AND "bank_fingerprint" IS NOT NULL'
|
|
218
329
|
}),
|
|
219
330
|
(0, typeorm_1.Index)('ix_transaction_1', (transaction) => [
|
|
220
331
|
transaction.domain,
|
|
221
|
-
transaction.
|
|
222
|
-
transaction.account,
|
|
332
|
+
transaction.bankAccount,
|
|
223
333
|
transaction.transactionDate
|
|
224
|
-
],
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
334
|
+
]),
|
|
335
|
+
(0, typeorm_1.Index)('ix_transaction_2', (transaction) => [
|
|
336
|
+
transaction.domain,
|
|
337
|
+
transaction.category,
|
|
338
|
+
transaction.year,
|
|
339
|
+
transaction.month
|
|
340
|
+
]),
|
|
341
|
+
(0, typeorm_1.Index)('ix_transaction_3', (transaction) => [transaction.domain, transaction.transactionDate])
|
|
228
342
|
], Transaction);
|
|
229
343
|
//# sourceMappingURL=transaction.js.map
|