item-wms-public-api-tool 2.0.4
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/AI_INTEGRATION_GUIDE.md +492 -0
- package/HELP.md +297 -0
- package/README.md +259 -0
- package/api/README.md +9 -0
- package/api/openapi.apifox.yaml +20771 -0
- package/dist/cli.d.ts +10 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +326 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +76 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +32 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +109 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/openapi-tools.d.ts +25 -0
- package/dist/openapi-tools.d.ts.map +1 -0
- package/dist/openapi-tools.js +287 -0
- package/dist/openapi-tools.js.map +1 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +442 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/batchImportItemMaster.d.ts +59 -0
- package/dist/tools/batchImportItemMaster.d.ts.map +1 -0
- package/dist/tools/batchImportItemMaster.js +27 -0
- package/dist/tools/batchImportItemMaster.js.map +1 -0
- package/dist/tools/batchUploadOrderFiles.d.ts +29 -0
- package/dist/tools/batchUploadOrderFiles.d.ts.map +1 -0
- package/dist/tools/batchUploadOrderFiles.js +96 -0
- package/dist/tools/batchUploadOrderFiles.js.map +1 -0
- package/dist/tools/importInbound.d.ts +62 -0
- package/dist/tools/importInbound.d.ts.map +1 -0
- package/dist/tools/importInbound.js +22 -0
- package/dist/tools/importInbound.js.map +1 -0
- package/dist/tools/importOutbound.d.ts +76 -0
- package/dist/tools/importOutbound.d.ts.map +1 -0
- package/dist/tools/importOutbound.js +25 -0
- package/dist/tools/importOutbound.js.map +1 -0
- package/dist/tools/itemGet.d.ts +15 -0
- package/dist/tools/itemGet.d.ts.map +1 -0
- package/dist/tools/itemGet.js +12 -0
- package/dist/tools/itemGet.js.map +1 -0
- package/dist/tools/itemSearch.d.ts +8 -0
- package/dist/tools/itemSearch.d.ts.map +1 -0
- package/dist/tools/itemSearch.js +17 -0
- package/dist/tools/itemSearch.js.map +1 -0
- package/dist/tools/login.d.ts +26 -0
- package/dist/tools/login.d.ts.map +1 -0
- package/dist/tools/login.js +15 -0
- package/dist/tools/login.js.map +1 -0
- package/dist/tools/queryItemMaster.d.ts +63 -0
- package/dist/tools/queryItemMaster.d.ts.map +1 -0
- package/dist/tools/queryItemMaster.js +9 -0
- package/dist/tools/queryItemMaster.js.map +1 -0
- package/dist/tools/queryOrder.d.ts +74 -0
- package/dist/tools/queryOrder.d.ts.map +1 -0
- package/dist/tools/queryOrder.js +19 -0
- package/dist/tools/queryOrder.js.map +1 -0
- package/dist/tools/queryOrderDC.d.ts +25 -0
- package/dist/tools/queryOrderDC.d.ts.map +1 -0
- package/dist/tools/queryOrderDC.js +19 -0
- package/dist/tools/queryOrderDC.js.map +1 -0
- package/dist/tools/queryOrderDetail.d.ts +70 -0
- package/dist/tools/queryOrderDetail.d.ts.map +1 -0
- package/dist/tools/queryOrderDetail.js +19 -0
- package/dist/tools/queryOrderDetail.js.map +1 -0
- package/dist/tools/queryReceipt.d.ts +70 -0
- package/dist/tools/queryReceipt.d.ts.map +1 -0
- package/dist/tools/queryReceipt.js +19 -0
- package/dist/tools/queryReceipt.js.map +1 -0
- package/dist/tools/queryReceiptDetail.d.ts +70 -0
- package/dist/tools/queryReceiptDetail.d.ts.map +1 -0
- package/dist/tools/queryReceiptDetail.js +19 -0
- package/dist/tools/queryReceiptDetail.js.map +1 -0
- package/dist/tools/queryReceiptRC.d.ts +25 -0
- package/dist/tools/queryReceiptRC.d.ts.map +1 -0
- package/dist/tools/queryReceiptRC.js +19 -0
- package/dist/tools/queryReceiptRC.js.map +1 -0
- package/dist/tools/uploadOrderFile.d.ts +25 -0
- package/dist/tools/uploadOrderFile.d.ts.map +1 -0
- package/dist/tools/uploadOrderFile.js +94 -0
- package/dist/tools/uploadOrderFile.js.map +1 -0
- package/dist/tools/validateInbound.d.ts +13 -0
- package/dist/tools/validateInbound.d.ts.map +1 -0
- package/dist/tools/validateInbound.js +18 -0
- package/dist/tools/validateInbound.js.map +1 -0
- package/llms.txt +23 -0
- package/mcp.json +6562 -0
- package/mcp.schema.json +100 -0
- package/openapi.yaml +20685 -0
- package/package.json +34 -0
- package/scripts/sync-openapi.js +289 -0
- package/src/cli.ts +353 -0
- package/src/client.ts +90 -0
- package/src/config.ts +126 -0
- package/src/index.ts +31 -0
- package/src/openapi-tools.ts +346 -0
- package/src/server.ts +472 -0
- package/test-ai-integration.js +128 -0
- package/test-fix.js +68 -0
- package/test-mcp.js +92 -0
- package/test-order.json +25 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type Paging = {
|
|
3
|
+
page?: number;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export type ObjectWrapper = {
|
|
7
|
+
data: any[] | null;
|
|
8
|
+
};
|
|
9
|
+
export type OrderDcPublicData = {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
export type QueryOrderDCInput = {
|
|
13
|
+
CompanyID: string;
|
|
14
|
+
FacilityID: string;
|
|
15
|
+
CustomerID: string;
|
|
16
|
+
PONo?: string | null;
|
|
17
|
+
ReferenceNo?: string | null;
|
|
18
|
+
CreatedWhenFrom?: string | null;
|
|
19
|
+
CreatedWhenTo?: string | null;
|
|
20
|
+
CustomerSONo?: string | null;
|
|
21
|
+
Paging?: Paging | null;
|
|
22
|
+
};
|
|
23
|
+
export type QueryOrderDCResult = OrderDcPublicData;
|
|
24
|
+
export declare function queryOrderDC(input: QueryOrderDCInput, options: ClientOptions): Promise<QueryOrderDCResult>;
|
|
25
|
+
//# sourceMappingURL=queryOrderDC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOrderDC.d.ts","sourceRoot":"","sources":["../../src/tools/queryOrderDC.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAQ,MAAM,WAAW,CAAC;AAGhD,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAEnB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG;IAG9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAEnD,wBAAsB,YAAY,CAChC,KAAK,EAAE,iBAAiB,EACxB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,kBAAkB,CAAC,CAiB7B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryOrderDC = queryOrderDC;
|
|
4
|
+
// src/tools/queryOrderDC.ts
|
|
5
|
+
const client_1 = require("../client");
|
|
6
|
+
async function queryOrderDC(input, options) {
|
|
7
|
+
// 验证必填字段
|
|
8
|
+
if (!input.CompanyID) {
|
|
9
|
+
throw new Error('CompanyID is required');
|
|
10
|
+
}
|
|
11
|
+
if (!input.FacilityID) {
|
|
12
|
+
throw new Error('FacilityID is required');
|
|
13
|
+
}
|
|
14
|
+
if (!input.CustomerID) {
|
|
15
|
+
throw new Error('CustomerID is required');
|
|
16
|
+
}
|
|
17
|
+
return (0, client_1.post)('/v1/public/edi/outbound/order/dc/search-by-paging', input, options);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=queryOrderDC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOrderDC.js","sourceRoot":"","sources":["../../src/tools/queryOrderDC.ts"],"names":[],"mappings":";;AAsCA,oCAoBC;AA1DD,4BAA4B;AAC5B,sCAAgD;AAqCzC,KAAK,UAAU,YAAY,CAChC,KAAwB,EACxB,OAAsB;IAEtB,SAAS;IACT,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAA,aAAI,EACT,mDAAmD,EACnD,KAAK,EACL,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type Paging = {
|
|
3
|
+
page?: number;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export type ItemPublicData = {
|
|
7
|
+
ActionCode_AU: string;
|
|
8
|
+
allowOverWriteItem: string;
|
|
9
|
+
companyId: string;
|
|
10
|
+
supplierId: string;
|
|
11
|
+
customerId: string;
|
|
12
|
+
itemID: string;
|
|
13
|
+
itemDescription: string;
|
|
14
|
+
shortDescription: string;
|
|
15
|
+
abbreviation: string;
|
|
16
|
+
ItemGroupID: string;
|
|
17
|
+
ItemSubGroupID: string;
|
|
18
|
+
tags: string[];
|
|
19
|
+
labels: string;
|
|
20
|
+
brandID: string;
|
|
21
|
+
groupIDs: string[];
|
|
22
|
+
grade: string;
|
|
23
|
+
billingGrade: string;
|
|
24
|
+
freightClass: string;
|
|
25
|
+
countLevel?: number | null;
|
|
26
|
+
nmfc: string;
|
|
27
|
+
commodityDescription: string;
|
|
28
|
+
countryOrigin: string;
|
|
29
|
+
fileIDs: string;
|
|
30
|
+
UPCCode: string;
|
|
31
|
+
UPCCode_Case: string;
|
|
32
|
+
EANCode: string;
|
|
33
|
+
isBundle: string;
|
|
34
|
+
hasSerialNumber: string;
|
|
35
|
+
serialNoLength?: number | null;
|
|
36
|
+
isHazardousMaterial: string;
|
|
37
|
+
status: string;
|
|
38
|
+
validationInboundSerialNo: string;
|
|
39
|
+
requireCollectLotNoOnReceive: string;
|
|
40
|
+
requireCollectSnOnReceive: string;
|
|
41
|
+
validationOutboundSerialNo: string;
|
|
42
|
+
needScanOutboundSerialNo: string;
|
|
43
|
+
isAllowOverWriteSuggestedPickLP: string;
|
|
44
|
+
'Shipping Rule': string;
|
|
45
|
+
requireCollectExpirationDateOnReceive: string;
|
|
46
|
+
'Ship Allowed Days': string;
|
|
47
|
+
requireCollectMfgDateOnReceive: string;
|
|
48
|
+
requireCollectShelfLifeDaysOnReceive: string;
|
|
49
|
+
requireCollectSnOnShipping: string;
|
|
50
|
+
};
|
|
51
|
+
export type ObjectWrapper = {
|
|
52
|
+
data: ItemPublicData[] | null;
|
|
53
|
+
};
|
|
54
|
+
export type QueryOrderDetailInput = {
|
|
55
|
+
CompanyID: string;
|
|
56
|
+
FacilityID: string;
|
|
57
|
+
CustomerID: string;
|
|
58
|
+
PONo?: string | null;
|
|
59
|
+
ReferenceNo?: string | null;
|
|
60
|
+
CreatedWhenFrom?: string | null;
|
|
61
|
+
CreatedWhenTo?: string | null;
|
|
62
|
+
UpdatedWhenFrom?: string | null;
|
|
63
|
+
UpdatedWhenTo?: string | null;
|
|
64
|
+
Paging?: Paging | null;
|
|
65
|
+
};
|
|
66
|
+
export type QueryOrderDetailResult = {
|
|
67
|
+
data?: ObjectWrapper;
|
|
68
|
+
};
|
|
69
|
+
export declare function queryOrderDetail(input: QueryOrderDetailInput, options: ClientOptions): Promise<QueryOrderDetailResult>;
|
|
70
|
+
//# sourceMappingURL=queryOrderDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOrderDetail.d.ts","sourceRoot":"","sources":["../../src/tools/queryOrderDetail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAQ,MAAM,WAAW,CAAC;AAGhD,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAEnB,CAAC;AAGF,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,MAAM,CA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EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,aAAa,CAAC;CAEtB,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,qBAAqB,EAC5B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,sBAAsB,CAAC,CAiBjC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryOrderDetail = queryOrderDetail;
|
|
4
|
+
// src/tools/queryOrderDetail.ts
|
|
5
|
+
const client_1 = require("../client");
|
|
6
|
+
async function queryOrderDetail(input, options) {
|
|
7
|
+
// 验证必填字段
|
|
8
|
+
if (!input.CompanyID) {
|
|
9
|
+
throw new Error('CompanyID is required');
|
|
10
|
+
}
|
|
11
|
+
if (!input.FacilityID) {
|
|
12
|
+
throw new Error('FacilityID is required');
|
|
13
|
+
}
|
|
14
|
+
if (!input.CustomerID) {
|
|
15
|
+
throw new Error('CustomerID is required');
|
|
16
|
+
}
|
|
17
|
+
return (0, client_1.post)('/v1/public/edi/outbound/order-item-level/search-by-paging', input, options);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=queryOrderDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOrderDetail.js","sourceRoot":"","sources":["../../src/tools/queryOrderDetail.ts"],"names":[],"mappings":";;AAmFA,4CAoBC;AAvGD,gCAAgC;AAChC,sCAAgD;AAkFzC,KAAK,UAAU,gBAAgB,CACpC,KAA4B,EAC5B,OAAsB;IAEtB,SAAS;IACT,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAA,aAAI,EACT,2DAA2D,EAC3D,KAAK,EACL,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type Paging = {
|
|
3
|
+
page?: number;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export type ItemPublicData = {
|
|
7
|
+
ActionCode_AU: string;
|
|
8
|
+
allowOverWriteItem: string;
|
|
9
|
+
companyId: string;
|
|
10
|
+
supplierId: string;
|
|
11
|
+
customerId: string;
|
|
12
|
+
itemID: string;
|
|
13
|
+
itemDescription: string;
|
|
14
|
+
shortDescription: string;
|
|
15
|
+
abbreviation: string;
|
|
16
|
+
ItemGroupID: string;
|
|
17
|
+
ItemSubGroupID: string;
|
|
18
|
+
tags: string[];
|
|
19
|
+
labels: string;
|
|
20
|
+
brandID: string;
|
|
21
|
+
groupIDs: string[];
|
|
22
|
+
grade: string;
|
|
23
|
+
billingGrade: string;
|
|
24
|
+
freightClass: string;
|
|
25
|
+
countLevel?: number | null;
|
|
26
|
+
nmfc: string;
|
|
27
|
+
commodityDescription: string;
|
|
28
|
+
countryOrigin: string;
|
|
29
|
+
fileIDs: string;
|
|
30
|
+
UPCCode: string;
|
|
31
|
+
UPCCode_Case: string;
|
|
32
|
+
EANCode: string;
|
|
33
|
+
isBundle: string;
|
|
34
|
+
hasSerialNumber: string;
|
|
35
|
+
serialNoLength?: number | null;
|
|
36
|
+
isHazardousMaterial: string;
|
|
37
|
+
status: string;
|
|
38
|
+
validationInboundSerialNo: string;
|
|
39
|
+
requireCollectLotNoOnReceive: string;
|
|
40
|
+
requireCollectSnOnReceive: string;
|
|
41
|
+
validationOutboundSerialNo: string;
|
|
42
|
+
needScanOutboundSerialNo: string;
|
|
43
|
+
isAllowOverWriteSuggestedPickLP: string;
|
|
44
|
+
'Shipping Rule': string;
|
|
45
|
+
requireCollectExpirationDateOnReceive: string;
|
|
46
|
+
'Ship Allowed Days': string;
|
|
47
|
+
requireCollectMfgDateOnReceive: string;
|
|
48
|
+
requireCollectShelfLifeDaysOnReceive: string;
|
|
49
|
+
requireCollectSnOnShipping: string;
|
|
50
|
+
};
|
|
51
|
+
export type ObjectWrapper = {
|
|
52
|
+
data: ItemPublicData[] | null;
|
|
53
|
+
};
|
|
54
|
+
export type QueryReceiptInput = {
|
|
55
|
+
CompanyID: string;
|
|
56
|
+
FacilityID: string;
|
|
57
|
+
CustomerID: string;
|
|
58
|
+
PONo?: string | null;
|
|
59
|
+
ReferenceNo?: string | null;
|
|
60
|
+
CreatedWhenFrom?: string | null;
|
|
61
|
+
CreatedWhenTo?: string | null;
|
|
62
|
+
UpdatedWhenFrom?: string | null;
|
|
63
|
+
UpdatedWhenTo?: string | null;
|
|
64
|
+
Paging?: Paging | null;
|
|
65
|
+
};
|
|
66
|
+
export type QueryReceiptResult = {
|
|
67
|
+
data?: ObjectWrapper;
|
|
68
|
+
};
|
|
69
|
+
export declare function queryReceipt(input: QueryReceiptInput, options: ClientOptions): Promise<QueryReceiptResult>;
|
|
70
|
+
//# sourceMappingURL=queryReceipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReceipt.d.ts","sourceRoot":"","sources":["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, "__esModule", { value: true });
|
|
3
|
+
exports.queryReceipt = queryReceipt;
|
|
4
|
+
// src/tools/queryReceipt.ts
|
|
5
|
+
const client_1 = require("../client");
|
|
6
|
+
async function queryReceipt(input, options) {
|
|
7
|
+
// 验证必填字段
|
|
8
|
+
if (!input.CompanyID) {
|
|
9
|
+
throw new Error('CompanyID is required');
|
|
10
|
+
}
|
|
11
|
+
if (!input.FacilityID) {
|
|
12
|
+
throw new Error('FacilityID is required');
|
|
13
|
+
}
|
|
14
|
+
if (!input.CustomerID) {
|
|
15
|
+
throw new Error('CustomerID is required');
|
|
16
|
+
}
|
|
17
|
+
return (0, client_1.post)('/v1/public/edi/inbound/receipt-level/search-by-paging', input, options);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=queryReceipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReceipt.js","sourceRoot":"","sources":["../../src/tools/queryReceipt.ts"],"names":[],"mappings":";;AAmFA,oCAoBC;AAvGD,4BAA4B;AAC5B,sCAAgD;AAkFzC,KAAK,UAAU,YAAY,CAChC,KAAwB,EACxB,OAAsB;IAEtB,SAAS;IACT,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAA,aAAI,EACT,uDAAuD,EACvD,KAAK,EACL,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type Paging = {
|
|
3
|
+
page?: number;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export type ItemPublicData = {
|
|
7
|
+
ActionCode_AU: string;
|
|
8
|
+
allowOverWriteItem: string;
|
|
9
|
+
companyId: string;
|
|
10
|
+
supplierId: string;
|
|
11
|
+
customerId: string;
|
|
12
|
+
itemID: string;
|
|
13
|
+
itemDescription: string;
|
|
14
|
+
shortDescription: string;
|
|
15
|
+
abbreviation: string;
|
|
16
|
+
ItemGroupID: string;
|
|
17
|
+
ItemSubGroupID: string;
|
|
18
|
+
tags: string[];
|
|
19
|
+
labels: string;
|
|
20
|
+
brandID: string;
|
|
21
|
+
groupIDs: string[];
|
|
22
|
+
grade: string;
|
|
23
|
+
billingGrade: string;
|
|
24
|
+
freightClass: string;
|
|
25
|
+
countLevel?: number | null;
|
|
26
|
+
nmfc: string;
|
|
27
|
+
commodityDescription: string;
|
|
28
|
+
countryOrigin: string;
|
|
29
|
+
fileIDs: string;
|
|
30
|
+
UPCCode: string;
|
|
31
|
+
UPCCode_Case: string;
|
|
32
|
+
EANCode: string;
|
|
33
|
+
isBundle: string;
|
|
34
|
+
hasSerialNumber: string;
|
|
35
|
+
serialNoLength?: number | null;
|
|
36
|
+
isHazardousMaterial: string;
|
|
37
|
+
status: string;
|
|
38
|
+
validationInboundSerialNo: string;
|
|
39
|
+
requireCollectLotNoOnReceive: string;
|
|
40
|
+
requireCollectSnOnReceive: string;
|
|
41
|
+
validationOutboundSerialNo: string;
|
|
42
|
+
needScanOutboundSerialNo: string;
|
|
43
|
+
isAllowOverWriteSuggestedPickLP: string;
|
|
44
|
+
'Shipping Rule': string;
|
|
45
|
+
requireCollectExpirationDateOnReceive: string;
|
|
46
|
+
'Ship Allowed Days': string;
|
|
47
|
+
requireCollectMfgDateOnReceive: string;
|
|
48
|
+
requireCollectShelfLifeDaysOnReceive: string;
|
|
49
|
+
requireCollectSnOnShipping: string;
|
|
50
|
+
};
|
|
51
|
+
export type ObjectWrapper = {
|
|
52
|
+
data: ItemPublicData[] | null;
|
|
53
|
+
};
|
|
54
|
+
export type QueryReceiptDetailInput = {
|
|
55
|
+
CompanyID: string;
|
|
56
|
+
FacilityID: string;
|
|
57
|
+
CustomerID: string;
|
|
58
|
+
PONo?: string | null;
|
|
59
|
+
ReferenceNo?: string | null;
|
|
60
|
+
CreatedWhenFrom?: string | null;
|
|
61
|
+
CreatedWhenTo?: string | null;
|
|
62
|
+
UpdatedWhenFrom?: string | null;
|
|
63
|
+
UpdatedWhenTo?: string | null;
|
|
64
|
+
Paging?: Paging | null;
|
|
65
|
+
};
|
|
66
|
+
export type QueryReceiptDetailResult = {
|
|
67
|
+
data?: ObjectWrapper;
|
|
68
|
+
};
|
|
69
|
+
export declare function queryReceiptDetail(input: QueryReceiptDetailInput, options: ClientOptions): Promise<QueryReceiptDetailResult>;
|
|
70
|
+
//# sourceMappingURL=queryReceiptDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReceiptDetail.d.ts","sourceRoot":"","sources":["../../src/tools/queryReceiptDetail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAQ,MAAM,WAAW,CAAC;AAGhD,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAEnB,CAAC;AAGF,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,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,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,CAAC,EAAE,aAAa,CAAC;CAEtB,CAAC;AAEF,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,uBAAuB,EAC9B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,wBAAwB,CAAC,CAiBnC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryReceiptDetail = queryReceiptDetail;
|
|
4
|
+
// src/tools/queryReceiptDetail.ts
|
|
5
|
+
const client_1 = require("../client");
|
|
6
|
+
async function queryReceiptDetail(input, options) {
|
|
7
|
+
// 验证必填字段
|
|
8
|
+
if (!input.CompanyID) {
|
|
9
|
+
throw new Error('CompanyID is required');
|
|
10
|
+
}
|
|
11
|
+
if (!input.FacilityID) {
|
|
12
|
+
throw new Error('FacilityID is required');
|
|
13
|
+
}
|
|
14
|
+
if (!input.CustomerID) {
|
|
15
|
+
throw new Error('CustomerID is required');
|
|
16
|
+
}
|
|
17
|
+
return (0, client_1.post)('/v1/public/edi/inbound/receipt-item-level/search-by-paging', input, options);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=queryReceiptDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReceiptDetail.js","sourceRoot":"","sources":["../../src/tools/queryReceiptDetail.ts"],"names":[],"mappings":";;AAmFA,gDAoBC;AAvGD,kCAAkC;AAClC,sCAAgD;AAkFzC,KAAK,UAAU,kBAAkB,CACtC,KAA8B,EAC9B,OAAsB;IAEtB,SAAS;IACT,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAA,aAAI,EACT,4DAA4D,EAC5D,KAAK,EACL,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type Paging = {
|
|
3
|
+
page?: number;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export type ObjectWrapper = {
|
|
7
|
+
data: any[] | null;
|
|
8
|
+
};
|
|
9
|
+
export type ReceiptRCPublicDataList = {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
export type QueryReceiptRCInput = {
|
|
13
|
+
CompanyID: string;
|
|
14
|
+
FacilityID: string;
|
|
15
|
+
CustomerID: string;
|
|
16
|
+
PONo?: string | null;
|
|
17
|
+
ReferenceNo?: string | null;
|
|
18
|
+
CreatedWhenFrom?: string | null;
|
|
19
|
+
CreatedWhenTo?: string | null;
|
|
20
|
+
ReceiptType?: string | null;
|
|
21
|
+
Paging?: Paging | null;
|
|
22
|
+
};
|
|
23
|
+
export type QueryReceiptRCResult = ReceiptRCPublicDataList;
|
|
24
|
+
export declare function queryReceiptRC(input: QueryReceiptRCInput, options: ClientOptions): Promise<QueryReceiptRCResult>;
|
|
25
|
+
//# sourceMappingURL=queryReceiptRC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReceiptRC.d.ts","sourceRoot":"","sources":["../../src/tools/queryReceiptRC.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAQ,MAAM,WAAW,CAAC;AAGhD,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAEnB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,uBAAuB,GAAG;IAGpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAE3D,wBAAsB,cAAc,CAClC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,oBAAoB,CAAC,CAiB/B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryReceiptRC = queryReceiptRC;
|
|
4
|
+
// src/tools/queryReceiptRC.ts
|
|
5
|
+
const client_1 = require("../client");
|
|
6
|
+
async function queryReceiptRC(input, options) {
|
|
7
|
+
// 验证必填字段
|
|
8
|
+
if (!input.CompanyID) {
|
|
9
|
+
throw new Error('CompanyID is required');
|
|
10
|
+
}
|
|
11
|
+
if (!input.FacilityID) {
|
|
12
|
+
throw new Error('FacilityID is required');
|
|
13
|
+
}
|
|
14
|
+
if (!input.CustomerID) {
|
|
15
|
+
throw new Error('CustomerID is required');
|
|
16
|
+
}
|
|
17
|
+
return (0, client_1.post)('/v1/public/edi/inbound/receipt/rc/search-by-paging', input, options);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=queryReceiptRC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReceiptRC.js","sourceRoot":"","sources":["../../src/tools/queryReceiptRC.ts"],"names":[],"mappings":";;AAsCA,wCAoBC;AA1DD,8BAA8B;AAC9B,sCAAgD;AAqCzC,KAAK,UAAU,cAAc,CAClC,KAA0B,EAC1B,OAAsB;IAEtB,SAAS;IACT,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAA,aAAI,EACT,oDAAoD,EACpD,KAAK,EACL,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type UploadOrderFileInput = {
|
|
3
|
+
CompanyID: string;
|
|
4
|
+
FacilityID: string;
|
|
5
|
+
CustomerID: string;
|
|
6
|
+
ReferenceNo?: string | null;
|
|
7
|
+
PONo?: string | null;
|
|
8
|
+
SONos?: string[] | null;
|
|
9
|
+
CarrierName?: string | null;
|
|
10
|
+
SCACCode?: string | null;
|
|
11
|
+
DeliveryService?: string | null;
|
|
12
|
+
DocumentType: string;
|
|
13
|
+
TrackingNo?: string | null;
|
|
14
|
+
SubTrackingNos?: string[] | null;
|
|
15
|
+
FileData?: string;
|
|
16
|
+
FileName?: string;
|
|
17
|
+
OrderID?: string | null;
|
|
18
|
+
filePath?: string;
|
|
19
|
+
};
|
|
20
|
+
export type ObjectWrapper = {
|
|
21
|
+
data: any[] | null;
|
|
22
|
+
};
|
|
23
|
+
export type UploadOrderFileResult = ObjectWrapper;
|
|
24
|
+
export declare function uploadOrderFile(input: UploadOrderFileInput, options: ClientOptions): Promise<UploadOrderFileResult>;
|
|
25
|
+
//# sourceMappingURL=uploadOrderFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadOrderFile.d.ts","sourceRoot":"","sources":["../../src/tools/uploadOrderFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAQ,MAAM,WAAW,CAAC;AAKhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAElD,wBAAsB,eAAe,CACnC,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,qBAAqB,CAAC,CA6DhC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.uploadOrderFile = uploadOrderFile;
|
|
37
|
+
// src/tools/uploadOrderFile.ts
|
|
38
|
+
const client_1 = require("../client");
|
|
39
|
+
const fs = __importStar(require("fs"));
|
|
40
|
+
const path = __importStar(require("path"));
|
|
41
|
+
async function uploadOrderFile(input, options) {
|
|
42
|
+
// 如果提供了本地文件路径,则读取文件内容并转换为base64
|
|
43
|
+
let fileData = input.FileData;
|
|
44
|
+
let fileName = input.FileName;
|
|
45
|
+
if (input.filePath) {
|
|
46
|
+
// 检查文件是否存在
|
|
47
|
+
if (!fs.existsSync(input.filePath)) {
|
|
48
|
+
throw new Error(`File not found: ${input.filePath}`);
|
|
49
|
+
}
|
|
50
|
+
// 读取文件内容并转换为base64
|
|
51
|
+
const fileContent = fs.readFileSync(input.filePath);
|
|
52
|
+
fileData = fileContent.toString('base64');
|
|
53
|
+
fileName = path.basename(input.filePath);
|
|
54
|
+
}
|
|
55
|
+
// 验证必填字段
|
|
56
|
+
if (!input.CompanyID) {
|
|
57
|
+
throw new Error('CompanyID is required');
|
|
58
|
+
}
|
|
59
|
+
if (!input.FacilityID) {
|
|
60
|
+
throw new Error('FacilityID is required');
|
|
61
|
+
}
|
|
62
|
+
if (!input.CustomerID) {
|
|
63
|
+
throw new Error('CustomerID is required');
|
|
64
|
+
}
|
|
65
|
+
if (!input.DocumentType) {
|
|
66
|
+
throw new Error('DocumentType is required');
|
|
67
|
+
}
|
|
68
|
+
if (!fileData) {
|
|
69
|
+
throw new Error('FileData is required');
|
|
70
|
+
}
|
|
71
|
+
if (!fileName) {
|
|
72
|
+
throw new Error('FileName is required');
|
|
73
|
+
}
|
|
74
|
+
// 构建请求体
|
|
75
|
+
const requestBody = {
|
|
76
|
+
CompanyID: input.CompanyID,
|
|
77
|
+
FacilityID: input.FacilityID,
|
|
78
|
+
CustomerID: input.CustomerID,
|
|
79
|
+
ReferenceNo: input.ReferenceNo,
|
|
80
|
+
PONo: input.PONo,
|
|
81
|
+
SONos: input.SONos,
|
|
82
|
+
CarrierName: input.CarrierName,
|
|
83
|
+
SCACCode: input.SCACCode,
|
|
84
|
+
DeliveryService: input.DeliveryService,
|
|
85
|
+
DocumentType: input.DocumentType,
|
|
86
|
+
TrackingNo: input.TrackingNo,
|
|
87
|
+
SubTrackingNos: input.SubTrackingNos,
|
|
88
|
+
FileData: fileData,
|
|
89
|
+
FileName: fileName,
|
|
90
|
+
OrderID: input.OrderID
|
|
91
|
+
};
|
|
92
|
+
return (0, client_1.post)('/v1/public/edi/outbound/order/file-upload', requestBody, options);
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=uploadOrderFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadOrderFile.js","sourceRoot":"","sources":["../../src/tools/uploadOrderFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,0CAgEC;AAjGD,+BAA+B;AAC/B,sCAAgD;AAChD,uCAAyB;AACzB,2CAA6B;AA8BtB,KAAK,UAAU,eAAe,CACnC,KAA2B,EAC3B,OAAsB;IAEtB,gCAAgC;IAChC,IAAI,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC9B,IAAI,QAAQ,GAAG,KAAK,CAAC,QAAQ,CA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QAC5B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC;IAEF,OAAO,IAAA,aAAI,EACT,2CAA2C,EAC3C,WAAW,EACX,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClientOptions } from '../client';
|
|
2
|
+
export type ValidateInboundInput = {
|
|
3
|
+
itemCode: string;
|
|
4
|
+
qty: number;
|
|
5
|
+
uom: string;
|
|
6
|
+
};
|
|
7
|
+
export type ValidationResult = {
|
|
8
|
+
valid: boolean;
|
|
9
|
+
message?: string;
|
|
10
|
+
errors?: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare function validateInbound(input: ValidateInboundInput, options: ClientOptions): Promise<ValidationResult>;
|
|
13
|
+
//# sourceMappingURL=validateInbound.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateInbound.d.ts","sourceRoot":"","sources":["../../src/tools/validateInbound.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAQ,MAAM,WAAW,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,wBAAsB,eAAe,CACnC,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAkB3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateInbound = validateInbound;
|
|
4
|
+
// src/tools/validateInbound.ts
|
|
5
|
+
const client_1 = require("../client");
|
|
6
|
+
async function validateInbound(input, options) {
|
|
7
|
+
if (!input.itemCode) {
|
|
8
|
+
throw new Error('Item code is required');
|
|
9
|
+
}
|
|
10
|
+
if (input.qty == null || input.qty <= 0) {
|
|
11
|
+
throw new Error('Valid quantity is required');
|
|
12
|
+
}
|
|
13
|
+
if (!input.uom) {
|
|
14
|
+
throw new Error('UOM is required');
|
|
15
|
+
}
|
|
16
|
+
return (0, client_1.post)(`/items/${input.itemCode}/validate-inbound`, { qty: input.qty, uom: input.uom }, options);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=validateInbound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateInbound.js","sourceRoot":"","sources":["../../src/tools/validateInbound.ts"],"names":[],"mappings":";;AAeA,0CAqBC;AApCD,+BAA+B;AAC/B,sCAAgD;AAczC,KAAK,UAAU,eAAe,CACnC,KAA2B,EAC3B,OAAsB;IAEtB,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,KAAK,CAAC,GAAG,IAAI,IAAI,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,IAAA,aAAI,EACT,UAAU,KAAK,CAAC,QAAQ,mBAAmB,EAC3C,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,EAClC,OAAO,CACR,CAAC;AACJ,CAAC"}
|
package/llms.txt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## Related MCP
|
|
2
|
+
This API is exposed via MCP (stdio JSON-RPC) and a dynamic CLI.
|
|
3
|
+
|
|
4
|
+
Name: item-wms-public-api-tool
|
|
5
|
+
Entry:
|
|
6
|
+
npx item-wms-public-api-tool
|
|
7
|
+
|
|
8
|
+
Tools:
|
|
9
|
+
See mcp.json. Tool names are auto-generated from `<method>_<path>` with non-alphanumerics replaced by `_`.
|
|
10
|
+
CLI commands are generated at runtime. Use `item-wms-public-api-tool list` or see HELP.md.
|
|
11
|
+
|
|
12
|
+
Environment:
|
|
13
|
+
WMS_BASE_URL (optional, default https://wms-staging.item.com/api/public)
|
|
14
|
+
WMS_TOKEN (optional for login, required for most tools)
|
|
15
|
+
|
|
16
|
+
Example (MCP stdio):
|
|
17
|
+
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","clientInfo":{"name":"agent","version":"1.0.0"}}}
|
|
18
|
+
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"post_v1_public_user_login","arguments":{"username":"USERNAME","password":"PASSWORD"},"options":{"baseUrl":"https://wms-staging.item.com/api/public"}}}
|
|
19
|
+
{"jsonrpc":"2.0","id":3,"method":"prompts/get","params":{"name":"wms_call_flow","arguments":{"language":"zh","include_examples":"true"}}}
|
|
20
|
+
|
|
21
|
+
The MCP provides:
|
|
22
|
+
- Input schema for parameter guidance
|
|
23
|
+
- Token passthrough for authentication headers
|