@things-factory/accounting 8.0.0-beta.9 → 8.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/client/activities/activity-book-edit.ts +88 -0
  2. package/client/activities/activity-book-view.ts +88 -0
  3. package/client/activities/activity-expense-edit.ts +88 -0
  4. package/client/activities/activity-expense-view.ts +88 -0
  5. package/client/bootstrap.ts +10 -0
  6. package/client/components/accounting-category-selector.ts +136 -0
  7. package/client/components/accounting-category-view.ts +75 -0
  8. package/client/grist-editors/grist-editor-accounting-category-object.ts +83 -0
  9. package/client/grist-editors/grist-renderer-accounting-category-object.ts +13 -0
  10. package/client/index.ts +0 -0
  11. package/client/pages/account/account-importer.ts +97 -0
  12. package/client/pages/account/account-list-page.ts +364 -0
  13. package/client/pages/accounting-category/accounting-category-importer.ts +97 -0
  14. package/client/pages/accounting-category/accounting-category-list-page.ts +368 -0
  15. package/client/pages/accounting-category/accounting-category-tree-page.ts +338 -0
  16. package/client/pages/accounting-document/accounting-document-importer.ts +90 -0
  17. package/client/pages/accounting-document/accounting-document-list-page.ts +398 -0
  18. package/client/pages/financial-statement/financial-statement-importer.ts +97 -0
  19. package/client/pages/financial-statement/financial-statement-list-page.ts +338 -0
  20. package/client/pages/fiscal-month/fiscal-month-importer.ts +90 -0
  21. package/client/pages/fiscal-month/fiscal-month-list-page.ts +398 -0
  22. package/client/pages/fiscal-quarter/fiscal-quarter-importer.ts +90 -0
  23. package/client/pages/fiscal-quarter/fiscal-quarter-list-page.ts +398 -0
  24. package/client/pages/fiscal-year/fiscal-year-importer.ts +90 -0
  25. package/client/pages/fiscal-year/fiscal-year-list-page.ts +398 -0
  26. package/client/pages/income-statement/income-statement-importer.ts +97 -0
  27. package/client/pages/income-statement/income-statement-list-page.ts +338 -0
  28. package/client/pages/payment/payment-importer.ts +90 -0
  29. package/client/pages/payment/payment-list-page.ts +398 -0
  30. package/client/pages/transaction/transaction-importer.ts +97 -0
  31. package/client/pages/transaction/transaction-list-page.ts +338 -0
  32. package/client/route.ts +35 -0
  33. package/client/tsconfig.json +13 -0
  34. package/client/types/accounting-category.ts +23 -0
  35. package/client/types/index.ts +1 -0
  36. package/dist-client/pages/accounting-category/accounting-category-tree-page.js +1 -1
  37. package/dist-client/pages/accounting-category/accounting-category-tree-page.js.map +1 -1
  38. package/dist-client/tsconfig.tsbuildinfo +1 -1
  39. package/dist-server/service/index.d.ts +2 -3
  40. package/dist-server/service/index.js +0 -5
  41. package/dist-server/service/index.js.map +1 -1
  42. package/dist-server/service/payment/index.d.ts +2 -1
  43. package/dist-server/service/payment/payment-history.d.ts +1 -8
  44. package/dist-server/service/payment/payment-history.js +10 -41
  45. package/dist-server/service/payment/payment-history.js.map +1 -1
  46. package/dist-server/service/payment/payment-type.d.ts +1 -7
  47. package/dist-server/service/payment/payment-type.js +0 -24
  48. package/dist-server/service/payment/payment-type.js.map +1 -1
  49. package/dist-server/service/payment/payment.d.ts +0 -12
  50. package/dist-server/service/payment/payment.js +1 -36
  51. package/dist-server/service/payment/payment.js.map +1 -1
  52. package/dist-server/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +7 -7
  54. package/server/activities/activity-book.ts +172 -0
  55. package/server/activities/activity-expense.ts +149 -0
  56. package/server/activities/index.ts +18 -0
  57. package/server/controllers/index.ts +1 -0
  58. package/server/controllers/summary-statements.ts +166 -0
  59. package/server/index.ts +6 -0
  60. package/server/middlewares/index.ts +3 -0
  61. package/server/migrations/1725200507196-seed-fiscal-entities.ts +106 -0
  62. package/server/migrations/1725201467183-seed-accounts.ts +339 -0
  63. package/server/migrations/index.ts +9 -0
  64. package/server/routes.ts +26 -0
  65. package/server/service/account/account-history.ts +117 -0
  66. package/server/service/account/account-mutation.ts +140 -0
  67. package/server/service/account/account-query.ts +51 -0
  68. package/server/service/account/account-type.ts +44 -0
  69. package/server/service/account/account.ts +97 -0
  70. package/server/service/account/event-subscriber.ts +17 -0
  71. package/server/service/account/index.ts +9 -0
  72. package/server/service/accounting-category/accounting-category-history.ts +129 -0
  73. package/server/service/accounting-category/accounting-category-mutation.ts +148 -0
  74. package/server/service/accounting-category/accounting-category-query.ts +74 -0
  75. package/server/service/accounting-category/accounting-category-type.ts +48 -0
  76. package/server/service/accounting-category/accounting-category.ts +100 -0
  77. package/server/service/accounting-category/event-subscriber.ts +20 -0
  78. package/server/service/accounting-category/index.ts +9 -0
  79. package/server/service/accounting-document/accounting-document-history.ts +123 -0
  80. package/server/service/accounting-document/accounting-document-mutation.ts +137 -0
  81. package/server/service/accounting-document/accounting-document-query.ts +48 -0
  82. package/server/service/accounting-document/accounting-document-type.ts +52 -0
  83. package/server/service/accounting-document/accounting-document.ts +93 -0
  84. package/server/service/accounting-document/event-subscriber.ts +17 -0
  85. package/server/service/accounting-document/index.ts +9 -0
  86. package/server/service/common-type.ts +12 -0
  87. package/server/service/financial-statement/event-subscriber.ts +17 -0
  88. package/server/service/financial-statement/financial-statement-history.ts +129 -0
  89. package/server/service/financial-statement/financial-statement-line-item.ts +82 -0
  90. package/server/service/financial-statement/financial-statement-mutation.ts +148 -0
  91. package/server/service/financial-statement/financial-statement-query.ts +53 -0
  92. package/server/service/financial-statement/financial-statement-type.ts +51 -0
  93. package/server/service/financial-statement/financial-statement.ts +116 -0
  94. package/server/service/financial-statement/index.ts +10 -0
  95. package/server/service/fiscal-month/fiscal-month-mutation.ts +145 -0
  96. package/server/service/fiscal-month/fiscal-month-query.ts +58 -0
  97. package/server/service/fiscal-month/fiscal-month-type.ts +66 -0
  98. package/server/service/fiscal-month/fiscal-month.ts +84 -0
  99. package/server/service/fiscal-month/index.ts +7 -0
  100. package/server/service/fiscal-quarter/fiscal-quarter-mutation.ts +148 -0
  101. package/server/service/fiscal-quarter/fiscal-quarter-query.ts +60 -0
  102. package/server/service/fiscal-quarter/fiscal-quarter-type.ts +60 -0
  103. package/server/service/fiscal-quarter/fiscal-quarter.ts +80 -0
  104. package/server/service/fiscal-quarter/index.ts +7 -0
  105. package/server/service/fiscal-year/fiscal-year-mutation.ts +145 -0
  106. package/server/service/fiscal-year/fiscal-year-query.ts +53 -0
  107. package/server/service/fiscal-year/fiscal-year-type.ts +54 -0
  108. package/server/service/fiscal-year/fiscal-year.ts +76 -0
  109. package/server/service/fiscal-year/index.ts +7 -0
  110. package/server/service/income-statement/event-subscriber.ts +17 -0
  111. package/server/service/income-statement/income-statement-history.ts +133 -0
  112. package/server/service/income-statement/income-statement-line-item.ts +84 -0
  113. package/server/service/income-statement/income-statement-mutation.ts +147 -0
  114. package/server/service/income-statement/income-statement-query.ts +50 -0
  115. package/server/service/income-statement/income-statement-type.ts +51 -0
  116. package/server/service/income-statement/income-statement.ts +120 -0
  117. package/server/service/income-statement/index.ts +10 -0
  118. package/server/service/index.ts +108 -0
  119. package/server/service/payment/event-subscriber.ts +17 -0
  120. package/server/service/payment/index.ts +9 -0
  121. package/server/service/payment/payment-history.ts +132 -0
  122. package/server/service/payment/payment-mutation.ts +139 -0
  123. package/server/service/payment/payment-query.ts +50 -0
  124. package/server/service/payment/payment-type.ts +64 -0
  125. package/server/service/payment/payment.ts +123 -0
  126. package/server/service/transaction/event-subscriber.ts +17 -0
  127. package/server/service/transaction/index.ts +9 -0
  128. package/server/service/transaction/transaction-history.ts +161 -0
  129. package/server/service/transaction/transaction-mutation.ts +146 -0
  130. package/server/service/transaction/transaction-query.ts +50 -0
  131. package/server/service/transaction/transaction-type.ts +48 -0
  132. package/server/service/transaction/transaction.ts +230 -0
  133. package/server/tsconfig.json +10 -0
  134. package/dist-client/pages/bank/bank-importer.d.ts +0 -23
  135. package/dist-client/pages/bank/bank-importer.js +0 -93
  136. package/dist-client/pages/bank/bank-importer.js.map +0 -1
  137. package/dist-client/pages/bank/bank-list-page.d.ts +0 -66
  138. package/dist-client/pages/bank/bank-list-page.js +0 -370
  139. package/dist-client/pages/bank/bank-list-page.js.map +0 -1
  140. package/dist-client/pages/bank-account/bank-account-importer.d.ts +0 -23
  141. package/dist-client/pages/bank-account/bank-account-importer.js +0 -93
  142. package/dist-client/pages/bank-account/bank-account-importer.js.map +0 -1
  143. package/dist-client/pages/bank-account/bank-account-list-page.d.ts +0 -66
  144. package/dist-client/pages/bank-account/bank-account-list-page.js +0 -370
  145. package/dist-client/pages/bank-account/bank-account-list-page.js.map +0 -1
  146. package/dist-client/pages/financial-institution/financial-institution-importer.d.ts +0 -23
  147. package/dist-client/pages/financial-institution/financial-institution-importer.js +0 -93
  148. package/dist-client/pages/financial-institution/financial-institution-importer.js.map +0 -1
  149. package/dist-client/pages/financial-institution/financial-institution-list-page.d.ts +0 -66
  150. package/dist-client/pages/financial-institution/financial-institution-list-page.js +0 -370
  151. package/dist-client/pages/financial-institution/financial-institution-list-page.js.map +0 -1
  152. package/dist-server/migrations/1725201567284-seed-country-codes.d.ts +0 -5
  153. package/dist-server/migrations/1725201567284-seed-country-codes.js +0 -248
  154. package/dist-server/migrations/1725201567284-seed-country-codes.js.map +0 -1
  155. package/dist-server/migrations/1725201667385-seed-financial-institutions.d.ts +0 -5
  156. package/dist-server/migrations/1725201667385-seed-financial-institutions.js +0 -348
  157. package/dist-server/migrations/1725201667385-seed-financial-institutions.js.map +0 -1
  158. package/dist-server/service/bank-account/bank-account-history.d.ts +0 -34
  159. package/dist-server/service/bank-account/bank-account-history.js +0 -172
  160. package/dist-server/service/bank-account/bank-account-history.js.map +0 -1
  161. package/dist-server/service/bank-account/bank-account-mutation.d.ts +0 -10
  162. package/dist-server/service/bank-account/bank-account-mutation.js +0 -128
  163. package/dist-server/service/bank-account/bank-account-mutation.js.map +0 -1
  164. package/dist-server/service/bank-account/bank-account-query.d.ts +0 -11
  165. package/dist-server/service/bank-account/bank-account-query.js +0 -79
  166. package/dist-server/service/bank-account/bank-account-query.js.map +0 -1
  167. package/dist-server/service/bank-account/bank-account-type.d.ts +0 -39
  168. package/dist-server/service/bank-account/bank-account-type.js +0 -153
  169. package/dist-server/service/bank-account/bank-account-type.js.map +0 -1
  170. package/dist-server/service/bank-account/bank-account.d.ts +0 -38
  171. package/dist-server/service/bank-account/bank-account.js +0 -164
  172. package/dist-server/service/bank-account/bank-account.js.map +0 -1
  173. package/dist-server/service/bank-account/event-subscriber.d.ts +0 -7
  174. package/dist-server/service/bank-account/event-subscriber.js +0 -21
  175. package/dist-server/service/bank-account/event-subscriber.js.map +0 -1
  176. package/dist-server/service/bank-account/index.d.ts +0 -7
  177. package/dist-server/service/bank-account/index.js +0 -12
  178. package/dist-server/service/bank-account/index.js.map +0 -1
  179. package/dist-server/service/financial-institution/financial-institution-mutation.d.ts +0 -10
  180. package/dist-server/service/financial-institution/financial-institution-mutation.js +0 -169
  181. package/dist-server/service/financial-institution/financial-institution-mutation.js.map +0 -1
  182. package/dist-server/service/financial-institution/financial-institution-query.d.ts +0 -12
  183. package/dist-server/service/financial-institution/financial-institution-query.js +0 -97
  184. package/dist-server/service/financial-institution/financial-institution-query.js.map +0 -1
  185. package/dist-server/service/financial-institution/financial-institution-type.d.ts +0 -32
  186. package/dist-server/service/financial-institution/financial-institution-type.js +0 -126
  187. package/dist-server/service/financial-institution/financial-institution-type.js.map +0 -1
  188. package/dist-server/service/financial-institution/financial-institution.d.ts +0 -34
  189. package/dist-server/service/financial-institution/financial-institution.js +0 -137
  190. package/dist-server/service/financial-institution/financial-institution.js.map +0 -1
  191. package/dist-server/service/financial-institution/index.d.ts +0 -6
  192. package/dist-server/service/financial-institution/index.js +0 -10
  193. package/dist-server/service/financial-institution/index.js.map +0 -1
  194. package/helps/accounting/bank-account.md +0 -160
  195. package/helps/accounting/bank.md +0 -160
  196. package/helps/accounting/financial-institution.md +0 -160
