@posty5/n8n-nodes-posty5 5.1.0 → 6.0.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.
- package/README.md +12 -118
- package/dist/credentials/Posty5Api.credentials.js +1 -1
- package/dist/credentials/Posty5Api.credentials.js.map +1 -1
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.d.ts.map +1 -1
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js +20 -18
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.d.ts.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js +42 -36
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +52 -48
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js +10 -7
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js.map +1 -1
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -1
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js +102 -85
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -1
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js +2 -2
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js.map +1 -1
- package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js +2 -2
- package/dist/nodes/Posty5Trigger/Posty5Trigger.node.js.map +1 -1
- package/dist/package.json +10 -10
- package/dist/types/common.d.ts +10 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/html-hosting.types.d.ts +4 -3
- package/dist/types/html-hosting.types.d.ts.map +1 -1
- package/dist/types/qr-code.types.d.ts +4 -3
- package/dist/types/qr-code.types.d.ts.map +1 -1
- package/dist/types/short-link.types.d.ts +5 -4
- package/dist/types/short-link.types.d.ts.map +1 -1
- package/dist/utils/analytics.helpers.js +1 -1
- package/dist/utils/analytics.helpers.js.map +1 -1
- package/dist/utils/analytics.properties.d.ts.map +1 -1
- package/dist/utils/analytics.properties.js +1 -0
- package/dist/utils/analytics.properties.js.map +1 -1
- package/dist/utils/api.helpers.d.ts +10 -3
- package/dist/utils/api.helpers.d.ts.map +1 -1
- package/dist/utils/api.helpers.js +13 -0
- package/dist/utils/api.helpers.js.map +1 -1
- package/dist/utils/constants.d.ts +4 -13
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +5 -14
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/date.helpers.d.ts +9 -0
- package/dist/utils/date.helpers.d.ts.map +1 -1
- package/dist/utils/date.helpers.js +26 -0
- package/dist/utils/date.helpers.js.map +1 -1
- package/dist/utils/list-date-filter.properties.d.ts +11 -0
- package/dist/utils/list-date-filter.properties.d.ts.map +1 -0
- package/dist/utils/list-date-filter.properties.js +30 -0
- package/dist/utils/list-date-filter.properties.js.map +1 -0
- package/dist/utils/qr-render.helpers.js +1 -1
- package/dist/utils/qr-render.helpers.js.map +1 -1
- package/package.json +10 -10
- package/dist/nodes/Posty5Store/Posty5Store.node.d.ts +0 -17
- package/dist/nodes/Posty5Store/Posty5Store.node.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/Posty5Store.node.js +0 -230
- package/dist/nodes/Posty5Store/Posty5Store.node.js.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts +0 -4
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js +0 -55
- package/dist/nodes/Posty5Store/descriptions/fulfilment-group.description.js.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/order.description.d.ts +0 -4
- package/dist/nodes/Posty5Store/descriptions/order.description.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/order.description.js +0 -91
- package/dist/nodes/Posty5Store/descriptions/order.description.js.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts +0 -4
- package/dist/nodes/Posty5Store/descriptions/product-link.description.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/product-link.description.js +0 -48
- package/dist/nodes/Posty5Store/descriptions/product-link.description.js.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts +0 -4
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js +0 -118
- package/dist/nodes/Posty5Store/descriptions/supplier-order.description.js.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts +0 -4
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js +0 -167
- package/dist/nodes/Posty5Store/descriptions/supplier-product.description.js.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts +0 -4
- package/dist/nodes/Posty5Store/descriptions/supplier.description.d.ts.map +0 -1
- package/dist/nodes/Posty5Store/descriptions/supplier.description.js +0 -50
- package/dist/nodes/Posty5Store/descriptions/supplier.description.js.map +0 -1
- package/dist/types/store.types.d.ts +0 -71
- package/dist/types/store.types.d.ts.map +0 -1
- package/dist/types/store.types.js +0 -7
- package/dist/types/store.types.js.map +0 -1
- package/dist/utils/store.helpers.d.ts +0 -43
- package/dist/utils/store.helpers.d.ts.map +0 -1
- package/dist/utils/store.helpers.js +0 -87
- package/dist/utils/store.helpers.js.map +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.orderFields = exports.orderOperations = void 0;
|
|
4
|
-
const show = { resource: ['order'] };
|
|
5
|
-
exports.orderOperations = {
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
displayOptions: { show },
|
|
11
|
-
options: [
|
|
12
|
-
{
|
|
13
|
-
name: 'Get',
|
|
14
|
-
value: 'get',
|
|
15
|
-
description: 'Get one order with its parts and, for a key holding suppliers.view, its supplier orders',
|
|
16
|
-
action: 'Get an order',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Get Many',
|
|
20
|
-
value: 'getMany',
|
|
21
|
-
description: "List the store's orders",
|
|
22
|
-
action: 'Get many orders',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
default: 'get',
|
|
26
|
-
};
|
|
27
|
-
exports.orderFields = [
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Order ID',
|
|
30
|
-
name: 'orderId',
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: true,
|
|
33
|
-
default: '',
|
|
34
|
-
displayOptions: { show: { ...show, operation: ['get'] } },
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
displayName: 'Split Parts',
|
|
38
|
-
name: 'splitParts',
|
|
39
|
-
type: 'boolean',
|
|
40
|
-
default: false,
|
|
41
|
-
description: 'Whether to output one item per part of the order, each with the order number and its supplier order attached',
|
|
42
|
-
displayOptions: { show: { ...show, operation: ['get'] } },
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Limit',
|
|
46
|
-
name: 'limit',
|
|
47
|
-
type: 'number',
|
|
48
|
-
typeOptions: { minValue: 1 },
|
|
49
|
-
default: 50,
|
|
50
|
-
description: 'Max number of results to return',
|
|
51
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
displayName: 'Filters',
|
|
55
|
-
name: 'filters',
|
|
56
|
-
type: 'collection',
|
|
57
|
-
placeholder: 'Add Filter',
|
|
58
|
-
default: {},
|
|
59
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
60
|
-
options: [
|
|
61
|
-
{ displayName: 'Created From Date', name: 'fromDate', type: 'string', default: '', description: 'Used together with Created To Date' },
|
|
62
|
-
{ displayName: 'Created To Date', name: 'toDate', type: 'string', default: '' },
|
|
63
|
-
{ displayName: 'Cursor', name: 'cursor', type: 'string', default: '', description: 'The nextCursor of the previous page' },
|
|
64
|
-
{ displayName: 'Customer', name: 'customer', type: 'string', default: '', description: 'Matched across customer name, phone and email' },
|
|
65
|
-
{
|
|
66
|
-
displayName: 'Needs Attention',
|
|
67
|
-
name: 'needsAttention',
|
|
68
|
-
type: 'boolean',
|
|
69
|
-
default: true,
|
|
70
|
-
description: 'Whether to return only orders with a part that needs attention',
|
|
71
|
-
},
|
|
72
|
-
{ displayName: 'Order Number', name: 'orderNumber', type: 'string', default: '' },
|
|
73
|
-
{
|
|
74
|
-
displayName: 'Status',
|
|
75
|
-
name: 'status',
|
|
76
|
-
type: 'options',
|
|
77
|
-
options: [
|
|
78
|
-
{ name: 'Cancelled', value: 'cancelled' },
|
|
79
|
-
{ name: 'Confirmed', value: 'confirmed' },
|
|
80
|
-
{ name: 'Delivered', value: 'delivered' },
|
|
81
|
-
{ name: 'Pending', value: 'pending' },
|
|
82
|
-
{ name: 'Processing', value: 'processing' },
|
|
83
|
-
{ name: 'Refused', value: 'refused' },
|
|
84
|
-
{ name: 'Shipped', value: 'shipped' },
|
|
85
|
-
],
|
|
86
|
-
default: 'processing',
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
];
|
|
91
|
-
//# sourceMappingURL=order.description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order.description.js","s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EAAE;oBACR,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACrC;gBACD,OAAO,EAAE,YAAY;aACrB;SACD;KACD;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-link.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/product-link.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,qBAAqB,EAAE,eAqBnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAoB9C,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.productLinkFields = exports.productLinkOperations = void 0;
|
|
4
|
-
const show = { resource: ['productLink'] };
|
|
5
|
-
exports.productLinkOperations = {
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
displayOptions: { show },
|
|
11
|
-
options: [
|
|
12
|
-
{
|
|
13
|
-
name: 'Get Many',
|
|
14
|
-
value: 'getMany',
|
|
15
|
-
description: "List the store's product links to suppliers",
|
|
16
|
-
action: 'Get many product links',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Sync',
|
|
20
|
-
value: 'sync',
|
|
21
|
-
description: 'Sync one link with its supplier now. Refused within a minute of the last sync.',
|
|
22
|
-
action: 'Sync a product link',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
default: 'getMany',
|
|
26
|
-
};
|
|
27
|
-
exports.productLinkFields = [
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Link ID',
|
|
30
|
-
name: 'linkId',
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: true,
|
|
33
|
-
default: '',
|
|
34
|
-
displayOptions: { show: { ...show, operation: ['sync'] } },
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
displayName: 'Filters',
|
|
38
|
-
name: 'filters',
|
|
39
|
-
type: 'collection',
|
|
40
|
-
placeholder: 'Add Filter',
|
|
41
|
-
default: {},
|
|
42
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
43
|
-
options: [
|
|
44
|
-
{ displayName: 'Product ID', name: 'productId', type: 'string', default: '', description: 'Only the link of this store product' },
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
];
|
|
48
|
-
//# sourceMappingURL=product-link.description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-link.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/product-link.description.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AAE9B,QAAA,qBAAqB,GAAoB;IACrD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,6CAA6C;YAC1D,MAAM,EAAE,wBAAwB;SAChC;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,gFAAgF;YAC7F,MAAM,EAAE,qBAAqB;SAC7B;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;KAC1D;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;QAC7D,OAAO,EAAE;YACR,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,qCAAqC,EAAE;SACjI;KACD;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supplier-order.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-order.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,eAAO,MAAM,uBAAuB,EAAE,eAyCrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,EAuEhD,CAAC"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supplierOrderFields = exports.supplierOrderOperations = void 0;
|
|
4
|
-
const constants_1 = require("../../../utils/constants");
|
|
5
|
-
const show = { resource: ['supplierOrder'] };
|
|
6
|
-
exports.supplierOrderOperations = {
|
|
7
|
-
displayName: 'Operation',
|
|
8
|
-
name: 'operation',
|
|
9
|
-
type: 'options',
|
|
10
|
-
noDataExpression: true,
|
|
11
|
-
displayOptions: { show },
|
|
12
|
-
options: [
|
|
13
|
-
{
|
|
14
|
-
name: 'Cancel',
|
|
15
|
-
value: 'cancel',
|
|
16
|
-
description: 'Withdraw the order at the supplier, where the supplier still allows it',
|
|
17
|
-
action: 'Cancel a supplier order',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'Get',
|
|
21
|
-
value: 'get',
|
|
22
|
-
description: 'Get one supplier order with its history',
|
|
23
|
-
action: 'Get a supplier order',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'Get Many',
|
|
27
|
-
value: 'getMany',
|
|
28
|
-
description: 'List supplier orders, newest first',
|
|
29
|
-
action: 'Get many supplier orders',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Pay',
|
|
33
|
-
value: 'pay',
|
|
34
|
-
description: "Pay a supplier order that was created but not paid. Spends the merchant's balance at the supplier; needs suppliers.orders.manage. An order already paid there is recorded, not paid again.",
|
|
35
|
-
action: 'Pay a supplier order',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'Retry',
|
|
39
|
-
value: 'retry',
|
|
40
|
-
description: 'Try a queued, paused or failed supplier order again. A paused order usually needs something changed first.',
|
|
41
|
-
action: 'Retry a supplier order',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
default: 'getMany',
|
|
45
|
-
};
|
|
46
|
-
exports.supplierOrderFields = [
|
|
47
|
-
{
|
|
48
|
-
displayName: 'Supplier Order ID',
|
|
49
|
-
name: 'supplierOrderId',
|
|
50
|
-
type: 'string',
|
|
51
|
-
required: true,
|
|
52
|
-
default: '',
|
|
53
|
-
displayOptions: { show: { ...show, operation: ['cancel', 'get', 'pay', 'retry'] } },
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
displayName: 'Accept New Cost',
|
|
57
|
-
name: 'acceptCost',
|
|
58
|
-
type: 'boolean',
|
|
59
|
-
default: false,
|
|
60
|
-
description: "Whether to accept the supplier's new price after a price change. Recorded as the caller's decision.",
|
|
61
|
-
displayOptions: { show: { ...show, operation: ['retry'] } },
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
displayName: 'Return All',
|
|
65
|
-
name: 'returnAll',
|
|
66
|
-
type: 'boolean',
|
|
67
|
-
default: false,
|
|
68
|
-
description: 'Whether to return all results or only up to a given limit',
|
|
69
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
displayName: 'Limit',
|
|
73
|
-
name: 'limit',
|
|
74
|
-
type: 'number',
|
|
75
|
-
typeOptions: { minValue: 1, maxValue: constants_1.STORE_SUPPLIER_PAGE_SIZES.SUPPLIER_ORDERS_MAX },
|
|
76
|
-
default: 50,
|
|
77
|
-
description: 'Max number of results to return',
|
|
78
|
-
displayOptions: { show: { ...show, operation: ['getMany'], returnAll: [false] } },
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'Filters',
|
|
82
|
-
name: 'filters',
|
|
83
|
-
type: 'collection',
|
|
84
|
-
placeholder: 'Add Filter',
|
|
85
|
-
default: {},
|
|
86
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
87
|
-
options: [
|
|
88
|
-
{ displayName: 'Cursor', name: 'cursor', type: 'string', default: '', description: 'The nextCursor of the previous page' },
|
|
89
|
-
{ displayName: 'Order ID', name: 'orderId', type: 'string', default: '', description: 'Only the supplier orders of this store order' },
|
|
90
|
-
{
|
|
91
|
-
displayName: 'Needs Review',
|
|
92
|
-
name: 'needsReview',
|
|
93
|
-
type: 'boolean',
|
|
94
|
-
default: true,
|
|
95
|
-
description: 'Whether to return only paused supplier orders',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
displayName: 'Status',
|
|
99
|
-
name: 'status',
|
|
100
|
-
type: 'options',
|
|
101
|
-
options: [
|
|
102
|
-
{ name: 'Cancelled', value: 'cancelled' },
|
|
103
|
-
{ name: 'Confirmed', value: 'confirmed' },
|
|
104
|
-
{ name: 'Delivered', value: 'delivered' },
|
|
105
|
-
{ name: 'Failed', value: 'failed' },
|
|
106
|
-
{ name: 'Needs Review', value: 'needsReview' },
|
|
107
|
-
{ name: 'Processing', value: 'processing' },
|
|
108
|
-
{ name: 'Queued', value: 'queued' },
|
|
109
|
-
{ name: 'Shipped', value: 'shipped' },
|
|
110
|
-
{ name: 'Submitted', value: 'submitted' },
|
|
111
|
-
],
|
|
112
|
-
default: 'needsReview',
|
|
113
|
-
},
|
|
114
|
-
{ displayName: 'Supplier Connection ID', name: 'integrationId', type: 'string', default: '' },
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
];
|
|
118
|
-
//# sourceMappingURL=supplier-order.description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supplier-order.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-order.description.ts"],"names":[],"mappings":";;;AACA,wDAAqE;AAErE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;AAEhC,QAAA,uBAAuB,GAAoB;IACvD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,wEAAwE;YACrF,MAAM,EAAE,yBAAyB;SACjC;QACD;YACC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,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,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE;oBAC9C,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBACzC;gBACD,OAAO,EAAE,aAAa;aACtB;YACD,EAAE,WAAW,EAAE,wBAAwB,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;SAC7F;KACD;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supplier-product.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-product.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,eAAO,MAAM,yBAAyB,EAAE,eA8CvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,eAAe,EAkHlD,CAAC"}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supplierProductFields = exports.supplierProductOperations = void 0;
|
|
4
|
-
const constants_1 = require("../../../utils/constants");
|
|
5
|
-
const show = { resource: ['supplierProduct'] };
|
|
6
|
-
exports.supplierProductOperations = {
|
|
7
|
-
displayName: 'Operation',
|
|
8
|
-
name: 'operation',
|
|
9
|
-
type: 'options',
|
|
10
|
-
noDataExpression: true,
|
|
11
|
-
displayOptions: { show },
|
|
12
|
-
options: [
|
|
13
|
-
{
|
|
14
|
-
name: 'Get',
|
|
15
|
-
value: 'get',
|
|
16
|
-
description: 'Get one supplier product with its variants, costs and stock',
|
|
17
|
-
action: 'Get a supplier product',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'Get Import Status',
|
|
21
|
-
value: 'getImportStatus',
|
|
22
|
-
description: 'Read the progress of a background import',
|
|
23
|
-
action: 'Get an import status',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'Get Many',
|
|
27
|
-
value: 'getMany',
|
|
28
|
-
description: "Browse or search the supplier's catalogue",
|
|
29
|
-
action: 'Get many supplier products',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Import',
|
|
33
|
-
value: 'import',
|
|
34
|
-
description: 'Import up to 50 products into the store. Charged like adding products. Large imports answer a job ID to poll.',
|
|
35
|
-
action: 'Import supplier products',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'Preview Import',
|
|
39
|
-
value: 'previewImport',
|
|
40
|
-
description: 'Price the chosen products and name duplicates. Nothing is created or charged.',
|
|
41
|
-
action: 'Preview a supplier import',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'Resolve URL',
|
|
45
|
-
value: 'resolveUrl',
|
|
46
|
-
description: 'Turn a pasted product link into the supplier product',
|
|
47
|
-
action: 'Resolve a supplier product URL',
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
default: 'getMany',
|
|
51
|
-
};
|
|
52
|
-
exports.supplierProductFields = [
|
|
53
|
-
{
|
|
54
|
-
displayName: 'Supplier Connection ID',
|
|
55
|
-
name: 'integrationId',
|
|
56
|
-
type: 'string',
|
|
57
|
-
required: true,
|
|
58
|
-
default: '',
|
|
59
|
-
description: 'The connection ID, from Supplier → Get Many',
|
|
60
|
-
displayOptions: { show: { ...show, operation: ['get', 'getMany', 'import', 'previewImport', 'resolveUrl'] } },
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
displayName: 'Supplier Product ID',
|
|
64
|
-
name: 'supplierProductId',
|
|
65
|
-
type: 'string',
|
|
66
|
-
required: true,
|
|
67
|
-
default: '',
|
|
68
|
-
displayOptions: { show: { ...show, operation: ['get'] } },
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
displayName: 'Product URL',
|
|
72
|
-
name: 'url',
|
|
73
|
-
type: 'string',
|
|
74
|
-
required: true,
|
|
75
|
-
default: '',
|
|
76
|
-
placeholder: 'https://…',
|
|
77
|
-
description: 'A full product link from the supplier. Shortened links are refused.',
|
|
78
|
-
displayOptions: { show: { ...show, operation: ['resolveUrl'] } },
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'Supplier Product IDs',
|
|
82
|
-
name: 'supplierProductIds',
|
|
83
|
-
type: 'string',
|
|
84
|
-
required: true,
|
|
85
|
-
default: '',
|
|
86
|
-
description: 'Comma-separated supplier product IDs, up to 50. Every variant of each is imported.',
|
|
87
|
-
displayOptions: { show: { ...show, operation: ['import', 'previewImport'] } },
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
displayName: 'Job ID',
|
|
91
|
-
name: 'jobId',
|
|
92
|
-
type: 'string',
|
|
93
|
-
required: true,
|
|
94
|
-
default: '',
|
|
95
|
-
description: 'The job ID an Import answered',
|
|
96
|
-
displayOptions: { show: { ...show, operation: ['getImportStatus'] } },
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
displayName: 'Page',
|
|
100
|
-
name: 'page',
|
|
101
|
-
type: 'number',
|
|
102
|
-
typeOptions: { minValue: 1 },
|
|
103
|
-
default: 1,
|
|
104
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
displayName: 'Limit',
|
|
108
|
-
name: 'limit',
|
|
109
|
-
type: 'number',
|
|
110
|
-
typeOptions: { minValue: 1, maxValue: constants_1.STORE_SUPPLIER_PAGE_SIZES.CATALOGUE_MAX },
|
|
111
|
-
// The lint rule wants 50, but the api refuses a catalogue pageSize above 48 with a 400.
|
|
112
|
-
// A literal because the lint rules read it; the test pins it to STORE_SUPPLIER_PAGE_SIZES.CATALOGUE_MAX.
|
|
113
|
-
// eslint-disable-next-line n8n-nodes-base/node-param-default-wrong-for-limit
|
|
114
|
-
default: 48,
|
|
115
|
-
description: 'Max number of results to return',
|
|
116
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
displayName: 'Filters',
|
|
120
|
-
name: 'filters',
|
|
121
|
-
type: 'collection',
|
|
122
|
-
placeholder: 'Add Filter',
|
|
123
|
-
default: {},
|
|
124
|
-
displayOptions: { show: { ...show, operation: ['getMany'] } },
|
|
125
|
-
options: [
|
|
126
|
-
{ displayName: 'Category ID', name: 'categoryId', type: 'string', default: '' },
|
|
127
|
-
{ displayName: 'Search', name: 'q', type: 'string', default: '', description: 'Search text' },
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
displayName: 'Import Options',
|
|
132
|
-
name: 'importOptions',
|
|
133
|
-
type: 'collection',
|
|
134
|
-
placeholder: 'Add Option',
|
|
135
|
-
default: {},
|
|
136
|
-
displayOptions: { show: { ...show, operation: ['import', 'previewImport'] } },
|
|
137
|
-
options: [
|
|
138
|
-
{
|
|
139
|
-
displayName: 'Allow Duplicate',
|
|
140
|
-
name: 'allowDuplicate',
|
|
141
|
-
type: 'boolean',
|
|
142
|
-
default: false,
|
|
143
|
-
description: 'Whether to import a supplier product the store already has, as a second copy',
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
displayName: 'Status',
|
|
147
|
-
name: 'status',
|
|
148
|
-
type: 'options',
|
|
149
|
-
options: [
|
|
150
|
-
{ name: 'Active', value: 'active' },
|
|
151
|
-
{ name: 'Draft', value: 'draft' },
|
|
152
|
-
{ name: 'Hidden', value: 'hidden' },
|
|
153
|
-
],
|
|
154
|
-
default: 'draft',
|
|
155
|
-
description: 'Status of the imported products',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
displayName: 'Tag Names',
|
|
159
|
-
name: 'tagNames',
|
|
160
|
-
type: 'string',
|
|
161
|
-
default: '',
|
|
162
|
-
description: 'Comma-separated tags to add to the imported products',
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
];
|
|
167
|
-
//# sourceMappingURL=supplier-product.description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supplier-product.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier-product.description.ts"],"names":[],"mappings":";;;AACA,wDAAqE;AAErE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAElC,QAAA,yBAAyB,GAAoB;IACzD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,6DAA6D;YAC1E,MAAM,EAAE,wBAAwB;SAChC;QACD;YACC,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,0CAA0C;YACvD,MAAM,EAAE,sBAAsB;SAC9B;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,2CAA2C;YACxD,MAAM,EAAE,4BAA4B;SACpC;QACD;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EACV,+GAA+G;YAChH,MAAM,EAAE,0BAA0B;SAClC;QACD;YACC,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,+EAA+E;YAC5F,MAAM,EAAE,2BAA2B;SACn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plier.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,kBAAkB,EAAE,eAiChC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,EAU3C,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supplierFields = exports.supplierOperations = void 0;
|
|
4
|
-
const show = { resource: ['supplier'] };
|
|
5
|
-
exports.supplierOperations = {
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
displayOptions: { show },
|
|
11
|
-
options: [
|
|
12
|
-
{
|
|
13
|
-
name: 'Get Balance',
|
|
14
|
-
value: 'getBalance',
|
|
15
|
-
description: "Read the store's balance at the supplier, where the supplier reports one",
|
|
16
|
-
action: 'Get a supplier balance',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Get Catalogue',
|
|
20
|
-
value: 'getCatalogue',
|
|
21
|
-
description: 'List the suppliers this store can connect, with what each can do',
|
|
22
|
-
action: 'Get the supplier catalogue',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: 'Get Many',
|
|
26
|
-
value: 'getMany',
|
|
27
|
-
description: "List the store's supplier connections. Credentials are never returned.",
|
|
28
|
-
action: 'Get many supplier connections',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'Test',
|
|
32
|
-
value: 'test',
|
|
33
|
-
description: 'Check a connection now and record its health. Free; calls the supplier once.',
|
|
34
|
-
action: 'Test a supplier connection',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
default: 'getMany',
|
|
38
|
-
};
|
|
39
|
-
exports.supplierFields = [
|
|
40
|
-
{
|
|
41
|
-
displayName: 'Supplier Connection ID',
|
|
42
|
-
name: 'integrationId',
|
|
43
|
-
type: 'string',
|
|
44
|
-
required: true,
|
|
45
|
-
default: '',
|
|
46
|
-
description: 'The connection ID, from Supplier → Get Many',
|
|
47
|
-
displayOptions: { show: { ...show, operation: ['getBalance', 'test'] } },
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
//# sourceMappingURL=supplier.description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supplier.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/supplier.description.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAE3B,QAAA,kBAAkB,GAAoB;IAClD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0EAA0E;YACvF,MAAM,EAAE,wBAAwB;SAChC;QACD;YACC,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,kEAAkE;YAC/E,MAAM,EAAE,4BAA4B;SACpC;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,wEAAwE;YACrF,MAAM,EAAE,+BAA+B;SACvC;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,8EAA8E;YAC3F,MAAM,EAAE,4BAA4B;SACpC;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,6CAA6C;QAC1D,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE;KACxE;CACD,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Store Types for Posty5 N8N Nodes — dropshipping.
|
|
3
|
-
* The names match `@posty5/store`, so a reader of one recognises the other.
|
|
4
|
-
*/
|
|
5
|
-
export type StoreSupplierOrderStatus = 'queued' | 'needsReview' | 'submitted' | 'confirmed' | 'processing' | 'shipped' | 'delivered' | 'cancelled' | 'failed';
|
|
6
|
-
export type StoreSupplierOrderReviewReason = 'insufficientBalance' | 'variantUnavailable' | 'destinationUnsupported' | 'costAboveLimit' | 'costChanged' | 'customerPaymentPending' | 'customerPaymentNotSettled' | 'connectionUnhealthy' | 'supplierRefused' | 'connectionMissing' | 'supplierAlreadyShipped' | 'testMode' | 'customerCaptureFailed';
|
|
7
|
-
export type StoreFulfilmentGroupStatus = 'pending' | 'processing' | 'shipped' | 'delivered' | 'cancelled';
|
|
8
|
-
/** The part actions that address a part (order + part key). */
|
|
9
|
-
export type FulfilmentGroupAction = 'submit' | 'fulfil-manually';
|
|
10
|
-
/** The actions that address one supplier order by its id. */
|
|
11
|
-
export type SupplierOrderAction = 'retry' | 'pay' | 'cancel';
|
|
12
|
-
/** One supplier order, as far as the node reads it. */
|
|
13
|
-
export interface IStoreSupplierOrder {
|
|
14
|
-
_id: string;
|
|
15
|
-
orderId: string;
|
|
16
|
-
orderNumber?: string;
|
|
17
|
-
fulfilmentGroupKey: string;
|
|
18
|
-
supplierKey: string;
|
|
19
|
-
status: StoreSupplierOrderStatus;
|
|
20
|
-
reviewReason?: StoreSupplierOrderReviewReason | null;
|
|
21
|
-
reviewMessage?: string | null;
|
|
22
|
-
retryable: boolean;
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* The pagination block of a cursor-paged store list — the platform's list
|
|
27
|
-
* envelope (`req.end_Searchable`), used by the orders search and the
|
|
28
|
-
* supplier-order queue alike.
|
|
29
|
-
*/
|
|
30
|
-
export interface IStoreCursorPagination {
|
|
31
|
-
nextCursor?: string | null;
|
|
32
|
-
previousCursor?: string | null;
|
|
33
|
-
hasMore?: boolean;
|
|
34
|
-
totalCount?: number;
|
|
35
|
-
pageSize?: number;
|
|
36
|
-
}
|
|
37
|
-
/** One page of a cursor-paged store list. */
|
|
38
|
-
export interface IStoreCursorPage<T> {
|
|
39
|
-
items?: T[];
|
|
40
|
-
pagination?: IStoreCursorPagination;
|
|
41
|
-
}
|
|
42
|
-
/** One part of a store order. */
|
|
43
|
-
export interface IOrderFulfilmentGroup {
|
|
44
|
-
key: string;
|
|
45
|
-
kind: 'merchant' | 'thirdParty';
|
|
46
|
-
label: string;
|
|
47
|
-
status: StoreFulfilmentGroupStatus;
|
|
48
|
-
supplierOrderId?: string;
|
|
49
|
-
shipment?: {
|
|
50
|
-
carrierName?: string;
|
|
51
|
-
trackingNumber?: string;
|
|
52
|
-
trackingUrl?: string;
|
|
53
|
-
status?: string;
|
|
54
|
-
};
|
|
55
|
-
[key: string]: unknown;
|
|
56
|
-
}
|
|
57
|
-
/** A store order as the node reads it for Split Parts. */
|
|
58
|
-
export interface IStoreOrderWithParts {
|
|
59
|
-
_id: string;
|
|
60
|
-
orderNumber?: string;
|
|
61
|
-
fulfilmentGroups?: IOrderFulfilmentGroup[];
|
|
62
|
-
supplierOrders?: IStoreSupplierOrder[];
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
}
|
|
65
|
-
/** One output item of Split Parts: the part, with its order and supplier order attached. */
|
|
66
|
-
export interface IOrderPartItem extends IOrderFulfilmentGroup {
|
|
67
|
-
orderId: string;
|
|
68
|
-
orderNumber?: string;
|
|
69
|
-
supplierOrder: IStoreSupplierOrder | null;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=store.types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