orc-shared 5.9.0-dev.8 → 5.10.0-dev.1

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.
@@ -2,4810 +2,206 @@
2
2
 
3
3
  import { buildUrl } from "../utils/buildUrl";
4
4
 
5
- export const acquireEntityLockRequest = {
6
- name: "acquireEntityLockRequest",
7
- buildUrl: (scopeId, entity, entityId) => buildUrl(["locking", scopeId, "entity", entity, entityId, "lock"]),
8
- verb: "POST",
9
- };
10
-
11
- export const activateUserRequest = {
12
- name: "activateUserRequest",
13
- buildUrl: userName => buildUrl(["users", userName, "activate"]),
14
- verb: "POST",
15
- };
16
-
17
- export const activateUsersRequest = {
18
- name: "activateUsersRequest",
19
- buildUrl: () => buildUrl(["users", "activate"]),
20
- verb: "PUT",
21
- };
22
-
23
- export const addAddressToCustomProfileRequest = {
24
- name: "addAddressToCustomProfileRequest",
25
- buildUrl: (scopeId, entityId) => buildUrl(["customProfiles", scopeId, entityId, "addresses"]),
26
- verb: "POST",
27
- };
28
-
29
- export const addAddressToCustomerRequest = {
30
- name: "addAddressToCustomerRequest",
31
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "addresses"]),
32
- verb: "POST",
33
- };
34
-
35
- export const addCountryRequest = {
36
- name: "addCountryRequest",
37
- buildUrl: () => buildUrl(["countries"]),
38
- verb: "POST",
39
- };
40
-
41
- export const addCouponRequest = {
42
- name: "addCouponRequest",
43
- buildUrl: (scopeId, customerId, cartName, couponCode) =>
44
- buildUrl(["carts", scopeId, customerId, cartName, "coupons", couponCode]),
45
- verb: "POST",
46
- };
47
-
48
- export const addCustomerNoteRequest = {
49
- name: "addCustomerNoteRequest",
50
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "notes"]),
51
- verb: "POST",
52
- };
53
-
54
- export const addCustomerPaymentProfileRequest = {
55
- name: "addCustomerPaymentProfileRequest",
56
- buildUrl: (scopeId, customerId, paymentProviderName) =>
57
- buildUrl(["customers", scopeId, customerId, paymentProviderName, "paymentProfile"]),
58
- verb: "POST",
59
- };
60
-
61
- export const addCustomersToOrganizationRequest = {
62
- name: "addCustomersToOrganizationRequest",
63
- buildUrl: scopeId => buildUrl(["organizations", scopeId, "customers"]),
64
- verb: "POST",
65
- };
66
-
67
- export const addFromGlobalRequest = {
68
- name: "addFromGlobalRequest",
69
- buildUrl: scopeId => buildUrl(["products", scopeId, "fromGlobal"]),
70
- verb: "POST",
71
- };
72
-
73
- export const addFulfillmentCompetitionLocationsRequest = {
74
- name: "addFulfillmentCompetitionLocationsRequest",
75
- buildUrl: (scopeId, fulfillmentCompetitionId) =>
76
- buildUrl(["fulfillments", "competitions", scopeId, fulfillmentCompetitionId, "locations"]),
77
- verb: "POST",
78
- };
79
-
80
- export const addFulfillmentLocationTimeSlotQuotaExceptionRequest = {
81
- name: "addFulfillmentLocationTimeSlotQuotaExceptionRequest",
82
- buildUrl: (scopeId, fulfillmentLocationId, slotId) =>
83
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "quotaExceptions", slotId]),
84
- verb: "POST",
85
- };
86
-
87
- export const addFulfillmentLocationTimeSlotRequest = {
88
- name: "addFulfillmentLocationTimeSlotRequest",
89
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType) =>
90
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots"]),
91
- verb: "POST",
92
- };
93
-
94
- export const addFulfillmentLocationTimeSlotReservationRequest = {
95
- name: "addFulfillmentLocationTimeSlotReservationRequest",
96
- buildUrl: (scopeId, fulfillmentLocationId, slotId) =>
97
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "reservations", slotId]),
98
- verb: "POST",
99
- };
100
-
101
- export const addFulfillmentLocationTimeSlotsRequest = {
102
- name: "addFulfillmentLocationTimeSlotsRequest",
103
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType) =>
104
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots", "several"]),
105
- verb: "POST",
106
- };
107
-
108
- export const addInventoryScheduleRequest = {
109
- name: "addInventoryScheduleRequest",
110
- buildUrl: inventoryLocationId => buildUrl(["inventoryLocations", inventoryLocationId, "schedules"]),
111
- verb: "POST",
112
- };
113
-
114
- export const addLineItemInShipmentRequest = {
115
- name: "addLineItemInShipmentRequest",
116
- buildUrl: (scopeId, customerId, cartName, shipmentId) =>
117
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", shipmentId, "lineItems"]),
118
- verb: "POST",
119
- };
120
-
121
- export const addLineItemRequest = {
122
- name: "addLineItemRequest",
123
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "lineItems"]),
124
- verb: "POST",
125
- };
126
-
127
- export const addOrUpdateCampaignRequest = {
128
- name: "addOrUpdateCampaignRequest",
129
- buildUrl: (scopeId, campaignId) => buildUrl(["campaigns", scopeId, campaignId, "full"]),
130
- verb: "PUT",
131
- };
132
-
133
- export const addOrUpdateCustomerAddressRequest = {
134
- name: "addOrUpdateCustomerAddressRequest",
135
- buildUrl: (customerId, addressId) => buildUrl(["customers", customerId, "addresses", addressId]),
136
- verb: "PUT",
137
- };
138
-
139
- export const addOrUpdateLineItemsInShipmentRequest = {
140
- name: "addOrUpdateLineItemsInShipmentRequest",
141
- buildUrl: (scopeId, customerId, cartName, shipmentId) =>
142
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", shipmentId, "lineItems", "batch"]),
143
- verb: "POST",
144
- };
145
-
146
- export const addOrUpdateLineItemsRequest = {
147
- name: "addOrUpdateLineItemsRequest",
148
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "lineItems", "batch"]),
5
+ export const createCustomerLookupTypeDefinitionRequest = {
6
+ name: "createCustomerLookupTypeDefinitionRequest",
7
+ buildUrl: lookupName => buildUrl(["metadata", "lookups", "customer", lookupName]),
149
8
  verb: "POST",
150
9
  };
151
10
 
152
- export const addOrUpdatePriceListRequest = {
153
- name: "addOrUpdatePriceListRequest",
154
- buildUrl: scopeId => buildUrl(["products", scopeId, "priceLists"]),
11
+ export const createEntityTypeRequest = {
12
+ name: "createEntityTypeRequest",
13
+ buildUrl: entityTypeName => buildUrl(["metadata", "EntityType", entityTypeName]),
155
14
  verb: "POST",
156
15
  };
157
16
 
158
- export const addOrUpdateProfileSettingsRequest = {
159
- name: "addOrUpdateProfileSettingsRequest",
160
- buildUrl: () => buildUrl(["metadata", "settings", "customer"]),
17
+ export const createOrderLookupTypeDefinitionRequest = {
18
+ name: "createOrderLookupTypeDefinitionRequest",
19
+ buildUrl: lookupName => buildUrl(["metadata", "lookups", "order", lookupName]),
161
20
  verb: "POST",
162
21
  };
163
22
 
164
- export const addOrUpdateRecurringOrderLineItemsRequest = {
165
- name: "addOrUpdateRecurringOrderLineItemsRequest",
166
- buildUrl: (scopeId, customerId) => buildUrl(["recurringOrders", scopeId, "lineItems", "forCustomer", customerId]),
167
- verb: "PUT",
168
- };
169
-
170
- export const addOrUpdateScheduledTaskTrigger = {
171
- name: "addOrUpdateScheduledTaskTrigger",
172
- buildUrl: (taskGroup, taskName, triggerGroup, triggerName) =>
173
- buildUrl(["tasks", "scheduled", taskGroup, taskName, "triggers", triggerGroup, triggerName]),
174
- verb: "PUT",
23
+ export const deleteTaskInfoRequest = {
24
+ name: "deleteTaskInfoRequest",
25
+ buildUrl: (taskId, queryParams) => buildUrl(["tasks", taskId], queryParams),
26
+ verb: "DELETE",
175
27
  };
176
28
 
177
- export const addOrUpdateVariantSearchConfigurationRequest = {
178
- name: "addOrUpdateVariantSearchConfigurationRequest",
179
- buildUrl: scopeId => buildUrl(["search", scopeId, "configurations", "variant"]),
180
- verb: "PUT",
29
+ export const getApplicationModules = {
30
+ name: "getApplicationModules",
31
+ buildUrl: applicationName => buildUrl(["modules", "byApplicationName", applicationName]),
32
+ verb: "GET",
181
33
  };
182
34
 
183
- export const addOrderHistoryRequest = {
184
- name: "addOrderHistoryRequest",
185
- buildUrl: scopeId => buildUrl(["orders", scopeId, "orderhistory"]),
186
- verb: "POST",
35
+ export const getAuthorizedApplicationsRequest = {
36
+ name: "getAuthorizedApplicationsRequest",
37
+ buildUrl: () => buildUrl(["my", "applications"]),
38
+ verb: "GET",
187
39
  };
188
40
 
189
- export const addOrderNoteRequest = {
190
- name: "addOrderNoteRequest",
191
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "notes"]),
192
- verb: "POST",
41
+ export const getCountriesRequest = {
42
+ name: "getCountriesRequest",
43
+ buildUrl: queryParams => buildUrl(["countries"], queryParams),
44
+ verb: "GET",
193
45
  };
194
46
 
195
- export const addOrderReturnNoteRequest = {
196
- name: "addOrderReturnNoteRequest",
197
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
198
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "notes"]),
199
- verb: "POST",
47
+ export const getCustomerDefinitionsRequest = {
48
+ name: "getCustomerDefinitionsRequest",
49
+ buildUrl: queryParams => buildUrl(["metadata", "definitions", "customer"], queryParams),
50
+ verb: "GET",
200
51
  };
201
52
 
202
- export const addOrganizationsToCustomerRequest = {
203
- name: "addOrganizationsToCustomerRequest",
204
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "organizations"]),
205
- verb: "POST",
53
+ export const getCustomerLookupRequest = {
54
+ name: "getCustomerLookupRequest",
55
+ buildUrl: lookupName => buildUrl(["metadata", "lookups", "customer", lookupName]),
56
+ verb: "GET",
206
57
  };
207
58
 
208
- export const addPaymentHistoryRequest = {
209
- name: "addPaymentHistoryRequest",
210
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "paymentHistory"]),
211
- verb: "POST",
59
+ export const getCustomerLookupsRequest = {
60
+ name: "getCustomerLookupsRequest",
61
+ buildUrl: () => buildUrl(["metadata", "lookups", "customer"]),
62
+ verb: "GET",
212
63
  };
213
64
 
214
- export const addPaymentRequest = {
215
- name: "addPaymentRequest",
216
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "payments"]),
217
- verb: "POST",
65
+ export const getOrderDefinitionRequest = {
66
+ name: "getOrderDefinitionRequest",
67
+ buildUrl: (name, queryParams) => buildUrl(["metadata", "definitions", "order", name], queryParams),
68
+ verb: "GET",
218
69
  };
219
70
 
220
- export const addPriceListEntryRequest = {
221
- name: "addPriceListEntryRequest",
222
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, productId, "priceListEntries"]),
223
- verb: "POST",
71
+ export const getOrderLookupRequest = {
72
+ name: "getOrderLookupRequest",
73
+ buildUrl: lookupName => buildUrl(["metadata", "lookups", "order", lookupName]),
74
+ verb: "GET",
224
75
  };
225
76
 
226
- export const addRoleChildRequest = {
227
- name: "addRoleChildRequest",
228
- buildUrl: (parentRoleId, childRoleId) => buildUrl(["roles", parentRoleId, childRoleId]),
229
- verb: "POST",
77
+ export const getOrderLookupsRequest = {
78
+ name: "getOrderLookupsRequest",
79
+ buildUrl: () => buildUrl(["metadata", "lookups", "order"]),
80
+ verb: "GET",
230
81
  };
231
82
 
232
- export const addRoleChildToGlobalAdministratorRoleRequest = {
233
- name: "addRoleChildToGlobalAdministratorRoleRequest",
234
- buildUrl: childRoleId => buildUrl(["roles", "systemAdministrator", childRoleId]),
235
- verb: "POST",
83
+ export const getProductDefinitionsRequest = {
84
+ name: "getProductDefinitionsRequest",
85
+ buildUrl: queryParams => buildUrl(["products", "definitions"], queryParams),
86
+ verb: "GET",
236
87
  };
237
88
 
238
- export const addRoleChildrenRequest = {
239
- name: "addRoleChildrenRequest",
240
- buildUrl: parentRoleId => buildUrl(["roles", parentRoleId, "child"]),
241
- verb: "POST",
89
+ export const getProductLookupsRequest = {
90
+ name: "getProductLookupsRequest",
91
+ buildUrl: () => buildUrl(["metadata", "lookups", "product"]),
92
+ verb: "GET",
242
93
  };
243
94
 
244
- export const addShipmentFulfillmentMessagesRequest = {
245
- name: "addShipmentFulfillmentMessagesRequest",
246
- buildUrl: (scopeId, orderId, shipmentId) =>
247
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "state", "messages"]),
248
- verb: "POST",
95
+ export const getProfileAttributeGroupsRequest = {
96
+ name: "getProfileAttributeGroupsRequest",
97
+ buildUrl: () => buildUrl(["metadata", "attributegroups", "profile"]),
98
+ verb: "GET",
249
99
  };
250
100
 
251
- export const addShipmentNoteRequest = {
252
- name: "addShipmentNoteRequest",
253
- buildUrl: (scopeId, orderId, shipmentId) => buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "notes"]),
254
- verb: "POST",
101
+ export const getRequesterTasksInfoRequest = {
102
+ name: "getRequesterTasksInfoRequest",
103
+ buildUrl: queryParams => buildUrl(["tasks"], queryParams),
104
+ verb: "GET",
255
105
  };
256
106
 
257
- export const addShipmentRequest = {
258
- name: "addShipmentRequest",
259
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "shipments"]),
260
- verb: "POST",
107
+ export const getScopeExtendedConfigurationRequest = {
108
+ name: "getScopeExtendedConfigurationRequest",
109
+ buildUrl: scopeId => buildUrl(["scopes", scopeId, "extendedConfiguration"]),
110
+ verb: "GET",
261
111
  };
262
112
 
263
- export const addStoresToCustomerRequest = {
264
- name: "addStoresToCustomerRequest",
265
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "stores"]),
266
- verb: "POST",
113
+ export const getSupportedCulturesRequest = {
114
+ name: "getSupportedCulturesRequest",
115
+ buildUrl: () => buildUrl(["cultures"]),
116
+ verb: "GET",
267
117
  };
268
118
 
