n8n-nodes-commercetools 0.1.7 → 0.1.8

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.
@@ -11,7 +11,7 @@ exports.commercetoolsDescription = {
11
11
  icon: 'file:Commercetools.svg',
12
12
  ...nodeGroup,
13
13
  version: 1,
14
- description: 'Interact with the Commercetools Products and Categories API',
14
+ description: 'Interact with the Commercetools Products, Categories, and Customers API',
15
15
  defaults: {
16
16
  name: 'Commercetools',
17
17
  },
@@ -39,6 +39,10 @@ exports.commercetoolsDescription = {
39
39
  name: 'Category',
40
40
  value: 'category',
41
41
  },
42
+ {
43
+ name: 'Customer',
44
+ value: 'customer',
45
+ },
42
46
  ],
43
47
  default: 'product',
44
48
  },
@@ -208,6 +212,248 @@ exports.commercetoolsDescription = {
208
212
  },
209
213
  },
210
214
  },
215
+ {
216
+ displayName: 'Operation',
217
+ name: 'operation',
218
+ type: 'options',
219
+ noDataExpression: true,
220
+ options: [
221
+ {
222
+ name: 'Authenticate (Sign In)',
223
+ value: 'authenticate',
224
+ action: 'Authenticate customer',
225
+ description: 'Sign in a customer with email and password',
226
+ },
227
+ {
228
+ name: 'Authenticate in Store',
229
+ value: 'authenticateInStore',
230
+ action: 'Authenticate customer in store',
231
+ description: 'Sign in a customer with email and password in a specific store',
232
+ },
233
+ {
234
+ name: 'Change Password',
235
+ value: 'changePassword',
236
+ action: 'Change customer password',
237
+ description: 'Change password of a customer',
238
+ },
239
+ {
240
+ name: 'Change Password in Store',
241
+ value: 'changePasswordInStore',
242
+ action: 'Change customer password in store',
243
+ description: 'Change password of a customer in a specific store',
244
+ },
245
+ {
246
+ name: 'Check Existence',
247
+ value: 'head',
248
+ action: 'Check if customer exists',
249
+ description: 'Check whether a customer exists by ID',
250
+ },
251
+ {
252
+ name: 'Check Existence By Key',
253
+ value: 'headByKey',
254
+ action: 'Check if customer exists by key',
255
+ description: 'Check whether a customer exists using its key',
256
+ },
257
+ {
258
+ name: 'Check Existence By Query',
259
+ value: 'headByQuery',
260
+ action: 'Check if any customer matches the query',
261
+ description: 'Send a HEAD request with query predicates to check for matches',
262
+ },
263
+ {
264
+ name: 'Check Existence in Store',
265
+ value: 'headInStore',
266
+ action: 'Check if customer exists in store',
267
+ description: 'Check whether a customer exists by ID in a specific store',
268
+ },
269
+ {
270
+ name: 'Check Existence in Store By Key',
271
+ value: 'headInStoreByKey',
272
+ action: 'Check if customer exists in store by key',
273
+ description: 'Check whether a customer exists by key in a specific store',
274
+ },
275
+ {
276
+ name: 'Check Existence in Store By Query',
277
+ value: 'headInStoreByQuery',
278
+ action: 'Check if any customer matches the query in store',
279
+ description: 'Send a HEAD request with query predicates in a specific store',
280
+ },
281
+ {
282
+ name: 'Create (Sign Up)',
283
+ value: 'create',
284
+ action: 'Create customer',
285
+ description: 'Create a new customer (sign up)',
286
+ },
287
+ {
288
+ name: 'Create Email Token',
289
+ value: 'createEmailToken',
290
+ action: 'Create email verification token',
291
+ description: 'Create an email verification token for a customer',
292
+ },
293
+ {
294
+ name: 'Create Email Token in Store',
295
+ value: 'createEmailTokenInStore',
296
+ action: 'Create email verification token in store',
297
+ description: 'Create an email verification token for a customer in a specific store',
298
+ },
299
+ {
300
+ name: 'Create in Store (Sign Up)',
301
+ value: 'createInStore',
302
+ action: 'Create customer in store',
303
+ description: 'Create a new customer in a specific store',
304
+ },
305
+ {
306
+ name: 'Create Password Reset Token',
307
+ value: 'createPasswordResetToken',
308
+ action: 'Create password reset token',
309
+ description: 'Create a password reset token for a customer',
310
+ },
311
+ {
312
+ name: 'Create Password Reset Token in Store',
313
+ value: 'createPasswordResetTokenInStore',
314
+ action: 'Create password reset token in store',
315
+ description: 'Create a password reset token for a customer in a specific store',
316
+ },
317
+ {
318
+ name: 'Delete',
319
+ value: 'delete',
320
+ action: 'Delete customer',
321
+ description: 'Delete a customer by ID',
322
+ },
323
+ {
324
+ name: 'Delete By Key',
325
+ value: 'deleteByKey',
326
+ action: 'Delete customer by key',
327
+ description: 'Delete a customer using its key',
328
+ },
329
+ {
330
+ name: 'Delete in Store',
331
+ value: 'deleteInStore',
332
+ action: 'Delete customer in store',
333
+ description: 'Delete a customer by ID in a specific store',
334
+ },
335
+ {
336
+ name: 'Delete in Store By Key',
337
+ value: 'deleteInStoreByKey',
338
+ action: 'Delete customer in store by key',
339
+ description: 'Delete a customer by key in a specific store',
340
+ },
341
+ {
342
+ name: 'Get',
343
+ value: 'get',
344
+ action: 'Get customer',
345
+ description: 'Retrieve a customer by ID',
346
+ },
347
+ {
348
+ name: 'Get By Email Token',
349
+ value: 'getByEmailToken',
350
+ action: 'Get customer by email token',
351
+ description: 'Retrieve a customer using an email verification token',
352
+ },
353
+ {
354
+ name: 'Get By Key',
355
+ value: 'getByKey',
356
+ action: 'Get customer by key',
357
+ description: 'Retrieve a customer using its key',
358
+ },
359
+ {
360
+ name: 'Get By Password Token',
361
+ value: 'getByPasswordToken',
362
+ action: 'Get customer by password token',
363
+ description: 'Retrieve a customer using a password reset token',
364
+ },
365
+ {
366
+ name: 'Get in Store',
367
+ value: 'getInStore',
368
+ action: 'Get customer in store',
369
+ description: 'Retrieve a customer by ID in a specific store',
370
+ },
371
+ {
372
+ name: 'Get in Store By Email Token',
373
+ value: 'getInStoreByEmailToken',
374
+ action: 'Get customer in store by email token',
375
+ description: 'Retrieve a customer by email token in a specific store',
376
+ },
377
+ {
378
+ name: 'Get in Store By Key',
379
+ value: 'getInStoreByKey',
380
+ action: 'Get customer in store by key',
381
+ description: 'Retrieve a customer by key in a specific store',
382
+ },
383
+ {
384
+ name: 'Get in Store By Password Token',
385
+ value: 'getInStoreByPasswordToken',
386
+ action: 'Get customer in store by password token',
387
+ description: 'Retrieve a customer by password token in a specific store',
388
+ },
389
+ {
390
+ name: 'Query',
391
+ value: 'query',
392
+ action: 'Query customers',
393
+ description: 'List customers using query parameters',
394
+ },
395
+ {
396
+ name: 'Query in Store',
397
+ value: 'queryInStore',
398
+ action: 'Query customers in store',
399
+ description: 'List customers in a specific store using query parameters',
400
+ },
401
+ {
402
+ name: 'Reset Password',
403
+ value: 'resetPassword',
404
+ action: 'Reset customer password',
405
+ description: 'Reset password of a customer using a reset token',
406
+ },
407
+ {
408
+ name: 'Reset Password in Store',
409
+ value: 'resetPasswordInStore',
410
+ action: 'Reset customer password in store',
411
+ description: 'Reset password of a customer in a specific store using a reset token',
412
+ },
413
+ {
414
+ name: 'Update',
415
+ value: 'update',
416
+ action: 'Update customer',
417
+ description: 'Perform update actions on a customer by ID',
418
+ },
419
+ {
420
+ name: 'Update By Key',
421
+ value: 'updateByKey',
422
+ action: 'Update customer by key',
423
+ description: 'Perform update actions on a customer by key',
424
+ },
425
+ {
426
+ name: 'Update in Store',
427
+ value: 'updateInStore',
428
+ action: 'Update customer in store',
429
+ description: 'Perform update actions on a customer by ID in a specific store',
430
+ },
431
+ {
432
+ name: 'Update in Store By Key',
433
+ value: 'updateInStoreByKey',
434
+ action: 'Update customer in store by key',
435
+ description: 'Perform update actions on a customer by key in a specific store',
436
+ },
437
+ {
438
+ name: 'Verify Email',
439
+ value: 'verifyEmail',
440
+ action: 'Verify customer email',
441
+ description: 'Verify email address of a customer using a verification token',
442
+ },
443
+ {
444
+ name: 'Verify Email in Store',
445
+ value: 'verifyEmailInStore',
446
+ action: 'Verify customer email in store',
447
+ description: 'Verify email address of a customer in a specific store',
448
+ },
449
+ ],
450
+ default: 'query',
451
+ displayOptions: {
452
+ show: {
453
+ resource: ['customer'],
454
+ },
455
+ },
456
+ },
211
457
  {
212
458
  displayName: 'Product ID',
213
459
  name: 'productId',
@@ -1840,6 +2086,1377 @@ exports.commercetoolsDescription = {
1840
2086
  },
1841
2087
  },
