n8n-nodes-commercetools 0.1.3
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/LICENSE.md +19 -0
- package/README.md +247 -0
- package/dist/credentials/CommerceToolsOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/CommerceToolsOAuth2Api.credentials.js +77 -0
- package/dist/credentials/CommerceToolsOAuth2Api.credentials.js.map +1 -0
- package/dist/icons/Commercetools.svg +44 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/nodes/Commercetools/Commercetools.node.d.ts +5 -0
- package/dist/nodes/Commercetools/Commercetools.node.js +64 -0
- package/dist/nodes/Commercetools/Commercetools.node.js.map +1 -0
- package/dist/nodes/Commercetools/Commercetools.node.json +18 -0
- package/dist/nodes/Commercetools/Commercetools.svg +44 -0
- package/dist/nodes/Commercetools/PostmanCollection/api/collection.json +1 -0
- package/dist/nodes/Commercetools/descriptions/Commercetools.description.d.ts +2 -0
- package/dist/nodes/Commercetools/descriptions/Commercetools.description.js +1374 -0
- package/dist/nodes/Commercetools/descriptions/Commercetools.description.js.map +1 -0
- package/dist/nodes/Commercetools/operations/product.operations.d.ts +9 -0
- package/dist/nodes/Commercetools/operations/product.operations.js +345 -0
- package/dist/nodes/Commercetools/operations/product.operations.js.map +1 -0
- package/dist/nodes/Commercetools/utils/product.utils.d.ts +11 -0
- package/dist/nodes/Commercetools/utils/product.utils.js +162 -0
- package/dist/nodes/Commercetools/utils/product.utils.js.map +1 -0
- package/dist/package.json +54 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/icons/Commercetools.svg +44 -0
- package/icons/github.dark.svg +3 -0
- package/icons/github.svg +3 -0
- package/package.json +55 -0
|
@@ -0,0 +1,1374 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commercetoolsDescription = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const nodeGroup = {
|
|
6
|
+
group: ['transform'],
|
|
7
|
+
};
|
|
8
|
+
exports.commercetoolsDescription = {
|
|
9
|
+
displayName: 'Commercetools',
|
|
10
|
+
name: 'Commercetools',
|
|
11
|
+
icon: 'file:Commercetools.svg',
|
|
12
|
+
...nodeGroup,
|
|
13
|
+
version: 1,
|
|
14
|
+
description: 'Interact with the Commercetools Products API',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'Commercetools',
|
|
17
|
+
},
|
|
18
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
19
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
usableAsTool: true,
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'commerceToolsOAuth2Api',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
properties: [
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Resource',
|
|
30
|
+
name: 'resource',
|
|
31
|
+
type: 'options',
|
|
32
|
+
noDataExpression: true,
|
|
33
|
+
options: [
|
|
34
|
+
{
|
|
35
|
+
name: 'Product',
|
|
36
|
+
value: 'product',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
default: 'product',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Operation',
|
|
43
|
+
name: 'operation',
|
|
44
|
+
type: 'options',
|
|
45
|
+
noDataExpression: true,
|
|
46
|
+
options: [
|
|
47
|
+
{
|
|
48
|
+
name: 'Check Existence',
|
|
49
|
+
value: 'head',
|
|
50
|
+
action: 'Check if product exists',
|
|
51
|
+
description: 'Check whether a product exists by ID',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Check Existence By Key',
|
|
55
|
+
value: 'headByKey',
|
|
56
|
+
action: 'Check if product exists by key',
|
|
57
|
+
description: 'Check whether a product exists using its key',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Check Existence By Query',
|
|
61
|
+
value: 'headByQuery',
|
|
62
|
+
action: 'Check if any product matches the query',
|
|
63
|
+
description: 'Send a HEAD request with query predicates to check for matches',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Create',
|
|
67
|
+
value: 'create',
|
|
68
|
+
action: 'Create product',
|
|
69
|
+
description: 'Create a product draft',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Delete',
|
|
73
|
+
value: 'delete',
|
|
74
|
+
action: 'Delete product',
|
|
75
|
+
description: 'Delete a product by ID',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Delete By Key',
|
|
79
|
+
value: 'deleteByKey',
|
|
80
|
+
action: 'Delete product by key',
|
|
81
|
+
description: 'Delete a product using its key',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Get',
|
|
85
|
+
value: 'get',
|
|
86
|
+
action: 'Get product',
|
|
87
|
+
description: 'Retrieve a product by ID',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Get By Key',
|
|
91
|
+
value: 'getByKey',
|
|
92
|
+
action: 'Get product by key',
|
|
93
|
+
description: 'Retrieve a product using its key',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Query',
|
|
97
|
+
value: 'query',
|
|
98
|
+
action: 'Query products',
|
|
99
|
+
description: 'Retrieve products using the Composable Commerce Products endpoint',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Query Product Selections',
|
|
103
|
+
value: 'querySelections',
|
|
104
|
+
action: 'Query product selections by product ID',
|
|
105
|
+
description: 'List product selections assigned to a product by ID',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Query Product Selections By Key',
|
|
109
|
+
value: 'querySelectionsByKey',
|
|
110
|
+
action: 'Query product selections by product key',
|
|
111
|
+
description: 'List product selections assigned to a product by key',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Search',
|
|
115
|
+
value: 'search',
|
|
116
|
+
action: 'Search products',
|
|
117
|
+
description: 'Full-text product search using the product search endpoint',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Update',
|
|
121
|
+
value: 'update',
|
|
122
|
+
action: 'Update product',
|
|
123
|
+
description: 'Perform update actions on a product by ID',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Update By Key',
|
|
127
|
+
value: 'updateByKey',
|
|
128
|
+
action: 'Update product by key',
|
|
129
|
+
description: 'Perform update actions on a product by key',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'Upload Image',
|
|
133
|
+
value: 'uploadImage',
|
|
134
|
+
action: 'Upload product image',
|
|
135
|
+
description: 'Upload an image to a product variant',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
default: 'query',
|
|
139
|
+
displayOptions: {
|
|
140
|
+
show: {
|
|
141
|
+
resource: ['product'],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Product ID',
|
|
147
|
+
name: 'productId',
|
|
148
|
+
type: 'string',
|
|
149
|
+
default: '',
|
|
150
|
+
required: true,
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
resource: ['product'],
|
|
154
|
+
operation: ['get', 'update', 'delete', 'head', 'querySelections', 'uploadImage'],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
description: 'Unique ID of the product to target',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Product Key',
|
|
161
|
+
name: 'productKey',
|
|
162
|
+
type: 'string',
|
|
163
|
+
default: '',
|
|
164
|
+
required: true,
|
|
165
|
+
displayOptions: {
|
|
166
|
+
show: {
|
|
167
|
+
resource: ['product'],
|
|
168
|
+
operation: ['getByKey', 'updateByKey', 'deleteByKey', 'headByKey', 'querySelectionsByKey'],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
description: 'Unique key of the product to target',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Product Draft (JSON)',
|
|
175
|
+
name: 'productDraft',
|
|
176
|
+
type: 'json',
|
|
177
|
+
default: '{}',
|
|
178
|
+
required: true,
|
|
179
|
+
displayOptions: {
|
|
180
|
+
show: {
|
|
181
|
+
resource: ['product'],
|
|
182
|
+
operation: ['create'],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
description: 'JSON representation of the product draft to create, e.g. <code>{"productType":{"typeId":"product-type","ID":"..."},"name":{"en":"Product"},"slug":{"en":"product"}}</code>',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'Version',
|
|
189
|
+
name: 'version',
|
|
190
|
+
type: 'number',
|
|
191
|
+
typeOptions: {
|
|
192
|
+
minValue: 0,
|
|
193
|
+
},
|
|
194
|
+
default: 0,
|
|
195
|
+
required: true,
|
|
196
|
+
displayOptions: {
|
|
197
|
+
show: {
|
|
198
|
+
resource: ['product'],
|
|
199
|
+
operation: ['update', 'updateByKey', 'delete', 'deleteByKey'],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
description: 'Current version of the product to ensure optimistic concurrency control',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Actions (JSON)',
|
|
206
|
+
name: 'actions',
|
|
207
|
+
type: 'json',
|
|
208
|
+
default: '[]',
|
|
209
|
+
description: 'Update actions to apply to the product',
|
|
210
|
+
displayOptions: {
|
|
211
|
+
show: {
|
|
212
|
+
resource: ['product'],
|
|
213
|
+
operation: ['update', 'updateByKey'],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Actions (UI)',
|
|
219
|
+
name: 'actionsUi',
|
|
220
|
+
type: 'fixedCollection',
|
|
221
|
+
default: {},
|
|
222
|
+
placeholder: 'Add Action',
|
|
223
|
+
typeOptions: {
|
|
224
|
+
multipleValues: true,
|
|
225
|
+
},
|
|
226
|
+
description: 'Update actions built via UI for ease of use',
|
|
227
|
+
options: [
|
|
228
|
+
{
|
|
229
|
+
displayName: 'Action',
|
|
230
|
+
name: 'action',
|
|
231
|
+
values: [
|
|
232
|
+
{
|
|
233
|
+
displayName: 'Change Product Name',
|
|
234
|
+
name: 'changeProductName',
|
|
235
|
+
type: 'collection',
|
|
236
|
+
default: {},
|
|
237
|
+
placeholder: 'Add Change Name Action',
|
|
238
|
+
options: [
|
|
239
|
+
{
|
|
240
|
+
displayName: 'Localized Names',
|
|
241
|
+
name: 'localizedNames',
|
|
242
|
+
type: 'fixedCollection',
|
|
243
|
+
default: {},
|
|
244
|
+
typeOptions: {
|
|
245
|
+
multipleValues: true,
|
|
246
|
+
},
|
|
247
|
+
options: [
|
|
248
|
+
{
|
|
249
|
+
name: 'value',
|
|
250
|
+
displayName: 'Value',
|
|
251
|
+
values: [
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Locale',
|
|
254
|
+
name: 'locale',
|
|
255
|
+
type: 'string',
|
|
256
|
+
default: '',
|
|
257
|
+
description: 'Locale identifier, e.g. "en-US"',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
displayName: 'Name',
|
|
261
|
+
name: 'value',
|
|
262
|
+
type: 'string',
|
|
263
|
+
default: '',
|
|
264
|
+
description: 'Localized product name for the locale',
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
displayName: 'Apply to Staged Version',
|
|
272
|
+
name: 'staged',
|
|
273
|
+
type: 'boolean',
|
|
274
|
+
default: false,
|
|
275
|
+
description: 'Whether the name change should apply to the staged product data',
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
displayName: 'Set Product Key',
|
|
281
|
+
name: 'setProductKey',
|
|
282
|
+
type: 'collection',
|
|
283
|
+
default: {},
|
|
284
|
+
placeholder: 'Add Set Product Key Action',
|
|
285
|
+
options: [
|
|
286
|
+
{
|
|
287
|
+
displayName: 'New Key',
|
|
288
|
+
name: 'key',
|
|
289
|
+
type: 'string',
|
|
290
|
+
default: '',
|
|
291
|
+
description: 'New product key to set',
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
displayName: 'Remove Key',
|
|
295
|
+
name: 'removeKey',
|
|
296
|
+
type: 'boolean',
|
|
297
|
+
default: false,
|
|
298
|
+
description: 'Whether to remove the product key instead of setting a new one',
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
displayOptions: {
|
|
306
|
+
show: {
|
|
307
|
+
resource: ['product'],
|
|
308
|
+
operation: ['update', 'updateByKey'],
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
displayName: 'Additional Fields',
|
|
314
|
+
name: 'additionalFields',
|
|
315
|
+
type: 'collection',
|
|
316
|
+
default: {},
|
|
317
|
+
placeholder: 'Add Field',
|
|
318
|
+
options: [
|
|
319
|
+
{
|
|
320
|
+
displayName: 'Custom Query Parameters',
|
|
321
|
+
name: 'customParameters',
|
|
322
|
+
type: 'fixedCollection',
|
|
323
|
+
default: {},
|
|
324
|
+
placeholder: 'Add Parameter',
|
|
325
|
+
typeOptions: {
|
|
326
|
+
multipleValues: true,
|
|
327
|
+
},
|
|
328
|
+
options: [
|
|
329
|
+
{
|
|
330
|
+
name: 'parameter',
|
|
331
|
+
displayName: 'Parameter',
|
|
332
|
+
values: [
|
|
333
|
+
{
|
|
334
|
+
displayName: 'Key',
|
|
335
|
+
name: 'key',
|
|
336
|
+
type: 'string',
|
|
337
|
+
default: '',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
displayName: 'Value',
|
|
341
|
+
name: 'value',
|
|
342
|
+
type: 'string',
|
|
343
|
+
default: '',
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
displayName: 'Expand',
|
|
351
|
+
name: 'expand',
|
|
352
|
+
type: 'string',
|
|
353
|
+
default: '',
|
|
354
|
+
description: 'Include additional resources by reference expansion',
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
displayName: 'Locale Projection',
|
|
358
|
+
name: 'localeProjection',
|
|
359
|
+
type: 'string',
|
|
360
|
+
default: '',
|
|
361
|
+
description: 'Select locales for returned localized fields',
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
displayName: 'Predicate Variables',
|
|
365
|
+
name: 'predicateVariables',
|
|
366
|
+
type: 'fixedCollection',
|
|
367
|
+
default: {},
|
|
368
|
+
placeholder: 'Add Predicate Variable',
|
|
369
|
+
typeOptions: {
|
|
370
|
+
multipleValues: true,
|
|
371
|
+
},
|
|
372
|
+
options: [
|
|
373
|
+
{
|
|
374
|
+
name: 'variable',
|
|
375
|
+
displayName: 'Variable',
|
|
376
|
+
values: [
|
|
377
|
+
{
|
|
378
|
+
displayName: 'Name',
|
|
379
|
+
name: 'name',
|
|
380
|
+
type: 'string',
|
|
381
|
+
default: '',
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
displayName: 'Value',
|
|
385
|
+
name: 'value',
|
|
386
|
+
type: 'string',
|
|
387
|
+
default: '',
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
displayName: 'Price Channel',
|
|
395
|
+
name: 'priceChannel',
|
|
396
|
+
type: 'string',
|
|
397
|
+
default: '',
|
|
398
|
+
description: 'Channel to select prices for',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
displayName: 'Price Country',
|
|
402
|
+
name: 'priceCountry',
|
|
403
|
+
type: 'string',
|
|
404
|
+
default: '',
|
|
405
|
+
description: 'Country to select prices for',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
displayName: 'Price Currency',
|
|
409
|
+
name: 'priceCurrency',
|
|
410
|
+
type: 'string',
|
|
411
|
+
default: '',
|
|
412
|
+
description: 'Currency code for price selection',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
displayName: 'Price Customer Group',
|
|
416
|
+
name: 'priceCustomerGroup',
|
|
417
|
+
type: 'string',
|
|
418
|
+
default: '',
|
|
419
|
+
description: 'Customer group to select prices for',
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
displayName: 'Sort',
|
|
423
|
+
name: 'sort',
|
|
424
|
+
type: 'string',
|
|
425
|
+
default: '',
|
|
426
|
+
description: 'Sorting expression for query results, e.g. <code>createdAt desc</code>',
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
displayName: 'Staged',
|
|
430
|
+
name: 'staged',
|
|
431
|
+
type: 'boolean',
|
|
432
|
+
default: false,
|
|
433
|
+
description: 'Whether to retrieve the staged projection',
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
displayName: 'Store Projection',
|
|
437
|
+
name: 'storeProjection',
|
|
438
|
+
type: 'string',
|
|
439
|
+
default: '',
|
|
440
|
+
description: 'Store in which the results are projected',
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
displayName: 'Where',
|
|
444
|
+
name: 'where',
|
|
445
|
+
type: 'string',
|
|
446
|
+
default: '',
|
|
447
|
+
description: 'Query predicates to filter results',
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
displayName: 'With Total',
|
|
451
|
+
name: 'withTotal',
|
|
452
|
+
type: 'boolean',
|
|
453
|
+
default: true,
|
|
454
|
+
description: 'Whether the query should calculate the total number of matching products',
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
displayOptions: {
|
|
458
|
+
show: {
|
|
459
|
+
resource: ['product'],
|
|
460
|
+
operation: ['query'],
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
displayName: 'Return All',
|
|
466
|
+
name: 'returnAll',
|
|
467
|
+
type: 'boolean',
|
|
468
|
+
default: false,
|
|
469
|
+
displayOptions: {
|
|
470
|
+
show: {
|
|
471
|
+
resource: ['product'],
|
|
472
|
+
operation: ['query'],
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
displayName: 'Limit',
|
|
479
|
+
name: 'limit',
|
|
480
|
+
type: 'number',
|
|
481
|
+
default: 50,
|
|
482
|
+
typeOptions: {
|
|
483
|
+
minValue: 1,
|
|
484
|
+
maxValue: 500,
|
|
485
|
+
},
|
|
486
|
+
displayOptions: {
|
|
487
|
+
show: {
|
|
488
|
+
resource: ['product'],
|
|
489
|
+
operation: ['query'],
|
|
490
|
+
returnAll: [false],
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
description: 'Max number of results to return',
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
displayName: 'Offset',
|
|
497
|
+
name: 'offset',
|
|
498
|
+
type: 'number',
|
|
499
|
+
default: 0,
|
|
500
|
+
typeOptions: {
|
|
501
|
+
minValue: 0,
|
|
502
|
+
},
|
|
503
|
+
displayOptions: {
|
|
504
|
+
show: {
|
|
505
|
+
resource: ['product'],
|
|
506
|
+
operation: ['query'],
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
description: 'Number of products to skip before returning results',
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
displayName: 'Additional Fields',
|
|
513
|
+
name: 'additionalFieldsGet',
|
|
514
|
+
type: 'collection',
|
|
515
|
+
default: {},
|
|
516
|
+
placeholder: 'Add Field',
|
|
517
|
+
options: [
|
|
518
|
+
{
|
|
519
|
+
displayName: 'Custom Query Parameters',
|
|
520
|
+
name: 'customParameters',
|
|
521
|
+
type: 'fixedCollection',
|
|
522
|
+
default: {},
|
|
523
|
+
placeholder: 'Add Parameter',
|
|
524
|
+
typeOptions: {
|
|
525
|
+
multipleValues: true,
|
|
526
|
+
},
|
|
527
|
+
options: [
|
|
528
|
+
{
|
|
529
|
+
name: 'parameter',
|
|
530
|
+
displayName: 'Parameter',
|
|
531
|
+
values: [
|
|
532
|
+
{
|
|
533
|
+
displayName: 'Key',
|
|
534
|
+
name: 'key',
|
|
535
|
+
type: 'string',
|
|
536
|
+
default: '',
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
displayName: 'Value',
|
|
540
|
+
name: 'value',
|
|
541
|
+
type: 'string',
|
|
542
|
+
default: '',
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
},
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
displayName: 'Expand',
|
|
550
|
+
name: 'expand',
|
|
551
|
+
type: 'string',
|
|
552
|
+
default: '',
|
|
553
|
+
description: 'Include additional resources by reference expansion',
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
displayName: 'Locale Projection',
|
|
557
|
+
name: 'localeProjection',
|
|
558
|
+
type: 'string',
|
|
559
|
+
default: '',
|
|
560
|
+
description: 'Select locales for returned localized fields',
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
displayName: 'Price Channel',
|
|
564
|
+
name: 'priceChannel',
|
|
565
|
+
type: 'string',
|
|
566
|
+
default: '',
|
|
567
|
+
description: 'Channel to select prices for',
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
displayName: 'Price Country',
|
|
571
|
+
name: 'priceCountry',
|
|
572
|
+
type: 'string',
|
|
573
|
+
default: '',
|
|
574
|
+
description: 'Country to select prices for',
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
displayName: 'Price Currency',
|
|
578
|
+
name: 'priceCurrency',
|
|
579
|
+
type: 'string',
|
|
580
|
+
default: '',
|
|
581
|
+
description: 'Currency code for price selection',
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
displayName: 'Price Customer Group',
|
|
585
|
+
name: 'priceCustomerGroup',
|
|
586
|
+
type: 'string',
|
|
587
|
+
default: '',
|
|
588
|
+
description: 'Customer group to select prices for',
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
displayName: 'Staged',
|
|
592
|
+
name: 'staged',
|
|
593
|
+
type: 'boolean',
|
|
594
|
+
default: false,
|
|
595
|
+
description: 'Whether to retrieve the staged projection',
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
displayName: 'Store Projection',
|
|
599
|
+
name: 'storeProjection',
|
|
600
|
+
type: 'string',
|
|
601
|
+
default: '',
|
|
602
|
+
description: 'Store in which the results are projected',
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
displayOptions: {
|
|
606
|
+
show: {
|
|
607
|
+
resource: ['product'],
|
|
608
|
+
operation: ['get', 'getByKey'],
|
|
609
|
+
},
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
displayName: 'Additional Fields',
|
|
614
|
+
name: 'additionalFieldsSearch',
|
|
615
|
+
type: 'collection',
|
|
616
|
+
default: {},
|
|
617
|
+
placeholder: 'Add Field',
|
|
618
|
+
options: [
|
|
619
|
+
{
|
|
620
|
+
displayName: 'Custom Query Parameters',
|
|
621
|
+
name: 'customParameters',
|
|
622
|
+
type: 'fixedCollection',
|
|
623
|
+
default: {},
|
|
624
|
+
placeholder: 'Add Parameter',
|
|
625
|
+
typeOptions: {
|
|
626
|
+
multipleValues: true,
|
|
627
|
+
},
|
|
628
|
+
options: [
|
|
629
|
+
{
|
|
630
|
+
name: 'parameter',
|
|
631
|
+
displayName: 'Parameter',
|
|
632
|
+
values: [
|
|
633
|
+
{
|
|
634
|
+
displayName: 'Key',
|
|
635
|
+
name: 'key',
|
|
636
|
+
type: 'string',
|
|
637
|
+
default: '',
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
displayName: 'Value',
|
|
641
|
+
name: 'value',
|
|
642
|
+
type: 'string',
|
|
643
|
+
default: '',
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
},
|
|
647
|
+
],
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
displayName: 'Expand',
|
|
651
|
+
name: 'expand',
|
|
652
|
+
type: 'string',
|
|
653
|
+
default: '',
|
|
654
|
+
description: 'Include additional resources by reference expansion',
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
displayName: 'Locale Projection',
|
|
658
|
+
name: 'localeProjection',
|
|
659
|
+
type: 'string',
|
|
660
|
+
default: '',
|
|
661
|
+
description: 'Select locales for returned localized fields',
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
displayName: 'Mark Matching Variants',
|
|
665
|
+
name: 'markMatchingVariants',
|
|
666
|
+
type: 'boolean',
|
|
667
|
+
default: false,
|
|
668
|
+
description: 'Whether to mark matching variants in search results',
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
displayName: 'Price Channel',
|
|
672
|
+
name: 'priceChannel',
|
|
673
|
+
type: 'string',
|
|
674
|
+
default: '',
|
|
675
|
+
description: 'Channel to select prices for',
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
displayName: 'Price Country',
|
|
679
|
+
name: 'priceCountry',
|
|
680
|
+
type: 'string',
|
|
681
|
+
default: '',
|
|
682
|
+
description: 'Country to select prices for',
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
displayName: 'Price Currency',
|
|
686
|
+
name: 'priceCurrency',
|
|
687
|
+
type: 'string',
|
|
688
|
+
default: '',
|
|
689
|
+
description: 'Currency code for price selection',
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
displayName: 'Price Customer Group',
|
|
693
|
+
name: 'priceCustomerGroup',
|
|
694
|
+
type: 'string',
|
|
695
|
+
default: '',
|
|
696
|
+
description: 'Customer group to select prices for',
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
displayName: 'Staged',
|
|
700
|
+
name: 'staged',
|
|
701
|
+
type: 'boolean',
|
|
702
|
+
default: false,
|
|
703
|
+
description: 'Whether to retrieve the staged projection',
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
displayName: 'Store Projection',
|
|
707
|
+
name: 'storeProjection',
|
|
708
|
+
type: 'string',
|
|
709
|
+
default: '',
|
|
710
|
+
description: 'Store in which the results are projected',
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
displayName: 'With Total',
|
|
714
|
+
name: 'withTotal',
|
|
715
|
+
type: 'boolean',
|
|
716
|
+
default: true,
|
|
717
|
+
description: 'Whether the search should calculate the total number of matching products',
|
|
718
|
+
},
|
|
719
|
+
],
|
|
720
|
+
displayOptions: {
|
|
721
|
+
show: {
|
|
722
|
+
resource: ['product'],
|
|
723
|
+
operation: ['search'],
|
|
724
|
+
},
|
|
725
|
+
},
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
displayName: 'Additional Fields',
|
|
729
|
+
name: 'additionalFieldsCreate',
|
|
730
|
+
type: 'collection',
|
|
731
|
+
default: {},
|
|
732
|
+
placeholder: 'Add Field',
|
|
733
|
+
options: [
|
|
734
|
+
{
|
|
735
|
+
displayName: 'Custom Query Parameters',
|
|
736
|
+
name: 'customParameters',
|
|
737
|
+
type: 'fixedCollection',
|
|
738
|
+
default: {},
|
|
739
|
+
placeholder: 'Add Parameter',
|
|
740
|
+
typeOptions: {
|
|
741
|
+
multipleValues: true,
|
|
742
|
+
},
|
|
743
|
+
options: [
|
|
744
|
+
{
|
|
745
|
+
name: 'parameter',
|
|
746
|
+
displayName: 'Parameter',
|
|
747
|
+
values: [
|
|
748
|
+
{
|
|
749
|
+
displayName: 'Key',
|
|
750
|
+
name: 'key',
|
|
751
|
+
type: 'string',
|
|
752
|
+
default: '',
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
displayName: 'Value',
|
|
756
|
+
name: 'value',
|
|
757
|
+
type: 'string',
|
|
758
|
+
default: '',
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
},
|
|
762
|
+
],
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
displayName: 'Expand',
|
|
766
|
+
name: 'expand',
|
|
767
|
+
type: 'string',
|
|
768
|
+
default: '',
|
|
769
|
+
description: 'Include additional resources by reference expansion',
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
displayName: 'Locale Projection',
|
|
773
|
+
name: 'localeProjection',
|
|
774
|
+
type: 'string',
|
|
775
|
+
default: '',
|
|
776
|
+
description: 'Select locales for returned localized fields',
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
displayName: 'Price Channel',
|
|
780
|
+
name: 'priceChannel',
|
|
781
|
+
type: 'string',
|
|
782
|
+
default: '',
|
|
783
|
+
description: 'Channel to select prices for',
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
displayName: 'Price Country',
|
|
787
|
+
name: 'priceCountry',
|
|
788
|
+
type: 'string',
|
|
789
|
+
default: '',
|
|
790
|
+
description: 'Country to select prices for',
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
displayName: 'Price Currency',
|
|
794
|
+
name: 'priceCurrency',
|
|
795
|
+
type: 'string',
|
|
796
|
+
default: '',
|
|
797
|
+
description: 'Currency code for price selection',
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
displayName: 'Price Customer Group',
|
|
801
|
+
name: 'priceCustomerGroup',
|
|
802
|
+
type: 'string',
|
|
803
|
+
default: '',
|
|
804
|
+
description: 'Customer group to select prices for',
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
displayName: 'Staged',
|
|
808
|
+
name: 'staged',
|
|
809
|
+
type: 'boolean',
|
|
810
|
+
default: true,
|
|
811
|
+
description: 'Whether to create the product in the staged state',
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
displayName: 'Store Projection',
|
|
815
|
+
name: 'storeProjection',
|
|
816
|
+
type: 'string',
|
|
817
|
+
default: '',
|
|
818
|
+
description: 'Store in which the results are projected',
|
|
819
|
+
},
|
|
820
|
+
],
|
|
821
|
+
displayOptions: {
|
|
822
|
+
show: {
|
|
823
|
+
resource: ['product'],
|
|
824
|
+
operation: ['create'],
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
displayName: 'Additional Fields',
|
|
830
|
+
name: 'additionalFieldsUpdate',
|
|
831
|
+
type: 'collection',
|
|
832
|
+
default: {},
|
|
833
|
+
placeholder: 'Add Field',
|
|
834
|
+
options: [
|
|
835
|
+
{
|
|
836
|
+
displayName: 'Custom Query Parameters',
|
|
837
|
+
name: 'customParameters',
|
|
838
|
+
type: 'fixedCollection',
|
|
839
|
+
default: {},
|
|
840
|
+
placeholder: 'Add Parameter',
|
|
841
|
+
typeOptions: {
|
|
842
|
+
multipleValues: true,
|
|
843
|
+
},
|
|
844
|
+
options: [
|
|
845
|
+
{
|
|
846
|
+
name: 'parameter',
|
|
847
|
+
displayName: 'Parameter',
|
|
848
|
+
values: [
|
|
849
|
+
{
|
|
850
|
+
displayName: 'Key',
|
|
851
|
+
name: 'key',
|
|
852
|
+
type: 'string',
|
|
853
|
+
default: '',
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
displayName: 'Value',
|
|
857
|
+
name: 'value',
|
|
858
|
+
type: 'string',
|
|
859
|
+
default: '',
|
|
860
|
+
},
|
|
861
|
+
],
|
|
862
|
+
},
|
|
863
|
+
],
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
displayName: 'Data Erasure',
|
|
867
|
+
name: 'dataErasure',
|
|
868
|
+
type: 'boolean',
|
|
869
|
+
default: false,
|
|
870
|
+
description: 'Whether to irreversibly delete personal data',
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
displayName: 'Dry Run',
|
|
874
|
+
name: 'dryRun',
|
|
875
|
+
type: 'boolean',
|
|
876
|
+
default: false,
|
|
877
|
+
description: 'Whether to simulate the update without persisting changes',
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
displayName: 'Expand',
|
|
881
|
+
name: 'expand',
|
|
882
|
+
type: 'string',
|
|
883
|
+
default: '',
|
|
884
|
+
description: 'Include additional resources by reference expansion',
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
displayName: 'Locale Projection',
|
|
888
|
+
name: 'localeProjection',
|
|
889
|
+
type: 'string',
|
|
890
|
+
default: '',
|
|
891
|
+
description: 'Select locales for returned localized fields',
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
displayName: 'Predicate Variables',
|
|
895
|
+
name: 'predicateVariables',
|
|
896
|
+
type: 'fixedCollection',
|
|
897
|
+
default: {},
|
|
898
|
+
placeholder: 'Add Predicate Variable',
|
|
899
|
+
typeOptions: {
|
|
900
|
+
multipleValues: true,
|
|
901
|
+
},
|
|
902
|
+
options: [
|
|
903
|
+
{
|
|
904
|
+
name: 'variable',
|
|
905
|
+
displayName: 'Variable',
|
|
906
|
+
values: [
|
|
907
|
+
{
|
|
908
|
+
displayName: 'Name',
|
|
909
|
+
name: 'name',
|
|
910
|
+
type: 'string',
|
|
911
|
+
default: '',
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
displayName: 'Value',
|
|
915
|
+
name: 'value',
|
|
916
|
+
type: 'string',
|
|
917
|
+
default: '',
|
|
918
|
+
},
|
|
919
|
+
],
|
|
920
|
+
},
|
|
921
|
+
],
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
displayName: 'Price Channel',
|
|
925
|
+
name: 'priceChannel',
|
|
926
|
+
type: 'string',
|
|
927
|
+
default: '',
|
|
928
|
+
description: 'Channel to select prices for',
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
displayName: 'Price Country',
|
|
932
|
+
name: 'priceCountry',
|
|
933
|
+
type: 'string',
|
|
934
|
+
default: '',
|
|
935
|
+
description: 'Country to select prices for',
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
displayName: 'Price Currency',
|
|
939
|
+
name: 'priceCurrency',
|
|
940
|
+
type: 'string',
|
|
941
|
+
default: '',
|
|
942
|
+
description: 'Currency code for price selection',
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
displayName: 'Price Customer Group',
|
|
946
|
+
name: 'priceCustomerGroup',
|
|
947
|
+
type: 'string',
|
|
948
|
+
default: '',
|
|
949
|
+
description: 'Customer group to select prices for',
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
displayName: 'Staged',
|
|
953
|
+
name: 'staged',
|
|
954
|
+
type: 'boolean',
|
|
955
|
+
default: false,
|
|
956
|
+
description: 'Whether the update should affect the staged product data',
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
displayName: 'Store Projection',
|
|
960
|
+
name: 'storeProjection',
|
|
961
|
+
type: 'string',
|
|
962
|
+
default: '',
|
|
963
|
+
description: 'Store in which the results are projected',
|
|
964
|
+
},
|
|
965
|
+
],
|
|
966
|
+
displayOptions: {
|
|
967
|
+
show: {
|
|
968
|
+
resource: ['product'],
|
|
969
|
+
operation: ['update', 'updateByKey'],
|
|
970
|
+
},
|
|
971
|
+
},
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
displayName: 'Additional Fields',
|
|
975
|
+
name: 'additionalFieldsDelete',
|
|
976
|
+
type: 'collection',
|
|
977
|
+
default: {},
|
|
978
|
+
placeholder: 'Add Field',
|
|
979
|
+
options: [
|
|
980
|
+
{
|
|
981
|
+
displayName: 'Custom Query Parameters',
|
|
982
|
+
name: 'customParameters',
|
|
983
|
+
type: 'fixedCollection',
|
|
984
|
+
default: {},
|
|
985
|
+
placeholder: 'Add Parameter',
|
|
986
|
+
typeOptions: {
|
|
987
|
+
multipleValues: true,
|
|
988
|
+
},
|
|
989
|
+
options: [
|
|
990
|
+
{
|
|
991
|
+
name: 'parameter',
|
|
992
|
+
displayName: 'Parameter',
|
|
993
|
+
values: [
|
|
994
|
+
{
|
|
995
|
+
displayName: 'Key',
|
|
996
|
+
name: 'key',
|
|
997
|
+
type: 'string',
|
|
998
|
+
default: '',
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
displayName: 'Value',
|
|
1002
|
+
name: 'value',
|
|
1003
|
+
type: 'string',
|
|
1004
|
+
default: '',
|
|
1005
|
+
},
|
|
1006
|
+
],
|
|
1007
|
+
},
|
|
1008
|
+
],
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
displayName: 'Data Erasure',
|
|
1012
|
+
name: 'dataErasure',
|
|
1013
|
+
type: 'boolean',
|
|
1014
|
+
default: false,
|
|
1015
|
+
description: 'Whether to irreversibly delete personal data',
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
displayName: 'Expand',
|
|
1019
|
+
name: 'expand',
|
|
1020
|
+
type: 'string',
|
|
1021
|
+
default: '',
|
|
1022
|
+
description: 'Include additional resources by reference expansion',
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
displayName: 'Locale Projection',
|
|
1026
|
+
name: 'localeProjection',
|
|
1027
|
+
type: 'string',
|
|
1028
|
+
default: '',
|
|
1029
|
+
description: 'Select locales for returned localized fields',
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
displayName: 'Price Channel',
|
|
1033
|
+
name: 'priceChannel',
|
|
1034
|
+
type: 'string',
|
|
1035
|
+
default: '',
|
|
1036
|
+
description: 'Channel to select prices for',
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
displayName: 'Price Country',
|
|
1040
|
+
name: 'priceCountry',
|
|
1041
|
+
type: 'string',
|
|
1042
|
+
default: '',
|
|
1043
|
+
description: 'Country to select prices for',
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
displayName: 'Price Currency',
|
|
1047
|
+
name: 'priceCurrency',
|
|
1048
|
+
type: 'string',
|
|
1049
|
+
default: '',
|
|
1050
|
+
description: 'Currency code for price selection',
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
displayName: 'Price Customer Group',
|
|
1054
|
+
name: 'priceCustomerGroup',
|
|
1055
|
+
type: 'string',
|
|
1056
|
+
default: '',
|
|
1057
|
+
description: 'Customer group to select prices for',
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
displayName: 'Staged',
|
|
1061
|
+
name: 'staged',
|
|
1062
|
+
type: 'boolean',
|
|
1063
|
+
default: false,
|
|
1064
|
+
description: 'Whether to delete the staged projection',
|
|
1065
|
+
},
|
|
1066
|
+
],
|
|
1067
|
+
displayOptions: {
|
|
1068
|
+
show: {
|
|
1069
|
+
resource: ['product'],
|
|
1070
|
+
operation: ['delete', 'deleteByKey'],
|
|
1071
|
+
},
|
|
1072
|
+
},
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
displayName: 'Additional Fields',
|
|
1076
|
+
name: 'additionalFieldsHead',
|
|
1077
|
+
type: 'collection',
|
|
1078
|
+
default: {},
|
|
1079
|
+
placeholder: 'Add Field',
|
|
1080
|
+
options: [
|
|
1081
|
+
{
|
|
1082
|
+
displayName: 'Custom Query Parameters',
|
|
1083
|
+
name: 'customParameters',
|
|
1084
|
+
type: 'fixedCollection',
|
|
1085
|
+
default: {},
|
|
1086
|
+
placeholder: 'Add Parameter',
|
|
1087
|
+
typeOptions: {
|
|
1088
|
+
multipleValues: true,
|
|
1089
|
+
},
|
|
1090
|
+
options: [
|
|
1091
|
+
{
|
|
1092
|
+
name: 'parameter',
|
|
1093
|
+
displayName: 'Parameter',
|
|
1094
|
+
values: [
|
|
1095
|
+
{
|
|
1096
|
+
displayName: 'Key',
|
|
1097
|
+
name: 'key',
|
|
1098
|
+
type: 'string',
|
|
1099
|
+
default: '',
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
displayName: 'Value',
|
|
1103
|
+
name: 'value',
|
|
1104
|
+
type: 'string',
|
|
1105
|
+
default: '',
|
|
1106
|
+
},
|
|
1107
|
+
],
|
|
1108
|
+
},
|
|
1109
|
+
],
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
displayName: 'Expand',
|
|
1113
|
+
name: 'expand',
|
|
1114
|
+
type: 'string',
|
|
1115
|
+
default: '',
|
|
1116
|
+
description: 'Include additional resources by reference expansion',
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
displayName: 'Locale Projection',
|
|
1120
|
+
name: 'localeProjection',
|
|
1121
|
+
type: 'string',
|
|
1122
|
+
default: '',
|
|
1123
|
+
description: 'Select locales for returned localized fields',
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
displayName: 'Price Channel',
|
|
1127
|
+
name: 'priceChannel',
|
|
1128
|
+
type: 'string',
|
|
1129
|
+
default: '',
|
|
1130
|
+
description: 'Channel to select prices for',
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
displayName: 'Price Country',
|
|
1134
|
+
name: 'priceCountry',
|
|
1135
|
+
type: 'string',
|
|
1136
|
+
default: '',
|
|
1137
|
+
description: 'Country to select prices for',
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
displayName: 'Price Currency',
|
|
1141
|
+
name: 'priceCurrency',
|
|
1142
|
+
type: 'string',
|
|
1143
|
+
default: '',
|
|
1144
|
+
description: 'Currency code for price selection',
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
displayName: 'Price Customer Group',
|
|
1148
|
+
name: 'priceCustomerGroup',
|
|
1149
|
+
type: 'string',
|
|
1150
|
+
default: '',
|
|
1151
|
+
description: 'Customer group to select prices for',
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
displayName: 'Staged',
|
|
1155
|
+
name: 'staged',
|
|
1156
|
+
type: 'boolean',
|
|
1157
|
+
default: false,
|
|
1158
|
+
description: 'Whether to inspect the staged projection',
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
displayName: 'Store Projection',
|
|
1162
|
+
name: 'storeProjection',
|
|
1163
|
+
type: 'string',
|
|
1164
|
+
default: '',
|
|
1165
|
+
description: 'Store in which the results are projected',
|
|
1166
|
+
},
|
|
1167
|
+
],
|
|
1168
|
+
displayOptions: {
|
|
1169
|
+
show: {
|
|
1170
|
+
resource: ['product'],
|
|
1171
|
+
operation: ['head', 'headByKey'],
|
|
1172
|
+
},
|
|
1173
|
+
},
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
displayName: 'Additional Fields',
|
|
1177
|
+
name: 'additionalFieldsSelections',
|
|
1178
|
+
type: 'collection',
|
|
1179
|
+
default: {},
|
|
1180
|
+
placeholder: 'Add Field',
|
|
1181
|
+
options: [
|
|
1182
|
+
{
|
|
1183
|
+
displayName: 'Custom Query Parameters',
|
|
1184
|
+
name: 'customParameters',
|
|
1185
|
+
type: 'fixedCollection',
|
|
1186
|
+
default: {},
|
|
1187
|
+
placeholder: 'Add Parameter',
|
|
1188
|
+
typeOptions: {
|
|
1189
|
+
multipleValues: true,
|
|
1190
|
+
},
|
|
1191
|
+
options: [
|
|
1192
|
+
{
|
|
1193
|
+
name: 'parameter',
|
|
1194
|
+
displayName: 'Parameter',
|
|
1195
|
+
values: [
|
|
1196
|
+
{
|
|
1197
|
+
displayName: 'Key',
|
|
1198
|
+
name: 'key',
|
|
1199
|
+
type: 'string',
|
|
1200
|
+
default: '',
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
displayName: 'Value',
|
|
1204
|
+
name: 'value',
|
|
1205
|
+
type: 'string',
|
|
1206
|
+
default: '',
|
|
1207
|
+
},
|
|
1208
|
+
],
|
|
1209
|
+
},
|
|
1210
|
+
],
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
displayName: 'Expand',
|
|
1214
|
+
name: 'expand',
|
|
1215
|
+
type: 'string',
|
|
1216
|
+
default: '',
|
|
1217
|
+
description: 'Include additional resources by reference expansion',
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
displayName: 'Limit',
|
|
1221
|
+
name: 'limit',
|
|
1222
|
+
type: 'number',
|
|
1223
|
+
default: 50,
|
|
1224
|
+
typeOptions: {
|
|
1225
|
+
minValue: 1,
|
|
1226
|
+
maxValue: 500,
|
|
1227
|
+
},
|
|
1228
|
+
description: 'Max number of results to return',
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
displayName: 'Offset',
|
|
1232
|
+
name: 'offset',
|
|
1233
|
+
type: 'number',
|
|
1234
|
+
default: 0,
|
|
1235
|
+
typeOptions: {
|
|
1236
|
+
minValue: 0,
|
|
1237
|
+
},
|
|
1238
|
+
description: 'Number of product selections to skip before returning results',
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
displayName: 'With Total',
|
|
1242
|
+
name: 'withTotal',
|
|
1243
|
+
type: 'boolean',
|
|
1244
|
+
default: true,
|
|
1245
|
+
description: 'Whether the query should calculate the total number of matching product selections',
|
|
1246
|
+
},
|
|
1247
|
+
],
|
|
1248
|
+
displayOptions: {
|
|
1249
|
+
show: {
|
|
1250
|
+
resource: ['product'],
|
|
1251
|
+
operation: ['querySelections', 'querySelectionsByKey'],
|
|
1252
|
+
},
|
|
1253
|
+
},
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
displayName: 'Search Request (JSON)',
|
|
1257
|
+
name: 'searchRequest',
|
|
1258
|
+
type: 'json',
|
|
1259
|
+
default: '{}',
|
|
1260
|
+
displayOptions: {
|
|
1261
|
+
show: {
|
|
1262
|
+
resource: ['product'],
|
|
1263
|
+
operation: ['search'],
|
|
1264
|
+
},
|
|
1265
|
+
},
|
|
1266
|
+
description: 'Search request body for the Product Search endpoint',
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
displayName: 'Additional Fields',
|
|
1270
|
+
name: 'additionalFieldsUpload',
|
|
1271
|
+
type: 'collection',
|
|
1272
|
+
default: {},
|
|
1273
|
+
placeholder: 'Add Field',
|
|
1274
|
+
options: [
|
|
1275
|
+
{
|
|
1276
|
+
displayName: 'Custom Query Parameters',
|
|
1277
|
+
name: 'customParameters',
|
|
1278
|
+
type: 'fixedCollection',
|
|
1279
|
+
default: {},
|
|
1280
|
+
placeholder: 'Add Parameter',
|
|
1281
|
+
typeOptions: {
|
|
1282
|
+
multipleValues: true,
|
|
1283
|
+
},
|
|
1284
|
+
options: [
|
|
1285
|
+
{
|
|
1286
|
+
name: 'parameter',
|
|
1287
|
+
displayName: 'Parameter',
|
|
1288
|
+
values: [
|
|
1289
|
+
{
|
|
1290
|
+
displayName: 'Key',
|
|
1291
|
+
name: 'key',
|
|
1292
|
+
type: 'string',
|
|
1293
|
+
default: '',
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
displayName: 'Value',
|
|
1297
|
+
name: 'value',
|
|
1298
|
+
type: 'string',
|
|
1299
|
+
default: '',
|
|
1300
|
+
},
|
|
1301
|
+
],
|
|
1302
|
+
},
|
|
1303
|
+
],
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
displayName: 'External URL',
|
|
1307
|
+
name: 'externalUrl',
|
|
1308
|
+
type: 'string',
|
|
1309
|
+
default: '',
|
|
1310
|
+
description: 'If set, treats the image as an external URL instead of uploading binary content',
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
displayName: 'Filename',
|
|
1314
|
+
name: 'filename',
|
|
1315
|
+
type: 'string',
|
|
1316
|
+
default: '',
|
|
1317
|
+
description: 'Filename to store with the uploaded image',
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
displayName: 'Label',
|
|
1321
|
+
name: 'label',
|
|
1322
|
+
type: 'string',
|
|
1323
|
+
default: '',
|
|
1324
|
+
description: 'Localized label for the image, e.g. <code>{"en":"Front"}</code>',
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
displayName: 'SKU',
|
|
1328
|
+
name: 'sku',
|
|
1329
|
+
type: 'string',
|
|
1330
|
+
default: '',
|
|
1331
|
+
description: 'SKU the image belongs to',
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
displayName: 'Staged',
|
|
1335
|
+
name: 'staged',
|
|
1336
|
+
type: 'boolean',
|
|
1337
|
+
default: true,
|
|
1338
|
+
description: 'Whether to add the image to the staged version',
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
displayName: 'Variant ID',
|
|
1342
|
+
name: 'variantId',
|
|
1343
|
+
type: 'number',
|
|
1344
|
+
typeOptions: {
|
|
1345
|
+
minValue: 0,
|
|
1346
|
+
},
|
|
1347
|
+
default: 0,
|
|
1348
|
+
description: 'Variant ID the image belongs to',
|
|
1349
|
+
},
|
|
1350
|
+
],
|
|
1351
|
+
displayOptions: {
|
|
1352
|
+
show: {
|
|
1353
|
+
resource: ['product'],
|
|
1354
|
+
operation: ['uploadImage'],
|
|
1355
|
+
},
|
|
1356
|
+
},
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
displayName: 'Binary Property',
|
|
1360
|
+
name: 'binaryPropertyName',
|
|
1361
|
+
type: 'string',
|
|
1362
|
+
default: 'data',
|
|
1363
|
+
required: true,
|
|
1364
|
+
displayOptions: {
|
|
1365
|
+
show: {
|
|
1366
|
+
resource: ['product'],
|
|
1367
|
+
operation: ['uploadImage'],
|
|
1368
|
+
},
|
|
1369
|
+
},
|
|
1370
|
+
description: 'Name of the binary property in the incoming item that contains the image',
|
|
1371
|
+
},
|
|
1372
|
+
],
|
|
1373
|
+
};
|
|
1374
|
+
//# sourceMappingURL=Commercetools.description.js.map
|