@chenchaolong/plugin-trade-compliance-workbench 1.0.53 → 1.0.55
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/lib/remote-components/trade-compliance-workbench/app.js +4 -4
- package/dist/lib/remote-ui/purchase-review-adapter.d.ts +6 -2
- package/dist/lib/remote-ui/purchase-review-adapter.d.ts.map +1 -1
- package/dist/lib/remote-ui/purchase-review-adapter.js +5 -3
- package/dist/lib/remote-ui/purchase-review-adapter.js.map +1 -1
- package/dist/lib/schema-maintenance.js +4 -4
- package/dist/lib/workbench.middleware.d.ts +444 -15
- package/dist/lib/workbench.middleware.d.ts.map +1 -1
- package/dist/lib/workbench.middleware.js +32 -1
- package/dist/lib/workbench.middleware.js.map +1 -1
- package/dist/lib/workbench.service.d.ts.map +1 -1
- package/dist/lib/workbench.service.js +9 -2
- package/dist/lib/workbench.service.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type { ContractImportTask } from './contract-import.js';
|
|
2
1
|
import type { PurchaseContractReviewDraft } from './procurement-contracts.js';
|
|
3
|
-
|
|
2
|
+
type PurchaseReviewSource = {
|
|
3
|
+
resultPayload?: Record<string, unknown> | null;
|
|
4
|
+
sourceFileName?: string | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function adaptPurchaseReview<T extends PurchaseReviewSource>(task: T): PurchaseContractReviewDraft;
|
|
7
|
+
export {};
|
|
4
8
|
//# sourceMappingURL=purchase-review-adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase-review-adapter.d.ts","sourceRoot":"","sources":["../../../src/lib/remote-ui/purchase-review-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"purchase-review-adapter.d.ts","sourceRoot":"","sources":["../../../src/lib/remote-ui/purchase-review-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAE7E,KAAK,oBAAoB,GAAG;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAC9C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,oBAAoB,EAAE,IAAI,EAAE,CAAC,GAAG,2BAA2B,CAWxG"}
|
|
@@ -24,9 +24,9 @@ function normalizeOrder(order) {
|
|
|
24
24
|
return {
|
|
25
25
|
...order,
|
|
26
26
|
supplierId: textFrom(order, ['supplierId']),
|
|
27
|
-
contractNo: textFrom(order, ['contractNo']),
|
|
27
|
+
contractNo: textFrom(order, ['contractNo', 'number']),
|
|
28
28
|
orderDate: textFrom(order, ['orderDate', 'date', 'contractDate']),
|
|
29
|
-
contractAmountCny: decimalTextFrom(order, ['contractAmountCny', 'totalAmount'], '0'),
|
|
29
|
+
contractAmountCny: decimalTextFrom(order, ['contractAmountCny', 'totalAmount', 'amount'], '0'),
|
|
30
30
|
paidAmountCny: decimalTextFrom(order, ['paidAmountCny'], '0'),
|
|
31
31
|
refundedAmountCny: decimalTextFrom(order, ['refundedAmountCny'], '0')
|
|
32
32
|
};
|
|
@@ -35,7 +35,9 @@ function normalizeLine(line, index) {
|
|
|
35
35
|
return {
|
|
36
36
|
...line,
|
|
37
37
|
lineNumber: numericFrom(line, ['lineNumber'], index + 1),
|
|
38
|
-
productName: textFrom(line, ['productName']),
|
|
38
|
+
productName: textFrom(line, ['productName', 'name']),
|
|
39
|
+
productDescription: nullableTextFrom(line, ['productDescription', 'description']),
|
|
40
|
+
modelSpecification: nullableTextFrom(line, ['modelSpecification', 'model']),
|
|
39
41
|
quantity: decimalTextFrom(line, ['quantity'], '0'),
|
|
40
42
|
unitPriceTaxIncluded: decimalTextFrom(line, ['unitPriceTaxIncluded', 'taxInclusiveUnitPrice', 'unitPrice'], '0'),
|
|
41
43
|
lineAmountTaxIncluded: decimalTextFrom(line, ['lineAmountTaxIncluded', 'taxInclusiveTotalAmount', 'totalAmount'], '0'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase-review-adapter.js","sourceRoot":"","sources":["../../../src/lib/remote-ui/purchase-review-adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"purchase-review-adapter.js","sourceRoot":"","sources":["../../../src/lib/remote-ui/purchase-review-adapter.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,mBAAmB,CAAiC,IAAO;IACzE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC1C,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACnC,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC1H,OAAO;QACL,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC;QACrC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC;QAC5B,KAAK;QACL,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,IAAI;KAC5C,CAAA;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAiC;IAC1D,OAAO;QACL,GAAG,QAAQ;QACX,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;QAClD,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC,CA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attribute.attname::text
|
|
36
36
|
FROM unnest(index_meta.indkey) WITH ORDINALITY AS key_column(attnum, ordinal)
|
|
37
37
|
INNER JOIN pg_attribute attribute ON attribute.attrelid = index_meta.indrelid AND attribute.attnum = key_column.attnum
|
|
38
38
|
WHERE key_column.ordinal <= index_meta.indnkeyatts
|
|
@@ -53,7 +53,7 @@ BEGIN
|
|
|
53
53
|
AND index_meta.indisunique
|
|
54
54
|
AND index_class.relname <> 'UQ_tcw_sanctioned_company_active_business_key'
|
|
55
55
|
AND ARRAY(
|
|
56
|
-
SELECT attribute.attname
|
|
56
|
+
SELECT attribute.attname::text
|
|
57
57
|
FROM unnest(index_meta.indkey) WITH ORDINALITY AS key_column(attnum, ordinal)
|
|
58
58
|
INNER JOIN pg_attribute attribute ON attribute.attrelid = index_meta.indrelid AND attribute.attnum = key_column.attnum
|
|
59
59
|
WHERE key_column.ordinal <= index_meta.indnkeyatts
|
|
@@ -78,7 +78,7 @@ BEGIN
|
|
|
78
78
|
AND index_class.relname = 'UQ_tcw_controlled_goods_active_business_key'
|
|
79
79
|
AND index_meta.indisunique
|
|
80
80
|
AND ARRAY(
|
|
81
|
-
SELECT attribute.attname
|
|
81
|
+
SELECT attribute.attname::text
|
|
82
82
|
FROM unnest(index_meta.indkey) WITH ORDINALITY AS key_column(attnum, ordinal)
|
|
83
83
|
INNER JOIN pg_attribute attribute ON attribute.attrelid = index_meta.indrelid AND attribute.attnum = key_column.attnum
|
|
84
84
|
WHERE key_column.ordinal <= index_meta.indnkeyatts
|
|
@@ -107,7 +107,7 @@ BEGIN
|
|
|
107
107
|
AND index_class.relname = 'UQ_tcw_sanctioned_company_active_business_key'
|
|
108
108
|
AND index_meta.indisunique
|
|
109
109
|
AND ARRAY(
|
|
110
|
-
SELECT attribute.attname
|
|
110
|
+
SELECT attribute.attname::text
|
|
111
111
|
FROM unnest(index_meta.indkey) WITH ORDINALITY AS key_column(attnum, ordinal)
|
|
112
112
|
INNER JOIN pg_attribute attribute ON attribute.attrelid = index_meta.indrelid AND attribute.attnum = key_column.attnum
|
|
113
113
|
WHERE key_column.ordinal <= index_meta.indnkeyatts
|
|
@@ -320,29 +320,458 @@ export declare class TradeComplianceWorkbenchMiddleware {
|
|
|
320
320
|
replaceBatchId?: string | undefined;
|
|
321
321
|
}, string> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
322
322
|
importTaskId: z.ZodString;
|
|
323
|
-
supplier: z.
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
supplier: z.ZodObject<{
|
|
324
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
creditCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
supplierCreditCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
supplierAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
|
+
countryOrRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
333
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
|
+
contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
wechat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
taxNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
taxNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
paymentAccount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
bankName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
taxpayerRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
businessProducts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
347
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
creditCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
supplierCreditCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
353
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
+
supplierAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
+
countryOrRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
|
+
wechat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
taxNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
taxNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
|
+
paymentAccount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
bankName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
taxpayerRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
367
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
|
+
businessProducts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
369
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
370
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
371
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
372
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
373
|
+
shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
374
|
+
creditCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
375
|
+
supplierCreditCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
+
supplierAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
|
+
countryOrRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
|
+
wechat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
385
|
+
taxNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
taxNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
paymentAccount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
|
+
bankName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
|
+
taxpayerRating: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
391
|
+
businessProducts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
392
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
393
|
+
order: z.ZodObject<{
|
|
394
|
+
contractNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
395
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
|
+
orderDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
397
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
+
contractDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
|
+
contractAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
400
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
401
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
402
|
+
paidAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
403
|
+
refundedAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
404
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
|
+
paymentTerm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
407
|
+
contractNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
408
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
409
|
+
orderDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
contractDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
contractAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
413
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
414
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
415
|
+
paidAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
416
|
+
refundedAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
417
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
|
+
paymentTerm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
419
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
420
|
+
contractNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
orderDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
contractDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
contractAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
426
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
427
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
428
|
+
paidAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
429
|
+
refundedAmountCny: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
430
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
paymentTerm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
433
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
434
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
442
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
443
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
444
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
445
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
446
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
447
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
448
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
449
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
450
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
451
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
452
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
453
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
454
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
455
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
456
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
457
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
458
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
463
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
464
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
466
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
467
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
468
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
469
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
470
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
471
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
472
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
473
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
474
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
476
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
477
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
478
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
480
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
482
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
484
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
489
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
490
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
491
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
492
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
493
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
494
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
495
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
496
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
500
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
502
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
326
503
|
}, "strip", z.ZodTypeAny, {
|
|
327
504
|
importTaskId: string;
|
|
328
|
-
lines:
|
|
329
|
-
|
|
330
|
-
|
|
505
|
+
lines: z.objectOutputType<{
|
|
506
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
513
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
515
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
516
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
517
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
518
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
519
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
520
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
521
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
522
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
523
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
526
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
527
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
529
|
+
supplier: {
|
|
530
|
+
code?: string | null | undefined;
|
|
531
|
+
countryOrRegion?: string | null | undefined;
|
|
532
|
+
name?: string | null | undefined;
|
|
533
|
+
shortName?: string | null | undefined;
|
|
534
|
+
address?: string | null | undefined;
|
|
535
|
+
contactName?: string | null | undefined;
|
|
536
|
+
phone?: string | null | undefined;
|
|
537
|
+
wechat?: string | null | undefined;
|
|
538
|
+
email?: string | null | undefined;
|
|
539
|
+
taxNumber?: string | null | undefined;
|
|
540
|
+
paymentAccount?: string | null | undefined;
|
|
541
|
+
bankName?: string | null | undefined;
|
|
542
|
+
taxpayerRating?: string | null | undefined;
|
|
543
|
+
website?: string | null | undefined;
|
|
544
|
+
businessProducts?: string | null | undefined;
|
|
545
|
+
country?: string | null | undefined;
|
|
546
|
+
supplierName?: string | null | undefined;
|
|
547
|
+
creditCode?: string | null | undefined;
|
|
548
|
+
supplierCreditCode?: string | null | undefined;
|
|
549
|
+
supplierAddress?: string | null | undefined;
|
|
550
|
+
contactPhone?: string | null | undefined;
|
|
551
|
+
taxNo?: string | null | undefined;
|
|
552
|
+
} & {
|
|
553
|
+
[k: string]: unknown;
|
|
554
|
+
};
|
|
555
|
+
order: {
|
|
556
|
+
number?: string | null | undefined;
|
|
557
|
+
date?: string | null | undefined;
|
|
558
|
+
orderDate?: string | null | undefined;
|
|
559
|
+
contractNo?: string | null | undefined;
|
|
560
|
+
contractAmountCny?: string | number | null | undefined;
|
|
561
|
+
paidAmountCny?: string | number | null | undefined;
|
|
562
|
+
refundedAmountCny?: string | number | null | undefined;
|
|
563
|
+
amount?: string | number | null | undefined;
|
|
564
|
+
contractDate?: string | null | undefined;
|
|
565
|
+
totalAmount?: string | number | null | undefined;
|
|
566
|
+
currency?: string | null | undefined;
|
|
567
|
+
paymentTerm?: string | null | undefined;
|
|
568
|
+
} & {
|
|
569
|
+
[k: string]: unknown;
|
|
570
|
+
};
|
|
331
571
|
}, {
|
|
332
572
|
importTaskId: string;
|
|
333
|
-
lines:
|
|
334
|
-
|
|
335
|
-
|
|
573
|
+
lines: z.objectInputType<{
|
|
574
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
575
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
577
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
578
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
579
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
581
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
583
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
584
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
585
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
586
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
587
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
588
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
589
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
590
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
594
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
595
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
596
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
597
|
+
supplier: {
|
|
598
|
+
code?: string | null | undefined;
|
|
599
|
+
countryOrRegion?: string | null | undefined;
|
|
600
|
+
name?: string | null | undefined;
|
|
601
|
+
shortName?: string | null | undefined;
|
|
602
|
+
address?: string | null | undefined;
|
|
603
|
+
contactName?: string | null | undefined;
|
|
604
|
+
phone?: string | null | undefined;
|
|
605
|
+
wechat?: string | null | undefined;
|
|
606
|
+
email?: string | null | undefined;
|
|
607
|
+
taxNumber?: string | null | undefined;
|
|
608
|
+
paymentAccount?: string | null | undefined;
|
|
609
|
+
bankName?: string | null | undefined;
|
|
610
|
+
taxpayerRating?: string | null | undefined;
|
|
611
|
+
website?: string | null | undefined;
|
|
612
|
+
businessProducts?: string | null | undefined;
|
|
613
|
+
country?: string | null | undefined;
|
|
614
|
+
supplierName?: string | null | undefined;
|
|
615
|
+
creditCode?: string | null | undefined;
|
|
616
|
+
supplierCreditCode?: string | null | undefined;
|
|
617
|
+
supplierAddress?: string | null | undefined;
|
|
618
|
+
contactPhone?: string | null | undefined;
|
|
619
|
+
taxNo?: string | null | undefined;
|
|
620
|
+
} & {
|
|
621
|
+
[k: string]: unknown;
|
|
622
|
+
};
|
|
623
|
+
order: {
|
|
624
|
+
number?: string | null | undefined;
|
|
625
|
+
date?: string | null | undefined;
|
|
626
|
+
orderDate?: string | null | undefined;
|
|
627
|
+
contractNo?: string | null | undefined;
|
|
628
|
+
contractAmountCny?: string | number | null | undefined;
|
|
629
|
+
paidAmountCny?: string | number | null | undefined;
|
|
630
|
+
refundedAmountCny?: string | number | null | undefined;
|
|
631
|
+
amount?: string | number | null | undefined;
|
|
632
|
+
contractDate?: string | null | undefined;
|
|
633
|
+
totalAmount?: string | number | null | undefined;
|
|
634
|
+
currency?: string | null | undefined;
|
|
635
|
+
paymentTerm?: string | null | undefined;
|
|
636
|
+
} & {
|
|
637
|
+
[k: string]: unknown;
|
|
638
|
+
};
|
|
336
639
|
}>, {
|
|
337
640
|
importTaskId: string;
|
|
338
|
-
lines:
|
|
339
|
-
|
|
340
|
-
|
|
641
|
+
lines: z.objectOutputType<{
|
|
642
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
644
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
648
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
649
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
650
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
651
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
652
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
653
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
654
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
655
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
656
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
657
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
658
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
659
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
660
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
661
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
662
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
663
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
665
|
+
supplier: {
|
|
666
|
+
code?: string | null | undefined;
|
|
667
|
+
countryOrRegion?: string | null | undefined;
|
|
668
|
+
name?: string | null | undefined;
|
|
669
|
+
shortName?: string | null | undefined;
|
|
670
|
+
address?: string | null | undefined;
|
|
671
|
+
contactName?: string | null | undefined;
|
|
672
|
+
phone?: string | null | undefined;
|
|
673
|
+
wechat?: string | null | undefined;
|
|
674
|
+
email?: string | null | undefined;
|
|
675
|
+
taxNumber?: string | null | undefined;
|
|
676
|
+
paymentAccount?: string | null | undefined;
|
|
677
|
+
bankName?: string | null | undefined;
|
|
678
|
+
taxpayerRating?: string | null | undefined;
|
|
679
|
+
website?: string | null | undefined;
|
|
680
|
+
businessProducts?: string | null | undefined;
|
|
681
|
+
country?: string | null | undefined;
|
|
682
|
+
supplierName?: string | null | undefined;
|
|
683
|
+
creditCode?: string | null | undefined;
|
|
684
|
+
supplierCreditCode?: string | null | undefined;
|
|
685
|
+
supplierAddress?: string | null | undefined;
|
|
686
|
+
contactPhone?: string | null | undefined;
|
|
687
|
+
taxNo?: string | null | undefined;
|
|
688
|
+
} & {
|
|
689
|
+
[k: string]: unknown;
|
|
690
|
+
};
|
|
691
|
+
order: {
|
|
692
|
+
number?: string | null | undefined;
|
|
693
|
+
date?: string | null | undefined;
|
|
694
|
+
orderDate?: string | null | undefined;
|
|
695
|
+
contractNo?: string | null | undefined;
|
|
696
|
+
contractAmountCny?: string | number | null | undefined;
|
|
697
|
+
paidAmountCny?: string | number | null | undefined;
|
|
698
|
+
refundedAmountCny?: string | number | null | undefined;
|
|
699
|
+
amount?: string | number | null | undefined;
|
|
700
|
+
contractDate?: string | null | undefined;
|
|
701
|
+
totalAmount?: string | number | null | undefined;
|
|
702
|
+
currency?: string | null | undefined;
|
|
703
|
+
paymentTerm?: string | null | undefined;
|
|
704
|
+
} & {
|
|
705
|
+
[k: string]: unknown;
|
|
706
|
+
};
|
|
341
707
|
}, {
|
|
342
708
|
importTaskId: string;
|
|
343
|
-
lines:
|
|
344
|
-
|
|
345
|
-
|
|
709
|
+
lines: z.objectInputType<{
|
|
710
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
711
|
+
productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
712
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
713
|
+
productDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
714
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
715
|
+
modelSpecification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
716
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
717
|
+
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
719
|
+
unitPriceTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
720
|
+
taxInclusiveUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
721
|
+
unitPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
722
|
+
lineAmountTaxIncluded: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
723
|
+
taxInclusiveTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
724
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
725
|
+
vatRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
726
|
+
hsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
727
|
+
contractHsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
728
|
+
englishName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
729
|
+
refundRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
730
|
+
sourceLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
731
|
+
sourceContent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
732
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
733
|
+
supplier: {
|
|
734
|
+
code?: string | null | undefined;
|
|
735
|
+
countryOrRegion?: string | null | undefined;
|
|
736
|
+
name?: string | null | undefined;
|
|
737
|
+
shortName?: string | null | undefined;
|
|
738
|
+
address?: string | null | undefined;
|
|
739
|
+
contactName?: string | null | undefined;
|
|
740
|
+
phone?: string | null | undefined;
|
|
741
|
+
wechat?: string | null | undefined;
|
|
742
|
+
email?: string | null | undefined;
|
|
743
|
+
taxNumber?: string | null | undefined;
|
|
744
|
+
paymentAccount?: string | null | undefined;
|
|
745
|
+
bankName?: string | null | undefined;
|
|
746
|
+
taxpayerRating?: string | null | undefined;
|
|
747
|
+
website?: string | null | undefined;
|
|
748
|
+
businessProducts?: string | null | undefined;
|
|
749
|
+
country?: string | null | undefined;
|
|
750
|
+
supplierName?: string | null | undefined;
|
|
751
|
+
creditCode?: string | null | undefined;
|
|
752
|
+
supplierCreditCode?: string | null | undefined;
|
|
753
|
+
supplierAddress?: string | null | undefined;
|
|
754
|
+
contactPhone?: string | null | undefined;
|
|
755
|
+
taxNo?: string | null | undefined;
|
|
756
|
+
} & {
|
|
757
|
+
[k: string]: unknown;
|
|
758
|
+
};
|
|
759
|
+
order: {
|
|
760
|
+
number?: string | null | undefined;
|
|
761
|
+
date?: string | null | undefined;
|
|
762
|
+
orderDate?: string | null | undefined;
|
|
763
|
+
contractNo?: string | null | undefined;
|
|
764
|
+
contractAmountCny?: string | number | null | undefined;
|
|
765
|
+
paidAmountCny?: string | number | null | undefined;
|
|
766
|
+
refundedAmountCny?: string | number | null | undefined;
|
|
767
|
+
amount?: string | number | null | undefined;
|
|
768
|
+
contractDate?: string | null | undefined;
|
|
769
|
+
totalAmount?: string | number | null | undefined;
|
|
770
|
+
currency?: string | null | undefined;
|
|
771
|
+
paymentTerm?: string | null | undefined;
|
|
772
|
+
} & {
|
|
773
|
+
[k: string]: unknown;
|
|
774
|
+
};
|
|
346
775
|
}, string> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
347
776
|
importTaskId: z.ZodString;
|
|
348
777
|
customer: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbench.middleware.d.ts","sourceRoot":"","sources":["../../src/lib/workbench.middleware.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACxI,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"workbench.middleware.d.ts","sourceRoot":"","sources":["../../src/lib/workbench.middleware.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACxI,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AAg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