@posty5/n8n-nodes-posty5 5.0.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 +25 -119
- 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 +2 -0
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +89 -51
- 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 +18 -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 +67 -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 +25 -4
- package/dist/utils/api.helpers.d.ts.map +1 -1
- package/dist/utils/api.helpers.js +106 -0
- package/dist/utils/api.helpers.js.map +1 -1
- package/dist/utils/constants.d.ts +45 -13
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +50 -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.d.ts +48 -0
- package/dist/utils/qr-render.helpers.d.ts.map +1 -0
- package/dist/utils/qr-render.helpers.js +172 -0
- package/dist/utils/qr-render.helpers.js.map +1 -0
- package/dist/utils/qr-render.properties.d.ts +8 -0
- package/dist/utils/qr-render.properties.d.ts.map +1 -0
- package/dist/utils/qr-render.properties.js +143 -0
- package/dist/utils/qr-render.properties.js.map +1 -0
- 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,230 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Posty5Store = void 0;
|
|
4
|
-
const constants_1 = require("../../utils/constants");
|
|
5
|
-
const store_helpers_1 = require("../../utils/store.helpers");
|
|
6
|
-
const fulfilment_group_description_1 = require("./descriptions/fulfilment-group.description");
|
|
7
|
-
const order_description_1 = require("./descriptions/order.description");
|
|
8
|
-
const product_link_description_1 = require("./descriptions/product-link.description");
|
|
9
|
-
const supplier_description_1 = require("./descriptions/supplier.description");
|
|
10
|
-
const supplier_order_description_1 = require("./descriptions/supplier-order.description");
|
|
11
|
-
const supplier_product_description_1 = require("./descriptions/supplier-product.description");
|
|
12
|
-
/**
|
|
13
|
-
* Posty5 Store — dropshipping workflows over `/api/store-suppliers` and the
|
|
14
|
-
* order parts on `/api/store-orders`.
|
|
15
|
-
*
|
|
16
|
-
* No store trigger yet: the api pushes no store-order events, so a trigger would
|
|
17
|
-
* poll — which Schedule Trigger + Supplier Order → Get Many already does. Push
|
|
18
|
-
* events (link visits, QR scans, milestones) arrive through Posty5 Trigger;
|
|
19
|
-
* store orders become one more event there when the API adds them. Connecting and
|
|
20
|
-
* configuring suppliers stays in the store's control panel: a supplier
|
|
21
|
-
* credential in a node parameter would sit in plain text in the workflow JSON.
|
|
22
|
-
*/
|
|
23
|
-
class Posty5Store {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.description = {
|
|
26
|
-
displayName: 'Posty5 Store',
|
|
27
|
-
name: 'posty5Store',
|
|
28
|
-
icon: 'file:posty5.svg',
|
|
29
|
-
group: ['transform'],
|
|
30
|
-
version: 1,
|
|
31
|
-
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
32
|
-
description: 'Dropshipping with a Posty5 store: suppliers, imports, supplier orders and order parts',
|
|
33
|
-
defaults: {
|
|
34
|
-
name: 'Posty5 Store',
|
|
35
|
-
},
|
|
36
|
-
inputs: ['main'],
|
|
37
|
-
outputs: ['main'],
|
|
38
|
-
credentials: [
|
|
39
|
-
{
|
|
40
|
-
name: 'posty5Api',
|
|
41
|
-
required: true,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
properties: [
|
|
45
|
-
{
|
|
46
|
-
displayName: 'Resource',
|
|
47
|
-
name: 'resource',
|
|
48
|
-
type: 'options',
|
|
49
|
-
noDataExpression: true,
|
|
50
|
-
options: [
|
|
51
|
-
{ name: 'Fulfilment Group', value: 'fulfilmentGroup' },
|
|
52
|
-
{ name: 'Order', value: 'order' },
|
|
53
|
-
{ name: 'Product Link', value: 'productLink' },
|
|
54
|
-
{ name: 'Supplier', value: 'supplier' },
|
|
55
|
-
{ name: 'Supplier Order', value: 'supplierOrder' },
|
|
56
|
-
{ name: 'Supplier Product', value: 'supplierProduct' },
|
|
57
|
-
],
|
|
58
|
-
default: 'supplierOrder',
|
|
59
|
-
},
|
|
60
|
-
fulfilment_group_description_1.fulfilmentGroupOperations,
|
|
61
|
-
order_description_1.orderOperations,
|
|
62
|
-
product_link_description_1.productLinkOperations,
|
|
63
|
-
supplier_description_1.supplierOperations,
|
|
64
|
-
supplier_order_description_1.supplierOrderOperations,
|
|
65
|
-
supplier_product_description_1.supplierProductOperations,
|
|
66
|
-
{
|
|
67
|
-
displayName: 'Store ID',
|
|
68
|
-
name: 'storeId',
|
|
69
|
-
type: 'string',
|
|
70
|
-
required: true,
|
|
71
|
-
default: '',
|
|
72
|
-
description: 'The store every operation acts on',
|
|
73
|
-
},
|
|
74
|
-
...fulfilment_group_description_1.fulfilmentGroupFields,
|
|
75
|
-
...order_description_1.orderFields,
|
|
76
|
-
...product_link_description_1.productLinkFields,
|
|
77
|
-
...supplier_description_1.supplierFields,
|
|
78
|
-
...supplier_order_description_1.supplierOrderFields,
|
|
79
|
-
...supplier_product_description_1.supplierProductFields,
|
|
80
|
-
],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
async execute() {
|
|
84
|
-
const items = this.getInputData();
|
|
85
|
-
const returnData = [];
|
|
86
|
-
const resource = this.getNodeParameter('resource', 0);
|
|
87
|
-
const operation = this.getNodeParameter('operation', 0);
|
|
88
|
-
const credentials = await this.getCredentials('posty5Api');
|
|
89
|
-
const apiKey = credentials.apiKey;
|
|
90
|
-
const suppliers = constants_1.API_ENDPOINTS.STORE_SUPPLIERS;
|
|
91
|
-
for (let i = 0; i < items.length; i++) {
|
|
92
|
-
try {
|
|
93
|
-
const storeId = this.getNodeParameter('storeId', i);
|
|
94
|
-
let responseData = {};
|
|
95
|
-
if (resource === 'supplier') {
|
|
96
|
-
if (operation === 'getCatalogue') {
|
|
97
|
-
responseData = (await store_helpers_1.storeGet.call(this, apiKey, `${suppliers}/${storeId}/catalogue`))?.items || [];
|
|
98
|
-
}
|
|
99
|
-
else if (operation === 'getMany') {
|
|
100
|
-
responseData = (await store_helpers_1.storeGet.call(this, apiKey, `${suppliers}/${storeId}`))?.items || [];
|
|
101
|
-
}
|
|
102
|
-
else if (operation === 'test') {
|
|
103
|
-
const integrationId = this.getNodeParameter('integrationId', i);
|
|
104
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, `${suppliers}/${storeId}/${integrationId}/test`);
|
|
105
|
-
}
|
|
106
|
-
else if (operation === 'getBalance') {
|
|
107
|
-
const integrationId = this.getNodeParameter('integrationId', i);
|
|
108
|
-
responseData = await store_helpers_1.storeGet.call(this, apiKey, `${suppliers}/${storeId}/${integrationId}/balance`);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
else if (resource === 'supplierProduct') {
|
|
112
|
-
if (operation === 'getImportStatus') {
|
|
113
|
-
const jobId = this.getNodeParameter('jobId', i);
|
|
114
|
-
responseData = await store_helpers_1.storeGet.call(this, apiKey, `${suppliers}/${storeId}/imports/${encodeURIComponent(jobId)}`);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
const integrationId = this.getNodeParameter('integrationId', i);
|
|
118
|
-
const base = `${suppliers}/${storeId}/${integrationId}`;
|
|
119
|
-
if (operation === 'getMany') {
|
|
120
|
-
const filters = this.getNodeParameter('filters', i, {});
|
|
121
|
-
const page = this.getNodeParameter('page', i, 1);
|
|
122
|
-
const limit = this.getNodeParameter('limit', i, constants_1.STORE_SUPPLIER_PAGE_SIZES.CATALOGUE_MAX);
|
|
123
|
-
responseData = (await store_helpers_1.storeGet.call(this, apiKey, `${base}/products`, { ...filters, page, pageSize: limit }))?.items || [];
|
|
124
|
-
}
|
|
125
|
-
else if (operation === 'get') {
|
|
126
|
-
const supplierProductId = this.getNodeParameter('supplierProductId', i);
|
|
127
|
-
responseData = await store_helpers_1.storeGet.call(this, apiKey, `${base}/products/${encodeURIComponent(supplierProductId)}`);
|
|
128
|
-
}
|
|
129
|
-
else if (operation === 'resolveUrl') {
|
|
130
|
-
const url = this.getNodeParameter('url', i);
|
|
131
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, `${base}/products/resolve-url`, { url });
|
|
132
|
-
}
|
|
133
|
-
else if (operation === 'previewImport' || operation === 'import') {
|
|
134
|
-
const ids = this.getNodeParameter('supplierProductIds', i)
|
|
135
|
-
.split(',')
|
|
136
|
-
.map((id) => id.trim())
|
|
137
|
-
.filter(Boolean);
|
|
138
|
-
const options = this.getNodeParameter('importOptions', i, {});
|
|
139
|
-
const tagNames = (options.tagNames || '').split(',').map((tag) => tag.trim()).filter(Boolean);
|
|
140
|
-
const body = {
|
|
141
|
-
items: ids.map((supplierProductId) => ({ supplierProductId })),
|
|
142
|
-
...(options.status || tagNames.length
|
|
143
|
-
? { defaults: { ...(options.status ? { status: options.status } : {}), ...(tagNames.length ? { tagNames } : {}) } }
|
|
144
|
-
: {}),
|
|
145
|
-
...(operation === 'import' && options.allowDuplicate ? { allowDuplicate: true } : {}),
|
|
146
|
-
};
|
|
147
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, `${base}/${operation === 'import' ? 'import' : 'import/preview'}`, body);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
else if (resource === 'productLink') {
|
|
152
|
-
if (operation === 'getMany') {
|
|
153
|
-
const filters = this.getNodeParameter('filters', i, {});
|
|
154
|
-
responseData = (await store_helpers_1.storeGet.call(this, apiKey, `${suppliers}/${storeId}/links`, filters))?.items || [];
|
|
155
|
-
}
|
|
156
|
-
else if (operation === 'sync') {
|
|
157
|
-
const linkId = this.getNodeParameter('linkId', i);
|
|
158
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, `${suppliers}/${storeId}/links/${linkId}/sync`);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
else if (resource === 'supplierOrder') {
|
|
162
|
-
if (operation === 'getMany') {
|
|
163
|
-
// Cursor-paged in the platform's list envelope, like the orders search.
|
|
164
|
-
const filters = this.getNodeParameter('filters', i, {});
|
|
165
|
-
const endpoint = `${suppliers}/${storeId}/orders`;
|
|
166
|
-
if (this.getNodeParameter('returnAll', i, false)) {
|
|
167
|
-
responseData = await store_helpers_1.storeGetAllByCursor.call(this, apiKey, endpoint, filters, constants_1.STORE_SUPPLIER_PAGE_SIZES.SUPPLIER_ORDERS_MAX);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
const limit = this.getNodeParameter('limit', i, 50);
|
|
171
|
-
responseData = (0, store_helpers_1.rowsWithNextCursor)(await store_helpers_1.storeGet.call(this, apiKey, endpoint, { ...filters, pageSize: limit }));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
const supplierOrderId = this.getNodeParameter('supplierOrderId', i);
|
|
176
|
-
if (operation === 'get') {
|
|
177
|
-
responseData = await store_helpers_1.storeGet.call(this, apiKey, `${suppliers}/${storeId}/orders/${supplierOrderId}`);
|
|
178
|
-
}
|
|
179
|
-
else if (operation === 'retry') {
|
|
180
|
-
const acceptCost = this.getNodeParameter('acceptCost', i, false);
|
|
181
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, (0, store_helpers_1.buildSupplierOrderActionEndpoint)(storeId, supplierOrderId, 'retry'), acceptCost ? { acceptCost: true } : {});
|
|
182
|
-
}
|
|
183
|
-
else if (operation === 'pay' || operation === 'cancel') {
|
|
184
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, (0, store_helpers_1.buildSupplierOrderActionEndpoint)(storeId, supplierOrderId, operation));
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
else if (resource === 'fulfilmentGroup') {
|
|
189
|
-
const orderId = this.getNodeParameter('orderId', i);
|
|
190
|
-
const groupKey = this.getNodeParameter('groupKey', i);
|
|
191
|
-
if (operation === 'submit') {
|
|
192
|
-
const payNow = this.getNodeParameter('payNow', i, false);
|
|
193
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, (0, store_helpers_1.buildGroupActionEndpoint)(storeId, orderId, groupKey, 'submit'), payNow ? { payNow: true } : {});
|
|
194
|
-
}
|
|
195
|
-
else if (operation === 'fulfilManually') {
|
|
196
|
-
responseData = await store_helpers_1.storeSupplierPost.call(this, apiKey, (0, store_helpers_1.buildGroupActionEndpoint)(storeId, orderId, groupKey, 'fulfil-manually'));
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
else if (resource === 'order') {
|
|
200
|
-
if (operation === 'get') {
|
|
201
|
-
const orderId = this.getNodeParameter('orderId', i);
|
|
202
|
-
const splitParts = this.getNodeParameter('splitParts', i, false);
|
|
203
|
-
const order = (await store_helpers_1.storeGet.call(this, apiKey, `${constants_1.API_ENDPOINTS.STORE_ORDERS}/${storeId}/${orderId}`));
|
|
204
|
-
responseData = (splitParts ? (0, store_helpers_1.splitOrderParts)(order) : order);
|
|
205
|
-
}
|
|
206
|
-
else if (operation === 'getMany') {
|
|
207
|
-
const filters = this.getNodeParameter('filters', i, {});
|
|
208
|
-
const limit = this.getNodeParameter('limit', i, 50);
|
|
209
|
-
responseData = (0, store_helpers_1.rowsWithNextCursor)(await store_helpers_1.storeGet.call(this, apiKey, `${constants_1.API_ENDPOINTS.STORE_ORDERS}/${storeId}`, { ...filters, pageSize: limit }));
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
|
213
|
-
returnData.push(...executionData);
|
|
214
|
-
}
|
|
215
|
-
catch (error) {
|
|
216
|
-
if (this.continueOnFail()) {
|
|
217
|
-
returnData.push({
|
|
218
|
-
json: { error: error.message },
|
|
219
|
-
pairedItem: { item: i },
|
|
220
|
-
});
|
|
221
|
-
continue;
|
|
222
|
-
}
|
|
223
|
-
throw error;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
return [returnData];
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
exports.Posty5Store = Posty5Store;
|
|
230
|
-
//# sourceMappingURL=Posty5Store.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5Store.node.js","sourceRoot":"","sources":["../../../nodes/Posty5Store/Posty5Store.node.ts"],"names":[],"mappings":";;;AAOA,qDAAiF;AACjF,6DAQmC;AAEnC,8FAA+G;AAC/G,wEAAgF;AAChF,sFAAmG;AACnG,8EAAyF;AACzF,0FAAyG;AACzG,8FAA+G;AAE/G;;;;;;;;;;GAUG;AACH,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAA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C7F,CAAC;yBAAM,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;wBACpC,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAA4B,CAAC;wBACnF,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;wBAC9D,YAAY,GAAG,IAAA,kCAAkB,EAChC,MAAM,wBAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,yBAAa,CAAC,YAAY,IAAI,OAAO,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAC9G,CAAC;oBACH,CAAC;gBACF,CAAC;gBAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,EAC1C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;gBACF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;YACnC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE;wBACzC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAhND,kCAgNC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fulfilment-group.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/fulfilment-group.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,yBAAyB,EAAE,eAsBvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,eAAe,EA4BlD,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fulfilmentGroupFields = exports.fulfilmentGroupOperations = void 0;
|
|
4
|
-
const show = { resource: ['fulfilmentGroup'] };
|
|
5
|
-
exports.fulfilmentGroupOperations = {
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
displayOptions: { show },
|
|
11
|
-
options: [
|
|
12
|
-
{
|
|
13
|
-
name: 'Fulfil Manually',
|
|
14
|
-
value: 'fulfilManually',
|
|
15
|
-
description: 'Take a part over, so the store ships it itself',
|
|
16
|
-
action: 'Fulfil an order part manually',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Submit',
|
|
20
|
-
value: 'submit',
|
|
21
|
-
description: 'Send one part of an order to its supplier now. A second Submit finds the first supplier order instead of creating another.',
|
|
22
|
-
action: 'Submit an order part to its supplier',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
default: 'submit',
|
|
26
|
-
};
|
|
27
|
-
exports.fulfilmentGroupFields = [
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Order ID',
|
|
30
|
-
name: 'orderId',
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: true,
|
|
33
|
-
default: '',
|
|
34
|
-
displayOptions: { show },
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
displayName: 'Part Key',
|
|
38
|
-
name: 'groupKey',
|
|
39
|
-
type: 'string',
|
|
40
|
-
required: true,
|
|
41
|
-
default: '',
|
|
42
|
-
placeholder: 'supplier:…',
|
|
43
|
-
description: "The part's key, from Order → Get (fulfilmentGroups[].key)",
|
|
44
|
-
displayOptions: { show },
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
displayName: 'Pay Now',
|
|
48
|
-
name: 'payNow',
|
|
49
|
-
type: 'boolean',
|
|
50
|
-
default: false,
|
|
51
|
-
description: "Whether to pay the supplier as soon as the order is created, even when the shopper has not paid. Spends the merchant's balance at the supplier; needs suppliers.orders.manage.",
|
|
52
|
-
displayOptions: { show: { ...show, operation: ['submit'] } },
|
|
53
|
-
},
|
|
54
|
-
];
|
|
55
|
-
//# sourceMappingURL=fulfilment-group.description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fulfilment-group.description.js","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/fulfilment-group.description.ts"],"names":[],"mappings":";;;AAEA,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,iBAAiB;YACvB,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,gDAAgD;YAC7D,MAAM,EAAE,+BAA+B;SACvC;QACD;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EACV,4HAA4H;YAC7H,MAAM,EAAE,sCAAsC;SAC9C;KACD;IACD,OAAO,EAAE,QAAQ;CACjB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,2DAA2D;QACxE,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EACV,gLAAgL;QACjL,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAC5D;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order.description.d.ts","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/order.description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,eAAe,EAAE,eAqB7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EAgExC,CAAC"}
|
|
@@ -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","sourceRoot":"","sources":["../../../../nodes/Posty5Store/descriptions/order.description.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAExB,QAAA,eAAe,GAAoB;IAC/C,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,yFAAyF;YACtG,MAAM,EAAE,cAAc;SACtB;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,E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AY;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,EAAE,yCAAyC;YACtD,MAAM,EAAE,sBAAsB;SAC9B;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,oCAAoC;YACjD,MAAM,EAAE,0BAA0B;SAClC;QACD;YACC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EACV,4LAA4L;YAC7L,MAAM,EAAE,sBAAsB;SAC9B;QACD;YACC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;YACd,WAAW,EACV,4GAA4G;YAC7G,MAAM,EAAE,wBAAwB;SAChC;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,E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AAwB,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"}
|