@@ -1 +0,0 @@
1
- {"version":3,"file":"financial-institution-query.js","sourceRoot":"","sources":["../../../server/service/financial-institution/financial-institution-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8F;AAC9F,qEAA4D;AAC5D,iDAAuG;AACvG,yDAAgD;AAChD,mEAA8D;AAC9D,6EAAuE;AAGhE,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,oBAAoB,CAAY,EAAU,EA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AE,CAAC,cAAM,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,4CAAoB;;uDAE9D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,4CAAoB;;wDAE/D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,4CAAoB;;wDAE/D;oCApDU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,4CAAoB,CAAC;GAClB,yBAAyB,CAqDrC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx, Directive } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { FinancialInstitution } from './financial-institution'\nimport { FinancialInstitutionList } from './financial-institution-type'\n\n@Resolver(FinancialInstitution)\nexport class FinancialInstitutionQuery {\n @Query(returns => FinancialInstitution!, { nullable: true, description: 'To fetch a FinancialInstitution' })\n async financialInstitution(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<FinancialInstitution> {\n const { domain } = context.state\n\n return await getRepository(FinancialInstitution).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => FinancialInstitutionList, { description: 'To fetch multiple FinancialInstitutions' })\n async financialInstitutions(@Args(type => ListParam) params: ListParam, @Ctx() context: ResolverContext): Promise<FinancialInstitutionList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(FinancialInstitution),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => String)\n async thumbnail(@Root() financialInstitution: FinancialInstitution): Promise<string | undefined> {\n const attachment: Attachment = await getRepository(Attachment).findOne({\n where: {\n domain: { id: financialInstitution.domainId },\n refType: FinancialInstitution.name,\n refBy: financialInstitution.id\n }\n })\n\n return attachment?.fullpath\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() financialInstitution: FinancialInstitution): Promise<Domain> {\n return financialInstitution.domainId && (await getRepository(Domain).findOneBy({ id: financialInstitution.domainId }))\n }\n\n @FieldResolver(type => User)\n async updater(@Root() financialInstitution: FinancialInstitution): Promise<User> {\n return financialInstitution.updaterId && (await getRepository(User).findOneBy({ id: financialInstitution.updaterId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() financialInstitution: FinancialInstitution): Promise<User> {\n return financialInstitution.creatorId && (await getRepository(User).findOneBy({ id: financialInstitution.creatorId }))\n }\n}\n"]}
@@ -1,32 +0,0 @@
1
- import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
2
- import { FinancialInstitution, FinancialInstitutionType } from './financial-institution';
3
- export declare class NewFinancialInstitution {
4
- name: string;
5
- description?: string;
6
- type: FinancialInstitutionType;
7
- swiftCode?: string;
8
- country?: string;
9
- contactNumber?: string;
10
- website?: string;
11
- address?: string;
12
- email?: string;
13
- thumbnail?: FileUpload;
14
- }
15
- export declare class FinancialInstitutionPatch {
16
- id?: 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
- thumbnail?: FileUpload;
27
- cuFlag?: string;
28
- }
29
- export declare class FinancialInstitutionList {
30
- items: FinancialInstitution[];
31
- total: number;
32
- }
@@ -1,126 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;;sDAC/D;AAGd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0D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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"]}
@@ -1,34 +0,0 @@
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
- }
@@ -1,137 +0,0 @@
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
@@ -1 +0,0 @@
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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AAA,oBAAK,EAAC,IAAI,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"]}
@@ -1,6 +0,0 @@
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[];
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,160 +0,0 @@
1
- # BankAccount
2
-
3
- Paragraphs are separated by a blank line.
4
-
5
- 2nd paragraph. _Italic_, **bold**, and `monospace`. Itemized lists
6
- look like:
7
-
8
- - this one
9
- - that one
10
- - the other one
11
-
12
- Note that --- not considering the asterisk --- the actual text
13
- content starts at 4-columns in.
14
-
15
- > Block quotes are
16
- > written like so.
17
- >
18
- > They can span multiple paragraphs,
19
- > if you like.
20
-
21
- Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all
22
- in chapters 12--14"). Three dots ... will be converted to an ellipsis.
23
- Unicode is supported. ☺
24
-
25
- ## An h2 header
26
-
27
- Here's a numbered list:
28
-
29
- 1. first item
30
- 2. second item
31
- 3. third item
32
-
33
- Note again how the actual text starts at 4 columns in (4 characters
34
- from the left side). Here's a code sample:
35
-
36
- # Let me re-iterate ...
37
-
38
- for i in 1 .. 10 { do-something(i) }
39
-
40
- As you probably guessed, indented 4 spaces. By the way, instead of
41
- indenting the block, you can use delimited blocks, if you like:
42
-
43
- ```
44
- define foobar() {
45
- print "Welcome to flavor country!";
46
- }
47
- ```
48
-
49
- (which makes copying & pasting easier). You can optionally mark the
50
- delimited block for Pandoc to syntax highlight it:
51
-
52
- ```python
53
- import time
54
- # Quick, count to ten!
55
- for i in range(10):
56
- # (but not *too* quick)
57
- time.sleep(0.5)
58
- print(i)
59
- ```
60
-
61
- ### An h3 header
62
-
63
- Now a nested list:
64
-
65
- 1. First, get these ingredients:
66
-
67
- - carrots
68
- - celery
69
- - lentils
70
-
71
- 2. Boil some water.
72
-
73
- 3. Dump everything in the pot and follow
74
- this algorithm:
75
-
76
- find wooden spoon
77
- uncover pot
78
- stir
79
- cover pot
80
- balance wooden spoon precariously on pot handle
81
- wait 10 minutes
82
- goto first step (or shut off burner when done)
83
-
84
- Do not bump wooden spoon or it will fall.
85
-
86
- Notice again how text always lines up on 4-space indents (including
87
- that last line which continues item 3 above).
88
-
89
- Here's a link to [a website](http://foo.bar), to a [local
90
- doc](local-doc.html), and to a [section heading in the current
91
- doc](#an-h2-header). Here's a footnote [^1].
92
-
93
- [^1]: Some footnote text.
94
-
95
- Tables can look like this:
96
-
97
- Name Size Material Color
98
-
99
- ---
100
-
101
- All Business 9 leather brown
102
- Roundabout 10 hemp canvas natural
103
- Cinderella 11 glass transparent
104
-
105
- Table: Shoes sizes, materials, and colors.
106
-
107
- (The above is the caption for the table.) Pandoc also supports
108
- multi-line tables:
109
-
110
- ---
111
-
112
- Keyword Text
113
-
114
- ---
115
-
116
- red Sunsets, apples, and
117
- other red or reddish
118
- things.
119
-
120
- green Leaves, grass, frogs
121
- and other things it's
122
- not easy being.
123
-
124
- ---
125
-
126
- A horizontal rule follows.
127
-
128
- ---
129
-
130
- Here's a definition list:
131
-
132
- apples
133
- : Good for making applesauce.
134
-
135
- oranges
136
- : Citrus!
137
-
138
- tomatoes
139
- : There's no "e" in tomatoe.
140
-
141
- Again, text is indented 4 spaces. (Put a blank line between each
142
- term and its definition to spread things out more.)
143
-
144
- Here's a "line block" (note how whitespace is honored):
145
-
146
- | Line one
147
- | Line too
148
- | Line tree
149
-
150
- and images can be specified like so:
151
-
152
- ![example image](example-image.jpg 'An exemplary image')
153
-
154
- Inline math equation: $\omega = d\phi / dt$. Display
155
- math should get its own line like so:
156
-
157
- $$I = \int \rho R^{2} dV$$
158
-
159
- And note that you can backslash-escape any punctuation characters
160
- which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.