1842
2088
  },
2089
+ {
2090
+ displayName: 'Customer ID',
2091
+ name: 'customerId',
2092
+ type: 'string',
2093
+ default: '',
2094
+ required: true,
2095
+ displayOptions: {
2096
+ show: {
2097
+ resource: ['customer'],
2098
+ operation: ['get', 'update', 'delete', 'head', 'changePassword', 'changePasswordInStore', 'getInStore', 'updateInStore', 'deleteInStore', 'headInStore', 'createEmailToken'],
2099
+ },
2100
+ },
2101
+ description: 'The unique ID of the customer',
2102
+ },
2103
+ {
2104
+ displayName: 'Customer Key',
2105
+ name: 'customerKey',
2106
+ type: 'string',
2107
+ default: '',
2108
+ required: true,
2109
+ displayOptions: {
2110
+ show: {
2111
+ resource: ['customer'],
2112
+ operation: ['getByKey', 'updateByKey', 'deleteByKey', 'headByKey', 'getInStoreByKey', 'updateInStoreByKey', 'deleteInStoreByKey', 'headInStoreByKey'],
2113
+ },
2114
+ },
2115
+ description: 'The unique key of the customer',
2116
+ },
2117
+ {
2118
+ displayName: 'Store Key',
2119
+ name: 'storeKey',
2120
+ type: 'string',
2121
+ default: '',
2122
+ required: true,
2123
+ displayOptions: {
2124
+ show: {
2125
+ resource: ['customer'],
2126
+ operation: ['authenticateInStore', 'changePasswordInStore', 'createInStore', 'getInStore', 'getInStoreByKey', 'getInStoreByEmailToken', 'getInStoreByPasswordToken', 'updateInStore', 'updateInStoreByKey', 'deleteInStore', 'deleteInStoreByKey', 'headInStore', 'headInStoreByKey', 'headInStoreByQuery', 'queryInStore', 'resetPasswordInStore', 'createPasswordResetTokenInStore', 'createEmailTokenInStore', 'verifyEmailInStore'],
2127
+ },
2128
+ },
2129
+ description: 'The key of the store',
2130
+ },
2131
+ {
2132
+ displayName: 'Email',
2133
+ name: 'email',
2134
+ type: 'string',
2135
+ placeholder: 'name@email.com',
2136
+ default: '',
2137
+ required: true,
2138
+ displayOptions: {
2139
+ show: {
2140
+ resource: ['customer'],
2141
+ operation: ['authenticate', 'authenticateInStore', 'createPasswordResetToken', 'createPasswordResetTokenInStore'],
2142
+ },
2143
+ },
2144
+ description: 'The email address of the customer',
2145
+ },
2146
+ {
2147
+ displayName: 'Password',
2148
+ name: 'password',
2149
+ type: 'string',
2150
+ typeOptions: {
2151
+ password: true,
2152
+ },
2153
+ default: '',
2154
+ required: true,
2155
+ displayOptions: {
2156
+ show: {
2157
+ resource: ['customer'],
2158
+ operation: ['authenticate', 'authenticateInStore'],
2159
+ },
2160
+ },
2161
+ description: 'The password of the customer',
2162
+ },
2163
+ {
2164
+ displayName: 'Current Password',
2165
+ name: 'currentPassword',
2166
+ type: 'string',
2167
+ typeOptions: {
2168
+ password: true,
2169
+ },
2170
+ default: '',
2171
+ required: true,
2172
+ displayOptions: {
2173
+ show: {
2174
+ resource: ['customer'],
2175
+ operation: ['changePassword', 'changePasswordInStore'],
2176
+ },
2177
+ },
2178
+ description: 'The current password of the customer',
2179
+ },
2180
+ {
2181
+ displayName: 'New Password',
2182
+ name: 'newPassword',
2183
+ type: 'string',
2184
+ typeOptions: {
2185
+ password: true,
2186
+ },
2187
+ default: '',
2188
+ required: true,
2189
+ displayOptions: {
2190
+ show: {
2191
+ resource: ['customer'],
2192
+ operation: ['changePassword', 'changePasswordInStore', 'resetPassword', 'resetPasswordInStore'],
2193
+ },
2194
+ },
2195
+ description: 'The new password for the customer',
2196
+ },
2197
+ {
2198
+ displayName: 'Password Token',
2199
+ name: 'passwordToken',
2200
+ type: 'string',
2201
+ typeOptions: {
2202
+ password: true,
2203
+ },
2204
+ default: '',
2205
+ required: true,
2206
+ displayOptions: {
2207
+ show: {
2208
+ resource: ['customer'],
2209
+ operation: ['getByPasswordToken', 'getInStoreByPasswordToken'],
2210
+ },
2211
+ },
2212
+ description: 'The password reset token',
2213
+ },
2214
+ {
2215
+ displayName: 'Email Token',
2216
+ name: 'emailToken',
2217
+ type: 'string',
2218
+ typeOptions: {
2219
+ password: true,
2220
+ },
2221
+ default: '',
2222
+ required: true,
2223
+ displayOptions: {
2224
+ show: {
2225
+ resource: ['customer'],
2226
+ operation: ['getByEmailToken', 'getInStoreByEmailToken'],
2227
+ },
2228
+ },
2229
+ description: 'The email verification token',
2230
+ },
2231
+ {
2232
+ displayName: 'Token Value',
2233
+ name: 'tokenValue',
2234
+ type: 'string',
2235
+ typeOptions: {
2236
+ password: true,
2237
+ },
2238
+ default: '',
2239
+ required: true,
2240
+ displayOptions: {
2241
+ show: {
2242
+ resource: ['customer'],
2243
+ operation: ['resetPassword', 'resetPasswordInStore', 'verifyEmail', 'verifyEmailInStore'],
2244
+ },
2245
+ },
2246
+ description: 'The token value for password reset or email verification',
2247
+ },
2248
+ {
2249
+ displayName: 'Version',
2250
+ name: 'version',
2251
+ type: 'number',
2252
+ default: 1,
2253
+ required: true,
2254
+ typeOptions: {
2255
+ minValue: 1,
2256
+ },
2257
+ displayOptions: {
2258
+ show: {
2259
+ resource: ['customer'],
2260
+ operation: ['update', 'updateByKey', 'updateInStore', 'updateInStoreByKey', 'delete', 'deleteByKey', 'deleteInStore', 'deleteInStoreByKey', 'changePassword', 'changePasswordInStore', 'createEmailToken', 'createEmailTokenInStore'],
2261
+ },
2262
+ },
2263
+ description: 'Current version of the customer for optimistic locking',
2264
+ },
2265
+ {
2266
+ displayName: 'TTL Minutes',
2267
+ name: 'ttlMinutes',
2268
+ type: 'number',
2269
+ default: 4320,
2270
+ required: true,
2271
+ displayOptions: {
2272
+ show: {
2273
+ resource: ['customer'],
2274
+ operation: ['createEmailToken', 'createEmailTokenInStore'],
2275
+ },
2276
+ },
2277
+ description: 'Validity period of the generated token in minutes (default: 4320 = 3 days)',
2278
+ },
2279
+ {
2280
+ displayName: 'Customer Draft (JSON)',
2281
+ name: 'customerDraft',
2282
+ type: 'json',
2283
+ default: '{}',
2284
+ required: true,
2285
+ displayOptions: {
2286
+ show: {
2287
+ resource: ['customer'],
2288
+ operation: ['create', 'createInStore'],
2289
+ },
2290
+ },
2291
+ description: 'JSON representation of the customer draft to create, e.g. <code>{"email":"user@example.com","password":"secret","firstName":"John","lastName":"Doe"}</code>',
2292
+ },
2293
+ {
2294
+ displayName: 'Actions (JSON)',
2295
+ name: 'actions',
2296
+ type: 'json',
2297
+ default: '[]',
2298
+ description: 'Update actions to apply to the resource',
2299
+ displayOptions: {
2300
+ show: {
2301
+ resource: ['customer'],
2302
+ operation: ['update', 'updateByKey'],
2303
+ },
2304
+ },
2305
+ },
2306
+ {
2307
+ displayName: 'Actions (UI)',
2308
+ name: 'customerActionsUi',
2309
+ type: 'fixedCollection',
2310
+ default: {},
2311
+ placeholder: 'Add Action',
2312
+ displayOptions: {
2313
+ show: {
2314
+ resource: ['customer'],
2315
+ operation: ['update', 'updateByKey', 'updateInStore', 'updateInStoreByKey'],
2316
+ },
2317
+ },
2318
+ typeOptions: {
2319
+ multipleValues: true,
2320
+ },
2321
+ description: 'Update actions to perform on the customer',
2322
+ options: [
2323
+ {
2324
+ displayName: 'Action',
2325
+ name: 'action',
2326
+ values: [
2327
+ {
2328
+ displayName: 'Action Type',
2329
+ name: 'actionType',
2330
+ type: 'options',
2331
+ options: [
2332
+ {
2333
+ name: 'Add Address',
2334
+ value: 'addAddress',
2335
+ },
2336
+ {
2337
+ name: 'Add Billing Address ID',
2338
+ value: 'addBillingAddressId',
2339
+ },
2340
+ {
2341
+ name: 'Add CustomerGroupAssignment',
2342
+ value: 'addCustomerGroupAssignment',
2343
+ },
2344
+ {
2345
+ name: 'Add Shipping Address ID',
2346
+ value: 'addShippingAddressId',
2347
+ },
2348
+ {
2349
+ name: 'Add Store',
2350
+ value: 'addStore',
2351
+ },
2352
+ {
2353
+ name: 'Change Address',
2354
+ value: 'changeAddress',
2355
+ },
2356
+ {
2357
+ name: 'Change Email',
2358
+ value: 'changeEmail',
2359
+ },
2360
+ {
2361
+ name: 'Remove Address',
2362
+ value: 'removeAddress',
2363
+ },
2364
+ {
2365
+ name: 'Remove Billing Address ID',
2366
+ value: 'removeBillingAddressId',
2367
+ },
2368
+ {
2369
+ name: 'Remove CustomerGroupAssignment',
2370
+ value: 'removeCustomerGroupAssignment',
2371
+ },
2372
+ {
2373
+ name: 'Remove Shipping Address ID',
2374
+ value: 'removeShippingAddressId',
2375
+ },
2376
+ {
2377
+ name: 'Remove Store',
2378
+ value: 'removeStore',
2379
+ },
2380
+ {
2381
+ name: 'Set Authentication Mode',
2382
+ value: 'setAuthenticationMode',
2383
+ },
2384
+ {
2385
+ name: 'Set Company Name',
2386
+ value: 'setCompanyName',
2387
+ },
2388
+ {
2389
+ name: 'Set Custom Field',
2390
+ value: 'setCustomField',
2391
+ },
2392
+ {
2393
+ name: 'Set Custom Field in Address',
2394
+ value: 'setCustomFieldInAddress',
2395
+ },
2396
+ {
2397
+ name: 'Set Custom Type',
2398
+ value: 'setCustomType',
2399
+ },
2400
+ {
2401
+ name: 'Set Custom Type in Address',
2402
+ value: 'setCustomTypeInAddress',
2403
+ },
2404
+ {
2405
+ name: 'Set Customer Group',
2406
+ value: 'setCustomerGroup',
2407
+ },
2408
+ {
2409
+ name: 'Set Customer Number',
2410
+ value: 'setCustomerNumber',
2411
+ },
2412
+ {
2413
+ name: 'Set CustomerGroupAssignments',
2414
+ value: 'setCustomerGroupAssignments',
2415
+ },
2416
+ {
2417
+ name: 'Set Date of Birth',
2418
+ value: 'setDateOfBirth',
2419
+ },
2420
+ {
2421
+ name: 'Set Default Billing Address',
2422
+ value: 'setDefaultBillingAddress',
2423
+ },
2424
+ {
2425
+ name: 'Set Default Shipping Address',
2426
+ value: 'setDefaultShippingAddress',
2427
+ },
2428
+ {
2429
+ name: 'Set External ID',
2430
+ value: 'setExternalId',
2431
+ },
2432
+ {
2433
+ name: 'Set First Name',
2434
+ value: 'setFirstName',
2435
+ },
2436
+ {
2437
+ name: 'Set Last Name',
2438
+ value: 'setLastName',
2439
+ },
2440
+ {
2441
+ name: 'Set Locale',
2442
+ value: 'setLocale',
2443
+ },
2444
+ {
2445
+ name: 'Set Middle Name',
2446
+ value: 'setMiddleName',
2447
+ },
2448
+ {
2449
+ name: 'Set Salutation',
2450
+ value: 'setSalutation',
2451
+ },
2452
+ {
2453
+ name: 'Set Stores',
2454
+ value: 'setStores',
2455
+ },
2456
+ {
2457
+ name: 'Set Title',
2458
+ value: 'setTitle',
2459
+ },
2460
+ {
2461
+ name: 'Set Vat ID',
2462
+ value: 'setVatId',
2463
+ },
2464
+ ],
2465
+ default: 'changeEmail',
2466
+ },
2467
+ {
2468
+ displayName: 'Additional Address Info',
2469
+ name: 'additionalAddressInfo',
2470
+ type: 'string',
2471
+ default: '',
2472
+ description: 'Additional address information',
2473
+ displayOptions: {
2474
+ show: {
2475
+ actionType: ['addAddress', 'changeAddress'],
2476
+ },
2477
+ },
2478
+ },
2479
+ {
2480
+ displayName: 'Additional Street Info',
2481
+ name: 'additionalStreetInfo',
2482
+ type: 'string',
2483
+ default: '',
2484
+ description: 'Additional street information',
2485
+ displayOptions: {
2486
+ show: {
2487
+ actionType: ['addAddress', 'changeAddress'],
2488
+ },
2489
+ },
2490
+ },
2491
+ {
2492
+ displayName: 'Address Email',
2493
+ name: 'addressEmail',
2494
+ type: 'string',
2495
+ default: '',
2496
+ description: 'Email address for this address (optional)',
2497
+ displayOptions: {
2498
+ show: {
2499
+ actionType: ['addAddress', 'changeAddress'],
2500
+ },
2501
+ },
2502
+ },
2503
+ {
2504
+ displayName: 'Address ID',
2505
+ name: 'addressId',
2506
+ type: 'string',
2507
+ default: '',
2508
+ description: 'ID of the address',
2509
+ displayOptions: {
2510
+ show: {
2511
+ actionType: ['addBillingAddressId', 'addShippingAddressId', 'removeBillingAddressId', 'removeShippingAddressId', 'removeAddress', 'changeAddress', 'changeAddressId', 'setDefaultBillingAddress', 'setDefaultShippingAddress', 'setAddressCustomField', 'setAddressCustomType'],
2512
+ addressReferenceType: ['id'],
2513
+ },
2514
+ },
2515
+ },
2516
+ {
2517
+ displayName: 'Address Key',
2518
+ name: 'addressKey',
2519
+ type: 'string',
2520
+ default: '',
2521
+ description: 'Key of the address',
2522
+ displayOptions: {
2523
+ show: {
2524
+ actionType: ['addBillingAddressId', 'addShippingAddressId', 'removeBillingAddressId', 'removeShippingAddressId', 'removeAddress', 'changeAddress', 'changeAddressId', 'setDefaultBillingAddress', 'setDefaultShippingAddress', 'setAddressCustomField', 'setAddressCustomType'],
2525
+ addressReferenceType: ['key'],
2526
+ },
2527
+ },
2528
+ },
2529
+ {
2530
+ displayName: 'Address Reference Type',
2531
+ name: 'addressReferenceType',
2532
+ type: 'options',
2533
+ options: [
2534
+ {
2535
+ name: 'ID',
2536
+ value: 'id',
2537
+ description: 'Reference address by ID',
2538
+ },
2539
+ {
2540
+ name: 'Key',
2541
+ value: 'key',
2542
+ description: 'Reference address by key',
2543
+ },
2544
+ ],
2545
+ default: 'id',
2546
+ description: 'Whether to reference the address by ID or key',
2547
+ displayOptions: {
2548
+ show: {
2549
+ actionType: ['addBillingAddressId', 'addShippingAddressId', 'removeBillingAddressId', 'removeShippingAddressId', 'removeAddress', 'changeAddress', 'changeAddressId', 'setDefaultBillingAddress', 'setDefaultShippingAddress', 'setAddressCustomField', 'setAddressCustomType'],
2550
+ },
2551
+ },
2552
+ },
2553
+ {
2554
+ displayName: 'Apartment',
2555
+ name: 'apartment',
2556
+ type: 'string',
2557
+ default: '',
2558
+ description: 'Apartment, suite, unit, etc (optional)',
2559
+ displayOptions: {
2560
+ show: {
2561
+ actionType: ['addAddress', 'changeAddress'],
2562
+ },
2563
+ },
2564
+ },
2565
+ {
2566
+ displayName: 'Authentication Mode',
2567
+ name: 'authMode',
2568
+ type: 'options',
2569
+ options: [
2570
+ {
2571
+ name: 'Password',
2572
+ value: 'Password',
2573
+ },
2574
+ {
2575
+ name: 'External Auth',
2576
+ value: 'ExternalAuth',
2577
+ },
2578
+ ],
2579
+ default: 'Password',
2580
+ description: 'Authentication mode for the customer',
2581
+ displayOptions: {
2582
+ show: {
2583
+ actionType: ['setAuthenticationMode'],
2584
+ },
2585
+ },
2586
+ },
2587
+ {
2588
+ displayName: 'Building',
2589
+ name: 'building',
2590
+ type: 'string',
2591
+ default: '',
2592
+ description: 'Building name or number (optional)',
2593
+ displayOptions: {
2594
+ show: {
2595
+ actionType: ['addAddress', 'changeAddress'],
2596
+ },
2597
+ },
2598
+ },
2599
+ {
2600
+ displayName: 'City',
2601
+ name: 'city',
2602
+ type: 'string',
2603
+ default: '',
2604
+ description: 'City name',
2605
+ displayOptions: {
2606
+ show: {
2607
+ actionType: ['addAddress', 'changeAddress'],
2608
+ },
2609
+ },
2610
+ },
2611
+ {
2612
+ displayName: 'Company Name',
2613
+ name: 'companyName',
2614
+ type: 'string',
2615
+ default: '',
2616
+ description: 'Company name for the customer',
2617
+ displayOptions: {
2618
+ show: {
2619
+ actionType: ['setCompanyName'],
2620
+ },
2621
+ },
2622
+ },
2623
+ {
2624
+ displayName: 'Country',
2625
+ name: 'country',
2626
+ type: 'string',
2627
+ required: true,
2628
+ default: '',
2629
+ description: 'Country code (e.g., DE, US, GB) - Required',
2630
+ displayOptions: {
2631
+ show: {
2632
+ actionType: ['addAddress', 'changeAddress'],
2633
+ },
2634
+ },
2635
+ },
2636
+ {
2637
+ displayName: 'Customer Group ID',
2638
+ name: 'customerGroupId',
2639
+ type: 'string',
2640
+ default: '',
2641
+ description: 'ID of the customer group',
2642
+ displayOptions: {
2643
+ show: {
2644
+ actionType: ['addCustomerGroupAssignment', 'removeCustomerGroupAssignment', 'setCustomerGroup'],
2645
+ customerGroupReferenceType: ['id'],
2646
+ },
2647
+ },
2648
+ },
2649
+ {
2650
+ displayName: 'Customer Group IDs',
2651
+ name: 'customerGroupIds',
2652
+ type: 'string',
2653
+ default: '',
2654
+ description: 'Comma-separated list of customer group IDs',
2655
+ displayOptions: {
2656
+ show: {
2657
+ actionType: ['setCustomerGroupAssignments', 'addToCustomerGroup', 'removeFromCustomerGroup'],
2658
+ customerGroupReferenceType: ['id'],
2659
+ },
2660
+ },
2661
+ },
2662
+ {
2663
+ displayName: 'Customer Group Key',
2664
+ name: 'customerGroupKey',
2665
+ type: 'string',
2666
+ default: '',
2667
+ description: 'Key of the customer group',
2668
+ displayOptions: {
2669
+ show: {
2670
+ actionType: ['addCustomerGroupAssignment', 'removeCustomerGroupAssignment', 'setCustomerGroup'],
2671
+ customerGroupReferenceType: ['key'],
2672
+ },
2673
+ },
2674
+ },
2675
+ {
2676
+ displayName: 'Customer Group Keys',
2677
+ name: 'customerGroupKeys',
2678
+ type: 'string',
2679
+ default: '',
2680
+ description: 'Comma-separated list of customer group keys',
2681
+ displayOptions: {
2682
+ show: {
2683
+ actionType: ['setCustomerGroupAssignments', 'addToCustomerGroup', 'removeFromCustomerGroup'],
2684
+ customerGroupReferenceType: ['key'],
2685
+ },
2686
+ },
2687
+ },
2688
+ {
2689
+ displayName: 'Customer Group Reference Type',
2690
+ name: 'customerGroupReferenceType',
2691
+ type: 'options',
2692
+ options: [
2693
+ {
2694
+ name: 'ID',
2695
+ value: 'id',
2696
+ description: 'Reference customer group by ID',
2697
+ },
2698
+ {
2699
+ name: 'Key',
2700
+ value: 'key',
2701
+ description: 'Reference customer group by key',
2702
+ },
2703
+ ],
2704
+ default: 'id',
2705
+ description: 'Whether to reference the customer group by ID or key',
2706
+ displayOptions: {
2707
+ show: {
2708
+ actionType: ['addCustomerGroupAssignment', 'removeCustomerGroupAssignment', 'setCustomerGroup', 'setCustomerGroupAssignments', 'addToCustomerGroup', 'removeFromCustomerGroup'],
2709
+ },
2710
+ },
2711
+ },
2712
+ {
2713
+ displayName: 'Customer Number',
2714
+ name: 'customerNumber',
2715
+ type: 'string',
2716
+ default: '',
2717
+ description: 'Customer number for identification',
2718
+ displayOptions: {
2719
+ show: {
2720
+ actionType: ['setCustomerNumber'],
2721
+ },
2722
+ },
2723
+ },
2724
+ {
2725
+ displayName: 'Date of Birth',
2726
+ name: 'dateOfBirth',
2727
+ type: 'dateTime',
2728
+ default: '',
2729
+ description: 'Customer date of birth',
2730
+ displayOptions: {
2731
+ show: {
2732
+ actionType: ['setDateOfBirth'],
2733
+ },
2734
+ },
2735
+ },
2736
+ {
2737
+ displayName: 'Department',
2738
+ name: 'department',
2739
+ type: 'string',
2740
+ default: '',
2741
+ description: 'Department within building (optional)',
2742
+ displayOptions: {
2743
+ show: {
2744
+ actionType: ['addAddress', 'changeAddress'],
2745
+ },
2746
+ },
2747
+ },
2748
+ {
2749
+ displayName: 'Email',
2750
+ name: 'email',
2751
+ type: 'string',
2752
+ default: '',
2753
+ placeholder: 'name@email.com',
2754
+ description: 'New email address',
2755
+ displayOptions: {
2756
+ show: {
2757
+ actionType: ['changeEmail'],
2758
+ },
2759
+ },
2760
+ },
2761
+ {
2762
+ displayName: 'External ID',
2763
+ name: 'externalId',
2764
+ type: 'string',
2765
+ default: '',
2766
+ description: 'External ID for the customer',
2767
+ displayOptions: {
2768
+ show: {
2769
+ actionType: ['setExternalId'],
2770
+ },
2771
+ },
2772
+ },
2773
+ {
2774
+ displayName: 'Fax',
2775
+ name: 'fax',
2776
+ type: 'string',
2777
+ default: '',
2778
+ description: 'Fax number (optional)',
2779
+ displayOptions: {
2780
+ show: {
2781
+ actionType: ['addAddress', 'changeAddress'],
2782
+ },
2783
+ },
2784
+ },
2785
+ {
2786
+ displayName: 'Field Name',
2787
+ name: 'name',
2788
+ type: 'string',
2789
+ required: true,
2790
+ default: '',
2791
+ description: 'Name of the Custom Field',
2792
+ displayOptions: {
2793
+ show: {
2794
+ actionType: ['setCustomField', 'setCustomFieldInAddress'],
2795
+ },
2796
+ },
2797
+ },
2798
+ {
2799
+ displayName: 'Field Value',
2800
+ name: 'value',
2801
+ type: 'string',
2802
+ default: '',
2803
+ description: 'Value for the custom field (text, number, boolean, etc.)',
2804
+ displayOptions: {
2805
+ show: {
2806
+ actionType: ['setCustomField', 'setAddressCustomField'],
2807
+ },
2808
+ },
2809
+ },
2810
+ {
2811
+ displayName: 'Fields',
2812
+ name: 'fields',
2813
+ type: 'fixedCollection',
2814
+ default: {},
2815
+ description: 'Custom field values',
2816
+ typeOptions: {
2817
+ multipleValues: true,
2818
+ },
2819
+ options: [
2820
+ {
2821
+ displayName: 'Field',
2822
+ name: 'field',
2823
+ values: [
2824
+ {
2825
+ displayName: 'Name',
2826
+ name: 'name',
2827
+ type: 'string',
2828
+ default: '',
2829
+ description: 'The name of the custom field',
2830
+ },
2831
+ {
2832
+ displayName: 'Value',
2833
+ name: 'value',
2834
+ type: 'string',
2835
+ default: '',
2836
+ description: 'The value of the custom field',
2837
+ },
2838
+ ],
2839
+ },
2840
+ ],
2841
+ displayOptions: {
2842
+ show: {
2843
+ actionType: ['setCustomType', 'setCustomTypeInAddress'],
2844
+ },
2845
+ },
2846
+ },
2847
+ {
2848
+ displayName: 'First Name',
2849
+ name: 'firstName',
2850
+ type: 'string',
2851
+ default: '',
2852
+ description: 'First name for the customer',
2853
+ displayOptions: {
2854
+ show: {
2855
+ actionType: ['setFirstName'],
2856
+ },
2857
+ },
2858
+ },
2859
+ {
2860
+ displayName: 'Key',
2861
+ name: 'key',
2862
+ type: 'string',
2863
+ default: '',
2864
+ description: 'Address key for identification (optional but recommended)',
2865
+ displayOptions: {
2866
+ show: {
2867
+ actionType: ['addAddress', 'changeAddress'],
2868
+ },
2869
+ },
2870
+ },
2871
+ {
2872
+ displayName: 'Last Name',
2873
+ name: 'lastName',
2874
+ type: 'string',
2875
+ default: '',
2876
+ description: 'Last name for the customer',
2877
+ displayOptions: {
2878
+ show: {
2879
+ actionType: ['setLastName'],
2880
+ },
2881
+ },
2882
+ },
2883
+ {
2884
+ displayName: 'Locale',
2885
+ name: 'locale',
2886
+ type: 'string',
2887
+ default: '',
2888
+ description: 'Locale for the customer (e.g., \'en-US\')',
2889
+ displayOptions: {
2890
+ show: {
2891
+ actionType: ['setLocale'],
2892
+ },
2893
+ },
2894
+ },
2895
+ {
2896
+ displayName: 'Middle Name',
2897
+ name: 'middleName',
2898
+ type: 'string',
2899
+ default: '',
2900
+ description: 'Middle name of the customer',
2901
+ displayOptions: {
2902
+ show: {
2903
+ actionType: ['setMiddleName'],
2904
+ },
2905
+ },
2906
+ },
2907
+ {
2908
+ displayName: 'Mobile',
2909
+ name: 'mobile',
2910
+ type: 'string',
2911
+ default: '',
2912
+ description: 'Mobile phone number (optional)',
2913
+ displayOptions: {
2914
+ show: {
2915
+ actionType: ['addAddress', 'changeAddress'],
2916
+ },
2917
+ },
2918
+ },
2919
+ {
2920
+ displayName: 'P.O. Box',
2921
+ name: 'pOBox',
2922
+ type: 'string',
2923
+ default: '',
2924
+ description: 'Post office box (optional)',
2925
+ displayOptions: {
2926
+ show: {
2927
+ actionType: ['addAddress', 'changeAddress'],
2928
+ },
2929
+ },
2930
+ },
2931
+ {
2932
+ displayName: 'Password',
2933
+ name: 'password',
2934
+ type: 'string',
2935
+ typeOptions: { password: true },
2936
+ default: '',
2937
+ description: 'Password (required when setting to Password mode)',
2938
+ displayOptions: {
2939
+ show: {
2940
+ actionType: ['setAuthenticationMode'],
2941
+ authMode: ['Password'],
2942
+ },
2943
+ },
2944
+ },
2945
+ {
2946
+ displayName: 'Phone',
2947
+ name: 'phone',
2948
+ type: 'string',
2949
+ default: '',
2950
+ description: 'Phone number (optional)',
2951
+ displayOptions: {
2952
+ show: {
2953
+ actionType: ['addAddress', 'changeAddress'],
2954
+ },
2955
+ },
2956
+ },
2957
+ {
2958
+ displayName: 'Postal Code',
2959
+ name: 'postalCode',
2960
+ type: 'string',
2961
+ default: '',
2962
+ description: 'Postal/ZIP code',
2963
+ displayOptions: {
2964
+ show: {
2965
+ actionType: ['addAddress', 'changeAddress'],
2966
+ },
2967
+ },
2968
+ },
2969
+ {
2970
+ displayName: 'Salutation',
2971
+ name: 'salutation',
2972
+ type: 'string',
2973
+ default: '',
2974
+ description: 'Customer salutation (e.g., Mr., Mrs., Dr.)',
2975
+ displayOptions: {
2976
+ show: {
2977
+ actionType: ['setSalutation'],
2978
+ },
2979
+ },
2980
+ },
2981
+ {
2982
+ displayName: 'State',
2983
+ name: 'state',
2984
+ type: 'string',
2985
+ default: '',
2986
+ description: 'State or region (optional)',
2987
+ displayOptions: {
2988
+ show: {
2989
+ actionType: ['addAddress', 'changeAddress'],
2990
+ },
2991
+ },
2992
+ },
2993
+ {
2994
+ displayName: 'Store ID',
2995
+ name: 'storeId',
2996
+ type: 'string',
2997
+ default: '',
2998
+ description: 'ID of the store',
2999
+ displayOptions: {
3000
+ show: {
3001
+ actionType: ['addStore', 'removeStore'],
3002
+ storeReferenceType: ['id'],
3003
+ },
3004
+ },
3005
+ },
3006
+ {
3007
+ displayName: 'Store IDs',
3008
+ name: 'storeIds',
3009
+ type: 'string',
3010
+ displayOptions: {
3011
+ show: {
3012
+ actionType: ['setStores'],
3013
+ storeReferenceType: ['id'],
3014
+ },
3015
+ },
3016
+ default: '',
3017
+ description: 'Comma-separated list of store IDs',
3018
+ },
3019
+ {
3020
+ displayName: 'Store Key',
3021
+ name: 'storeKey',
3022
+ type: 'string',
3023
+ default: '',
3024
+ description: 'Key of the store',
3025
+ displayOptions: {
3026
+ show: {
3027
+ actionType: ['addStore', 'removeStore'],
3028
+ storeReferenceType: ['key'],
3029
+ },
3030
+ },
3031
+ },
3032
+ {
3033
+ displayName: 'Store Keys',
3034
+ name: 'storeKeys',
3035
+ type: 'string',
3036
+ displayOptions: {
3037
+ show: {
3038
+ actionType: ['setStores'],
3039
+ storeReferenceType: ['key'],
3040
+ },
3041
+ },
3042
+ default: '',
3043
+ description: 'Comma-separated list of store keys',
3044
+ },
3045
+ {
3046
+ displayName: 'Store Reference Type',
3047
+ name: 'storeReferenceType',
3048
+ type: 'options',
3049
+ options: [
3050
+ {
3051
+ name: 'ID',
3052
+ value: 'id',
3053
+ description: 'Reference store by ID',
3054
+ },
3055
+ {
3056
+ name: 'Key',
3057
+ value: 'key',
3058
+ description: 'Reference store by key',
3059
+ },
3060
+ ],
3061
+ default: 'id',
3062
+ description: 'Whether to reference the store by ID or key',
3063
+ displayOptions: {
3064
+ show: {
3065
+ actionType: ['addStore', 'removeStore', 'setStores'],
3066
+ },
3067
+ },
3068
+ },
3069
+ {
3070
+ displayName: 'Street Name',
3071
+ name: 'streetName',
3072
+ type: 'string',
3073
+ default: '',
3074
+ displayOptions: {
3075
+ show: {
3076
+ actionType: ['addAddress', 'changeAddress'],
3077
+ },
3078
+ },
3079
+ },
3080
+ {
3081
+ displayName: 'Street Number',
3082
+ name: 'streetNumber',
3083
+ type: 'string',
3084
+ default: '',
3085
+ displayOptions: {
3086
+ show: {
3087
+ actionType: ['addAddress', 'changeAddress'],
3088
+ },
3089
+ },
3090
+ },
3091
+ {
3092
+ displayName: 'Title',
3093
+ name: 'title',
3094
+ type: 'string',
3095
+ default: '',
3096
+ description: 'Customer title (e.g., Mr., Mrs., Dr.)',
3097
+ displayOptions: {
3098
+ show: {
3099
+ actionType: ['setTitle'],
3100
+ },
3101
+ },
3102
+ },
3103
+ {
3104
+ displayName: 'Type ID',
3105
+ name: 'typeId',
3106
+ type: 'string',
3107
+ default: '',
3108
+ description: 'ID of the custom type',
3109
+ displayOptions: {
3110
+ show: {
3111
+ actionType: ['setCustomType', 'setCustomTypeInAddress'],
3112
+ typeReferenceType: ['id'],
3113
+ },
3114
+ },
3115
+ },
3116
+ {
3117
+ displayName: 'Type Key',
3118
+ name: 'typeKey',
3119
+ type: 'string',
3120
+ default: '',
3121
+ description: 'Key of the custom type',
3122
+ displayOptions: {
3123
+ show: {
3124
+ actionType: ['setCustomType', 'setCustomTypeInAddress'],
3125
+ typeReferenceType: ['key'],
3126
+ },
3127
+ },
3128
+ },
3129
+ {
3130
+ displayName: 'Type Reference Type',
3131
+ name: 'typeReferenceType',
3132
+ type: 'options',
3133
+ options: [
3134
+ {
3135
+ name: 'ID',
3136
+ value: 'id',
3137
+ description: 'Reference type by ID',
3138
+ },
3139
+ {
3140
+ name: 'Key',
3141
+ value: 'key',
3142
+ description: 'Reference type by key',
3143
+ },
3144
+ ],
3145
+ default: 'key',
3146
+ description: 'Whether to reference the custom type by ID or key',
3147
+ displayOptions: {
3148
+ show: {
3149
+ actionType: ['setCustomType', 'setCustomTypeInAddress'],
3150
+ },
3151
+ },
3152
+ },
3153
+ {
3154
+ displayName: 'VAT ID',
3155
+ name: 'vatId',
3156
+ type: 'string',
3157
+ default: '',
3158
+ description: 'VAT ID for the customer',
3159
+ displayOptions: {
3160
+ show: {
3161
+ actionType: ['setVatId'],
3162
+ },
3163
+ },
3164
+ },
3165
+ ],
3166
+ },
3167
+ ],
3168
+ },
3169
+ {
3170
+ displayName: 'Return All',
3171
+ name: 'returnAll',
3172
+ type: 'boolean',
3173
+ default: false,
3174
+ displayOptions: {
3175
+ show: {
3176
+ resource: ['customer'],
3177
+ operation: ['query', 'queryInStore'],
3178
+ },
3179
+ },
3180
+ description: 'Whether to return all results or only up to a given limit',
3181
+ },
3182
+ {
3183
+ displayName: 'Limit',
3184
+ name: 'limit',
3185
+ type: 'number',
3186
+ default: 50,
3187
+ typeOptions: {
3188
+ minValue: 1,
3189
+ maxValue: 500,
3190
+ },
3191
+ displayOptions: {
3192
+ show: {
3193
+ resource: ['customer'],
3194
+ operation: ['query', 'queryInStore'],
3195
+ returnAll: [false],
3196
+ },
3197
+ },
3198
+ description: 'Max number of results to return',
3199
+ },
3200
+ {
3201
+ displayName: 'Offset',
3202
+ name: 'offset',
3203
+ type: 'number',
3204
+ default: 0,
3205
+ typeOptions: {
3206
+ minValue: 0,
3207
+ },
3208
+ displayOptions: {
3209
+ show: {
3210
+ resource: ['customer'],
3211
+ operation: ['query', 'queryInStore'],
3212
+ },
3213
+ },
3214
+ description: 'Number of customers to skip before returning results',
3215
+ },
3216
+ {
3217
+ displayName: 'Additional Fields',
3218
+ name: 'additionalFields',
3219
+ type: 'collection',
3220
+ default: {},
3221
+ placeholder: 'Add Field',
3222
+ options: [
3223
+ {
3224
+ displayName: 'Anonymous Cart ID',
3225
+ name: 'anonymousCartId',
3226
+ type: 'string',
3227
+ default: '',
3228
+ description: 'The ID of the anonymous cart to merge with the customer cart',
3229
+ },
3230
+ {
3231
+ displayName: 'Anonymous Cart Sign In Mode',
3232
+ name: 'anonymousCartSignInMode',
3233
+ type: 'options',
3234
+ options: [
3235
+ {
3236
+ name: 'Merge With Existing Customer Cart',
3237
+ value: 'MergeWithExistingCustomerCart',
3238
+ },
3239
+ {
3240
+ name: 'Use As New Active Customer Cart',
3241
+ value: 'UseAsNewActiveCustomerCart',
3242
+ },
3243
+ ],
3244
+ default: 'MergeWithExistingCustomerCart',
3245
+ description: 'How to handle the anonymous cart when signing in',
3246
+ },
3247
+ {
3248
+ displayName: 'Anonymous ID',
3249
+ name: 'anonymousId',
3250
+ type: 'string',
3251
+ default: '',
3252
+ description: 'The ID of the anonymous session',
3253
+ },
3254
+ {
3255
+ displayName: 'Custom Query Parameters',
3256
+ name: 'customParameters',
3257
+ type: 'fixedCollection',
3258
+ default: {},
3259
+ placeholder: 'Add Parameter',
3260
+ typeOptions: {
3261
+ multipleValues: true,
3262
+ },
3263
+ options: [
3264
+ {
3265
+ name: 'parameter',
3266
+ displayName: 'Parameter',
3267
+ values: [
3268
+ {
3269
+ displayName: 'Key',
3270
+ name: 'key',
3271
+ type: 'string',
3272
+ default: '',
3273
+ },
3274
+ {
3275
+ displayName: 'Value',
3276
+ name: 'value',
3277
+ type: 'string',
3278
+ default: '',
3279
+ },
3280
+ ],
3281
+ },
3282
+ ],
3283
+ },
3284
+ {
3285
+ displayName: 'Expand',
3286
+ name: 'expand',
3287
+ type: 'string',
3288
+ default: '',
3289
+ description: 'Include additional resources by reference expansion',
3290
+ },
3291
+ {
3292
+ displayName: 'Predicate Variables',
3293
+ name: 'predicateVariables',
3294
+ type: 'fixedCollection',
3295
+ default: {},
3296
+ placeholder: 'Add Variable',
3297
+ typeOptions: {
3298
+ multipleValues: true,
3299
+ },
3300
+ options: [
3301
+ {
3302
+ name: 'variable',
3303
+ displayName: 'Variable',
3304
+ values: [
3305
+ {
3306
+ displayName: 'Name',
3307
+ name: 'name',
3308
+ type: 'string',
3309
+ default: '',
3310
+ },
3311
+ {
3312
+ displayName: 'Value',
3313
+ name: 'value',
3314
+ type: 'string',
3315
+ default: '',
3316
+ },
3317
+ ],
3318
+ },
3319
+ ],
3320
+ },
3321
+ {
3322
+ displayName: 'Sort',
3323
+ name: 'sort',
3324
+ type: 'string',
3325
+ default: '',
3326
+ description: 'Sort customers by specific fields',
3327
+ },
3328
+ {
3329
+ displayName: 'TTL Minutes',
3330
+ name: 'ttlMinutes',
3331
+ type: 'number',
3332
+ default: 10080,
3333
+ description: 'Time to live for tokens in minutes (default: 7 days)',
3334
+ },
3335
+ {
3336
+ displayName: 'Update Product Data',
3337
+ name: 'updateProductData',
3338
+ type: 'boolean',
3339
+ default: false,
3340
+ description: 'Whether to update product data in the cart',
3341
+ },
3342
+ {
3343
+ displayName: 'Where',
3344
+ name: 'where',
3345
+ type: 'string',
3346
+ default: '',
3347
+ description: 'Query predicate to filter customers',
3348
+ },
3349
+ {
3350
+ displayName: 'With Total',
3351
+ name: 'withTotal',
3352
+ type: 'boolean',
3353
+ default: false,
3354
+ description: 'Whether to include total count in the response',
3355
+ },
3356
+ ],
3357
+ displayOptions: {
3358
+ show: {
3359
+ resource: ['customer'],
3360
+ operation: ['authenticate', 'authenticateInStore', 'query', 'queryInStore', 'headByQuery', 'headInStoreByQuery', 'createPasswordResetToken', 'createPasswordResetTokenInStore', 'createEmailToken', 'createEmailTokenInStore'],
3361
+ },
3362
+ },
3363
+ },
3364
+ {
3365
+ displayName: 'Additional Fields',
3366
+ name: 'additionalFieldsGet',
3367
+ type: 'collection',
3368
+ default: {},
3369
+ placeholder: 'Add Field',
3370
+ options: [
3371
+ {
3372
+ displayName: 'Expand',
3373
+ name: 'expand',
3374
+ type: 'string',
3375
+ default: '',
3376
+ description: 'Include additional resources by reference expansion',
3377
+ },
3378
+ {
3379
+ displayName: 'Custom Query Parameters',
3380
+ name: 'customParameters',
3381
+ type: 'fixedCollection',
3382
+ default: {},
3383
+ placeholder: 'Add Parameter',
3384
+ typeOptions: {
3385
+ multipleValues: true,
3386
+ },
3387
+ options: [
3388
+ {
3389
+ name: 'parameter',
3390
+ displayName: 'Parameter',
3391
+ values: [
3392
+ {
3393
+ displayName: 'Key',
3394
+ name: 'key',
3395
+ type: 'string',
3396
+ default: '',
3397
+ },
3398
+ {
3399
+ displayName: 'Value',
3400
+ name: 'value',
3401
+ type: 'string',
3402
+ default: '',
3403
+ },
3404
+ ],
3405
+ },
3406
+ ],
3407
+ },
3408
+ ],
3409
+ displayOptions: {
3410
+ show: {
3411
+ resource: ['customer'],
3412
+ operation: ['get', 'getByKey', 'getByEmailToken', 'getByPasswordToken', 'getInStore', 'getInStoreByKey', 'getInStoreByEmailToken', 'getInStoreByPasswordToken'],
3413
+ },
3414
+ },
3415
+ },
3416
+ {
3417
+ displayName: 'Additional Fields',
3418
+ name: 'additionalFieldsCreate',
3419
+ type: 'collection',
3420
+ default: {},
3421
+ placeholder: 'Add Field',
3422
+ options: [
3423
+ {
3424
+ displayName: 'Expand',
3425
+ name: 'expand',
3426
+ type: 'string',
3427
+ default: '',
3428
+ description: 'Include additional resources by reference expansion',
3429
+ },
3430
+ ],
3431
+ displayOptions: {
3432
+ show: {
3433
+ resource: ['customer'],
3434
+ operation: ['create', 'createInStore'],
3435
+ },
3436
+ },
3437
+ },
3438
+ {
3439
+ displayName: 'Additional Fields',
3440
+ name: 'additionalFieldsUpdate',
3441
+ type: 'collection',
3442
+ default: {},
3443
+ placeholder: 'Add Field',
3444
+ options: [
3445
+ {
3446
+ displayName: 'Expand',
3447
+ name: 'expand',
3448
+ type: 'string',
3449
+ default: '',
3450
+ description: 'Include additional resources by reference expansion',
3451
+ },
3452
+ ],
3453
+ displayOptions: {
3454
+ show: {
3455
+ resource: ['customer'],
3456
+ operation: ['update', 'updateByKey', 'updateInStore', 'updateInStoreByKey'],
3457
+ },
3458
+ },
3459
+ },
1843
3460
  ],
1844
3461
  };
1845
3462
  //# sourceMappingURL=Commercetools.description.js.map