@things-factory/accounting 8.0.6 → 9.0.0-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist-client/pages/accounting-category/accounting-category-tree-page.js +1 -1
- package/dist-client/pages/accounting-category/accounting-category-tree-page.js.map +1 -1
- package/dist-client/pages/bank/bank-importer.d.ts +23 -0
- package/dist-client/pages/bank/bank-importer.js +93 -0
- package/dist-client/pages/bank/bank-importer.js.map +1 -0
- package/dist-client/pages/bank/bank-list-page.d.ts +66 -0
- package/dist-client/pages/bank/bank-list-page.js +370 -0
- package/dist-client/pages/bank/bank-list-page.js.map +1 -0
- package/dist-client/pages/bank-account/bank-account-importer.d.ts +23 -0
- package/dist-client/pages/bank-account/bank-account-importer.js +93 -0
- package/dist-client/pages/bank-account/bank-account-importer.js.map +1 -0
- package/dist-client/pages/bank-account/bank-account-list-page.d.ts +66 -0
- package/dist-client/pages/bank-account/bank-account-list-page.js +370 -0
- package/dist-client/pages/bank-account/bank-account-list-page.js.map +1 -0
- package/dist-client/pages/financial-institution/financial-institution-importer.d.ts +23 -0
- package/dist-client/pages/financial-institution/financial-institution-importer.js +93 -0
- package/dist-client/pages/financial-institution/financial-institution-importer.js.map +1 -0
- package/dist-client/pages/financial-institution/financial-institution-list-page.d.ts +66 -0
- package/dist-client/pages/financial-institution/financial-institution-list-page.js +370 -0
- package/dist-client/pages/financial-institution/financial-institution-list-page.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/migrations/1725201567284-seed-country-codes.d.ts +5 -0
- package/dist-server/migrations/1725201567284-seed-country-codes.js +248 -0
- package/dist-server/migrations/1725201567284-seed-country-codes.js.map +1 -0
- package/dist-server/migrations/1725201667385-seed-financial-institutions.d.ts +5 -0
- package/dist-server/migrations/1725201667385-seed-financial-institutions.js +348 -0
- package/dist-server/migrations/1725201667385-seed-financial-institutions.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-history.d.ts +34 -0
- package/dist-server/service/bank-account/bank-account-history.js +172 -0
- package/dist-server/service/bank-account/bank-account-history.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-mutation.d.ts +10 -0
- package/dist-server/service/bank-account/bank-account-mutation.js +128 -0
- package/dist-server/service/bank-account/bank-account-mutation.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-query.d.ts +11 -0
- package/dist-server/service/bank-account/bank-account-query.js +79 -0
- package/dist-server/service/bank-account/bank-account-query.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-type.d.ts +39 -0
- package/dist-server/service/bank-account/bank-account-type.js +153 -0
- package/dist-server/service/bank-account/bank-account-type.js.map +1 -0
- package/dist-server/service/bank-account/bank-account.d.ts +38 -0
- package/dist-server/service/bank-account/bank-account.js +164 -0
- package/dist-server/service/bank-account/bank-account.js.map +1 -0
- package/dist-server/service/bank-account/event-subscriber.d.ts +7 -0
- package/dist-server/service/bank-account/event-subscriber.js +21 -0
- package/dist-server/service/bank-account/event-subscriber.js.map +1 -0
- package/dist-server/service/bank-account/index.d.ts +7 -0
- package/dist-server/service/bank-account/index.js +12 -0
- package/dist-server/service/bank-account/index.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.d.ts +10 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.js +169 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-query.d.ts +12 -0
- package/dist-server/service/financial-institution/financial-institution-query.js +97 -0
- package/dist-server/service/financial-institution/financial-institution-query.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-type.d.ts +32 -0
- package/dist-server/service/financial-institution/financial-institution-type.js +126 -0
- package/dist-server/service/financial-institution/financial-institution-type.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution.d.ts +34 -0
- package/dist-server/service/financial-institution/financial-institution.js +137 -0
- package/dist-server/service/financial-institution/financial-institution.js.map +1 -0
- package/dist-server/service/financial-institution/index.d.ts +6 -0
- package/dist-server/service/financial-institution/index.js +10 -0
- package/dist-server/service/financial-institution/index.js.map +1 -0
- package/dist-server/service/index.d.ts +3 -2
- package/dist-server/service/index.js +5 -0
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/payment/index.d.ts +1 -2
- package/dist-server/service/payment/payment-history.d.ts +8 -1
- package/dist-server/service/payment/payment-history.js +41 -10
- package/dist-server/service/payment/payment-history.js.map +1 -1
- package/dist-server/service/payment/payment-type.d.ts +7 -1
- package/dist-server/service/payment/payment-type.js +24 -0
- package/dist-server/service/payment/payment-type.js.map +1 -1
- package/dist-server/service/payment/payment.d.ts +12 -0
- package/dist-server/service/payment/payment.js +36 -1
- package/dist-server/service/payment/payment.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/accounting/bank-account.md +160 -0
- package/helps/accounting/bank.md +160 -0
- package/helps/accounting/financial-institution.md +160 -0
- package/package.json +7 -7
- package/client/activities/activity-book-edit.ts +0 -88
- package/client/activities/activity-book-view.ts +0 -88
- package/client/activities/activity-expense-edit.ts +0 -88
- package/client/activities/activity-expense-view.ts +0 -88
- package/client/bootstrap.ts +0 -10
- package/client/components/accounting-category-selector.ts +0 -136
- package/client/components/accounting-category-view.ts +0 -75
- package/client/grist-editors/grist-editor-accounting-category-object.ts +0 -83
- package/client/grist-editors/grist-renderer-accounting-category-object.ts +0 -13
- package/client/index.ts +0 -0
- package/client/pages/account/account-importer.ts +0 -97
- package/client/pages/account/account-list-page.ts +0 -364
- package/client/pages/accounting-category/accounting-category-importer.ts +0 -97
- package/client/pages/accounting-category/accounting-category-list-page.ts +0 -368
- package/client/pages/accounting-category/accounting-category-tree-page.ts +0 -338
- package/client/pages/accounting-document/accounting-document-importer.ts +0 -90
- package/client/pages/accounting-document/accounting-document-list-page.ts +0 -398
- package/client/pages/financial-statement/financial-statement-importer.ts +0 -97
- package/client/pages/financial-statement/financial-statement-list-page.ts +0 -338
- package/client/pages/fiscal-month/fiscal-month-importer.ts +0 -90
- package/client/pages/fiscal-month/fiscal-month-list-page.ts +0 -398
- package/client/pages/fiscal-quarter/fiscal-quarter-importer.ts +0 -90
- package/client/pages/fiscal-quarter/fiscal-quarter-list-page.ts +0 -398
- package/client/pages/fiscal-year/fiscal-year-importer.ts +0 -90
- package/client/pages/fiscal-year/fiscal-year-list-page.ts +0 -398
- package/client/pages/income-statement/income-statement-importer.ts +0 -97
- package/client/pages/income-statement/income-statement-list-page.ts +0 -338
- package/client/pages/payment/payment-importer.ts +0 -90
- package/client/pages/payment/payment-list-page.ts +0 -398
- package/client/pages/transaction/transaction-importer.ts +0 -97
- package/client/pages/transaction/transaction-list-page.ts +0 -338
- package/client/route.ts +0 -35
- package/client/tsconfig.json +0 -13
- package/client/types/accounting-category.ts +0 -23
- package/client/types/index.ts +0 -1
- package/server/activities/activity-book.ts +0 -172
- package/server/activities/activity-expense.ts +0 -149
- package/server/activities/index.ts +0 -18
- package/server/controllers/index.ts +0 -1
- package/server/controllers/summary-statements.ts +0 -166
- package/server/index.ts +0 -6
- package/server/middlewares/index.ts +0 -3
- package/server/migrations/1725200507196-seed-fiscal-entities.ts +0 -106
- package/server/migrations/1725201467183-seed-accounts.ts +0 -339
- package/server/migrations/index.ts +0 -9
- package/server/routes.ts +0 -26
- package/server/service/account/account-history.ts +0 -117
- package/server/service/account/account-mutation.ts +0 -140
- package/server/service/account/account-query.ts +0 -51
- package/server/service/account/account-type.ts +0 -44
- package/server/service/account/account.ts +0 -97
- package/server/service/account/event-subscriber.ts +0 -17
- package/server/service/account/index.ts +0 -9
- package/server/service/accounting-category/accounting-category-history.ts +0 -129
- package/server/service/accounting-category/accounting-category-mutation.ts +0 -148
- package/server/service/accounting-category/accounting-category-query.ts +0 -74
- package/server/service/accounting-category/accounting-category-type.ts +0 -48
- package/server/service/accounting-category/accounting-category.ts +0 -100
- package/server/service/accounting-category/event-subscriber.ts +0 -20
- package/server/service/accounting-category/index.ts +0 -9
- package/server/service/accounting-document/accounting-document-history.ts +0 -123
- package/server/service/accounting-document/accounting-document-mutation.ts +0 -137
- package/server/service/accounting-document/accounting-document-query.ts +0 -48
- package/server/service/accounting-document/accounting-document-type.ts +0 -52
- package/server/service/accounting-document/accounting-document.ts +0 -93
- package/server/service/accounting-document/event-subscriber.ts +0 -17
- package/server/service/accounting-document/index.ts +0 -9
- package/server/service/common-type.ts +0 -12
- package/server/service/financial-statement/event-subscriber.ts +0 -17
- package/server/service/financial-statement/financial-statement-history.ts +0 -129
- package/server/service/financial-statement/financial-statement-line-item.ts +0 -82
- package/server/service/financial-statement/financial-statement-mutation.ts +0 -148
- package/server/service/financial-statement/financial-statement-query.ts +0 -53
- package/server/service/financial-statement/financial-statement-type.ts +0 -51
- package/server/service/financial-statement/financial-statement.ts +0 -116
- package/server/service/financial-statement/index.ts +0 -10
- package/server/service/fiscal-month/fiscal-month-mutation.ts +0 -145
- package/server/service/fiscal-month/fiscal-month-query.ts +0 -58
- package/server/service/fiscal-month/fiscal-month-type.ts +0 -66
- package/server/service/fiscal-month/fiscal-month.ts +0 -84
- package/server/service/fiscal-month/index.ts +0 -7
- package/server/service/fiscal-quarter/fiscal-quarter-mutation.ts +0 -148
- package/server/service/fiscal-quarter/fiscal-quarter-query.ts +0 -60
- package/server/service/fiscal-quarter/fiscal-quarter-type.ts +0 -60
- package/server/service/fiscal-quarter/fiscal-quarter.ts +0 -80
- package/server/service/fiscal-quarter/index.ts +0 -7
- package/server/service/fiscal-year/fiscal-year-mutation.ts +0 -145
- package/server/service/fiscal-year/fiscal-year-query.ts +0 -53
- package/server/service/fiscal-year/fiscal-year-type.ts +0 -54
- package/server/service/fiscal-year/fiscal-year.ts +0 -76
- package/server/service/fiscal-year/index.ts +0 -7
- package/server/service/income-statement/event-subscriber.ts +0 -17
- package/server/service/income-statement/income-statement-history.ts +0 -133
- package/server/service/income-statement/income-statement-line-item.ts +0 -84
- package/server/service/income-statement/income-statement-mutation.ts +0 -147
- package/server/service/income-statement/income-statement-query.ts +0 -50
- package/server/service/income-statement/income-statement-type.ts +0 -51
- package/server/service/income-statement/income-statement.ts +0 -120
- package/server/service/income-statement/index.ts +0 -10
- package/server/service/index.ts +0 -108
- package/server/service/payment/event-subscriber.ts +0 -17
- package/server/service/payment/index.ts +0 -9
- package/server/service/payment/payment-history.ts +0 -132
- package/server/service/payment/payment-mutation.ts +0 -139
- package/server/service/payment/payment-query.ts +0 -50
- package/server/service/payment/payment-type.ts +0 -64
- package/server/service/payment/payment.ts +0 -123
- package/server/service/transaction/event-subscriber.ts +0 -17
- package/server/service/transaction/index.ts +0 -9
- package/server/service/transaction/transaction-history.ts +0 -161
- package/server/service/transaction/transaction-mutation.ts +0 -146
- package/server/service/transaction/transaction-query.ts +0 -50
- package/server/service/transaction/transaction-type.ts +0 -48
- package/server/service/transaction/transaction.ts +0 -230
- package/server/tsconfig.json +0 -10
@@ -0,0 +1,126 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FinancialInstitutionList = exports.FinancialInstitutionPatch = exports.NewFinancialInstitution = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const GraphQLUpload_js_1 = tslib_1.__importDefault(require("graphql-upload/GraphQLUpload.js"));
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
7
|
+
const financial_institution_1 = require("./financial-institution");
|
8
|
+
let NewFinancialInstitution = class NewFinancialInstitution {
|
9
|
+
};
|
10
|
+
exports.NewFinancialInstitution = NewFinancialInstitution;
|
11
|
+
tslib_1.__decorate([
|
12
|
+
(0, type_graphql_1.Field)(),
|
13
|
+
tslib_1.__metadata("design:type", String)
|
14
|
+
], NewFinancialInstitution.prototype, "name", void 0);
|
15
|
+
tslib_1.__decorate([
|
16
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
17
|
+
tslib_1.__metadata("design:type", String)
|
18
|
+
], NewFinancialInstitution.prototype, "description", void 0);
|
19
|
+
tslib_1.__decorate([
|
20
|
+
(0, type_graphql_1.Field)(type => financial_institution_1.FinancialInstitutionType, {
|
21
|
+
description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
|
22
|
+
}),
|
23
|
+
tslib_1.__metadata("design:type", String)
|
24
|
+
], NewFinancialInstitution.prototype, "type", void 0);
|
25
|
+
tslib_1.__decorate([
|
26
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'SWIFT code of the bank (if applicable)' }),
|
27
|
+
tslib_1.__metadata("design:type", String)
|
28
|
+
], NewFinancialInstitution.prototype, "swiftCode", void 0);
|
29
|
+
tslib_1.__decorate([
|
30
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Country of the financial institution' }),
|
31
|
+
tslib_1.__metadata("design:type", String)
|
32
|
+
], NewFinancialInstitution.prototype, "country", void 0);
|
33
|
+
tslib_1.__decorate([
|
34
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Contact number of the financial institution' }),
|
35
|
+
tslib_1.__metadata("design:type", String)
|
36
|
+
], NewFinancialInstitution.prototype, "contactNumber", void 0);
|
37
|
+
tslib_1.__decorate([
|
38
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Website of the financial institution' }),
|
39
|
+
tslib_1.__metadata("design:type", String)
|
40
|
+
], NewFinancialInstitution.prototype, "website", void 0);
|
41
|
+
tslib_1.__decorate([
|
42
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Address of the financial institution' }),
|
43
|
+
tslib_1.__metadata("design:type", String)
|
44
|
+
], NewFinancialInstitution.prototype, "address", void 0);
|
45
|
+
tslib_1.__decorate([
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Email of the financial institution' }),
|
47
|
+
tslib_1.__metadata("design:type", String)
|
48
|
+
], NewFinancialInstitution.prototype, "email", void 0);
|
49
|
+
tslib_1.__decorate([
|
50
|
+
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
|
51
|
+
tslib_1.__metadata("design:type", Object)
|
52
|
+
], NewFinancialInstitution.prototype, "thumbnail", void 0);
|
53
|
+
exports.NewFinancialInstitution = NewFinancialInstitution = tslib_1.__decorate([
|
54
|
+
(0, type_graphql_1.InputType)()
|
55
|
+
], NewFinancialInstitution);
|
56
|
+
let FinancialInstitutionPatch = class FinancialInstitutionPatch {
|
57
|
+
};
|
58
|
+
exports.FinancialInstitutionPatch = FinancialInstitutionPatch;
|
59
|
+
tslib_1.__decorate([
|
60
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
61
|
+
tslib_1.__metadata("design:type", String)
|
62
|
+
], FinancialInstitutionPatch.prototype, "id", void 0);
|
63
|
+
tslib_1.__decorate([
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
65
|
+
tslib_1.__metadata("design:type", String)
|
66
|
+
], FinancialInstitutionPatch.prototype, "name", void 0);
|
67
|
+
tslib_1.__decorate([
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
69
|
+
tslib_1.__metadata("design:type", String)
|
70
|
+
], FinancialInstitutionPatch.prototype, "description", void 0);
|
71
|
+
tslib_1.__decorate([
|
72
|
+
(0, type_graphql_1.Field)(type => financial_institution_1.FinancialInstitutionType, {
|
73
|
+
description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
|
74
|
+
}),
|
75
|
+
tslib_1.__metadata("design:type", String)
|
76
|
+
], FinancialInstitutionPatch.prototype, "type", void 0);
|
77
|
+
tslib_1.__decorate([
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'SWIFT code of the bank (if applicable)' }),
|
79
|
+
tslib_1.__metadata("design:type", String)
|
80
|
+
], FinancialInstitutionPatch.prototype, "swiftCode", void 0);
|
81
|
+
tslib_1.__decorate([
|
82
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Country of the financial institution' }),
|
83
|
+
tslib_1.__metadata("design:type", String)
|
84
|
+
], FinancialInstitutionPatch.prototype, "country", void 0);
|
85
|
+
tslib_1.__decorate([
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Contact number of the financial institution' }),
|
87
|
+
tslib_1.__metadata("design:type", String)
|
88
|
+
], FinancialInstitutionPatch.prototype, "contactNumber", void 0);
|
89
|
+
tslib_1.__decorate([
|
90
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Website of the financial institution' }),
|
91
|
+
tslib_1.__metadata("design:type", String)
|
92
|
+
], FinancialInstitutionPatch.prototype, "website", void 0);
|
93
|
+
tslib_1.__decorate([
|
94
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Address of the financial institution' }),
|
95
|
+
tslib_1.__metadata("design:type", String)
|
96
|
+
], FinancialInstitutionPatch.prototype, "address", void 0);
|
97
|
+
tslib_1.__decorate([
|
98
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Email of the financial institution' }),
|
99
|
+
tslib_1.__metadata("design:type", String)
|
100
|
+
], FinancialInstitutionPatch.prototype, "email", void 0);
|
101
|
+
tslib_1.__decorate([
|
102
|
+
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
|
103
|
+
tslib_1.__metadata("design:type", Object)
|
104
|
+
], FinancialInstitutionPatch.prototype, "thumbnail", void 0);
|
105
|
+
tslib_1.__decorate([
|
106
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
107
|
+
tslib_1.__metadata("design:type", String)
|
108
|
+
], FinancialInstitutionPatch.prototype, "cuFlag", void 0);
|
109
|
+
exports.FinancialInstitutionPatch = FinancialInstitutionPatch = tslib_1.__decorate([
|
110
|
+
(0, type_graphql_1.InputType)()
|
111
|
+
], FinancialInstitutionPatch);
|
112
|
+
let FinancialInstitutionList = class FinancialInstitutionList {
|
113
|
+
};
|
114
|
+
exports.FinancialInstitutionList = FinancialInstitutionList;
|
115
|
+
tslib_1.__decorate([
|
116
|
+
(0, type_graphql_1.Field)(type => [financial_institution_1.FinancialInstitution]),
|
117
|
+
tslib_1.__metadata("design:type", Array)
|
118
|
+
], FinancialInstitutionList.prototype, "items", void 0);
|
119
|
+
tslib_1.__decorate([
|
120
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
121
|
+
tslib_1.__metadata("design:type", Number)
|
122
|
+
], FinancialInstitutionList.prototype, "total", void 0);
|
123
|
+
exports.FinancialInstitutionList = FinancialInstitutionList = tslib_1.__decorate([
|
124
|
+
(0, type_graphql_1.ObjectType)()
|
125
|
+
], FinancialInstitutionList);
|
126
|
+
//# sourceMappingURL=financial-institution-type.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"financial-institution-type.js","sourceRoot":"","sources":["../../../server/service/financial-institution/financial-institution-type.ts"],"names":[],"mappings":";;;;AACA,+FAA2D;AAC3D,+CAAsF;AAItF,mEAAwF;AAGjF,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAgCnC,CAAA;AAhCY,0DAAuB;AAElC;IADC,IAAA,oBAAK,GAAE;;qDACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACN;AAKpB;IAHC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gDAAwB,EAAE;QACvC,WAAW,EAAE,uFAAuF;KACrG,CAAC;;qDAC4B;AAG9B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;;0DAC/D;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;wDAC/D;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,6CAA6C,EAAE,CAAC;;8DAChE;AAGtB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;wDAC/D;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;wDAC/D;AAGhB;IADC,IAAA,oBAAK,EAA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AGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;;wDAC/D;AAEd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC3B;AAGtB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACX;oCApCJ,yBAAyB;IADrC,IAAA,wBAAS,GAAE;GACC,yBAAyB,CAqCrC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { FinancialInstitution, FinancialInstitutionType } from './financial-institution'\n\n@InputType()\nexport class NewFinancialInstitution {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => FinancialInstitutionType, {\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n })\n type: FinancialInstitutionType\n\n @Field({ nullable: true, description: 'SWIFT code of the bank (if applicable)' })\n swiftCode?: string\n\n @Field({ nullable: true, description: 'Country of the financial institution' })\n country?: string\n\n @Field({ nullable: true, description: 'Contact number of the financial institution' })\n contactNumber?: string\n\n @Field({ nullable: true, description: 'Website of the financial institution' })\n website?: string\n\n @Field({ nullable: true, description: 'Address of the financial institution' })\n address?: string\n\n @Field({ nullable: true, description: 'Email of the financial institution' })\n email?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n thumbnail?: FileUpload\n}\n\n@InputType()\nexport class FinancialInstitutionPatch {\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 => FinancialInstitutionType, {\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n })\n type: FinancialInstitutionType\n\n @Field({ nullable: true, description: 'SWIFT code of the bank (if applicable)' })\n swiftCode?: string\n\n @Field({ nullable: true, description: 'Country of the financial institution' })\n country?: string\n\n @Field({ nullable: true, description: 'Contact number of the financial institution' })\n contactNumber?: string\n\n @Field({ nullable: true, description: 'Website of the financial institution' })\n website?: string\n\n @Field({ nullable: true, description: 'Address of the financial institution' })\n address?: string\n\n @Field({ nullable: true, description: 'Email of the financial institution' })\n email?: string\n @Field(type => GraphQLUpload, { nullable: true })\n thumbnail?: FileUpload\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class FinancialInstitutionList {\n @Field(type => [FinancialInstitution])\n items: FinancialInstitution[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
2
|
+
import { User } from '@things-factory/auth-base';
|
3
|
+
export declare enum FinancialInstitutionType {
|
4
|
+
Bank = "Bank",
|
5
|
+
CardCompany = "CardCompany",
|
6
|
+
InsuranceCompany = "InsuranceCompany",
|
7
|
+
InvestmentCompany = "InvestmentCompany",
|
8
|
+
SavingsBank = "SavingsBank",
|
9
|
+
CreditUnion = "CreditUnion",
|
10
|
+
LoanCompany = "LoanCompany",
|
11
|
+
SecuritiesFirm = "SecuritiesFirm"
|
12
|
+
}
|
13
|
+
export declare class FinancialInstitution {
|
14
|
+
readonly id: string;
|
15
|
+
domain?: Domain;
|
16
|
+
domainId?: string;
|
17
|
+
name?: string;
|
18
|
+
description?: string;
|
19
|
+
type?: FinancialInstitutionType;
|
20
|
+
swiftCode?: string;
|
21
|
+
country?: string;
|
22
|
+
contactNumber?: string;
|
23
|
+
website?: string;
|
24
|
+
address?: string;
|
25
|
+
email?: string;
|
26
|
+
createdAt?: Date;
|
27
|
+
updatedAt?: Date;
|
28
|
+
deletedAt?: Date;
|
29
|
+
creator?: User;
|
30
|
+
creatorId?: string;
|
31
|
+
updater?: User;
|
32
|
+
updaterId?: string;
|
33
|
+
version?: number;
|
34
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FinancialInstitution = exports.FinancialInstitutionType = 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
|
+
var FinancialInstitutionType;
|
10
|
+
(function (FinancialInstitutionType) {
|
11
|
+
FinancialInstitutionType["Bank"] = "Bank";
|
12
|
+
FinancialInstitutionType["CardCompany"] = "CardCompany";
|
13
|
+
FinancialInstitutionType["InsuranceCompany"] = "InsuranceCompany";
|
14
|
+
FinancialInstitutionType["InvestmentCompany"] = "InvestmentCompany";
|
15
|
+
FinancialInstitutionType["SavingsBank"] = "SavingsBank";
|
16
|
+
FinancialInstitutionType["CreditUnion"] = "CreditUnion";
|
17
|
+
FinancialInstitutionType["LoanCompany"] = "LoanCompany";
|
18
|
+
FinancialInstitutionType["SecuritiesFirm"] = "SecuritiesFirm";
|
19
|
+
})(FinancialInstitutionType || (exports.FinancialInstitutionType = FinancialInstitutionType = {}));
|
20
|
+
(0, type_graphql_1.registerEnumType)(FinancialInstitutionType, {
|
21
|
+
name: 'FinancialInstitutionType',
|
22
|
+
description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
|
23
|
+
});
|
24
|
+
let FinancialInstitution = class FinancialInstitution {
|
25
|
+
constructor() {
|
26
|
+
this.version = 1;
|
27
|
+
}
|
28
|
+
};
|
29
|
+
exports.FinancialInstitution = FinancialInstitution;
|
30
|
+
tslib_1.__decorate([
|
31
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
32
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
33
|
+
tslib_1.__metadata("design:type", String)
|
34
|
+
], FinancialInstitution.prototype, "id", void 0);
|
35
|
+
tslib_1.__decorate([
|
36
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
37
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
38
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
39
|
+
], FinancialInstitution.prototype, "domain", void 0);
|
40
|
+
tslib_1.__decorate([
|
41
|
+
(0, typeorm_1.RelationId)((financialInstitution) => financialInstitution.domain),
|
42
|
+
tslib_1.__metadata("design:type", String)
|
43
|
+
], FinancialInstitution.prototype, "domainId", void 0);
|
44
|
+
tslib_1.__decorate([
|
45
|
+
(0, typeorm_1.Column)(),
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
47
|
+
tslib_1.__metadata("design:type", String)
|
48
|
+
], FinancialInstitution.prototype, "name", void 0);
|
49
|
+
tslib_1.__decorate([
|
50
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
51
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
52
|
+
tslib_1.__metadata("design:type", String)
|
53
|
+
], FinancialInstitution.prototype, "description", void 0);
|
54
|
+
tslib_1.__decorate([
|
55
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
56
|
+
(0, type_graphql_1.Field)(type => FinancialInstitutionType, {
|
57
|
+
description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'
|
58
|
+
}),
|
59
|
+
tslib_1.__metadata("design:type", String)
|
60
|
+
], FinancialInstitution.prototype, "type", void 0);
|
61
|
+
tslib_1.__decorate([
|
62
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
63
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'SWIFT code of the bank (if applicable)' }),
|
64
|
+
tslib_1.__metadata("design:type", String)
|
65
|
+
], FinancialInstitution.prototype, "swiftCode", void 0);
|
66
|
+
tslib_1.__decorate([
|
67
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Country of the financial institution' }),
|
69
|
+
tslib_1.__metadata("design:type", String)
|
70
|
+
], FinancialInstitution.prototype, "country", void 0);
|
71
|
+
tslib_1.__decorate([
|
72
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
73
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Contact number of the financial institution' }),
|
74
|
+
tslib_1.__metadata("design:type", String)
|
75
|
+
], FinancialInstitution.prototype, "contactNumber", void 0);
|
76
|
+
tslib_1.__decorate([
|
77
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Website of the financial institution' }),
|
79
|
+
tslib_1.__metadata("design:type", String)
|
80
|
+
], FinancialInstitution.prototype, "website", void 0);
|
81
|
+
tslib_1.__decorate([
|
82
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
83
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Address of the financial institution' }),
|
84
|
+
tslib_1.__metadata("design:type", String)
|
85
|
+
], FinancialInstitution.prototype, "address", void 0);
|
86
|
+
tslib_1.__decorate([
|
87
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Email of the financial institution' }),
|
89
|
+
tslib_1.__metadata("design:type", String)
|
90
|
+
], FinancialInstitution.prototype, "email", void 0);
|
91
|
+
tslib_1.__decorate([
|
92
|
+
(0, typeorm_1.CreateDateColumn)(),
|
93
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
94
|
+
tslib_1.__metadata("design:type", Date)
|
95
|
+
], FinancialInstitution.prototype, "createdAt", void 0);
|
96
|
+
tslib_1.__decorate([
|
97
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
98
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
99
|
+
tslib_1.__metadata("design:type", Date)
|
100
|
+
], FinancialInstitution.prototype, "updatedAt", void 0);
|
101
|
+
tslib_1.__decorate([
|
102
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
103
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
104
|
+
tslib_1.__metadata("design:type", Date)
|
105
|
+
], FinancialInstitution.prototype, "deletedAt", void 0);
|
106
|
+
tslib_1.__decorate([
|
107
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
108
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
109
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
110
|
+
], FinancialInstitution.prototype, "creator", void 0);
|
111
|
+
tslib_1.__decorate([
|
112
|
+
(0, typeorm_1.RelationId)((financialInstitution) => financialInstitution.creator),
|
113
|
+
tslib_1.__metadata("design:type", String)
|
114
|
+
], FinancialInstitution.prototype, "creatorId", void 0);
|
115
|
+
tslib_1.__decorate([
|
116
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
117
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
118
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
119
|
+
], FinancialInstitution.prototype, "updater", void 0);
|
120
|
+
tslib_1.__decorate([
|
121
|
+
(0, typeorm_1.RelationId)((financialInstitution) => financialInstitution.updater),
|
122
|
+
tslib_1.__metadata("design:type", String)
|
123
|
+
], FinancialInstitution.prototype, "updaterId", void 0);
|
124
|
+
tslib_1.__decorate([
|
125
|
+
(0, typeorm_1.VersionColumn)(),
|
126
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
127
|
+
tslib_1.__metadata("design:type", Number)
|
128
|
+
], FinancialInstitution.prototype, "version", void 0);
|
129
|
+
exports.FinancialInstitution = FinancialInstitution = tslib_1.__decorate([
|
130
|
+
(0, typeorm_1.Entity)(),
|
131
|
+
(0, typeorm_1.Index)('ix_financial_institution_0', (financialInstitution) => [financialInstitution.domain, financialInstitution.name], {
|
132
|
+
where: '"deleted_at" IS NULL',
|
133
|
+
unique: true
|
134
|
+
}),
|
135
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for Financial Institution (e.g., Bank, Card Company, Insurance Company, etc.)' })
|
136
|
+
], FinancialInstitution);
|
137
|
+
//# sourceMappingURL=financial-institution.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"financial-institution.js","sourceRoot":"","sources":["../../../server/service/financial-institution/financial-institution.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAsE;AACtE,iDAA8C;AAC9C,yDAAgD;AAEhD,IAAY,wBASX;AATD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,uDAA2B,CAAA;IAC3B,iEAAqC,CAAA;IACrC,mEAAuC,CAAA;IACvC,uDAA2B,CAAA;IAC3B,uDAA2B,CAAA;IAC3B,uDAA2B,CAAA;IAC3B,6DAAiC,CAAA;AACnC,CAAC,EATW,wBAAwB,wCAAxB,wBAAwB,QASnC;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,uFAAuF;CACrG,CAAC,CAAA;AAYK,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAA1B;QA8EL,YAAO,GAAY,CAAC,CAAA;IACtB,CAAC;CAAA,CAAA;AA/EY,oDAAoB;AAGtB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gDACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAA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CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;qDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC;;uDACvE;AAIlB;IAFC,IAAA,uBAAa,GAAE;IACf,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACN;+BA9ET,oBAAoB;IAVhC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,4BAA4B,EAC5B,CAAC,oBAA0C,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC,EACxG;QACE,KAAK,EAAE,sBAAsB;QAC7B,MAAM,EAAE,IAAI;KACb,CACF;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sFAAsF,EAAE,CAAC;GACvG,oBAAoB,CA+EhC","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nexport enum FinancialInstitutionType {\n Bank = 'Bank',\n CardCompany = 'CardCompany',\n InsuranceCompany = 'InsuranceCompany',\n InvestmentCompany = 'InvestmentCompany',\n SavingsBank = 'SavingsBank',\n CreditUnion = 'CreditUnion',\n LoanCompany = 'LoanCompany',\n SecuritiesFirm = 'SecuritiesFirm'\n}\n\nregisterEnumType(FinancialInstitutionType, {\n name: 'FinancialInstitutionType',\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n})\n\n@Entity()\n@Index(\n 'ix_financial_institution_0',\n (financialInstitution: FinancialInstitution) => [financialInstitution.domain, financialInstitution.name],\n {\n where: '\"deleted_at\" IS NULL',\n unique: true\n }\n)\n@ObjectType({ description: 'Entity for Financial Institution (e.g., Bank, Card Company, Insurance Company, etc.)' })\nexport class FinancialInstitution {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((financialInstitution: FinancialInstitution) => financialInstitution.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: false })\n @Field(type => FinancialInstitutionType, {\n description: 'Type of the financial institution (e.g., Bank, Card Company, Insurance Company, etc.)'\n })\n type?: FinancialInstitutionType\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'SWIFT code of the bank (if applicable)' })\n swiftCode?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Country of the financial institution' })\n country?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Contact number of the financial institution' })\n contactNumber?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Website of the financial institution' })\n website?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Address of the financial institution' })\n address?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Email of the financial institution' })\n email?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((financialInstitution: FinancialInstitution) => financialInstitution.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((financialInstitution: FinancialInstitution) => financialInstitution.updater)\n updaterId?: string\n\n @VersionColumn()\n @Field({ nullable: true })\n version?: number = 1\n}\n"]}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { FinancialInstitution } from './financial-institution';
|
2
|
+
import { FinancialInstitutionQuery } from './financial-institution-query';
|
3
|
+
import { FinancialInstitutionMutation } from './financial-institution-mutation';
|
4
|
+
export declare const entities: (typeof FinancialInstitution)[];
|
5
|
+
export declare const resolvers: (typeof FinancialInstitutionMutation | typeof FinancialInstitutionQuery)[];
|
6
|
+
export declare const subscribers: any[];
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.subscribers = exports.resolvers = exports.entities = void 0;
|
4
|
+
const financial_institution_1 = require("./financial-institution");
|
5
|
+
const financial_institution_query_1 = require("./financial-institution-query");
|
6
|
+
const financial_institution_mutation_1 = require("./financial-institution-mutation");
|
7
|
+
exports.entities = [financial_institution_1.FinancialInstitution];
|
8
|
+
exports.resolvers = [financial_institution_query_1.FinancialInstitutionQuery, financial_institution_mutation_1.FinancialInstitutionMutation];
|
9
|
+
exports.subscribers = [];
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/financial-institution/index.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAC9D,+EAAyE;AACzE,qFAA+E;AAElE,QAAA,QAAQ,GAAG,CAAC,4CAAoB,CAAC,CAAA;AACjC,QAAA,SAAS,GAAG,CAAC,uDAAyB,EAAE,6DAA4B,CAAC,CAAA;AACrE,QAAA,WAAW,GAAG,EAAE,CAAA","sourcesContent":["import { FinancialInstitution } from './financial-institution'\nimport { FinancialInstitutionQuery } from './financial-institution-query'\nimport { FinancialInstitutionMutation } from './financial-institution-mutation'\n\nexport const entities = [FinancialInstitution]\nexport const resolvers = [FinancialInstitutionQuery, FinancialInstitutionMutation]\nexport const subscribers = []\n"]}
|
@@ -2,14 +2,15 @@ export * from './income-statement/income-statement';
|
|
2
2
|
export * from './financial-statement/financial-statement';
|
3
3
|
export * from './accounting-category/accounting-category';
|
4
4
|
export * from './transaction/transaction';
|
5
|
+
export * from './bank-account/bank-account';
|
5
6
|
export * from './payment/payment';
|
6
7
|
export * from './account/account';
|
7
8
|
export * from './accounting-document/accounting-document';
|
8
9
|
export * from './fiscal-month/fiscal-month';
|
9
10
|
export * from './fiscal-quarter/fiscal-quarter';
|
10
11
|
export * from './fiscal-year/fiscal-year';
|
11
|
-
export declare const entities: (typeof import("./accounting-category/accounting-category").AccountingCategory | typeof import("./account/account").Account | typeof import("./financial-statement/financial-statement-line-item").FinancialStatementLineItem | typeof import("./financial-statement/financial-statement").FinancialStatement | typeof import("./income-statement/income-statement-line-item").IncomeStatementLineItem | typeof import("./income-statement/income-statement").IncomeStatement | typeof import("./payment/payment").Payment | typeof import("./transaction/transaction").Transaction | typeof import("./accounting-document/accounting-document").AccountingDocument | typeof import("./fiscal-year/fiscal-year").FiscalYear | typeof import("./transaction/transaction-history").TransactionHistory
|
12
|
+
export declare const entities: (typeof import("./accounting-category/accounting-category").AccountingCategory | typeof import("./account/account").Account | typeof import("./financial-statement/financial-statement-line-item").FinancialStatementLineItem | typeof import("./financial-statement/financial-statement").FinancialStatement | typeof import("./income-statement/income-statement-line-item").IncomeStatementLineItem | typeof import("./income-statement/income-statement").IncomeStatement | typeof import("./bank-account/bank-account").BankAccount | typeof import("./payment/payment").Payment | typeof import("./transaction/transaction").Transaction | typeof import("./accounting-document/accounting-document").AccountingDocument | typeof import("./fiscal-year/fiscal-year").FiscalYear | typeof import("./transaction/transaction-history").TransactionHistory)[];
|
12
13
|
export declare const subscribers: any[];
|
13
14
|
export declare const schema: {
|
14
|
-
resolverClasses: (typeof import("./income-statement/income-statement-query").IncomeStatementQuery | typeof import("./income-statement/income-statement-mutation").IncomeStatementMutation | typeof import("./financial-statement/financial-statement-query").FinancialStatementQuery | typeof import("./financial-statement/financial-statement-mutation").FinancialStatementMutation | typeof import("./accounting-category/accounting-category-query").AccountingCategoryQuery | typeof import("./accounting-category/accounting-category-mutation").AccountingCategoryMutation | typeof import("./transaction/transaction-query").TransactionQuery | typeof import("./transaction/transaction-mutation").TransactionMutation | typeof import("./payment/payment-query").PaymentQuery | typeof import("./payment/payment-mutation").PaymentMutation | typeof import("./account/account-query").AccountQuery | typeof import("./account/account-mutation").AccountMutation | typeof import("./accounting-document/accounting-document-query").AccountingDocumentQuery | typeof import("./accounting-document/accounting-document-mutation").AccountingDocumentMutation | typeof import("./fiscal-month/fiscal-month-query").FiscalMonthQuery | typeof import("./fiscal-month/fiscal-month-mutation").FiscalMonthMutation | typeof import("./fiscal-quarter/fiscal-quarter-query").FiscalQuarterQuery | typeof import("./fiscal-quarter/fiscal-quarter-mutation").FiscalQuarterMutation | typeof import("./fiscal-year/fiscal-year-query").FiscalYearQuery | typeof import("./fiscal-year/fiscal-year-mutation").FiscalYearMutation)[];
|
15
|
+
resolverClasses: (typeof import("./income-statement/income-statement-query").IncomeStatementQuery | typeof import("./income-statement/income-statement-mutation").IncomeStatementMutation | typeof import("./financial-statement/financial-statement-query").FinancialStatementQuery | typeof import("./financial-statement/financial-statement-mutation").FinancialStatementMutation | typeof import("./accounting-category/accounting-category-query").AccountingCategoryQuery | typeof import("./accounting-category/accounting-category-mutation").AccountingCategoryMutation | typeof import("./transaction/transaction-query").TransactionQuery | typeof import("./transaction/transaction-mutation").TransactionMutation | typeof import("./bank-account/bank-account-query").BankAccountQuery | typeof import("./bank-account/bank-account-mutation").BankAccountMutation | typeof import("./payment/payment-query").PaymentQuery | typeof import("./payment/payment-mutation").PaymentMutation | typeof import("./account/account-query").AccountQuery | typeof import("./account/account-mutation").AccountMutation | typeof import("./accounting-document/accounting-document-query").AccountingDocumentQuery | typeof import("./accounting-document/accounting-document-mutation").AccountingDocumentMutation | typeof import("./fiscal-month/fiscal-month-query").FiscalMonthQuery | typeof import("./fiscal-month/fiscal-month-mutation").FiscalMonthMutation | typeof import("./fiscal-quarter/fiscal-quarter-query").FiscalQuarterQuery | typeof import("./fiscal-quarter/fiscal-quarter-mutation").FiscalQuarterMutation | typeof import("./fiscal-year/fiscal-year-query").FiscalYearQuery | typeof import("./fiscal-year/fiscal-year-mutation").FiscalYearMutation)[];
|
15
16
|
};
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./income-statement/income-statement"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./financial-statement/financial-statement"), exports);
|
8
8
|
tslib_1.__exportStar(require("./accounting-category/accounting-category"), exports);
|
9
9
|
tslib_1.__exportStar(require("./transaction/transaction"), exports);
|
10
|
+
tslib_1.__exportStar(require("./bank-account/bank-account"), exports);
|
10
11
|
tslib_1.__exportStar(require("./payment/payment"), exports);
|
11
12
|
tslib_1.__exportStar(require("./account/account"), exports);
|
12
13
|
tslib_1.__exportStar(require("./accounting-document/accounting-document"), exports);
|
@@ -18,6 +19,7 @@ const income_statement_1 = require("./income-statement");
|
|
18
19
|
const financial_statement_1 = require("./financial-statement");
|
19
20
|
const accounting_category_1 = require("./accounting-category");
|
20
21
|
const transaction_1 = require("./transaction");
|
22
|
+
const bank_account_1 = require("./bank-account");
|
21
23
|
const payment_1 = require("./payment");
|
22
24
|
const account_1 = require("./account");
|
23
25
|
const accounting_document_1 = require("./accounting-document");
|
@@ -32,6 +34,7 @@ exports.entities = [
|
|
32
34
|
...transaction_1.entities,
|
33
35
|
...account_1.entities,
|
34
36
|
...accounting_document_1.entities,
|
37
|
+
...bank_account_1.entities,
|
35
38
|
...payment_1.entities,
|
36
39
|
...fiscal_month_1.entities,
|
37
40
|
...fiscal_quarter_1.entities,
|
@@ -44,6 +47,7 @@ exports.subscribers = [
|
|
44
47
|
...accounting_category_1.subscribers,
|
45
48
|
...transaction_1.subscribers,
|
46
49
|
...payment_1.subscribers,
|
50
|
+
...bank_account_1.subscribers,
|
47
51
|
...account_1.subscribers,
|
48
52
|
...accounting_document_1.subscribers,
|
49
53
|
...fiscal_year_1.subscribers,
|
@@ -59,6 +63,7 @@ exports.schema = {
|
|
59
63
|
...accounting_category_1.resolvers,
|
60
64
|
...transaction_1.resolvers,
|
61
65
|
...payment_1.resolvers,
|
66
|
+
...bank_account_1.resolvers,
|
62
67
|
...account_1.resolvers,
|
63
68
|
...accounting_document_1.resolvers,
|
64
69
|
...fiscal_month_1.resolvers,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,8EAAmD;AACnD,oFAAyD;AACzD,oFAAyD;AACzD,oEAAyC;AACzC,4DAAiC;AACjC,4DAAiC;AACjC,oFAAyD;AACzD,sEAA2C;AAC3C,0EAA+C;AAC/C,oEAAyC;AAEzC,mCAAmC;AACnC,yDAI2B;AAC3B,+DAI8B;AAC9B,+DAI8B;AAC9B,+CAIsB;AACtB,uCAIkB;AAClB,uCAIkB;AAClB,+DAI8B;AAC9B,iDAIuB;AACvB,qDAIyB;AACzB,+CAIsB;AAET,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,2BAAuB;IAC1B,GAAG,8BAA0B;IAC7B,GAAG,8BAA0B;IAC7B,GAAG,sBAAmB;IACtB,GAAG,kBAAe;IAClB,GAAG,8BAA0B;IAC7B,GAAG,kBAAe;IAClB,GAAG,uBAAmB;IACtB,GAAG,yBAAqB;IACxB,GAAG,sBAAkB;CACtB,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IACjB,GAAG,8BAA0B;IAC7B,GAAG,iCAA6B;IAChC,GAAG,iCAA6B;IAChC,GAAG,yBAAsB;IACzB,GAAG,qBAAkB;IACrB,GAAG,qBAAkB;IACrB,GAAG,iCAA6B;IAChC,GAAG,yBAAqB;IACxB,GAAG,0BAAsB;IACzB,GAAG,4BAAwB;IAC3B,GAAG,yBAAqB;CACzB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,4BAAwB;QAC3B,GAAG,+BAA2B;QAC9B,GAAG,+BAA2B;QAC9B,GAAG,uBAAoB;QACvB,GAAG,mBAAgB;QACnB,GAAG,mBAAgB;QACnB,GAAG,+BAA2B;QAC9B,GAAG,wBAAoB;QACvB,GAAG,0BAAsB;QACzB,GAAG,uBAAmB;KACvB;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './income-statement/income-statement'\nexport * from './financial-statement/financial-statement'\nexport * from './accounting-category/accounting-category'\nexport * from './transaction/transaction'\nexport * from './payment/payment'\nexport * from './account/account'\nexport * from './accounting-document/accounting-document'\nexport * from './fiscal-month/fiscal-month'\nexport * from './fiscal-quarter/fiscal-quarter'\nexport * from './fiscal-year/fiscal-year'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport {\n entities as IncomeStatementEntities,\n resolvers as IncomeStatementResolvers,\n subscribers as IncomeStatementSubscribers\n} from './income-statement'\nimport {\n entities as FinancialStatementEntities,\n resolvers as FinancialStatementResolvers,\n subscribers as FinancialStatementSubscribers\n} from './financial-statement'\nimport {\n entities as AccountingCategoryEntities,\n resolvers as AccountingCategoryResolvers,\n subscribers as AccountingCategorySubscribers\n} from './accounting-category'\nimport {\n entities as TransactionEntities,\n resolvers as TransactionResolvers,\n subscribers as TransactionSubscribers\n} from './transaction'\nimport {\n entities as PaymentEntities,\n resolvers as PaymentResolvers,\n subscribers as PaymentSubscribers\n} from './payment'\nimport {\n entities as AccountEntities,\n resolvers as AccountResolvers,\n subscribers as AccountSubscribers\n} from './account'\nimport {\n entities as AccountingDocumentEntities,\n resolvers as AccountingDocumentResolvers,\n subscribers as AccountingDocumentSubscribers\n} from './accounting-document'\nimport {\n entities as FiscalMonthEntities,\n resolvers as FiscalMonthResolvers,\n subscribers as FiscalMonthSubscribers\n} from './fiscal-month'\nimport {\n entities as FiscalQuarterEntities,\n resolvers as FiscalQuarterResolvers,\n subscribers as FiscalQuarterSubscribers\n} from './fiscal-quarter'\nimport {\n entities as FiscalYearEntities,\n resolvers as FiscalYearResolvers,\n subscribers as FiscalYearSubscribers\n} from './fiscal-year'\n\nexport const entities = [\n /* ENTITIES */\n ...IncomeStatementEntities,\n ...FinancialStatementEntities,\n ...AccountingCategoryEntities,\n ...TransactionEntities,\n ...AccountEntities,\n ...AccountingDocumentEntities,\n ...PaymentEntities,\n ...FiscalMonthEntities,\n ...FiscalQuarterEntities,\n ...FiscalYearEntities\n]\n\nexport const subscribers = [\n /* SUBSCRIBERS */\n ...IncomeStatementSubscribers,\n ...FinancialStatementSubscribers,\n ...AccountingCategorySubscribers,\n ...TransactionSubscribers,\n ...PaymentSubscribers,\n ...AccountSubscribers,\n ...AccountingDocumentSubscribers,\n ...FiscalYearSubscribers,\n ...FiscalMonthSubscribers,\n ...FiscalQuarterSubscribers,\n ...FiscalYearSubscribers\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...IncomeStatementResolvers,\n ...FinancialStatementResolvers,\n ...AccountingCategoryResolvers,\n ...TransactionResolvers,\n ...PaymentResolvers,\n ...AccountResolvers,\n ...AccountingDocumentResolvers,\n ...FiscalMonthResolvers,\n ...FiscalQuarterResolvers,\n ...FiscalYearResolvers\n ]\n}\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,8EAAmD;AACnD,oFAAyD;AACzD,oFAAyD;AACzD,oEAAyC;AACzC,sEAA2C;AAC3C,4DAAiC;AACjC,4DAAiC;AACjC,oFAAyD;AACzD,sEAA2C;AAC3C,0EAA+C;AAC/C,oEAAyC;AAEzC,mCAAmC;AACnC,yDAI2B;AAC3B,+DAI8B;AAC9B,+DAI8B;AAC9B,+CAIsB;AACtB,iDAIuB;AACvB,uCAIkB;AAClB,uCAIkB;AAClB,+DAI8B;AAC9B,iDAIuB;AACvB,qDAIyB;AACzB,+CAIsB;AAET,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,2BAAuB;IAC1B,GAAG,8BAA0B;IAC7B,GAAG,8BAA0B;IAC7B,GAAG,sBAAmB;IACtB,GAAG,kBAAe;IAClB,GAAG,8BAA0B;IAC7B,GAAG,uBAAmB;IACtB,GAAG,kBAAe;IAClB,GAAG,uBAAmB;IACtB,GAAG,yBAAqB;IACxB,GAAG,sBAAkB;CACtB,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IACjB,GAAG,8BAA0B;IAC7B,GAAG,iCAA6B;IAChC,GAAG,iCAA6B;IAChC,GAAG,yBAAsB;IACzB,GAAG,qBAAkB;IACrB,GAAG,0BAAsB;IACzB,GAAG,qBAAkB;IACrB,GAAG,iCAA6B;IAChC,GAAG,yBAAqB;IACxB,GAAG,0BAAsB;IACzB,GAAG,4BAAwB;IAC3B,GAAG,yBAAqB;CACzB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,4BAAwB;QAC3B,GAAG,+BAA2B;QAC9B,GAAG,+BAA2B;QAC9B,GAAG,uBAAoB;QACvB,GAAG,mBAAgB;QACnB,GAAG,wBAAoB;QACvB,GAAG,mBAAgB;QACnB,GAAG,+BAA2B;QAC9B,GAAG,wBAAoB;QACvB,GAAG,0BAAsB;QACzB,GAAG,uBAAmB;KACvB;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './income-statement/income-statement'\nexport * from './financial-statement/financial-statement'\nexport * from './accounting-category/accounting-category'\nexport * from './transaction/transaction'\nexport * from './bank-account/bank-account'\nexport * from './payment/payment'\nexport * from './account/account'\nexport * from './accounting-document/accounting-document'\nexport * from './fiscal-month/fiscal-month'\nexport * from './fiscal-quarter/fiscal-quarter'\nexport * from './fiscal-year/fiscal-year'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport {\n entities as IncomeStatementEntities,\n resolvers as IncomeStatementResolvers,\n subscribers as IncomeStatementSubscribers\n} from './income-statement'\nimport {\n entities as FinancialStatementEntities,\n resolvers as FinancialStatementResolvers,\n subscribers as FinancialStatementSubscribers\n} from './financial-statement'\nimport {\n entities as AccountingCategoryEntities,\n resolvers as AccountingCategoryResolvers,\n subscribers as AccountingCategorySubscribers\n} from './accounting-category'\nimport {\n entities as TransactionEntities,\n resolvers as TransactionResolvers,\n subscribers as TransactionSubscribers\n} from './transaction'\nimport {\n entities as BankAccountEntities,\n resolvers as BankAccountResolvers,\n subscribers as BankAccountSubscribers\n} from './bank-account'\nimport {\n entities as PaymentEntities,\n resolvers as PaymentResolvers,\n subscribers as PaymentSubscribers\n} from './payment'\nimport {\n entities as AccountEntities,\n resolvers as AccountResolvers,\n subscribers as AccountSubscribers\n} from './account'\nimport {\n entities as AccountingDocumentEntities,\n resolvers as AccountingDocumentResolvers,\n subscribers as AccountingDocumentSubscribers\n} from './accounting-document'\nimport {\n entities as FiscalMonthEntities,\n resolvers as FiscalMonthResolvers,\n subscribers as FiscalMonthSubscribers\n} from './fiscal-month'\nimport {\n entities as FiscalQuarterEntities,\n resolvers as FiscalQuarterResolvers,\n subscribers as FiscalQuarterSubscribers\n} from './fiscal-quarter'\nimport {\n entities as FiscalYearEntities,\n resolvers as FiscalYearResolvers,\n subscribers as FiscalYearSubscribers\n} from './fiscal-year'\n\nexport const entities = [\n /* ENTITIES */\n ...IncomeStatementEntities,\n ...FinancialStatementEntities,\n ...AccountingCategoryEntities,\n ...TransactionEntities,\n ...AccountEntities,\n ...AccountingDocumentEntities,\n ...BankAccountEntities,\n ...PaymentEntities,\n ...FiscalMonthEntities,\n ...FiscalQuarterEntities,\n ...FiscalYearEntities\n]\n\nexport const subscribers = [\n /* SUBSCRIBERS */\n ...IncomeStatementSubscribers,\n ...FinancialStatementSubscribers,\n ...AccountingCategorySubscribers,\n ...TransactionSubscribers,\n ...PaymentSubscribers,\n ...BankAccountSubscribers,\n ...AccountSubscribers,\n ...AccountingDocumentSubscribers,\n ...FiscalYearSubscribers,\n ...FiscalMonthSubscribers,\n ...FiscalQuarterSubscribers,\n ...FiscalYearSubscribers\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...IncomeStatementResolvers,\n ...FinancialStatementResolvers,\n ...AccountingCategoryResolvers,\n ...TransactionResolvers,\n ...PaymentResolvers,\n ...BankAccountResolvers,\n ...AccountResolvers,\n ...AccountingDocumentResolvers,\n ...FiscalMonthResolvers,\n ...FiscalQuarterResolvers,\n ...FiscalYearResolvers\n ]\n}\n"]}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Payment } from './payment';
|
2
|
-
import { PaymentHistory } from './payment-history';
|
3
2
|
import { PaymentHistoryEntitySubscriber } from './event-subscriber';
|
4
3
|
import { PaymentQuery } from './payment-query';
|
5
4
|
import { PaymentMutation } from './payment-mutation';
|
6
|
-
export declare const entities: (typeof Payment
|
5
|
+
export declare const entities: (typeof Payment)[];
|
7
6
|
export declare const resolvers: (typeof PaymentQuery | typeof PaymentMutation)[];
|
8
7
|
export declare const subscribers: (typeof PaymentHistoryEntitySubscriber)[];
|
@@ -2,7 +2,8 @@ import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-hist
|
|
2
2
|
import { User } from '@things-factory/auth-base';
|
3
3
|
import { Domain } from '@things-factory/shell';
|
4
4
|
import { Transaction } from '../transaction/transaction';
|
5
|
-
import { Payment, PaymentDirection } from './payment';
|
5
|
+
import { Payment, PaymentDirection, PaymentType } from './payment';
|
6
|
+
import { BankAccount } from '../bank-account/bank-account';
|
6
7
|
export declare class PaymentHistory implements HistoryEntityInterface<Payment> {
|
7
8
|
readonly id: string;
|
8
9
|
version?: number;
|
@@ -10,7 +11,13 @@ export declare class PaymentHistory implements HistoryEntityInterface<Payment> {
|
|
10
11
|
domainId?: string;
|
11
12
|
transaction: Transaction;
|
12
13
|
transactionId: string;
|
14
|
+
currency?: string;
|
13
15
|
amount: number;
|
16
|
+
paymentType: PaymentType;
|
17
|
+
sourceBankAccount?: BankAccount;
|
18
|
+
sourceBankAccountId?: string;
|
19
|
+
destinationBankAccount?: BankAccount;
|
20
|
+
destinationBankAccountId?: string;
|
14
21
|
year?: number;
|
15
22
|
quarter?: number;
|
16
23
|
month?: number;
|
@@ -10,6 +10,7 @@ const env_1 = require("@things-factory/env");
|
|
10
10
|
const shell_1 = require("@things-factory/shell");
|
11
11
|
const transaction_1 = require("../transaction/transaction");
|
12
12
|
const payment_1 = require("./payment");
|
13
|
+
const bank_account_1 = require("../bank-account/bank-account");
|
13
14
|
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
14
15
|
const DATABASE_TYPE = ORMCONFIG.type;
|
15
16
|
let PaymentHistory = class PaymentHistory {
|
@@ -39,46 +40,76 @@ tslib_1.__decorate([
|
|
39
40
|
], PaymentHistory.prototype, "domainId", void 0);
|
40
41
|
tslib_1.__decorate([
|
41
42
|
(0, typeorm_1.ManyToOne)(type => transaction_1.Transaction, transaction => transaction.payments),
|
42
|
-
(0, type_graphql_1.Field)(type => transaction_1.Transaction),
|
43
|
-
tslib_1.__metadata("design:type", transaction_1.Transaction
|
43
|
+
(0, type_graphql_1.Field)(type => transaction_1.Transaction, { description: 'The transaction associated with this payment' }),
|
44
|
+
tslib_1.__metadata("design:type", transaction_1.Transaction // 결제와 연결된 트랜잭션
|
45
|
+
)
|
44
46
|
], PaymentHistory.prototype, "transaction", void 0);
|
45
47
|
tslib_1.__decorate([
|
46
48
|
(0, typeorm_1.RelationId)((payment) => payment.transaction),
|
47
49
|
tslib_1.__metadata("design:type", String)
|
48
50
|
], PaymentHistory.prototype, "transactionId", void 0);
|
51
|
+
tslib_1.__decorate([
|
52
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
53
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The currency used in the payment' }),
|
54
|
+
tslib_1.__metadata("design:type", String)
|
55
|
+
], PaymentHistory.prototype, "currency", void 0);
|
49
56
|
tslib_1.__decorate([
|
50
57
|
(0, typeorm_1.Column)({ nullable: false }),
|
51
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
58
|
+
(0, type_graphql_1.Field)({ nullable: false, description: 'The amount of money involved in the payment' }),
|
52
59
|
tslib_1.__metadata("design:type", Number)
|
53
60
|
], PaymentHistory.prototype, "amount", void 0);
|
61
|
+
tslib_1.__decorate([
|
62
|
+
(0, typeorm_1.Column)(),
|
63
|
+
(0, type_graphql_1.Field)(type => payment_1.PaymentType, { description: 'Type of the payment' }),
|
64
|
+
tslib_1.__metadata("design:type", String)
|
65
|
+
], PaymentHistory.prototype, "paymentType", void 0);
|
66
|
+
tslib_1.__decorate([
|
67
|
+
(0, typeorm_1.ManyToOne)(type => bank_account_1.BankAccount, { nullable: true }),
|
68
|
+
(0, type_graphql_1.Field)(type => bank_account_1.BankAccount, { nullable: true, description: 'Source bank account for the payment' }),
|
69
|
+
tslib_1.__metadata("design:type", bank_account_1.BankAccount)
|
70
|
+
], PaymentHistory.prototype, "sourceBankAccount", void 0);
|
71
|
+
tslib_1.__decorate([
|
72
|
+
(0, typeorm_1.RelationId)((payment) => payment.sourceBankAccount),
|
73
|
+
tslib_1.__metadata("design:type", String)
|
74
|
+
], PaymentHistory.prototype, "sourceBankAccountId", void 0);
|
75
|
+
tslib_1.__decorate([
|
76
|
+
(0, typeorm_1.ManyToOne)(type => bank_account_1.BankAccount, { nullable: true }),
|
77
|
+
(0, type_graphql_1.Field)(type => bank_account_1.BankAccount, { nullable: true, description: 'Destination bank account for the payment' }),
|
78
|
+
tslib_1.__metadata("design:type", bank_account_1.BankAccount)
|
79
|
+
], PaymentHistory.prototype, "destinationBankAccount", void 0);
|
80
|
+
tslib_1.__decorate([
|
81
|
+
(0, typeorm_1.RelationId)((payment) => payment.destinationBankAccount),
|
82
|
+
tslib_1.__metadata("design:type", String)
|
83
|
+
], PaymentHistory.prototype, "destinationBankAccountId", void 0);
|
54
84
|
tslib_1.__decorate([
|
55
85
|
(0, typeorm_1.Column)({ nullable: true }),
|
56
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal year in which the payment was made' }),
|
57
87
|
tslib_1.__metadata("design:type", Number)
|
58
88
|
], PaymentHistory.prototype, "year", void 0);
|
59
89
|
tslib_1.__decorate([
|
60
90
|
(0, typeorm_1.Column)({ nullable: true }),
|
61
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
91
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal quarter in which the payment was made' }),
|
62
92
|
tslib_1.__metadata("design:type", Number)
|
63
93
|
], PaymentHistory.prototype, "quarter", void 0);
|
64
94
|
tslib_1.__decorate([
|
65
95
|
(0, typeorm_1.Column)({ nullable: true }),
|
66
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '
|
96
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Fiscal month in which the payment was made' }),
|
67
97
|
tslib_1.__metadata("design:type", Number)
|
68
98
|
], PaymentHistory.prototype, "month", void 0);
|
69
99
|
tslib_1.__decorate([
|
70
100
|
(0, typeorm_1.Column)({ nullable: false }),
|
71
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
72
|
-
tslib_1.__metadata("design:type", Date
|
101
|
+
(0, type_graphql_1.Field)({ nullable: false, description: 'The date and time when the payment was made' }),
|
102
|
+
tslib_1.__metadata("design:type", Date // 결제가 이루어진 날짜 및 시간
|
103
|
+
)
|
73
104
|
], PaymentHistory.prototype, "paidAt", void 0);
|
74
105
|
tslib_1.__decorate([
|
75
106
|
(0, typeorm_1.Column)({ nullable: false }),
|
76
|
-
(0, type_graphql_1.Field)(type => payment_1.PaymentDirection),
|
107
|
+
(0, type_graphql_1.Field)(type => payment_1.PaymentDirection, { description: 'Direction of the payment (Incoming or Outgoing)' }),
|
77
108
|
tslib_1.__metadata("design:type", String)
|
78
109
|
], PaymentHistory.prototype, "direction", void 0);
|
79
110
|
tslib_1.__decorate([
|
80
111
|
(0, typeorm_1.Column)({ nullable: true }),
|
81
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
112
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Additional notes or comments about the payment' }),
|
82
113
|
tslib_1.__metadata("design:type", String)
|
83
114
|
], PaymentHistory.prototype, "note", void 0);
|
84
115
|
tslib_1.__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-history.js","sourceRoot":"","sources":["../../../server/service/payment/payment-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAE9F,8DAKiC;AACjC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA8C;AAE9C,4DAAwD;AACxD,uCAAqD;AAErD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAc7B,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAOL,YAAO,GAAY,CAAC,CAAA;IA6FtB,CAAC;CAAA,CAAA;AApGY,wCAAc;AAGhB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;0CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;8CAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;gDAChC;AAIjB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,yBAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC;IACnE,IAAA,oBAAK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AAA,yCAAuB,GAAE;;kDACA;AAkBnB;IAhBN,IAAA,qCAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,aAAa,IAAI,QAAQ;gBACzB,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,aAAa,IAAI,OAAO;oBACxB,CAAC,CAAC,UAAU;oBACZ,CAAC,CAAC,SAAS;QACnB,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,mCAAiB;YACnB,CAAC,CAAC,SAAS;QACf,MAAM,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;8CAC+B;yBAnGtB,cAAc;IAZ1B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,sBAAsB,EACtB,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EACvF,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EACJ,sBAAsB,EACtB,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EAC9G,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;GAC5C,cAAc,CAoG1B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@operato/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { Transaction } from '../transaction/transaction'\nimport { Payment, PaymentDirection } from './payment'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_payment_history_0',\n (paymentHistory: PaymentHistory) => [paymentHistory.originalId, paymentHistory.version],\n { unique: true }\n)\n@Index(\n 'ix_payment_history_1',\n (paymentHistory: PaymentHistory) => [paymentHistory.domain, paymentHistory.originalId, paymentHistory.version],\n { unique: true }\n)\n@ObjectType({ description: 'History Entity of Payment' })\nexport class PaymentHistory implements HistoryEntityInterface<Payment> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((payment: Payment) => payment.domain)\n domainId?: string\n\n @ManyToOne(type => Transaction, transaction => transaction.payments)\n @Field(type => Transaction)\n transaction: Transaction\n\n @RelationId((payment: Payment) => payment.transaction)\n transactionId: string\n\n @Column({ nullable: false })\n @Field({ nullable: false })\n amount: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'fiscal year' })\n year?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'fiscal quarter' })\n quarter?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'fiscal month' })\n month?: number\n\n @Column({ nullable: false })\n @Field({ nullable: false })\n paidAt: Date\n\n @Column({ nullable: false })\n @Field(type => PaymentDirection)\n direction: PaymentDirection\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n note?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n updatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((payment: Payment) => payment.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((payment: Payment) => payment.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? HistoryActionType\n : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
|
1
|
+
{"version":3,"file":"payment-history.js","sourceRoot":"","sources":["../../../server/service/payment/payment-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAE9F,8DAKiC;AACjC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA8C;AAE9C,4DAAwD;AACxD,uCAAkE;AAClE,+DAA0D;AAE1D,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAc7B,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAOL,YAAO,GAAY,CAAC,CAAA;IAmHtB,CAAC;CAAA,CAAA;AA1HY,wCAAc;AAGhB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B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HtB,cAAc;IAZ1B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,sBAAsB,EACtB,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EACvF,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EACJ,sBAAsB,EACtB,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EAC9G,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;GAC5C,cAAc,CA0H1B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@operato/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { Transaction } from '../transaction/transaction'\nimport { Payment, PaymentDirection, PaymentType } from './payment'\nimport { BankAccount } from '../bank-account/bank-account'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_payment_history_0',\n (paymentHistory: PaymentHistory) => [paymentHistory.originalId, paymentHistory.version],\n { unique: true }\n)\n@Index(\n 'ix_payment_history_1',\n (paymentHistory: PaymentHistory) => [paymentHistory.domain, paymentHistory.originalId, paymentHistory.version],\n { unique: true }\n)\n@ObjectType({ description: 'History Entity of Payment' })\nexport class PaymentHistory implements HistoryEntityInterface<Payment> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((payment: Payment) => payment.domain)\n domainId?: string\n\n @ManyToOne(type => Transaction, transaction => transaction.payments)\n @Field(type => Transaction, { description: 'The transaction associated with this payment' })\n transaction: Transaction // 결제와 연결된 트랜잭션\n\n @RelationId((payment: Payment) => payment.transaction)\n transactionId: string // 연결된 트랜잭션의 ID\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The currency used in the payment' })\n currency?: string // 결제에 사용된 통화\n\n @Column({ nullable: false })\n @Field({ nullable: false, description: 'The amount of money involved in the payment' })\n amount: number // 결제된 금액\n\n @Column()\n @Field(type => PaymentType, { description: 'Type of the payment' })\n paymentType: PaymentType // 결제 유형\n\n @ManyToOne(type => BankAccount, { nullable: true })\n @Field(type => BankAccount, { nullable: true, description: 'Source bank account for the payment' })\n sourceBankAccount?: BankAccount\n\n @RelationId((payment: Payment) => payment.sourceBankAccount)\n sourceBankAccountId?: string\n\n @ManyToOne(type => BankAccount, { nullable: true })\n @Field(type => BankAccount, { nullable: true, description: 'Destination bank account for the payment' })\n destinationBankAccount?: BankAccount\n\n @RelationId((payment: Payment) => payment.destinationBankAccount)\n destinationBankAccountId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal year in which the payment was made' })\n year?: number // 결제가 발생한 회계 연도\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal quarter in which the payment was made' })\n quarter?: number // 결제가 발생한 회계 분기\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Fiscal month in which the payment was made' })\n month?: number // 결제가 발생한 회계 월\n\n @Column({ nullable: false })\n @Field({ nullable: false, description: 'The date and time when the payment was made' })\n paidAt: Date // 결제가 이루어진 날짜 및 시간\n\n @Column({ nullable: false })\n @Field(type => PaymentDirection, { description: 'Direction of the payment (Incoming or Outgoing)' })\n direction: PaymentDirection // 결제 방향 (수금 또는 지출)\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Additional notes or comments about the payment' })\n note?: string // 결제에 대한 추가 설명 또는 메모\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n updatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((payment: Payment) => payment.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((payment: Payment) => payment.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? HistoryActionType\n : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
|