@chenchaolong/plugin-trade-compliance-workbench 0.1.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.
Files changed (80) hide show
  1. package/README.md +36 -0
  2. package/dist/index.d.ts +146 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +127 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/lib/constants.d.ts +12 -0
  7. package/dist/lib/constants.d.ts.map +1 -0
  8. package/dist/lib/constants.js +20 -0
  9. package/dist/lib/constants.js.map +1 -0
  10. package/dist/lib/entities/controlled-goods-record.entity.d.ts +17 -0
  11. package/dist/lib/entities/controlled-goods-record.entity.d.ts.map +1 -0
  12. package/dist/lib/entities/controlled-goods-record.entity.js +67 -0
  13. package/dist/lib/entities/controlled-goods-record.entity.js.map +1 -0
  14. package/dist/lib/entities/customs-workbook-generation.entity.d.ts +18 -0
  15. package/dist/lib/entities/customs-workbook-generation.entity.d.ts.map +1 -0
  16. package/dist/lib/entities/customs-workbook-generation.entity.js +71 -0
  17. package/dist/lib/entities/customs-workbook-generation.entity.js.map +1 -0
  18. package/dist/lib/entities/index.d.ts +7 -0
  19. package/dist/lib/entities/index.d.ts.map +1 -0
  20. package/dist/lib/entities/index.js +7 -0
  21. package/dist/lib/entities/index.js.map +1 -0
  22. package/dist/lib/entities/trade-compliance-import-batch.entity.d.ts +16 -0
  23. package/dist/lib/entities/trade-compliance-import-batch.entity.d.ts.map +1 -0
  24. package/dist/lib/entities/trade-compliance-import-batch.entity.js +59 -0
  25. package/dist/lib/entities/trade-compliance-import-batch.entity.js.map +1 -0
  26. package/dist/lib/entities/trade-compliance-review-item.entity.d.ts +22 -0
  27. package/dist/lib/entities/trade-compliance-review-item.entity.d.ts.map +1 -0
  28. package/dist/lib/entities/trade-compliance-review-item.entity.js +83 -0
  29. package/dist/lib/entities/trade-compliance-review-item.entity.js.map +1 -0
  30. package/dist/lib/entities/trade-product.entity.d.ts +27 -0
  31. package/dist/lib/entities/trade-product.entity.d.ts.map +1 -0
  32. package/dist/lib/entities/trade-product.entity.js +104 -0
  33. package/dist/lib/entities/trade-product.entity.js.map +1 -0
  34. package/dist/lib/entities/trade-supplier.entity.d.ts +14 -0
  35. package/dist/lib/entities/trade-supplier.entity.d.ts.map +1 -0
  36. package/dist/lib/entities/trade-supplier.entity.js +54 -0
  37. package/dist/lib/entities/trade-supplier.entity.js.map +1 -0
  38. package/dist/lib/remote-components/trade-compliance-workbench/app.js +49 -0
  39. package/dist/lib/trade-compliance-workbench-view.provider.d.ts +13 -0
  40. package/dist/lib/trade-compliance-workbench-view.provider.d.ts.map +1 -0
  41. package/dist/lib/trade-compliance-workbench-view.provider.js +211 -0
  42. package/dist/lib/trade-compliance-workbench-view.provider.js.map +1 -0
  43. package/dist/lib/trade-compliance-workbench.middleware.d.ts +10 -0
  44. package/dist/lib/trade-compliance-workbench.middleware.d.ts.map +1 -0
  45. package/dist/lib/trade-compliance-workbench.middleware.js +158 -0
  46. package/dist/lib/trade-compliance-workbench.middleware.js.map +1 -0
  47. package/dist/lib/trade-compliance-workbench.plugin.d.ts +8 -0
  48. package/dist/lib/trade-compliance-workbench.plugin.d.ts.map +1 -0
  49. package/dist/lib/trade-compliance-workbench.plugin.js +38 -0
  50. package/dist/lib/trade-compliance-workbench.plugin.js.map +1 -0
  51. package/dist/lib/trade-compliance-workbench.service.d.ts +77 -0
  52. package/dist/lib/trade-compliance-workbench.service.d.ts.map +1 -0
  53. package/dist/lib/trade-compliance-workbench.service.js +170 -0
  54. package/dist/lib/trade-compliance-workbench.service.js.map +1 -0
  55. package/dist/lib/trade-compliance-workbench.templates.d.ts +3 -0
  56. package/dist/lib/trade-compliance-workbench.templates.d.ts.map +1 -0
  57. package/dist/lib/trade-compliance-workbench.templates.js +59 -0
  58. package/dist/lib/trade-compliance-workbench.templates.js.map +1 -0
  59. package/dist/lib/trade-compliance-workbook.d.ts +4 -0
  60. package/dist/lib/trade-compliance-workbook.d.ts.map +1 -0
  61. package/dist/lib/trade-compliance-workbook.js +149 -0
  62. package/dist/lib/trade-compliance-workbook.js.map +1 -0
  63. package/dist/lib/trade-compliance.config.d.ts +227 -0
  64. package/dist/lib/trade-compliance.config.d.ts.map +1 -0
  65. package/dist/lib/trade-compliance.config.js +112 -0
  66. package/dist/lib/trade-compliance.config.js.map +1 -0
  67. package/dist/lib/trade-compliance.enrichment.d.ts +3 -0
  68. package/dist/lib/trade-compliance.enrichment.d.ts.map +1 -0
  69. package/dist/lib/trade-compliance.enrichment.js +41 -0
  70. package/dist/lib/trade-compliance.enrichment.js.map +1 -0
  71. package/dist/lib/trade-compliance.matching.d.ts +3 -0
  72. package/dist/lib/trade-compliance.matching.d.ts.map +1 -0
  73. package/dist/lib/trade-compliance.matching.js +62 -0
  74. package/dist/lib/trade-compliance.matching.js.map +1 -0
  75. package/dist/lib/types.d.ts +131 -0
  76. package/dist/lib/types.d.ts.map +1 -0
  77. package/dist/lib/types.js +2 -0
  78. package/dist/lib/types.js.map +1 -0
  79. package/dist/xpert-trade-compliance-workbench-assistant.yaml +20 -0
  80. package/package.json +82 -0
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Trade Compliance Workbench
2
+
3
+ Trade Compliance Workbench is a data-xpert app plugin for export compliance workflows:
4
+
5
+ - Controlled goods file intake and manual controlled goods maintenance.
6
+ - Supplier contract extraction, product enrichment, and controlled goods warning matches.
7
+ - Sales contract extraction and customs workbook generation.
8
+
9
+ The Workbench exposes three pages inside one remote component:
10
+
11
+ - Controlled Goods Management
12
+ - Product Management
13
+ - Customs Document Generation
14
+
15
+ ## Build
16
+
17
+ ```sh
18
+ pnpm --filter @chenchaolong/plugin-trade-compliance-workbench build
19
+ ```
20
+
21
+ ## Test
22
+
23
+ ```sh
24
+ pnpm --filter @chenchaolong/plugin-trade-compliance-workbench test
25
+ ```
26
+
27
+ ## Lifecycle Validation
28
+
29
+ From the repository root:
30
+
31
+ ```sh
32
+ pnpm -C plugin-dev-harness build
33
+ node plugin-dev-harness/dist/index.js \
34
+ --workspace ./community/apps/trade-compliance-workbench \
35
+ --plugin @chenchaolong/plugin-trade-compliance-workbench
36
+ ```
@@ -0,0 +1,146 @@
1
+ import { z } from 'zod';
2
+ import type { XpertPlugin } from '@xpert-ai/plugin-sdk';
3
+ declare const ConfigSchema: z.ZodObject<{
4
+ enrichment: z.ZodOptional<z.ZodObject<{
5
+ apiBaseUrl: z.ZodOptional<z.ZodString>;
6
+ mcpServerName: z.ZodOptional<z.ZodString>;
7
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ apiBaseUrl?: string;
10
+ mcpServerName?: string;
11
+ timeoutMs?: number;
12
+ }, {
13
+ apiBaseUrl?: string;
14
+ mcpServerName?: string;
15
+ timeoutMs?: number;
16
+ }>>;
17
+ templateDefaults: z.ZodOptional<z.ZodObject<{
18
+ sellerEnglishName: z.ZodOptional<z.ZodString>;
19
+ sellerEnglishAddress: z.ZodOptional<z.ZodString>;
20
+ phone: z.ZodOptional<z.ZodString>;
21
+ email: z.ZodOptional<z.ZodString>;
22
+ bankBeneficiary: z.ZodOptional<z.ZodString>;
23
+ bankName: z.ZodOptional<z.ZodString>;
24
+ bankAddress: z.ZodOptional<z.ZodString>;
25
+ bankAccountNo: z.ZodOptional<z.ZodString>;
26
+ cnapsCode: z.ZodOptional<z.ZodString>;
27
+ swiftCode: z.ZodOptional<z.ZodString>;
28
+ paymentTerm: z.ZodOptional<z.ZodString>;
29
+ tradeTerm: z.ZodOptional<z.ZodString>;
30
+ origin: z.ZodOptional<z.ZodString>;
31
+ destination: z.ZodOptional<z.ZodString>;
32
+ packageType: z.ZodOptional<z.ZodString>;
33
+ supervisionMode: z.ZodOptional<z.ZodString>;
34
+ taxExemptionNature: z.ZodOptional<z.ZodString>;
35
+ domesticSourceLocation: z.ZodOptional<z.ZodString>;
36
+ exchangeRate: z.ZodOptional<z.ZodNumber>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ sellerEnglishName?: string;
39
+ sellerEnglishAddress?: string;
40
+ phone?: string;
41
+ email?: string;
42
+ bankBeneficiary?: string;
43
+ bankName?: string;
44
+ bankAddress?: string;
45
+ bankAccountNo?: string;
46
+ cnapsCode?: string;
47
+ swiftCode?: string;
48
+ paymentTerm?: string;
49
+ tradeTerm?: string;
50
+ origin?: string;
51
+ destination?: string;
52
+ packageType?: string;
53
+ supervisionMode?: string;
54
+ taxExemptionNature?: string;
55
+ domesticSourceLocation?: string;
56
+ exchangeRate?: number;
57
+ }, {
58
+ sellerEnglishName?: string;
59
+ sellerEnglishAddress?: string;
60
+ phone?: string;
61
+ email?: string;
62
+ bankBeneficiary?: string;
63
+ bankName?: string;
64
+ bankAddress?: string;
65
+ bankAccountNo?: string;
66
+ cnapsCode?: string;
67
+ swiftCode?: string;
68
+ paymentTerm?: string;
69
+ tradeTerm?: string;
70
+ origin?: string;
71
+ destination?: string;
72
+ packageType?: string;
73
+ supervisionMode?: string;
74
+ taxExemptionNature?: string;
75
+ domesticSourceLocation?: string;
76
+ exchangeRate?: number;
77
+ }>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ enrichment?: {
80
+ apiBaseUrl?: string;
81
+ mcpServerName?: string;
82
+ timeoutMs?: number;
83
+ };
84
+ templateDefaults?: {
85
+ sellerEnglishName?: string;
86
+ sellerEnglishAddress?: string;
87
+ phone?: string;
88
+ email?: string;
89
+ bankBeneficiary?: string;
90
+ bankName?: string;
91
+ bankAddress?: string;
92
+ bankAccountNo?: string;
93
+ cnapsCode?: string;
94
+ swiftCode?: string;
95
+ paymentTerm?: string;
96
+ tradeTerm?: string;
97
+ origin?: string;
98
+ destination?: string;
99
+ packageType?: string;
100
+ supervisionMode?: string;
101
+ taxExemptionNature?: string;
102
+ domesticSourceLocation?: string;
103
+ exchangeRate?: number;
104
+ };
105
+ }, {
106
+ enrichment?: {
107
+ apiBaseUrl?: string;
108
+ mcpServerName?: string;
109
+ timeoutMs?: number;
110
+ };
111
+ templateDefaults?: {
112
+ sellerEnglishName?: string;
113
+ sellerEnglishAddress?: string;
114
+ phone?: string;
115
+ email?: string;
116
+ bankBeneficiary?: string;
117
+ bankName?: string;
118
+ bankAddress?: string;
119
+ bankAccountNo?: string;
120
+ cnapsCode?: string;
121
+ swiftCode?: string;
122
+ paymentTerm?: string;
123
+ tradeTerm?: string;
124
+ origin?: string;
125
+ destination?: string;
126
+ packageType?: string;
127
+ supervisionMode?: string;
128
+ taxExemptionNature?: string;
129
+ domesticSourceLocation?: string;
130
+ exchangeRate?: number;
131
+ };
132
+ }>;
133
+ declare const plugin: XpertPlugin<z.infer<typeof ConfigSchema>>;
134
+ export default plugin;
135
+ export * from './lib/constants.js';
136
+ export * from './lib/types.js';
137
+ export * from './lib/entities/index.js';
138
+ export * from './lib/trade-compliance-workbench.plugin.js';
139
+ export * from './lib/trade-compliance-workbench.service.js';
140
+ export * from './lib/trade-compliance-workbench.middleware.js';
141
+ export * from './lib/trade-compliance-workbench-view.provider.js';
142
+ export * from './lib/trade-compliance-workbench.templates.js';
143
+ export * from './lib/trade-compliance.matching.js';
144
+ export * from './lib/trade-compliance.enrichment.js';
145
+ export * from './lib/trade-compliance-workbook.js';
146
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAuBvD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAA;AAEzD,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CA0GrD,CAAA;AAED,eAAe,MAAM,CAAA;AACrB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,4CAA4C,CAAA;AAC1D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,mDAAmD,CAAA;AACjE,cAAc,+CAA+C,CAAA;AAC7D,cAAc,oCAAoC,CAAA;AAClD,cAAc,sCAAsC,CAAA;AACpD,cAAc,oCAAoC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,127 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { dirname, join } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { TradeComplianceWorkbenchConfigFormSchema, TradeComplianceWorkbenchConfigSchema, readTradeComplianceEnvDefaults } from './lib/trade-compliance.config.js';
5
+ import { TRADE_COMPLIANCE_FEATURE, TRADE_COMPLIANCE_ICON, TRADE_COMPLIANCE_MIDDLEWARE_NAME, TRADE_COMPLIANCE_PROVIDER_KEY, TRADE_COMPLIANCE_TEMPLATE_PROVIDER_KEY, TRADE_COMPLIANCE_VIEW_KEY } from './lib/constants.js';
6
+ import { TradeComplianceWorkbenchPlugin } from './lib/trade-compliance-workbench.plugin.js';
7
+ import { tradeComplianceWorkbenchTemplates } from './lib/trade-compliance-workbench.templates.js';
8
+ const moduleDir = dirname(fileURLToPath(import.meta.url));
9
+ const packageJson = JSON.parse(readFileSync(join(moduleDir, '../package.json'), 'utf8'));
10
+ const ConfigSchema = TradeComplianceWorkbenchConfigSchema;
11
+ const plugin = {
12
+ meta: {
13
+ name: packageJson.name,
14
+ version: packageJson.version,
15
+ level: 'system',
16
+ targetApps: ['data-xpert'],
17
+ targetAppMeta: {
18
+ 'data-xpert': {
19
+ types: ['workbench-view', 'assistant-tool', 'business-app', 'customs-document'],
20
+ capabilities: [
21
+ TRADE_COMPLIANCE_FEATURE,
22
+ 'controlled-goods-management',
23
+ 'supplier-product-management',
24
+ 'customs-workbook-generation',
25
+ 'trade-compliance-assistant-template'
26
+ ],
27
+ marketplace: {
28
+ contents: [
29
+ {
30
+ type: 'app',
31
+ name: 'trade-compliance-workbench',
32
+ displayName: 'Trade Compliance Workbench',
33
+ description: 'Manage controlled goods, supplier products, and generated customs declaration workbooks.',
34
+ icon: {
35
+ type: 'svg',
36
+ value: TRADE_COMPLIANCE_ICON,
37
+ color: '#0f766e'
38
+ },
39
+ operations: [
40
+ {
41
+ name: 'manage-controlled-goods',
42
+ displayName: 'Manage controlled goods',
43
+ description: 'Upload, review, and manually maintain controlled goods records.',
44
+ access: 'write'
45
+ },
46
+ {
47
+ name: 'manage-supplier-products',
48
+ displayName: 'Manage supplier products',
49
+ description: 'Extract, enrich, review, and save supplier product records.',
50
+ access: 'write'
51
+ },
52
+ {
53
+ name: 'generate-customs-workbooks',
54
+ displayName: 'Generate customs workbooks',
55
+ description: 'Generate declaration, commercial invoice, sales contract, and packing list workbooks.',
56
+ access: 'write'
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ type: 'view',
62
+ name: TRADE_COMPLIANCE_VIEW_KEY,
63
+ displayName: 'Trade Compliance Workbench',
64
+ description: 'Workbench view for controlled goods, products, review batches, and customs workbooks.'
65
+ },
66
+ {
67
+ type: 'tool',
68
+ name: TRADE_COMPLIANCE_MIDDLEWARE_NAME,
69
+ displayName: 'Trade Compliance Tools',
70
+ description: 'Assistant tools for controlled goods extraction, supplier product extraction, product enrichment, matching, and customs workbook generation.'
71
+ },
72
+ {
73
+ type: 'assistant-template',
74
+ name: 'trade-compliance-workbench-assistant',
75
+ displayName: 'Trade Compliance Workbench Assistant Template',
76
+ description: 'Prebuilt assistant template for the Trade Compliance Workbench.'
77
+ }
78
+ ]
79
+ },
80
+ runtime: {
81
+ middlewareProviders: [TRADE_COMPLIANCE_MIDDLEWARE_NAME],
82
+ viewProviders: [TRADE_COMPLIANCE_PROVIDER_KEY],
83
+ templateProviders: [TRADE_COMPLIANCE_TEMPLATE_PROVIDER_KEY]
84
+ }
85
+ }
86
+ },
87
+ category: 'middleware',
88
+ icon: {
89
+ type: 'svg',
90
+ value: TRADE_COMPLIANCE_ICON,
91
+ color: '#0f766e'
92
+ },
93
+ displayName: 'Trade Compliance Workbench',
94
+ description: 'Trade Compliance Workbench for controlled goods review, supplier product management, and customs workbook generation.',
95
+ keywords: ['trade-compliance', 'controlled-goods', 'customs', 'workbook', 'assistant-template'],
96
+ author: 'XpertAI Team'
97
+ },
98
+ config: {
99
+ schema: ConfigSchema,
100
+ formSchema: TradeComplianceWorkbenchConfigFormSchema,
101
+ defaults: readTradeComplianceEnvDefaults()
102
+ },
103
+ templates: tradeComplianceWorkbenchTemplates,
104
+ register(ctx) {
105
+ ctx.logger.log('register trade compliance workbench plugin');
106
+ return { module: TradeComplianceWorkbenchPlugin, global: true };
107
+ },
108
+ async onStart(ctx) {
109
+ ctx.logger.log('trade compliance workbench plugin started');
110
+ },
111
+ async onStop(ctx) {
112
+ ctx.logger.log('trade compliance workbench plugin stopped');
113
+ }
114
+ };
115
+ export default plugin;
116
+ export * from './lib/constants.js';
117
+ export * from './lib/types.js';
118
+ export * from './lib/entities/index.js';
119
+ export * from './lib/trade-compliance-workbench.plugin.js';
120
+ export * from './lib/trade-compliance-workbench.service.js';
121
+ export * from './lib/trade-compliance-workbench.middleware.js';
122
+ export * from './lib/trade-compliance-workbench-view.provider.js';
123
+ export * from './lib/trade-compliance-workbench.templates.js';
124
+ export * from './lib/trade-compliance.matching.js';
125
+ export * from './lib/trade-compliance.enrichment.js';
126
+ export * from './lib/trade-compliance-workbook.js';
127
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aA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CAAC;QAC/F,MAAM,EAAE,cAAc;KACvB;IACD,MAAM,EAAE;QACN,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,wCAAwC;QACpD,QAAQ,EAAE,8BAA8B,EAAE;KAC3C;IACD,SAAS,EAAE,iCAAiC;IAC5C,QAAQ,CAAC,GAAG;QACV,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAA;QAC5D,OAAO,EAAE,MAAM,EAAE,8BAA8B,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IACjE,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAA;IAC7D,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAA;IAC7D,CAAC;CACF,CAAA;AAED,eAAe,MAAM,CAAA;AACrB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,4CAA4C,CAAA;AAC1D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,mDAAmD,CAAA;AACjE,cAAc,+CAA+C,CAAA;AAC7D,cAAc,oCAAoC,CAAA;AAClD,cAAc,sCAAsC,CAAA;AACpD,cAAc,oCAAoC,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const TRADE_COMPLIANCE_PLUGIN_NAME = "@chenchaolong/plugin-trade-compliance-workbench";
2
+ export declare const TRADE_COMPLIANCE_PROVIDER_KEY = "trade_compliance_workbench";
3
+ export declare const TRADE_COMPLIANCE_VIEW_KEY = "trade_compliance_workbench";
4
+ export declare const TRADE_COMPLIANCE_REMOTE_ENTRY_KEY = "trade-compliance-workbench";
5
+ export declare const TRADE_COMPLIANCE_FEATURE = "trade_compliance_workbench";
6
+ export declare const TRADE_COMPLIANCE_MIDDLEWARE_NAME = "TradeComplianceWorkbenchMiddleware";
7
+ export declare const TRADE_COMPLIANCE_TEMPLATE_PROVIDER_KEY = "tradeComplianceWorkbenchTemplates";
8
+ export declare const AGENT_WORKBENCH_MAIN_SLOT = "agent.workbench.main";
9
+ export declare const AGENT_WORKBENCH_FIXED_SLOT = "agent.workbench.fixed";
10
+ export declare const TRADE_COMPLIANCE_TOOL_NAMES: readonly ["trade_compliance_save_controlled_goods_extraction", "trade_compliance_save_supplier_contract_extraction", "trade_compliance_enrich_product", "trade_compliance_match_controlled_goods", "trade_compliance_save_sales_contract_extraction", "trade_compliance_prepare_customs_workbook", "trade_compliance_record_generated_workbook"];
11
+ export declare const TRADE_COMPLIANCE_ICON = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 4h16v16H4z\"/><path d=\"M8 8h8\"/><path d=\"M8 12h8\"/><path d=\"M8 16h5\"/><path d=\"m16 15 2 2 3-4\"/></svg>";
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oDAAoD,CAAA;AAC7F,eAAO,MAAM,6BAA6B,+BAA+B,CAAA;AACzE,eAAO,MAAM,yBAAyB,+BAA+B,CAAA;AACrE,eAAO,MAAM,iCAAiC,+BAA+B,CAAA;AAC7E,eAAO,MAAM,wBAAwB,+BAA+B,CAAA;AACpE,eAAO,MAAM,gCAAgC,uCAAuC,CAAA;AACpF,eAAO,MAAM,sCAAsC,sCAAsC,CAAA;AACzF,eAAO,MAAM,yBAAyB,yBAAyB,CAAA;AAC/D,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAEjE,eAAO,MAAM,2BAA2B,kVAQ9B,CAAA;AAEV,eAAO,MAAM,qBAAqB,4SACiP,CAAA"}
@@ -0,0 +1,20 @@
1
+ export const TRADE_COMPLIANCE_PLUGIN_NAME = '@chenchaolong/plugin-trade-compliance-workbench';
2
+ export const TRADE_COMPLIANCE_PROVIDER_KEY = 'trade_compliance_workbench';
3
+ export const TRADE_COMPLIANCE_VIEW_KEY = 'trade_compliance_workbench';
4
+ export const TRADE_COMPLIANCE_REMOTE_ENTRY_KEY = 'trade-compliance-workbench';
5
+ export const TRADE_COMPLIANCE_FEATURE = 'trade_compliance_workbench';
6
+ export const TRADE_COMPLIANCE_MIDDLEWARE_NAME = 'TradeComplianceWorkbenchMiddleware';
7
+ export const TRADE_COMPLIANCE_TEMPLATE_PROVIDER_KEY = 'tradeComplianceWorkbenchTemplates';
8
+ export const AGENT_WORKBENCH_MAIN_SLOT = 'agent.workbench.main';
9
+ export const AGENT_WORKBENCH_FIXED_SLOT = 'agent.workbench.fixed';
10
+ export const TRADE_COMPLIANCE_TOOL_NAMES = [
11
+ 'trade_compliance_save_controlled_goods_extraction',
12
+ 'trade_compliance_save_supplier_contract_extraction',
13
+ 'trade_compliance_enrich_product',
14
+ 'trade_compliance_match_controlled_goods',
15
+ 'trade_compliance_save_sales_contract_extraction',
16
+ 'trade_compliance_prepare_customs_workbook',
17
+ 'trade_compliance_record_generated_workbook'
18
+ ];
19
+ export const TRADE_COMPLIANCE_ICON = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16v16H4z"/><path d="M8 8h8"/><path d="M8 12h8"/><path d="M8 16h5"/><path d="m16 15 2 2 3-4"/></svg>';
20
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GAAG,iDAAiD,CAAA;AAC7F,MAAM,CAAC,MAAM,6BAA6B,GAAG,4BAA4B,CAAA;AACzE,MAAM,CAAC,MAAM,yBAAyB,GAAG,4BAA4B,CAAA;AACrE,MAAM,CAAC,MAAM,iCAAiC,GAAG,4BAA4B,CAAA;AAC7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,4BAA4B,CAAA;AACpE,MAAM,CAAC,MAAM,gCAAgC,GAAG,oCAAoC,CAAA;AACpF,MAAM,CAAC,MAAM,sCAAsC,GAAG,mCAAmC,CAAA;AACzF,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAA;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,mDAAmD;IACnD,oDAAoD;IACpD,iCAAiC;IACjC,yCAAyC;IACzC,iDAAiD;IACjD,2CAA2C;IAC3C,4CAA4C;CACpC,CAAA;AAEV,MAAM,CAAC,MAAM,qBAAqB,GAChC,iRAAiR,CAAA"}
@@ -0,0 +1,17 @@
1
+ export declare class ControlledGoodsRecord {
2
+ id?: string;
3
+ tenantId?: string;
4
+ organizationId?: string;
5
+ workspaceId?: string;
6
+ createdById?: string;
7
+ productName: string;
8
+ hsCode?: string;
9
+ keywords?: string[];
10
+ controlNote?: string;
11
+ enabled?: boolean;
12
+ sourceFileName?: string;
13
+ sourceLocation?: string;
14
+ createdAt?: Date;
15
+ updatedAt?: Date;
16
+ }
17
+ //# sourceMappingURL=controlled-goods-record.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlled-goods-record.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/controlled-goods-record.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,qBAAqB;IAEhC,EAAE,CAAC,EAAE,MAAM,CAAA;IAGX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,EAAG,MAAM,CAAA;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,OAAO,CAAC,EAAE,OAAO,CAAA;IAGjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
@@ -0,0 +1,67 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
3
+ let ControlledGoodsRecord = class ControlledGoodsRecord {
4
+ };
5
+ __decorate([
6
+ PrimaryGeneratedColumn('uuid'),
7
+ __metadata("design:type", String)
8
+ ], ControlledGoodsRecord.prototype, "id", void 0);
9
+ __decorate([
10
+ Column({ type: 'varchar', nullable: true }),
11
+ __metadata("design:type", String)
12
+ ], ControlledGoodsRecord.prototype, "tenantId", void 0);
13
+ __decorate([
14
+ Column({ type: 'varchar', nullable: true }),
15
+ __metadata("design:type", String)
16
+ ], ControlledGoodsRecord.prototype, "organizationId", void 0);
17
+ __decorate([
18
+ Column({ type: 'varchar', nullable: true }),
19
+ __metadata("design:type", String)
20
+ ], ControlledGoodsRecord.prototype, "workspaceId", void 0);
21
+ __decorate([
22
+ Column({ type: 'varchar', nullable: true }),
23
+ __metadata("design:type", String)
24
+ ], ControlledGoodsRecord.prototype, "createdById", void 0);
25
+ __decorate([
26
+ Column({ type: 'varchar' }),
27
+ __metadata("design:type", String)
28
+ ], ControlledGoodsRecord.prototype, "productName", void 0);
29
+ __decorate([
30
+ Column({ type: 'varchar', nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], ControlledGoodsRecord.prototype, "hsCode", void 0);
33
+ __decorate([
34
+ Column({ type: 'jsonb', nullable: true }),
35
+ __metadata("design:type", Array)
36
+ ], ControlledGoodsRecord.prototype, "keywords", void 0);
37
+ __decorate([
38
+ Column({ type: 'text', nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], ControlledGoodsRecord.prototype, "controlNote", void 0);
41
+ __decorate([
42
+ Column({ type: 'boolean', default: true }),
43
+ __metadata("design:type", Boolean)
44
+ ], ControlledGoodsRecord.prototype, "enabled", void 0);
45
+ __decorate([
46
+ Column({ type: 'varchar', nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], ControlledGoodsRecord.prototype, "sourceFileName", void 0);
49
+ __decorate([
50
+ Column({ type: 'varchar', nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], ControlledGoodsRecord.prototype, "sourceLocation", void 0);
53
+ __decorate([
54
+ CreateDateColumn({ type: 'timestamptz' }),
55
+ __metadata("design:type", Date)
56
+ ], ControlledGoodsRecord.prototype, "createdAt", void 0);
57
+ __decorate([
58
+ UpdateDateColumn({ type: 'timestamptz' }),
59
+ __metadata("design:type", Date)
60
+ ], ControlledGoodsRecord.prototype, "updatedAt", void 0);
61
+ ControlledGoodsRecord = __decorate([
62
+ Entity('plugin_trade_compliance_controlled_goods'),
63
+ Index(['tenantId', 'organizationId', 'hsCode']),
64
+ Index(['tenantId', 'organizationId', 'enabled'])
65
+ ], ControlledGoodsRecord);
66
+ export { ControlledGoodsRecord };
67
+ //# sourceMappingURL=controlled-goods-record.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlled-goods-record.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/controlled-goods-record.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAKpG,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CA0CjC,CAAA;AAxCC;IADC,sBAAsB,CAAC,MAAM,CAAC;;iDACpB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AAK,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IAC/C,KAAK,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;GACpC,qBAAqB,CA0CjC"}
@@ -0,0 +1,18 @@
1
+ export declare class CustomsWorkbookGeneration {
2
+ id?: string;
3
+ tenantId?: string;
4
+ organizationId?: string;
5
+ workspaceId?: string;
6
+ assistantId?: string;
7
+ createdById?: string;
8
+ sourceFileName?: string;
9
+ invoiceNo?: string;
10
+ contractNo?: string;
11
+ fileName: string;
12
+ status?: string;
13
+ sheetNames?: string[];
14
+ workbookData?: Record<string, unknown>;
15
+ createdAt?: Date;
16
+ updatedAt?: Date;
17
+ }
18
+ //# sourceMappingURL=customs-workbook-generation.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customs-workbook-generation.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/customs-workbook-generation.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,yBAAyB;IAEpC,EAAE,CAAC,EAAE,MAAM,CAAA;IAGX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,QAAQ,EAAG,MAAM,CAAA;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAGrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAGtC,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
@@ -0,0 +1,71 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
3
+ let CustomsWorkbookGeneration = class CustomsWorkbookGeneration {
4
+ };
5
+ __decorate([
6
+ PrimaryGeneratedColumn('uuid'),
7
+ __metadata("design:type", String)
8
+ ], CustomsWorkbookGeneration.prototype, "id", void 0);
9
+ __decorate([
10
+ Column({ type: 'varchar', nullable: true }),
11
+ __metadata("design:type", String)
12
+ ], CustomsWorkbookGeneration.prototype, "tenantId", void 0);
13
+ __decorate([
14
+ Column({ type: 'varchar', nullable: true }),
15
+ __metadata("design:type", String)
16
+ ], CustomsWorkbookGeneration.prototype, "organizationId", void 0);
17
+ __decorate([
18
+ Column({ type: 'varchar', nullable: true }),
19
+ __metadata("design:type", String)
20
+ ], CustomsWorkbookGeneration.prototype, "workspaceId", void 0);
21
+ __decorate([
22
+ Column({ type: 'varchar', nullable: true }),
23
+ __metadata("design:type", String)
24
+ ], CustomsWorkbookGeneration.prototype, "assistantId", void 0);
25
+ __decorate([
26
+ Column({ type: 'varchar', nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], CustomsWorkbookGeneration.prototype, "createdById", void 0);
29
+ __decorate([
30
+ Column({ type: 'varchar', nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], CustomsWorkbookGeneration.prototype, "sourceFileName", void 0);
33
+ __decorate([
34
+ Column({ type: 'varchar', nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], CustomsWorkbookGeneration.prototype, "invoiceNo", void 0);
37
+ __decorate([
38
+ Column({ type: 'varchar', nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], CustomsWorkbookGeneration.prototype, "contractNo", void 0);
41
+ __decorate([
42
+ Column({ type: 'varchar' }),
43
+ __metadata("design:type", String)
44
+ ], CustomsWorkbookGeneration.prototype, "fileName", void 0);
45
+ __decorate([
46
+ Column({ type: 'varchar', default: 'generated' }),
47
+ __metadata("design:type", String)
48
+ ], CustomsWorkbookGeneration.prototype, "status", void 0);
49
+ __decorate([
50
+ Column({ type: 'jsonb', nullable: true }),
51
+ __metadata("design:type", Array)
52
+ ], CustomsWorkbookGeneration.prototype, "sheetNames", void 0);
53
+ __decorate([
54
+ Column({ type: 'jsonb', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], CustomsWorkbookGeneration.prototype, "workbookData", void 0);
57
+ __decorate([
58
+ CreateDateColumn({ type: 'timestamptz' }),
59
+ __metadata("design:type", Date)
60
+ ], CustomsWorkbookGeneration.prototype, "createdAt", void 0);
61
+ __decorate([
62
+ UpdateDateColumn({ type: 'timestamptz' }),
63
+ __metadata("design:type", Date)
64
+ ], CustomsWorkbookGeneration.prototype, "updatedAt", void 0);
65
+ CustomsWorkbookGeneration = __decorate([
66
+ Entity('plugin_trade_compliance_customs_workbook'),
67
+ Index(['tenantId', 'organizationId', 'invoiceNo']),
68
+ Index(['tenantId', 'organizationId', 'status'])
69
+ ], CustomsWorkbookGeneration);
70
+ export { CustomsWorkbookGeneration };
71
+ //# sourceMappingURL=customs-workbook-generation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customs-workbook-generation.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/customs-workbook-generation.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAKpG,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CA6CrC,CAAA;AA3CC;IADC,sBAAsB,CAAC,MAAM,CAAC;;qDACpB;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC3B;AAGjB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACrB;AAGvB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gB,EAAE,QAAQ,CAAC,CAAC;GACnC,yBAAyB,CA6CrC"}
@@ -0,0 +1,7 @@
1
+ export * from './trade-compliance-import-batch.entity.js';
2
+ export * from './trade-compliance-review-item.entity.js';
3
+ export * from './controlled-goods-record.entity.js';
4
+ export * from './trade-supplier.entity.js';
5
+ export * from './trade-product.entity.js';
6
+ export * from './customs-workbook-generation.entity.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,qCAAqC,CAAA;AACnD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './trade-compliance-import-batch.entity.js';
2
+ export * from './trade-compliance-review-item.entity.js';
3
+ export * from './controlled-goods-record.entity.js';
4
+ export * from './trade-supplier.entity.js';
5
+ export * from './trade-product.entity.js';
6
+ export * from './customs-workbook-generation.entity.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,qCAAqC,CAAA;AACnD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { ImportBatchType } from '../types.js';
2
+ export declare class TradeComplianceImportBatch {
3
+ id?: string;
4
+ tenantId?: string;
5
+ organizationId?: string;
6
+ workspaceId?: string;
7
+ assistantId?: string;
8
+ createdById?: string;
9
+ type: ImportBatchType;
10
+ status?: string;
11
+ sourceFileName?: string;
12
+ metadata?: Record<string, unknown>;
13
+ createdAt?: Date;
14
+ updatedAt?: Date;
15
+ }
16
+ //# sourceMappingURL=trade-compliance-import-batch.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trade-compliance-import-batch.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/trade-compliance-import-batch.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,qBAGa,0BAA0B;IAErC,EAAE,CAAC,EAAE,MAAM,CAAA;IAGX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,IAAI,EAAG,eAAe,CAAA;IAGtB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAGlC,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}