269
- export const addUserToGroupRequest = {
270
- name: "addUserToGroupRequest",
271
- buildUrl: (groupId, userName) => buildUrl(["groups", groupId, userName]),
272
- verb: "POST",
119
+ export const getTaskExecutionLogsRequest = {
120
+ name: "getTaskExecutionLogsRequest",
121
+ buildUrl: taskId => buildUrl(["tasks", taskId, "logs"]),
122
+ verb: "GET",
273
123
  };
274
124
 
275
- export const advancedFindInventoryItemsRequest = {
276
- name: "advancedFindInventoryItemsRequest",
277
- buildUrl: scopeId => buildUrl(["inventoryItems", scopeId, "find", "advanced"]),
278
- verb: "POST",
125
+ export const getTaskInfoRequest = {
126
+ name: "getTaskInfoRequest",
127
+ buildUrl: taskId => buildUrl(["tasks", taskId]),
128
+ verb: "GET",
279
129
  };
280
130
 
281
- export const advancedSearchRequest = {
282
- name: "advancedSearchRequest",
283
- buildUrl: (scopeId, cultureName, indexName) => buildUrl(["search", scopeId, cultureName, "advanced", indexName]),
284
- verb: "POST",
131
+ export const getTimeZonesRequest = {
132
+ name: "getTimeZonesRequest",
133
+ buildUrl: () => buildUrl(["timezones"]),
134
+ verb: "GET",
285
135
  };
286
136
 
287
- export const anonymizeCustomerRequest = {
288
- name: "anonymizeCustomerRequest",
289
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "anonymize"]),
290
- verb: "POST",
137
+ export const getUserApplicationRequest = {
138
+ name: "getUserApplicationRequest",
139
+ buildUrl: () => buildUrl(["my", "application"]),
140
+ verb: "GET",
291
141
  };
292
142
 
293
- export const assignPickerToPickingMissionRequest = {
294
- name: "assignPickerToPickingMissionRequest",
295
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "assignPicker"]),
296
- verb: "POST",
143
+ export const getUserCultureRequest = {
144
+ name: "getUserCultureRequest",
145
+ buildUrl: () => buildUrl(["my", "culture"]),
146
+ verb: "GET",
297
147
  };
298
148
 
299
- export const associateCustomerEntityRequest = {
300
- name: "associateCustomerEntityRequest",
301
- buildUrl: (customerId, scopeId, attributeName, entityId) =>
302
- buildUrl(["customers", customerId, "customProfiles", scopeId, attributeName, entityId]),
303
- verb: "POST",
149
+ export const getUserPermissionsRequest = {
150
+ name: "getUserPermissionsRequest",
151
+ buildUrl: () => buildUrl(["authentication", "profile"]),
152
+ verb: "GET",
304
153
  };
305
154
 
306
- export const associateEntityRequest = {
307
- name: "associateEntityRequest",
308
- buildUrl: (scopeId, parentEntityTypeName, parentId, attributeName, entityId) =>
309
- buildUrl(["customProfiles", scopeId, parentEntityTypeName, parentId, attributeName, entityId]),
310
- verb: "POST",
155
+ export const getUserScopeRequest = {
156
+ name: "getUserScopeRequest",
157
+ buildUrl: module => buildUrl(["my", "scope", module]),
158
+ verb: "GET",
311
159
  };
312
160
 
313
- export const authorizePaymentRequest = {
314
- name: "authorizePaymentRequest",
315
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
316
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "authorize"]),
317
- verb: "POST",
161
+ export const getUserScopeTreeRequest = {
162
+ name: "getUserScopeTreeRequest",
163
+ buildUrl: (module, queryParams) => buildUrl(["my", "scope", module, "tree"], queryParams),
164
+ verb: "GET",
318
165
  };
319
166
 
320
- export const basicDiagnosticRequest = {
321
- name: "basicDiagnosticRequest",
322
- buildUrl: () => buildUrl(["diagnostic", "basic"]),
167
+ export const getVersionInfoRequest = {
168
+ name: "getVersionInfoRequest",
169
+ buildUrl: queryParams => buildUrl(["diagnostic", "versioninfo"], queryParams),
323
170
  verb: "GET",
324
171
  };
325
172
 
326
- export const bulkAssignProductCategoriesRequest = {
327
- name: "bulkAssignProductCategoriesRequest",
328
- buildUrl: scopeId => buildUrl(["products", scopeId, "bulkAssignCategories"]),
173
+ export const saveUserApplicationRequest = {
174
+ name: "saveUserApplicationRequest",
175
+ buildUrl: applicationId => buildUrl(["my", "application", applicationId]),
329
176
  verb: "POST",
330
177
  };
331
178
 
332
- export const bulkDeletePriceListEntriesRequest = {
333
- name: "bulkDeletePriceListEntriesRequest",
334
- buildUrl: scopeId => buildUrl(["products", scopeId, "priceListEntries", "bulkDelete"]),
179
+ export const saveUserCultureRequest = {
180
+ name: "saveUserCultureRequest",
181
+ buildUrl: cultureIso => buildUrl(["my", "culture", cultureIso]),
335
182
  verb: "POST",
336
183
  };
337
184
 
338
- export const bulkRevertProductChangesRequest = {
339
- name: "bulkRevertProductChangesRequest",
340
- buildUrl: scopeId => buildUrl(["products", scopeId, "bulkRevert"]),
185
+ export const signOutRequest = {
186
+ name: "signOutRequest",
187
+ buildUrl: () => buildUrl(["authentication", "signout"]),
341
188
  verb: "POST",
342
189
  };
343
190
 
344
- export const bulkUpdateProfilesRequest = {
345
- name: "bulkUpdateProfilesRequest",
346
- buildUrl: scopeId => buildUrl(["customProfiles", scopeId, "update"]),
191
+ export const updateCustomerLookupTypeDefinitionRequest = {
192
+ name: "updateCustomerLookupTypeDefinitionRequest",
193
+ buildUrl: lookupName => buildUrl(["metadata", "lookups", "customer", lookupName]),
347
194
  verb: "PUT",
348
195
  };
349
196
 
350
- export const bulkUpdatePublicationStatusRequest = {
351
- name: "bulkUpdatePublicationStatusRequest",
352
- buildUrl: scopeId => buildUrl(["products", scopeId, "bulkUpdatePublicationStatus"]),
353
- verb: "POST",
354
- };
355
-
356
- export const calculateDistanceBetweenAddressesRequest = {
357
- name: "calculateDistanceBetweenAddressesRequest",
358
- buildUrl: scopeId => buildUrl(["addresses", scopeId, "calculateDistance"]),
359
- verb: "POST",
360
- };
361
-
362
- export const calculateFulfillmentLocationsDelayRequest = {
363
- name: "calculateFulfillmentLocationsDelayRequest",
364
- buildUrl: scopeId => buildUrl(["fulfillmentLocations", scopeId, "calculateDelay"]),
365
- verb: "POST",
366
- };
367
-
368
- export const calculateOrderReturnAmountsRequest = {
369
- name: "calculateOrderReturnAmountsRequest",
370
- buildUrl: (scopeId, orderNumber) => buildUrl(["orders", "returns", scopeId, orderNumber, "calculateAmounts"]),
371
- verb: "POST",
372
- };
373
-
374
- export const calculatePricesofProductsRequest = {
375
- name: "calculatePricesofProductsRequest",
376
- buildUrl: scopeId => buildUrl(["products", scopeId, "prices"]),
377
- verb: "POST",
378
- };
379
-
380
- export const calculateProductPriceRequest = {
381
- name: "calculateProductPriceRequest",
382
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, productId, "price"]),
383
- verb: "POST",
384
- };
385
-
386
- export const calculateScheduleAvailabilitySlotsRequest = {
387
- name: "calculateScheduleAvailabilitySlotsRequest",
388
- buildUrl: (fulfillmentLocationId, fulfillmentType) =>
389
- buildUrl(["fulfillmentLocations", fulfillmentLocationId, fulfillmentType]),
390
- verb: "POST",
391
- };
392
-
393
- export const cancelAllInventoryReservedItemsRequest = {
394
- name: "cancelAllInventoryReservedItemsRequest",
395
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId, "cancelAll"]),
396
- verb: "POST",
397
- };
398
-
399
- export const cancelCampaignRequest = {
400
- name: "cancelCampaignRequest",
401
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id, "cancel"]),
402
- verb: "POST",
403
- };
404
-
405
- export const cancelInventoryReservedItemsRequest = {
406
- name: "cancelInventoryReservedItemsRequest",
407
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId, "cancelList"]),
408
- verb: "POST",
409
- };
410
-
411
- export const cancelPickingMissionAssemblyRequest = {
412
- name: "cancelPickingMissionAssemblyRequest",
413
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "cancelAssembly"]),
414
- verb: "POST",
415
- };
416
-
417
- export const cancelPickingMissionRequest = {
418
- name: "cancelPickingMissionRequest",
419
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "cancel"]),
420
- verb: "POST",
421
- };
422
-
423
- export const cancelTaskRequest = {
424
- name: "cancelTaskRequest",
425
- buildUrl: taskId => buildUrl(["tasks", taskId, "cancel"]),
426
- verb: "POST",
427
- };
428
-
429
- export const changeFulfillmentCompetitionLocationStatusRequest = {
430
- name: "changeFulfillmentCompetitionLocationStatusRequest",
431
- buildUrl: (scopeId, fulfillmentCompetitionId, fulfillmentLocationId) =>
432
- buildUrl([
433
- "fulfillments",
434
- "competitions",
435
- scopeId,
436
- fulfillmentCompetitionId,
437
- "locations",
438
- fulfillmentLocationId,
439
- "status",
440
- ]),
197
+ export const updateEntityTypeRequest = {
198
+ name: "updateEntityTypeRequest",
199
+ buildUrl: entityTypeName => buildUrl(["metadata", "EntityType", entityTypeName]),
441
200
  verb: "PUT",
442
201
  };
443
202
 
444
- export const changeFulfillmentCompetitionStatusRequest = {
445
- name: "changeFulfillmentCompetitionStatusRequest",
446
- buildUrl: (scopeId, fulfillmentCompetitionId) =>
447
- buildUrl(["fulfillments", "competitions", scopeId, fulfillmentCompetitionId, "status"]),
448
- verb: "PUT",
449
- };
450
-
451
- export const changeInventoryReservedItemsStockStatusRequest = {
452
- name: "changeInventoryReservedItemsStockStatusRequest",
453
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId, "changeStockStatus"]),
454
- verb: "POST",
455
- };
456
-
457
- export const changeOrderStatusRequest = {
458
- name: "changeOrderStatusRequest",
459
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "fulfillmentState"]),
460
- verb: "POST",
461
- };
462
-
463
- export const changeOwnershipCartOrderDraftRequest = {
464
- name: "changeOwnershipCartOrderDraftRequest",
465
- buildUrl: (scopeId, customerId, orderId) =>
466
- buildUrl(["orders", scopeId, customerId, orderId, "orderDraft", "changeOwnership"]),
467
- verb: "POST",
468
- };
469
-
470
- export const changePasswordRequest = {
471
- name: "changePasswordRequest",
472
- buildUrl: (scopeId, userName) => buildUrl(["membership", scopeId, "ChangePassword", userName]),
473
- verb: "POST",
474
- };
475
-
476
- export const changeShipmentStatusRequest = {
477
- name: "changeShipmentStatusRequest",
478
- buildUrl: (scopeId, orderId, shipmentId) =>
479
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "fulfillmentState"]),
480
- verb: "POST",
481
- };
482
-
483
- export const changeUserNameRequest = {
484
- name: "changeUserNameRequest",
485
- buildUrl: (scopeId, oldUsername) => buildUrl(["membership", scopeId, "ChangeUserName", oldUsername]),
486
- verb: "POST",
487
- };
488
-
489
- export const checkAvailabilitySlotRequest = {
490
- name: "checkAvailabilitySlotRequest",
491
- buildUrl: (fulfillmentLocationId, fulfillmentType) =>
492
- buildUrl(["fulfillmentLocations", "forSlot", fulfillmentLocationId, fulfillmentType]),
493
- verb: "POST",
494
- };
495
-
496
- export const clearCartRequest = {
497
- name: "clearCartRequest",
498
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
499
- buildUrl(["carts", scopeId, customerId, cartName, "clear"], queryParams),
500
- verb: "DELETE",
501
- };
502
-
503
- export const clearRelationshipsRequest = {
504
- name: "clearRelationshipsRequest",
505
- buildUrl: (scopeId, entityType, entityId, queryParams) =>
506
- buildUrl(["relationships", scopeId, entityType, entityId], queryParams),
507
- verb: "DELETE",
508
- };
509
-
510
- export const clearRelationshipsV2Request = {
511
- name: "clearRelationshipsV2Request",
512
- buildUrl: (scopeId, entityType, entityId, queryParams) =>
513
- buildUrl(["relationships", "v2", scopeId, entityType, entityId], queryParams),
514
- verb: "DELETE",
515
- };
516
-
517
- export const completeCheckoutRequest = {
518
- name: "completeCheckoutRequest",
519
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "completeCheckout"]),
520
- verb: "POST",
521
- };
522
-
523
- export const completePickingMissionAssemblyRequest = {
524
- name: "completePickingMissionAssemblyRequest",
525
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "completeAssembly"]),
526
- verb: "POST",
527
- };
528
-
529
- export const confirmFulfillmentCarrierQuotesRequest = {
530
- name: "confirmFulfillmentCarrierQuotesRequest",
531
- buildUrl: (scopeId, fulfillmentCarrierId) =>
532
- buildUrl(["fulfillments", "carriers", scopeId, fulfillmentCarrierId, "quotes", "confirm"]),
533
- verb: "POST",
534
- };
535
-
536
- export const confirmInventoryReservedOrderItemsRequest = {
537
- name: "confirmInventoryReservedOrderItemsRequest",
538
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId, "confirm"]),
539
- verb: "POST",
540
- };
541
-
542
- export const consumeCouponByCodeRequest = {
543
- name: "consumeCouponByCodeRequest",
544
- buildUrl: () => buildUrl(["coupons", "consume", "code"]),
545
- verb: "POST",
546
- };
547
-
548
- export const consumeCouponRequest = {
549
- name: "consumeCouponRequest",
550
- buildUrl: () => buildUrl(["coupons", "consume"]),
551
- verb: "POST",
552
- };
553
-
554
- export const copyCampaignRequest = {
555
- name: "copyCampaignRequest",
556
- buildUrl: (scopeId, fromCampaignId) => buildUrl(["campaigns", scopeId, fromCampaignId, "copy"]),
557
- verb: "POST",
558
- };
559
-
560
- export const copyCartFromOrderRequest = {
561
- name: "copyCartFromOrderRequest",
562
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "copycart"]),
563
- verb: "POST",
564
- };
565
-
566
- export const copyCartToCustomerRequest = {
567
- name: "copyCartToCustomerRequest",
568
- buildUrl: (scopeId, customerId, cartName, newCustomerId) =>
569
- buildUrl(["carts", scopeId, customerId, cartName, "copyTo", newCustomerId]),
570
- verb: "PUT",
571
- };
572
-
573
- export const copyOrderRequest = {
574
- name: "copyOrderRequest",
575
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "copy"]),
576
- verb: "POST",
577
- };
578
-
579
- export const copyProductRequest = {
580
- name: "copyProductRequest",
581
- buildUrl: (scopeId, productId, newProductId) => buildUrl(["products", scopeId, productId, "copy", newProductId]),
582
- verb: "PUT",
583
- };
584
-
585
- export const createCampaignRequest = {
586
- name: "createCampaignRequest",
587
- buildUrl: scopeId => buildUrl(["campaigns", scopeId]),
588
- verb: "POST",
589
- };
590
-
591
- export const createCarrierProviderRequest = {
592
- name: "createCarrierProviderRequest",
593
- buildUrl: scopeId => buildUrl(["providers", scopeId, "carrier"]),
594
- verb: "POST",
595
- };
596
-
597
- export const createCartOrderDraftRequest = {
598
- name: "createCartOrderDraftRequest",
599
- buildUrl: (scopeId, customerId, orderId) => buildUrl(["orders", scopeId, customerId, orderId, "orderDraft"]),
600
- verb: "POST",
601
- };
602
-
603
- export const createCartPaymentInVaultProfileRequest = {
604
- name: "createCartPaymentInVaultProfileRequest",
605
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
606
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "createCartPaymentVaultProfile"]),
607
- verb: "POST",
608
- };
609
-
610
- export const createCartPaymentVaultProfileRequest = {
611
- name: "createCartPaymentVaultProfileRequest",
612
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
613
- buildUrl(["monerisCanadaVaultProfile", "carts", scopeId, customerId, cartName, "payments", paymentId]),
614
- verb: "POST",
615
- };
616
-
617
- export const createCategoryDefinitionRequest = {
618
- name: "createCategoryDefinitionRequest",
619
- buildUrl: name => buildUrl(["metadata", "definitions", "category", name]),
620
- verb: "POST",
621
- };
622
-
623
- export const createCategoryRequest = {
624
- name: "createCategoryRequest",
625
- buildUrl: scopeId => buildUrl(["categories", scopeId]),
626
- verb: "POST",
627
- };
628
-
629
- export const createCustomProfileRequest = {
630
- name: "createCustomProfileRequest",
631
- buildUrl: (scopeId, entityTypeName) => buildUrl(["customProfiles", scopeId, entityTypeName]),
632
- verb: "POST",
633
- };
634
-
635
- export const createCustomRoleRequest = {
636
- name: "createCustomRoleRequest",
637
- buildUrl: name => buildUrl(["roles", "custom", name]),
638
- verb: "POST",
639
- };
640
-
641
- export const createCustomerLookupTypeDefinitionRequest = {
642
- name: "createCustomerLookupTypeDefinitionRequest",
643
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "customer", lookupName]),
644
- verb: "POST",
645
- };
646
-
647
- export const createCustomerMembershipRequest = {
648
- name: "createCustomerMembershipRequest",
649
- buildUrl: scopeId => buildUrl(["membership", scopeId]),
650
- verb: "POST",
651
- };
652
-
653
- export const createCustomerRequest = {
654
- name: "createCustomerRequest",
655
- buildUrl: scopeId => buildUrl(["customers", scopeId]),
656
- verb: "POST",
657
- };
658
-
659
- export const createEntityTypeRequest = {
660
- name: "createEntityTypeRequest",
661
- buildUrl: entityTypeName => buildUrl(["metadata", "EntityType", entityTypeName]),
662
- verb: "POST",
663
- };
664
-
665
- export const createFulfillmentCarrierManifestRequest = {
666
- name: "createFulfillmentCarrierManifestRequest",
667
- buildUrl: (scopeId, fulfillmentCarrierId) =>
668
- buildUrl(["fulfillments", "carriers", scopeId, fulfillmentCarrierId, "manifests"]),
669
- verb: "POST",
670
- };
671
-
672
- export const createFulfillmentCompetitionRequest = {
673
- name: "createFulfillmentCompetitionRequest",
674
- buildUrl: scopeId => buildUrl(["fulfillments", "competitions", scopeId]),
675
- verb: "POST",
676
- };
677
-
678
- export const createFulfillmentPackageRequest = {
679
- name: "createFulfillmentPackageRequest",
680
- buildUrl: scopeId => buildUrl(["fulfillments", "packages", scopeId]),
681
- verb: "POST",
682
- };
683
-
684
- export const createFulfillmentPackageTypeRequest = {
685
- name: "createFulfillmentPackageTypeRequest",
686
- buildUrl: scopeId => buildUrl(["fulfillments", "packageTypes", scopeId]),
687
- verb: "POST",
688
- };
689
-
690
- export const createFulfillmentProviderRequest = {
691
- name: "createFulfillmentProviderRequest",
692
- buildUrl: scopeId => buildUrl(["providers", scopeId, "fulfillment"]),
693
- verb: "POST",
694
- };
695
-
696
- export const createFulfillmentSLARequest = {
697
- name: "createFulfillmentSLARequest",
698
- buildUrl: scopeId => buildUrl(["fulfillments", "SLAs", scopeId]),
699
- verb: "POST",
700
- };
701
-
702
- export const createGroupRequest = {
703
- name: "createGroupRequest",
704
- buildUrl: displayName => buildUrl(["groups", displayName]),
705
- verb: "POST",
706
- };
707
-
708
- export const createInventoryLocationRequest = {
709
- name: "createInventoryLocationRequest",
710
- buildUrl: scopeId => buildUrl(["inventoryLocations", scopeId]),
711
- verb: "POST",
712
- };
713
-
714
- export const createMediaRequest = {
715
- name: "createMediaRequest",
716
- buildUrl: (scopeId, productId) => buildUrl(["products", "media", scopeId, productId]),
717
- verb: "PUT",
718
- };
719
-
720
- export const createOrUpdateFulfillmentExceptionRequest = {
721
- name: "createOrUpdateFulfillmentExceptionRequest",
722
- buildUrl: (scopeId, fulfillmentLocationId, orderId, shipmentId, lineItemId) =>
723
- buildUrl(["fulfillments", "exceptions", scopeId, fulfillmentLocationId, orderId, shipmentId, lineItemId]),
724
- verb: "PUT",
725
- };
726
-
727
- export const createOrUpdateInventoryItemRequest = {
728
- name: "createOrUpdateInventoryItemRequest",
729
- buildUrl: (scopeId, inventoryLocationId, sku) => buildUrl(["inventoryItems", scopeId, inventoryLocationId, sku]),
730
- verb: "PUT",
731
- };
732
-
733
- export const createOrUpdatePaymentProviderStoreSettingsRequest = {
734
- name: "createOrUpdatePaymentProviderStoreSettingsRequest",
735
- buildUrl: (scopeId, providerId, storeId) =>
736
- buildUrl(["providers", scopeId, "payment", providerId, "storesSettings", storeId]),
737
- verb: "PUT",
738
- };
739
-
740
- export const createOrUpdateSegmentRequest = {
741
- name: "createOrUpdateSegmentRequest",
742
- buildUrl: () => buildUrl(["segments"]),
743
- verb: "POST",
744
- };
745
-
746
- export const createOrUpdateStoreByNumberRequest = {
747
- name: "createOrUpdateStoreByNumberRequest",
748
- buildUrl: (scopeId, number) => buildUrl(["stores", scopeId, number]),
749
- verb: "POST",
750
- };
751
-
752
- export const createOrUpdateTemplateVariableRequest = {
753
- name: "createOrUpdateTemplateVariableRequest",
754
- buildUrl: (scopeId, name) => buildUrl(["templates", scopeId, "Variables", name]),
755
- verb: "PUT",
756
- };
757
-
758
- export const createOrUpdateWarehouseByNumberRequest = {
759
- name: "createOrUpdateWarehouseByNumberRequest",
760
- buildUrl: scopeId => buildUrl(["warehouses", scopeId, "createOrUpdate"]),
761
- verb: "PUT",
762
- };
763
-
764
- export const createOrderDraftFromCartRequest = {
765
- name: "createOrderDraftFromCartRequest",
766
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "orderDraft"]),
767
- verb: "POST",
768
- };
769
-
770
- export const createOrderDraftPaymentVaultProfileRequest = {
771
- name: "createOrderDraftPaymentVaultProfileRequest",
772
- buildUrl: (scopeId, draftId, paymentId) =>
773
- buildUrl(["monerisCanadaVaultProfile", "orderdraft", scopeId, draftId, "payments", paymentId]),
774
- verb: "POST",
775
- };
776
-
777
- export const createOrderLookupTypeDefinitionRequest = {
778
- name: "createOrderLookupTypeDefinitionRequest",
779
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "order", lookupName]),
780
- verb: "POST",
781
- };
782
-
783
- export const createOrderRequest = {
784
- name: "createOrderRequest",
785
- buildUrl: () => buildUrl(["orders"]),
786
- verb: "POST",
787
- };
788
-
789
- export const createOrderReturnRequest = {
790
- name: "createOrderReturnRequest",
791
- buildUrl: (scopeId, orderNumber) => buildUrl(["orders", "returns", scopeId, orderNumber]),
792
- verb: "POST",
793
- };
794
-
795
- export const createOrderReturnsProviderRequest = {
796
- name: "createOrderReturnsProviderRequest",
797
- buildUrl: scopeId => buildUrl(["providers", scopeId, "orderReturns"]),
798
- verb: "POST",
799
- };
800
-
801
- export const createOrganizationRequest = {
802
- name: "createOrganizationRequest",
803
- buildUrl: scopeId => buildUrl(["organizations", scopeId]),
804
- verb: "POST",
805
- };
806
-
807
- export const createPaymentProviderRequest = {
808
- name: "createPaymentProviderRequest",
809
- buildUrl: scopeId => buildUrl(["providers", scopeId, "payment"]),
810
- verb: "POST",
811
- };
812
-
813
- export const createPickingMissionRequest = {
814
- name: "createPickingMissionRequest",
815
- buildUrl: scopeId => buildUrl(["pickingMissions", scopeId]),
816
- verb: "POST",
817
- };
818
-
819
- export const createPriceListRequest = {
820
- name: "createPriceListRequest",
821
- buildUrl: (scopeId, priceListId) => buildUrl(["products", scopeId, "priceLists", priceListId]),
822
- verb: "POST",
823
- };
824
-
825
- export const createProductAttributeGroupRequest = {
826
- name: "createProductAttributeGroupRequest",
827
- buildUrl: name => buildUrl(["metadata", "attributegroups", "product", name]),
828
- verb: "POST",
829
- };
830
-
831
- export const createProductAttributeRequest = {
832
- name: "createProductAttributeRequest",
833
- buildUrl: attributeName => buildUrl(["metadata", "attributes", "product", attributeName]),
834
- verb: "POST",
835
- };
836
-
837
- export const createProductDefinitionRequest = {
838
- name: "createProductDefinitionRequest",
839
- buildUrl: name => buildUrl(["metadata", "definitions", "product", name]),
840
- verb: "POST",
841
- };
842
-
843
- export const createProductLookupTypeDefinitionRequest = {
844
- name: "createProductLookupTypeDefinitionRequest",
845
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "product", lookupName]),
846
- verb: "POST",
847
- };
848
-
849
- export const createProductRequest = {
850
- name: "createProductRequest",
851
- buildUrl: scopeId => buildUrl(["products", scopeId]),
852
- verb: "POST",
853
- };
854
-
855
- export const createProfileAttributeGroupRequest = {
856
- name: "createProfileAttributeGroupRequest",
857
- buildUrl: name => buildUrl(["metadata", "attributegroups", "profile", name]),
858
- verb: "POST",
859
- };
860
-
861
- export const createPromotionRequest = {
862
- name: "createPromotionRequest",
863
- buildUrl: (scopeId, campaignId) => buildUrl(["campaigns", scopeId, campaignId, "promotions"]),
864
- verb: "POST",
865
- };
866
-
867
- export const createRecurringOrderProgramRequest = {
868
- name: "createRecurringOrderProgramRequest",
869
- buildUrl: () => buildUrl(["recurringOrders", "programs"]),
870
- verb: "POST",
871
- };
872
-
873
- export const createRelationshipsRequest = {
874
- name: "createRelationshipsRequest",
875
- buildUrl: scopeId => buildUrl(["relationships", scopeId]),
876
- verb: "POST",
877
- };
878
-
879
- export const createRelationshipsV2Request = {
880
- name: "createRelationshipsV2Request",
881
- buildUrl: scopeId => buildUrl(["relationships", "v2", scopeId]),
882
- verb: "POST",
883
- };
884
-
885
- export const createRoleRequest = {
886
- name: "createRoleRequest",
887
- buildUrl: name => buildUrl(["roles", name]),
888
- verb: "POST",
889
- };
890
-
891
- export const createRoutingProviderRequest = {
892
- name: "createRoutingProviderRequest",
893
- buildUrl: scopeId => buildUrl(["providers", scopeId, "routing"]),
894
- verb: "POST",
895
- };
896
-
897
- export const createScopeRequest = {
898
- name: "createScopeRequest",
899
- buildUrl: scopeId => buildUrl(["scopes", scopeId]),
900
- verb: "POST",
901
- };
902
-
903
- export const createSearchQueryRequest = {
904
- name: "createSearchQueryRequest",
905
- buildUrl: (scopeId, queryType, name) => buildUrl(["searchqueries", scopeId, queryType, name]),
906
- verb: "POST",
907
- };
908
-
909
- export const createSegmentRequest = {
910
- name: "createSegmentRequest",
911
- buildUrl: () => buildUrl(["segment"]),
912
- verb: "POST",
913
- };
914
-
915
- export const createSelfReferencingRelationshipsRequest = {
916
- name: "createSelfReferencingRelationshipsRequest",
917
- buildUrl: scopeId => buildUrl(["relationships", scopeId, "self"]),
918
- verb: "POST",
919
- };
920
-
921
- export const createSelfReferencingRelationshipsV2Request = {
922
- name: "createSelfReferencingRelationshipsV2Request",
923
- buildUrl: scopeId => buildUrl(["relationships", "v2", scopeId, "self"]),
924
- verb: "POST",
925
- };
926
-
927
- export const createShipmentDocumentRequest = {
928
- name: "createShipmentDocumentRequest",
929
- buildUrl: (scopeId, orderId, shipmentId, name) =>
930
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "documents", name]),
931
- verb: "POST",
932
- };
933
-
934
- export const createSsrsReportPreviewRequest = {
935
- name: "createSsrsReportPreviewRequest",
936
- buildUrl: reportId => buildUrl(["reporting", "ssrs", "reports", reportId, "previews"]),
937
- verb: "POST",
938
- };
939
-
940
- export const createStoreRequest = {
941
- name: "createStoreRequest",
942
- buildUrl: scopeId => buildUrl(["stores", scopeId]),
943
- verb: "POST",
944
- };
945
-
946
- export const createTaxCategoryRequest = {
947
- name: "createTaxCategoryRequest",
948
- buildUrl: () => buildUrl(["taxes", "taxCategory"]),
949
- verb: "POST",
950
- };
951
-
952
- export const createTaxJurisdictionGroupRequest = {
953
- name: "createTaxJurisdictionGroupRequest",
954
- buildUrl: () => buildUrl(["taxes", "jurisdictionGroups"]),
955
- verb: "POST",
956
- };
957
-
958
- export const createTaxJurisdictionRequest = {
959
- name: "createTaxJurisdictionRequest",
960
- buildUrl: () => buildUrl(["taxes", "jurisdictions"]),
961
- verb: "POST",
962
- };
963
-
964
- export const createTaxProviderRequest = {
965
- name: "createTaxProviderRequest",
966
- buildUrl: scopeId => buildUrl(["providers", scopeId, "tax"]),
967
- verb: "POST",
968
- };
969
-
970
- export const createTaxRateRequest = {
971
- name: "createTaxRateRequest",
972
- buildUrl: scopeId => buildUrl(["taxes", "rates", scopeId]),
973
- verb: "POST",
974
- };
975
-
976
- export const createTemplateRequest = {
977
- name: "createTemplateRequest",
978
- buildUrl: (scopeId, type, name) => buildUrl(["templates", scopeId, type, name]),
979
- verb: "POST",
980
- };
981
-
982
- export const createUserRequest = {
983
- name: "createUserRequest",
984
- buildUrl: userName => buildUrl(["users", userName]),
985
- verb: "POST",
986
- };
987
-
988
- export const createWarehouseRequest = {
989
- name: "createWarehouseRequest",
990
- buildUrl: scopeId => buildUrl(["warehouses", scopeId]),
991
- verb: "POST",
992
- };
993
-
994
- export const customerSignInRequest = {
995
- name: "customerSignInRequest",
996
- buildUrl: () => buildUrl(["authentication", "customer", "signin"]),
997
- verb: "POST",
998
- };
999
-
1000
- export const deactivateUserRequest = {
1001
- name: "deactivateUserRequest",
1002
- buildUrl: userName => buildUrl(["users", userName, "deactivate"]),
1003
- verb: "POST",
1004
- };
1005
-
1006
- export const deactivateUsersRequest = {
1007
- name: "deactivateUsersRequest",
1008
- buildUrl: () => buildUrl(["users", "desactivate"]),
1009
- verb: "PUT",
1010
- };
1011
-
1012
- export const decreaseInventoryQuantityRequest = {
1013
- name: "decreaseInventoryQuantityRequest",
1014
- buildUrl: (scopeId, sku, inventoryLocationId, quantity) =>
1015
- buildUrl(["inventoryItems", scopeId, "bySku", sku, "byLocation", inventoryLocationId, "decrease", quantity]),
1016
- verb: "POST",
1017
- };
1018
-
1019
- export const deleteAllScheduledTasksRequest = {
1020
- name: "deleteAllScheduledTasksRequest",
1021
- buildUrl: () => buildUrl(["tasks", "scheduled", "all"]),
1022
- verb: "DELETE",
1023
- };
1024
-
1025
- export const deleteCarrierProviderRequest = {
1026
- name: "deleteCarrierProviderRequest",
1027
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "carrier", id]),
1028
- verb: "DELETE",
1029
- };
1030
-
1031
- export const deleteCartOrderDraftRequest = {
1032
- name: "deleteCartOrderDraftRequest",
1033
- buildUrl: (scopeId, customerId, orderId) => buildUrl(["orders", scopeId, customerId, orderId, "orderDraft"]),
1034
- verb: "DELETE",
1035
- };
1036
-
1037
- export const deleteCartRequest = {
1038
- name: "deleteCartRequest",
1039
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
1040
- buildUrl(["carts", scopeId, customerId, cartName], queryParams),
1041
- verb: "DELETE",
1042
- };
1043
-
1044
- export const deleteCategoryRequest = {
1045
- name: "deleteCategoryRequest",
1046
- buildUrl: (scopeId, categoryId, queryParams) => buildUrl(["categories", scopeId, categoryId], queryParams),
1047
- verb: "DELETE",
1048
- };
1049
-
1050
- export const deleteCategoryV2Request = {
1051
- name: "deleteCategoryV2Request",
1052
- buildUrl: (scopeId, categoryId, queryParams) => buildUrl(["categories", "v2", scopeId, categoryId], queryParams),
1053
- verb: "DELETE",
1054
- };
1055
-
1056
- export const deleteCouponByCodeRequest = {
1057
- name: "deleteCouponByCodeRequest",
1058
- buildUrl: queryParams => buildUrl(["coupons", "delete", "code"], queryParams),
1059
- verb: "DELETE",
1060
- };
1061
-
1062
- export const deleteCustomProfileRequest = {
1063
- name: "deleteCustomProfileRequest",
1064
- buildUrl: (scopeId, entityTypeName, entityId) => buildUrl(["customProfiles", scopeId, entityTypeName, entityId]),
1065
- verb: "DELETE",
1066
- };
1067
-
1068
- export const deleteCustomerNoteRequest = {
1069
- name: "deleteCustomerNoteRequest",
1070
- buildUrl: (scopeId, customerId, noteId) => buildUrl(["customers", scopeId, customerId, "notes", noteId]),
1071
- verb: "DELETE",
1072
- };
1073
-
1074
- export const deleteCustomerPaymentMethodRequest = {
1075
- name: "deleteCustomerPaymentMethodRequest",
1076
- buildUrl: (scopeId, customerId, paymentProviderName, paymentMethodId) =>
1077
- buildUrl(["customers", scopeId, customerId, paymentProviderName, "paymentMethods", paymentMethodId]),
1078
- verb: "DELETE",
1079
- };
1080
-
1081
- export const deleteFulfillmentCompetitionRequest = {
1082
- name: "deleteFulfillmentCompetitionRequest",
1083
- buildUrl: (scopeId, fulfillmentCompetitionId) =>
1084
- buildUrl(["fulfillments", "competitions", scopeId, fulfillmentCompetitionId]),
1085
- verb: "DELETE",
1086
- };
1087
-
1088
- export const deleteFulfillmentExceptionRequest = {
1089
- name: "deleteFulfillmentExceptionRequest",
1090
- buildUrl: (scopeId, fulfillmentLocationId, orderId, shipmentId, lineItemId) =>
1091
- buildUrl(["fulfillments", "exceptions", scopeId, fulfillmentLocationId, orderId, shipmentId, lineItemId]),
1092
- verb: "DELETE",
1093
- };
1094
-
1095
- export const deleteFulfillmentLocationTimeSlotQuotaExceptionRequest = {
1096
- name: "deleteFulfillmentLocationTimeSlotQuotaExceptionRequest",
1097
- buildUrl: (scopeId, fulfillmentLocationId, slotId, quotaExceptionId) =>
1098
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "quotaExceptions", slotId, quotaExceptionId]),
1099
- verb: "DELETE",
1100
- };
1101
-
1102
- export const deleteFulfillmentLocationTimeSlotRequest = {
1103
- name: "deleteFulfillmentLocationTimeSlotRequest",
1104
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType, slotId) =>
1105
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots", slotId]),
1106
- verb: "DELETE",
1107
- };
1108
-
1109
- export const deleteFulfillmentLocationTimeSlotReservationRequest = {
1110
- name: "deleteFulfillmentLocationTimeSlotReservationRequest",
1111
- buildUrl: (scopeId, fulfillmentLocationId, slotReservationId, queryParams) =>
1112
- buildUrl(
1113
- ["fulfillmentLocations", scopeId, fulfillmentLocationId, "reservations", "byId", slotReservationId],
1114
- queryParams,
1115
- ),
1116
- verb: "DELETE",
1117
- };
1118
-
1119
- export const deleteFulfillmentLocationTimeSlotsRequest = {
1120
- name: "deleteFulfillmentLocationTimeSlotsRequest",
1121
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType) =>
1122
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots"]),
1123
- verb: "DELETE",
1124
- };
1125
-
1126
- export const deleteFulfillmentPackageForShipmentRequest = {
1127
- name: "deleteFulfillmentPackageForShipmentRequest",
1128
- buildUrl: (scopeId, shipmentId) => buildUrl(["fulfillments", "packages", scopeId, "byShipment", shipmentId]),
1129
- verb: "DELETE",
1130
- };
1131
-
1132
- export const deleteFulfillmentPackageRequest = {
1133
- name: "deleteFulfillmentPackageRequest",
1134
- buildUrl: (scopeId, id) => buildUrl(["fulfillments", "packages", scopeId, id]),
1135
- verb: "DELETE",
1136
- };
1137
-
1138
- export const deleteFulfillmentPackageTypeRequest = {
1139
- name: "deleteFulfillmentPackageTypeRequest",
1140
- buildUrl: (scopeId, id) => buildUrl(["fulfillments", "packageTypes", scopeId, id]),
1141
- verb: "DELETE",
1142
- };
1143
-
1144
- export const deleteFulfillmentProviderRequest = {
1145
- name: "deleteFulfillmentProviderRequest",
1146
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "fulfillment", id]),
1147
- verb: "DELETE",
1148
- };
1149
-
1150
- export const deleteGroupRequest = {
1151
- name: "deleteGroupRequest",
1152
- buildUrl: groupId => buildUrl(["groups", groupId]),
1153
- verb: "DELETE",
1154
- };
1155
-
1156
- export const deleteInventoryScheduleRequest = {
1157
- name: "deleteInventoryScheduleRequest",
1158
- buildUrl: (inventoryLocationId, scheduleId, queryParams) =>
1159
- buildUrl(["inventoryLocations", inventoryLocationId, "schedules", scheduleId], queryParams),
1160
- verb: "DELETE",
1161
- };
1162
-
1163
- export const deleteOrderNoteRequest = {
1164
- name: "deleteOrderNoteRequest",
1165
- buildUrl: (scopeId, orderId, noteId) => buildUrl(["orders", scopeId, orderId, "notes", noteId]),
1166
- verb: "DELETE",
1167
- };
1168
-
1169
- export const deleteOrderReturnNotesRequest = {
1170
- name: "deleteOrderReturnNotesRequest",
1171
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
1172
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "notes"]),
1173
- verb: "DELETE",
1174
- };
1175
-
1176
- export const deleteOrderReturnsProviderRequest = {
1177
- name: "deleteOrderReturnsProviderRequest",
1178
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "orderReturns", id]),
1179
- verb: "DELETE",
1180
- };
1181
-
1182
- export const deletePaymentProviderRequest = {
1183
- name: "deletePaymentProviderRequest",
1184
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "payment", id]),
1185
- verb: "DELETE",
1186
- };
1187
-
1188
- export const deletePriceListEntryRequest = {
1189
- name: "deletePriceListEntryRequest",
1190
- buildUrl: (scopeId, productId, priceListId, queryParams) =>
1191
- buildUrl(["products", scopeId, productId, "priceListEntries", priceListId], queryParams),
1192
- verb: "DELETE",
1193
- };
1194
-
1195
- export const deletePriceListRequest = {
1196
- name: "deletePriceListRequest",
1197
- buildUrl: (scopeId, priceListId, queryParams) =>
1198
- buildUrl(["products", scopeId, "priceLists", priceListId], queryParams),
1199
- verb: "DELETE",
1200
- };
1201
-
1202
- export const deleteProductAttributeGroupRequest = {
1203
- name: "deleteProductAttributeGroupRequest",
1204
- buildUrl: name => buildUrl(["metadata", "attributegroups", "product", name]),
1205
- verb: "DELETE",
1206
- };
1207
-
1208
- export const deleteProductAttributeRequest = {
1209
- name: "deleteProductAttributeRequest",
1210
- buildUrl: attributeName => buildUrl(["metadata", "attributes", "product", attributeName]),
1211
- verb: "DELETE",
1212
- };
1213
-
1214
- export const deleteProductByIdRequest = {
1215
- name: "deleteProductByIdRequest",
1216
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, "product", productId]),
1217
- verb: "DELETE",
1218
- };
1219
-
1220
- export const deleteProductByIdV2Request = {
1221
- name: "deleteProductByIdV2Request",
1222
- buildUrl: (scopeId, productId) => buildUrl(["products", "v2", scopeId, productId]),
1223
- verb: "DELETE",
1224
- };
1225
-
1226
- export const deleteProductDraftRequest = {
1227
- name: "deleteProductDraftRequest",
1228
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, "draft", productId]),
1229
- verb: "DELETE",
1230
- };
1231
-
1232
- export const deleteProductLookupValuesRequest = {
1233
- name: "deleteProductLookupValuesRequest",
1234
- buildUrl: (lookupName, queryParams) =>
1235
- buildUrl(["metadata", "lookups", "product", lookupName, "values"], queryParams),
1236
- verb: "DELETE",
1237
- };
1238
-
1239
- export const deleteProductSettingsEntryRequest = {
1240
- name: "deleteProductSettingsEntryRequest",
1241
- buildUrl: entry => buildUrl(["products", "settings", entry]),
1242
- verb: "DELETE",
1243
- };
1244
-
1245
- export const deleteProductsRequest = {
1246
- name: "deleteProductsRequest",
1247
- buildUrl: scopeId => buildUrl(["products", scopeId, "bulkDelete"]),
1248
- verb: "POST",
1249
- };
1250
-
1251
- export const deleteProfileAttributeGroupRequest = {
1252
- name: "deleteProfileAttributeGroupRequest",
1253
- buildUrl: name => buildUrl(["metadata", "attributegroups", "profile", name]),
1254
- verb: "DELETE",
1255
- };
1256
-
1257
- export const deletePromotionRequest = {
1258
- name: "deletePromotionRequest",
1259
- buildUrl: (scopeId, campaignId, promotionId) =>
1260
- buildUrl(["campaigns", scopeId, campaignId, "promotions", promotionId]),
1261
- verb: "DELETE",
1262
- };
1263
-
1264
- export const deleteRecurringCartLineItemsRequest = {
1265
- name: "deleteRecurringCartLineItemsRequest",
1266
- buildUrl: (scopeId, customerId, queryParams) =>
1267
- buildUrl(["recurringOrders", scopeId, "carts", customerId, "lineItems"], queryParams),
1268
- verb: "DELETE",
1269
- };
1270
-
1271
- export const deleteRecurringOrderLineItemsRequest = {
1272
- name: "deleteRecurringOrderLineItemsRequest",
1273
- buildUrl: (scopeId, customerId, queryParams) =>
1274
- buildUrl(["recurringOrders", scopeId, customerId, "lineItems"], queryParams),
1275
- verb: "DELETE",
1276
- };
1277
-
1278
- export const deleteRecurringOrderProgramRequest = {
1279
- name: "deleteRecurringOrderProgramRequest",
1280
- buildUrl: recurringOrderProgramName => buildUrl(["recurringOrders", "programs", recurringOrderProgramName]),
1281
- verb: "DELETE",
1282
- };
1283
-
1284
- export const deleteRelationshipsRequest = {
1285
- name: "deleteRelationshipsRequest",
1286
- buildUrl: (scopeId, queryParams) => buildUrl(["relationships", scopeId], queryParams),
1287
- verb: "DELETE",
1288
- };
1289
-
1290
- export const deleteRelationshipsV2Request = {
1291
- name: "deleteRelationshipsV2Request",
1292
- buildUrl: (scopeId, queryParams) => buildUrl(["relationships", "v2", scopeId], queryParams),
1293
- verb: "DELETE",
1294
- };
1295
-
1296
- export const deleteRoleRequest = {
1297
- name: "deleteRoleRequest",
1298
- buildUrl: (id, queryParams) => buildUrl(["roles", id], queryParams),
1299
- verb: "DELETE",
1300
- };
1301
-
1302
- export const deleteRoutingProviderRequest = {
1303
- name: "deleteRoutingProviderRequest",
1304
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "routing", id]),
1305
- verb: "DELETE",
1306
- };
1307
-
1308
- export const deleteScheduledTaskRequest = {
1309
- name: "deleteScheduledTaskRequest",
1310
- buildUrl: (group, name) => buildUrl(["tasks", "scheduled", group, name]),
1311
- verb: "DELETE",
1312
- };
1313
-
1314
- export const deleteScopeRequest = {
1315
- name: "deleteScopeRequest",
1316
- buildUrl: scopeId => buildUrl(["scopes", scopeId]),
1317
- verb: "DELETE",
1318
- };
1319
-
1320
- export const deleteSearchQueryRequest = {
1321
- name: "deleteSearchQueryRequest",
1322
- buildUrl: (scopeId, queryType, name) => buildUrl(["searchqueries", scopeId, queryType, name]),
1323
- verb: "DELETE",
1324
- };
1325
-
1326
- export const deleteSegmentRequest = {
1327
- name: "deleteSegmentRequest",
1328
- buildUrl: segmentId => buildUrl(["segments", segmentId]),
1329
- verb: "DELETE",
1330
- };
1331
-
1332
- export const deleteShipmentDocumentRequest = {
1333
- name: "deleteShipmentDocumentRequest",
1334
- buildUrl: (scopeId, orderId, shipmentId, name) =>
1335
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "documents", name]),
1336
- verb: "DELETE",
1337
- };
1338
-
1339
- export const deleteShipmentNoteRequest = {
1340
- name: "deleteShipmentNoteRequest",
1341
- buildUrl: (scopeId, orderId, shipmentId, noteId) =>
1342
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "notes", noteId]),
1343
- verb: "DELETE",
1344
- };
1345
-
1346
- export const deleteStoreRequest = {
1347
- name: "deleteStoreRequest",
1348
- buildUrl: (scopeId, id) => buildUrl(["stores", scopeId, id]),
1349
- verb: "DELETE",
1350
- };
1351
-
1352
- export const deleteTaskInfoRequest = {
1353
- name: "deleteTaskInfoRequest",
1354
- buildUrl: (taskId, queryParams) => buildUrl(["tasks", taskId], queryParams),
1355
- verb: "DELETE",
1356
- };
1357
-
1358
- export const deleteTaxJurisdictionGroupRequest = {
1359
- name: "deleteTaxJurisdictionGroupRequest",
1360
- buildUrl: id => buildUrl(["taxes", "jurisdictionGroups", id]),
1361
- verb: "DELETE",
1362
- };
1363
-
1364
- export const deleteTaxJurisdictionRequest = {
1365
- name: "deleteTaxJurisdictionRequest",
1366
- buildUrl: id => buildUrl(["taxes", "jurisdictions", id]),
1367
- verb: "DELETE",
1368
- };
1369
-
1370
- export const deleteTaxProviderRequest = {
1371
- name: "deleteTaxProviderRequest",
1372
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "tax", id]),
1373
- verb: "DELETE",
1374
- };
1375
-
1376
- export const deleteTaxRateRequest = {
1377
- name: "deleteTaxRateRequest",
1378
- buildUrl: (scopeId, id) => buildUrl(["taxes", "rates", scopeId, id]),
1379
- verb: "DELETE",
1380
- };
1381
-
1382
- export const deleteTemplateRequest = {
1383
- name: "deleteTemplateRequest",
1384
- buildUrl: (scopeId, type, name) => buildUrl(["templates", scopeId, type, name]),
1385
- verb: "DELETE",
1386
- };
1387
-
1388
- export const deleteTemplateVariableRequest = {
1389
- name: "deleteTemplateVariableRequest",
1390
- buildUrl: (scopeId, name) => buildUrl(["templates", scopeId, "Variables", name]),
1391
- verb: "DELETE",
1392
- };
1393
-
1394
- export const deleteUserRequest = {
1395
- name: "deleteUserRequest",
1396
- buildUrl: userName => buildUrl(["users", userName]),
1397
- verb: "DELETE",
1398
- };
1399
-
1400
- export const deleteWarehouseRequest = {
1401
- name: "deleteWarehouseRequest",
1402
- buildUrl: (scopeId, id) => buildUrl(["warehouses", scopeId, id]),
1403
- verb: "DELETE",
1404
- };
1405
-
1406
- export const disableFulfillmentSLARequest = {
1407
- name: "disableFulfillmentSLARequest",
1408
- buildUrl: () => buildUrl(["fulfillments", "SLAs", "disable"]),
1409
- verb: "POST",
1410
- };
1411
-
1412
- export const disassociateCustomerEntityRequest = {
1413
- name: "disassociateCustomerEntityRequest",
1414
- buildUrl: (customerId, scopeId, attributeName, entityId) =>
1415
- buildUrl(["customers", customerId, "customProfiles", scopeId, attributeName, entityId]),
1416
- verb: "DELETE",
1417
- };
1418
-
1419
- export const disassociateEntityRequest = {
1420
- name: "disassociateEntityRequest",
1421
- buildUrl: (scopeId, parentEntityTypeName, parentId, attributeName, entityId) =>
1422
- buildUrl(["customProfiles", scopeId, parentEntityTypeName, parentId, attributeName, entityId]),
1423
- verb: "DELETE",
1424
- };
1425
-
1426
- export const ensureTableIsReadyForReportingRequest = {
1427
- name: "ensureTableIsReadyForReportingRequest",
1428
- buildUrl: (databaseName, schemaName, tableName) =>
1429
- buildUrl(["reporting", databaseName, schemaName, tableName, "ensureIsReadyForReporting"]),
1430
- verb: "POST",
1431
- };
1432
-
1433
- export const evaluateInventoryAvailabilityRequest = {
1434
- name: "evaluateInventoryAvailabilityRequest",
1435
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId, "evaluate"]),
1436
- verb: "POST",
1437
- };
1438
-
1439
- export const exportCouponCodesRequest = {
1440
- name: "exportCouponCodesRequest",
1441
- buildUrl: promotionId => buildUrl(["promotions", promotionId, "coupons", "export"]),
1442
- verb: "POST",
1443
- };
1444
-
1445
- export const exportOrderSchemaRequest = {
1446
- name: "exportOrderSchemaRequest",
1447
- buildUrl: () => buildUrl(["integration", "orders", "schema", "export"]),
1448
- verb: "POST",
1449
- };
1450
-
1451
- export const exportProductPriceRequest = {
1452
- name: "exportProductPriceRequest",
1453
- buildUrl: scopeId => buildUrl(["dataexchange", "productprices", scopeId, "export"]),
1454
- verb: "POST",
1455
- };
1456
-
1457
- export const exportProductPricesRequest = {
1458
- name: "exportProductPricesRequest",
1459
- buildUrl: scopeId => buildUrl(["integration", "products", scopeId, "prices", "export"]),
1460
- verb: "POST",
1461
- };
1462
-
1463
- export const exportProductsRequest = {
1464
- name: "exportProductsRequest",
1465
- buildUrl: scopeId => buildUrl(["integration", "products", scopeId, "export"]),
1466
- verb: "POST",
1467
- };
1468
-
1469
- export const exportProfileSchemaRequest = {
1470
- name: "exportProfileSchemaRequest",
1471
- buildUrl: () => buildUrl(["integration", "profiles", "schema", "export"]),
1472
- verb: "POST",
1473
- };
1474
-
1475
- export const exportProfilesRequest = {
1476
- name: "exportProfilesRequest",
1477
- buildUrl: () => buildUrl(["integration", "profiles", "export"]),
1478
- verb: "POST",
1479
- };
1480
-
1481
- export const exportPromoCodesRequest = {
1482
- name: "exportPromoCodesRequest",
1483
- buildUrl: promotionId => buildUrl(["dataexchange", "promotions", promotionId, "promoCodes", "export"]),
1484
- verb: "POST",
1485
- };
1486
-
1487
- export const exportSsrsReportRequest = {
1488
- name: "exportSsrsReportRequest",
1489
- buildUrl: reportId => buildUrl(["reporting", "ssrs", "reports", reportId, "export"]),
1490
- verb: "POST",
1491
- };
1492
-
1493
- export const extractCustomerInformationForIndexingRequest = {
1494
- name: "extractCustomerInformationForIndexingRequest",
1495
- buildUrl: () => buildUrl(["customers", "extractForIndexing"]),
1496
- verb: "POST",
1497
- };
1498
-
1499
- export const extractProductInformationForIndexingRequest = {
1500
- name: "extractProductInformationForIndexingRequest",
1501
- buildUrl: scopeId => buildUrl(["products", scopeId, "extractForIndexing"]),
1502
- verb: "POST",
1503
- };
1504
-
1505
- export const extractStoreInformationForIndexingRequest = {
1506
- name: "extractStoreInformationForIndexingRequest",
1507
- buildUrl: () => buildUrl(["stores", "extractForIndexing"]),
1508
- verb: "POST",
1509
- };
1510
-
1511
- export const federationSignoutReplyRequest = {
1512
- name: "federationSignoutReplyRequest",
1513
- buildUrl: queryParams => buildUrl(["authentication", "fedsignoutreply"], queryParams),
1514
- verb: "GET",
1515
- };
1516
-
1517
- export const findCalculatedFulfillmentMethodsRequest = {
1518
- name: "findCalculatedFulfillmentMethodsRequest",
1519
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["fulfillmentMethods", scopeId, customerId, cartName]),
1520
- verb: "POST",
1521
- };
1522
-
1523
- export const findCampaignsRequest = {
1524
- name: "findCampaignsRequest",
1525
- buildUrl: scopeId => buildUrl(["campaigns", scopeId, "find"]),
1526
- verb: "POST",
1527
- };
1528
-
1529
- export const findCartPaymentMethodsRequest = {
1530
- name: "findCartPaymentMethodsRequest",
1531
- buildUrl: (scopeId, customerId, cartName, paymentProviderName) =>
1532
- buildUrl(["carts", scopeId, customerId, cartName, paymentProviderName, "paymentMethods"]),
1533
- verb: "POST",
1534
- };
1535
-
1536
- export const findCategoryTreeNodesRequest = {
1537
- name: "findCategoryTreeNodesRequest",
1538
- buildUrl: (scopeId, searchTerms, queryParams) =>
1539
- buildUrl(["categories", scopeId, "treeNodes", searchTerms], queryParams),
1540
- verb: "GET",
1541
- };
1542
-
1543
- export const findCustomersRequest = {
1544
- name: "findCustomersRequest",
1545
- buildUrl: scopeId => buildUrl(["customers", scopeId, "find"]),
1546
- verb: "POST",
1547
- };
1548
-
1549
- export const findFulfillmentCompetitionsCountRequest = {
1550
- name: "findFulfillmentCompetitionsCountRequest",
1551
- buildUrl: scopeId => buildUrl(["fulfillments", "competitions", scopeId, "count"]),
1552
- verb: "POST",
1553
- };
1554
-
1555
- export const findFulfillmentCompetitionsRequest = {
1556
- name: "findFulfillmentCompetitionsRequest",
1557
- buildUrl: scopeId => buildUrl(["fulfillments", "competitions", scopeId, "find"]),
1558
- verb: "POST",
1559
- };
1560
-
1561
- export const findFulfillmentEventsRequest = {
1562
- name: "findFulfillmentEventsRequest",
1563
- buildUrl: () => buildUrl(["fulfillments", "events", "find"]),
1564
- verb: "POST",
1565
- };
1566
-
1567
- export const findFulfillmentLocationsRequest = {
1568
- name: "findFulfillmentLocationsRequest",
1569
- buildUrl: scopeId => buildUrl(["fulfillmentLocations", scopeId, "find"]),
1570
- verb: "POST",
1571
- };
1572
-
1573
- export const findFulfillmentManifestPackagesRequest = {
1574
- name: "findFulfillmentManifestPackagesRequest",
1575
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillments", "packages", scopeId, "findmanifest"], queryParams),
1576
- verb: "GET",
1577
- };
1578
-
1579
- export const findFulfillmentOrdersRequest = {
1580
- name: "findFulfillmentOrdersRequest",
1581
- buildUrl: scopeId => buildUrl(["fulfillments", "orders", scopeId, "find"]),
1582
- verb: "POST",
1583
- };
1584
-
1585
- export const findFulfillmentPackageTypesRequest = {
1586
- name: "findFulfillmentPackageTypesRequest",
1587
- buildUrl: scopeId => buildUrl(["fulfillments", "packageTypes", scopeId, "find"]),
1588
- verb: "POST",
1589
- };
1590
-
1591
- export const findFulfillmentPackagesRequest = {
1592
- name: "findFulfillmentPackagesRequest",
1593
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillments", "packages", scopeId, "find"], queryParams),
1594
- verb: "GET",
1595
- };
1596
-
1597
- export const findFulfillmentSLARequest = {
1598
- name: "findFulfillmentSLARequest",
1599
- buildUrl: scopeId => buildUrl(["fulfillments", "SLAs", scopeId, "find"]),
1600
- verb: "POST",
1601
- };
1602
-
1603
- export const findGroupsRequest = {
1604
- name: "findGroupsRequest",
1605
- buildUrl: () => buildUrl(["groups", "find"]),
1606
- verb: "POST",
1607
- };
1608
-
1609
- export const findInventoryItemStatusByLocationAndSkusRequest = {
1610
- name: "findInventoryItemStatusByLocationAndSkusRequest",
1611
- buildUrl: (scopeId, inventoryLocationId) =>
1612
- buildUrl(["inventoryItems", scopeId, "byLocation", inventoryLocationId, "bySkus", "status"]),
1613
- verb: "POST",
1614
- };
1615
-
1616
- export const findInventoryItemStatusBySkuAndLocationRequest = {
1617
- name: "findInventoryItemStatusBySkuAndLocationRequest",
1618
- buildUrl: (scopeId, sku, inventoryLocationId) =>
1619
- buildUrl(["inventoryItems", scopeId, "bySku", sku, "byLocation", inventoryLocationId, "status"]),
1620
- verb: "POST",
1621
- };
1622
-
1623
- export const findInventoryItemsRequest = {
1624
- name: "findInventoryItemsRequest",
1625
- buildUrl: scopeId => buildUrl(["inventoryItems", scopeId, "find"]),
1626
- verb: "POST",
1627
- };
1628
-
1629
- export const findInventoryItemsStatusByScopeAndSkuRequest = {
1630
- name: "findInventoryItemsStatusByScopeAndSkuRequest",
1631
- buildUrl: (scopeId, sku) => buildUrl(["inventoryItems", scopeId, "bySku", sku, "status"]),
1632
- verb: "POST",
1633
- };
1634
-
1635
- export const findInventoryItemsStatusByScopeAndSkusRequest = {
1636
- name: "findInventoryItemsStatusByScopeAndSkusRequest",
1637
- buildUrl: scopeId => buildUrl(["inventoryItems", scopeId, "bySkus", "status"]),
1638
- verb: "POST",
1639
- };
1640
-
1641
- export const findNearestStoresRequest = {
1642
- name: "findNearestStoresRequest",
1643
- buildUrl: (scopeId, searchTerms, queryParams) => buildUrl(["stores", scopeId, "near", searchTerms], queryParams),
1644
- verb: "GET",
1645
- };
1646
-
1647
- export const findOrderReturnsByCustomerIdsRequest = {
1648
- name: "findOrderReturnsByCustomerIdsRequest",
1649
- buildUrl: scopeId => buildUrl(["orders", "returns", scopeId, "find", "byCustomerIds"]),
1650
- verb: "POST",
1651
- };
1652
-
1653
- export const findOrdersCountRequest = {
1654
- name: "findOrdersCountRequest",
1655
- buildUrl: scopeId => buildUrl(["orders", scopeId, "count"]),
1656
- verb: "POST",
1657
- };
1658
-
1659
- export const findOrdersRequest = {
1660
- name: "findOrdersRequest",
1661
- buildUrl: scopeId => buildUrl(["orders", scopeId, "find"]),
1662
- verb: "POST",
1663
- };
1664
-
1665
- export const findOrganizationsRequest = {
1666
- name: "findOrganizationsRequest",
1667
- buildUrl: scopeId => buildUrl(["organizations", scopeId, "find"]),
1668
- verb: "POST",
1669
- };
1670
-
1671
- export const findPaymentProviderStoresSettingsRequest = {
1672
- name: "findPaymentProviderStoresSettingsRequest",
1673
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "payment", id, "storesSettings", "find"]),
1674
- verb: "POST",
1675
- };
1676
-
1677
- export const findPriceListsRequest = {
1678
- name: "findPriceListsRequest",
1679
- buildUrl: (scopeId, queryParams) => buildUrl(["products", scopeId, "priceLists", "find"], queryParams),
1680
- verb: "GET",
1681
- };
1682
-
1683
- export const findProductAttributeGroupsRequest = {
1684
- name: "findProductAttributeGroupsRequest",
1685
- buildUrl: () => buildUrl(["metadata", "attributegroups", "product", "find"]),
1686
- verb: "POST",
1687
- };
1688
-
1689
- export const findProductPricesRequest = {
1690
- name: "findProductPricesRequest",
1691
- buildUrl: scopeId => buildUrl(["products", scopeId, "productPrices"]),
1692
- verb: "POST",
1693
- };
1694
-
1695
- export const findProfileInstancesRequest = {
1696
- name: "findProfileInstancesRequest",
1697
- buildUrl: (scopeId, entityTypeName) => buildUrl(["customProfiles", scopeId, entityTypeName, "find"]),
1698
- verb: "POST",
1699
- };
1700
-
1701
- export const findPromoCodesRequest = {
1702
- name: "findPromoCodesRequest",
1703
- buildUrl: (scopeId, promotionId) => buildUrl(["promotions", scopeId, promotionId, "promoCodes"]),
1704
- verb: "POST",
1705
- };
1706
-
1707
- export const findRecurringOrderLineItemsRequest = {
1708
- name: "findRecurringOrderLineItemsRequest",
1709
- buildUrl: scopeId => buildUrl(["recurringOrders", scopeId, "lineItems", "find"]),
1710
- verb: "POST",
1711
- };
1712
-
1713
- export const findSearchQueriesRequest = {
1714
- name: "findSearchQueriesRequest",
1715
- buildUrl: scopeId => buildUrl(["searchqueries", scopeId, "find"]),
1716
- verb: "POST",
1717
- };
1718
-
1719
- export const findSegmentsRequest = {
1720
- name: "findSegmentsRequest",
1721
- buildUrl: () => buildUrl(["segments", "find"]),
1722
- verb: "POST",
1723
- };
1724
-
1725
- export const findShipmentDocumentsRequest = {
1726
- name: "findShipmentDocumentsRequest",
1727
- buildUrl: scopeId => buildUrl(["orders", scopeId, "shipments", "documents", "find"]),
1728
- verb: "POST",
1729
- };
1730
-
1731
- export const findShipmentDocumentsSummariesRequest = {
1732
- name: "findShipmentDocumentsSummariesRequest",
1733
- buildUrl: scopeId => buildUrl(["orders", scopeId, "shipments", "documents", "summaries", "find"]),
1734
- verb: "POST",
1735
- };
1736
-
1737
- export const findStoresRequest = {
1738
- name: "findStoresRequest",
1739
- buildUrl: scopeId => buildUrl(["stores", scopeId, "find"]),
1740
- verb: "POST",
1741
- };
1742
-
1743
- export const findUsersByNameRequest = {
1744
- name: "findUsersByNameRequest",
1745
- buildUrl: () => buildUrl(["users", "find"]),
1746
- verb: "POST",
1747
- };
1748
-
1749
- export const findUtcOffsetForTimeZoneRequest = {
1750
- name: "findUtcOffsetForTimeZoneRequest",
1751
- buildUrl: () => buildUrl(["timezones", "convert"]),
1752
- verb: "POST",
1753
- };
1754
-
1755
- export const findWarehousesRequest = {
1756
- name: "findWarehousesRequest",
1757
- buildUrl: scopeId => buildUrl(["warehouses", scopeId, "find"]),
1758
- verb: "POST",
1759
- };
1760
-
1761
- export const forceChangeUserPasswordRequest = {
1762
- name: "forceChangeUserPasswordRequest",
1763
- buildUrl: userName => buildUrl(["users", userName, "forceChangePassword"]),
1764
- verb: "POST",
1765
- };
1766
-
1767
- export const generateOrderReturnDocumentsRequest = {
1768
- name: "generateOrderReturnDocumentsRequest",
1769
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
1770
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "documents"]),
1771
- verb: "POST",
1772
- };
1773
-
1774
- export const generatePromoCodesRequest = {
1775
- name: "generatePromoCodesRequest",
1776
- buildUrl: (scopeId, promotionId) => buildUrl(["promotions", scopeId, promotionId, "promoCodes", "generate"]),
1777
- verb: "POST",
1778
- };
1779
-
1780
- export const geolocaliseAddressRequest = {
1781
- name: "geolocaliseAddressRequest",
1782
- buildUrl: scopeId => buildUrl(["addresses", scopeId, "geolocalise"]),
1783
- verb: "POST",
1784
- };
1785
-
1786
- export const getAddressRequest = {
1787
- name: "getAddressRequest",
1788
- buildUrl: addressId => buildUrl(["addresses", addressId]),
1789
- verb: "GET",
1790
- };
1791
-
1792
- export const getAddressesByIdsRequest = {
1793
- name: "getAddressesByIdsRequest",
1794
- buildUrl: ids => buildUrl(["addresses", "byIds", ids]),
1795
- verb: "GET",
1796
- };
1797
-
1798
- export const getAllApplicationsRequest = {
1799
- name: "getAllApplicationsRequest",
1800
- buildUrl: () => buildUrl(["applications"]),
1801
- verb: "GET",
1802
- };
1803
-
1804
- export const getAllCulturesRequest = {
1805
- name: "getAllCulturesRequest",
1806
- buildUrl: () => buildUrl(["cultures", "all"]),
1807
- verb: "GET",
1808
- };
1809
-
1810
- export const getAllScheduledTasksRequest = {
1811
- name: "getAllScheduledTasksRequest",
1812
- buildUrl: () => buildUrl(["tasks", "scheduled", "all"]),
1813
- verb: "GET",
1814
- };
1815
-
1816
- export const getApplicationModules = {
1817
- name: "getApplicationModules",
1818
- buildUrl: applicationName => buildUrl(["modules", "byApplicationName", applicationName]),
1819
- verb: "GET",
1820
- };
1821
-
1822
- export const getAssociatedScopesRequest = {
1823
- name: "getAssociatedScopesRequest",
1824
- buildUrl: (scopeId, entityTypeName, entityId) =>
1825
- buildUrl(["customProfiles", scopeId, entityTypeName, entityId, "scopes"]),
1826
- verb: "GET",
1827
- };
1828
-
1829
- export const getAuthenticationConfiguration = {
1830
- name: "getAuthenticationConfiguration",
1831
- buildUrl: () => buildUrl(["authentication", "configuration"]),
1832
- verb: "GET",
1833
- };
1834
-
1835
- export const getAuthenticationStatusRequest = {
1836
- name: "getAuthenticationStatusRequest",
1837
- buildUrl: () => buildUrl(["authentication", "status"]),
1838
- verb: "GET",
1839
- };
1840
-
1841
- export const getAuthorizedApplicationsRequest = {
1842
- name: "getAuthorizedApplicationsRequest",
1843
- buildUrl: () => buildUrl(["my", "applications"]),
1844
- verb: "GET",
1845
- };
1846
-
1847
- export const getAvailableDomainsRequest = {
1848
- name: "getAvailableDomainsRequest",
1849
- buildUrl: () => buildUrl(["users", "domains"]),
1850
- verb: "GET",
1851
- };
1852
-
1853
- export const getAvailableFulfillmentMethodsByScopeRequest = {
1854
- name: "getAvailableFulfillmentMethodsByScopeRequest",
1855
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillmentMethods", scopeId], queryParams),
1856
- verb: "GET",
1857
- };
1858
-
1859
- export const getAvailableTaxProvidersRequest = {
1860
- name: "getAvailableTaxProvidersRequest",
1861
- buildUrl: queryParams => buildUrl(["orders", "availableTaxProviders"], queryParams),
1862
- verb: "GET",
1863
- };
1864
-
1865
- export const getCacheStatusRequest = {
1866
- name: "getCacheStatusRequest",
1867
- buildUrl: queryParams => buildUrl(["diagnostic", "caches"], queryParams),
1868
- verb: "GET",
1869
- };
1870
-
1871
- export const getCampaignPromotionsRequest = {
1872
- name: "getCampaignPromotionsRequest",
1873
- buildUrl: (scopeId, campaignId, queryParams) =>
1874
- buildUrl(["campaigns", scopeId, campaignId, "promotions"], queryParams),
1875
- verb: "GET",
1876
- };
1877
-
1878
- export const getCampaignRequest = {
1879
- name: "getCampaignRequest",
1880
- buildUrl: (scopeId, campaignId, queryParams) => buildUrl(["campaigns", scopeId, campaignId], queryParams),
1881
- verb: "GET",
1882
- };
1883
-
1884
- export const getCampaignsRequest = {
1885
- name: "getCampaignsRequest",
1886
- buildUrl: (scopeId, campaignIds) => buildUrl(["campaigns", scopeId, "byIds", campaignIds]),
1887
- verb: "GET",
1888
- };
1889
-
1890
- export const getCarrierProviderByIdRequest = {
1891
- name: "getCarrierProviderByIdRequest",
1892
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "carrier", id]),
1893
- verb: "GET",
1894
- };
1895
-
1896
- export const getCarrierProvidersMetadataRequest = {
1897
- name: "getCarrierProvidersMetadataRequest",
1898
- buildUrl: queryParams => buildUrl(["providers", "carrier", "metadata"], queryParams),
1899
- verb: "GET",
1900
- };
1901
-
1902
- export const getCarrierProvidersRequest = {
1903
- name: "getCarrierProvidersRequest",
1904
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "carrier"], queryParams),
1905
- verb: "GET",
1906
- };
1907
-
1908
- export const getCartRequest = {
1909
- name: "getCartRequest",
1910
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
1911
- buildUrl(["carts", scopeId, customerId, cartName], queryParams),
1912
- verb: "GET",
1913
- };
1914
-
1915
- export const getCartStatesRequest = {
1916
- name: "getCartStatesRequest",
1917
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
1918
- buildUrl(["carts", scopeId, customerId, cartName, "states"], queryParams),
1919
- verb: "GET",
1920
- };
1921
-
1922
- export const getCartSummaryRequest = {
1923
- name: "getCartSummaryRequest",
1924
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
1925
- buildUrl(["carts", scopeId, customerId, cartName, "Summary"], queryParams),
1926
- verb: "GET",
1927
- };
1928
-
1929
- export const getCartsByCustomerIdRequest = {
1930
- name: "getCartsByCustomerIdRequest",
1931
- buildUrl: (scopeId, customerId, queryParams) => buildUrl(["carts", scopeId, customerId], queryParams),
1932
- verb: "GET",
1933
- };
1934
-
1935
- export const getCatalogChildrenIdsRequest = {
1936
- name: "getCatalogChildrenIdsRequest",
1937
- buildUrl: (catalogId, queryParams) => buildUrl(["catalogs", catalogId, "children"], queryParams),
1938
- verb: "GET",
1939
- };
1940
-
1941
- export const getCatalogRequest = {
1942
- name: "getCatalogRequest",
1943
- buildUrl: (catalogId, queryParams) => buildUrl(["catalogs", catalogId], queryParams),
1944
- verb: "GET",
1945
- };
1946
-
1947
- export const getCategoriesContainingProductsByStatusRequest = {
1948
- name: "getCategoriesContainingProductsByStatusRequest",
1949
- buildUrl: (scopeId, queryParams) => buildUrl(["categories", scopeId, "containingProducts"], queryParams),
1950
- verb: "GET",
1951
- };
1952
-
1953
- export const getCategoriesRequest = {
1954
- name: "getCategoriesRequest",
1955
- buildUrl: (scopeId, queryParams) => buildUrl(["categories", scopeId], queryParams),
1956
- verb: "GET",
1957
- };
1958
-
1959
- export const getCategoriesV2Request = {
1960
- name: "getCategoriesV2Request",
1961
- buildUrl: (scopeId, queryParams) => buildUrl(["categories", "v2", scopeId], queryParams),
1962
- verb: "GET",
1963
- };
1964
-
1965
- export const getCategoryChildrenRequest = {
1966
- name: "getCategoryChildrenRequest",
1967
- buildUrl: (scopeId, categoryId, queryParams) =>
1968
- buildUrl(["categories", scopeId, categoryId, "children"], queryParams),
1969
- verb: "GET",
1970
- };
1971
-
1972
- export const getCategoryChildrenV2Request = {
1973
- name: "getCategoryChildrenV2Request",
1974
- buildUrl: (scopeId, categoryId, queryParams) =>
1975
- buildUrl(["categories", "v2", scopeId, categoryId, "children"], queryParams),
1976
- verb: "GET",
1977
- };
1978
-
1979
- export const getCategoryRelationshipsRequest = {
1980
- name: "getCategoryRelationshipsRequest",
1981
- buildUrl: (scopeId, categoryId, queryParams) =>
1982
- buildUrl(["categories", scopeId, categoryId, "relationships"], queryParams),
1983
- verb: "GET",
1984
- };
1985
-
1986
- export const getCategoryRelationshipsV2Request = {
1987
- name: "getCategoryRelationshipsV2Request",
1988
- buildUrl: (scopeId, categoryId, queryParams) =>
1989
- buildUrl(["categories", "v2", scopeId, categoryId, "relationships"], queryParams),
1990
- verb: "GET",
1991
- };
1992
-
1993
- export const getCategoryRequest = {
1994
- name: "getCategoryRequest",
1995
- buildUrl: (scopeId, categoryId, queryParams) => buildUrl(["categories", scopeId, categoryId], queryParams),
1996
- verb: "GET",
1997
- };
1998
-
1999
- export const getCategoryTreeExistingItemByStateRequest = {
2000
- name: "getCategoryTreeExistingItemByStateRequest",
2001
- buildUrl: (scopeId, queryParams) => buildUrl(["categories", scopeId, "existing"], queryParams),
2002
- verb: "GET",
2003
- };
2004
-
2005
- export const getCategoryTreeNodesForPathRequest = {
2006
- name: "getCategoryTreeNodesForPathRequest",
2007
- buildUrl: (scopeId, startId, endId, queryParams) =>
2008
- buildUrl(["categories", scopeId, "treeNodes", startId, endId], queryParams),
2009
- verb: "GET",
2010
- };
2011
-
2012
- export const getCategoryTreeNodesRequest = {
2013
- name: "getCategoryTreeNodesRequest",
2014
- buildUrl: (scopeId, categoryId, queryParams) =>
2015
- buildUrl(["categories", scopeId, categoryId, "treeNodes"], queryParams),
2016
- verb: "GET",
2017
- };
2018
-
2019
- export const getCategoryTreeNodesV2Request = {
2020
- name: "getCategoryTreeNodesV2Request",
2021
- buildUrl: (scopeId, categoryId, queryParams) =>
2022
- buildUrl(["categories", "v2", scopeId, categoryId, "treeNodes"], queryParams),
2023
- verb: "GET",
2024
- };
2025
-
2026
- export const getCategoryV2Request = {
2027
- name: "getCategoryV2Request",
2028
- buildUrl: (scopeId, categoryId, queryParams) => buildUrl(["categories", "v2", scopeId, categoryId], queryParams),
2029
- verb: "GET",
2030
- };
2031
-
2032
- export const getClosestCatalogLanguageRequest = {
2033
- name: "getClosestCatalogLanguageRequest",
2034
- buildUrl: (catalogId, language) => buildUrl(["catalogs", "closestlanguage", catalogId, language]),
2035
- verb: "GET",
2036
- };
2037
-
2038
- export const getCountShipmentFulfillmentInfosRequest = {
2039
- name: "getCountShipmentFulfillmentInfosRequest",
2040
- buildUrl: (scopeId, queryParams) => buildUrl(["shipmentFulfillmentInfos", scopeId, "count"], queryParams),
2041
- verb: "GET",
2042
- };
2043
-
2044
- export const getCountriesRequest = {
2045
- name: "getCountriesRequest",
2046
- buildUrl: queryParams => buildUrl(["countries"], queryParams),
2047
- verb: "GET",
2048
- };
2049
-
2050
- export const getCountryRequest = {
2051
- name: "getCountryRequest",
2052
- buildUrl: (countryIsoCode, queryParams) => buildUrl(["countries", countryIsoCode], queryParams),
2053
- verb: "GET",
2054
- };
2055
-
2056
- export const getCouponRequest = {
2057
- name: "getCouponRequest",
2058
- buildUrl: couponCode => buildUrl(["coupons", couponCode]),
2059
- verb: "GET",
2060
- };
2061
-
2062
- export const getCouponsRequest = {
2063
- name: "getCouponsRequest",
2064
- buildUrl: customerId => buildUrl(["coupons", "validates", customerId]),
2065
- verb: "POST",
2066
- };
2067
-
2068
- export const getCurrenciesRequest = {
2069
- name: "getCurrenciesRequest",
2070
- buildUrl: queryParams => buildUrl(["metadata", "currencies"], queryParams),
2071
- verb: "GET",
2072
- };
2073
-
2074
- export const getCustomRolesRequest = {
2075
- name: "getCustomRolesRequest",
2076
- buildUrl: queryParams => buildUrl(["roles", "custom"], queryParams),
2077
- verb: "GET",
2078
- };
2079
-
2080
- export const getCustomerAddressRequest = {
2081
- name: "getCustomerAddressRequest",
2082
- buildUrl: (customerId, addressId) => buildUrl(["addresses", "customer", customerId, addressId]),
2083
- verb: "GET",
2084
- };
2085
-
2086
- export const getCustomerAddressesRequest = {
2087
- name: "getCustomerAddressesRequest",
2088
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "addresses"]),
2089
- verb: "GET",
2090
- };
2091
-
2092
- export const getCustomerByUsernameRequest = {
2093
- name: "getCustomerByUsernameRequest",
2094
- buildUrl: (scopeId, username, queryParams) => buildUrl(["customers", scopeId, "byUsername", username], queryParams),
2095
- verb: "GET",
2096
- };
2097
-
2098
- export const getCustomerDefinitionRequest = {
2099
- name: "getCustomerDefinitionRequest",
2100
- buildUrl: (name, queryParams) => buildUrl(["metadata", "definitions", "customer", name], queryParams),
2101
- verb: "GET",
2102
- };
2103
-
2104
- export const getCustomerDefinitionsRequest = {
2105
- name: "getCustomerDefinitionsRequest",
2106
- buildUrl: queryParams => buildUrl(["metadata", "definitions", "customer"], queryParams),
2107
- verb: "GET",
2108
- };
2109
-
2110
- export const getCustomerFromPasswordTicketRequest = {
2111
- name: "getCustomerFromPasswordTicketRequest",
2112
- buildUrl: queryParams => buildUrl(["customers", "byTicket"], queryParams),
2113
- verb: "GET",
2114
- };
2115
-
2116
- export const getCustomerLastOrderRequest = {
2117
- name: "getCustomerLastOrderRequest",
2118
- buildUrl: (scopeId, customerId) => buildUrl(["orders", scopeId, customerId, "lastOrder"]),
2119
- verb: "GET",
2120
- };
2121
-
2122
- export const getCustomerLookupRequest = {
2123
- name: "getCustomerLookupRequest",
2124
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "customer", lookupName]),
2125
- verb: "GET",
2126
- };
2127
-
2128
- export const getCustomerLookupsRequest = {
2129
- name: "getCustomerLookupsRequest",
2130
- buildUrl: () => buildUrl(["metadata", "lookups", "customer"]),
2131
- verb: "GET",
2132
- };
2133
-
2134
- export const getCustomerNotesRequest = {
2135
- name: "getCustomerNotesRequest",
2136
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "notes"]),
2137
- verb: "GET",
2138
- };
2139
-
2140
- export const getCustomerOrderHistoryRequest = {
2141
- name: "getCustomerOrderHistoryRequest",
2142
- buildUrl: (scopeId, customerId, queryParams) => buildUrl(["customers", scopeId, customerId, "orders"], queryParams),
2143
- verb: "GET",
2144
- };
2145
-
2146
- export const getCustomerOrderedProductsRequest = {
2147
- name: "getCustomerOrderedProductsRequest",
2148
- buildUrl: (scopeId, customerId, queryParams) =>
2149
- buildUrl(["orders", scopeId, customerId, "orderedProducts"], queryParams),
2150
- verb: "GET",
2151
- };
2152
-
2153
- export const getCustomerOrganizationsRequest = {
2154
- name: "getCustomerOrganizationsRequest",
2155
- buildUrl: (scopeId, customerId, queryParams) =>
2156
- buildUrl(["customers", scopeId, customerId, "organizations"], queryParams),
2157
- verb: "GET",
2158
- };
2159
-
2160
- export const getCustomerPaymentMethodsRequest = {
2161
- name: "getCustomerPaymentMethodsRequest",
2162
- buildUrl: (scopeId, customerId, paymentProviderName) =>
2163
- buildUrl(["customers", scopeId, customerId, paymentProviderName, "paymentMethods"]),
2164
- verb: "GET",
2165
- };
2166
-
2167
- export const getCustomerPaymentProfileRequest = {
2168
- name: "getCustomerPaymentProfileRequest",
2169
- buildUrl: (scopeId, customerId, paymentProviderName) =>
2170
- buildUrl(["customers", scopeId, customerId, paymentProviderName, "paymentProfile"]),
2171
- verb: "GET",
2172
- };
2173
-
2174
- export const getCustomerPaymentProfilesRequest = {
2175
- name: "getCustomerPaymentProfilesRequest",
2176
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "paymentProfiles"]),
2177
- verb: "GET",
2178
- };
2179
-
2180
- export const getCustomerRequest = {
2181
- name: "getCustomerRequest",
2182
- buildUrl: (scopeId, customerId, queryParams) => buildUrl(["customers", scopeId, customerId], queryParams),
2183
- verb: "GET",
2184
- };
2185
-
2186
- export const getCustomerStoresRequest = {
2187
- name: "getCustomerStoresRequest",
2188
- buildUrl: (scopeId, customerId, queryParams) => buildUrl(["customers", scopeId, customerId, "stores"], queryParams),
2189
- verb: "GET",
2190
- };
2191
-
2192
- export const getCustomersByOrganizationNameRequest = {
2193
- name: "getCustomersByOrganizationNameRequest",
2194
- buildUrl: (scopeId, name, queryParams) =>
2195
- buildUrl(["organizations", scopeId, "byName", name, "customers"], queryParams),
2196
- verb: "GET",
2197
- };
2198
-
2199
- export const getCustomersByOrganizationRequest = {
2200
- name: "getCustomersByOrganizationRequest",
2201
- buildUrl: (scopeId, organizationId, queryParams) =>
2202
- buildUrl(["organizations", scopeId, organizationId, "customers"], queryParams),
2203
- verb: "GET",
2204
- };
2205
-
2206
- export const getDeliveryFulfillmentLocationsByScopeRequest = {
2207
- name: "getDeliveryFulfillmentLocationsByScopeRequest",
2208
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillmentLocations", scopeId, "delivery"], queryParams),
2209
- verb: "GET",
2210
- };
2211
-
2212
- export const getDirectAuthorizationsRequest = {
2213
- name: "getDirectAuthorizationsRequest",
2214
- buildUrl: objectsIds => buildUrl(["authorizations", "direct", objectsIds]),
2215
- verb: "POST",
2216
- };
2217
-
2218
- export const getEffectiveAuthorizationsRequest = {
2219
- name: "getEffectiveAuthorizationsRequest",
2220
- buildUrl: () => buildUrl(["authorizations", "GetEffectiveAuthorizations"]),
2221
- verb: "POST",
2222
- };
2223
-
2224
- export const getEffectivePriceEntryInfoRequest = {
2225
- name: "getEffectivePriceEntryInfoRequest",
2226
- buildUrl: (scopeId, productId, queryParams) =>
2227
- buildUrl(["products", scopeId, productId, "effectivePriceEntryInfo"], queryParams),
2228
- verb: "GET",
2229
- };
2230
-
2231
- export const getFulfillmentAvailabilityByScopeIdRequest = {
2232
- name: "getFulfillmentAvailabilityByScopeIdRequest",
2233
- buildUrl: scopeId => buildUrl(["fulfillmentLocations", scopeId, "availability"]),
2234
- verb: "POST",
2235
- };
2236
-
2237
- export const getFulfillmentAvailabilityRequest = {
2238
- name: "getFulfillmentAvailabilityRequest",
2239
- buildUrl: scopeId => buildUrl(["fulfillmentLocations", scopeId, "availabilty"]),
2240
- verb: "POST",
2241
- };
2242
-
2243
- export const getFulfillmentCarrierDocumentsRequest = {
2244
- name: "getFulfillmentCarrierDocumentsRequest",
2245
- buildUrl: (scopeId, fulfillmentCarrierId) =>
2246
- buildUrl(["fulfillments", "carriers", scopeId, fulfillmentCarrierId, "quotes", "documents"]),
2247
- verb: "POST",
2248
- };
2249
-
2250
- export const getFulfillmentCarrierQuotesRequest = {
2251
- name: "getFulfillmentCarrierQuotesRequest",
2252
- buildUrl: (scopeId, fulfillmentCarrierId) =>
2253
- buildUrl(["fulfillments", "carriers", scopeId, fulfillmentCarrierId, "quotes"]),
2254
- verb: "POST",
2255
- };
2256
-
2257
- export const getFulfillmentCompetitionRequest = {
2258
- name: "getFulfillmentCompetitionRequest",
2259
- buildUrl: (scopeId, fulfillmentCompetitionId) =>
2260
- buildUrl(["fulfillments", "competitions", scopeId, fulfillmentCompetitionId]),
2261
- verb: "GET",
2262
- };
2263
-
2264
- export const getFulfillmentExceptionsRequest = {
2265
- name: "getFulfillmentExceptionsRequest",
2266
- buildUrl: (scopeId, fulfillmentLocationId, orderId) =>
2267
- buildUrl(["fulfillments", "exceptions", scopeId, fulfillmentLocationId, orderId]),
2268
- verb: "GET",
2269
- };
2270
-
2271
- export const getFulfillmentLocationAverageMetricsRequest = {
2272
- name: "getFulfillmentLocationAverageMetricsRequest",
2273
- buildUrl: (scopeId, fulfillmentLocationId, queryParams) =>
2274
- buildUrl(["fulfillments", "metrics", "productivity", "average", scopeId, fulfillmentLocationId], queryParams),
2275
- verb: "GET",
2276
- };
2277
-
2278
- export const getFulfillmentLocationByIdElapsedTimeRequest = {
2279
- name: "getFulfillmentLocationByIdElapsedTimeRequest",
2280
- buildUrl: (scopeId, fulfillmentLocationId, queryParams) =>
2281
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "elapsedTime"], queryParams),
2282
- verb: "GET",
2283
- };
2284
-
2285
- export const getFulfillmentLocationByIdRequest = {
2286
- name: "getFulfillmentLocationByIdRequest",
2287
- buildUrl: (scopeId, fulfillmentLocationId) => buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId]),
2288
- verb: "GET",
2289
- };
2290
-
2291
- export const getFulfillmentLocationPickingMissionsRequest = {
2292
- name: "getFulfillmentLocationPickingMissionsRequest",
2293
- buildUrl: (scopeId, fulfillmentLocationId, queryParams) =>
2294
- buildUrl(["pickingMissions", scopeId, "byLocation", fulfillmentLocationId], queryParams),
2295
- verb: "GET",
2296
- };
2297
-
2298
- export const getFulfillmentLocationProductivityMetricsRequest = {
2299
- name: "getFulfillmentLocationProductivityMetricsRequest",
2300
- buildUrl: (scopeId, fulfillmentLocationId) =>
2301
- buildUrl(["fulfillments", "metrics", "productivity", scopeId, fulfillmentLocationId]),
2302
- verb: "POST",
2303
- };
2304
-
2305
- export const getFulfillmentLocationShipmentAndItemMetricsRequest = {
2306
- name: "getFulfillmentLocationShipmentAndItemMetricsRequest",
2307
- buildUrl: (scopeId, fulfillmentLocationId, queryParams) =>
2308
- buildUrl(["fulfillments", "metrics", "shipments", scopeId, fulfillmentLocationId], queryParams),
2309
- verb: "GET",
2310
- };
2311
-
2312
- export const getFulfillmentLocationTimeSlotByIdRequest = {
2313
- name: "getFulfillmentLocationTimeSlotByIdRequest",
2314
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType, slotId) =>
2315
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots", slotId]),
2316
- verb: "GET",
2317
- };
2318
-
2319
- export const getFulfillmentLocationTimeSlotQuotaExceptionsRequest = {
2320
- name: "getFulfillmentLocationTimeSlotQuotaExceptionsRequest",
2321
- buildUrl: (scopeId, fulfillmentLocationId, slotId, queryParams) =>
2322
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "quotaExceptions", slotId], queryParams),
2323
- verb: "GET",
2324
- };
2325
-
2326
- export const getFulfillmentLocationTimeSlotReservationByIdRequest = {
2327
- name: "getFulfillmentLocationTimeSlotReservationByIdRequest",
2328
- buildUrl: (scopeId, fulfillmentLocationId, slotReservationId, queryParams) =>
2329
- buildUrl(
2330
- ["fulfillmentLocations", scopeId, fulfillmentLocationId, "reservations", "byId", slotReservationId],
2331
- queryParams,
2332
- ),
2333
- verb: "GET",
2334
- };
2335
-
2336
- export const getFulfillmentLocationTimeSlotReservationsRequest = {
2337
- name: "getFulfillmentLocationTimeSlotReservationsRequest",
2338
- buildUrl: (scopeId, fulfillmentLocationId, slotId, queryParams) =>
2339
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "reservations", slotId], queryParams),
2340
- verb: "GET",
2341
- };
2342
-
2343
- export const getFulfillmentLocationTimeSlotsRequest = {
2344
- name: "getFulfillmentLocationTimeSlotsRequest",
2345
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType, queryParams) =>
2346
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots"], queryParams),
2347
- verb: "GET",
2348
- };
2349
-
2350
- export const getFulfillmentLocationsByInventoryLocationIdsRequest = {
2351
- name: "getFulfillmentLocationsByInventoryLocationIdsRequest",
2352
- buildUrl: scopeId => buildUrl(["fulfillmentLocations", scopeId, "byInventoryIds"]),
2353
- verb: "POST",
2354
- };
2355
-
2356
- export const getFulfillmentLocationsByScopeRequest = {
2357
- name: "getFulfillmentLocationsByScopeRequest",
2358
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillmentLocations", scopeId], queryParams),
2359
- verb: "GET",
2360
- };
2361
-
2362
- export const getFulfillmentMethodTypesByFulfillmentLocationRequest = {
2363
- name: "getFulfillmentMethodTypesByFulfillmentLocationRequest",
2364
- buildUrl: (scopeId, fulfillmentLocationId) => buildUrl(["fulfillmentMethodTypes", scopeId, fulfillmentLocationId]),
2365
- verb: "GET",
2366
- };
2367
-
2368
- export const getFulfillmentMethodTypesByScopeRequest = {
2369
- name: "getFulfillmentMethodTypesByScopeRequest",
2370
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillmentMethodTypes", scopeId], queryParams),
2371
- verb: "GET",
2372
- };
2373
-
2374
- export const getFulfillmentPackageRequest = {
2375
- name: "getFulfillmentPackageRequest",
2376
- buildUrl: (scopeId, id, queryParams) => buildUrl(["fulfillments", "packages", scopeId, id], queryParams),
2377
- verb: "GET",
2378
- };
2379
-
2380
- export const getFulfillmentPackageTypeRequest = {
2381
- name: "getFulfillmentPackageTypeRequest",
2382
- buildUrl: (scopeId, id, queryParams) => buildUrl(["fulfillments", "packageTypes", scopeId, id], queryParams),
2383
- verb: "GET",
2384
- };
2385
-
2386
- export const getFulfillmentProviderByIdRequest = {
2387
- name: "getFulfillmentProviderByIdRequest",
2388
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "fulfillment", id]),
2389
- verb: "GET",
2390
- };
2391
-
2392
- export const getFulfillmentProvidersMetadataRequest = {
2393
- name: "getFulfillmentProvidersMetadataRequest",
2394
- buildUrl: queryParams => buildUrl(["providers", "fulfillment", "metadata"], queryParams),
2395
- verb: "GET",
2396
- };
2397
-
2398
- export const getFulfillmentProvidersRequest = {
2399
- name: "getFulfillmentProvidersRequest",
2400
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "fulfillment"], queryParams),
2401
- verb: "GET",
2402
- };
2403
-
2404
- export const getFulfillmentSLARequest = {
2405
- name: "getFulfillmentSLARequest",
2406
- buildUrl: (scopeId, id) => buildUrl(["fulfillments", "SLAs", scopeId, id]),
2407
- verb: "GET",
2408
- };
2409
-
2410
- export const getGroupMembersWithPagingRequest = {
2411
- name: "getGroupMembersWithPagingRequest",
2412
- buildUrl: (groupId, queryParams) => buildUrl(["groups", groupId, "users"], queryParams),
2413
- verb: "GET",
2414
- };
2415
-
2416
- export const getGroupRequest = {
2417
- name: "getGroupRequest",
2418
- buildUrl: groupId => buildUrl(["groups", groupId]),
2419
- verb: "GET",
2420
- };
2421
-
2422
- export const getGuestTokenRequest = {
2423
- name: "getGuestTokenRequest",
2424
- buildUrl: queryParams => buildUrl(["token", "customer", "guest"], queryParams),
2425
- verb: "GET",
2426
- };
2427
-
2428
- export const getInventoryItemBySkuAndLocationRequest = {
2429
- name: "getInventoryItemBySkuAndLocationRequest",
2430
- buildUrl: (scopeId, sku, inventoryLocationId, queryParams) =>
2431
- buildUrl(["inventoryItems", scopeId, "bySku", sku, "byLocation", inventoryLocationId], queryParams),
2432
- verb: "GET",
2433
- };
2434
-
2435
- export const getInventoryItemsByLocationRequest = {
2436
- name: "getInventoryItemsByLocationRequest",
2437
- buildUrl: (scopeId, inventoryLocationId) => buildUrl(["inventoryItems", scopeId, "byLocation", inventoryLocationId]),
2438
- verb: "GET",
2439
- };
2440
-
2441
- export const getInventoryItemsByScopeAndSkuRequest = {
2442
- name: "getInventoryItemsByScopeAndSkuRequest",
2443
- buildUrl: (scopeId, sku, queryParams) => buildUrl(["inventoryItems", scopeId, "bySku", sku], queryParams),
2444
- verb: "GET",
2445
- };
2446
-
2447
- export const getInventoryItemsByScopeAndSkusRequest = {
2448
- name: "getInventoryItemsByScopeAndSkusRequest",
2449
- buildUrl: scopeId => buildUrl(["inventoryItems", scopeId, "bySkus"]),
2450
- verb: "POST",
2451
- };
2452
-
2453
- export const getInventoryLocationRequest = {
2454
- name: "getInventoryLocationRequest",
2455
- buildUrl: (scopeId, associatedLocationId) => buildUrl(["inventoryLocations", scopeId, associatedLocationId]),
2456
- verb: "GET",
2457
- };
2458
-
2459
- export const getInventoryProvidersRequest = {
2460
- name: "getInventoryProvidersRequest",
2461
- buildUrl: (scopeId, queryParams) => buildUrl(["inventoryItems", scopeId, "findProviders"], queryParams),
2462
- verb: "GET",
2463
- };
2464
-
2465
- export const getInventoryReservedItemsRequest = {
2466
- name: "getInventoryReservedItemsRequest",
2467
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId]),
2468
- verb: "GET",
2469
- };
2470
-
2471
- export const getInventoryScheduleByIdRequest = {
2472
- name: "getInventoryScheduleByIdRequest",
2473
- buildUrl: (inventoryLocationId, scheduleId, queryParams) =>
2474
- buildUrl(["inventoryLocations", inventoryLocationId, "schedules", "byId", scheduleId], queryParams),
2475
- verb: "GET",
2476
- };
2477
-
2478
- export const getInventorySchedulesBySkuRequest = {
2479
- name: "getInventorySchedulesBySkuRequest",
2480
- buildUrl: (inventoryLocationId, sku, queryParams) =>
2481
- buildUrl(["inventoryLocations", inventoryLocationId, "schedules", "bySku", sku], queryParams),
2482
- verb: "GET",
2483
- };
2484
-
2485
- export const getInventorySchedulesRequest = {
2486
- name: "getInventorySchedulesRequest",
2487
- buildUrl: (inventoryLocationId, queryParams) =>
2488
- buildUrl(["inventoryLocations", inventoryLocationId, "schedules"], queryParams),
2489
- verb: "GET",
2490
- };
2491
-
2492
- export const getItemsForOrderReturnRequest = {
2493
- name: "getItemsForOrderReturnRequest",
2494
- buildUrl: (scopeId, orderNumber, queryParams) =>
2495
- buildUrl(["orders", "returns", scopeId, orderNumber, "itemsForReturn"], queryParams),
2496
- verb: "GET",
2497
- };
2498
-
2499
- export const getLineItemRequest = {
2500
- name: "getLineItemRequest",
2501
- buildUrl: (scopeId, customerId, cartName, id, queryParams) =>
2502
- buildUrl(["carts", scopeId, customerId, cartName, "lineItems", id], queryParams),
2503
- verb: "GET",
2504
- };
2505
-
2506
- export const getLineItemsInCartRequest = {
2507
- name: "getLineItemsInCartRequest",
2508
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
2509
- buildUrl(["carts", scopeId, customerId, cartName, "lineItems"], queryParams),
2510
- verb: "GET",
2511
- };
2512
-
2513
- export const getLineItemsInShipmentRequest = {
2514
- name: "getLineItemsInShipmentRequest",
2515
- buildUrl: (scopeId, customerId, cartName, shipmentId, queryParams) =>
2516
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", shipmentId, "lineItems"], queryParams),
2517
- verb: "GET",
2518
- };
2519
-
2520
- export const getLiveCampaignsRequest = {
2521
- name: "getLiveCampaignsRequest",
2522
- buildUrl: (scopeId, queryParams) => buildUrl(["campaigns", scopeId, "getlive"], queryParams),
2523
- verb: "GET",
2524
- };
2525
-
2526
- export const getMarketingLookupRequest = {
2527
- name: "getMarketingLookupRequest",
2528
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "marketing", lookupName]),
2529
- verb: "GET",
2530
- };
2531
-
2532
- export const getMarketingLookupsRequest = {
2533
- name: "getMarketingLookupsRequest",
2534
- buildUrl: () => buildUrl(["metadata", "lookups", "marketing"]),
2535
- verb: "GET",
2536
- };
2537
-
2538
- export const getMarketingSettingsRequest = {
2539
- name: "getMarketingSettingsRequest",
2540
- buildUrl: () => buildUrl(["marketing", "settings"]),
2541
- verb: "GET",
2542
- };
2543
-
2544
- export const getMediaBySkuRequest = {
2545
- name: "getMediaBySkuRequest",
2546
- buildUrl: (scopeId, sku) => buildUrl(["products", scopeId, "bySku", sku, "media"]),
2547
- verb: "POST",
2548
- };
2549
-
2550
- export const getMediaCoverListRequest = {
2551
- name: "getMediaCoverListRequest",
2552
- buildUrl: scopeId => buildUrl(["products", "media", scopeId, "covers"]),
2553
- verb: "POST",
2554
- };
2555
-
2556
- export const getMediaRequest = {
2557
- name: "getMediaRequest",
2558
- buildUrl: (scopeId, productId, mediaId) => buildUrl(["products", scopeId, productId, "media", mediaId]),
2559
- verb: "GET",
2560
- };
2561
-
2562
- export const getMediaSettingsRequest = {
2563
- name: "getMediaSettingsRequest",
2564
- buildUrl: () => buildUrl(["products", "media", "settings"]),
2565
- verb: "GET",
2566
- };
2567
-
2568
- export const getMembershipConfigurationRequest = {
2569
- name: "getMembershipConfigurationRequest",
2570
- buildUrl: () => buildUrl(["membership", "configuration"]),
2571
- verb: "GET",
2572
- };
2573
-
2574
- export const getMembershipSettingsRequest = {
2575
- name: "getMembershipSettingsRequest",
2576
- buildUrl: () => buildUrl(["authorizations", "settings"]),
2577
- verb: "GET",
2578
- };
2579
-
2580
- export const getModulesRequest = {
2581
- name: "getModulesRequest",
2582
- buildUrl: () => buildUrl(["modules"]),
2583
- verb: "GET",
2584
- };
2585
-
2586
- export const getNumberOfShipmentsForFulfillmentLocationRequest = {
2587
- name: "getNumberOfShipmentsForFulfillmentLocationRequest",
2588
- buildUrl: (scopeId, fulfillmentLocationId) =>
2589
- buildUrl(["shipmentFulfillmentInfos", scopeId, "numberOfShipmentsForFulfillmentLocation", fulfillmentLocationId]),
2590
- verb: "GET",
2591
- };
2592
-
2593
- export const getOperatingStatusRequest = {
2594
- name: "getOperatingStatusRequest",
2595
- buildUrl: (scopeId, fulfillmentLocationId) =>
2596
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "operatingStatus"]),
2597
- verb: "GET",
2598
- };
2599
-
2600
- export const getOrderByIdRequest = {
2601
- name: "getOrderByIdRequest",
2602
- buildUrl: (scopeId, orderId, queryParams) => buildUrl(["orders", scopeId, orderId], queryParams),
2603
- verb: "GET",
2604
- };
2605
-
2606
- export const getOrderByNumberRequest = {
2607
- name: "getOrderByNumberRequest",
2608
- buildUrl: (scopeId, orderNumber, queryParams) => buildUrl(["orders", scopeId, "byNumber", orderNumber], queryParams),
2609
- verb: "GET",
2610
- };
2611
-
2612
- export const getOrderDefinitionRequest = {
2613
- name: "getOrderDefinitionRequest",
2614
- buildUrl: (name, queryParams) => buildUrl(["metadata", "definitions", "order", name], queryParams),
2615
- verb: "GET",
2616
- };
2617
-
2618
- export const getOrderDefinitionsRequest = {
2619
- name: "getOrderDefinitionsRequest",
2620
- buildUrl: queryParams => buildUrl(["metadata", "definitions", "order"], queryParams),
2621
- verb: "GET",
2622
- };
2623
-
2624
- export const getOrderDraftPaymentRequest = {
2625
- name: "getOrderDraftPaymentRequest",
2626
- buildUrl: (scopeId, draftId, paymentId) => buildUrl(["orderdraft", scopeId, draftId, "payment", paymentId]),
2627
- verb: "GET",
2628
- };
2629
-
2630
- export const getOrderFulfillmentStateRequest = {
2631
- name: "getOrderFulfillmentStateRequest",
2632
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "fulfillmentState"]),
2633
- verb: "GET",
2634
- };
2635
-
2636
- export const getOrderHistoryRequest = {
2637
- name: "getOrderHistoryRequest",
2638
- buildUrl: (scopeId, queryParams) => buildUrl(["orders", scopeId, "orderhistory"], queryParams),
2639
- verb: "GET",
2640
- };
2641
-
2642
- export const getOrderLookupRequest = {
2643
- name: "getOrderLookupRequest",
2644
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "order", lookupName]),
2645
- verb: "GET",
2646
- };
2647
-
2648
- export const getOrderLookupsRequest = {
2649
- name: "getOrderLookupsRequest",
2650
- buildUrl: () => buildUrl(["metadata", "lookups", "order"]),
2651
- verb: "GET",
2652
- };
2653
-
2654
- export const getOrderNotesRequest = {
2655
- name: "getOrderNotesRequest",
2656
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "notes"]),
2657
- verb: "GET",
2658
- };
2659
-
2660
- export const getOrderPickingMissionsRequest = {
2661
- name: "getOrderPickingMissionsRequest",
2662
- buildUrl: (scopeId, orderId, queryParams) => buildUrl(["pickingMissions", scopeId, "byOrder", orderId], queryParams),
2663
- verb: "GET",
2664
- };
2665
-
2666
- export const getOrderReturnRequest = {
2667
- name: "getOrderReturnRequest",
2668
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
2669
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber]),
2670
- verb: "GET",
2671
- };
2672
-
2673
- export const getOrderReturnsByOrderRequest = {
2674
- name: "getOrderReturnsByOrderRequest",
2675
- buildUrl: (scopeId, orderNumber) => buildUrl(["orders", "returns", scopeId, orderNumber]),
2676
- verb: "GET",
2677
- };
2678
-
2679
- export const getOrderReturnsProviderByIdRequest = {
2680
- name: "getOrderReturnsProviderByIdRequest",
2681
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "orderReturns", id]),
2682
- verb: "GET",
2683
- };
2684
-
2685
- export const getOrderReturnsProvidersMetadataRequest = {
2686
- name: "getOrderReturnsProvidersMetadataRequest",
2687
- buildUrl: queryParams => buildUrl(["providers", "orderReturns", "metadata"], queryParams),
2688
- verb: "GET",
2689
- };
2690
-
2691
- export const getOrderReturnsProvidersRequest = {
2692
- name: "getOrderReturnsProvidersRequest",
2693
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "orderReturns"], queryParams),
2694
- verb: "GET",
2695
- };
2696
-
2697
- export const getOrderSettingsRequest = {
2698
- name: "getOrderSettingsRequest",
2699
- buildUrl: () => buildUrl(["orders", "settings"]),
2700
- verb: "GET",
2701
- };
2702
-
2703
- export const getOrganizationByNameRequest = {
2704
- name: "getOrganizationByNameRequest",
2705
- buildUrl: (scopeId, name, queryParams) => buildUrl(["organizations", scopeId, "byName", name], queryParams),
2706
- verb: "GET",
2707
- };
2708
-
2709
- export const getOrganizationRequest = {
2710
- name: "getOrganizationRequest",
2711
- buildUrl: (scopeId, organizationId, queryParams) => buildUrl(["organizations", scopeId, organizationId], queryParams),
2712
- verb: "GET",
2713
- };
2714
-
2715
- export const getOvertureHostInfoRequest = {
2716
- name: "getOvertureHostInfoRequest",
2717
- buildUrl: () => buildUrl(["monitoring", "health"]),
2718
- verb: "GET",
2719
- };
2720
-
2721
- export const getParentRolesRequest = {
2722
- name: "getParentRolesRequest",
2723
- buildUrl: roleId => buildUrl(["role", roleId, "parents"]),
2724
- verb: "GET",
2725
- };
2726
-
2727
- export const getPaymentHistoryRequest = {
2728
- name: "getPaymentHistoryRequest",
2729
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "paymentHistory"]),
2730
- verb: "GET",
2731
- };
2732
-
2733
- export const getPaymentProviderByIdRequest = {
2734
- name: "getPaymentProviderByIdRequest",
2735
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "payment", id]),
2736
- verb: "GET",
2737
- };
2738
-
2739
- export const getPaymentProviderStoreSettingsRequest = {
2740
- name: "getPaymentProviderStoreSettingsRequest",
2741
- buildUrl: (scopeId, providerId, storeId) =>
2742
- buildUrl(["providers", scopeId, "payment", providerId, "storesSettings", storeId]),
2743
- verb: "GET",
2744
- };
2745
-
2746
- export const getPaymentProvidersMetadataRequest = {
2747
- name: "getPaymentProvidersMetadataRequest",
2748
- buildUrl: queryParams => buildUrl(["providers", "payment", "metadata"], queryParams),
2749
- verb: "GET",
2750
- };
2751
-
2752
- export const getPaymentProvidersRequest = {
2753
- name: "getPaymentProvidersRequest",
2754
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "payment"], queryParams),
2755
- verb: "GET",
2756
- };
2757
-
2758
- export const getPaymentRefundOptionsRequest = {
2759
- name: "getPaymentRefundOptionsRequest",
2760
- buildUrl: (scopeId, orderNumber, orderReturnNumber, queryParams) =>
2761
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "refundOptions"], queryParams),
2762
- verb: "GET",
2763
- };
2764
-
2765
- export const getPaymentRequest = {
2766
- name: "getPaymentRequest",
2767
- buildUrl: (scopeId, customerId, cartName, id, queryParams) =>
2768
- buildUrl(["carts", scopeId, customerId, cartName, "payments", id], queryParams),
2769
- verb: "GET",
2770
- };
2771
-
2772
- export const getPaymentsInCartRequest = {
2773
- name: "getPaymentsInCartRequest",
2774
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
2775
- buildUrl(["carts", scopeId, customerId, cartName, "payments"], queryParams),
2776
- verb: "GET",
2777
- };
2778
-
2779
- export const getPickingMissionRequest = {
2780
- name: "getPickingMissionRequest",
2781
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id]),
2782
- verb: "GET",
2783
- };
2784
-
2785
- export const getPickupFulfillmentLocationsByScopeRequest = {
2786
- name: "getPickupFulfillmentLocationsByScopeRequest",
2787
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillmentLocations", scopeId, "pickup"], queryParams),
2788
- verb: "GET",
2789
- };
2790
-
2791
- export const getPriceListEntriesRequest = {
2792
- name: "getPriceListEntriesRequest",
2793
- buildUrl: (scopeId, productId, queryParams) =>
2794
- buildUrl(["products", scopeId, productId, "priceListEntries"], queryParams),
2795
- verb: "GET",
2796
- };
2797
-
2798
- export const getPriceListsRequest = {
2799
- name: "getPriceListsRequest",
2800
- buildUrl: (scopeId, queryParams) => buildUrl(["products", scopeId, "priceLists"], queryParams),
2801
- verb: "GET",
2802
- };
2803
-
2804
- export const getPrintableOrderUriRequest = {
2805
- name: "getPrintableOrderUriRequest",
2806
- buildUrl: (scopeId, orderId, queryParams) => buildUrl(["orders", scopeId, orderId, "printuri"], queryParams),
2807
- verb: "GET",
2808
- };
2809
-
2810
- export const getPrintableOrdersUriRequest = {
2811
- name: "getPrintableOrdersUriRequest",
2812
- buildUrl: scopeId => buildUrl(["orders", scopeId, "printOrders"]),
2813
- verb: "POST",
2814
- };
2815
-
2816
- export const getPrintableShipmentUriRequest = {
2817
- name: "getPrintableShipmentUriRequest",
2818
- buildUrl: (scopeId, shipmentId) => buildUrl(["shipmentFulfillmentInfos", scopeId, shipmentId, "printuri"]),
2819
- verb: "GET",
2820
- };
2821
-
2822
- export const getPrintableShipmentsUriRequest = {
2823
- name: "getPrintableShipmentsUriRequest",
2824
- buildUrl: scopeId => buildUrl(["shipmentFulfillmentInfos", scopeId, "printShipments"]),
2825
- verb: "POST",
2826
- };
2827
-
2828
- export const getProductAttributesRequest = {
2829
- name: "getProductAttributesRequest",
2830
- buildUrl: () => buildUrl(["products", "attributes"]),
2831
- verb: "GET",
2832
- };
2833
-
2834
- export const getProductDefinitionRequest = {
2835
- name: "getProductDefinitionRequest",
2836
- buildUrl: (name, queryParams) => buildUrl(["products", "definitions", name], queryParams),
2837
- verb: "GET",
2838
- };
2839
-
2840
- export const getProductDefinitionsRequest = {
2841
- name: "getProductDefinitionsRequest",
2842
- buildUrl: queryParams => buildUrl(["products", "definitions"], queryParams),
2843
- verb: "GET",
2844
- };
2845
-
2846
- export const getProductDraftRequest = {
2847
- name: "getProductDraftRequest",
2848
- buildUrl: (scopeId, productId, queryParams) => buildUrl(["products", scopeId, "draft", productId], queryParams),
2849
- verb: "GET",
2850
- };
2851
-
2852
- export const getProductDraftStatesRequest = {
2853
- name: "getProductDraftStatesRequest",
2854
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, "draftStates", productId]),
2855
- verb: "GET",
2856
- };
2857
-
2858
- export const getProductLookupRequest = {
2859
- name: "getProductLookupRequest",
2860
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "product", lookupName]),
2861
- verb: "GET",
2862
- };
2863
-
2864
- export const getProductLookupsRequest = {
2865
- name: "getProductLookupsRequest",
2866
- buildUrl: () => buildUrl(["metadata", "lookups", "product"]),
2867
- verb: "GET",
2868
- };
2869
-
2870
- export const getProductPriceEntriesRequest = {
2871
- name: "getProductPriceEntriesRequest",
2872
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, productId, "productPriceEntries"]),
2873
- verb: "POST",
2874
- };
2875
-
2876
- export const getProductRelationshipsRequest = {
2877
- name: "getProductRelationshipsRequest",
2878
- buildUrl: (scopeId, productId, queryParams) =>
2879
- buildUrl(["products", scopeId, productId, "relationships"], queryParams),
2880
- verb: "GET",
2881
- };
2882
-
2883
- export const getProductRequest = {
2884
- name: "getProductRequest",
2885
- buildUrl: (scopeId, productId, queryParams) => buildUrl(["products", scopeId, productId], queryParams),
2886
- verb: "GET",
2887
- };
2888
-
2889
- export const getProductSettingsRequest = {
2890
- name: "getProductSettingsRequest",
2891
- buildUrl: queryParams => buildUrl(["products", "settings"], queryParams),
2892
- verb: "GET",
2893
- };
2894
-
2895
- export const getProductV2Request = {
2896
- name: "getProductV2Request",
2897
- buildUrl: (scopeId, productId, queryParams) => buildUrl(["products", "v2", scopeId, productId], queryParams),
2898
- verb: "GET",
2899
- };
2900
-
2901
- export const getProductsByCategoryRequest = {
2902
- name: "getProductsByCategoryRequest",
2903
- buildUrl: (scopeId, categoryId, queryParams) =>
2904
- buildUrl(["categories", scopeId, categoryId, "products"], queryParams),
2905
- verb: "GET",
2906
- };
2907
-
2908
- export const getProductsByCategoryV2Request = {
2909
- name: "getProductsByCategoryV2Request",
2910
- buildUrl: (scopeId, categoryId) => buildUrl(["categories", "v2", scopeId, categoryId, "products"]),
2911
- verb: "POST",
2912
- };
2913
-
2914
- export const getProductsByIdsRequest = {
2915
- name: "getProductsByIdsRequest",
2916
- buildUrl: scopeId => buildUrl(["products", scopeId, "byIds"]),
2917
- verb: "POST",
2918
- };
2919
-
2920
- export const getProductsByIdsV2Request = {
2921
- name: "getProductsByIdsV2Request",
2922
- buildUrl: scopeId => buildUrl(["products", "v2", scopeId, "byIds"]),
2923
- verb: "POST",
2924
- };
2925
-
2926
- export const getProductsByPublicationStatusRequest = {
2927
- name: "getProductsByPublicationStatusRequest",
2928
- buildUrl: scopeId => buildUrl(["products", scopeId, "byPublicationStatus"]),
2929
- verb: "POST",
2930
- };
2931
-
2932
- export const getProductsBySkuRequest = {
2933
- name: "getProductsBySkuRequest",
2934
- buildUrl: (scopeId, sku, queryParams) => buildUrl(["products", scopeId, "bySku", sku], queryParams),
2935
- verb: "GET",
2936
- };
2937
-
2938
- export const getProductsBySkuV2Request = {
2939
- name: "getProductsBySkuV2Request",
2940
- buildUrl: (scopeId, sku, queryParams) => buildUrl(["products", "v2", scopeId, "bySku", sku], queryParams),
2941
- verb: "GET",
2942
- };
2943
-
2944
- export const getProductsBySkusV2Request = {
2945
- name: "getProductsBySkusV2Request",
2946
- buildUrl: scopeId => buildUrl(["products", "v2", scopeId, "bySkus"]),
2947
- verb: "POST",
2948
- };
2949
-
2950
- export const getProductsCountByCategoryRequest = {
2951
- name: "getProductsCountByCategoryRequest",
2952
- buildUrl: (scopeId, categoryId, queryParams) => buildUrl(["products", scopeId, categoryId, "count"], queryParams),
2953
- verb: "GET",
2954
- };
2955
-
2956
- export const getProductsPriceEntriesRequest = {
2957
- name: "getProductsPriceEntriesRequest",
2958
- buildUrl: scopeId => buildUrl(["products", scopeId, "productPriceEntries"]),
2959
- verb: "POST",
2960
- };
2961
-
2962
- export const getProductsPropertiesByCategoryRequest = {
2963
- name: "getProductsPropertiesByCategoryRequest",
2964
- buildUrl: (scopeId, categoryId, queryParams) =>
2965
- buildUrl(["products", scopeId, "byCategoryId", categoryId], queryParams),
2966
- verb: "GET",
2967
- };
2968
-
2969
- export const getProductsPropertiesByDraftStateAndCategoriesRequest = {
2970
- name: "getProductsPropertiesByDraftStateAndCategoriesRequest",
2971
- buildUrl: scopeId => buildUrl(["products", scopeId, "byDraftStateAndCategories"]),
2972
- verb: "POST",
2973
- };
2974
-
2975
- export const getProductsPropertiesByDraftStateRequest = {
2976
- name: "getProductsPropertiesByDraftStateRequest",
2977
- buildUrl: (scopeId, draftState, queryParams) =>
2978
- buildUrl(["products", scopeId, "byDraftState", draftState], queryParams),
2979
- verb: "GET",
2980
- };
2981
-
2982
- export const getProductsPropertiesFlagAsNewRequest = {
2983
- name: "getProductsPropertiesFlagAsNewRequest",
2984
- buildUrl: (scopeId, queryParams) => buildUrl(["products", scopeId, "flagAsNew"], queryParams),
2985
- verb: "GET",
2986
- };
2987
-
2988
- export const getProductsPropertiesWithNotificationRequest = {
2989
- name: "getProductsPropertiesWithNotificationRequest",
2990
- buildUrl: (scopeId, queryParams) => buildUrl(["products", scopeId, "withNotification"], queryParams),
2991
- verb: "GET",
2992
- };
2993
-
2994
- export const getProductsStatisticsRequest = {
2995
- name: "getProductsStatisticsRequest",
2996
- buildUrl: scopeId => buildUrl(["products", scopeId, "statistics"]),
2997
- verb: "GET",
2998
- };
2999
-
3000
- export const getProfileAttributeGroupRequest = {
3001
- name: "getProfileAttributeGroupRequest",
3002
- buildUrl: name => buildUrl(["metadata", "attributegroups", "profile", name]),
3003
- verb: "GET",
3004
- };
3005
-
3006
- export const getProfileAttributeGroupsRequest = {
3007
- name: "getProfileAttributeGroupsRequest",
3008
- buildUrl: () => buildUrl(["metadata", "attributegroups", "profile"]),
3009
- verb: "GET",
3010
- };
3011
-
3012
- export const getProfileInstanceByNameRequest = {
3013
- name: "getProfileInstanceByNameRequest",
3014
- buildUrl: (scopeId, entityTypeName, name) => buildUrl(["customProfiles", scopeId, entityTypeName, "byName", name]),
3015
- verb: "GET",
3016
- };
3017
-
3018
- export const getProfileInstanceRequest = {
3019
- name: "getProfileInstanceRequest",
3020
- buildUrl: (scopeId, entityTypeName, entityId) => buildUrl(["customProfiles", scopeId, entityTypeName, entityId]),
3021
- verb: "GET",
3022
- };
3023
-
3024
- export const getProfileInstancesRequest = {
3025
- name: "getProfileInstancesRequest",
3026
- buildUrl: (scopeId, entityTypeName) => buildUrl(["customProfiles", scopeId, entityTypeName, "byIds"]),
3027
- verb: "POST",
3028
- };
3029
-
3030
- export const getProfileSettingsRequest = {
3031
- name: "getProfileSettingsRequest",
3032
- buildUrl: () => buildUrl(["metadata", "settings", "customer"]),
3033
- verb: "GET",
3034
- };
3035
-
3036
- export const getPromoCodesCountRequest = {
3037
- name: "getPromoCodesCountRequest",
3038
- buildUrl: (scopeId, promotionId) => buildUrl(["promotions", scopeId, promotionId, "promoCodes", "count"]),
3039
- verb: "GET",
3040
- };
3041
-
3042
- export const getPromotionRequest = {
3043
- name: "getPromotionRequest",
3044
- buildUrl: (scopeId, campaignId, promotionId, queryParams) =>
3045
- buildUrl(["campaigns", scopeId, campaignId, "promotions", promotionId], queryParams),
3046
- verb: "GET",
3047
- };
3048
-
3049
- export const getPromotionSummariesRequest = {
3050
- name: "getPromotionSummariesRequest",
3051
- buildUrl: (scopeId, campaignId) => buildUrl(["campaigns", scopeId, campaignId, "promotions", "summaries"]),
3052
- verb: "GET",
3053
- };
3054
-
3055
- export const getProvidersRequest = {
3056
- name: "getProvidersRequest",
3057
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "types"], queryParams),
3058
- verb: "GET",
3059
- };
3060
-
3061
- export const getQuickLinksCountDetailsRequest = {
3062
- name: "getQuickLinksCountDetailsRequest",
3063
- buildUrl: queryParams => buildUrl(["products", "quicklinks"], queryParams),
3064
- verb: "GET",
3065
- };
3066
-
3067
- export const getRecurringOrderLineItemRequest = {
3068
- name: "getRecurringOrderLineItemRequest",
3069
- buildUrl: (scopeId, recurringOrderLineItemId) =>
3070
- buildUrl(["recurringOrders", scopeId, "lineItems", recurringOrderLineItemId]),
3071
- verb: "GET",
3072
- };
3073
-
3074
- export const getRecurringOrderLineItemsForCustomerRequest = {
3075
- name: "getRecurringOrderLineItemsForCustomerRequest",
3076
- buildUrl: (scopeId, customerId, queryParams) =>
3077
- buildUrl(["recurringOrders", scopeId, "lineItems", "byCustomer", customerId], queryParams),
3078
- verb: "GET",
3079
- };
3080
-
3081
- export const getRecurringOrderProgramRequest = {
3082
- name: "getRecurringOrderProgramRequest",
3083
- buildUrl: recurringOrderProgramName => buildUrl(["recurringOrders", "programs", recurringOrderProgramName]),
3084
- verb: "GET",
3085
- };
3086
-
3087
- export const getRecurringOrderProgramsByScopeIdRequest = {
3088
- name: "getRecurringOrderProgramsByScopeIdRequest",
3089
- buildUrl: scopeId => buildUrl(["recurringOrders", "programs", "byScope", scopeId]),
3090
- verb: "GET",
3091
- };
3092
-
3093
- export const getRegionsRequest = {
3094
- name: "getRegionsRequest",
3095
- buildUrl: (countryIsoCode, queryParams) => buildUrl(["countries", countryIsoCode, "regions"], queryParams),
3096
- verb: "GET",
3097
- };
3098
-
3099
- export const getRequesterTasksInfoRequest = {
3100
- name: "getRequesterTasksInfoRequest",
3101
- buildUrl: queryParams => buildUrl(["tasks"], queryParams),
3102
- verb: "GET",
3103
- };
3104
-
3105
- export const getRoleByIdRequest = {
3106
- name: "getRoleByIdRequest",
3107
- buildUrl: id => buildUrl(["roles", id]),
3108
- verb: "GET",
3109
- };
3110
-
3111
- export const getRoleRequest = {
3112
- name: "getRoleRequest",
3113
- buildUrl: (moduleId, roleName) => buildUrl(["roles", moduleId, roleName]),
3114
- verb: "GET",
3115
- };
3116
-
3117
- export const getRolesRequest = {
3118
- name: "getRolesRequest",
3119
- buildUrl: () => buildUrl(["roles"]),
3120
- verb: "GET",
3121
- };
3122
-
3123
- export const getRoutingProviderByIdRequest = {
3124
- name: "getRoutingProviderByIdRequest",
3125
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "routing", id]),
3126
- verb: "GET",
3127
- };
3128
-
3129
- export const getRoutingProvidersMetadataRequest = {
3130
- name: "getRoutingProvidersMetadataRequest",
3131
- buildUrl: queryParams => buildUrl(["providers", "routing", "metadata"], queryParams),
3132
- verb: "GET",
3133
- };
3134
-
3135
- export const getRoutingProvidersRequest = {
3136
- name: "getRoutingProvidersRequest",
3137
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "routing"], queryParams),
3138
- verb: "GET",
3139
- };
3140
-
3141
- export const getRunningScheduledTasksRequest = {
3142
- name: "getRunningScheduledTasksRequest",
3143
- buildUrl: () => buildUrl(["tasks", "scheduled", "running"]),
3144
- verb: "GET",
3145
- };
3146
-
3147
- export const getScheduleRequest = {
3148
- name: "getScheduleRequest",
3149
- buildUrl: (scopeId, fulfillmentLocationId, queryParams) =>
3150
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "schedule"], queryParams),
3151
- verb: "GET",
3152
- };
3153
-
3154
- export const getScheduledTaskRequest = {
3155
- name: "getScheduledTaskRequest",
3156
- buildUrl: (group, name) => buildUrl(["tasks", "scheduled", group, name]),
3157
- verb: "GET",
3158
- };
3159
-
3160
- export const getScopeChildrenRequest = {
3161
- name: "getScopeChildrenRequest",
3162
- buildUrl: (scopeId, queryParams) => buildUrl(["scopes", scopeId, "children"], queryParams),
3163
- verb: "GET",
3164
- };
3165
-
3166
- export const getScopeExtendedConfigurationRequest = {
3167
- name: "getScopeExtendedConfigurationRequest",
3168
- buildUrl: scopeId => buildUrl(["scopes", scopeId, "extendedConfiguration"]),
3169
- verb: "GET",
3170
- };
3171
-
3172
- export const getScopeRequest = {
3173
- name: "getScopeRequest",
3174
- buildUrl: (scopeId, queryParams) => buildUrl(["scopes", scopeId], queryParams),
3175
- verb: "GET",
3176
- };
3177
-
3178
- export const getSearchQueryByNameRequest = {
3179
- name: "getSearchQueryByNameRequest",
3180
- buildUrl: (scopeId, queryType, name, queryParams) =>
3181
- buildUrl(["searchqueries", scopeId, queryType, name], queryParams),
3182
- verb: "GET",
3183
- };
3184
-
3185
- export const getSegmentRequest = {
3186
- name: "getSegmentRequest",
3187
- buildUrl: (segmentId, queryParams) => buildUrl(["segments", segmentId], queryParams),
3188
- verb: "GET",
3189
- };
3190
-
3191
- export const getSegmentRoutingMetadataRequest = {
3192
- name: "getSegmentRoutingMetadataRequest",
3193
- buildUrl: queryParams => buildUrl(["providers", "routing", "segments", "metadata"], queryParams),
3194
- verb: "GET",
3195
- };
3196
-
3197
- export const getSegmentsRequest = {
3198
- name: "getSegmentsRequest",
3199
- buildUrl: queryParams => buildUrl(["segments"], queryParams),
3200
- verb: "GET",
3201
- };
3202
-
3203
- export const getShipmentDocumentRequest = {
3204
- name: "getShipmentDocumentRequest",
3205
- buildUrl: (scopeId, orderId, shipmentId, name) =>
3206
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "documents", name]),
3207
- verb: "GET",
3208
- };
3209
-
3210
- export const getShipmentFulfillmentInfosRequest = {
3211
- name: "getShipmentFulfillmentInfosRequest",
3212
- buildUrl: (scopeId, queryParams) => buildUrl(["shipmentFulfillmentInfos", scopeId], queryParams),
3213
- verb: "GET",
3214
- };
3215
-
3216
- export const getShipmentNotesRequest = {
3217
- name: "getShipmentNotesRequest",
3218
- buildUrl: (scopeId, shipmentId) => buildUrl(["orders", scopeId, shipmentId, "shipment", "notes"]),
3219
- verb: "GET",
3220
- };
3221
-
3222
- export const getShipmentPickingMissionsRequest = {
3223
- name: "getShipmentPickingMissionsRequest",
3224
- buildUrl: (scopeId, shipmentId, queryParams) =>
3225
- buildUrl(["pickingMissions", scopeId, "byShipment", shipmentId], queryParams),
3226
- verb: "GET",
3227
- };
3228
-
3229
- export const getShipmentRequest = {
3230
- name: "getShipmentRequest",
3231
- buildUrl: (scopeId, customerId, cartName, id, queryParams) =>
3232
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", id], queryParams),
3233
- verb: "GET",
3234
- };
3235
-
3236
- export const getShippingFulfillmentLocationsByScopeRequest = {
3237
- name: "getShippingFulfillmentLocationsByScopeRequest",
3238
- buildUrl: (scopeId, queryParams) => buildUrl(["fulfillmentLocations", scopeId, "shipping"], queryParams),
3239
- verb: "GET",
3240
- };
3241
-
3242
- export const getSsrsRenderingFormatsRequest = {
3243
- name: "getSsrsRenderingFormatsRequest",
3244
- buildUrl: queryParams => buildUrl(["reporting", "ssrs", "reports", "renderingformats"], queryParams),
3245
- verb: "GET",
3246
- };
3247
-
3248
- export const getSsrsReportParametersRequest = {
3249
- name: "getSsrsReportParametersRequest",
3250
- buildUrl: reportId => buildUrl(["reporting", "ssrs", "reports", reportId, "parameters"]),
3251
- verb: "POST",
3252
- };
3253
-
3254
- export const getSsrsReportsRequest = {
3255
- name: "getSsrsReportsRequest",
3256
- buildUrl: queryParams => buildUrl(["reporting", "ssrs", "reports"], queryParams),
3257
- verb: "GET",
3258
- };
3259
-
3260
- export const getStoreByNameRequest = {
3261
- name: "getStoreByNameRequest",
3262
- buildUrl: (scopeId, name, queryParams) => buildUrl(["stores", scopeId, "byName", name], queryParams),
3263
- verb: "GET",
3264
- };
3265
-
3266
- export const getStoreByNumberRequest = {
3267
- name: "getStoreByNumberRequest",
3268
- buildUrl: (scopeId, number, queryParams) => buildUrl(["stores", scopeId, "byNumber", number], queryParams),
3269
- verb: "GET",
3270
- };
3271
-
3272
- export const getStoreRequest = {
3273
- name: "getStoreRequest",
3274
- buildUrl: (scopeId, id, queryParams) => buildUrl(["stores", scopeId, id], queryParams),
3275
- verb: "GET",
3276
- };
3277
-
3278
- export const getSupportedCulturesRequest = {
3279
- name: "getSupportedCulturesRequest",
3280
- buildUrl: () => buildUrl(["cultures"]),
3281
- verb: "GET",
3282
- };
3283
-
3284
- export const getTargetingMetadataRequest = {
3285
- name: "getTargetingMetadataRequest",
3286
- buildUrl: queryParams => buildUrl(["metadata", "targeting"], queryParams),
3287
- verb: "GET",
3288
- };
3289
-
3290
- export const getTaskExecutionLogsRequest = {
3291
- name: "getTaskExecutionLogsRequest",
3292
- buildUrl: taskId => buildUrl(["tasks", taskId, "logs"]),
3293
- verb: "GET",
3294
- };
3295
-
3296
- export const getTaskInfoRequest = {
3297
- name: "getTaskInfoRequest",
3298
- buildUrl: taskId => buildUrl(["tasks", taskId]),
3299
- verb: "GET",
3300
- };
3301
-
3302
- export const getTasksInfoByCorrelationIdRequest = {
3303
- name: "getTasksInfoByCorrelationIdRequest",
3304
- buildUrl: id => buildUrl(["tasks", "byCorrelationId", id]),
3305
- verb: "GET",
3306
- };
3307
-
3308
- export const getTaxCategoriesListRequest = {
3309
- name: "getTaxCategoriesListRequest",
3310
- buildUrl: queryParams => buildUrl(["taxes", "taxCategories"], queryParams),
3311
- verb: "GET",
3312
- };
3313
-
3314
- export const getTaxCategoriesRequest = {
3315
- name: "getTaxCategoriesRequest",
3316
- buildUrl: queryParams => buildUrl(["orders", "taxCategories"], queryParams),
3317
- verb: "GET",
3318
- };
3319
-
3320
- export const getTaxCategoryByIdRequest = {
3321
- name: "getTaxCategoryByIdRequest",
3322
- buildUrl: id => buildUrl(["taxes", "taxCategory", id]),
3323
- verb: "GET",
3324
- };
3325
-
3326
- export const getTaxJurisdictionGroupRequest = {
3327
- name: "getTaxJurisdictionGroupRequest",
3328
- buildUrl: id => buildUrl(["taxes", "jurisdictionGroups", id]),
3329
- verb: "GET",
3330
- };
3331
-
3332
- export const getTaxJurisdictionGroupsRequest = {
3333
- name: "getTaxJurisdictionGroupsRequest",
3334
- buildUrl: () => buildUrl(["taxes", "jurisdictionGroups"]),
3335
- verb: "GET",
3336
- };
3337
-
3338
- export const getTaxJurisdictionRequest = {
3339
- name: "getTaxJurisdictionRequest",
3340
- buildUrl: id => buildUrl(["taxes", "jurisdictions", id]),
3341
- verb: "GET",
3342
- };
3343
-
3344
- export const getTaxJurisdictionsRequest = {
3345
- name: "getTaxJurisdictionsRequest",
3346
- buildUrl: () => buildUrl(["taxes", "jurisdictions"]),
3347
- verb: "GET",
3348
- };
3349
-
3350
- export const getTaxProviderByIdRequest = {
3351
- name: "getTaxProviderByIdRequest",
3352
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "tax", id]),
3353
- verb: "GET",
3354
- };
3355
-
3356
- export const getTaxProviderByScopeRequest = {
3357
- name: "getTaxProviderByScopeRequest",
3358
- buildUrl: queryParams => buildUrl(["orders", "taxProviderByScope"], queryParams),
3359
- verb: "GET",
3360
- };
3361
-
3362
- export const getTaxProvidersMetadataRequest = {
3363
- name: "getTaxProvidersMetadataRequest",
3364
- buildUrl: queryParams => buildUrl(["providers", "tax", "metadata"], queryParams),
3365
- verb: "GET",
3366
- };
3367
-
3368
- export const getTaxProvidersRequest = {
3369
- name: "getTaxProvidersRequest",
3370
- buildUrl: (scopeId, queryParams) => buildUrl(["providers", scopeId, "tax"], queryParams),
3371
- verb: "GET",
3372
- };
3373
-
3374
- export const getTaxRateByIdRequest = {
3375
- name: "getTaxRateByIdRequest",
3376
- buildUrl: (scopeId, id) => buildUrl(["taxes", "rates", scopeId, id]),
3377
- verb: "GET",
3378
- };
3379
-
3380
- export const getTaxRatesRequest = {
3381
- name: "getTaxRatesRequest",
3382
- buildUrl: (scopeId, queryParams) => buildUrl(["taxes", "rates", scopeId], queryParams),
3383
- verb: "GET",
3384
- };
3385
-
3386
- export const getTemplateByNameRequest = {
3387
- name: "getTemplateByNameRequest",
3388
- buildUrl: (scopeId, type, name, queryParams) => buildUrl(["templates", scopeId, type, name], queryParams),
3389
- verb: "GET",
3390
- };
3391
-
3392
- export const getTemplateVariablesRequest = {
3393
- name: "getTemplateVariablesRequest",
3394
- buildUrl: scopeId => buildUrl(["templates", scopeId, "Variables"]),
3395
- verb: "GET",
3396
- };
3397
-
3398
- export const getTemplatesRequest = {
3399
- name: "getTemplatesRequest",
3400
- buildUrl: (scopeId, type, queryParams) => buildUrl(["templates", scopeId, type], queryParams),
3401
- verb: "GET",
3402
- };
3403
-
3404
- export const getTimeZonesRequest = {
3405
- name: "getTimeZonesRequest",
3406
- buildUrl: () => buildUrl(["timezones"]),
3407
- verb: "GET",
3408
- };
3409
-
3410
- export const getTokenRequest = {
3411
- name: "getTokenRequest",
3412
- buildUrl: () => buildUrl(["token"]),
3413
- verb: "POST",
3414
- };
3415
-
3416
- export const getUsedLanguagesRequest = {
3417
- name: "getUsedLanguagesRequest",
3418
- buildUrl: () => buildUrl(["catalogs", "usedCultures"]),
3419
- verb: "GET",
3420
- };
3421
-
3422
- export const getUserApplicationRequest = {
3423
- name: "getUserApplicationRequest",
3424
- buildUrl: () => buildUrl(["my", "application"]),
3425
- verb: "GET",
3426
- };
3427
-
3428
- export const getUserApplicationsRequest = {
3429
- name: "getUserApplicationsRequest",
3430
- buildUrl: userName => buildUrl(["authorizations", userName, "applications"]),
3431
- verb: "GET",
3432
- };
3433
-
3434
- export const getUserCultureRequest = {
3435
- name: "getUserCultureRequest",
3436
- buildUrl: () => buildUrl(["my", "culture"]),
3437
- verb: "GET",
3438
- };
3439
-
3440
- export const getUserEffectiveAuthorizationsRequest = {
3441
- name: "getUserEffectiveAuthorizationsRequest",
3442
- buildUrl: userName => buildUrl(["authorizations", userName, "GetEffectiveAuthorizations"]),
3443
- verb: "GET",
3444
- };
3445
-
3446
- export const getUserGroupsRequest = {
3447
- name: "getUserGroupsRequest",
3448
- buildUrl: userName => buildUrl(["users", userName, "groups"]),
3449
- verb: "GET",
3450
- };
3451
-
3452
- export const getUserPermissionsRequest = {
3453
- name: "getUserPermissionsRequest",
3454
- buildUrl: () => buildUrl(["authentication", "profile"]),
3455
- verb: "GET",
3456
- };
3457
-
3458
- export const getUserRequest = {
3459
- name: "getUserRequest",
3460
- buildUrl: userName => buildUrl(["users", userName]),
3461
- verb: "GET",
3462
- };
3463
-
3464
- export const getUserScopeRequest = {
3465
- name: "getUserScopeRequest",
3466
- buildUrl: module => buildUrl(["my", "scope", module]),
3467
- verb: "GET",
3468
- };
3469
-
3470
- export const getUserScopeTreeRequest = {
3471
- name: "getUserScopeTreeRequest",
3472
- buildUrl: (module, queryParams) => buildUrl(["my", "scope", module, "tree"], queryParams),
3473
- verb: "GET",
3474
- };
3475
-
3476
- export const getVariantSearchConfigurationsRequest = {
3477
- name: "getVariantSearchConfigurationsRequest",
3478
- buildUrl: scopeId => buildUrl(["search", scopeId, "configurations", "variant"]),
3479
- verb: "GET",
3480
- };
3481
-
3482
- export const getVariantsByProductRequest = {
3483
- name: "getVariantsByProductRequest",
3484
- buildUrl: (scopeId, productId, queryParams) => buildUrl(["products", scopeId, productId, "variants"], queryParams),
3485
- verb: "GET",
3486
- };
3487
-
3488
- export const getVersionInfoRequest = {
3489
- name: "getVersionInfoRequest",
3490
- buildUrl: queryParams => buildUrl(["diagnostic", "versioninfo"], queryParams),
3491
- verb: "GET",
3492
- };
3493
-
3494
- export const getWarehouseByNumberRequest = {
3495
- name: "getWarehouseByNumberRequest",
3496
- buildUrl: (scopeId, number, queryParams) => buildUrl(["warehouses", scopeId, "byNumber", number], queryParams),
3497
- verb: "GET",
3498
- };
3499
-
3500
- export const getWarehouseRequest = {
3501
- name: "getWarehouseRequest",
3502
- buildUrl: (scopeId, id, queryParams) => buildUrl(["warehouses", scopeId, id], queryParams),
3503
- verb: "GET",
3504
- };
3505
-
3506
- export const grantAuthorizationRequest = {
3507
- name: "grantAuthorizationRequest",
3508
- buildUrl: (roleId, objectId) => buildUrl(["authorizations", roleId, objectId]),
3509
- verb: "POST",
3510
- };
3511
-
3512
- export const grantAuthorizationsRequest = {
3513
- name: "grantAuthorizationsRequest",
3514
- buildUrl: objectId => buildUrl(["authorizations", objectId]),
3515
- verb: "POST",
3516
- };
3517
-
3518
- export const importCouponCodesRequest = {
3519
- name: "importCouponCodesRequest",
3520
- buildUrl: promotionId => buildUrl(["promotions", promotionId, "coupons", "import"]),
3521
- verb: "POST",
3522
- };
3523
-
3524
- export const importFoundationSchemaRequest = {
3525
- name: "importFoundationSchemaRequest",
3526
- buildUrl: () => buildUrl(["integration", "foundation", "schema", "import"]),
3527
- verb: "POST",
3528
- };
3529
-
3530
- export const importInventoryItemsRequest = {
3531
- name: "importInventoryItemsRequest",
3532
- buildUrl: () => buildUrl(["integration", "inventoryItems", "import"]),
3533
- verb: "POST",
3534
- };
3535
-
3536
- export const importOrderSchemaRequest = {
3537
- name: "importOrderSchemaRequest",
3538
- buildUrl: () => buildUrl(["integration", "orders", "schema", "import"]),
3539
- verb: "POST",
3540
- };
3541
-
3542
- export const importOrdersRequest = {
3543
- name: "importOrdersRequest",
3544
- buildUrl: () => buildUrl(["integration", "orders", "import"]),
3545
- verb: "POST",
3546
- };
3547
-
3548
- export const importProductPriceRequest = {
3549
- name: "importProductPriceRequest",
3550
- buildUrl: scopeId => buildUrl(["dataexchange", "productprices", scopeId, "import"]),
3551
- verb: "POST",
3552
- };
3553
-
3554
- export const importProductsPricesRequest = {
3555
- name: "importProductsPricesRequest",
3556
- buildUrl: scopeId => buildUrl(["integration", "products", scopeId, "prices", "import"]),
3557
- verb: "POST",
3558
- };
3559
-
3560
- export const importProductsRequest = {
3561
- name: "importProductsRequest",
3562
- buildUrl: scopeId => buildUrl(["integration", "products", scopeId, "import"]),
3563
- verb: "POST",
3564
- };
3565
-
3566
- export const importProfileSchemaRequest = {
3567
- name: "importProfileSchemaRequest",
3568
- buildUrl: () => buildUrl(["integration", "profiles", "schema", "import"]),
3569
- verb: "POST",
3570
- };
3571
-
3572
- export const importProfilesRequest = {
3573
- name: "importProfilesRequest",
3574
- buildUrl: () => buildUrl(["integration", "profiles", "import"]),
3575
- verb: "POST",
3576
- };
3577
-
3578
- export const importPromoCodesRequest = {
3579
- name: "importPromoCodesRequest",
3580
- buildUrl: promotionId => buildUrl(["dataexchange", "promotions", promotionId, "promoCodes", "import"]),
3581
- verb: "POST",
3582
- };
3583
-
3584
- export const increaseInventoryQuantityRequest = {
3585
- name: "increaseInventoryQuantityRequest",
3586
- buildUrl: (scopeId, sku, inventoryLocationId, quantity) =>
3587
- buildUrl(["inventoryItems", scopeId, "bySku", sku, "byLocation", inventoryLocationId, "increase", quantity]),
3588
- verb: "POST",
3589
- };
3590
-
3591
- export const indexCustomersRequest = {
3592
- name: "indexCustomersRequest",
3593
- buildUrl: () => buildUrl(["search", "indexes", "customers"]),
3594
- verb: "PUT",
3595
- };
3596
-
3597
- export const indexInventoriesRequest = {
3598
- name: "indexInventoriesRequest",
3599
- buildUrl: () => buildUrl(["search", "indexes", "inventories"]),
3600
- verb: "PUT",
3601
- };
3602
-
3603
- export const indexProductsRequest = {
3604
- name: "indexProductsRequest",
3605
- buildUrl: () => buildUrl(["search", "indexes", "products"]),
3606
- verb: "PUT",
3607
- };
3608
-
3609
- export const indexStoresRequest = {
3610
- name: "indexStoresRequest",
3611
- buildUrl: () => buildUrl(["search", "indexes", "stores"]),
3612
- verb: "PUT",
3613
- };
3614
-
3615
- export const initializePaymentRequest = {
3616
- name: "initializePaymentRequest",
3617
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
3618
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "initialize"]),
3619
- verb: "POST",
3620
- };
3621
-
3622
- export const liberateCouponRequest = {
3623
- name: "liberateCouponRequest",
3624
- buildUrl: () => buildUrl(["coupons", "liberate"]),
3625
- verb: "POST",
3626
- };
3627
-
3628
- export const listFulfillmentPackagesRequest = {
3629
- name: "listFulfillmentPackagesRequest",
3630
- buildUrl: scopeId => buildUrl(["fulfillments", "packages", scopeId, "list"]),
3631
- verb: "POST",
3632
- };
3633
-
3634
- export const loginRequest = {
3635
- name: "loginRequest",
3636
- buildUrl: scopeId => buildUrl(["membership", scopeId, "Login"]),
3637
- verb: "PUT",
3638
- };
3639
-
3640
- export const mergeDocumentsRequest = {
3641
- name: "mergeDocumentsRequest",
3642
- buildUrl: documentType => buildUrl(["documents", documentType, "merge"]),
3643
- verb: "POST",
3644
- };
3645
-
3646
- export const pauseCampaignRequest = {
3647
- name: "pauseCampaignRequest",
3648
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id, "pause"]),
3649
- verb: "POST",
3650
- };
3651
-
3652
- export const postProcessOrderRequest = {
3653
- name: "postProcessOrderRequest",
3654
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "postProcess"]),
3655
- verb: "POST",
3656
- };
3657
-
3658
- export const processPaymentRefundOptionRequest = {
3659
- name: "processPaymentRefundOptionRequest",
3660
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
3661
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "refundOptions", "process"]),
3662
- verb: "POST",
3663
- };
3664
-
3665
- export const processPromotionEngineRequest = {
3666
- name: "processPromotionEngineRequest",
3667
- buildUrl: () => buildUrl(["promotion", "engine"]),
3668
- verb: "POST",
3669
- };
3670
-
3671
- export const productExistsRequest = {
3672
- name: "productExistsRequest",
3673
- buildUrl: (scopeId, productId) => buildUrl(["products", "exists", scopeId, productId]),
3674
- verb: "GET",
3675
- };
3676
-
3677
- export const productInformationExportRequest = {
3678
- name: "productInformationExportRequest",
3679
- buildUrl: scopeId => buildUrl(["dataexchange", "products", scopeId, "export"]),
3680
- verb: "POST",
3681
- };
3682
-
3683
- export const productInformationImportRequest = {
3684
- name: "productInformationImportRequest",
3685
- buildUrl: scopeId => buildUrl(["dataexchange", "products", scopeId, "import"]),
3686
- verb: "POST",
3687
- };
3688
-
3689
- export const productInformationLegacyImportRequest = {
3690
- name: "productInformationLegacyImportRequest",
3691
- buildUrl: scopeId => buildUrl(["dataexchange", "products", scopeId, "legacy", "import"]),
3692
- verb: "POST",
3693
- };
3694
-
3695
- export const publishCampaignRequest = {
3696
- name: "publishCampaignRequest",
3697
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id, "publish"]),
3698
- verb: "POST",
3699
- };
3700
-
3701
- export const queueActivityTaskRequest = {
3702
- name: "queueActivityTaskRequest",
3703
- buildUrl: taskId => buildUrl(["tasks", "activities", taskId]),
3704
- verb: "POST",
3705
- };
3706
-
3707
- export const queueWorkflowTaskRequest = {
3708
- name: "queueWorkflowTaskRequest",
3709
- buildUrl: taskId => buildUrl(["tasks", "workflows", taskId]),
3710
- verb: "POST",
3711
- };
3712
-
3713
- export const refreshPaymentOrderRequest = {
3714
- name: "refreshPaymentOrderRequest",
3715
- buildUrl: (scopeId, orderId, paymentId) => buildUrl(["orders", scopeId, orderId, "payments", paymentId, "refresh"]),
3716
- verb: "POST",
3717
- };
3718
-
3719
- export const refreshPaymentRequest = {
3720
- name: "refreshPaymentRequest",
3721
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
3722
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "refresh"]),
3723
- verb: "POST",
3724
- };
3725
-
3726
- export const refundFulfillmentCarrierQuotesRequest = {
3727
- name: "refundFulfillmentCarrierQuotesRequest",
3728
- buildUrl: (scopeId, fulfillmentCarrierId) =>
3729
- buildUrl(["fulfillments", "carriers", scopeId, fulfillmentCarrierId, "quotes", "refund"]),
3730
- verb: "POST",
3731
- };
3732
-
3733
- export const refundPaymentRequest = {
3734
- name: "refundPaymentRequest",
3735
- buildUrl: (scopeId, orderId, paymentId) => buildUrl(["orders", scopeId, orderId, "payments", paymentId, "refund"]),
3736
- verb: "POST",
3737
- };
3738
-
3739
- export const rejectCampaignRequest = {
3740
- name: "rejectCampaignRequest",
3741
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id, "reject"]),
3742
- verb: "POST",
3743
- };
3744
-
3745
- export const releaseEntityLockRequest = {
3746
- name: "releaseEntityLockRequest",
3747
- buildUrl: (scopeId, entity, entityId) => buildUrl(["locking", scopeId, "entity", entity, entityId, "releaseLock"]),
3748
- verb: "POST",
3749
- };
3750
-
3751
- export const releaseOrderLockForShipmentRequest = {
3752
- name: "releaseOrderLockForShipmentRequest",
3753
- buildUrl: (scopeId, orderId) => buildUrl(["processedOrders", scopeId, orderId, "releaselock"]),
3754
- verb: "POST",
3755
- };
3756
-
3757
- export const removeAddressRequest = {
3758
- name: "removeAddressRequest",
3759
- buildUrl: addressId => buildUrl(["addresses", addressId]),
3760
- verb: "DELETE",
3761
- };
3762
-
3763
- export const removeAllLineItemsRequest = {
3764
- name: "removeAllLineItemsRequest",
3765
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
3766
- buildUrl(["carts", scopeId, customerId, cartName, "removeAllLineItems"], queryParams),
3767
- verb: "DELETE",
3768
- };
3769
-
3770
- export const removeCouponRequest = {
3771
- name: "removeCouponRequest",
3772
- buildUrl: (scopeId, customerId, cartName, couponCode, queryParams) =>
3773
- buildUrl(["carts", scopeId, customerId, cartName, "coupons", couponCode], queryParams),
3774
- verb: "DELETE",
3775
- };
3776
-
3777
- export const removeCustomerAddressRequest = {
3778
- name: "removeCustomerAddressRequest",
3779
- buildUrl: (customerId, addressId) => buildUrl(["addresses", "customer", customerId, addressId]),
3780
- verb: "DELETE",
3781
- };
3782
-
3783
- export const removeCustomersFromOrganizationRequest = {
3784
- name: "removeCustomersFromOrganizationRequest",
3785
- buildUrl: (scopeId, queryParams) => buildUrl(["organizations", scopeId, "customers"], queryParams),
3786
- verb: "DELETE",
3787
- };
3788
-
3789
- export const removeFulfillmentCompetitionLocationsRequest = {
3790
- name: "removeFulfillmentCompetitionLocationsRequest",
3791
- buildUrl: (scopeId, fulfillmentCompetitionId, queryParams) =>
3792
- buildUrl(["fulfillments", "competitions", scopeId, fulfillmentCompetitionId, "locations"], queryParams),
3793
- verb: "DELETE",
3794
- };
3795
-
3796
- export const removeLineItemRequest = {
3797
- name: "removeLineItemRequest",
3798
- buildUrl: (scopeId, customerId, cartName, id, queryParams) =>
3799
- buildUrl(["carts", scopeId, customerId, cartName, "lineItems", id], queryParams),
3800
- verb: "DELETE",
3801
- };
3802
-
3803
- export const removeLineItemsInShipmentRequest = {
3804
- name: "removeLineItemsInShipmentRequest",
3805
- buildUrl: (scopeId, customerId, cartName, shipmentId, queryParams) =>
3806
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", shipmentId, "lineItems"], queryParams),
3807
- verb: "DELETE",
3808
- };
3809
-
3810
- export const removeLineItemsRequest = {
3811
- name: "removeLineItemsRequest",
3812
- buildUrl: (scopeId, customerId, cartName, queryParams) =>
3813
- buildUrl(["carts", scopeId, customerId, cartName, "lineItems", "batch"], queryParams),
3814
- verb: "DELETE",
3815
- };
3816
-
3817
- export const removeOrganizationsToCustomerRequest = {
3818
- name: "removeOrganizationsToCustomerRequest",
3819
- buildUrl: (scopeId, customerId, queryParams) =>
3820
- buildUrl(["customers", scopeId, customerId, "organizations"], queryParams),
3821
- verb: "DELETE",
3822
- };
3823
-
3824
- export const removePaymentRequest = {
3825
- name: "removePaymentRequest",
3826
- buildUrl: (scopeId, customerId, cartName, id, queryParams) =>
3827
- buildUrl(["carts", scopeId, customerId, cartName, "payments", id], queryParams),
3828
- verb: "DELETE",
3829
- };
3830
-
3831
- export const removeRoleChildRequest = {
3832
- name: "removeRoleChildRequest",
3833
- buildUrl: (parentRoleId, childRoleId, queryParams) => buildUrl(["roles", parentRoleId, childRoleId], queryParams),
3834
- verb: "DELETE",
3835
- };
3836
-
3837
- export const removeRoleChildrenRequest = {
3838
- name: "removeRoleChildrenRequest",
3839
- buildUrl: (parentRoleId, queryParams) => buildUrl(["roles", parentRoleId, "child"], queryParams),
3840
- verb: "DELETE",
3841
- };
3842
-
3843
- export const removeScheduledTaskTriggerRequest = {
3844
- name: "removeScheduledTaskTriggerRequest",
3845
- buildUrl: (taskGroup, taskName, triggerGroup, triggerName) =>
3846
- buildUrl(["tasks", "scheduled", taskGroup, taskName, "triggers", triggerGroup, triggerName]),
3847
- verb: "DELETE",
3848
- };
3849
-
3850
- export const removeScopeAssociationRequest = {
3851
- name: "removeScopeAssociationRequest",
3852
- buildUrl: (scopeId, entityTypeName, entityId) =>
3853
- buildUrl(["customProfiles", scopeId, entityTypeName, entityId, "scopes"]),
3854
- verb: "DELETE",
3855
- };
3856
-
3857
- export const removeShipmentRequest = {
3858
- name: "removeShipmentRequest",
3859
- buildUrl: (scopeId, customerId, cartName, id, queryParams) =>
3860
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", id], queryParams),
3861
- verb: "DELETE",
3862
- };
3863
-
3864
- export const removeStoresFromCustomerRequest = {
3865
- name: "removeStoresFromCustomerRequest",
3866
- buildUrl: (scopeId, customerId, queryParams) => buildUrl(["customers", scopeId, customerId, "stores"], queryParams),
3867
- verb: "DELETE",
3868
- };
3869
-
3870
- export const removeUserFromGroupRequest = {
3871
- name: "removeUserFromGroupRequest",
3872
- buildUrl: (groupId, userName) => buildUrl(["groups", groupId, userName]),
3873
- verb: "DELETE",
3874
- };
3875
-
3876
- export const renderOrderShipmentTemplateRequest = {
3877
- name: "renderOrderShipmentTemplateRequest",
3878
- buildUrl: (scopeId, orderId, shipmentId, queryParams) =>
3879
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "renderTemplate"], queryParams),
3880
- verb: "GET",
3881
- };
3882
-
3883
- export const renderPrintableOrderDetailRequest = {
3884
- name: "renderPrintableOrderDetailRequest",
3885
- buildUrl: (scopeId, orderId, queryParams) =>
3886
- buildUrl(["orders", scopeId, orderId, "print", "renderTemplate"], queryParams),
3887
- verb: "GET",
3888
- };
3889
-
3890
- export const renderTemplateRequest = {
3891
- name: "renderTemplateRequest",
3892
- buildUrl: (scopeId, type, name) => buildUrl(["templates", scopeId, type, name, "render"]),
3893
- verb: "POST",
3894
- };
3895
-
3896
- export const repairProductInheritanceRequest = {
3897
- name: "repairProductInheritanceRequest",
3898
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, productId, "repairInheritance"]),
3899
- verb: "PUT",
3900
- };
3901
-
3902
- export const reportShipmentFulfillmentFailureRequest = {
3903
- name: "reportShipmentFulfillmentFailureRequest",
3904
- buildUrl: (scopeId, orderId, shipmentId) =>
3905
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "state", "failure"]),
3906
- verb: "POST",
3907
- };
3908
-
3909
- export const rescheduleRecurringCartRequest = {
3910
- name: "rescheduleRecurringCartRequest",
3911
- buildUrl: (scopeId, cartName) => buildUrl(["recurringOrders", scopeId, "cart", cartName, "reschedule"]),
3912
- verb: "PUT",
3913
- };
3914
-
3915
- export const reserveAvailabilitySlotRequest = {
3916
- name: "reserveAvailabilitySlotRequest",
3917
- buildUrl: fulfillmentLocationId => buildUrl(["fulfillmentLocations", "reserveSlot", fulfillmentLocationId]),
3918
- verb: "POST",
3919
- };
3920
-
3921
- export const reserveInventoryItemsRequest = {
3922
- name: "reserveInventoryItemsRequest",
3923
- buildUrl: ownerId => buildUrl(["inventoryItems", "reservations", ownerId]),
3924
- verb: "POST",
3925
- };
3926
-
3927
- export const reserveTimeSlotRequest = {
3928
- name: "reserveTimeSlotRequest",
3929
- buildUrl: (scopeId, customerId, cartName, shipmentId, timeSlotId) =>
3930
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", shipmentId, timeSlotId]),
3931
- verb: "POST",
3932
- };
3933
-
3934
- export const resetFulfillmentLocationTimeSlotsRequest = {
3935
- name: "resetFulfillmentLocationTimeSlotsRequest",
3936
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType) =>
3937
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots", "reset"]),
3938
- verb: "PUT",
3939
- };
3940
-
3941
- export const resetPasswordRequest = {
3942
- name: "resetPasswordRequest",
3943
- buildUrl: scopeId => buildUrl(["membership", scopeId, "ResetPassword"]),
3944
- verb: "POST",
3945
- };
3946
-
3947
- export const resetPaymentProviderStoreSettingsRequest = {
3948
- name: "resetPaymentProviderStoreSettingsRequest",
3949
- buildUrl: (scopeId, providerId, storeId) =>
3950
- buildUrl(["providers", scopeId, "payment", providerId, "storesSettings", storeId]),
3951
- verb: "DELETE",
3952
- };
3953
-
3954
- export const resetUserPasswordRequest = {
3955
- name: "resetUserPasswordRequest",
3956
- buildUrl: userName => buildUrl(["users", userName, "resetUserPassword"]),
3957
- verb: "PUT",
3958
- };
3959
-
3960
- export const restartShipmentFulfillmentProcessingRequest = {
3961
- name: "restartShipmentFulfillmentProcessingRequest",
3962
- buildUrl: (scopeId, orderId, shipmentId) =>
3963
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "fulfillmentState", "restartTask"]),
3964
- verb: "POST",
3965
- };
3966
-
3967
- export const resumeOrderRequest = {
3968
- name: "resumeOrderRequest",
3969
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId, "resume"]),
3970
- verb: "POST",
3971
- };
3972
-
3973
- export const revertProductChangesRequest = {
3974
- name: "revertProductChangesRequest",
3975
- buildUrl: scopeId => buildUrl(["products", scopeId, "revert"]),
3976
- verb: "POST",
3977
- };
3978
-
3979
- export const revokeAuthorizationRequest = {
3980
- name: "revokeAuthorizationRequest",
3981
- buildUrl: (roleId, objectId, queryParams) => buildUrl(["authorizations", roleId, objectId], queryParams),
3982
- verb: "DELETE",
3983
- };
3984
-
3985
- export const revokeAuthorizationsRequest = {
3986
- name: "revokeAuthorizationsRequest",
3987
- buildUrl: (objectId, queryParams) => buildUrl(["authorizations", objectId], queryParams),
3988
- verb: "DELETE",
3989
- };
3990
-
3991
- export const roleIsHierarchicalChildOfParentRolesRequest = {
3992
- name: "roleIsHierarchicalChildOfParentRolesRequest",
3993
- buildUrl: childRoleId => buildUrl(["roles", childRoleId, "childOf"]),
3994
- verb: "POST",
3995
- };
3996
-
3997
- export const saveCustomRoleRequest = {
3998
- name: "saveCustomRoleRequest",
3999
- buildUrl: roleId => buildUrl(["roles", "custom", roleId]),
4000
- verb: "PUT",
4001
- };
4002
-
4003
- export const saveGroupRequest = {
4004
- name: "saveGroupRequest",
4005
- buildUrl: groupId => buildUrl(["groups", groupId]),
4006
- verb: "PUT",
4007
- };
4008
-
4009
- export const saveOrderRequest = {
4010
- name: "saveOrderRequest",
4011
- buildUrl: (scopeId, orderId) => buildUrl(["orders", scopeId, orderId]),
4012
- verb: "POST",
4013
- };
4014
-
4015
- export const savePickingMissionAssemblyProgressRequest = {
4016
- name: "savePickingMissionAssemblyProgressRequest",
4017
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "saveAssemblyProgress"]),
4018
- verb: "PUT",
4019
- };
4020
-
4021
- export const saveProcessedOrderRequest = {
4022
- name: "saveProcessedOrderRequest",
4023
- buildUrl: (scopeId, orderId) => buildUrl(["processedOrders", scopeId, orderId]),
4024
- verb: "POST",
4025
- };
4026
-
4027
- export const saveUserApplicationRequest = {
4028
- name: "saveUserApplicationRequest",
4029
- buildUrl: applicationId => buildUrl(["my", "application", applicationId]),
4030
- verb: "POST",
4031
- };
4032
-
4033
- export const saveUserCultureRequest = {
4034
- name: "saveUserCultureRequest",
4035
- buildUrl: cultureIso => buildUrl(["my", "culture", cultureIso]),
4036
- verb: "POST",
4037
- };
4038
-
4039
- export const saveUserRequest = {
4040
- name: "saveUserRequest",
4041
- buildUrl: userName => buildUrl(["users", userName]),
4042
- verb: "PUT",
4043
- };
4044
-
4045
- export const saveUserScopeRequest = {
4046
- name: "saveUserScopeRequest",
4047
- buildUrl: (module, scopeId) => buildUrl(["my", "scope", module, scopeId]),
4048
- verb: "POST",
4049
- };
4050
-
4051
- export const scheduleTaskActivityRequest = {
4052
- name: "scheduleTaskActivityRequest",
4053
- buildUrl: (group, name) => buildUrl(["tasks", "scheduled", "activities", group, name]),
4054
- verb: "POST",
4055
- };
4056
-
4057
- export const scheduleTaskWorkflowRequest = {
4058
- name: "scheduleTaskWorkflowRequest",
4059
- buildUrl: (group, name) => buildUrl(["tasks", "scheduled", "workflows", group, name]),
4060
- verb: "POST",
4061
- };
4062
-
4063
- export const searchAvailableProductsByCategoryRequest = {
4064
- name: "searchAvailableProductsByCategoryRequest",
4065
- buildUrl: (scopeId, cultureName, categoryName) =>
4066
- buildUrl(["search", scopeId, cultureName, "availableProducts", "byCategory", categoryName]),
4067
- verb: "POST",
4068
- };
4069
-
4070
- export const searchAvailableProductsRequest = {
4071
- name: "searchAvailableProductsRequest",
4072
- buildUrl: (scopeId, cultureName) => buildUrl(["search", scopeId, cultureName, "availableProducts"]),
4073
- verb: "POST",
4074
- };
4075
-
4076
- export const searchBySearchQueryRequest = {
4077
- name: "searchBySearchQueryRequest",
4078
- buildUrl: (scopeId, cultureName, queryType, queryName) =>
4079
- buildUrl(["search", scopeId, cultureName, "bySearchQuery", queryType, queryName]),
4080
- verb: "POST",
4081
- };
4082
-
4083
- export const searchCustomersRequest = {
4084
- name: "searchCustomersRequest",
4085
- buildUrl: (scopeId, cultureName) => buildUrl(["search", scopeId, cultureName, "customers"]),
4086
- verb: "POST",
4087
- };
4088
-
4089
- export const searchProductByIdsRequest = {
4090
- name: "searchProductByIdsRequest",
4091
- buildUrl: (scopeId, cultureName) => buildUrl(["search", scopeId, cultureName, "products", "byIds"]),
4092
- verb: "POST",
4093
- };
4094
-
4095
- export const searchProductBySavedQueryRequest = {
4096
- name: "searchProductBySavedQueryRequest",
4097
- buildUrl: (scopeId, cultureName, queryId) =>
4098
- buildUrl(["search", scopeId, cultureName, "products", "bySavedQuery", queryId]),
4099
- verb: "POST",
4100
- };
4101
-
4102
- export const searchProductRequest = {
4103
- name: "searchProductRequest",
4104
- buildUrl: (scopeId, cultureName) => buildUrl(["search", scopeId, cultureName, "products"]),
4105
- verb: "POST",
4106
- };
4107
-
4108
- export const searchSimilarProductsRequest = {
4109
- name: "searchSimilarProductsRequest",
4110
- buildUrl: (scopeId, cultureName, productId) =>
4111
- buildUrl(["search", scopeId, cultureName, "products", "similar", productId]),
4112
- verb: "POST",
4113
- };
4114
-
4115
- export const sendEmailTemplateRequest = {
4116
- name: "sendEmailTemplateRequest",
4117
- buildUrl: (scopeId, name) => buildUrl(["templates", scopeId, name, "sendEmail"]),
4118
- verb: "POST",
4119
- };
4120
-
4121
- export const sendOrderReturnDocumentsNotificationRequest = {
4122
- name: "sendOrderReturnDocumentsNotificationRequest",
4123
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
4124
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "documents", "notify"]),
4125
- verb: "PUT",
4126
- };
4127
-
4128
- export const setAdjustmentOrderRequest = {
4129
- name: "setAdjustmentOrderRequest",
4130
- buildUrl: (scopeId, orderId, shipmentId) =>
4131
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "adjustment"]),
4132
- verb: "PUT",
4133
- };
4134
-
4135
- export const setAdjustmentRequest = {
4136
- name: "setAdjustmentRequest",
4137
- buildUrl: (scopeId, customerId, cartName, shipmentId) =>
4138
- buildUrl(["carts", scopeId, customerId, cartName, "shipments", shipmentId, "adjustment"]),
4139
- verb: "PUT",
4140
- };
4141
-
4142
- export const setApplicationVisibilityRequest = {
4143
- name: "setApplicationVisibilityRequest",
4144
- buildUrl: applicationId => buildUrl(["applications", applicationId, "visibility"]),
4145
- verb: "PUT",
4146
- };
4147
-
4148
- export const setDefaultCultureRequest = {
4149
- name: "setDefaultCultureRequest",
4150
- buildUrl: () => buildUrl(["cultures", "default"]),
4151
- verb: "PUT",
4152
- };
4153
-
4154
- export const setDefaultCustomerPaymentMethodRequest = {
4155
- name: "setDefaultCustomerPaymentMethodRequest",
4156
- buildUrl: (scopeId, customerId, paymentProviderName, paymentMethodId) =>
4157
- buildUrl(["customers", scopeId, customerId, paymentProviderName, "paymentMethods", paymentMethodId, "default"]),
4158
- verb: "PUT",
4159
- };
4160
-
4161
- export const setFulfillmentLocationInventoryManagementRequest = {
4162
- name: "setFulfillmentLocationInventoryManagementRequest",
4163
- buildUrl: (scopeId, fulfillmentLocationId) =>
4164
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "inventory"]),
4165
- verb: "PUT",
4166
- };
4167
-
4168
- export const setReportingTablesColumnsActiveStateRequest = {
4169
- name: "setReportingTablesColumnsActiveStateRequest",
4170
- buildUrl: (databaseName, schemaName, tableName) =>
4171
- buildUrl(["reporting", databaseName, schemaName, tableName, "columns", "activeState"]),
4172
- verb: "PUT",
4173
- };
4174
-
4175
- export const setSupportedCulturesRequest = {
4176
- name: "setSupportedCulturesRequest",
4177
- buildUrl: () => buildUrl(["cultures"]),
4178
- verb: "PUT",
4179
- };
4180
-
4181
- export const settlePaymentOrderRequest = {
4182
- name: "settlePaymentOrderRequest",
4183
- buildUrl: (scopeId, orderId, paymentId) => buildUrl(["orders", scopeId, orderId, "payments", paymentId, "settle"]),
4184
- verb: "POST",
4185
- };
4186
-
4187
- export const settlePaymentRequest = {
4188
- name: "settlePaymentRequest",
4189
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
4190
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "settle"]),
4191
- verb: "POST",
4192
- };
4193
-
4194
- export const shipmentSplitRequest = {
4195
- name: "shipmentSplitRequest",
4196
- buildUrl: (scopeId, orderId, shipmentId) => buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "split"]),
4197
- verb: "PUT",
4198
- };
4199
-
4200
- export const signInRequest = {
4201
- name: "signInRequest",
4202
- buildUrl: () => buildUrl(["authentication", "signin"]),
4203
- verb: "POST",
4204
- };
4205
-
4206
- export const signInWithCredentialsRequest = {
4207
- name: "signInWithCredentialsRequest",
4208
- buildUrl: () => buildUrl(["authentication", "signinwithcredentials"]),
4209
- verb: "POST",
4210
- };
4211
-
4212
- export const signInWithIssuedTokenRequest = {
4213
- name: "signInWithIssuedTokenRequest",
4214
- buildUrl: () => buildUrl(["authentication", "signinwithtoken"]),
4215
- verb: "POST",
4216
- };
4217
-
4218
- export const signInWithJWTRequest = {
4219
- name: "signInWithJWTRequest",
4220
- buildUrl: () => buildUrl(["authentication", "signinwithjwt"]),
4221
- verb: "POST",
4222
- };
4223
-
4224
- export const signOutRequest = {
4225
- name: "signOutRequest",
4226
- buildUrl: () => buildUrl(["authentication", "signout"]),
4227
- verb: "POST",
4228
- };
4229
-
4230
- export const startNewShipmentFulfillmentWorkflowRequest = {
4231
- name: "startNewShipmentFulfillmentWorkflowRequest",
4232
- buildUrl: (scopeId, orderId, shipmentId) =>
4233
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "fulfillmentState", "startNewWorkflow"]),
4234
- verb: "POST",
4235
- };
4236
-
4237
- export const startPickingMissionAssemblyRequest = {
4238
- name: "startPickingMissionAssemblyRequest",
4239
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "startAssembly"]),
4240
- verb: "POST",
4241
- };
4242
-
4243
- export const submitCampaignRequest = {
4244
- name: "submitCampaignRequest",
4245
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id, "submit"]),
4246
- verb: "POST",
4247
- };
4248
-
4249
- export const submitCartOrderDraftRequest = {
4250
- name: "submitCartOrderDraftRequest",
4251
- buildUrl: (scopeId, customerId, orderId) =>
4252
- buildUrl(["orders", scopeId, customerId, orderId, "orderDraft", "submit"]),
4253
- verb: "POST",
4254
- };
4255
-
4256
- export const syncProductRequest = {
4257
- name: "syncProductRequest",
4258
- buildUrl: (scopeId, productId) => buildUrl(["products", "sync", scopeId, productId]),
4259
- verb: "PUT",
4260
- };
4261
-
4262
- export const transferFulfillmentPackageItemsRequest = {
4263
- name: "transferFulfillmentPackageItemsRequest",
4264
- buildUrl: scopeId => buildUrl(["fulfillments", "packages", scopeId, "transferFulfillmentPackageItems"]),
4265
- verb: "POST",
4266
- };
4267
-
4268
- export const tryAcquireOrderLockForShipmentRequest = {
4269
- name: "tryAcquireOrderLockForShipmentRequest",
4270
- buildUrl: (scopeId, orderId) => buildUrl(["processedOrders", scopeId, orderId, "lock"]),
4271
- verb: "POST",
4272
- };
4273
-
4274
- export const unassignPickerFromPickingMissionRequest = {
4275
- name: "unassignPickerFromPickingMissionRequest",
4276
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id, "unassignPicker"]),
4277
- verb: "POST",
4278
- };
4279
-
4280
- export const unlockUserRequest = {
4281
- name: "unlockUserRequest",
4282
- buildUrl: (scopeId, userName) => buildUrl(["membership", scopeId, "UnlockUser", userName]),
4283
- verb: "POST",
4284
- };
4285
-
4286
- export const updateAddressRequest = {
4287
- name: "updateAddressRequest",
4288
- buildUrl: addressId => buildUrl(["addresses", addressId]),
4289
- verb: "PUT",
4290
- };
4291
-
4292
- export const updateBillingAddressRequest = {
4293
- name: "updateBillingAddressRequest",
4294
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
4295
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "billingAddress"]),
4296
- verb: "PUT",
4297
- };
4298
-
4299
- export const updateCampaignRequest = {
4300
- name: "updateCampaignRequest",
4301
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id]),
4302
- verb: "PUT",
4303
- };
4304
-
4305
- export const updateCampaignStatusRequest = {
4306
- name: "updateCampaignStatusRequest",
4307
- buildUrl: (scopeId, id) => buildUrl(["campaigns", scopeId, id, "status"]),
4308
- verb: "PUT",
4309
- };
4310
-
4311
- export const updateCarrierProviderRequest = {
4312
- name: "updateCarrierProviderRequest",
4313
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "carrier", id]),
4314
- verb: "PUT",
4315
- };
4316
-
4317
- export const updateCartRequest = {
4318
- name: "updateCartRequest",
4319
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName]),
4320
- verb: "PUT",
4321
- };
4322
-
4323
- export const updateCatalogRequest = {
4324
- name: "updateCatalogRequest",
4325
- buildUrl: catalogId => buildUrl(["catalogs", catalogId]),
4326
- verb: "PUT",
4327
- };
4328
-
4329
- export const updateCategoryDefinitionRequest = {
4330
- name: "updateCategoryDefinitionRequest",
4331
- buildUrl: name => buildUrl(["metadata", "definitions", "category", name]),
4332
- verb: "PUT",
4333
- };
4334
-
4335
- export const updateCategoryRequest = {
4336
- name: "updateCategoryRequest",
4337
- buildUrl: (scopeId, categoryId) => buildUrl(["categories", scopeId, categoryId]),
4338
- verb: "POST",
4339
- };
4340
-
4341
- export const updateCategorySequenceRequest = {
4342
- name: "updateCategorySequenceRequest",
4343
- buildUrl: (scopeId, categoryId) => buildUrl(["categories", scopeId, categoryId, "children", "sequence"]),
4344
- verb: "POST",
4345
- };
4346
-
4347
- export const updateCategoryV2Request = {
4348
- name: "updateCategoryV2Request",
4349
- buildUrl: (scopeId, categoryId) => buildUrl(["categories", "v2", scopeId, categoryId]),
4350
- verb: "PUT",
4351
- };
4352
-
4353
- export const updateCountryAndRegionsRequest = {
4354
- name: "updateCountryAndRegionsRequest",
4355
- buildUrl: isoCode => buildUrl(["countries", isoCode]),
4356
- verb: "PUT",
4357
- };
4358
-
4359
- export const updateCustomProfileRequest = {
4360
- name: "updateCustomProfileRequest",
4361
- buildUrl: (scopeId, entityTypeName, entityId) => buildUrl(["customProfiles", scopeId, entityTypeName, entityId]),
4362
- verb: "PUT",
4363
- };
4364
-
4365
- export const updateCustomerAddressRequest = {
4366
- name: "updateCustomerAddressRequest",
4367
- buildUrl: (customerId, addressId) => buildUrl(["addresses", "customer", customerId, addressId]),
4368
- verb: "PUT",
4369
- };
4370
-
4371
- export const updateCustomerLookupTypeDefinitionRequest = {
4372
- name: "updateCustomerLookupTypeDefinitionRequest",
4373
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "customer", lookupName]),
4374
- verb: "PUT",
4375
- };
4376
-
4377
- export const updateCustomerPaymentProfileRequest = {
4378
- name: "updateCustomerPaymentProfileRequest",
4379
- buildUrl: (scopeId, customerId, paymentProviderName) =>
4380
- buildUrl(["customers", scopeId, customerId, paymentProviderName, "paymentProfile"]),
4381
- verb: "PUT",
4382
- };
4383
-
4384
- export const updateCustomerRequest = {
4385
- name: "updateCustomerRequest",
4386
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId]),
4387
- verb: "PUT",
4388
- };
4389
-
4390
- export const updateCustomerSummaryRequest = {
4391
- name: "updateCustomerSummaryRequest",
4392
- buildUrl: (scopeId, customerId, cartName) => buildUrl(["carts", scopeId, customerId, cartName, "customer"]),
4393
- verb: "PUT",
4394
- };
4395
-
4396
- export const updateEntityTypeRequest = {
4397
- name: "updateEntityTypeRequest",
4398
- buildUrl: entityTypeName => buildUrl(["metadata", "EntityType", entityTypeName]),
4399
- verb: "PUT",
4400
- };
4401
-
4402
- export const updateFulfillmentLocationTimeSlotQuotaExceptionRequest = {
4403
- name: "updateFulfillmentLocationTimeSlotQuotaExceptionRequest",
4404
- buildUrl: (scopeId, fulfillmentLocationId, slotId, quotaExceptionId) =>
4405
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "quotaExceptions", slotId, quotaExceptionId]),
4406
- verb: "PUT",
4407
- };
4408
-
4409
- export const updateFulfillmentLocationTimeSlotRequest = {
4410
- name: "updateFulfillmentLocationTimeSlotRequest",
4411
- buildUrl: (scopeId, fulfillmentLocationId, fulfillmentMethodType, slotId) =>
4412
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, fulfillmentMethodType, "slots", slotId]),
4413
- verb: "PUT",
4414
- };
4415
-
4416
- export const updateFulfillmentLocationTimeSlotReservationRequest = {
4417
- name: "updateFulfillmentLocationTimeSlotReservationRequest",
4418
- buildUrl: (scopeId, fulfillmentLocationId, slotReservationId) =>
4419
- buildUrl(["fulfillmentLocations", scopeId, fulfillmentLocationId, "reservations", slotReservationId]),
4420
- verb: "PUT",
4421
- };
4422
-
4423
- export const updateFulfillmentPackageRequest = {
4424
- name: "updateFulfillmentPackageRequest",
4425
- buildUrl: (scopeId, id) => buildUrl(["fulfillments", "packages", scopeId, id]),
4426
- verb: "PUT",
4427
- };
4428
-
4429
- export const updateFulfillmentPackageTypeRequest = {
4430
- name: "updateFulfillmentPackageTypeRequest",
4431
- buildUrl: (scopeId, id) => buildUrl(["fulfillments", "packageTypes", scopeId, id]),
4432
- verb: "PUT",
4433
- };
4434
-
4435
- export const updateFulfillmentPackagesRequest = {
4436
- name: "updateFulfillmentPackagesRequest",
4437
- buildUrl: scopeId => buildUrl(["fulfillments", "packages", scopeId, "bulkupdate"]),
4438
- verb: "POST",
4439
- };
4440
-
4441
- export const updateFulfillmentProviderRequest = {
4442
- name: "updateFulfillmentProviderRequest",
4443
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "fulfillment", id]),
4444
- verb: "PUT",
4445
- };
4446
-
4447
- export const updateInventoryScheduleRequest = {
4448
- name: "updateInventoryScheduleRequest",
4449
- buildUrl: inventoryLocationId => buildUrl(["inventoryLocations", inventoryLocationId, "schedules"]),
4450
- verb: "PUT",
4451
- };
4452
-
4453
- export const updateLineItemRequest = {
4454
- name: "updateLineItemRequest",
4455
- buildUrl: (scopeId, customerId, cartName, id) => buildUrl(["carts", scopeId, customerId, cartName, "lineItems", id]),
4456
- verb: "PUT",
4457
- };
4458
-
4459
- export const updateMarketingLookupTypeDefinitionRequest = {
4460
- name: "updateMarketingLookupTypeDefinitionRequest",
4461
- buildUrl: lookupName => buildUrl(["metadata", "LookupType", "Marketing", lookupName]),
4462
- verb: "POST",
4463
- };
4464
-
4465
- export const updateMarketingSettingsRequest = {
4466
- name: "updateMarketingSettingsRequest",
4467
- buildUrl: () => buildUrl(["marketing", "settings"]),
4468
- verb: "PUT",
4469
- };
4470
-
4471
- export const updateMediaResizedInstancesRequest = {
4472
- name: "updateMediaResizedInstancesRequest",
4473
- buildUrl: (scopeId, productId, mediaId) => buildUrl(["products", scopeId, productId, "media", mediaId, "resized"]),
4474
- verb: "PUT",
4475
- };
4476
-
4477
- export const updateMediaSettingsRequest = {
4478
- name: "updateMediaSettingsRequest",
4479
- buildUrl: () => buildUrl(["products", "media", "settings"]),
4480
- verb: "PUT",
4481
- };
4482
-
4483
- export const updateOrderDraftPaymentRequest = {
4484
- name: "updateOrderDraftPaymentRequest",
4485
- buildUrl: (scopeId, draftId, paymentId) => buildUrl(["orderdraft", scopeId, draftId, "payment", paymentId]),
4486
- verb: "POST",
4487
- };
4488
-
4489
203
  export const updateOrderLookupTypeDefinitionRequest = {
4490
204
  name: "updateOrderLookupTypeDefinitionRequest",
4491
205
  buildUrl: lookupName => buildUrl(["metadata", "lookups", "order", lookupName]),
4492
206
  verb: "PUT",
4493
207
  };
