@things-factory/tax-invoice 7.0.0-alpha.8 → 7.0.0
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/client/bootstrap.ts +1 -0
- package/client/pages/tax-audit-result/tax-audit-result-importer.ts +8 -19
- package/client/pages/tax-audit-result/tax-audit-result-list-page.ts +10 -25
- package/client/pages/tax-invoice/tax-invoice-detail-popup.ts +21 -19
- package/client/pages/tax-invoice-api/tax-invoice-api-page.ts +99 -61
- package/client/pages/tax-invoice-company/tax-invoice-company-list-page.ts +2 -67
- package/client/pages/{tax-invoice-company/tax-invoice-company-importer.ts → tax-invoice-send/company-list-popup.ts} +69 -57
- package/client/pages/tax-invoice-send/tax-invoice-send-page.ts +78 -742
- package/client/pages/tax-invoice-send/tax-invoice-send.ts +1181 -0
- package/config/config.development.js +13 -0
- package/config/config.production.js +13 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +1 -1
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/pages/main.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.d.ts +1 -0
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js +5 -12
- package/dist-client/pages/tax-audit-result/tax-audit-result-importer.js.map +1 -1
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js +8 -16
- package/dist-client/pages/tax-audit-result/tax-audit-result-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.d.ts +0 -1
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js +20 -17
- package/dist-client/pages/tax-invoice/tax-invoice-detail-popup.js.map +1 -1
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.d.ts +5 -5
- package/dist-client/pages/tax-invoice/tax-invoice-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.d.ts +3 -2
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js +91 -61
- package/dist-client/pages/tax-invoice-api/tax-invoice-api-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.d.ts +0 -16
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js +3 -62
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/company-list-popup.d.ts +69 -0
- package/dist-client/pages/{tax-invoice-company/tax-invoice-company-importer.js → tax-invoice-send/company-list-popup.js} +75 -60
- package/dist-client/pages/tax-invoice-send/company-list-popup.js.map +1 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.d.ts +11 -78
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +65 -654
- package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js.map +1 -1
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.d.ts +112 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js +1086 -0
- package/dist-client/pages/tax-invoice-send/tax-invoice-send.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +2 -0
- package/dist-server/routes.d.ts +1 -0
- package/dist-server/service/index.d.ts +9 -0
- package/dist-server/service/index.js +1 -0
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/tax-audit-result/event-subscriber.d.ts +7 -0
- package/dist-server/service/tax-audit-result/event-subscriber.js +2 -2
- package/dist-server/service/tax-audit-result/event-subscriber.js.map +1 -1
- package/dist-server/service/tax-audit-result/index.d.ts +7 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-history.d.ts +25 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js +10 -6
- package/dist-server/service/tax-audit-result/tax-audit-result-history.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.d.ts +10 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js +2 -2
- package/dist-server/service/tax-audit-result/tax-audit-result-mutation.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-query.d.ts +12 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-query.js +3 -3
- package/dist-server/service/tax-audit-result/tax-audit-result-query.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result-type.d.ts +23 -0
- package/dist-server/service/tax-audit-result/tax-audit-result-type.js +6 -6
- package/dist-server/service/tax-audit-result/tax-audit-result-type.js.map +1 -1
- package/dist-server/service/tax-audit-result/tax-audit-result.d.ts +25 -0
- package/dist-server/service/tax-audit-result/tax-audit-result.js +4 -4
- package/dist-server/service/tax-audit-result/tax-audit-result.js.map +1 -1
- package/dist-server/service/tax-invoice/index.d.ts +5 -0
- package/dist-server/service/tax-invoice/tax-invoice-mutation.d.ts +10 -0
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js +2 -6
- package/dist-server/service/tax-invoice/tax-invoice-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-query.d.ts +14 -0
- package/dist-server/service/tax-invoice/tax-invoice-query.js +22 -10
- package/dist-server/service/tax-invoice/tax-invoice-query.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-type.d.ts +86 -0
- package/dist-server/service/tax-invoice/tax-invoice-type.js +12 -8
- package/dist-server/service/tax-invoice/tax-invoice-type.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice-util.d.ts +133 -0
- package/dist-server/service/tax-invoice/tax-invoice-util.js +2 -2
- package/dist-server/service/tax-invoice/tax-invoice-util.js.map +1 -1
- package/dist-server/service/tax-invoice/tax-invoice.d.ts +120 -0
- package/dist-server/service/tax-invoice/tax-invoice.js +15 -10
- package/dist-server/service/tax-invoice/tax-invoice.js.map +1 -1
- package/dist-server/service/tax-invoice-api/index.d.ts +5 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.d.ts +8 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js +46 -16
- package/dist-server/service/tax-invoice-api/tax-invoice-api-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.d.ts +10 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js +15 -9
- package/dist-server/service/tax-invoice-api/tax-invoice-api-query.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.d.ts +32 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js +9 -13
- package/dist-server/service/tax-invoice-api/tax-invoice-api-type.js.map +1 -1
- package/dist-server/service/tax-invoice-api/tax-invoice-api.d.ts +31 -0
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js +12 -24
- package/dist-server/service/tax-invoice-api/tax-invoice-api.js.map +1 -1
- package/dist-server/service/tax-invoice-company/index.d.ts +5 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.d.ts +7 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js +2 -2
- package/dist-server/service/tax-invoice-company/tax-invoice-company-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.d.ts +14 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js +44 -9
- package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.d.ts +38 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js +59 -9
- package/dist-server/service/tax-invoice-company/tax-invoice-company-type.js.map +1 -1
- package/dist-server/service/tax-invoice-company/tax-invoice-company.d.ts +29 -0
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js +14 -24
- package/dist-server/service/tax-invoice-company/tax-invoice-company.js.map +1 -1
- package/dist-server/service/tax-invoice-item/index.d.ts +5 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.d.ts +10 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js +2 -2
- package/dist-server/service/tax-invoice-item/tax-invoice-item-mutation.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.d.ts +11 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js +3 -3
- package/dist-server/service/tax-invoice-item/tax-invoice-item-query.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.d.ts +29 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js +6 -6
- package/dist-server/service/tax-invoice-item/tax-invoice-item-type.js.map +1 -1
- package/dist-server/service/tax-invoice-item/tax-invoice-item.d.ts +23 -0
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js +7 -7
- package/dist-server/service/tax-invoice-item/tax-invoice-item.js.map +1 -1
- package/dist-server/service/unipost-api/tax-invoice-inquiry.d.ts +16 -0
- package/dist-server/service/unipost-api/tax-invoice-inquiry.js +10 -14
- package/dist-server/service/unipost-api/tax-invoice-inquiry.js.map +1 -1
- package/dist-server/service/unipost-api/tax-invoice-send.d.ts +1 -0
- package/dist-server/service/unipost-api/tax-invoice-send.js +5 -7
- package/dist-server/service/unipost-api/tax-invoice-send.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/server/service/index.ts +1 -0
- package/server/service/tax-audit-result/tax-audit-result-history.ts +10 -6
- package/server/service/tax-audit-result/tax-audit-result-query.ts +4 -1
- package/server/service/tax-audit-result/tax-audit-result.ts +6 -2
- package/server/service/tax-invoice/tax-invoice-mutation.ts +0 -3
- package/server/service/tax-invoice/tax-invoice-query.ts +36 -9
- package/server/service/tax-invoice/tax-invoice-type.ts +3 -0
- package/server/service/tax-invoice/tax-invoice-util.ts +1 -0
- package/server/service/tax-invoice/tax-invoice.ts +19 -4
- package/server/service/tax-invoice-api/tax-invoice-api-mutation.ts +63 -24
- package/server/service/tax-invoice-api/tax-invoice-api-query.ts +15 -6
- package/server/service/tax-invoice-api/tax-invoice-api-type.ts +2 -5
- package/server/service/tax-invoice-api/tax-invoice-api.ts +23 -20
- package/server/service/tax-invoice-company/tax-invoice-company-query.ts +39 -6
- package/server/service/tax-invoice-company/tax-invoice-company-type.ts +40 -4
- package/server/service/tax-invoice-company/tax-invoice-company.ts +11 -21
- package/server/service/tax-invoice-item/tax-invoice-item-query.ts +4 -1
- package/server/service/tax-invoice-item/tax-invoice-item.ts +22 -8
- package/server/service/unipost-api/tax-invoice-inquiry.ts +6 -10
- package/server/service/unipost-api/tax-invoice-send.ts +5 -5
- package/translations/ko.json +3 -0
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.d.ts +0 -31
- package/dist-client/pages/tax-invoice-company/tax-invoice-company-importer.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { TaxInvoiceApi } from './tax-invoice-api';
|
|
4
|
+
import { TaxInvoiceApiList } from './tax-invoice-api-type';
|
|
5
|
+
export declare class TaxInvoiceApiQuery {
|
|
6
|
+
taxInvoiceApis(params: ListParam, context: ResolverContext): Promise<TaxInvoiceApiList>;
|
|
7
|
+
domain(taxInvoiceApi: TaxInvoiceApi): Promise<Domain>;
|
|
8
|
+
updater(taxInvoiceApi: TaxInvoiceApi): Promise<User>;
|
|
9
|
+
creator(taxInvoiceApi: TaxInvoiceApi): Promise<User>;
|
|
10
|
+
}
|
|
@@ -6,12 +6,17 @@ const type_graphql_1 = require("type-graphql");
|
|
|
6
6
|
const shell_1 = require("@things-factory/shell");
|
|
7
7
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
8
|
const tax_invoice_api_1 = require("./tax-invoice-api");
|
|
9
|
+
const tax_invoice_api_type_1 = require("./tax-invoice-api-type");
|
|
9
10
|
let TaxInvoiceApiQuery = class TaxInvoiceApiQuery {
|
|
10
|
-
async
|
|
11
|
+
async taxInvoiceApis(params, context) {
|
|
11
12
|
const { domain } = context.state;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
14
|
+
domain,
|
|
15
|
+
params,
|
|
16
|
+
repository: await (0, shell_1.getRepository)(tax_invoice_api_1.TaxInvoiceApi)
|
|
14
17
|
});
|
|
18
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
19
|
+
return { items, total };
|
|
15
20
|
}
|
|
16
21
|
async domain(taxInvoiceApi) {
|
|
17
22
|
return taxInvoiceApi.domainId && (await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: taxInvoiceApi.domainId }));
|
|
@@ -23,13 +28,15 @@ let TaxInvoiceApiQuery = class TaxInvoiceApiQuery {
|
|
|
23
28
|
return taxInvoiceApi.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: taxInvoiceApi.creatorId }));
|
|
24
29
|
}
|
|
25
30
|
};
|
|
31
|
+
exports.TaxInvoiceApiQuery = TaxInvoiceApiQuery;
|
|
26
32
|
tslib_1.__decorate([
|
|
27
|
-
(0, type_graphql_1.Query)(returns =>
|
|
28
|
-
tslib_1.__param(0, (0, type_graphql_1.
|
|
33
|
+
(0, type_graphql_1.Query)(returns => tax_invoice_api_type_1.TaxInvoiceApiList, { nullable: true, description: 'To fetch a Tax Invoice Api List' }),
|
|
34
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)(type => shell_1.ListParam)),
|
|
35
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
29
36
|
tslib_1.__metadata("design:type", Function),
|
|
30
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
37
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
31
38
|
tslib_1.__metadata("design:returntype", Promise)
|
|
32
|
-
], TaxInvoiceApiQuery.prototype, "
|
|
39
|
+
], TaxInvoiceApiQuery.prototype, "taxInvoiceApis", null);
|
|
33
40
|
tslib_1.__decorate([
|
|
34
41
|
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
35
42
|
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
@@ -51,8 +58,7 @@ tslib_1.__decorate([
|
|
|
51
58
|
tslib_1.__metadata("design:paramtypes", [tax_invoice_api_1.TaxInvoiceApi]),
|
|
52
59
|
tslib_1.__metadata("design:returntype", Promise)
|
|
53
60
|
], TaxInvoiceApiQuery.prototype, "creator", null);
|
|
54
|
-
TaxInvoiceApiQuery = tslib_1.__decorate([
|
|
61
|
+
exports.TaxInvoiceApiQuery = TaxInvoiceApiQuery = tslib_1.__decorate([
|
|
55
62
|
(0, type_graphql_1.Resolver)(tax_invoice_api_1.TaxInvoiceApi)
|
|
56
63
|
], TaxInvoiceApiQuery);
|
|
57
|
-
exports.TaxInvoiceApiQuery = TaxInvoiceApiQuery;
|
|
58
64
|
//# sourceMappingURL=tax-invoice-api-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-api-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-api/tax-invoice-api-query.ts"],"names":[],"mappings":";;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"tax-invoice-api-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-api/tax-invoice-api-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,uDAAiD;AACjD,iEAA0D;AAGnD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,cAAc,CACO,MAAiB,EACnC,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,+BAAa,CAAC;SAC/C,CAAC,CAAA;QACF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK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AEjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,+BAAa;;iDAEjD;6BA/BU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,+BAAa,CAAC;GACX,kBAAkB,CAgC9B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { Domain, ListParam, getQueryBuilderFromListParams, getRepository } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { TaxInvoiceApi } from './tax-invoice-api'\nimport { TaxInvoiceApiList } from './tax-invoice-api-type'\n\n@Resolver(TaxInvoiceApi)\nexport class TaxInvoiceApiQuery {\n @Query(returns => TaxInvoiceApiList!, { nullable: true, description: 'To fetch a Tax Invoice Api List' })\n async taxInvoiceApis(\n @Args(type => ListParam) params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<TaxInvoiceApiList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(TaxInvoiceApi)\n })\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() taxInvoiceApi: TaxInvoiceApi): Promise<Domain> {\n return taxInvoiceApi.domainId && (await getRepository(Domain).findOneBy({ id: taxInvoiceApi.domainId }))\n }\n\n @FieldResolver(type => User)\n async updater(@Root() taxInvoiceApi: TaxInvoiceApi): Promise<User> {\n return taxInvoiceApi.updaterId && (await getRepository(User).findOneBy({ id: taxInvoiceApi.updaterId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() taxInvoiceApi: TaxInvoiceApi): Promise<User> {\n return taxInvoiceApi.creatorId && (await getRepository(User).findOneBy({ id: taxInvoiceApi.creatorId }))\n }\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TaxInvoiceApi } from './tax-invoice-api';
|
|
2
|
+
import { NewTaxInvoice } from '../tax-invoice/tax-invoice-type';
|
|
3
|
+
import { NewTaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item-type';
|
|
4
|
+
export declare class TaxInvoiceApiPatch {
|
|
5
|
+
id?: string;
|
|
6
|
+
isDefault?: boolean;
|
|
7
|
+
provider?: string;
|
|
8
|
+
apiAccountId?: string;
|
|
9
|
+
apiAccountPassword?: string;
|
|
10
|
+
businessRegistrationNumber?: string;
|
|
11
|
+
branchIdentification?: string;
|
|
12
|
+
businessName?: string;
|
|
13
|
+
representativeName?: string;
|
|
14
|
+
address?: string;
|
|
15
|
+
businessType?: string;
|
|
16
|
+
industryType?: string;
|
|
17
|
+
department?: string;
|
|
18
|
+
contactName?: string;
|
|
19
|
+
contactPhone?: string;
|
|
20
|
+
contactEmail?: string;
|
|
21
|
+
contactCellPhone?: string;
|
|
22
|
+
attributes?: any;
|
|
23
|
+
cuFlag?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class TaxInvoiceApiList {
|
|
26
|
+
items: TaxInvoiceApi[];
|
|
27
|
+
total: number;
|
|
28
|
+
}
|
|
29
|
+
export declare class TaxInvoiceSend {
|
|
30
|
+
taxInvoice: NewTaxInvoice;
|
|
31
|
+
taxInvoiceItems: NewTaxInvoiceItem[];
|
|
32
|
+
}
|
|
@@ -9,22 +9,19 @@ const tax_invoice_type_1 = require("../tax-invoice/tax-invoice-type");
|
|
|
9
9
|
const tax_invoice_item_type_1 = require("../tax-invoice-item/tax-invoice-item-type");
|
|
10
10
|
let TaxInvoiceApiPatch = class TaxInvoiceApiPatch {
|
|
11
11
|
};
|
|
12
|
+
exports.TaxInvoiceApiPatch = TaxInvoiceApiPatch;
|
|
12
13
|
tslib_1.__decorate([
|
|
13
14
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
14
15
|
tslib_1.__metadata("design:type", String)
|
|
15
16
|
], TaxInvoiceApiPatch.prototype, "id", void 0);
|
|
16
17
|
tslib_1.__decorate([
|
|
17
18
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
18
|
-
tslib_1.__metadata("design:type",
|
|
19
|
-
], TaxInvoiceApiPatch.prototype, "
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
22
|
-
tslib_1.__metadata("design:type", String)
|
|
23
|
-
], TaxInvoiceApiPatch.prototype, "description", void 0);
|
|
19
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
20
|
+
], TaxInvoiceApiPatch.prototype, "isDefault", void 0);
|
|
24
21
|
tslib_1.__decorate([
|
|
25
22
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
26
23
|
tslib_1.__metadata("design:type", String)
|
|
27
|
-
], TaxInvoiceApiPatch.prototype, "
|
|
24
|
+
], TaxInvoiceApiPatch.prototype, "provider", void 0);
|
|
28
25
|
tslib_1.__decorate([
|
|
29
26
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
30
27
|
tslib_1.__metadata("design:type", String)
|
|
@@ -89,12 +86,12 @@ tslib_1.__decorate([
|
|
|
89
86
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
90
87
|
tslib_1.__metadata("design:type", String)
|
|
91
88
|
], TaxInvoiceApiPatch.prototype, "cuFlag", void 0);
|
|
92
|
-
TaxInvoiceApiPatch = tslib_1.__decorate([
|
|
89
|
+
exports.TaxInvoiceApiPatch = TaxInvoiceApiPatch = tslib_1.__decorate([
|
|
93
90
|
(0, type_graphql_1.InputType)()
|
|
94
91
|
], TaxInvoiceApiPatch);
|
|
95
|
-
exports.TaxInvoiceApiPatch = TaxInvoiceApiPatch;
|
|
96
92
|
let TaxInvoiceApiList = class TaxInvoiceApiList {
|
|
97
93
|
};
|
|
94
|
+
exports.TaxInvoiceApiList = TaxInvoiceApiList;
|
|
98
95
|
tslib_1.__decorate([
|
|
99
96
|
(0, type_graphql_1.Field)(type => [tax_invoice_api_1.TaxInvoiceApi]),
|
|
100
97
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -103,12 +100,12 @@ tslib_1.__decorate([
|
|
|
103
100
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
104
101
|
tslib_1.__metadata("design:type", Number)
|
|
105
102
|
], TaxInvoiceApiList.prototype, "total", void 0);
|
|
106
|
-
TaxInvoiceApiList = tslib_1.__decorate([
|
|
103
|
+
exports.TaxInvoiceApiList = TaxInvoiceApiList = tslib_1.__decorate([
|
|
107
104
|
(0, type_graphql_1.ObjectType)()
|
|
108
105
|
], TaxInvoiceApiList);
|
|
109
|
-
exports.TaxInvoiceApiList = TaxInvoiceApiList;
|
|
110
106
|
let TaxInvoiceSend = class TaxInvoiceSend {
|
|
111
107
|
};
|
|
108
|
+
exports.TaxInvoiceSend = TaxInvoiceSend;
|
|
112
109
|
tslib_1.__decorate([
|
|
113
110
|
(0, type_graphql_1.Field)(type => tax_invoice_type_1.NewTaxInvoice),
|
|
114
111
|
tslib_1.__metadata("design:type", tax_invoice_type_1.NewTaxInvoice)
|
|
@@ -117,8 +114,7 @@ tslib_1.__decorate([
|
|
|
117
114
|
(0, type_graphql_1.Field)(type => [tax_invoice_item_type_1.NewTaxInvoiceItem]),
|
|
118
115
|
tslib_1.__metadata("design:type", Array)
|
|
119
116
|
], TaxInvoiceSend.prototype, "taxInvoiceItems", void 0);
|
|
120
|
-
TaxInvoiceSend = tslib_1.__decorate([
|
|
117
|
+
exports.TaxInvoiceSend = TaxInvoiceSend = tslib_1.__decorate([
|
|
121
118
|
(0, type_graphql_1.InputType)()
|
|
122
119
|
], TaxInvoiceSend);
|
|
123
|
-
exports.TaxInvoiceSend = TaxInvoiceSend;
|
|
124
120
|
//# sourceMappingURL=tax-invoice-api-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-api-type.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-api/tax-invoice-api-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,uDAAiD;AACjD,iDAAoD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IAD1B,IAAA,wBAAS,GAAE;GACC,cAAc,CAM1B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { TaxInvoiceApi } from './tax-invoice-api'\nimport { ScalarObject } from '@things-factory/shell'\nimport { NewTaxInvoice } from '../tax-invoice/tax-invoice-type'\nimport { NewTaxInvoiceItem } from '../tax-invoice-item/tax-invoice-item-type'\n\n@InputType()\nexport class TaxInvoiceApiPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n isDefault?: boolean\n\n @Field({ nullable: true })\n provider?: string\n\n @Field({ nullable: true })\n apiAccountId?: string\n\n @Field({ nullable: true })\n apiAccountPassword?: string\n\n @Field({ nullable: true })\n businessRegistrationNumber?: string\n\n @Field({ nullable: true })\n branchIdentification?: string\n\n @Field({ nullable: true })\n businessName?: string\n\n @Field({ nullable: true })\n representativeName?: string\n\n @Field({ nullable: true })\n address?: string\n\n @Field({ nullable: true })\n businessType?: string\n\n @Field({ nullable: true })\n industryType?: string\n\n @Field({ nullable: true })\n department?: string\n\n @Field({ nullable: true })\n contactName?: string\n\n @Field({ nullable: true })\n contactPhone?: string\n\n @Field({ nullable: true })\n contactEmail?: string\n\n @Field({ nullable: true })\n contactCellPhone?: string\n\n @Field(type => ScalarObject, { nullable: true })\n attributes?: any\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class TaxInvoiceApiList {\n @Field(type => [TaxInvoiceApi])\n items: TaxInvoiceApi[]\n\n @Field(type => Int)\n total: number\n}\n\n@InputType()\nexport class TaxInvoiceSend {\n @Field(type => NewTaxInvoice)\n taxInvoice!: NewTaxInvoice\n\n @Field(type => [NewTaxInvoiceItem])\n taxInvoiceItems!: NewTaxInvoiceItem[]\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
export declare class TaxInvoiceApi {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
domain?: Domain;
|
|
6
|
+
domainId?: string;
|
|
7
|
+
isDefault?: boolean;
|
|
8
|
+
provider: string;
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
apiAccountId?: string;
|
|
11
|
+
apiAccountPassword?: string;
|
|
12
|
+
businessRegistrationNumber?: string;
|
|
13
|
+
branchIdentification?: string;
|
|
14
|
+
businessName?: string;
|
|
15
|
+
representativeName?: string;
|
|
16
|
+
address?: string;
|
|
17
|
+
businessType?: string;
|
|
18
|
+
industryType?: string;
|
|
19
|
+
department?: string;
|
|
20
|
+
contactName?: string;
|
|
21
|
+
contactPhone?: string;
|
|
22
|
+
contactEmail?: string;
|
|
23
|
+
contactCellPhone?: string;
|
|
24
|
+
attributes?: any;
|
|
25
|
+
createdAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
creator?: User;
|
|
28
|
+
creatorId?: string;
|
|
29
|
+
updater?: User;
|
|
30
|
+
updaterId?: string;
|
|
31
|
+
}
|
|
@@ -8,6 +8,7 @@ const shell_1 = require("@things-factory/shell");
|
|
|
8
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
9
|
let TaxInvoiceApi = class TaxInvoiceApi {
|
|
10
10
|
};
|
|
11
|
+
exports.TaxInvoiceApi = TaxInvoiceApi;
|
|
11
12
|
tslib_1.__decorate([
|
|
12
13
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
13
14
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -15,7 +16,7 @@ tslib_1.__decorate([
|
|
|
15
16
|
], TaxInvoiceApi.prototype, "id", void 0);
|
|
16
17
|
tslib_1.__decorate([
|
|
17
18
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
18
|
-
(0, type_graphql_1.Field)(
|
|
19
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
19
20
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
20
21
|
], TaxInvoiceApi.prototype, "domain", void 0);
|
|
21
22
|
tslib_1.__decorate([
|
|
@@ -23,20 +24,15 @@ tslib_1.__decorate([
|
|
|
23
24
|
tslib_1.__metadata("design:type", String)
|
|
24
25
|
], TaxInvoiceApi.prototype, "domainId", void 0);
|
|
25
26
|
tslib_1.__decorate([
|
|
26
|
-
(0,
|
|
27
|
-
(0,
|
|
28
|
-
tslib_1.__metadata("design:type",
|
|
29
|
-
], TaxInvoiceApi.prototype, "
|
|
27
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '디폴트 여부' }),
|
|
28
|
+
(0, type_graphql_1.Field)({ nullable: true, description: '디폴트 여부' }),
|
|
29
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
30
|
+
], TaxInvoiceApi.prototype, "isDefault", void 0);
|
|
30
31
|
tslib_1.__decorate([
|
|
31
|
-
(0,
|
|
32
|
-
(0,
|
|
33
|
-
tslib_1.__metadata("design:type", String)
|
|
34
|
-
], TaxInvoiceApi.prototype, "name", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
32
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '공급자' }),
|
|
33
|
+
(0, type_graphql_1.Field)({ nullable: false, description: '공급자' }),
|
|
38
34
|
tslib_1.__metadata("design:type", String)
|
|
39
|
-
], TaxInvoiceApi.prototype, "
|
|
35
|
+
], TaxInvoiceApi.prototype, "provider", void 0);
|
|
40
36
|
tslib_1.__decorate([
|
|
41
37
|
(0, typeorm_1.Column)({ nullable: true, comment: 'API Key', transformer: shell_1.encryptTransformer }),
|
|
42
38
|
(0, type_graphql_1.Field)({ nullable: true, description: 'API Key' }),
|
|
@@ -127,11 +123,6 @@ tslib_1.__decorate([
|
|
|
127
123
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
128
124
|
tslib_1.__metadata("design:type", Date)
|
|
129
125
|
], TaxInvoiceApi.prototype, "updatedAt", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
132
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
tslib_1.__metadata("design:type", Date)
|
|
134
|
-
], TaxInvoiceApi.prototype, "deletedAt", void 0);
|
|
135
126
|
tslib_1.__decorate([
|
|
136
127
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
137
128
|
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
@@ -150,12 +141,9 @@ tslib_1.__decorate([
|
|
|
150
141
|
(0, typeorm_1.RelationId)((taxInvoiceApi) => taxInvoiceApi.updater),
|
|
151
142
|
tslib_1.__metadata("design:type", String)
|
|
152
143
|
], TaxInvoiceApi.prototype, "updaterId", void 0);
|
|
153
|
-
TaxInvoiceApi = tslib_1.__decorate([
|
|
154
|
-
(0, typeorm_1.Entity)(
|
|
155
|
-
,
|
|
156
|
-
(0, typeorm_1.Index)('ix_tax_invoice_api_0', (taxInvoiceApi) => [taxInvoiceApi.domain, taxInvoiceApi.name, taxInvoiceApi.deletedAt]),
|
|
157
|
-
(0, typeorm_1.Index)('ix_tax_invoice_api_1', (taxInvoiceApi) => [taxInvoiceApi.domain, taxInvoiceApi.description, taxInvoiceApi.deletedAt]),
|
|
144
|
+
exports.TaxInvoiceApi = TaxInvoiceApi = tslib_1.__decorate([
|
|
145
|
+
(0, typeorm_1.Entity)(),
|
|
146
|
+
(0, typeorm_1.Index)('ix_tax_invoice_api_provider', (taxInvoiceApi) => [taxInvoiceApi.domain, taxInvoiceApi.provider], { unique: true }),
|
|
158
147
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for Tax Invoice Api' })
|
|
159
148
|
], TaxInvoiceApi);
|
|
160
|
-
exports.TaxInvoiceApi = TaxInvoiceApi;
|
|
161
149
|
//# sourceMappingURL=tax-invoice-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-api.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-api/tax-invoice-api.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"tax-invoice-api.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-api/tax-invoice-api.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAAoD;AAEpD,iDAAgF;AAChF,yDAAgD;AASzC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAyGzB,CAAA;AAzGY,sCAAa;AAGf;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACE;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;6CAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC;;+CAClD;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC7C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;;gDAC9B;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;;+CAC9B;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,0BAAkB,EAAE,CAAC;IAC/E,IAAA,oBAAK,EAAC,EAAE,QAAQ,E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S,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,CAAC;sCAC9B,gBAAI;8CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;wBAxGP,aAAa;IAPzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,6BAA6B,EAC7B,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAChF,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;GAC7C,aAAa,CAyGzB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain, ScalarObject, encryptTransformer } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\n@Entity()\n@Index(\n 'ix_tax_invoice_api_provider',\n (taxInvoiceApi: TaxInvoiceApi) => [taxInvoiceApi.domain, taxInvoiceApi.provider],\n { unique: true }\n)\n@ObjectType({ description: 'Entity for Tax Invoice Api' })\nexport class TaxInvoiceApi {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id!: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((taxInvoiceApi: TaxInvoiceApi) => taxInvoiceApi.domain)\n domainId?: string\n\n @Column({ nullable: true, comment: '디폴트 여부' })\n @Field({ nullable: true, description: '디폴트 여부' })\n isDefault?: boolean\n\n @Column({ nullable: false, comment: '공급자' })\n @Field({ nullable: false, description: '공급자' })\n provider!: string\n\n @Column({ nullable: true, comment: 'API Key', transformer: encryptTransformer })\n @Field({ nullable: true, description: 'API Key' })\n apiKey?: string\n\n @Column({ nullable: true, comment: 'API 계정 ID', transformer: encryptTransformer })\n @Field({ nullable: true, description: 'API 계정 ID' })\n apiAccountId?: string\n\n @Column({ nullable: true, comment: 'API 계정 비밀번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: 'API 계정 비밀번호' })\n apiAccountPassword?: string\n\n @Column({ nullable: true, comment: '사업자등록번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: '사업자등록번호' })\n businessRegistrationNumber?: string\n\n @Column({ nullable: true, comment: '종사업장 식별 코드' })\n @Field({ nullable: true, description: '종사업장 식별 코드' })\n branchIdentification?: string\n\n @Column({ nullable: true, comment: '사업자명' })\n @Field({ nullable: true, description: '사업자명' })\n businessName?: string\n\n @Column({ nullable: true, comment: '대표자명' })\n @Field({ nullable: true, description: '대표자명' })\n representativeName?: string\n\n @Column({ nullable: true, comment: '주소', transformer: encryptTransformer })\n @Field({ nullable: true, description: '주소' })\n address?: string\n\n @Column({ nullable: true, comment: '업태' })\n @Field({ nullable: true, description: '업태' })\n businessType?: string\n\n @Column({ nullable: true, comment: '업종' })\n @Field({ nullable: true, description: '업종' })\n industryType?: string\n\n @Column({ nullable: true, comment: '담당 부서' })\n @Field({ nullable: true, description: '담당 부서' })\n department?: string\n\n @Column({ nullable: true, comment: '담당자명', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자명' })\n contactName?: string\n\n @Column({ nullable: true, comment: '담당자 전화번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자 전화번호' })\n contactPhone?: string\n\n @Column({ nullable: true, comment: '담당자 이메일', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자 이메일' })\n contactEmail?: string\n\n @Column({ nullable: true, comment: '담당자 핸드폰 번호', transformer: encryptTransformer })\n @Field({ nullable: true, description: '담당자 핸드폰 번호' })\n contactCellPhone?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n attributes?: any\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((taxInvoiceApi: TaxInvoiceApi) => taxInvoiceApi.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((taxInvoiceApi: TaxInvoiceApi) => taxInvoiceApi.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TaxInvoiceCompany } from './tax-invoice-company';
|
|
2
|
+
import { TaxInvoiceCompanyQuery } from './tax-invoice-company-query';
|
|
3
|
+
import { TaxInvoiceCompanyMutation } from './tax-invoice-company-mutation';
|
|
4
|
+
export declare const entities: (typeof TaxInvoiceCompany)[];
|
|
5
|
+
export declare const resolvers: (typeof TaxInvoiceCompanyQuery | typeof TaxInvoiceCompanyMutation)[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TaxInvoiceCompany } from './tax-invoice-company';
|
|
2
|
+
import { TaxInvoiceCompanyPatch } from './tax-invoice-company-type';
|
|
3
|
+
export declare class TaxInvoiceCompanyMutation {
|
|
4
|
+
updateMultipleTaxInvoiceCompany(patches: TaxInvoiceCompanyPatch[], context: ResolverContext): Promise<TaxInvoiceCompany[]>;
|
|
5
|
+
deleteTaxInvoiceCompanies(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
6
|
+
importTaxInvoiceCompanies(taxInvoiceCompanies: TaxInvoiceCompanyPatch[], context: ResolverContext): Promise<boolean>;
|
|
7
|
+
}
|
|
@@ -46,6 +46,7 @@ let TaxInvoiceCompanyMutation = class TaxInvoiceCompanyMutation {
|
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
+
exports.TaxInvoiceCompanyMutation = TaxInvoiceCompanyMutation;
|
|
49
50
|
tslib_1.__decorate([
|
|
50
51
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
51
52
|
(0, type_graphql_1.Mutation)(returns => [tax_invoice_company_1.TaxInvoiceCompany], { description: "To modify multiple TaxInvoiceCompanies' information" }),
|
|
@@ -73,8 +74,7 @@ tslib_1.__decorate([
|
|
|
73
74
|
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
74
75
|
tslib_1.__metadata("design:returntype", Promise)
|
|
75
76
|
], TaxInvoiceCompanyMutation.prototype, "importTaxInvoiceCompanies", null);
|
|
76
|
-
TaxInvoiceCompanyMutation = tslib_1.__decorate([
|
|
77
|
+
exports.TaxInvoiceCompanyMutation = TaxInvoiceCompanyMutation = tslib_1.__decorate([
|
|
77
78
|
(0, type_graphql_1.Resolver)(tax_invoice_company_1.TaxInvoiceCompany)
|
|
78
79
|
], TaxInvoiceCompanyMutation);
|
|
79
|
-
exports.TaxInvoiceCompanyMutation = TaxInvoiceCompanyMutation;
|
|
80
80
|
//# sourceMappingURL=tax-invoice-company-mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-company-mutation.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,+DAAyD;AACzD,yEAAmE;AAG5D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAG9B,AAAN,KAAK,CAAC,+BAA+B,CACe,OAAiC,EAC5E,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,qBAAqB,GAAG,EAAE,CAAC,aAAa,CAAC,uCAAiB,CAAC,CAAA;QAEjE,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"tax-invoice-company-mutation.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,+DAAyD;AACzD,yEAAmE;AAG5D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAG9B,AAAN,KAAK,CAAC,+BAA+B,CACe,OAAiC,EAC5E,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,qBAAqB,GAAG,EAAE,CAAC,aAAa,CAAC,uCAAiB,CAAC,CAAA;QAEjE,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC/C,MAA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,CAAC,EAAE,CAAC,CAAC,iDAAsB,CAAC,CAAC,CAAA;IAC5D,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;0EAWP;oCA3EU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,uCAAiB,CAAC;GACf,yBAAyB,CA4ErC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\n\nimport { TaxInvoiceCompany } from './tax-invoice-company'\nimport { TaxInvoiceCompanyPatch } from './tax-invoice-company-type'\n\n@Resolver(TaxInvoiceCompany)\nexport class TaxInvoiceCompanyMutation {\n @Directive('@transaction')\n @Mutation(returns => [TaxInvoiceCompany], { description: \"To modify multiple TaxInvoiceCompanies' information\" })\n async updateMultipleTaxInvoiceCompany(\n @Arg('patches', type => [TaxInvoiceCompanyPatch]) patches: TaxInvoiceCompanyPatch[],\n @Ctx() context: ResolverContext\n ): Promise<TaxInvoiceCompany[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const taxInvoiceCompanyRepo = tx.getRepository(TaxInvoiceCompany)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await taxInvoiceCompanyRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const updateRecord = _updateRecords[i]\n const taxInvoiceCompany = await taxInvoiceCompanyRepo.findOneBy({ id: updateRecord.id })\n\n const result = await taxInvoiceCompanyRepo.save({\n ...taxInvoiceCompany,\n ...updateRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple TaxInvoiceCompanies' })\n async deleteTaxInvoiceCompanies(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(TaxInvoiceCompany).delete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To import multiple TaxInvoiceCompanies' })\n async importTaxInvoiceCompanies(\n @Arg('taxInvoiceCompanies', type => [TaxInvoiceCompanyPatch]) taxInvoiceCompanies: TaxInvoiceCompanyPatch[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await Promise.all(\n taxInvoiceCompanies.map(async (taxInvoiceCompany: TaxInvoiceCompanyPatch) => {\n const createdTaxInvoiceCompany: TaxInvoiceCompany = await tx.getRepository(TaxInvoiceCompany).save({ domain, ...taxInvoiceCompany })\n })\n )\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { TaxInvoiceCompany } from './tax-invoice-company';
|
|
4
|
+
import { TaxInvoiceCompanyList, TaxInvoiceMyCompany } from './tax-invoice-company-type';
|
|
5
|
+
export declare class TaxInvoiceCompanyQuery {
|
|
6
|
+
taxInvoiceCompany(id: string, context: ResolverContext): Promise<TaxInvoiceCompany>;
|
|
7
|
+
taxInvoiceCompanies(params: ListParam, context: ResolverContext): Promise<TaxInvoiceCompanyList>;
|
|
8
|
+
taxInvoiceDefaultCompany(context: ResolverContext): Promise<TaxInvoiceMyCompany>;
|
|
9
|
+
taxInvoiceMyCompanies(context: ResolverContext): Promise<TaxInvoiceMyCompany>;
|
|
10
|
+
taxInvoiceBuyerList(context: ResolverContext): Promise<TaxInvoiceCompany[]>;
|
|
11
|
+
domain(taxInvoiceCompany: TaxInvoiceCompany): Promise<Domain>;
|
|
12
|
+
updater(taxInvoiceCompany: TaxInvoiceCompany): Promise<User>;
|
|
13
|
+
creator(taxInvoiceCompany: TaxInvoiceCompany): Promise<User>;
|
|
14
|
+
}
|
|
@@ -7,6 +7,7 @@ const shell_1 = require("@things-factory/shell");
|
|
|
7
7
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
8
|
const tax_invoice_company_1 = require("./tax-invoice-company");
|
|
9
9
|
const tax_invoice_company_type_1 = require("./tax-invoice-company-type");
|
|
10
|
+
const tax_invoice_api_1 = require("../tax-invoice-api/tax-invoice-api");
|
|
10
11
|
let TaxInvoiceCompanyQuery = class TaxInvoiceCompanyQuery {
|
|
11
12
|
async taxInvoiceCompany(id, context) {
|
|
12
13
|
const { domain } = context.state;
|
|
@@ -25,8 +26,28 @@ let TaxInvoiceCompanyQuery = class TaxInvoiceCompanyQuery {
|
|
|
25
26
|
const [items, total] = await queryBuilder.getManyAndCount();
|
|
26
27
|
return { items, total };
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
// 프로젝트 마다 구현 (기본 공급자 정보를 리턴하는 리졸버)
|
|
30
|
+
async taxInvoiceDefaultCompany(context) {
|
|
31
|
+
const { domain } = context.state;
|
|
32
|
+
const taxInvoiceApi = await (0, shell_1.getRepository)(tax_invoice_api_1.TaxInvoiceApi).findOne({
|
|
33
|
+
where: { domain: { id: domain.id }, isDefault: true }
|
|
34
|
+
});
|
|
35
|
+
const taxInvoiceCompany = Object.assign({}, taxInvoiceApi);
|
|
36
|
+
return taxInvoiceCompany;
|
|
37
|
+
}
|
|
38
|
+
async taxInvoiceMyCompanies(context) {
|
|
39
|
+
const { domain } = context.state;
|
|
40
|
+
const taxInvoiceApi = await (0, shell_1.getRepository)(tax_invoice_api_1.TaxInvoiceApi).find({
|
|
41
|
+
where: { domain: { id: domain.id } }
|
|
42
|
+
});
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
async taxInvoiceBuyerList(context) {
|
|
46
|
+
const { domain } = context.state;
|
|
47
|
+
const taxInvoiceCompanyList = await (0, shell_1.getRepository)(tax_invoice_company_1.TaxInvoiceCompany).find({
|
|
48
|
+
where: { domain: { id: domain.id } }
|
|
49
|
+
});
|
|
50
|
+
return taxInvoiceCompanyList;
|
|
30
51
|
}
|
|
31
52
|
async domain(taxInvoiceCompany) {
|
|
32
53
|
return taxInvoiceCompany.domainId && (await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: taxInvoiceCompany.domainId }));
|
|
@@ -38,6 +59,7 @@ let TaxInvoiceCompanyQuery = class TaxInvoiceCompanyQuery {
|
|
|
38
59
|
return taxInvoiceCompany.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: taxInvoiceCompany.creatorId }));
|
|
39
60
|
}
|
|
40
61
|
};
|
|
62
|
+
exports.TaxInvoiceCompanyQuery = TaxInvoiceCompanyQuery;
|
|
41
63
|
tslib_1.__decorate([
|
|
42
64
|
(0, type_graphql_1.Query)(returns => tax_invoice_company_1.TaxInvoiceCompany, { nullable: true, description: 'To fetch a Tax Invoice Company' }),
|
|
43
65
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
@@ -48,19 +70,33 @@ tslib_1.__decorate([
|
|
|
48
70
|
], TaxInvoiceCompanyQuery.prototype, "taxInvoiceCompany", null);
|
|
49
71
|
tslib_1.__decorate([
|
|
50
72
|
(0, type_graphql_1.Query)(returns => tax_invoice_company_type_1.TaxInvoiceCompanyList, { description: 'To fetch multiple Tax Invoice Companies' }),
|
|
51
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
73
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)(type => shell_1.ListParam)),
|
|
52
74
|
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
53
75
|
tslib_1.__metadata("design:type", Function),
|
|
54
76
|
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
55
77
|
tslib_1.__metadata("design:returntype", Promise)
|
|
56
78
|
], TaxInvoiceCompanyQuery.prototype, "taxInvoiceCompanies", null);
|
|
57
79
|
tslib_1.__decorate([
|
|
58
|
-
(0, type_graphql_1.
|
|
59
|
-
tslib_1.__param(0, (0, type_graphql_1.
|
|
80
|
+
(0, type_graphql_1.Query)(returns => tax_invoice_company_type_1.TaxInvoiceMyCompany, { nullable: true, description: 'To fetch a Tax Invoice My Company' }),
|
|
81
|
+
tslib_1.__param(0, (0, type_graphql_1.Ctx)()),
|
|
60
82
|
tslib_1.__metadata("design:type", Function),
|
|
61
|
-
tslib_1.__metadata("design:paramtypes", [
|
|
83
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
84
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
85
|
+
], TaxInvoiceCompanyQuery.prototype, "taxInvoiceDefaultCompany", null);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, type_graphql_1.Query)(returns => tax_invoice_company_type_1.TaxInvoiceMyCompany, { nullable: true, description: 'To fetch a Tax Invoice My Companies' }),
|
|
88
|
+
tslib_1.__param(0, (0, type_graphql_1.Ctx)()),
|
|
89
|
+
tslib_1.__metadata("design:type", Function),
|
|
90
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
62
91
|
tslib_1.__metadata("design:returntype", Promise)
|
|
63
|
-
], TaxInvoiceCompanyQuery.prototype, "
|
|
92
|
+
], TaxInvoiceCompanyQuery.prototype, "taxInvoiceMyCompanies", null);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, type_graphql_1.Query)(returns => [tax_invoice_company_1.TaxInvoiceCompany], { nullable: true, description: 'To fetch a Tax Invoice Buyer List' }),
|
|
95
|
+
tslib_1.__param(0, (0, type_graphql_1.Ctx)()),
|
|
96
|
+
tslib_1.__metadata("design:type", Function),
|
|
97
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
98
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
99
|
+
], TaxInvoiceCompanyQuery.prototype, "taxInvoiceBuyerList", null);
|
|
64
100
|
tslib_1.__decorate([
|
|
65
101
|
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
66
102
|
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
@@ -82,8 +118,7 @@ tslib_1.__decorate([
|
|
|
82
118
|
tslib_1.__metadata("design:paramtypes", [tax_invoice_company_1.TaxInvoiceCompany]),
|
|
83
119
|
tslib_1.__metadata("design:returntype", Promise)
|
|
84
120
|
], TaxInvoiceCompanyQuery.prototype, "creator", null);
|
|
85
|
-
TaxInvoiceCompanyQuery = tslib_1.__decorate([
|
|
121
|
+
exports.TaxInvoiceCompanyQuery = TaxInvoiceCompanyQuery = tslib_1.__decorate([
|
|
86
122
|
(0, type_graphql_1.Resolver)(tax_invoice_company_1.TaxInvoiceCompany)
|
|
87
123
|
], TaxInvoiceCompanyQuery);
|
|
88
|
-
exports.TaxInvoiceCompanyQuery = TaxInvoiceCompanyQuery;
|
|
89
124
|
//# sourceMappingURL=tax-invoice-company-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-invoice-company-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAAuG;AACvG,yDAAgD;AAChD,+
|
|
1
|
+
{"version":3,"file":"tax-invoice-company-query.js","sourceRoot":"","sources":["../../../server/service/tax-invoice-company/tax-invoice-company-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAAuG;AACvG,yDAAgD;AAChD,+DAAyD;AACzD,yEAAuF;AACvF,wEAAkE;AAG3D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAE3B,AAAN,KAAK,CAAC,iBAAiB,CAAY,EAAU,EAAS,OAAwB;QAC5E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,uCAAiB,CAAC,CAAC,OAAO,CAAC;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CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAoB,uCAAiB;;qDAEzD;iCA5EU,sBAAsB;IADlC,IAAA,uBAAQ,EAAC,uCAAiB,CAAC;GACf,sBAAsB,CA6ElC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { TaxInvoiceCompany } from './tax-invoice-company'\nimport { TaxInvoiceCompanyList, TaxInvoiceMyCompany } from './tax-invoice-company-type'\nimport { TaxInvoiceApi } from '../tax-invoice-api/tax-invoice-api'\n\n@Resolver(TaxInvoiceCompany)\nexport class TaxInvoiceCompanyQuery {\n @Query(returns => TaxInvoiceCompany!, { nullable: true, description: 'To fetch a Tax Invoice Company' })\n async taxInvoiceCompany(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<TaxInvoiceCompany> {\n const { domain } = context.state\n\n return await getRepository(TaxInvoiceCompany).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => TaxInvoiceCompanyList, { description: 'To fetch multiple Tax Invoice Companies' })\n async taxInvoiceCompanies(\n @Args(type => ListParam) params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<TaxInvoiceCompanyList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(TaxInvoiceCompany),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n // 프로젝트 마다 구현 (기본 공급자 정보를 리턴하는 리졸버)\n @Query(returns => TaxInvoiceMyCompany, { nullable: true, description: 'To fetch a Tax Invoice My Company' })\n async taxInvoiceDefaultCompany(@Ctx() context: ResolverContext): Promise<TaxInvoiceMyCompany> {\n const { domain } = context.state\n const taxInvoiceApi = await getRepository(TaxInvoiceApi).findOne({\n where: { domain: { id: domain.id }, isDefault: true }\n })\n\n const taxInvoiceCompany: TaxInvoiceMyCompany = { ...taxInvoiceApi }\n\n return taxInvoiceCompany\n }\n\n @Query(returns => TaxInvoiceMyCompany, { nullable: true, description: 'To fetch a Tax Invoice My Companies' })\n async taxInvoiceMyCompanies(@Ctx() context: ResolverContext): Promise<TaxInvoiceMyCompany> {\n const { domain } = context.state\n const taxInvoiceApi = await getRepository(TaxInvoiceApi).find({\n where: { domain: { id: domain.id } }\n })\n\n return null\n }\n\n @Query(returns => [TaxInvoiceCompany], { nullable: true, description: 'To fetch a Tax Invoice Buyer List' })\n async taxInvoiceBuyerList(@Ctx() context: ResolverContext): Promise<TaxInvoiceCompany[]> {\n const { domain } = context.state\n\n const taxInvoiceCompanyList = await getRepository(TaxInvoiceCompany).find({\n where: { domain: { id: domain.id } }\n })\n\n return taxInvoiceCompanyList\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() taxInvoiceCompany: TaxInvoiceCompany): Promise<Domain> {\n return taxInvoiceCompany.domainId && (await getRepository(Domain).findOneBy({ id: taxInvoiceCompany.domainId }))\n }\n\n @FieldResolver(type => User)\n async updater(@Root() taxInvoiceCompany: TaxInvoiceCompany): Promise<User> {\n return taxInvoiceCompany.updaterId && (await getRepository(User).findOneBy({ id: taxInvoiceCompany.updaterId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() taxInvoiceCompany: TaxInvoiceCompany): Promise<User> {\n return taxInvoiceCompany.creatorId && (await getRepository(User).findOneBy({ id: taxInvoiceCompany.creatorId }))\n }\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TaxInvoiceCompany } from './tax-invoice-company';
|
|
2
|
+
export declare class TaxInvoiceCompanyPatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
businessRegistrationNumber?: string;
|
|
7
|
+
branchIdentification?: string;
|
|
8
|
+
businessName?: string;
|
|
9
|
+
representativeName?: string;
|
|
10
|
+
address?: string;
|
|
11
|
+
businessType?: string;
|
|
12
|
+
industryType?: string;
|
|
13
|
+
department?: string;
|
|
14
|
+
contactName?: string;
|
|
15
|
+
contactPhone?: string;
|
|
16
|
+
contactEmail?: string;
|
|
17
|
+
contactCellPhone?: string;
|
|
18
|
+
attributes?: any;
|
|
19
|
+
cuFlag?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class TaxInvoiceMyCompany {
|
|
22
|
+
businessRegistrationNumber?: string;
|
|
23
|
+
branchIdentification?: string;
|
|
24
|
+
businessName?: string;
|
|
25
|
+
representativeName?: string;
|
|
26
|
+
address?: string;
|
|
27
|
+
businessType?: string;
|
|
28
|
+
industryType?: string;
|
|
29
|
+
department?: string;
|
|
30
|
+
contactName?: string;
|
|
31
|
+
contactPhone?: string;
|
|
32
|
+
contactEmail?: string;
|
|
33
|
+
contactCellPhone?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class TaxInvoiceCompanyList {
|
|
36
|
+
items: TaxInvoiceCompany[];
|
|
37
|
+
total: number;
|
|
38
|
+
}
|