@things-factory/accounting 10.1.124 → 10.1.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +0 -12
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +0 -1
- package/dist-server/index.js +0 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/service/account/account-history.d.ts +13 -6
- package/dist-server/service/account/account-history.js +44 -17
- package/dist-server/service/account/account-history.js.map +1 -1
- package/dist-server/service/account/account-mutation.js +8 -8
- package/dist-server/service/account/account-mutation.js.map +1 -1
- package/dist-server/service/account/account-query.js +2 -2
- package/dist-server/service/account/account-query.js.map +1 -1
- package/dist-server/service/account/account-type.d.ts +16 -0
- package/dist-server/service/account/account-type.js +71 -13
- package/dist-server/service/account/account-type.js.map +1 -1
- package/dist-server/service/account/account.d.ts +9 -3
- package/dist-server/service/account/account.js +34 -8
- package/dist-server/service/account/account.js.map +1 -1
- package/dist-server/service/account/index.d.ts +1 -1
- package/dist-server/service/accounting-category/accounting-category-mutation.js +8 -8
- package/dist-server/service/accounting-category/accounting-category-mutation.js.map +1 -1
- package/dist-server/service/accounting-category/accounting-category-query.js +2 -2
- package/dist-server/service/accounting-category/accounting-category-query.js.map +1 -1
- package/dist-server/service/accounting-category/index.d.ts +1 -1
- package/dist-server/service/accounting-document/accounting-document-mutation.js +12 -3
- package/dist-server/service/accounting-document/accounting-document-mutation.js.map +1 -1
- package/dist-server/service/accounting-document/accounting-document-query.js +2 -0
- package/dist-server/service/accounting-document/accounting-document-query.js.map +1 -1
- package/dist-server/service/accounting-document/index.d.ts +1 -1
- package/dist-server/service/bank-account/bank-account-history.d.ts +11 -14
- package/dist-server/service/bank-account/bank-account-history.js +46 -59
- package/dist-server/service/bank-account/bank-account-history.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-mutation.d.ts +1 -2
- package/dist-server/service/bank-account/bank-account-mutation.js +25 -69
- package/dist-server/service/bank-account/bank-account-mutation.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-query.js +2 -0
- package/dist-server/service/bank-account/bank-account-query.js.map +1 -1
- package/dist-server/service/bank-account/bank-account-service.d.ts +5 -0
- package/dist-server/service/bank-account/bank-account-service.js +21 -0
- package/dist-server/service/bank-account/bank-account-service.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-type.d.ts +13 -19
- package/dist-server/service/bank-account/bank-account-type.js +45 -69
- package/dist-server/service/bank-account/bank-account-type.js.map +1 -1
- package/dist-server/service/bank-account/bank-account.d.ts +14 -17
- package/dist-server/service/bank-account/bank-account.js +45 -57
- package/dist-server/service/bank-account/bank-account.js.map +1 -1
- package/dist-server/service/bank-account/index.d.ts +1 -1
- package/dist-server/service/bank-statement/bank-statement-query.d.ts +14 -0
- package/dist-server/service/bank-statement/bank-statement-query.js +92 -0
- package/dist-server/service/bank-statement/bank-statement-query.js.map +1 -0
- package/dist-server/service/bank-statement/bank-statement.d.ts +26 -0
- package/dist-server/service/bank-statement/bank-statement.js +109 -0
- package/dist-server/service/bank-statement/bank-statement.js.map +1 -0
- package/dist-server/service/bank-statement/index.d.ts +5 -0
- package/dist-server/service/bank-statement/index.js +9 -0
- package/dist-server/service/bank-statement/index.js.map +1 -0
- package/dist-server/service/cash-flow-type.d.ts +5 -0
- package/dist-server/service/cash-flow-type.js +15 -0
- package/dist-server/service/cash-flow-type.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.js +10 -1
- package/dist-server/service/financial-institution/financial-institution-mutation.js.map +1 -1
- package/dist-server/service/financial-institution/financial-institution-query.js +14 -6
- package/dist-server/service/financial-institution/financial-institution-query.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-history.d.ts +11 -9
- package/dist-server/service/financial-statement/financial-statement-history.js +44 -33
- package/dist-server/service/financial-statement/financial-statement-history.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-line.d.ts +24 -0
- package/dist-server/service/financial-statement/financial-statement-line.js +108 -0
- package/dist-server/service/financial-statement/financial-statement-line.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.d.ts +1 -8
- package/dist-server/service/financial-statement/financial-statement-mutation.js +11 -136
- package/dist-server/service/financial-statement/financial-statement-mutation.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-query.d.ts +8 -7
- package/dist-server/service/financial-statement/financial-statement-query.js +42 -32
- package/dist-server/service/financial-statement/financial-statement-query.js.map +1 -1
- package/dist-server/service/financial-statement/financial-statement-service.d.ts +33 -0
- package/dist-server/service/financial-statement/financial-statement-service.js +44 -0
- package/dist-server/service/financial-statement/financial-statement-service.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement.d.ts +19 -11
- package/dist-server/service/financial-statement/financial-statement.js +70 -62
- package/dist-server/service/financial-statement/financial-statement.js.map +1 -1
- package/dist-server/service/financial-statement/index.d.ts +4 -3
- package/dist-server/service/financial-statement/index.js +2 -2
- package/dist-server/service/financial-statement/index.js.map +1 -1
- package/dist-server/service/fiscal-month/fiscal-month-mutation.js +6 -6
- package/dist-server/service/fiscal-month/fiscal-month-mutation.js.map +1 -1
- package/dist-server/service/fiscal-month/fiscal-month-query.js +2 -2
- package/dist-server/service/fiscal-month/fiscal-month-query.js.map +1 -1
- package/dist-server/service/fiscal-month/index.d.ts +1 -1
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js +6 -6
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js.map +1 -1
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js +2 -2
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js.map +1 -1
- package/dist-server/service/fiscal-quarter/index.d.ts +1 -1
- package/dist-server/service/fiscal-year/fiscal-year-mutation.js +6 -6
- package/dist-server/service/fiscal-year/fiscal-year-mutation.js.map +1 -1
- package/dist-server/service/fiscal-year/fiscal-year-query.js +2 -2
- package/dist-server/service/fiscal-year/fiscal-year-query.js.map +1 -1
- package/dist-server/service/fiscal-year/index.d.ts +1 -1
- package/dist-server/service/index.d.ts +15 -3
- package/dist-server/service/index.js +30 -13
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/payment/index.d.ts +2 -1
- package/dist-server/service/payment/index.js +1 -0
- package/dist-server/service/payment/index.js.map +1 -1
- package/dist-server/service/payment/payment-history.d.ts +9 -16
- package/dist-server/service/payment/payment-history.js +36 -70
- package/dist-server/service/payment/payment-history.js.map +1 -1
- package/dist-server/service/payment/payment-mutation.d.ts +0 -1
- package/dist-server/service/payment/payment-mutation.js +19 -84
- package/dist-server/service/payment/payment-mutation.js.map +1 -1
- package/dist-server/service/payment/payment-query.d.ts +3 -0
- package/dist-server/service/payment/payment-query.js +32 -3
- package/dist-server/service/payment/payment-query.js.map +1 -1
- package/dist-server/service/payment/payment-service.d.ts +16 -0
- package/dist-server/service/payment/payment-service.js +140 -0
- package/dist-server/service/payment/payment-service.js.map +1 -0
- package/dist-server/service/payment/payment-targets.d.ts +31 -0
- package/dist-server/service/payment/payment-targets.js +19 -0
- package/dist-server/service/payment/payment-targets.js.map +1 -0
- package/dist-server/service/payment/payment-type.d.ts +13 -17
- package/dist-server/service/payment/payment-type.js +35 -51
- package/dist-server/service/payment/payment-type.js.map +1 -1
- package/dist-server/service/payment/payment.d.ts +23 -22
- package/dist-server/service/payment/payment.js +65 -95
- package/dist-server/service/payment/payment.js.map +1 -1
- package/dist-server/service/payment/transfer-target.d.ts +1 -0
- package/dist-server/service/payment/transfer-target.js +43 -0
- package/dist-server/service/payment/transfer-target.js.map +1 -0
- package/dist-server/service/recurring-cash-item/index.d.ts +6 -0
- package/dist-server/service/recurring-cash-item/index.js +10 -0
- package/dist-server/service/recurring-cash-item/index.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.d.ts +7 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.js +63 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.d.ts +15 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.js +101 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-service.d.ts +23 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-service.js +91 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-service.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.d.ts +23 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.js +85 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item.d.ts +35 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item.js +142 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-schedule.d.ts +36 -0
- package/dist-server/service/recurring-cash-item/recurring-schedule.js +41 -0
- package/dist-server/service/recurring-cash-item/recurring-schedule.js.map +1 -0
- package/dist-server/service/transaction/index.d.ts +2 -2
- package/dist-server/service/transaction/transaction-history.d.ts +42 -15
- package/dist-server/service/transaction/transaction-history.js +160 -54
- package/dist-server/service/transaction/transaction-history.js.map +1 -1
- package/dist-server/service/transaction/transaction-mutation.d.ts +0 -1
- package/dist-server/service/transaction/transaction-mutation.js +18 -83
- package/dist-server/service/transaction/transaction-mutation.js.map +1 -1
- package/dist-server/service/transaction/transaction-period.d.ts +16 -0
- package/dist-server/service/transaction/transaction-period.js +49 -0
- package/dist-server/service/transaction/transaction-period.js.map +1 -0
- package/dist-server/service/transaction/transaction-query.d.ts +12 -0
- package/dist-server/service/transaction/transaction-query.js +86 -4
- package/dist-server/service/transaction/transaction-query.js.map +1 -1
- package/dist-server/service/transaction/transaction-service.d.ts +30 -0
- package/dist-server/service/transaction/transaction-service.js +130 -0
- package/dist-server/service/transaction/transaction-service.js.map +1 -0
- package/dist-server/service/transaction/transaction-type.d.ts +39 -7
- package/dist-server/service/transaction/transaction-type.js +145 -23
- package/dist-server/service/transaction/transaction-type.js.map +1 -1
- package/dist-server/service/transaction/transaction.d.ts +58 -31
- package/dist-server/service/transaction/transaction.js +213 -111
- package/dist-server/service/transaction/transaction.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -4
- package/things-factory.config.js +0 -4
- package/translations/en.json +34 -2
- package/translations/ja.json +0 -1
- package/translations/ko.json +34 -2
- package/translations/ms.json +0 -1
- package/translations/zh.json +0 -1
- package/dist-client/pages/account/account-importer.d.ts +0 -22
- package/dist-client/pages/account/account-importer.js +0 -99
- package/dist-client/pages/account/account-importer.js.map +0 -1
- package/dist-client/pages/account/account-list-page.d.ts +0 -57
- package/dist-client/pages/account/account-list-page.js +0 -306
- package/dist-client/pages/account/account-list-page.js.map +0 -1
- package/dist-client/pages/bank-account/bank-account-importer.d.ts +0 -23
- package/dist-client/pages/bank-account/bank-account-importer.js +0 -92
- package/dist-client/pages/bank-account/bank-account-importer.js.map +0 -1
- package/dist-client/pages/bank-account/bank-account-list-page.d.ts +0 -60
- package/dist-client/pages/bank-account/bank-account-list-page.js +0 -317
- package/dist-client/pages/bank-account/bank-account-list-page.js.map +0 -1
- package/dist-client/pages/financial-statement/financial-statement-importer.d.ts +0 -22
- package/dist-client/pages/financial-statement/financial-statement-importer.js +0 -99
- package/dist-client/pages/financial-statement/financial-statement-importer.js.map +0 -1
- package/dist-client/pages/financial-statement/financial-statement-list-page.d.ts +0 -57
- package/dist-client/pages/financial-statement/financial-statement-list-page.js +0 -280
- package/dist-client/pages/financial-statement/financial-statement-list-page.js.map +0 -1
- package/dist-client/pages/income-statement/income-statement-importer.d.ts +0 -22
- package/dist-client/pages/income-statement/income-statement-importer.js +0 -99
- package/dist-client/pages/income-statement/income-statement-importer.js.map +0 -1
- package/dist-client/pages/income-statement/income-statement-list-page.d.ts +0 -57
- package/dist-client/pages/income-statement/income-statement-list-page.js +0 -280
- package/dist-client/pages/income-statement/income-statement-list-page.js.map +0 -1
- package/dist-client/pages/payment/payment-importer.d.ts +0 -23
- package/dist-client/pages/payment/payment-importer.js +0 -92
- package/dist-client/pages/payment/payment-importer.js.map +0 -1
- package/dist-client/pages/payment/payment-list-page.d.ts +0 -60
- package/dist-client/pages/payment/payment-list-page.js +0 -317
- package/dist-client/pages/payment/payment-list-page.js.map +0 -1
- package/dist-client/pages/transaction/transaction-importer.d.ts +0 -22
- package/dist-client/pages/transaction/transaction-importer.js +0 -99
- package/dist-client/pages/transaction/transaction-importer.js.map +0 -1
- package/dist-client/pages/transaction/transaction-list-page.d.ts +0 -57
- package/dist-client/pages/transaction/transaction-list-page.js +0 -280
- package/dist-client/pages/transaction/transaction-list-page.js.map +0 -1
- package/dist-server/controllers/index.d.ts +0 -1
- package/dist-server/controllers/index.js +0 -5
- package/dist-server/controllers/index.js.map +0 -1
- package/dist-server/controllers/summary-statements.d.ts +0 -4
- package/dist-server/controllers/summary-statements.js +0 -149
- package/dist-server/controllers/summary-statements.js.map +0 -1
- package/dist-server/migrations/1725201567284-seed-country-codes.d.ts +0 -5
- package/dist-server/migrations/1725201567284-seed-country-codes.js +0 -255
- package/dist-server/migrations/1725201567284-seed-country-codes.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-line-item.d.ts +0 -19
- package/dist-server/service/financial-statement/financial-statement-line-item.js +0 -94
- package/dist-server/service/financial-statement/financial-statement-line-item.js.map +0 -1
- package/dist-server/service/financial-statement/financial-statement-type.d.ts +0 -20
- package/dist-server/service/financial-statement/financial-statement-type.js +0 -77
- package/dist-server/service/financial-statement/financial-statement-type.js.map +0 -1
- package/dist-server/service/income-statement/event-subscriber.d.ts +0 -7
- package/dist-server/service/income-statement/event-subscriber.js +0 -21
- package/dist-server/service/income-statement/event-subscriber.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-history.d.ts +0 -28
- package/dist-server/service/income-statement/income-statement-history.js +0 -146
- package/dist-server/service/income-statement/income-statement-history.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-line-item.d.ts +0 -19
- package/dist-server/service/income-statement/income-statement-line-item.js +0 -96
- package/dist-server/service/income-statement/income-statement-line-item.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-mutation.d.ts +0 -10
- package/dist-server/service/income-statement/income-statement-mutation.js +0 -159
- package/dist-server/service/income-statement/income-statement-mutation.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-query.d.ts +0 -11
- package/dist-server/service/income-statement/income-statement-query.js +0 -81
- package/dist-server/service/income-statement/income-statement-query.js.map +0 -1
- package/dist-server/service/income-statement/income-statement-type.d.ts +0 -20
- package/dist-server/service/income-statement/income-statement-type.js +0 -77
- package/dist-server/service/income-statement/income-statement-type.js.map +0 -1
- package/dist-server/service/income-statement/income-statement.d.ts +0 -28
- package/dist-server/service/income-statement/income-statement.js +0 -137
- package/dist-server/service/income-statement/income-statement.js.map +0 -1
- package/dist-server/service/income-statement/index.d.ts +0 -8
- package/dist-server/service/income-statement/index.js +0 -13
- package/dist-server/service/income-statement/index.js.map +0 -1
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeedCountryCodes1725201567284 = void 0;
|
|
4
|
-
const code_base_1 = require("@things-factory/code-base");
|
|
5
|
-
const shell_1 = require("@things-factory/shell");
|
|
6
|
-
const codes = [
|
|
7
|
-
{
|
|
8
|
-
name: 'COUNTRY_CODES',
|
|
9
|
-
description: 'country code',
|
|
10
|
-
details: [
|
|
11
|
-
{ name: 'AF', description: '아프가니스탄' },
|
|
12
|
-
{ name: 'AL', description: '알바니아' },
|
|
13
|
-
{ name: 'DZ', description: '알제리' },
|
|
14
|
-
{ name: 'AS', description: '아메리칸사모아' },
|
|
15
|
-
{ name: 'AD', description: '안도라' },
|
|
16
|
-
{ name: 'AO', description: '앙골라' },
|
|
17
|
-
{ name: 'AI', description: '앵귈라' },
|
|
18
|
-
{ name: 'AQ', description: '남극' },
|
|
19
|
-
{ name: 'AG', description: '앤티가 바부다' },
|
|
20
|
-
{ name: 'AR', description: '아르헨티나' },
|
|
21
|
-
{ name: 'AM', description: '아르메니아' },
|
|
22
|
-
{ name: 'AW', description: '아루바' },
|
|
23
|
-
{ name: 'AU', description: '호주' },
|
|
24
|
-
{ name: 'AT', description: '오스트리아' },
|
|
25
|
-
{ name: 'AZ', description: '아제르바이잔' },
|
|
26
|
-
{ name: 'BS', description: '바하마' },
|
|
27
|
-
{ name: 'BH', description: '바레인' },
|
|
28
|
-
{ name: 'BD', description: '방글라데시' },
|
|
29
|
-
{ name: 'BB', description: '바베이도스' },
|
|
30
|
-
{ name: 'BY', description: '벨라루스' },
|
|
31
|
-
{ name: 'BE', description: '벨기에' },
|
|
32
|
-
{ name: 'BZ', description: '벨리즈' },
|
|
33
|
-
{ name: 'BJ', description: '베냉' },
|
|
34
|
-
{ name: 'BM', description: '버뮤다' },
|
|
35
|
-
{ name: 'BT', description: '부탄' },
|
|
36
|
-
{ name: 'BO', description: '볼리비아' },
|
|
37
|
-
{ name: 'BA', description: '보스니아 헤르체고비나' },
|
|
38
|
-
{ name: 'BW', description: '보츠와나' },
|
|
39
|
-
{ name: 'BV', description: '부베 섬' },
|
|
40
|
-
{ name: 'BR', description: '브라질' },
|
|
41
|
-
{ name: 'IO', description: '영국령 인도양 지역' },
|
|
42
|
-
{ name: 'BN', description: '브루나이' },
|
|
43
|
-
{ name: 'BG', description: '불가리아' },
|
|
44
|
-
{ name: 'BF', description: '부르키나파소' },
|
|
45
|
-
{ name: 'BI', description: '부룬디' },
|
|
46
|
-
{ name: 'KH', description: '캄보디아' },
|
|
47
|
-
{ name: 'CM', description: '카메룬' },
|
|
48
|
-
{ name: 'CA', description: '캐나다' },
|
|
49
|
-
{ name: 'CV', description: '카보베르데' },
|
|
50
|
-
{ name: 'KY', description: '케이맨 제도' },
|
|
51
|
-
{ name: 'CF', description: '중앙아프리카 공화국' },
|
|
52
|
-
{ name: 'TD', description: '차드' },
|
|
53
|
-
{ name: 'CL', description: '칠레' },
|
|
54
|
-
{ name: 'CN', description: '중국' },
|
|
55
|
-
{ name: 'CX', description: '크리스마스 섬' },
|
|
56
|
-
{ name: 'CC', description: '코코스 제도' },
|
|
57
|
-
{ name: 'CO', description: '콜롬비아' },
|
|
58
|
-
{ name: 'KM', description: '코모로' },
|
|
59
|
-
{ name: 'CG', description: '콩고' },
|
|
60
|
-
{ name: 'CD', description: '콩고 민주 공화국' },
|
|
61
|
-
{ name: 'CK', description: '쿡 제도' },
|
|
62
|
-
{ name: 'CR', description: '코스타리카' },
|
|
63
|
-
{ name: 'CI', description: '코트디부아르' },
|
|
64
|
-
{ name: 'HR', description: '크로아티아' },
|
|
65
|
-
{ name: 'CU', description: '쿠바' },
|
|
66
|
-
{ name: 'CY', description: '키프로스' },
|
|
67
|
-
{ name: 'CZ', description: '체코' },
|
|
68
|
-
{ name: 'DK', description: '덴마크' },
|
|
69
|
-
{ name: 'DJ', description: '지부티' },
|
|
70
|
-
{ name: 'DM', description: '도미니카' },
|
|
71
|
-
{ name: 'DO', description: '도미니카 공화국' },
|
|
72
|
-
{ name: 'EC', description: '에콰도르' },
|
|
73
|
-
{ name: 'EG', description: '이집트' },
|
|
74
|
-
{ name: 'SV', description: '엘살바도르' },
|
|
75
|
-
{ name: 'GQ', description: '적도 기니' },
|
|
76
|
-
{ name: 'ER', description: '에리트레아' },
|
|
77
|
-
{ name: 'EE', description: '에스토니아' },
|
|
78
|
-
{ name: 'ET', description: '에티오피아' },
|
|
79
|
-
{ name: 'FK', description: '포클랜드 제도' },
|
|
80
|
-
{ name: 'FO', description: '페로 제도' },
|
|
81
|
-
{ name: 'FJ', description: '피지' },
|
|
82
|
-
{ name: 'FI', description: '핀란드' },
|
|
83
|
-
{ name: 'FR', description: '프랑스' },
|
|
84
|
-
{ name: 'GF', description: '프랑스령 기아나' },
|
|
85
|
-
{ name: 'PF', description: '프랑스령 폴리네시아' },
|
|
86
|
-
{ name: 'TF', description: '프랑스령 남방 및 남극' },
|
|
87
|
-
{ name: 'GA', description: '가봉' },
|
|
88
|
-
{ name: 'GM', description: '감비아' },
|
|
89
|
-
{ name: 'GE', description: '조지아' },
|
|
90
|
-
{ name: 'DE', description: '독일' },
|
|
91
|
-
{ name: 'GH', description: '가나' },
|
|
92
|
-
{ name: 'GI', description: '지브롤터' },
|
|
93
|
-
{ name: 'GR', description: '그리스' },
|
|
94
|
-
{ name: 'GL', description: '그린란드' },
|
|
95
|
-
{ name: 'GD', description: '그레나다' },
|
|
96
|
-
{ name: 'GP', description: '과들루프' },
|
|
97
|
-
{ name: 'GU', description: '괌' },
|
|
98
|
-
{ name: 'GT', description: '과테말라' },
|
|
99
|
-
{ name: 'GN', description: '기니' },
|
|
100
|
-
{ name: 'GW', description: '기니비사우' },
|
|
101
|
-
{ name: 'GY', description: '가이아나' },
|
|
102
|
-
{ name: 'HT', description: '아이티' },
|
|
103
|
-
{ name: 'HM', description: '허드 맥도널드 제도' },
|
|
104
|
-
{ name: 'VA', description: '바티칸 시국' },
|
|
105
|
-
{ name: 'HN', description: '온두라스' },
|
|
106
|
-
{ name: 'HK', description: '홍콩' },
|
|
107
|
-
{ name: 'HU', description: '헝가리' },
|
|
108
|
-
{ name: 'IS', description: '아이슬란드' },
|
|
109
|
-
{ name: 'IN', description: '인도' },
|
|
110
|
-
{ name: 'ID', description: '인도네시아' },
|
|
111
|
-
{ name: 'IR', description: '이란' },
|
|
112
|
-
{ name: 'IQ', description: '이라크' },
|
|
113
|
-
{ name: 'IE', description: '아일랜드' },
|
|
114
|
-
{ name: 'IL', description: '이스라엘' },
|
|
115
|
-
{ name: 'IT', description: '이탈리아' },
|
|
116
|
-
{ name: 'JM', description: '자메이카' },
|
|
117
|
-
{ name: 'JP', description: '일본' },
|
|
118
|
-
{ name: 'JO', description: '요르단' },
|
|
119
|
-
{ name: 'KZ', description: '카자흐스탄' },
|
|
120
|
-
{ name: 'KE', description: '케냐' },
|
|
121
|
-
{ name: 'KI', description: '키리바시' },
|
|
122
|
-
{ name: 'KP', description: '북한' },
|
|
123
|
-
{ name: 'KR', description: '대한민국' },
|
|
124
|
-
{ name: 'KW', description: '쿠웨이트' },
|
|
125
|
-
{ name: 'KG', description: '키르기스스탄' },
|
|
126
|
-
{ name: 'LA', description: '라오스' },
|
|
127
|
-
{ name: 'LV', description: '라트비아' },
|
|
128
|
-
{ name: 'LB', description: '레바논' },
|
|
129
|
-
{ name: 'LS', description: '레소토' },
|
|
130
|
-
{ name: 'LR', description: '라이베리아' },
|
|
131
|
-
{ name: 'LY', description: '리비아' },
|
|
132
|
-
{ name: 'LI', description: '리히텐슈타인' },
|
|
133
|
-
{ name: 'LT', description: '리투아니아' },
|
|
134
|
-
{ name: 'LU', description: '룩셈부르크' },
|
|
135
|
-
{ name: 'MO', description: '마카오' },
|
|
136
|
-
{ name: 'MK', description: '북마케도니아' },
|
|
137
|
-
{ name: 'MG', description: '마다가스카르' },
|
|
138
|
-
{ name: 'MW', description: '말라위' },
|
|
139
|
-
{ name: 'MY', description: '말레이시아' },
|
|
140
|
-
{ name: 'MV', description: '몰디브' },
|
|
141
|
-
{ name: 'ML', description: '말리' },
|
|
142
|
-
{ name: 'MT', description: '몰타' },
|
|
143
|
-
{ name: 'MH', description: '마셜 제도' },
|
|
144
|
-
{ name: 'MQ', description: '마르티니크' },
|
|
145
|
-
{ name: 'MR', description: '모리타니' },
|
|
146
|
-
{ name: 'MU', description: '모리셔스' },
|
|
147
|
-
{ name: 'YT', description: '마요트' },
|
|
148
|
-
{ name: 'MX', description: '멕시코' },
|
|
149
|
-
{ name: 'FM', description: '미크로네시아 연방' },
|
|
150
|
-
{ name: 'MD', description: '몰도바' },
|
|
151
|
-
{ name: 'MC', description: '모나코' },
|
|
152
|
-
{ name: 'MN', description: '몽골' },
|
|
153
|
-
{ name: 'MS', description: '몬트세랫' },
|
|
154
|
-
{ name: 'MA', description: '모로코' },
|
|
155
|
-
{ name: 'MZ', description: '모잠비크' },
|
|
156
|
-
{ name: 'MM', description: '미얀마' },
|
|
157
|
-
{ name: 'NA', description: '나미비아' },
|
|
158
|
-
{ name: 'NR', description: '나우루' },
|
|
159
|
-
{ name: 'NP', description: '네팔' },
|
|
160
|
-
{ name: 'NL', description: '네덜란드' },
|
|
161
|
-
{ name: 'NC', description: '뉴칼레도니아' },
|
|
162
|
-
{ name: 'NZ', description: '뉴질랜드' },
|
|
163
|
-
{ name: 'NI', description: '니카라과' },
|
|
164
|
-
{ name: 'NE', description: '니제르' },
|
|
165
|
-
{ name: 'NG', description: '나이지리아' },
|
|
166
|
-
{ name: 'NU', description: '니우에' },
|
|
167
|
-
{ name: 'NF', description: '노퍽 섬' },
|
|
168
|
-
{ name: 'MP', description: '북마리아나 제도' },
|
|
169
|
-
{ name: 'NO', description: '노르웨이' },
|
|
170
|
-
{ name: 'OM', description: '오만' },
|
|
171
|
-
{ name: 'PK', description: '파키스탄' },
|
|
172
|
-
{ name: 'PW', description: '팔라우' },
|
|
173
|
-
{ name: 'PS', description: '팔레스타인' },
|
|
174
|
-
{ name: 'PA', description: '파나마' },
|
|
175
|
-
{ name: 'PG', description: '파푸아뉴기니' },
|
|
176
|
-
{ name: 'PY', description: '파라과이' },
|
|
177
|
-
{ name: 'PE', description: '페루' },
|
|
178
|
-
{ name: 'PH', description: '필리핀' },
|
|
179
|
-
{ name: 'PN', description: '핏케언 제도' },
|
|
180
|
-
{ name: 'PL', description: '폴란드' },
|
|
181
|
-
{ name: 'PT', description: '포르투갈' },
|
|
182
|
-
{ name: 'PR', description: '푸에르토리코' },
|
|
183
|
-
{ name: 'QA', description: '카타르' },
|
|
184
|
-
{ name: 'RE', description: '레위니옹' },
|
|
185
|
-
{ name: 'RO', description: '루마니아' },
|
|
186
|
-
{ name: 'RU', description: '러시아' },
|
|
187
|
-
{ name: 'RW', description: '르완다' },
|
|
188
|
-
{ name: 'SH', description: '세인트헬레나' },
|
|
189
|
-
{ name: 'KN', description: '세인트키츠 네비스' },
|
|
190
|
-
{ name: 'LC', description: '세인트루시아' },
|
|
191
|
-
{ name: 'PM', description: '생피에르 미클롱' },
|
|
192
|
-
{ name: 'VC', description: '세인트빈센트 그레나딘' },
|
|
193
|
-
{ name: 'WS', description: '사모아' },
|
|
194
|
-
{ name: 'SM', description: '산마리노' },
|
|
195
|
-
{ name: 'ST', description: '상투메 프린시페' },
|
|
196
|
-
{ name: 'SA', description: '사우디아라비아' },
|
|
197
|
-
{ name: 'SN', description: '세네갈' },
|
|
198
|
-
{ name: 'SC', description: '세이셸' },
|
|
199
|
-
{ name: 'SL', description: '시에라리온' },
|
|
200
|
-
{ name: 'SG', description: '싱가포르' },
|
|
201
|
-
{ name: 'SK', description: '슬로바키아' },
|
|
202
|
-
{ name: 'SI', description: '슬로베니아' },
|
|
203
|
-
{ name: 'SB', description: '솔로몬 제도' },
|
|
204
|
-
{ name: 'SO', description: '소말리아' },
|
|
205
|
-
{ name: 'ZA', description: '남아프리카 공화국' },
|
|
206
|
-
{ name: 'GS', description: '사우스조지아 사우스샌드위치 제도' },
|
|
207
|
-
{ name: 'ES', description: '스페인' },
|
|
208
|
-
{ name: 'LK', description: '스리랑카' },
|
|
209
|
-
{ name: 'SD', description: '수단' },
|
|
210
|
-
{ name: 'SR', description: '수리남' },
|
|
211
|
-
{ name: 'SJ', description: '스발바르 얀마옌' },
|
|
212
|
-
{ name: 'SZ', description: '에스와티니' },
|
|
213
|
-
{ name: 'SE', description: '스웨덴' },
|
|
214
|
-
{ name: 'CH', description: '스위스' },
|
|
215
|
-
{ name: 'SY', description: '시리아' },
|
|
216
|
-
{ name: 'TW', description: '대만' },
|
|
217
|
-
{ name: 'TJ', description: '타지키스탄' },
|
|
218
|
-
{ name: 'TZ', description: '탄자니아' },
|
|
219
|
-
{ name: 'TH', description: '태국' },
|
|
220
|
-
{ name: 'TL', description: '동티모르' },
|
|
221
|
-
{ name: 'TG', description: '토고' },
|
|
222
|
-
{ name: 'TK', description: '토켈라우' },
|
|
223
|
-
{ name: 'TO', description: '통가' }
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
];
|
|
227
|
-
class SeedCountryCodes1725201567284 {
|
|
228
|
-
async up(queryRunner) {
|
|
229
|
-
const codeRepo = (0, shell_1.getRepository)(code_base_1.CommonCode);
|
|
230
|
-
const codeDetailRepo = (0, shell_1.getRepository)(code_base_1.CommonCodeDetail);
|
|
231
|
-
const domain = await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({
|
|
232
|
-
subdomain: 'system'
|
|
233
|
-
});
|
|
234
|
-
return await Promise.all(codes.map(async (code) => {
|
|
235
|
-
const commonCode = await codeRepo.save({
|
|
236
|
-
...code,
|
|
237
|
-
domain
|
|
238
|
-
});
|
|
239
|
-
await codeDetailRepo.save(commonCode.details.map((detail, idx) => {
|
|
240
|
-
return {
|
|
241
|
-
...detail,
|
|
242
|
-
commonCode,
|
|
243
|
-
domain,
|
|
244
|
-
rank: (idx + 1) * 10
|
|
245
|
-
};
|
|
246
|
-
}));
|
|
247
|
-
}));
|
|
248
|
-
}
|
|
249
|
-
async down(queryRunner) {
|
|
250
|
-
const codeRepo = (0, shell_1.getRepository)(code_base_1.CommonCode);
|
|
251
|
-
const codeDetailRepo = (0, shell_1.getRepository)(code_base_1.CommonCodeDetail);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
exports.SeedCountryCodes1725201567284 = SeedCountryCodes1725201567284;
|
|
255
|
-
//# sourceMappingURL=1725201567284-seed-country-codes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1725201567284-seed-country-codes.js","sourceRoot":"","sources":["../../server/migrations/1725201567284-seed-country-codes.ts"],"names":[],"mappings":";;;AAEA,yDAAwE;AACxE,iDAA6D;AAE7D,MAAM,KAAK,GAAG;IACZ;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,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CAAC,GAAG,EAAE;iBACrB,CAAA;YACH,CAAC,CAAC,CACH,CAAA;QACH,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,QAAQ,GAAG,IAAA,qBAAa,EAAC,sBAAU,CAAC,CAAA;QAC1C,MAAM,cAAc,GAAG,IAAA,qBAAa,EAAC,4BAAgB,CAAC,CAAA;IACxD,CAAC;CACF;AAjCD,sEAiCC","sourcesContent":["import { MigrationInterface, QueryRunner } from 'typeorm'\n\nimport { CommonCode, CommonCodeDetail } from '@things-factory/code-base'\nimport { Domain, getRepository } from '@things-factory/shell'\n\nconst codes = [\n {\n name: 'COUNTRY_CODES',\n description: 'country code',\n details: [\n { name: 'AF', description: '아프가니스탄' },\n { name: 'AL', description: '알바니아' },\n { name: 'DZ', description: '알제리' },\n { name: 'AS', description: '아메리칸사모아' },\n { name: 'AD', description: '안도라' },\n { name: 'AO', description: '앙골라' },\n { name: 'AI', description: '앵귈라' },\n { name: 'AQ', description: '남극' },\n { name: 'AG', description: '앤티가 바부다' },\n { name: 'AR', description: '아르헨티나' },\n { name: 'AM', description: '아르메니아' },\n { name: 'AW', description: '아루바' },\n { name: 'AU', description: '호주' },\n { name: 'AT', description: '오스트리아' },\n { name: 'AZ', description: '아제르바이잔' },\n { name: 'BS', description: '바하마' },\n { name: 'BH', description: '바레인' },\n { name: 'BD', description: '방글라데시' },\n { name: 'BB', description: '바베이도스' },\n { name: 'BY', description: '벨라루스' },\n { name: 'BE', description: '벨기에' },\n { name: 'BZ', description: '벨리즈' },\n { name: 'BJ', description: '베냉' },\n { name: 'BM', description: '버뮤다' },\n { name: 'BT', description: '부탄' },\n { name: 'BO', description: '볼리비아' },\n { name: 'BA', description: '보스니아 헤르체고비나' },\n { name: 'BW', description: '보츠와나' },\n { name: 'BV', description: '부베 섬' },\n { name: 'BR', description: '브라질' },\n { name: 'IO', description: '영국령 인도양 지역' },\n { name: 'BN', description: '브루나이' },\n { name: 'BG', description: '불가리아' },\n { name: 'BF', description: '부르키나파소' },\n { name: 'BI', description: '부룬디' },\n { name: 'KH', description: '캄보디아' },\n { name: 'CM', description: '카메룬' },\n { name: 'CA', description: '캐나다' },\n { name: 'CV', description: '카보베르데' },\n { name: 'KY', description: '케이맨 제도' },\n { name: 'CF', description: '중앙아프리카 공화국' },\n { name: 'TD', description: '차드' },\n { name: 'CL', description: '칠레' },\n { name: 'CN', description: '중국' },\n { name: 'CX', description: '크리스마스 섬' },\n { name: 'CC', description: '코코스 제도' },\n { name: 'CO', description: '콜롬비아' },\n { name: 'KM', description: '코모로' },\n { name: 'CG', description: '콩고' },\n { name: 'CD', description: '콩고 민주 공화국' },\n { name: 'CK', description: '쿡 제도' },\n { name: 'CR', description: '코스타리카' },\n { name: 'CI', description: '코트디부아르' },\n { name: 'HR', description: '크로아티아' },\n { name: 'CU', description: '쿠바' },\n { name: 'CY', description: '키프로스' },\n { name: 'CZ', description: '체코' },\n { name: 'DK', description: '덴마크' },\n { name: 'DJ', description: '지부티' },\n { name: 'DM', description: '도미니카' },\n { name: 'DO', description: '도미니카 공화국' },\n { name: 'EC', description: '에콰도르' },\n { name: 'EG', description: '이집트' },\n { name: 'SV', description: '엘살바도르' },\n { name: 'GQ', description: '적도 기니' },\n { name: 'ER', description: '에리트레아' },\n { name: 'EE', description: '에스토니아' },\n { name: 'ET', description: '에티오피아' },\n { name: 'FK', description: '포클랜드 제도' },\n { name: 'FO', description: '페로 제도' },\n { name: 'FJ', description: '피지' },\n { name: 'FI', description: '핀란드' },\n { name: 'FR', description: '프랑스' },\n { name: 'GF', description: '프랑스령 기아나' },\n { name: 'PF', description: '프랑스령 폴리네시아' },\n { name: 'TF', description: '프랑스령 남방 및 남극' },\n { name: 'GA', description: '가봉' },\n { name: 'GM', description: '감비아' },\n { name: 'GE', description: '조지아' },\n { name: 'DE', description: '독일' },\n { name: 'GH', description: '가나' },\n { name: 'GI', description: '지브롤터' },\n { name: 'GR', description: '그리스' },\n { name: 'GL', description: '그린란드' },\n { name: 'GD', description: '그레나다' },\n { name: 'GP', description: '과들루프' },\n { name: 'GU', description: '괌' },\n { name: 'GT', description: '과테말라' },\n { name: 'GN', description: '기니' },\n { name: 'GW', description: '기니비사우' },\n { name: 'GY', description: '가이아나' },\n { name: 'HT', description: '아이티' },\n { name: 'HM', description: '허드 맥도널드 제도' },\n { name: 'VA', description: '바티칸 시국' },\n { name: 'HN', description: '온두라스' },\n { name: 'HK', description: '홍콩' },\n { name: 'HU', description: '헝가리' },\n { name: 'IS', description: '아이슬란드' },\n { name: 'IN', description: '인도' },\n { name: 'ID', description: '인도네시아' },\n { name: 'IR', description: '이란' },\n { name: 'IQ', description: '이라크' },\n { name: 'IE', description: '아일랜드' },\n { name: 'IL', description: '이스라엘' },\n { name: 'IT', description: '이탈리아' },\n { name: 'JM', description: '자메이카' },\n { name: 'JP', description: '일본' },\n { name: 'JO', description: '요르단' },\n { name: 'KZ', description: '카자흐스탄' },\n { name: 'KE', description: '케냐' },\n { name: 'KI', description: '키리바시' },\n { name: 'KP', description: '북한' },\n { name: 'KR', description: '대한민국' },\n { name: 'KW', description: '쿠웨이트' },\n { name: 'KG', description: '키르기스스탄' },\n { name: 'LA', description: '라오스' },\n { name: 'LV', description: '라트비아' },\n { name: 'LB', description: '레바논' },\n { name: 'LS', description: '레소토' },\n { name: 'LR', description: '라이베리아' },\n { name: 'LY', description: '리비아' },\n { name: 'LI', description: '리히텐슈타인' },\n { name: 'LT', description: '리투아니아' },\n { name: 'LU', description: '룩셈부르크' },\n { name: 'MO', description: '마카오' },\n { name: 'MK', description: '북마케도니아' },\n { name: 'MG', description: '마다가스카르' },\n { name: 'MW', description: '말라위' },\n { name: 'MY', description: '말레이시아' },\n { name: 'MV', description: '몰디브' },\n { name: 'ML', description: '말리' },\n { name: 'MT', description: '몰타' },\n { name: 'MH', description: '마셜 제도' },\n { name: 'MQ', description: '마르티니크' },\n { name: 'MR', description: '모리타니' },\n { name: 'MU', description: '모리셔스' },\n { name: 'YT', description: '마요트' },\n { name: 'MX', description: '멕시코' },\n { name: 'FM', description: '미크로네시아 연방' },\n { name: 'MD', description: '몰도바' },\n { name: 'MC', description: '모나코' },\n { name: 'MN', description: '몽골' },\n { name: 'MS', description: '몬트세랫' },\n { name: 'MA', description: '모로코' },\n { name: 'MZ', description: '모잠비크' },\n { name: 'MM', description: '미얀마' },\n { name: 'NA', description: '나미비아' },\n { name: 'NR', description: '나우루' },\n { name: 'NP', description: '네팔' },\n { name: 'NL', description: '네덜란드' },\n { name: 'NC', description: '뉴칼레도니아' },\n { name: 'NZ', description: '뉴질랜드' },\n { name: 'NI', description: '니카라과' },\n { name: 'NE', description: '니제르' },\n { name: 'NG', description: '나이지리아' },\n { name: 'NU', description: '니우에' },\n { name: 'NF', description: '노퍽 섬' },\n { name: 'MP', description: '북마리아나 제도' },\n { name: 'NO', description: '노르웨이' },\n { name: 'OM', description: '오만' },\n { name: 'PK', description: '파키스탄' },\n { name: 'PW', description: '팔라우' },\n { name: 'PS', description: '팔레스타인' },\n { name: 'PA', description: '파나마' },\n { name: 'PG', description: '파푸아뉴기니' },\n { name: 'PY', description: '파라과이' },\n { name: 'PE', description: '페루' },\n { name: 'PH', description: '필리핀' },\n { name: 'PN', description: '핏케언 제도' },\n { name: 'PL', description: '폴란드' },\n { name: 'PT', description: '포르투갈' },\n { name: 'PR', description: '푸에르토리코' },\n { name: 'QA', description: '카타르' },\n { name: 'RE', description: '레위니옹' },\n { name: 'RO', description: '루마니아' },\n { name: 'RU', description: '러시아' },\n { name: 'RW', description: '르완다' },\n { name: 'SH', description: '세인트헬레나' },\n { name: 'KN', description: '세인트키츠 네비스' },\n { name: 'LC', description: '세인트루시아' },\n { name: 'PM', description: '생피에르 미클롱' },\n { name: 'VC', description: '세인트빈센트 그레나딘' },\n { name: 'WS', description: '사모아' },\n { name: 'SM', description: '산마리노' },\n { name: 'ST', description: '상투메 프린시페' },\n { name: 'SA', description: '사우디아라비아' },\n { name: 'SN', description: '세네갈' },\n { name: 'SC', description: '세이셸' },\n { name: 'SL', description: '시에라리온' },\n { name: 'SG', description: '싱가포르' },\n { name: 'SK', description: '슬로바키아' },\n { name: 'SI', description: '슬로베니아' },\n { name: 'SB', description: '솔로몬 제도' },\n { name: 'SO', description: '소말리아' },\n { name: 'ZA', description: '남아프리카 공화국' },\n { name: 'GS', description: '사우스조지아 사우스샌드위치 제도' },\n { name: 'ES', description: '스페인' },\n { name: 'LK', description: '스리랑카' },\n { name: 'SD', description: '수단' },\n { name: 'SR', description: '수리남' },\n { name: 'SJ', description: '스발바르 얀마옌' },\n { name: 'SZ', description: '에스와티니' },\n { name: 'SE', description: '스웨덴' },\n { name: 'CH', description: '스위스' },\n { name: 'SY', description: '시리아' },\n { name: 'TW', description: '대만' },\n { name: 'TJ', description: '타지키스탄' },\n { name: 'TZ', description: '탄자니아' },\n { name: 'TH', description: '태국' },\n { name: 'TL', description: '동티모르' },\n { name: 'TG', description: '토고' },\n { name: 'TK', description: '토켈라우' },\n { name: 'TO', description: '통가' }\n ]\n }\n]\n\nexport class SeedCountryCodes1725201567284 implements MigrationInterface {\n public async up(queryRunner: QueryRunner): Promise<any> {\n const codeRepo = getRepository(CommonCode)\n const codeDetailRepo = getRepository(CommonCodeDetail)\n const domain = await getRepository(Domain).findOneBy({\n subdomain: 'system'\n })\n\n return await Promise.all(\n codes.map(async code => {\n const commonCode = await codeRepo.save({\n ...code,\n domain\n })\n\n await codeDetailRepo.save(\n commonCode.details.map((detail, idx) => {\n return {\n ...detail,\n commonCode,\n domain,\n rank: (idx + 1) * 10\n }\n })\n )\n })\n )\n }\n\n public async down(queryRunner: QueryRunner): Promise<any> {\n const codeRepo = getRepository(CommonCode)\n const codeDetailRepo = getRepository(CommonCodeDetail)\n }\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { User } from '@things-factory/auth-base';
|
|
2
|
-
import { Account } from '../account/account';
|
|
3
|
-
import { FinancialStatement } from './financial-statement';
|
|
4
|
-
export declare class FinancialStatementLineItem {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
statement: FinancialStatement;
|
|
7
|
-
statementId: string;
|
|
8
|
-
account: Account;
|
|
9
|
-
accountId: string;
|
|
10
|
-
amount: number;
|
|
11
|
-
description?: string;
|
|
12
|
-
createdAt?: Date;
|
|
13
|
-
updatedAt?: Date;
|
|
14
|
-
deletedAt?: Date;
|
|
15
|
-
creator?: User;
|
|
16
|
-
creatorId?: string;
|
|
17
|
-
updater?: User;
|
|
18
|
-
updaterId?: string;
|
|
19
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinancialStatementLineItem = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const type_graphql_1 = require("type-graphql");
|
|
7
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
-
const account_1 = require("../account/account");
|
|
9
|
-
const financial_statement_1 = require("./financial-statement");
|
|
10
|
-
let FinancialStatementLineItem = class FinancialStatementLineItem {
|
|
11
|
-
};
|
|
12
|
-
exports.FinancialStatementLineItem = FinancialStatementLineItem;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], FinancialStatementLineItem.prototype, "id", void 0);
|
|
18
|
-
tslib_1.__decorate([
|
|
19
|
-
(0, typeorm_1.ManyToOne)(type => financial_statement_1.FinancialStatement, statement => statement.lineItems),
|
|
20
|
-
(0, type_graphql_1.Field)(type => financial_statement_1.FinancialStatement, { description: 'The financial statement this line item is associated with' }),
|
|
21
|
-
tslib_1.__metadata("design:type", financial_statement_1.FinancialStatement // 연결된 재무제표
|
|
22
|
-
)
|
|
23
|
-
], FinancialStatementLineItem.prototype, "statement", void 0);
|
|
24
|
-
tslib_1.__decorate([
|
|
25
|
-
(0, typeorm_1.RelationId)((lineItem) => lineItem.statement),
|
|
26
|
-
tslib_1.__metadata("design:type", String)
|
|
27
|
-
], FinancialStatementLineItem.prototype, "statementId", void 0);
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
(0, typeorm_1.ManyToOne)(type => account_1.Account),
|
|
30
|
-
(0, type_graphql_1.Field)(type => account_1.Account, { description: 'The financial account associated with this line item' }),
|
|
31
|
-
tslib_1.__metadata("design:type", account_1.Account // 라인 아이템과 연결된 계정
|
|
32
|
-
)
|
|
33
|
-
], FinancialStatementLineItem.prototype, "account", void 0);
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
(0, typeorm_1.RelationId)((lineItem) => lineItem.account),
|
|
36
|
-
tslib_1.__metadata("design:type", String)
|
|
37
|
-
], FinancialStatementLineItem.prototype, "accountId", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
40
|
-
(0, type_graphql_1.Field)({ nullable: false, description: 'The monetary amount related to the financial account for this line item' }),
|
|
41
|
-
tslib_1.__metadata("design:type", Number)
|
|
42
|
-
], FinancialStatementLineItem.prototype, "amount", void 0);
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'Optional description or notes for this line item' }),
|
|
46
|
-
tslib_1.__metadata("design:type", String)
|
|
47
|
-
], FinancialStatementLineItem.prototype, "description", void 0);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
50
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The date and time when this line item was created' }),
|
|
51
|
-
tslib_1.__metadata("design:type", Date // 라인 아이템이 생성된 날짜 및 시간
|
|
52
|
-
)
|
|
53
|
-
], FinancialStatementLineItem.prototype, "createdAt", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
56
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The date and time when this line item was last updated' }),
|
|
57
|
-
tslib_1.__metadata("design:type", Date // 라인 아이템이 마지막으로 업데이트된 날짜 및 시간
|
|
58
|
-
)
|
|
59
|
-
], FinancialStatementLineItem.prototype, "updatedAt", void 0);
|
|
60
|
-
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
62
|
-
(0, type_graphql_1.Field)({ nullable: true, description: 'The date and time when this line item was deleted' }),
|
|
63
|
-
tslib_1.__metadata("design:type", Date // 라인 아이템이 삭제된 날짜 및 시간
|
|
64
|
-
)
|
|
65
|
-
], FinancialStatementLineItem.prototype, "deletedAt", void 0);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
68
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who created this line item' }),
|
|
69
|
-
tslib_1.__metadata("design:type", auth_base_1.User // 라인 아이템을 생성한 사용자
|
|
70
|
-
)
|
|
71
|
-
], FinancialStatementLineItem.prototype, "creator", void 0);
|
|
72
|
-
tslib_1.__decorate([
|
|
73
|
-
(0, typeorm_1.RelationId)((lineItem) => lineItem.creator),
|
|
74
|
-
tslib_1.__metadata("design:type", String)
|
|
75
|
-
], FinancialStatementLineItem.prototype, "creatorId", void 0);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
78
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who last updated this line item' }),
|
|
79
|
-
tslib_1.__metadata("design:type", auth_base_1.User // 라인 아이템을 마지막으로 업데이트한 사용자
|
|
80
|
-
)
|
|
81
|
-
], FinancialStatementLineItem.prototype, "updater", void 0);
|
|
82
|
-
tslib_1.__decorate([
|
|
83
|
-
(0, typeorm_1.RelationId)((lineItem) => lineItem.updater),
|
|
84
|
-
tslib_1.__metadata("design:type", String)
|
|
85
|
-
], FinancialStatementLineItem.prototype, "updaterId", void 0);
|
|
86
|
-
exports.FinancialStatementLineItem = FinancialStatementLineItem = tslib_1.__decorate([
|
|
87
|
-
(0, type_graphql_1.ObjectType)({ description: 'Line item for a financial statement, representing the breakdown of financial accounts' }),
|
|
88
|
-
(0, typeorm_1.Entity)(),
|
|
89
|
-
(0, typeorm_1.Index)('ix_financial_statement_line_item_0', (lineItem) => [lineItem.statement, lineItem.account], {
|
|
90
|
-
unique: false,
|
|
91
|
-
where: '"deleted_at" IS NULL'
|
|
92
|
-
})
|
|
93
|
-
], FinancialStatementLineItem);
|
|
94
|
-
//# sourceMappingURL=financial-statement-line-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"financial-statement-line-item.js","sourceRoot":"","sources":["../../../server/service/financial-statement/financial-statement-line-item.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAGpD,yDAAgD;AAChD,gDAA4C;AAC5C,+DAA0D;AAYnD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CAoDtC,CAAA;AApDY,gEAA0B;AAG5B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;sDACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,wCAAkB,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC;IACvE,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,wCAAkB,EAAE,EAAE,WAAW,EAAE,2DAA2D,EAAE,CAAC;sCACrG,wCAAkB,CAAC,WAAW;;6DAAZ;AAG7B;IADC,IAAA,oBAAU,EAAC,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AE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;sCAClF,gBAAI,CAAC,kBAAkB;;2DAAnB;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,QAAoC,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;6DACrD;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;sCACvF,gBAAI,CAAC,0BAA0B;;2DAA3B;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,QAAoC,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;6DACrD;qCAnDP,0BAA0B;IAVtC,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,uFAAuF,EAAE,CAAC;IACpH,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,oCAAoC,EACpC,CAAC,QAAoC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,EAChF;QACE,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,sBAAsB;KAC9B,CACF;GACY,0BAA0B,CAoDtC","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 } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Account } from '../account/account'\nimport { FinancialStatement } from './financial-statement'\n\n@ObjectType({ description: 'Line item for a financial statement, representing the breakdown of financial accounts' })\n@Entity()\n@Index(\n 'ix_financial_statement_line_item_0',\n (lineItem: FinancialStatementLineItem) => [lineItem.statement, lineItem.account],\n {\n unique: false,\n where: '\"deleted_at\" IS NULL'\n }\n)\nexport class FinancialStatementLineItem {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string // 고유 식별자 (UUID)\n\n @ManyToOne(type => FinancialStatement, statement => statement.lineItems)\n @Field(type => FinancialStatement, { description: 'The financial statement this line item is associated with' })\n statement: FinancialStatement // 연결된 재무제표\n\n @RelationId((lineItem: FinancialStatementLineItem) => lineItem.statement)\n statementId: string // 재무제표의 ID\n\n @ManyToOne(type => Account)\n @Field(type => Account, { description: 'The financial account associated with this line item' })\n account: Account // 라인 아이템과 연결된 계정\n\n @RelationId((lineItem: FinancialStatementLineItem) => lineItem.account)\n accountId: string // 계정의 ID\n\n @Column({ nullable: false })\n @Field({ nullable: false, description: 'The monetary amount related to the financial account for this line item' })\n amount: number // 계정에 대한 금액\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Optional description or notes for this line item' })\n description?: string // 라인 아이템에 대한 선택적 설명 또는 메모\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'The date and time when this line item was created' })\n createdAt?: Date // 라인 아이템이 생성된 날짜 및 시간\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'The date and time when this line item was last updated' })\n updatedAt?: Date // 라인 아이템이 마지막으로 업데이트된 날짜 및 시간\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'The date and time when this line item was deleted' })\n deletedAt?: Date // 라인 아이템이 삭제된 날짜 및 시간\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who created this line item' })\n creator?: User // 라인 아이템을 생성한 사용자\n\n @RelationId((lineItem: FinancialStatementLineItem) => lineItem.creator)\n creatorId?: string // 생성자의 ID\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who last updated this line item' })\n updater?: User // 라인 아이템을 마지막으로 업데이트한 사용자\n\n @RelationId((lineItem: FinancialStatementLineItem) => lineItem.updater)\n updaterId?: string // 업데이트한 사용자의 ID\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FinancialStatement, FinancialStatementStatus } from './financial-statement';
|
|
2
|
-
export declare class NewFinancialStatement {
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
state?: FinancialStatementStatus;
|
|
6
|
-
active?: boolean;
|
|
7
|
-
params?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class FinancialStatementPatch {
|
|
10
|
-
id?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
state?: FinancialStatementStatus;
|
|
14
|
-
active?: boolean;
|
|
15
|
-
cuFlag?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare class FinancialStatementList {
|
|
18
|
-
items: FinancialStatement[];
|
|
19
|
-
total: number;
|
|
20
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinancialStatementList = exports.FinancialStatementPatch = exports.NewFinancialStatement = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const financial_statement_1 = require("./financial-statement");
|
|
7
|
-
let NewFinancialStatement = class NewFinancialStatement {
|
|
8
|
-
};
|
|
9
|
-
exports.NewFinancialStatement = NewFinancialStatement;
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)(),
|
|
12
|
-
tslib_1.__metadata("design:type", String)
|
|
13
|
-
], NewFinancialStatement.prototype, "name", void 0);
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], NewFinancialStatement.prototype, "description", void 0);
|
|
18
|
-
tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)(type => financial_statement_1.FinancialStatementStatus, { nullable: true }),
|
|
20
|
-
tslib_1.__metadata("design:type", String)
|
|
21
|
-
], NewFinancialStatement.prototype, "state", void 0);
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
25
|
-
], NewFinancialStatement.prototype, "active", void 0);
|
|
26
|
-
tslib_1.__decorate([
|
|
27
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
|
-
tslib_1.__metadata("design:type", String)
|
|
29
|
-
], NewFinancialStatement.prototype, "params", void 0);
|
|
30
|
-
exports.NewFinancialStatement = NewFinancialStatement = tslib_1.__decorate([
|
|
31
|
-
(0, type_graphql_1.InputType)()
|
|
32
|
-
], NewFinancialStatement);
|
|
33
|
-
let FinancialStatementPatch = class FinancialStatementPatch {
|
|
34
|
-
};
|
|
35
|
-
exports.FinancialStatementPatch = FinancialStatementPatch;
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
38
|
-
tslib_1.__metadata("design:type", String)
|
|
39
|
-
], FinancialStatementPatch.prototype, "id", void 0);
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
-
tslib_1.__metadata("design:type", String)
|
|
43
|
-
], FinancialStatementPatch.prototype, "name", void 0);
|
|
44
|
-
tslib_1.__decorate([
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
-
tslib_1.__metadata("design:type", String)
|
|
47
|
-
], FinancialStatementPatch.prototype, "description", void 0);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.Field)(type => financial_statement_1.FinancialStatementStatus, { nullable: true }),
|
|
50
|
-
tslib_1.__metadata("design:type", String)
|
|
51
|
-
], FinancialStatementPatch.prototype, "state", void 0);
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
55
|
-
], FinancialStatementPatch.prototype, "active", void 0);
|
|
56
|
-
tslib_1.__decorate([
|
|
57
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
58
|
-
tslib_1.__metadata("design:type", String)
|
|
59
|
-
], FinancialStatementPatch.prototype, "cuFlag", void 0);
|
|
60
|
-
exports.FinancialStatementPatch = FinancialStatementPatch = tslib_1.__decorate([
|
|
61
|
-
(0, type_graphql_1.InputType)()
|
|
62
|
-
], FinancialStatementPatch);
|
|
63
|
-
let FinancialStatementList = class FinancialStatementList {
|
|
64
|
-
};
|
|
65
|
-
exports.FinancialStatementList = FinancialStatementList;
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, type_graphql_1.Field)(type => [financial_statement_1.FinancialStatement]),
|
|
68
|
-
tslib_1.__metadata("design:type", Array)
|
|
69
|
-
], FinancialStatementList.prototype, "items", void 0);
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
72
|
-
tslib_1.__metadata("design:type", Number)
|
|
73
|
-
], FinancialStatementList.prototype, "total", void 0);
|
|
74
|
-
exports.FinancialStatementList = FinancialStatementList = tslib_1.__decorate([
|
|
75
|
-
(0, type_graphql_1.ObjectType)()
|
|
76
|
-
], FinancialStatementList);
|
|
77
|
-
//# sourceMappingURL=financial-statement-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"financial-statement-type.js","sourceRoot":"","sources":["../../../server/service/financial-statement/financial-statement-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,+DAAoF;AAG7E,IAAM,q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AsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC;;qDACT;AAG3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;qDACN;iCALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { FinancialStatement, FinancialStatementStatus } from './financial-statement'\n\n@InputType()\nexport class NewFinancialStatement {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => FinancialStatementStatus, { nullable: true })\n state?: FinancialStatementStatus\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n params?: string\n}\n\n@InputType()\nexport class FinancialStatementPatch {\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 => FinancialStatementStatus, { nullable: true })\n state?: FinancialStatementStatus\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class FinancialStatementList {\n @Field(type => [FinancialStatement])\n items: FinancialStatement[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
-
import { IncomeStatement } from './income-statement';
|
|
3
|
-
import { IncomeStatementHistory } from './income-statement-history';
|
|
4
|
-
export declare class IncomeStatementHistoryEntitySubscriber extends HistoryEntitySubscriber<IncomeStatement, IncomeStatementHistory> {
|
|
5
|
-
get entity(): typeof IncomeStatement;
|
|
6
|
-
get historyEntity(): typeof IncomeStatementHistory;
|
|
7
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IncomeStatementHistoryEntitySubscriber = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
7
|
-
const income_statement_1 = require("./income-statement");
|
|
8
|
-
const income_statement_history_1 = require("./income-statement-history");
|
|
9
|
-
let IncomeStatementHistoryEntitySubscriber = class IncomeStatementHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
-
get entity() {
|
|
11
|
-
return income_statement_1.IncomeStatement;
|
|
12
|
-
}
|
|
13
|
-
get historyEntity() {
|
|
14
|
-
return income_statement_history_1.IncomeStatementHistory;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.IncomeStatementHistoryEntitySubscriber = IncomeStatementHistoryEntitySubscriber;
|
|
18
|
-
exports.IncomeStatementHistoryEntitySubscriber = IncomeStatementHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
-
(0, typeorm_1.EventSubscriber)()
|
|
20
|
-
], IncomeStatementHistoryEntitySubscriber);
|
|
21
|
-
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/income-statement/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,yDAAoD;AACpD,yEAAmE;AAG5D,IAAM,sCAAsC,GAA5C,MAAM,sCAAuC,SAAQ,yCAAgE;IAC1H,IAAW,MAAM;QACf,OAAO,kCAAe,CAAA;IACxB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,iDAAsB,CAAA;IAC/B,CAAC;CACF,CAAA;AARY,wFAAsC;iDAAtC,sCAAsC;IADlD,IAAA,yBAAe,GAAE;GACL,sCAAsC,CAQlD","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { IncomeStatement } from './income-statement'\nimport { IncomeStatementHistory } from './income-statement-history'\n\n@EventSubscriber()\nexport class IncomeStatementHistoryEntitySubscriber extends HistoryEntitySubscriber<IncomeStatement, IncomeStatementHistory> {\n public get entity() {\n return IncomeStatement\n }\n\n public get historyEntity() {\n return IncomeStatementHistory\n }\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { Domain } from '@things-factory/shell';
|
|
4
|
-
import { IncomeStatement } from './income-statement';
|
|
5
|
-
import { IncomeStatementLineItem } from './income-statement-line-item';
|
|
6
|
-
export declare class IncomeStatementHistory implements HistoryEntityInterface<IncomeStatement> {
|
|
7
|
-
readonly id: string;
|
|
8
|
-
version?: number;
|
|
9
|
-
domain?: Domain;
|
|
10
|
-
domainId?: string;
|
|
11
|
-
year?: number;
|
|
12
|
-
quarter?: number;
|
|
13
|
-
month?: number;
|
|
14
|
-
revenue?: number;
|
|
15
|
-
expense?: number;
|
|
16
|
-
netIncome?: number;
|
|
17
|
-
active?: boolean;
|
|
18
|
-
lineItems?: IncomeStatementLineItem[];
|
|
19
|
-
createdAt?: Date;
|
|
20
|
-
updatedAt?: Date;
|
|
21
|
-
deletedAt?: Date;
|
|
22
|
-
creator?: User;
|
|
23
|
-
creatorId?: string;
|
|
24
|
-
updater?: User;
|
|
25
|
-
updaterId?: string;
|
|
26
|
-
originalId: string;
|
|
27
|
-
action: HistoryActionType;
|
|
28
|
-
}
|