@chenchaolong/plugin-trade-compliance-workbench 0.1.74 → 1.0.1
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/README.md +41 -22
- package/dist/assets/templates/CI.xlsx +0 -0
- package/dist/assets/templates/CUSTOMS_DECLARATION.xlsx +0 -0
- package/dist/assets/templates/PI.xlsx +0 -0
- package/dist/assets/templates/PL.xlsx +0 -0
- package/dist/index.d.ts +115 -228
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -108
- package/dist/index.js.map +1 -1
- package/dist/lib/{document-text-extractor.d.ts → adapters/document-text-extractor.d.ts} +2 -2
- package/dist/lib/adapters/document-text-extractor.d.ts.map +1 -0
- package/dist/lib/{document-text-extractor.js → adapters/document-text-extractor.js} +8 -2
- package/dist/lib/adapters/document-text-extractor.js.map +1 -0
- package/dist/lib/adapters/file-storage.d.ts +9 -0
- package/dist/lib/adapters/file-storage.d.ts.map +1 -0
- package/dist/lib/adapters/file-storage.js +37 -0
- package/dist/lib/adapters/file-storage.js.map +1 -0
- package/dist/lib/{trade-compliance.enrichment.d.ts → adapters/hsbianma.provider.d.ts} +6 -6
- package/dist/lib/adapters/hsbianma.provider.d.ts.map +1 -0
- package/dist/lib/{trade-compliance.enrichment.js → adapters/hsbianma.provider.js} +1 -1
- package/dist/lib/adapters/hsbianma.provider.js.map +1 -0
- package/dist/lib/adapters/translation.provider.d.ts +4 -0
- package/dist/lib/adapters/translation.provider.d.ts.map +1 -0
- package/dist/lib/adapters/translation.provider.js +35 -0
- package/dist/lib/adapters/translation.provider.js.map +1 -0
- package/dist/lib/constants.d.ts +17 -11
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +17 -21
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/domain/contract-number.d.ts +14 -0
- package/dist/lib/domain/contract-number.d.ts.map +1 -0
- package/dist/lib/domain/contract-number.js +36 -0
- package/dist/lib/domain/contract-number.js.map +1 -0
- package/dist/lib/domain/default-settings.d.ts +28 -0
- package/dist/lib/domain/default-settings.d.ts.map +1 -0
- package/dist/lib/domain/default-settings.js +16 -0
- package/dist/lib/domain/default-settings.js.map +1 -0
- package/dist/lib/domain/finance.d.ts +37 -0
- package/dist/lib/domain/finance.d.ts.map +1 -0
- package/dist/lib/domain/finance.js +60 -0
- package/dist/lib/domain/finance.js.map +1 -0
- package/dist/lib/domain/import-issues.d.ts +10 -0
- package/dist/lib/domain/import-issues.d.ts.map +1 -0
- package/dist/lib/domain/import-issues.js +23 -0
- package/dist/lib/domain/import-issues.js.map +1 -0
- package/dist/lib/domain/normalization.d.ts +8 -0
- package/dist/lib/domain/normalization.d.ts.map +1 -0
- package/dist/lib/domain/normalization.js +50 -0
- package/dist/lib/domain/normalization.js.map +1 -0
- package/dist/lib/domain/workflow.d.ts +4 -0
- package/dist/lib/domain/workflow.d.ts.map +1 -0
- package/dist/lib/domain/workflow.js +14 -0
- package/dist/lib/domain/workflow.js.map +1 -0
- package/dist/lib/entities/base.d.ts +20 -0
- package/dist/lib/entities/base.d.ts.map +1 -0
- package/dist/lib/entities/base.js +51 -0
- package/dist/lib/entities/base.js.map +1 -0
- package/dist/lib/entities/catalog.entity.d.ts +80 -0
- package/dist/lib/entities/catalog.entity.d.ts.map +1 -0
- package/dist/lib/entities/catalog.entity.js +308 -0
- package/dist/lib/entities/catalog.entity.js.map +1 -0
- package/dist/lib/entities/customer.entity.d.ts +72 -0
- package/dist/lib/entities/customer.entity.d.ts.map +1 -0
- package/dist/lib/entities/customer.entity.js +276 -0
- package/dist/lib/entities/customer.entity.js.map +1 -0
- package/dist/lib/entities/index.d.ts +12 -6
- package/dist/lib/entities/index.d.ts.map +1 -1
- package/dist/lib/entities/index.js +20 -7
- package/dist/lib/entities/index.js.map +1 -1
- package/dist/lib/entities/procurement.entity.d.ts +99 -0
- package/dist/lib/entities/procurement.entity.d.ts.map +1 -0
- package/dist/lib/entities/procurement.entity.js +386 -0
- package/dist/lib/entities/procurement.entity.js.map +1 -0
- package/dist/lib/entities/settings.entity.d.ts +64 -0
- package/dist/lib/entities/settings.entity.d.ts.map +1 -0
- package/dist/lib/entities/settings.entity.js +243 -0
- package/dist/lib/entities/settings.entity.js.map +1 -0
- package/dist/lib/entities/shared.entity.d.ts +40 -0
- package/dist/lib/entities/shared.entity.d.ts.map +1 -0
- package/dist/lib/entities/shared.entity.js +149 -0
- package/dist/lib/entities/shared.entity.js.map +1 -0
- package/dist/lib/remote-components/trade-compliance-workbench/app.js +245 -2664
- package/dist/lib/remote-components/trade-compliance-workbench/editor-source.mjs +53 -0
- package/dist/lib/remote-components/trade-compliance-workbench/editor.css +1 -0
- package/dist/lib/remote-components/trade-compliance-workbench/editor.js +533 -0
- package/dist/lib/sales-file.service.d.ts +29 -0
- package/dist/lib/sales-file.service.d.ts.map +1 -0
- package/dist/lib/sales-file.service.js +300 -0
- package/dist/lib/sales-file.service.js.map +1 -0
- package/dist/lib/trade-compliance.config.d.ts +94 -187
- package/dist/lib/trade-compliance.config.d.ts.map +1 -1
- package/dist/lib/trade-compliance.config.js +12 -96
- package/dist/lib/trade-compliance.config.js.map +1 -1
- package/dist/lib/types.d.ts +104 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +47 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/workbench-view.provider.d.ts +276 -0
- package/dist/lib/workbench-view.provider.d.ts.map +1 -0
- package/dist/lib/workbench-view.provider.js +222 -0
- package/dist/lib/workbench-view.provider.js.map +1 -0
- package/dist/lib/workbench.middleware.d.ts +351 -0
- package/dist/lib/workbench.middleware.d.ts.map +1 -0
- package/dist/lib/workbench.middleware.js +48 -0
- package/dist/lib/workbench.middleware.js.map +1 -0
- package/dist/lib/workbench.plugin.d.ts +5 -0
- package/dist/lib/workbench.plugin.d.ts.map +1 -0
- package/dist/lib/workbench.plugin.js +24 -0
- package/dist/lib/workbench.plugin.js.map +1 -0
- package/dist/lib/workbench.service.d.ts +257 -0
- package/dist/lib/workbench.service.d.ts.map +1 -0
- package/dist/lib/workbench.service.js +755 -0
- package/dist/lib/workbench.service.js.map +1 -0
- package/package.json +19 -25
- package/dist/assets/customs-workbook-template.xls +0 -0
- package/dist/lib/controlled-goods-extracted-text-store.d.ts +0 -29
- package/dist/lib/controlled-goods-extracted-text-store.d.ts.map +0 -1
- package/dist/lib/controlled-goods-extracted-text-store.js +0 -42
- package/dist/lib/controlled-goods-extracted-text-store.js.map +0 -1
- package/dist/lib/controlled-goods-file-parser.d.ts +0 -9
- package/dist/lib/controlled-goods-file-parser.d.ts.map +0 -1
- package/dist/lib/controlled-goods-file-parser.js +0 -298
- package/dist/lib/controlled-goods-file-parser.js.map +0 -1
- package/dist/lib/document-text-extractor.d.ts.map +0 -1
- package/dist/lib/document-text-extractor.js.map +0 -1
- package/dist/lib/entities/controlled-goods-record.entity.d.ts +0 -5
- package/dist/lib/entities/controlled-goods-record.entity.d.ts.map +0 -1
- package/dist/lib/entities/controlled-goods-record.entity.js +0 -68
- package/dist/lib/entities/controlled-goods-record.entity.js.map +0 -1
- package/dist/lib/entities/customs-workbook-generation.entity.d.ts +0 -5
- package/dist/lib/entities/customs-workbook-generation.entity.d.ts.map +0 -1
- package/dist/lib/entities/customs-workbook-generation.entity.js +0 -72
- package/dist/lib/entities/customs-workbook-generation.entity.js.map +0 -1
- package/dist/lib/entities/trade-compliance-import-batch.entity.d.ts +0 -5
- package/dist/lib/entities/trade-compliance-import-batch.entity.d.ts.map +0 -1
- package/dist/lib/entities/trade-compliance-import-batch.entity.js +0 -60
- package/dist/lib/entities/trade-compliance-import-batch.entity.js.map +0 -1
- package/dist/lib/entities/trade-compliance-review-item.entity.d.ts +0 -5
- package/dist/lib/entities/trade-compliance-review-item.entity.d.ts.map +0 -1
- package/dist/lib/entities/trade-compliance-review-item.entity.js +0 -84
- package/dist/lib/entities/trade-compliance-review-item.entity.js.map +0 -1
- package/dist/lib/entities/trade-product.entity.d.ts +0 -5
- package/dist/lib/entities/trade-product.entity.d.ts.map +0 -1
- package/dist/lib/entities/trade-product.entity.js +0 -105
- package/dist/lib/entities/trade-product.entity.js.map +0 -1
- package/dist/lib/entities/trade-supplier.entity.d.ts +0 -5
- package/dist/lib/entities/trade-supplier.entity.d.ts.map +0 -1
- package/dist/lib/entities/trade-supplier.entity.js +0 -55
- package/dist/lib/entities/trade-supplier.entity.js.map +0 -1
- package/dist/lib/trade-compliance-workbench-view.provider.d.ts +0 -129
- package/dist/lib/trade-compliance-workbench-view.provider.d.ts.map +0 -1
- package/dist/lib/trade-compliance-workbench-view.provider.js +0 -863
- package/dist/lib/trade-compliance-workbench-view.provider.js.map +0 -1
- package/dist/lib/trade-compliance-workbench.middleware.d.ts +0 -485
- package/dist/lib/trade-compliance-workbench.middleware.d.ts.map +0 -1
- package/dist/lib/trade-compliance-workbench.middleware.js +0 -494
- package/dist/lib/trade-compliance-workbench.middleware.js.map +0 -1
- package/dist/lib/trade-compliance-workbench.plugin.d.ts +0 -11
- package/dist/lib/trade-compliance-workbench.plugin.d.ts.map +0 -1
- package/dist/lib/trade-compliance-workbench.plugin.js +0 -39
- package/dist/lib/trade-compliance-workbench.plugin.js.map +0 -1
- package/dist/lib/trade-compliance-workbench.service.d.ts +0 -33
- package/dist/lib/trade-compliance-workbench.service.d.ts.map +0 -1
- package/dist/lib/trade-compliance-workbench.service.js +0 -369
- package/dist/lib/trade-compliance-workbench.service.js.map +0 -1
- package/dist/lib/trade-compliance-workbench.templates.d.ts +0 -31
- package/dist/lib/trade-compliance-workbench.templates.d.ts.map +0 -1
- package/dist/lib/trade-compliance-workbench.templates.js +0 -60
- package/dist/lib/trade-compliance-workbench.templates.js.map +0 -1
- package/dist/lib/trade-compliance-workbook.d.ts +0 -28
- package/dist/lib/trade-compliance-workbook.d.ts.map +0 -1
- package/dist/lib/trade-compliance-workbook.js +0 -546
- package/dist/lib/trade-compliance-workbook.js.map +0 -1
- package/dist/lib/trade-compliance.enrichment.d.ts.map +0 -1
- package/dist/lib/trade-compliance.enrichment.js.map +0 -1
- package/dist/lib/trade-compliance.matching.d.ts +0 -10
- package/dist/lib/trade-compliance.matching.d.ts.map +0 -1
- package/dist/lib/trade-compliance.matching.js +0 -63
- package/dist/lib/trade-compliance.matching.js.map +0 -1
- package/dist/xpert-trade-compliance-workbench-assistant.yaml +0 -27
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
3
|
+
import { CreatedEntity, SoftDeleteEntity } from './base.js';
|
|
4
|
+
let ControlledCatalogBatch = class ControlledCatalogBatch extends SoftDeleteEntity {
|
|
5
|
+
};
|
|
6
|
+
__decorate([
|
|
7
|
+
Column({ type: 'varchar', length: 32 }),
|
|
8
|
+
__metadata("design:type", String)
|
|
9
|
+
], ControlledCatalogBatch.prototype, "catalogType", void 0);
|
|
10
|
+
__decorate([
|
|
11
|
+
Column({ type: 'varchar' }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], ControlledCatalogBatch.prototype, "sourceFileId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Column({ type: 'varchar' }),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], ControlledCatalogBatch.prototype, "sourceFileName", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ type: 'varchar', length: 24 }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ControlledCatalogBatch.prototype, "importMode", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ type: 'uuid', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], ControlledCatalogBatch.prototype, "replacedBatchId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'integer', default: 0 }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ControlledCatalogBatch.prototype, "totalCount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ type: 'integer', default: 0 }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], ControlledCatalogBatch.prototype, "successCount", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ type: 'integer', default: 0 }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ControlledCatalogBatch.prototype, "duplicateCount", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ type: 'integer', default: 0 }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], ControlledCatalogBatch.prototype, "invalidCount", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ type: 'uuid' }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ControlledCatalogBatch.prototype, "importTaskId", void 0);
|
|
46
|
+
ControlledCatalogBatch = __decorate([
|
|
47
|
+
Entity('plugin_trade_compliance_controlled_catalog_batch'),
|
|
48
|
+
Index(['tenantId', 'organizationId', 'catalogType', 'sourceFileName'])
|
|
49
|
+
], ControlledCatalogBatch);
|
|
50
|
+
export { ControlledCatalogBatch };
|
|
51
|
+
let ControlledGoodsRecord = class ControlledGoodsRecord extends SoftDeleteEntity {
|
|
52
|
+
};
|
|
53
|
+
__decorate([
|
|
54
|
+
Column({ type: 'uuid', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], ControlledGoodsRecord.prototype, "batchId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Column({ type: 'varchar', length: 24 }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], ControlledGoodsRecord.prototype, "sourceType", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
Column({ type: 'varchar', length: 32 }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ControlledGoodsRecord.prototype, "catalogType", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Column({ type: 'varchar' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], ControlledGoodsRecord.prototype, "productName", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
Column({ type: 'varchar' }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ControlledGoodsRecord.prototype, "normalizedProductName", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Column({ type: 'varchar', nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ControlledGoodsRecord.prototype, "hsCode", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
Column({ type: 'varchar', default: '' }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], ControlledGoodsRecord.prototype, "normalizedHsCode", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
Column({ type: 'text', nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], ControlledGoodsRecord.prototype, "controlDescription", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
Column({ type: 'varchar', nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], ControlledGoodsRecord.prototype, "sourceLocation", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
Column({ type: 'text', nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], ControlledGoodsRecord.prototype, "sourceContent", void 0);
|
|
93
|
+
ControlledGoodsRecord = __decorate([
|
|
94
|
+
Entity('plugin_trade_compliance_controlled_goods'),
|
|
95
|
+
Index(['tenantId', 'organizationId', 'catalogType', 'normalizedProductName', 'normalizedHsCode'], { unique: true, where: '"deletedAt" IS NULL' }),
|
|
96
|
+
Index(['tenantId', 'organizationId', 'hsCode'])
|
|
97
|
+
], ControlledGoodsRecord);
|
|
98
|
+
export { ControlledGoodsRecord };
|
|
99
|
+
let ControlledCatalogImportIssue = class ControlledCatalogImportIssue extends CreatedEntity {
|
|
100
|
+
};
|
|
101
|
+
__decorate([
|
|
102
|
+
Column({ type: 'uuid' }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], ControlledCatalogImportIssue.prototype, "batchId", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
Column({ type: 'varchar', length: 16 }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], ControlledCatalogImportIssue.prototype, "issueType", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
Column({ type: 'integer' }),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], ControlledCatalogImportIssue.prototype, "sourceSequence", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
Column({ type: 'varchar', nullable: true }),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], ControlledCatalogImportIssue.prototype, "sourceLocation", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
Column({ type: 'text', nullable: true }),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], ControlledCatalogImportIssue.prototype, "sourceContent", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
123
|
+
__metadata("design:type", Object)
|
|
124
|
+
], ControlledCatalogImportIssue.prototype, "parsedPayload", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
Column({ type: 'text' }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], ControlledCatalogImportIssue.prototype, "message", void 0);
|
|
129
|
+
ControlledCatalogImportIssue = __decorate([
|
|
130
|
+
Entity('plugin_trade_compliance_controlled_catalog_issue'),
|
|
131
|
+
Index(['tenantId', 'organizationId', 'batchId', 'issueType'])
|
|
132
|
+
], ControlledCatalogImportIssue);
|
|
133
|
+
export { ControlledCatalogImportIssue };
|
|
134
|
+
let SanctionCatalogBatch = class SanctionCatalogBatch extends SoftDeleteEntity {
|
|
135
|
+
};
|
|
136
|
+
__decorate([
|
|
137
|
+
Column({ type: 'varchar' }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], SanctionCatalogBatch.prototype, "sourceFileId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
Column({ type: 'varchar' }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], SanctionCatalogBatch.prototype, "sourceFileName", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
Column({ type: 'varchar', length: 24 }),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], SanctionCatalogBatch.prototype, "importMode", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
Column({ type: 'uuid', nullable: true }),
|
|
150
|
+
__metadata("design:type", Object)
|
|
151
|
+
], SanctionCatalogBatch.prototype, "replacedBatchId", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
Column({ type: 'integer', default: 0 }),
|
|
154
|
+
__metadata("design:type", Number)
|
|
155
|
+
], SanctionCatalogBatch.prototype, "totalCount", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
Column({ type: 'integer', default: 0 }),
|
|
158
|
+
__metadata("design:type", Number)
|
|
159
|
+
], SanctionCatalogBatch.prototype, "successCount", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
Column({ type: 'integer', default: 0 }),
|
|
162
|
+
__metadata("design:type", Number)
|
|
163
|
+
], SanctionCatalogBatch.prototype, "duplicateCount", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
Column({ type: 'integer', default: 0 }),
|
|
166
|
+
__metadata("design:type", Number)
|
|
167
|
+
], SanctionCatalogBatch.prototype, "invalidCount", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
Column({ type: 'uuid' }),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], SanctionCatalogBatch.prototype, "importTaskId", void 0);
|
|
172
|
+
SanctionCatalogBatch = __decorate([
|
|
173
|
+
Entity('plugin_trade_compliance_sanction_catalog_batch'),
|
|
174
|
+
Index(['tenantId', 'organizationId', 'sourceFileName'])
|
|
175
|
+
], SanctionCatalogBatch);
|
|
176
|
+
export { SanctionCatalogBatch };
|
|
177
|
+
let SanctionedCompanyRecord = class SanctionedCompanyRecord extends SoftDeleteEntity {
|
|
178
|
+
};
|
|
179
|
+
__decorate([
|
|
180
|
+
Column({ type: 'uuid', nullable: true }),
|
|
181
|
+
__metadata("design:type", Object)
|
|
182
|
+
], SanctionedCompanyRecord.prototype, "batchId", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
Column({ type: 'varchar', length: 24 }),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], SanctionedCompanyRecord.prototype, "sourceType", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
Column({ type: 'varchar' }),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], SanctionedCompanyRecord.prototype, "companyName", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
Column({ type: 'varchar' }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], SanctionedCompanyRecord.prototype, "normalizedCompanyName", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
Column({ type: 'varchar', nullable: true }),
|
|
197
|
+
__metadata("design:type", Object)
|
|
198
|
+
], SanctionedCompanyRecord.prototype, "countryOrRegion", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
Column({ type: 'varchar', nullable: true }),
|
|
201
|
+
__metadata("design:type", Object)
|
|
202
|
+
], SanctionedCompanyRecord.prototype, "sanctionListSource", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
Column({ type: 'varchar', default: '' }),
|
|
205
|
+
__metadata("design:type", String)
|
|
206
|
+
], SanctionedCompanyRecord.prototype, "normalizedSanctionListSource", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
Column({ type: 'text', nullable: true }),
|
|
209
|
+
__metadata("design:type", Object)
|
|
210
|
+
], SanctionedCompanyRecord.prototype, "sanctionReason", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
Column({ type: 'date', nullable: true }),
|
|
213
|
+
__metadata("design:type", Object)
|
|
214
|
+
], SanctionedCompanyRecord.prototype, "effectiveDate", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
Column({ type: 'text', nullable: true }),
|
|
217
|
+
__metadata("design:type", Object)
|
|
218
|
+
], SanctionedCompanyRecord.prototype, "remarks", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
Column({ type: 'varchar', nullable: true }),
|
|
221
|
+
__metadata("design:type", Object)
|
|
222
|
+
], SanctionedCompanyRecord.prototype, "sourceLocation", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
Column({ type: 'text', nullable: true }),
|
|
225
|
+
__metadata("design:type", Object)
|
|
226
|
+
], SanctionedCompanyRecord.prototype, "sourceContent", void 0);
|
|
227
|
+
SanctionedCompanyRecord = __decorate([
|
|
228
|
+
Entity('plugin_trade_compliance_sanctioned_company'),
|
|
229
|
+
Index(['tenantId', 'organizationId', 'normalizedCompanyName', 'normalizedSanctionListSource'], { unique: true, where: '"deletedAt" IS NULL' })
|
|
230
|
+
], SanctionedCompanyRecord);
|
|
231
|
+
export { SanctionedCompanyRecord };
|
|
232
|
+
let SanctionCatalogImportIssue = class SanctionCatalogImportIssue extends CreatedEntity {
|
|
233
|
+
};
|
|
234
|
+
__decorate([
|
|
235
|
+
Column({ type: 'uuid' }),
|
|
236
|
+
__metadata("design:type", String)
|
|
237
|
+
], SanctionCatalogImportIssue.prototype, "batchId", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
Column({ type: 'varchar', length: 16 }),
|
|
240
|
+
__metadata("design:type", String)
|
|
241
|
+
], SanctionCatalogImportIssue.prototype, "issueType", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
Column({ type: 'integer' }),
|
|
244
|
+
__metadata("design:type", Number)
|
|
245
|
+
], SanctionCatalogImportIssue.prototype, "sourceSequence", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
Column({ type: 'varchar', nullable: true }),
|
|
248
|
+
__metadata("design:type", Object)
|
|
249
|
+
], SanctionCatalogImportIssue.prototype, "sourceLocation", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
Column({ type: 'text', nullable: true }),
|
|
252
|
+
__metadata("design:type", Object)
|
|
253
|
+
], SanctionCatalogImportIssue.prototype, "sourceContent", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
256
|
+
__metadata("design:type", Object)
|
|
257
|
+
], SanctionCatalogImportIssue.prototype, "parsedPayload", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
Column({ type: 'text' }),
|
|
260
|
+
__metadata("design:type", String)
|
|
261
|
+
], SanctionCatalogImportIssue.prototype, "message", void 0);
|
|
262
|
+
SanctionCatalogImportIssue = __decorate([
|
|
263
|
+
Entity('plugin_trade_compliance_sanction_catalog_issue'),
|
|
264
|
+
Index(['tenantId', 'organizationId', 'batchId', 'issueType'])
|
|
265
|
+
], SanctionCatalogImportIssue);
|
|
266
|
+
export { SanctionCatalogImportIssue };
|
|
267
|
+
let CompanySanctionMatch = class CompanySanctionMatch extends CreatedEntity {
|
|
268
|
+
};
|
|
269
|
+
__decorate([
|
|
270
|
+
Column({ type: 'varchar', length: 16 }),
|
|
271
|
+
__metadata("design:type", String)
|
|
272
|
+
], CompanySanctionMatch.prototype, "subjectType", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
Column({ type: 'uuid', nullable: true }),
|
|
275
|
+
__metadata("design:type", Object)
|
|
276
|
+
], CompanySanctionMatch.prototype, "supplierId", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
Column({ type: 'uuid', nullable: true }),
|
|
279
|
+
__metadata("design:type", Object)
|
|
280
|
+
], CompanySanctionMatch.prototype, "customerId", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
Column({ type: 'uuid' }),
|
|
283
|
+
__metadata("design:type", String)
|
|
284
|
+
], CompanySanctionMatch.prototype, "sanctionedCompanyId", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
Column({ type: 'varchar' }),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], CompanySanctionMatch.prototype, "matchedNormalizedName", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
Column({ type: 'timestamptz' }),
|
|
291
|
+
__metadata("design:type", Date)
|
|
292
|
+
], CompanySanctionMatch.prototype, "checkedAt", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
Column({ type: 'timestamptz', nullable: true }),
|
|
295
|
+
__metadata("design:type", Object)
|
|
296
|
+
], CompanySanctionMatch.prototype, "deletedAt", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
Column({ type: 'varchar', length: 32, nullable: true }),
|
|
299
|
+
__metadata("design:type", Object)
|
|
300
|
+
], CompanySanctionMatch.prototype, "invalidationReason", void 0);
|
|
301
|
+
CompanySanctionMatch = __decorate([
|
|
302
|
+
Entity('plugin_trade_compliance_company_sanction_match'),
|
|
303
|
+
Index(['tenantId', 'organizationId', 'subjectType', 'supplierId', 'customerId', 'sanctionedCompanyId']),
|
|
304
|
+
Index(['tenantId', 'organizationId', 'supplierId', 'sanctionedCompanyId'], { unique: true, where: '"deletedAt" IS NULL AND "subjectType" = \'SUPPLIER\'' }),
|
|
305
|
+
Index(['tenantId', 'organizationId', 'customerId', 'sanctionedCompanyId'], { unique: true, where: '"deletedAt" IS NULL AND "subjectType" = \'CUSTOMER\'' })
|
|
306
|
+
], CompanySanctionMatch);
|
|
307
|
+
export { CompanySanctionMatch };
|
|
308
|
+
//# sourceMappingURL=catalog.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/catalog.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEjE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAIpD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,gBAAgB;CAW3D,CAAA;AAV0C;IAAxC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DAA0B;AACrC;IAA5B,MAAM,CAAC,EAA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,EAAE,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sDAAsD,EAAE,CAAC;GAC/I,oBAAoB,CAShC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ClauseType, RiskLevel } from '../types.js';
|
|
2
|
+
import { CreatedEntity, SoftDeleteEntity } from './base.js';
|
|
3
|
+
export declare class Customer extends SoftDeleteEntity {
|
|
4
|
+
code: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
normalizedName: string;
|
|
7
|
+
shortName: string | null;
|
|
8
|
+
country: string | null;
|
|
9
|
+
address: string | null;
|
|
10
|
+
contactName: string | null;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
wechat: string | null;
|
|
13
|
+
email: string | null;
|
|
14
|
+
taxNumber: string | null;
|
|
15
|
+
paymentAccount: string | null;
|
|
16
|
+
bankName: string | null;
|
|
17
|
+
taxpayerRating: string | null;
|
|
18
|
+
website: string | null;
|
|
19
|
+
businessProducts: string | null;
|
|
20
|
+
defaultPricingProfitRate: string | null;
|
|
21
|
+
complianceCheckedAt: Date | null;
|
|
22
|
+
}
|
|
23
|
+
export declare class CustomerContract extends SoftDeleteEntity {
|
|
24
|
+
customerId: string;
|
|
25
|
+
contractNo: string;
|
|
26
|
+
normalizedContractNo: string;
|
|
27
|
+
contractAmountReviewCny: string | null;
|
|
28
|
+
signedAt: string | null;
|
|
29
|
+
overallRiskLevel: RiskLevel | null;
|
|
30
|
+
latestAnalysisRunId: string | null;
|
|
31
|
+
sourceFileId: string;
|
|
32
|
+
sourceFileName: string;
|
|
33
|
+
importTaskId: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class CustomerContractClause extends SoftDeleteEntity {
|
|
36
|
+
customerContractId: string;
|
|
37
|
+
clauseType: ClauseType;
|
|
38
|
+
extractionStatus: 'FOUND' | 'NOT_FOUND';
|
|
39
|
+
sourceText: string | null;
|
|
40
|
+
reviewedText: string | null;
|
|
41
|
+
sourceLocation: string | null;
|
|
42
|
+
sourceContent: string | null;
|
|
43
|
+
}
|
|
44
|
+
export declare class CustomerContractAnalysisRun extends CreatedEntity {
|
|
45
|
+
customerContractId: string | null;
|
|
46
|
+
importTaskId: string;
|
|
47
|
+
analysisType: 'INITIAL' | 'REANALYSIS';
|
|
48
|
+
status: 'PENDING' | 'RUNNING' | 'SUCCEEDED' | 'FAILED';
|
|
49
|
+
promptVersion: string;
|
|
50
|
+
modelName: string | null;
|
|
51
|
+
errorCode: string | null;
|
|
52
|
+
errorMessage: string | null;
|
|
53
|
+
startedAt: Date | null;
|
|
54
|
+
completedAt: Date | null;
|
|
55
|
+
createdById: string | null;
|
|
56
|
+
}
|
|
57
|
+
export declare class CustomerContractClauseAnalysis extends CreatedEntity {
|
|
58
|
+
analysisRunId: string;
|
|
59
|
+
customerContractClauseId: string | null;
|
|
60
|
+
clauseType: ClauseType;
|
|
61
|
+
analyzedTextSnapshot: string | null;
|
|
62
|
+
riskLevel: RiskLevel;
|
|
63
|
+
riskMessageZh: string;
|
|
64
|
+
suggestionZh: string;
|
|
65
|
+
}
|
|
66
|
+
export declare class DerivedSalesOrderManualData extends SoftDeleteEntity {
|
|
67
|
+
customerContractId: string;
|
|
68
|
+
purchaseOrderId: string;
|
|
69
|
+
pricingProfitRateOverride: string | null;
|
|
70
|
+
receivedAmountCny: string;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=customer.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/customer.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE3D,qBAGa,QAAS,SAAQ,gBAAgB;IACC,IAAI,EAAG,MAAM,GAAG,IAAI,CAAA;IACpC,IAAI,EAAG,MAAM,CAAA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 'typeorm';
|
|
3
|
+
import { CreatedEntity, SoftDeleteEntity } from './base.js';
|
|
4
|
+
let Customer = class Customer extends SoftDeleteEntity {
|
|
5
|
+
};
|
|
6
|
+
__decorate([
|
|
7
|
+
Column({ type: 'varchar', nullable: true }),
|
|
8
|
+
__metadata("design:type", Object)
|
|
9
|
+
], Customer.prototype, "code", void 0);
|
|
10
|
+
__decorate([
|
|
11
|
+
Column({ type: 'varchar' }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], Customer.prototype, "name", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Column({ type: 'varchar' }),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], Customer.prototype, "normalizedName", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ type: 'varchar', nullable: true }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], Customer.prototype, "shortName", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ type: 'varchar', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], Customer.prototype, "country", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'text', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], Customer.prototype, "address", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ type: 'varchar', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], Customer.prototype, "contactName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ type: 'varchar', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], Customer.prototype, "phone", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ type: 'varchar', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], Customer.prototype, "wechat", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ type: 'varchar', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], Customer.prototype, "email", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({ type: 'varchar', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], Customer.prototype, "taxNumber", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Column({ type: 'varchar', nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], Customer.prototype, "paymentAccount", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ type: 'varchar', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], Customer.prototype, "bankName", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
Column({ type: 'varchar', nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], Customer.prototype, "taxpayerRating", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Column({ type: 'varchar', nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], Customer.prototype, "website", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
Column({ type: 'text', nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], Customer.prototype, "businessProducts", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
Column({ type: 'numeric', precision: 12, scale: 8, nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], Customer.prototype, "defaultPricingProfitRate", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
Column({ type: 'timestamptz', nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], Customer.prototype, "complianceCheckedAt", void 0);
|
|
78
|
+
Customer = __decorate([
|
|
79
|
+
Entity('plugin_trade_compliance_customer'),
|
|
80
|
+
Index(['tenantId', 'organizationId', 'normalizedName'], { unique: true, where: '"deletedAt" IS NULL' }),
|
|
81
|
+
Index(['tenantId', 'organizationId', 'code'])
|
|
82
|
+
], Customer);
|
|
83
|
+
export { Customer };
|
|
84
|
+
let CustomerContract = class CustomerContract extends SoftDeleteEntity {
|
|
85
|
+
};
|
|
86
|
+
__decorate([
|
|
87
|
+
Column({ type: 'uuid' }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], CustomerContract.prototype, "customerId", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
Column({ type: 'varchar' }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CustomerContract.prototype, "contractNo", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
Column({ type: 'varchar' }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CustomerContract.prototype, "normalizedContractNo", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
Column({ type: 'numeric', precision: 20, scale: 4, nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], CustomerContract.prototype, "contractAmountReviewCny", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
Column({ type: 'date', nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], CustomerContract.prototype, "signedAt", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
Column({ type: 'varchar', length: 16, nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], CustomerContract.prototype, "overallRiskLevel", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
Column({ type: 'uuid', nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], CustomerContract.prototype, "latestAnalysisRunId", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
Column({ type: 'varchar' }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], CustomerContract.prototype, "sourceFileId", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
Column({ type: 'varchar' }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], CustomerContract.prototype, "sourceFileName", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
Column({ type: 'uuid' }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], CustomerContract.prototype, "importTaskId", void 0);
|
|
126
|
+
CustomerContract = __decorate([
|
|
127
|
+
Entity('plugin_trade_compliance_customer_contract'),
|
|
128
|
+
Index(['tenantId', 'organizationId', 'normalizedContractNo'], { unique: true, where: '"deletedAt" IS NULL' }),
|
|
129
|
+
Index(['tenantId', 'organizationId', 'customerId', 'signedAt'])
|
|
130
|
+
], CustomerContract);
|
|
131
|
+
export { CustomerContract };
|
|
132
|
+
let CustomerContractClause = class CustomerContractClause extends SoftDeleteEntity {
|
|
133
|
+
};
|
|
134
|
+
__decorate([
|
|
135
|
+
Column({ type: 'uuid' }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], CustomerContractClause.prototype, "customerContractId", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
Column({ type: 'varchar', length: 32 }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], CustomerContractClause.prototype, "clauseType", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
Column({ type: 'varchar', length: 16 }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], CustomerContractClause.prototype, "extractionStatus", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
Column({ type: 'text', nullable: true }),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
|
+
], CustomerContractClause.prototype, "sourceText", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
Column({ type: 'text', nullable: true }),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], CustomerContractClause.prototype, "reviewedText", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
Column({ type: 'varchar', nullable: true }),
|
|
156
|
+
__metadata("design:type", Object)
|
|
157
|
+
], CustomerContractClause.prototype, "sourceLocation", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
Column({ type: 'text', nullable: true }),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], CustomerContractClause.prototype, "sourceContent", void 0);
|
|
162
|
+
CustomerContractClause = __decorate([
|
|
163
|
+
Entity('plugin_trade_compliance_customer_contract_clause'),
|
|
164
|
+
Index(['tenantId', 'organizationId', 'customerContractId', 'clauseType'], { unique: true, where: '"deletedAt" IS NULL' })
|
|
165
|
+
], CustomerContractClause);
|
|
166
|
+
export { CustomerContractClause };
|
|
167
|
+
let CustomerContractAnalysisRun = class CustomerContractAnalysisRun extends CreatedEntity {
|
|
168
|
+
};
|
|
169
|
+
__decorate([
|
|
170
|
+
Column({ type: 'uuid', nullable: true }),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], CustomerContractAnalysisRun.prototype, "customerContractId", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
Column({ type: 'uuid' }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], CustomerContractAnalysisRun.prototype, "importTaskId", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
Column({ type: 'varchar', length: 16 }),
|
|
179
|
+
__metadata("design:type", String)
|
|
180
|
+
], CustomerContractAnalysisRun.prototype, "analysisType", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
Column({ type: 'varchar', length: 16 }),
|
|
183
|
+
__metadata("design:type", String)
|
|
184
|
+
], CustomerContractAnalysisRun.prototype, "status", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
Column({ type: 'varchar', length: 32 }),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], CustomerContractAnalysisRun.prototype, "promptVersion", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
Column({ type: 'varchar', nullable: true }),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], CustomerContractAnalysisRun.prototype, "modelName", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
Column({ type: 'varchar', nullable: true }),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], CustomerContractAnalysisRun.prototype, "errorCode", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
Column({ type: 'text', nullable: true }),
|
|
199
|
+
__metadata("design:type", Object)
|
|
200
|
+
], CustomerContractAnalysisRun.prototype, "errorMessage", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
Column({ type: 'timestamptz', nullable: true }),
|
|
203
|
+
__metadata("design:type", Object)
|
|
204
|
+
], CustomerContractAnalysisRun.prototype, "startedAt", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
Column({ type: 'timestamptz', nullable: true }),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], CustomerContractAnalysisRun.prototype, "completedAt", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
Column({ type: 'uuid', nullable: true }),
|
|
211
|
+
__metadata("design:type", Object)
|
|
212
|
+
], CustomerContractAnalysisRun.prototype, "createdById", void 0);
|
|
213
|
+
CustomerContractAnalysisRun = __decorate([
|
|
214
|
+
Entity('plugin_trade_compliance_customer_contract_analysis_run'),
|
|
215
|
+
Index(['tenantId', 'organizationId', 'customerContractId', 'createdAt'])
|
|
216
|
+
], CustomerContractAnalysisRun);
|
|
217
|
+
export { CustomerContractAnalysisRun };
|
|
218
|
+
let CustomerContractClauseAnalysis = class CustomerContractClauseAnalysis extends CreatedEntity {
|
|
219
|
+
};
|
|
220
|
+
__decorate([
|
|
221
|
+
Column({ type: 'uuid' }),
|
|
222
|
+
__metadata("design:type", String)
|
|
223
|
+
], CustomerContractClauseAnalysis.prototype, "analysisRunId", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
Column({ type: 'uuid', nullable: true }),
|
|
226
|
+
__metadata("design:type", Object)
|
|
227
|
+
], CustomerContractClauseAnalysis.prototype, "customerContractClauseId", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
Column({ type: 'varchar', length: 32 }),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], CustomerContractClauseAnalysis.prototype, "clauseType", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
Column({ type: 'text', nullable: true }),
|
|
234
|
+
__metadata("design:type", Object)
|
|
235
|
+
], CustomerContractClauseAnalysis.prototype, "analyzedTextSnapshot", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
Column({ type: 'varchar', length: 16 }),
|
|
238
|
+
__metadata("design:type", String)
|
|
239
|
+
], CustomerContractClauseAnalysis.prototype, "riskLevel", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
Column({ type: 'text' }),
|
|
242
|
+
__metadata("design:type", String)
|
|
243
|
+
], CustomerContractClauseAnalysis.prototype, "riskMessageZh", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
Column({ type: 'text' }),
|
|
246
|
+
__metadata("design:type", String)
|
|
247
|
+
], CustomerContractClauseAnalysis.prototype, "suggestionZh", void 0);
|
|
248
|
+
CustomerContractClauseAnalysis = __decorate([
|
|
249
|
+
Entity('plugin_trade_compliance_customer_contract_clause_analysis'),
|
|
250
|
+
Index(['tenantId', 'organizationId', 'analysisRunId', 'clauseType'])
|
|
251
|
+
], CustomerContractClauseAnalysis);
|
|
252
|
+
export { CustomerContractClauseAnalysis };
|
|
253
|
+
let DerivedSalesOrderManualData = class DerivedSalesOrderManualData extends SoftDeleteEntity {
|
|
254
|
+
};
|
|
255
|
+
__decorate([
|
|
256
|
+
Column({ type: 'uuid' }),
|
|
257
|
+
__metadata("design:type", String)
|
|
258
|
+
], DerivedSalesOrderManualData.prototype, "customerContractId", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
Column({ type: 'uuid' }),
|
|
261
|
+
__metadata("design:type", String)
|
|
262
|
+
], DerivedSalesOrderManualData.prototype, "purchaseOrderId", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
Column({ type: 'numeric', precision: 12, scale: 8, nullable: true }),
|
|
265
|
+
__metadata("design:type", Object)
|
|
266
|
+
], DerivedSalesOrderManualData.prototype, "pricingProfitRateOverride", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
Column({ type: 'numeric', precision: 20, scale: 4, default: 0 }),
|
|
269
|
+
__metadata("design:type", String)
|
|
270
|
+
], DerivedSalesOrderManualData.prototype, "receivedAmountCny", void 0);
|
|
271
|
+
DerivedSalesOrderManualData = __decorate([
|
|
272
|
+
Entity('plugin_trade_compliance_derived_sales_manual'),
|
|
273
|
+
Index(['tenantId', 'organizationId', 'customerContractId', 'purchaseOrderId'], { unique: true, where: '"deletedAt" IS NULL' })
|
|
274
|
+
], DerivedSalesOrderManualData);
|
|
275
|
+
export { DerivedSalesOrderManualData };
|
|
276
|
+
//# sourceMappingURL=customer.entity.js.map
|