@chenchaolong/plugin-trade-compliance-workbench 0.1.35 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +332 -125
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/constants.d.ts +1 -2
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +1 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/controlled-goods-file-parser.d.ts +8 -17
- package/dist/lib/controlled-goods-file-parser.d.ts.map +1 -1
- package/dist/lib/controlled-goods-file-parser.js +1 -0
- package/dist/lib/controlled-goods-file-parser.js.map +1 -1
- package/dist/lib/entities/controlled-goods-record.entity.d.ts +4 -16
- package/dist/lib/entities/controlled-goods-record.entity.d.ts.map +1 -1
- package/dist/lib/entities/controlled-goods-record.entity.js +1 -0
- package/dist/lib/entities/controlled-goods-record.entity.js.map +1 -1
- package/dist/lib/entities/customs-workbook-generation.entity.d.ts +4 -17
- package/dist/lib/entities/customs-workbook-generation.entity.d.ts.map +1 -1
- package/dist/lib/entities/customs-workbook-generation.entity.js +1 -0
- package/dist/lib/entities/customs-workbook-generation.entity.js.map +1 -1
- package/dist/lib/entities/index.d.ts.map +1 -1
- package/dist/lib/entities/index.js +1 -0
- package/dist/lib/entities/index.js.map +1 -1
- package/dist/lib/entities/trade-compliance-import-batch.entity.d.ts +4 -15
- package/dist/lib/entities/trade-compliance-import-batch.entity.d.ts.map +1 -1
- package/dist/lib/entities/trade-compliance-import-batch.entity.js +1 -0
- package/dist/lib/entities/trade-compliance-import-batch.entity.js.map +1 -1
- package/dist/lib/entities/trade-compliance-review-item.entity.d.ts +4 -21
- package/dist/lib/entities/trade-compliance-review-item.entity.d.ts.map +1 -1
- package/dist/lib/entities/trade-compliance-review-item.entity.js +1 -0
- package/dist/lib/entities/trade-compliance-review-item.entity.js.map +1 -1
- package/dist/lib/entities/trade-product.entity.d.ts +4 -26
- package/dist/lib/entities/trade-product.entity.d.ts.map +1 -1
- package/dist/lib/entities/trade-product.entity.js +1 -0
- package/dist/lib/entities/trade-product.entity.js.map +1 -1
- package/dist/lib/entities/trade-supplier.entity.d.ts +4 -13
- package/dist/lib/entities/trade-supplier.entity.d.ts.map +1 -1
- package/dist/lib/entities/trade-supplier.entity.js +1 -0
- package/dist/lib/entities/trade-supplier.entity.js.map +1 -1
- package/dist/lib/remote-components/trade-compliance-workbench/app.js +1 -8
- package/dist/lib/trade-compliance-workbench-view.provider.d.ts +127 -27
- package/dist/lib/trade-compliance-workbench-view.provider.d.ts.map +1 -1
- package/dist/lib/trade-compliance-workbench-view.provider.js +645 -126
- package/dist/lib/trade-compliance-workbench-view.provider.js.map +1 -1
- package/dist/lib/trade-compliance-workbench.middleware.d.ts +292 -12
- package/dist/lib/trade-compliance-workbench.middleware.d.ts.map +1 -1
- package/dist/lib/trade-compliance-workbench.middleware.js +4 -25
- package/dist/lib/trade-compliance-workbench.middleware.js.map +1 -1
- package/dist/lib/trade-compliance-workbench.plugin.d.ts +10 -7
- package/dist/lib/trade-compliance-workbench.plugin.d.ts.map +1 -1
- package/dist/lib/trade-compliance-workbench.plugin.js +1 -0
- package/dist/lib/trade-compliance-workbench.plugin.js.map +1 -1
- package/dist/lib/trade-compliance-workbench.service.d.ts +31 -91
- package/dist/lib/trade-compliance-workbench.service.d.ts.map +1 -1
- package/dist/lib/trade-compliance-workbench.service.js +38 -67
- package/dist/lib/trade-compliance-workbench.service.js.map +1 -1
- package/dist/lib/trade-compliance-workbench.templates.d.ts +30 -2
- package/dist/lib/trade-compliance-workbench.templates.d.ts.map +1 -1
- package/dist/lib/trade-compliance-workbench.templates.js +1 -0
- package/dist/lib/trade-compliance-workbench.templates.js.map +1 -1
- package/dist/lib/trade-compliance-workbook.d.ts +25 -7
- package/dist/lib/trade-compliance-workbook.d.ts.map +1 -1
- package/dist/lib/trade-compliance-workbook.js +1 -0
- package/dist/lib/trade-compliance-workbook.js.map +1 -1
- package/dist/lib/trade-compliance.config.d.ts +61 -36
- package/dist/lib/trade-compliance.config.d.ts.map +1 -1
- package/dist/lib/trade-compliance.config.js +1 -0
- package/dist/lib/trade-compliance.config.js.map +1 -1
- package/dist/lib/trade-compliance.enrichment.d.ts +17 -20
- package/dist/lib/trade-compliance.enrichment.d.ts.map +1 -1
- package/dist/lib/trade-compliance.enrichment.js +1 -0
- package/dist/lib/trade-compliance.enrichment.js.map +1 -1
- package/dist/lib/trade-compliance.matching.d.ts +9 -2
- package/dist/lib/trade-compliance.matching.d.ts.map +1 -1
- package/dist/lib/trade-compliance.matching.js +1 -0
- package/dist/lib/trade-compliance.matching.js.map +1 -1
- package/dist/lib/types.d.ts +1 -138
- package/dist/lib/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,139 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
tenantId?: string;
|
|
3
|
-
organizationId?: string | null;
|
|
4
|
-
workspaceId?: string | null;
|
|
5
|
-
assistantId?: string | null;
|
|
6
|
-
projectId?: string | null;
|
|
7
|
-
userId?: string | null;
|
|
8
|
-
};
|
|
9
|
-
export type ReviewStatus = 'pending' | 'confirmed' | 'rejected' | 'needs_revision';
|
|
10
|
-
export type ReviewItemType = 'controlled_goods' | 'supplier_product' | 'customs_workbook';
|
|
11
|
-
export type ImportBatchType = 'controlled_goods_file' | 'supplier_contract' | 'sales_contract';
|
|
12
|
-
export type ControlledGoodsStatus = 'unchecked' | 'not_controlled' | 'suspected' | 'controlled';
|
|
13
|
-
export type ProductMatchInput = {
|
|
14
|
-
productName?: string;
|
|
15
|
-
model?: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
hsCode?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ControlledGoodsMatchCandidate = {
|
|
20
|
-
id: string;
|
|
21
|
-
productName?: string;
|
|
22
|
-
hsCode?: string;
|
|
23
|
-
keywords?: string[];
|
|
24
|
-
controlNote?: string;
|
|
25
|
-
enabled?: boolean;
|
|
26
|
-
};
|
|
27
|
-
export type ControlledGoodsMatchReason = 'hs_code' | 'product_name' | 'keyword';
|
|
28
|
-
export type ControlledGoodsMatch = {
|
|
29
|
-
controlledGoodsId: string;
|
|
30
|
-
productName?: string;
|
|
31
|
-
hsCode?: string;
|
|
32
|
-
controlNote?: string;
|
|
33
|
-
reason: ControlledGoodsMatchReason;
|
|
34
|
-
matchedValue: string;
|
|
35
|
-
};
|
|
36
|
-
export type ControlledGoodsMatchResult = {
|
|
37
|
-
status: ControlledGoodsStatus;
|
|
38
|
-
matches: ControlledGoodsMatch[];
|
|
39
|
-
controlNote?: string;
|
|
40
|
-
};
|
|
41
|
-
export type ProductEnrichmentInput = {
|
|
42
|
-
productName?: string;
|
|
43
|
-
model?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
hsCode?: string;
|
|
46
|
-
};
|
|
47
|
-
export type ProductEnrichmentResult = {
|
|
48
|
-
source: 'api';
|
|
49
|
-
hsCode?: string;
|
|
50
|
-
taxRefundRate?: string;
|
|
51
|
-
englishName?: string;
|
|
52
|
-
unit?: string;
|
|
53
|
-
productName?: string;
|
|
54
|
-
regulatoryConditions?: string;
|
|
55
|
-
inspectionQuarantine?: string;
|
|
56
|
-
detailUrl?: string;
|
|
57
|
-
error?: string;
|
|
58
|
-
};
|
|
59
|
-
export type TradeTemplateDefaults = {
|
|
60
|
-
sellerEnglishName?: string;
|
|
61
|
-
sellerEnglishAddress?: string;
|
|
62
|
-
phone?: string;
|
|
63
|
-
email?: string;
|
|
64
|
-
bankBeneficiary?: string;
|
|
65
|
-
bankName?: string;
|
|
66
|
-
bankAddress?: string;
|
|
67
|
-
bankAccountNo?: string;
|
|
68
|
-
cnapsCode?: string;
|
|
69
|
-
swiftCode?: string;
|
|
70
|
-
paymentTerm?: string;
|
|
71
|
-
tradeTerm?: string;
|
|
72
|
-
origin?: string;
|
|
73
|
-
destination?: string;
|
|
74
|
-
packageType?: string;
|
|
75
|
-
supervisionMode?: string;
|
|
76
|
-
taxExemptionNature?: string;
|
|
77
|
-
domesticSourceLocation?: string;
|
|
78
|
-
exchangeRate?: number;
|
|
79
|
-
};
|
|
80
|
-
export type CustomsWorkbookItem = {
|
|
81
|
-
productName?: string;
|
|
82
|
-
englishName?: string;
|
|
83
|
-
model?: string;
|
|
84
|
-
description?: string;
|
|
85
|
-
quantity?: number;
|
|
86
|
-
unit?: string;
|
|
87
|
-
unitPrice?: number;
|
|
88
|
-
amount?: number;
|
|
89
|
-
hsCode?: string;
|
|
90
|
-
cartonNo?: string;
|
|
91
|
-
dimension?: string;
|
|
92
|
-
netWeight?: number;
|
|
93
|
-
grossWeight?: number;
|
|
94
|
-
};
|
|
95
|
-
export type CustomsWorkbookSource = {
|
|
96
|
-
invoiceNo?: string;
|
|
97
|
-
contractNo?: string;
|
|
98
|
-
date?: string;
|
|
99
|
-
buyerName?: string;
|
|
100
|
-
buyerAddress?: string;
|
|
101
|
-
sellerName?: string;
|
|
102
|
-
sellerEnglishName?: string;
|
|
103
|
-
sellerEnglishAddress?: string;
|
|
104
|
-
paymentTerm?: string;
|
|
105
|
-
tradeTerm?: string;
|
|
106
|
-
origin?: string;
|
|
107
|
-
destination?: string;
|
|
108
|
-
currency?: string;
|
|
109
|
-
exchangeRate?: number;
|
|
110
|
-
packageType?: string;
|
|
111
|
-
supervisionMode?: string;
|
|
112
|
-
taxExemptionNature?: string;
|
|
113
|
-
domesticSourceLocation?: string;
|
|
114
|
-
bankBeneficiary?: string;
|
|
115
|
-
bankName?: string;
|
|
116
|
-
bankAddress?: string;
|
|
117
|
-
bankAccountNo?: string;
|
|
118
|
-
cnapsCode?: string;
|
|
119
|
-
swiftCode?: string;
|
|
120
|
-
items?: CustomsWorkbookItem[];
|
|
121
|
-
};
|
|
122
|
-
export type CustomsWorkbookModel = Required<Pick<CustomsWorkbookSource, 'invoiceNo'>> & Omit<CustomsWorkbookSource, 'invoiceNo'> & {
|
|
123
|
-
sellerEnglishName?: string;
|
|
124
|
-
sellerEnglishAddress?: string;
|
|
125
|
-
paymentTerm?: string;
|
|
126
|
-
tradeTerm?: string;
|
|
127
|
-
origin?: string;
|
|
128
|
-
destination?: string;
|
|
129
|
-
exchangeRate?: number;
|
|
130
|
-
items: CustomsWorkbookItem[];
|
|
131
|
-
};
|
|
132
|
-
export type CustomsWorkbookBufferResult = {
|
|
133
|
-
fileName: string;
|
|
134
|
-
sheetNames: string[];
|
|
135
|
-
mimeType: string;
|
|
136
|
-
bookType: 'xls' | 'xlsx';
|
|
137
|
-
buffer: Buffer;
|
|
138
|
-
};
|
|
1
|
+
export {};
|
|
139
2
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenchaolong/plugin-trade-compliance-workbench",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "Trade Compliance Workbench app plugin for controlled goods review, supplier product management, and customs workbook generation.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "XpertAI",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc -p tsconfig.lib.json && node scripts/copy-assets.mjs",
|
|
37
37
|
"lint": "echo \"(todo) add lint\"",
|
|
38
|
-
"test": "tsc -p tsconfig.spec.json --noEmit && tsc -p tsconfig.lib.json && node scripts/verify-
|
|
38
|
+
"test": "tsc -p tsconfig.spec.json --noEmit && tsc -p tsconfig.lib.json && node scripts/verify-remote-app.mjs && node scripts/verify-service-dedupe.mjs && node scripts/verify-real-enrichment.mjs && node scripts/verify-workbook-template.mjs && node scripts/verify-middleware-workbook-template.mjs"
|
|
39
39
|
},
|
|
40
40
|
"xpert": {
|
|
41
41
|
"plugin": {
|