4494
-
4495
- export const updateOrderReturnCustomerRequest = {
4496
- name: "updateOrderReturnCustomerRequest",
4497
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
4498
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "customer"]),
4499
- verb: "PUT",
4500
- };
4501
-
4502
- export const updateOrderReturnDocumentsRequest = {
4503
- name: "updateOrderReturnDocumentsRequest",
4504
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
4505
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "documents"]),
4506
- verb: "PUT",
4507
- };
4508
-
4509
- export const updateOrderReturnStatesRequest = {
4510
- name: "updateOrderReturnStatesRequest",
4511
- buildUrl: (scopeId, orderNumber, orderReturnNumber) =>
4512
- buildUrl(["orders", "returns", scopeId, orderNumber, orderReturnNumber, "states"]),
4513
- verb: "PUT",
4514
- };
4515
-
4516
- export const updateOrderReturnsProviderRequest = {
4517
- name: "updateOrderReturnsProviderRequest",
4518
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "orderReturns", id]),
4519
- verb: "PUT",
4520
- };
4521
-
4522
- export const updateOrderSettingsRequest = {
4523
- name: "updateOrderSettingsRequest",
4524
- buildUrl: () => buildUrl(["orders", "settings"]),
4525
- verb: "PUT",
4526
- };
4527
-
4528
- export const updateOrganizationRequest = {
4529
- name: "updateOrganizationRequest",
4530
- buildUrl: (scopeId, organizationId) => buildUrl(["organizations", scopeId, organizationId]),
4531
- verb: "PUT",
4532
- };
4533
-
4534
- export const updatePaymentAmountRequest = {
4535
- name: "updatePaymentAmountRequest",
4536
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
4537
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "amount"]),
4538
- verb: "PUT",
4539
- };
4540
-
4541
- export const updatePaymentMethodRequest = {
4542
- name: "updatePaymentMethodRequest",
4543
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
4544
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "method"]),
4545
- verb: "PUT",
4546
- };
4547
-
4548
- export const updatePaymentProviderRequest = {
4549
- name: "updatePaymentProviderRequest",
4550
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "payment", id]),
4551
- verb: "PUT",
4552
- };
4553
-
4554
- export const updatePaymentRequest = {
4555
- name: "updatePaymentRequest",
4556
- buildUrl: (scopeId, customerId, cartName, id) => buildUrl(["carts", scopeId, customerId, cartName, "payments", id]),
4557
- verb: "PUT",
4558
- };
4559
-
4560
- export const updatePickingMissionRequest = {
4561
- name: "updatePickingMissionRequest",
4562
- buildUrl: (scopeId, id) => buildUrl(["pickingMissions", scopeId, id]),
4563
- verb: "PUT",
4564
- };
4565
-
4566
- export const updatePreferredStoreRequest = {
4567
- name: "updatePreferredStoreRequest",
4568
- buildUrl: (scopeId, customerId) => buildUrl(["customers", scopeId, customerId, "preferred", "store"]),
4569
- verb: "PUT",
4570
- };
4571
-
4572
- export const updatePriceListEntryRequest = {
4573
- name: "updatePriceListEntryRequest",
4574
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, productId, "priceListEntries"]),
4575
- verb: "PUT",
4576
- };
4577
-
4578
- export const updatePriceListRequest = {
4579
- name: "updatePriceListRequest",
4580
- buildUrl: (scopeId, priceListId) => buildUrl(["products", scopeId, "priceLists", priceListId]),
4581
- verb: "PUT",
4582
- };
4583
-
4584
- export const updateProductAttributeGroupRequest = {
4585
- name: "updateProductAttributeGroupRequest",
4586
- buildUrl: name => buildUrl(["metadata", "attributegroups", "product", name]),
4587
- verb: "PUT",
4588
- };
4589
-
4590
- export const updateProductAttributeRequest = {
4591
- name: "updateProductAttributeRequest",
4592
- buildUrl: attributeName => buildUrl(["metadata", "attributes", "product", attributeName]),
4593
- verb: "PUT",
4594
- };
4595
-
4596
- export const updateProductDefinitionRequest = {
4597
- name: "updateProductDefinitionRequest",
4598
- buildUrl: name => buildUrl(["metadata", "definitions", "product", name]),
4599
- verb: "PUT",
4600
- };
4601
-
4602
- export const updateProductDraftRequest = {
4603
- name: "updateProductDraftRequest",
4604
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, "draft", productId]),
4605
- verb: "POST",
4606
- };
4607
-
4608
- export const updateProductLookupTypeDefinitionRequest = {
4609
- name: "updateProductLookupTypeDefinitionRequest",
4610
- buildUrl: lookupName => buildUrl(["metadata", "lookups", "product", lookupName]),
4611
- verb: "PUT",
4612
- };
4613
-
4614
- export const updateProductPublicationStatusRequest = {
4615
- name: "updateProductPublicationStatusRequest",
4616
- buildUrl: scopeId => buildUrl(["products", scopeId, "publicationStatus"]),
4617
- verb: "POST",
4618
- };
4619
-
4620
- export const updateProductRequest = {
4621
- name: "updateProductRequest",
4622
- buildUrl: (scopeId, productId) => buildUrl(["products", scopeId, productId]),
4623
- verb: "PUT",
4624
- };
4625
-
4626
- export const updateProductSettingsRequest = {
4627
- name: "updateProductSettingsRequest",
4628
- buildUrl: () => buildUrl(["products", "settings"]),
4629
- verb: "PUT",
4630
- };
4631
-
4632
- export const updateProfileAttributeGroupRequest = {
4633
- name: "updateProfileAttributeGroupRequest",
4634
- buildUrl: name => buildUrl(["metadata", "attributegroups", "profile", name]),
4635
- verb: "PUT",
4636
- };
4637
-
4638
- export const updatePromotionRequest = {
4639
- name: "updatePromotionRequest",
4640
- buildUrl: (scopeId, campaignId, promotionId) =>
4641
- buildUrl(["campaigns", scopeId, campaignId, "promotions", promotionId]),
4642
- verb: "PUT",
4643
- };
4644
-
4645
- export const updateRecurringOrderProgramRequest = {
4646
- name: "updateRecurringOrderProgramRequest",
4647
- buildUrl: recurringOrderProgramName => buildUrl(["recurringOrders", "programs", recurringOrderProgramName]),
4648
- verb: "PUT",
4649
- };
4650
-
4651
- export const updateRoleRequest = {
4652
- name: "updateRoleRequest",
4653
- buildUrl: id => buildUrl(["roles", id]),
4654
- verb: "PUT",
4655
- };
4656
-
4657
- export const updateRoutingProviderRequest = {
4658
- name: "updateRoutingProviderRequest",
4659
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "routing", id]),
4660
- verb: "PUT",
4661
- };
4662
-
4663
- export const updateScopeAssociationsRequest = {
4664
- name: "updateScopeAssociationsRequest",
4665
- buildUrl: (scopeId, entityTypeName, entityId) =>
4666
- buildUrl(["customProfiles", scopeId, entityTypeName, entityId, "scopes"]),
4667
- verb: "PUT",
4668
- };
4669
-
4670
- export const updateScopeRequest = {
4671
- name: "updateScopeRequest",
4672
- buildUrl: scopeId => buildUrl(["scopes", scopeId]),
4673
- verb: "PUT",
4674
- };
4675
-
4676
- export const updateSearchQueryRequest = {
4677
- name: "updateSearchQueryRequest",
4678
- buildUrl: (scopeId, queryType, name) => buildUrl(["searchqueries", scopeId, queryType, name]),
4679
- verb: "PUT",
4680
- };
4681
-
4682
- export const updateSegmentRequest = {
4683
- name: "updateSegmentRequest",
4684
- buildUrl: () => buildUrl(["segment"]),
4685
- verb: "PUT",
4686
- };
4687
-
4688
- export const updateShipmentDocumentRequest = {
4689
- name: "updateShipmentDocumentRequest",
4690
- buildUrl: (scopeId, orderId, shipmentId, name) =>
4691
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "documents", name]),
4692
- verb: "PUT",
4693
- };
4694
-
4695
- export const updateShipmentFulfillmentStateRequest = {
4696
- name: "updateShipmentFulfillmentStateRequest",
4697
- buildUrl: (scopeId, orderId, shipmentId) => buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "state"]),
4698
- verb: "PUT",
4699
- };
4700
-
4701
- export const updateShipmentFulfillmentWorkflowXamlPathRequest = {
4702
- name: "updateShipmentFulfillmentWorkflowXamlPathRequest",
4703
- buildUrl: (scopeId, orderId, shipmentId) =>
4704
- buildUrl(["orders", scopeId, orderId, "shipments", shipmentId, "WorkflowXamlPath"]),
4705
- verb: "PUT",
4706
- };
4707
-
4708
- export const updateShipmentRequest = {
4709
- name: "updateShipmentRequest",
4710
- buildUrl: (scopeId, customerId, cartName, id) => buildUrl(["carts", scopeId, customerId, cartName, "shipments", id]),
4711
- verb: "PUT",
4712
- };
4713
-
4714
- export const updateStoreRequest = {
4715
- name: "updateStoreRequest",
4716
- buildUrl: (scopeId, storeId) => buildUrl(["stores", scopeId, storeId]),
4717
- verb: "PUT",
4718
- };
4719
-
4720
- export const updateStoreScopeAssociationRequest = {
4721
- name: "updateStoreScopeAssociationRequest",
4722
- buildUrl: (scopeId, id) => buildUrl(["stores", scopeId, id, "associatedScope"]),
4723
- verb: "PUT",
4724
- };
4725
-
4726
- export const updateTaxCategoryRequest = {
4727
- name: "updateTaxCategoryRequest",
4728
- buildUrl: id => buildUrl(["taxes", "taxCategory", id]),
4729
- verb: "PUT",
4730
- };
4731
-
4732
- export const updateTaxJurisdictionGroupRequest = {
4733
- name: "updateTaxJurisdictionGroupRequest",
4734
- buildUrl: id => buildUrl(["taxes", "jurisdictionGroups", id]),
4735
- verb: "PUT",
4736
- };
4737
-
4738
- export const updateTaxJurisdictionGroupsAssociatedJurisdictionsRequest = {
4739
- name: "updateTaxJurisdictionGroupsAssociatedJurisdictionsRequest",
4740
- buildUrl: id => buildUrl(["taxes", "jurisdictionGroups", id, "associatedJurisdictions"]),
4741
- verb: "PUT",
4742
- };
4743
-
4744
- export const updateTaxJurisdictionRequest = {
4745
- name: "updateTaxJurisdictionRequest",
4746
- buildUrl: id => buildUrl(["taxes", "jurisdictions", id]),
4747
- verb: "PUT",
4748
- };
4749
-
4750
- export const updateTaxProviderRequest = {
4751
- name: "updateTaxProviderRequest",
4752
- buildUrl: (scopeId, id) => buildUrl(["providers", scopeId, "tax", id]),
4753
- verb: "PUT",
4754
- };
4755
-
4756
- export const updateTaxRateRequest = {
4757
- name: "updateTaxRateRequest",
4758
- buildUrl: (scopeId, id) => buildUrl(["taxes", "rates", scopeId, id]),
4759
- verb: "PUT",
4760
- };
4761
-
4762
- export const updateTemplateRequest = {
4763
- name: "updateTemplateRequest",
4764
- buildUrl: (scopeId, type, name, culture) => buildUrl(["templates", scopeId, type, name, culture]),
4765
- verb: "PUT",
4766
- };
4767
-
4768
- export const updateVariantsPriceListEntryRequest = {
4769
- name: "updateVariantsPriceListEntryRequest",
4770
- buildUrl: (scopeId, productId, priceListId) =>
4771
- buildUrl(["products", scopeId, productId, "variantsPrices", priceListId]),
4772
- verb: "PUT",
4773
- };
4774
-
4775
- export const updateWarehouseRequest = {
4776
- name: "updateWarehouseRequest",
4777
- buildUrl: (scopeId, id) => buildUrl(["warehouses", scopeId, id]),
4778
- verb: "PUT",
4779
- };
4780
-
4781
- export const updateWarehouseScopeAssociationsRequest = {
4782
- name: "updateWarehouseScopeAssociationsRequest",
4783
- buildUrl: (scopeId, id) => buildUrl(["warehouses", scopeId, id, "associatedScopes"]),
4784
- verb: "PUT",
4785
- };
4786
-
4787
- export const uploadMediaRequest = {
4788
- name: "uploadMediaRequest",
4789
- buildUrl: (scopeId, productId) => buildUrl(["products", "media", scopeId, productId, "upload"]),
4790
- verb: "POST",
4791
- };
4792
-
4793
- export const validatePromoCodeRequest = {
4794
- name: "validatePromoCodeRequest",
4795
- buildUrl: (scopeId, promotionId, promoCode) =>
4796
- buildUrl(["promotions", scopeId, promotionId, "promoCodes", promoCode, "validate"]),
4797
- verb: "POST",
4798
- };
4799
-
4800
- export const validateUserRequest = {
4801
- name: "validateUserRequest",
4802
- buildUrl: scopeId => buildUrl(["membership", scopeId, "Validate"]),
4803
- verb: "PUT",
4804
- };
4805
-
4806
- export const voidPaymentRequest = {
4807
- name: "voidPaymentRequest",
4808
- buildUrl: (scopeId, customerId, cartName, paymentId) =>
4809
- buildUrl(["carts", scopeId, customerId, cartName, "payments", paymentId, "void"]),
4810
- verb: "POST",
4811
- };