@viu/emporix-sdk 2.35.0 → 2.36.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.
- package/CHANGELOG.md +94 -0
- package/README.md +22 -8
- package/dist/cart.d.cts +21 -3
- package/dist/cart.d.ts +21 -3
- package/dist/category.d.cts +4 -0
- package/dist/category.d.ts +4 -0
- package/dist/companies.d.cts +2 -2
- package/dist/companies.d.ts +2 -2
- package/dist/contacts.d.cts +1 -1
- package/dist/contacts.d.ts +1 -1
- package/dist/{customer-groups-D0OCm8kJ.d.cts → customer-groups-BfHDqExS.d.cts} +2 -0
- package/dist/{customer-groups-WSt4aT62.d.ts → customer-groups-Cs6-Cwzg.d.ts} +2 -0
- package/dist/customer-groups.d.cts +1 -1
- package/dist/customer-groups.d.ts +1 -1
- package/dist/customer.d.cts +20 -0
- package/dist/customer.d.ts +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +683 -29
- package/dist/index.d.ts +683 -29
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locations.d.cts +2 -2
- package/dist/locations.d.ts +2 -2
- package/dist/media.d.cts +24 -0
- package/dist/media.d.ts +24 -0
- package/dist/orders.d.cts +147 -9
- package/dist/orders.d.ts +147 -9
- package/dist/payment.d.cts +39 -0
- package/dist/payment.d.ts +39 -0
- package/dist/price.d.cts +45 -0
- package/dist/price.d.ts +45 -0
- package/dist/product.d.cts +20 -0
- package/dist/product.d.ts +20 -0
- package/dist/{types.gen-C_wOXYZB.d.cts → types.gen-fWB4nrso.d.cts} +52 -0
- package/dist/{types.gen-C_wOXYZB.d.ts → types.gen-fWB4nrso.d.ts} +52 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -21,14 +21,14 @@ export { Segment, SegmentAssignmentBulkResult, SegmentBulkItem, SegmentBulkResul
|
|
|
21
21
|
import { CompaniesService } from './companies.js';
|
|
22
22
|
import { ContactsService } from './contacts.js';
|
|
23
23
|
import { LocationsService } from './locations.js';
|
|
24
|
-
import { m as UserResponse, U as UserCreateRequest, l as UserIdResponse, k as UserExtendedResponse, o as UserUpdateRequest, j as GroupsQueryDocument, n as UserScopesResponse, a as AccessControlQueryDocument, G as GroupCreateRequest, h as GroupIdResponse, i as GroupUpdateRequest, c as AssignmentCreateRequest, d as AssignmentIdResponse, b as AccessControlUpsertRequest, A as AccessControlIdResponse, e as CustomScopeQueryDocument, f as CustomScopeUpsertRequest, C as CustomScopeIdResponse, g as CustomerGroupsService } from './customer-groups-
|
|
24
|
+
import { m as UserResponse, U as UserCreateRequest, l as UserIdResponse, k as UserExtendedResponse, o as UserUpdateRequest, j as GroupsQueryDocument, n as UserScopesResponse, a as AccessControlQueryDocument, G as GroupCreateRequest, h as GroupIdResponse, i as GroupUpdateRequest, c as AssignmentCreateRequest, d as AssignmentIdResponse, b as AccessControlUpsertRequest, A as AccessControlIdResponse, e as CustomScopeQueryDocument, f as CustomScopeUpsertRequest, C as CustomScopeIdResponse, g as CustomerGroupsService } from './customer-groups-Cs6-Cwzg.js';
|
|
25
25
|
import { OrdersService, SalesOrdersService } from './orders.js';
|
|
26
26
|
export { GetOrderOptions, ListLegalEntityOrdersOptions, ListMyOrdersOptions, ListSalesOrdersOptions, Order, OrderEntry, OrderStatus, OrderTransitionOptions, SalesOrder, SalesOrderCalculationInput, SalesOrderCreateInput, SalesOrderCreated, SalesOrderEntriesInput, SalesOrderHistoricalTransitions, SalesOrderPatch, SalesOrderReplaceInput, SalesOrderSearchInput, SalesOrderSplitInput, SalesOrderSplitResult, Transition, UpdateSalesOrderOptions } from './orders.js';
|
|
27
27
|
import { AvailabilityService } from './availability.js';
|
|
28
28
|
export { Availability, AvailabilityBulkDeleteInput, AvailabilityBulkInput, AvailabilityBulkResult, AvailabilityCreated, AvailabilityInput, AvailabilityOptions } from './availability.js';
|
|
29
29
|
import { a as QueryFor } from './query-mLQs2WFr.js';
|
|
30
30
|
export { B as BuiltQuery, Q as QueryCapability, r as resolveQuery } from './query-mLQs2WFr.js';
|
|
31
|
-
export { A as AccountLimit, C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate, c as ContactDetails, d as CustomerGroup, L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate, g as LegalInfo, h as Location, i as LocationCreate, j as LocationUpdate } from './types.gen-
|
|
31
|
+
export { A as AccountLimit, C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate, c as ContactDetails, d as CustomerGroup, L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate, g as LegalInfo, h as Location, i as LocationCreate, j as LocationUpdate } from './types.gen-fWB4nrso.js';
|
|
32
32
|
|
|
33
33
|
/** Base class for every error thrown by the SDK. */
|
|
34
34
|
declare class EmporixError extends Error {
|
|
@@ -235,6 +235,8 @@ declare function createServerStorage(jar: ServerCookieJar): EmporixStorage;
|
|
|
235
235
|
declare function serverAuth(storage: EmporixStorage): AuthContext;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
|
+
* Address
|
|
239
|
+
*
|
|
238
240
|
* Site address.
|
|
239
241
|
*/
|
|
240
242
|
type AddressDto = {
|
|
@@ -254,6 +256,9 @@ type AddressDto = {
|
|
|
254
256
|
* Currency used by the site, compliant with the ISO 4217 standard.
|
|
255
257
|
*/
|
|
256
258
|
type CurrencyDto = string;
|
|
259
|
+
/**
|
|
260
|
+
* Metadata
|
|
261
|
+
*/
|
|
257
262
|
type DefaultDtoMetadata$1 = {
|
|
258
263
|
/**
|
|
259
264
|
* Mixin schema URLs.
|
|
@@ -264,6 +269,8 @@ type DefaultDtoMetadata$1 = {
|
|
|
264
269
|
version?: number;
|
|
265
270
|
};
|
|
266
271
|
/**
|
|
272
|
+
* HomeBase
|
|
273
|
+
*
|
|
267
274
|
* Site location.
|
|
268
275
|
*/
|
|
269
276
|
type HomeBaseDto = {
|
|
@@ -286,6 +293,8 @@ type HomeBaseDto = {
|
|
|
286
293
|
timezone?: string;
|
|
287
294
|
};
|
|
288
295
|
/**
|
|
296
|
+
* Location
|
|
297
|
+
*
|
|
289
298
|
* Site geographical location.
|
|
290
299
|
*/
|
|
291
300
|
type LocationDto = {
|
|
@@ -293,6 +302,8 @@ type LocationDto = {
|
|
|
293
302
|
longitude?: number;
|
|
294
303
|
};
|
|
295
304
|
/**
|
|
305
|
+
* Site
|
|
306
|
+
*
|
|
296
307
|
* Information about the site.
|
|
297
308
|
*/
|
|
298
309
|
type SiteDto = {
|
|
@@ -366,6 +377,9 @@ type SiteDto = {
|
|
|
366
377
|
*/
|
|
367
378
|
cartCalculationScale?: number;
|
|
368
379
|
};
|
|
380
|
+
/**
|
|
381
|
+
* Service Configuration
|
|
382
|
+
*/
|
|
369
383
|
type ServiceConfigurationDto = {
|
|
370
384
|
/**
|
|
371
385
|
* Service configuration's unique identifier.
|
|
@@ -383,6 +397,9 @@ type ServiceConfigurationDto = {
|
|
|
383
397
|
active?: boolean;
|
|
384
398
|
configuration?: ServiceSettingsDto;
|
|
385
399
|
};
|
|
400
|
+
/**
|
|
401
|
+
* Service Settings
|
|
402
|
+
*/
|
|
386
403
|
type ServiceSettingsDto = {
|
|
387
404
|
public?: {
|
|
388
405
|
[key: string]: unknown;
|
|
@@ -391,6 +408,9 @@ type ServiceSettingsDto = {
|
|
|
391
408
|
[key: string]: unknown;
|
|
392
409
|
};
|
|
393
410
|
};
|
|
411
|
+
/**
|
|
412
|
+
* ResourceLocation
|
|
413
|
+
*/
|
|
394
414
|
type ResourceLocation$2 = {
|
|
395
415
|
/**
|
|
396
416
|
* Resource identifier.
|
|
@@ -398,17 +418,24 @@ type ResourceLocation$2 = {
|
|
|
398
418
|
id?: string;
|
|
399
419
|
};
|
|
400
420
|
/**
|
|
421
|
+
* Mixin
|
|
422
|
+
*
|
|
401
423
|
* Represents a single mixin. The payload is represented as a map with a single key and value, where key represents a mixin group name and value represents a map with keys and values.
|
|
402
424
|
*/
|
|
403
425
|
type Mixin = {
|
|
404
426
|
[key: string]: unknown;
|
|
405
427
|
};
|
|
406
428
|
/**
|
|
429
|
+
* Mixins
|
|
430
|
+
*
|
|
407
431
|
* Represents mixins. The object is represented as a map with keys and values, where key represents a mixin group name and value represents a map with keys and values.
|
|
408
432
|
*/
|
|
409
433
|
type Mixins = {
|
|
410
434
|
[key: string]: unknown;
|
|
411
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* AssistedBuying
|
|
438
|
+
*/
|
|
412
439
|
type AssistedBuying$1 = {
|
|
413
440
|
/**
|
|
414
441
|
* Storefront URL, where an employee should be redirected when the assisted buying mechanism is used.
|
|
@@ -510,6 +537,8 @@ declare class SiteService {
|
|
|
510
537
|
}
|
|
511
538
|
|
|
512
539
|
/**
|
|
540
|
+
* ContextAttribute
|
|
541
|
+
*
|
|
513
542
|
* Context attribute
|
|
514
543
|
*/
|
|
515
544
|
type ContextAttribute = {
|
|
@@ -530,6 +559,8 @@ type SessionContextGet = SessionContextBase & {
|
|
|
530
559
|
metadata?: Metadata$9;
|
|
531
560
|
};
|
|
532
561
|
/**
|
|
562
|
+
* SessionContextPartialUpdateRequest
|
|
563
|
+
*
|
|
533
564
|
* Request body for partially updating own session context (PATCH /me/context).
|
|
534
565
|
* Only the following fields can be updated; all other fields are ignored.
|
|
535
566
|
*
|
|
@@ -554,6 +585,9 @@ type SessionContextPatch$1 = {
|
|
|
554
585
|
context?: Context;
|
|
555
586
|
metadata: MetadataUpdate$2;
|
|
556
587
|
};
|
|
588
|
+
/**
|
|
589
|
+
* SessionContextBase
|
|
590
|
+
*/
|
|
557
591
|
type SessionContextBase = {
|
|
558
592
|
/**
|
|
559
593
|
* Unique identifier of the customer's session.
|
|
@@ -593,6 +627,9 @@ type SessionContextBase = {
|
|
|
593
627
|
*/
|
|
594
628
|
language?: string;
|
|
595
629
|
};
|
|
630
|
+
/**
|
|
631
|
+
* Metadata
|
|
632
|
+
*/
|
|
596
633
|
type MetadataUpdate$2 = {
|
|
597
634
|
/**
|
|
598
635
|
* Version of the session context object.
|
|
@@ -609,6 +646,9 @@ type Metadata$9 = MetadataUpdate$2 & {
|
|
|
609
646
|
*/
|
|
610
647
|
modifiedAt?: string;
|
|
611
648
|
};
|
|
649
|
+
/**
|
|
650
|
+
* Context
|
|
651
|
+
*/
|
|
612
652
|
type Context = {
|
|
613
653
|
[key: string]: {
|
|
614
654
|
[key: string]: unknown;
|
|
@@ -737,6 +777,9 @@ declare class IamService {
|
|
|
737
777
|
};
|
|
738
778
|
}
|
|
739
779
|
|
|
780
|
+
/**
|
|
781
|
+
* BaseConfiguration
|
|
782
|
+
*/
|
|
740
783
|
type BaseConfiguration = {
|
|
741
784
|
/**
|
|
742
785
|
* Configuration key.
|
|
@@ -934,11 +977,13 @@ type MetadataFilter$1 = {
|
|
|
934
977
|
key?: string;
|
|
935
978
|
/**
|
|
936
979
|
* Name of the field.
|
|
980
|
+
*
|
|
937
981
|
* @deprecated
|
|
938
982
|
*/
|
|
939
983
|
name?: string;
|
|
940
984
|
/**
|
|
941
985
|
* Description of the field.
|
|
986
|
+
*
|
|
942
987
|
* @deprecated
|
|
943
988
|
*/
|
|
944
989
|
description?: string;
|
|
@@ -1248,6 +1293,8 @@ type Fee$2 = {
|
|
|
1248
1293
|
yrn?: Yrn;
|
|
1249
1294
|
};
|
|
1250
1295
|
/**
|
|
1296
|
+
* Monetary Amount
|
|
1297
|
+
*
|
|
1251
1298
|
* Schema defining monetary amount in given currency.
|
|
1252
1299
|
*/
|
|
1253
1300
|
type MonetaryAmount$1 = {
|
|
@@ -1261,6 +1308,8 @@ type MonetaryAmount$1 = {
|
|
|
1261
1308
|
currency: string;
|
|
1262
1309
|
};
|
|
1263
1310
|
/**
|
|
1311
|
+
* Timespan
|
|
1312
|
+
*
|
|
1264
1313
|
* Restricts the active fees to be only applied in the specified
|
|
1265
1314
|
* timespan.
|
|
1266
1315
|
*/
|
|
@@ -1287,6 +1336,8 @@ type ItemFee$1 = {
|
|
|
1287
1336
|
feeIds: Array<string>;
|
|
1288
1337
|
};
|
|
1289
1338
|
/**
|
|
1339
|
+
* YRN
|
|
1340
|
+
*
|
|
1290
1341
|
* A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
|
|
1291
1342
|
*/
|
|
1292
1343
|
type Yrn = string;
|
|
@@ -1636,6 +1687,8 @@ type WebhookConfigCreation = WebhookConfigUpdate & {
|
|
|
1636
1687
|
code: ConfigCode;
|
|
1637
1688
|
};
|
|
1638
1689
|
/**
|
|
1690
|
+
* Webhook event
|
|
1691
|
+
*
|
|
1639
1692
|
* Events that you can subscribe to.
|
|
1640
1693
|
*/
|
|
1641
1694
|
type WebhookEvent = {
|
|
@@ -1669,6 +1722,8 @@ type WebhookEvent = {
|
|
|
1669
1722
|
};
|
|
1670
1723
|
};
|
|
1671
1724
|
/**
|
|
1725
|
+
* Webhook subscription
|
|
1726
|
+
*
|
|
1672
1727
|
* Subscription per event.
|
|
1673
1728
|
*/
|
|
1674
1729
|
type WebhookSubscription$1 = {
|
|
@@ -1684,6 +1739,8 @@ type WebhookSubscription$1 = {
|
|
|
1684
1739
|
excludedFields?: Array<string>;
|
|
1685
1740
|
};
|
|
1686
1741
|
/**
|
|
1742
|
+
* Webhook subscription update item
|
|
1743
|
+
*
|
|
1687
1744
|
* Object used to subscribe to/unsubscribe from an event.
|
|
1688
1745
|
*/
|
|
1689
1746
|
type WebhookSubscriptionUpdateItem$1 = {
|
|
@@ -1706,6 +1763,8 @@ type WebhookSubscriptionUpdateItem$1 = {
|
|
|
1706
1763
|
fieldsToSubscribe?: Array<string>;
|
|
1707
1764
|
};
|
|
1708
1765
|
/**
|
|
1766
|
+
* Metadata
|
|
1767
|
+
*
|
|
1709
1768
|
* Auditing details.
|
|
1710
1769
|
*/
|
|
1711
1770
|
type Metadata$8 = {
|
|
@@ -1723,6 +1782,8 @@ type Metadata$8 = {
|
|
|
1723
1782
|
version?: number;
|
|
1724
1783
|
};
|
|
1725
1784
|
/**
|
|
1785
|
+
* Metadata for update
|
|
1786
|
+
*
|
|
1726
1787
|
* Auditing details.
|
|
1727
1788
|
*/
|
|
1728
1789
|
type MetadataForUpdate = {
|
|
@@ -1732,6 +1793,8 @@ type MetadataForUpdate = {
|
|
|
1732
1793
|
version?: number;
|
|
1733
1794
|
};
|
|
1734
1795
|
/**
|
|
1796
|
+
* Update subscription result response
|
|
1797
|
+
*
|
|
1735
1798
|
* Object containing the result of event subscription.
|
|
1736
1799
|
*/
|
|
1737
1800
|
type UpdateSubscriptionResponse = {
|
|
@@ -1750,6 +1813,9 @@ type DashboardAccess = {
|
|
|
1750
1813
|
*/
|
|
1751
1814
|
token?: string;
|
|
1752
1815
|
};
|
|
1816
|
+
/**
|
|
1817
|
+
* Webhook monthly statistics
|
|
1818
|
+
*/
|
|
1753
1819
|
type MonthStatistics = {
|
|
1754
1820
|
/**
|
|
1755
1821
|
* Month for which statistics should be retrieved, provided in the "YYYY-MM" format.
|
|
@@ -1760,6 +1826,9 @@ type MonthStatistics = {
|
|
|
1760
1826
|
*/
|
|
1761
1827
|
succesfullySentWebhooks?: number;
|
|
1762
1828
|
};
|
|
1829
|
+
/**
|
|
1830
|
+
* Webhooks limit statistics
|
|
1831
|
+
*/
|
|
1763
1832
|
type WebhookStatistics$1 = {
|
|
1764
1833
|
monthStatistics?: Array<MonthStatistics>;
|
|
1765
1834
|
/**
|
|
@@ -2168,12 +2237,6 @@ type CustomInstanceResponse = {
|
|
|
2168
2237
|
* Unique identifier of the custom instance.
|
|
2169
2238
|
*/
|
|
2170
2239
|
id?: string;
|
|
2171
|
-
/**
|
|
2172
|
-
* Localized custom type name in a form of a map of translations.
|
|
2173
|
-
*/
|
|
2174
|
-
name?: {
|
|
2175
|
-
[key: string]: unknown;
|
|
2176
|
-
};
|
|
2177
2240
|
/**
|
|
2178
2241
|
* Custom schema type to which custom instance is related.
|
|
2179
2242
|
*/
|
|
@@ -2600,6 +2663,8 @@ type AgenticRequest = {
|
|
|
2600
2663
|
*/
|
|
2601
2664
|
type AgentType = 'generic' | 'complaint' | 'anti_fraud';
|
|
2602
2665
|
/**
|
|
2666
|
+
* TextGenerationRequest
|
|
2667
|
+
*
|
|
2603
2668
|
* Represents a request body for a text generation operation.
|
|
2604
2669
|
*/
|
|
2605
2670
|
type TextGenerationRequest = {
|
|
@@ -3004,10 +3069,7 @@ type McpServerConfigRequest = McpServerConfig & {
|
|
|
3004
3069
|
type McpServerConfigResponse = McpServerConfig & {
|
|
3005
3070
|
authorizationHeaderToken?: ExpandableTokenResponse;
|
|
3006
3071
|
};
|
|
3007
|
-
|
|
3008
|
-
* An object representing customer's own implementation of the MCP server.
|
|
3009
|
-
*/
|
|
3010
|
-
type BaseMcpServer = {
|
|
3072
|
+
type BaseManagedMcpServer = {
|
|
3011
3073
|
/**
|
|
3012
3074
|
* Name of the MCP server.
|
|
3013
3075
|
*/
|
|
@@ -3018,14 +3080,160 @@ type BaseMcpServer = {
|
|
|
3018
3080
|
enabled?: boolean;
|
|
3019
3081
|
transport?: CustomMcpServerTransportType;
|
|
3020
3082
|
};
|
|
3021
|
-
|
|
3083
|
+
/**
|
|
3084
|
+
* Type of the managed MCP server resource. Possible values:
|
|
3085
|
+
* * `custom`
|
|
3086
|
+
* * `dynamic`
|
|
3087
|
+
*
|
|
3088
|
+
* **The `dynamic` value is in preview mode** - some of the features may not be fully operational yet.
|
|
3089
|
+
*/
|
|
3090
|
+
type ManagedMcpServerType = 'custom' | 'dynamic';
|
|
3091
|
+
/**
|
|
3092
|
+
* HTTP method used to invoke the Automation function.
|
|
3093
|
+
*/
|
|
3094
|
+
type McpToolInvocationMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3095
|
+
/**
|
|
3096
|
+
* Location of the tool arguments in the HTTP request. Defaults to `body` when omitted.
|
|
3097
|
+
*/
|
|
3098
|
+
type McpToolInvocationArgsLocation = 'body' | 'query';
|
|
3099
|
+
type McpToolInvocationRequest = {
|
|
3100
|
+
/**
|
|
3101
|
+
* Identifier of the Automation function to invoke when the tool is called.
|
|
3102
|
+
*/
|
|
3103
|
+
functionId: string;
|
|
3104
|
+
method: McpToolInvocationMethod;
|
|
3105
|
+
argsLocation?: McpToolInvocationArgsLocation;
|
|
3106
|
+
};
|
|
3107
|
+
type McpToolInvocationResponse = {
|
|
3108
|
+
/**
|
|
3109
|
+
* Identifier of the Automation function to invoke when the tool is called.
|
|
3110
|
+
*/
|
|
3111
|
+
functionId?: string;
|
|
3112
|
+
method?: McpToolInvocationMethod;
|
|
3113
|
+
argsLocation?: McpToolInvocationArgsLocation;
|
|
3114
|
+
};
|
|
3115
|
+
type McpToolConfigRequest = {
|
|
3116
|
+
/**
|
|
3117
|
+
* OAuth scopes required to invoke the tool.
|
|
3118
|
+
*/
|
|
3119
|
+
requiredScopes?: Array<string>;
|
|
3120
|
+
/**
|
|
3121
|
+
* JSON Schema document describing the tool input, provided as a JSON string.
|
|
3122
|
+
*/
|
|
3123
|
+
inputSchema: string;
|
|
3124
|
+
invocation: McpToolInvocationRequest;
|
|
3125
|
+
};
|
|
3126
|
+
type McpToolConfigResponse = {
|
|
3127
|
+
/**
|
|
3128
|
+
* OAuth scopes required to invoke the tool.
|
|
3129
|
+
*/
|
|
3130
|
+
requiredScopes?: Array<string>;
|
|
3131
|
+
/**
|
|
3132
|
+
* JSON Schema document describing the tool input, provided as a JSON string.
|
|
3133
|
+
*/
|
|
3134
|
+
inputSchema?: string;
|
|
3135
|
+
invocation?: McpToolInvocationResponse;
|
|
3136
|
+
};
|
|
3137
|
+
/**
|
|
3138
|
+
* Tool definition for a dynamic MCP server.
|
|
3139
|
+
*
|
|
3140
|
+
* **Dynamic MCP tools are in preview mode** - some of the features may not be fully operational yet.
|
|
3141
|
+
*/
|
|
3142
|
+
type McpToolRequest = {
|
|
3143
|
+
/**
|
|
3144
|
+
* Unique name of the tool. Must not contain whitespace characters.
|
|
3145
|
+
*/
|
|
3146
|
+
name: string;
|
|
3147
|
+
/**
|
|
3148
|
+
* Human-readable description of the tool.
|
|
3149
|
+
*/
|
|
3150
|
+
description?: string;
|
|
3151
|
+
/**
|
|
3152
|
+
* Prompt that defines when and why the agent should call this tool.
|
|
3153
|
+
*/
|
|
3154
|
+
prompt: string;
|
|
3155
|
+
/**
|
|
3156
|
+
* An indicator whether the tool is enabled.
|
|
3157
|
+
*/
|
|
3158
|
+
enabled?: boolean;
|
|
3159
|
+
config: McpToolConfigRequest;
|
|
3160
|
+
};
|
|
3161
|
+
/**
|
|
3162
|
+
* Tool definition for a dynamic MCP server.
|
|
3163
|
+
*
|
|
3164
|
+
* **Dynamic MCP tools are in preview mode** - some of the features may not be fully operational yet.
|
|
3165
|
+
*/
|
|
3166
|
+
type McpToolResponse = {
|
|
3167
|
+
/**
|
|
3168
|
+
* Unique name of the tool.
|
|
3169
|
+
*/
|
|
3170
|
+
name?: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* Human-readable description of the tool.
|
|
3173
|
+
*/
|
|
3174
|
+
description?: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* Prompt that defines when and why the agent should call this tool.
|
|
3177
|
+
*/
|
|
3178
|
+
prompt?: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* An indicator whether the tool is enabled.
|
|
3181
|
+
*/
|
|
3182
|
+
enabled?: boolean;
|
|
3183
|
+
config?: McpToolConfigResponse;
|
|
3184
|
+
};
|
|
3185
|
+
type CustomMcpServerRequest = BaseManagedMcpServer & {
|
|
3186
|
+
/**
|
|
3187
|
+
* For custom MCP servers it has to be set to `custom` or omitted. Defaults to `custom`.
|
|
3188
|
+
*/
|
|
3189
|
+
type?: ManagedMcpServerType;
|
|
3022
3190
|
config: McpServerConfigRequest;
|
|
3023
3191
|
metadata?: MetadataRequest;
|
|
3024
3192
|
};
|
|
3025
|
-
type
|
|
3193
|
+
type DynamicMcpServerRequest = BaseManagedMcpServer & {
|
|
3194
|
+
/**
|
|
3195
|
+
* For dynamic MCP servers it has to be set to `dynamic`.
|
|
3196
|
+
*/
|
|
3197
|
+
type: ManagedMcpServerType;
|
|
3198
|
+
/**
|
|
3199
|
+
* List of tools exposed by this MCP server.
|
|
3200
|
+
*
|
|
3201
|
+
* **The `tools` field is in preview mode** - some of the features may not be fully operational yet.
|
|
3202
|
+
*/
|
|
3203
|
+
tools: Array<McpToolRequest>;
|
|
3204
|
+
metadata?: MetadataRequest;
|
|
3205
|
+
};
|
|
3206
|
+
type McpServerRequest = CustomMcpServerRequest | DynamicMcpServerRequest;
|
|
3207
|
+
type CustomMcpServerResponse = BaseManagedMcpServer & {
|
|
3208
|
+
/**
|
|
3209
|
+
* Unique identifier of the MCP server.
|
|
3210
|
+
*/
|
|
3211
|
+
id?: string;
|
|
3212
|
+
/**
|
|
3213
|
+
* Type of the managed MCP server resource.
|
|
3214
|
+
*/
|
|
3215
|
+
type?: ManagedMcpServerType;
|
|
3026
3216
|
config?: McpServerConfigResponse;
|
|
3027
3217
|
metadata?: MetadataResponse$1;
|
|
3028
3218
|
};
|
|
3219
|
+
type DynamicMcpServerResponse = BaseManagedMcpServer & {
|
|
3220
|
+
/**
|
|
3221
|
+
* Unique identifier of the MCP server.
|
|
3222
|
+
*/
|
|
3223
|
+
id?: string;
|
|
3224
|
+
/**
|
|
3225
|
+
* For dynamic MCP servers it has to be set to `dynamic`.
|
|
3226
|
+
*/
|
|
3227
|
+
type?: ManagedMcpServerType;
|
|
3228
|
+
/**
|
|
3229
|
+
* List of tools exposed by this MCP server.
|
|
3230
|
+
*
|
|
3231
|
+
* **The `tools` field is in preview mode** - some of the features may not be fully operational yet.
|
|
3232
|
+
*/
|
|
3233
|
+
tools?: Array<McpToolResponse>;
|
|
3234
|
+
metadata?: MetadataResponse$1;
|
|
3235
|
+
};
|
|
3236
|
+
type McpServerResponse = CustomMcpServerResponse | DynamicMcpServerResponse;
|
|
3029
3237
|
type CommerceEventsResponse = {
|
|
3030
3238
|
/**
|
|
3031
3239
|
* List of events available to use by an agent with the `COMMERCE_EVENTS` trigger.
|
|
@@ -3033,9 +3241,9 @@ type CommerceEventsResponse = {
|
|
|
3033
3241
|
events?: Array<string>;
|
|
3034
3242
|
};
|
|
3035
3243
|
/**
|
|
3036
|
-
* Type of the MCP server. The `custom` type
|
|
3244
|
+
* Type of the MCP server attachment on an agent. The `custom` type references a tenant-managed MCP server with a URL. The `predefined` type references an Emporix domain MCP server. The `dynamic` type references a tenant-managed dynamic MCP server and may include an optional tool-name allow-list.
|
|
3037
3245
|
*/
|
|
3038
|
-
type McpServerType = 'custom' | 'predefined';
|
|
3246
|
+
type McpServerType = 'custom' | 'predefined' | 'dynamic';
|
|
3039
3247
|
/**
|
|
3040
3248
|
* Type of the communication between the agent and the MCP server. The `streamable_http` protocol is recommended, since the `sse` protocol is deprecated.
|
|
3041
3249
|
*/
|
|
@@ -3066,17 +3274,42 @@ type CustomAgentMcpServerRequest = BaseAgentMcpServer & {
|
|
|
3066
3274
|
id: string;
|
|
3067
3275
|
};
|
|
3068
3276
|
};
|
|
3069
|
-
type
|
|
3277
|
+
type DynamicAgentMcpServerRequest = BaseAgentMcpServer & {
|
|
3278
|
+
/**
|
|
3279
|
+
* For a dynamic MCP server attachment it has to be set to `dynamic`.
|
|
3280
|
+
*/
|
|
3281
|
+
type?: unknown;
|
|
3282
|
+
mcpServer: {
|
|
3283
|
+
/**
|
|
3284
|
+
* ID of the dynamic MCP server.
|
|
3285
|
+
*/
|
|
3286
|
+
id: string;
|
|
3287
|
+
};
|
|
3288
|
+
/**
|
|
3289
|
+
* Optional allow-list of tool names from the dynamic MCP server.
|
|
3290
|
+
*/
|
|
3291
|
+
tools?: Array<string>;
|
|
3292
|
+
};
|
|
3293
|
+
type AgentMcpServerResponse = {
|
|
3294
|
+
type: McpServerType;
|
|
3070
3295
|
mcpServer?: McpServerResponse & unknown;
|
|
3296
|
+
/**
|
|
3297
|
+
* Present for `predefined` attachments.
|
|
3298
|
+
*/
|
|
3299
|
+
domain?: 'customer' | 'extensibility' | 'order' | 'product' | 'frontend';
|
|
3300
|
+
/**
|
|
3301
|
+
* Tool-name allow-list. Present for `predefined` attachments and for `dynamic` attachments when a subset is configured. Omitted on `dynamic` means all enabled tools on the MCP server.
|
|
3302
|
+
*/
|
|
3303
|
+
tools?: Array<string>;
|
|
3071
3304
|
};
|
|
3072
3305
|
/**
|
|
3073
3306
|
* List of MCP servers which agents should have access to.
|
|
3074
3307
|
*/
|
|
3075
|
-
type AgentMcpServersRequest = Array<CustomAgentMcpServerRequest | PredefinedAgentMcpServer>;
|
|
3308
|
+
type AgentMcpServersRequest = Array<CustomAgentMcpServerRequest | DynamicAgentMcpServerRequest | PredefinedAgentMcpServer>;
|
|
3076
3309
|
/**
|
|
3077
3310
|
* List of MCP servers which agents should have access to.
|
|
3078
3311
|
*/
|
|
3079
|
-
type AgentMcpServersResponse = Array<
|
|
3312
|
+
type AgentMcpServersResponse = Array<AgentMcpServerResponse>;
|
|
3080
3313
|
type BaseLlm = {
|
|
3081
3314
|
/**
|
|
3082
3315
|
* The exact name of the model.
|
|
@@ -3637,6 +3870,9 @@ type AgentSessionResponse = {
|
|
|
3637
3870
|
duration?: number;
|
|
3638
3871
|
metadata?: MetadataResponse$1;
|
|
3639
3872
|
};
|
|
3873
|
+
/**
|
|
3874
|
+
* CompletionRequest
|
|
3875
|
+
*/
|
|
3640
3876
|
type CompletionRequest$1 = {
|
|
3641
3877
|
/**
|
|
3642
3878
|
* Identifier of the request. The value is not mandatory - if provided, then the ID is returned in the text generation response.
|
|
@@ -3644,7 +3880,7 @@ type CompletionRequest$1 = {
|
|
|
3644
3880
|
id?: string;
|
|
3645
3881
|
messages: Array<{
|
|
3646
3882
|
/**
|
|
3647
|
-
* Specifies the role of the message. `SYSTEM` - Provides instructions or context to the AI about the conversation.
|
|
3883
|
+
* Specifies the role of the message. `SYSTEM` - Provides instructions or context to the AI about the conversation. `USER` - Represents a message sent by the user. `ASSISTANT` - Represents a message generated by the AI.
|
|
3648
3884
|
*/
|
|
3649
3885
|
role: 'USER' | 'SYSTEM' | 'ASSISTANT';
|
|
3650
3886
|
/**
|
|
@@ -4198,6 +4434,8 @@ type Metadata$7 = {
|
|
|
4198
4434
|
version?: number;
|
|
4199
4435
|
};
|
|
4200
4436
|
/**
|
|
4437
|
+
* taxCreation
|
|
4438
|
+
*
|
|
4201
4439
|
* Tax configuration for a specified location. It consists of a country code and a list of tax classes applicable in that country.
|
|
4202
4440
|
*/
|
|
4203
4441
|
type TaxCreation = {
|
|
@@ -4208,6 +4446,8 @@ type TaxCreation = {
|
|
|
4208
4446
|
taxClasses: Array<TaxClass>;
|
|
4209
4447
|
};
|
|
4210
4448
|
/**
|
|
4449
|
+
* taxRetrieval
|
|
4450
|
+
*
|
|
4211
4451
|
* Tax configuration for a specified location. It consists of a country code and a list of tax classes applicable in that country.
|
|
4212
4452
|
*/
|
|
4213
4453
|
type TaxRetrieval = {
|
|
@@ -4220,6 +4460,8 @@ type TaxRetrieval = {
|
|
|
4220
4460
|
metadata?: Metadata$7;
|
|
4221
4461
|
};
|
|
4222
4462
|
/**
|
|
4463
|
+
* taxClass
|
|
4464
|
+
*
|
|
4223
4465
|
* Single tax class.
|
|
4224
4466
|
*/
|
|
4225
4467
|
type TaxClass = {
|
|
@@ -4266,6 +4508,9 @@ type TaxClass = {
|
|
|
4266
4508
|
*/
|
|
4267
4509
|
isDefault?: boolean;
|
|
4268
4510
|
};
|
|
4511
|
+
/**
|
|
4512
|
+
* taxCreationResponse
|
|
4513
|
+
*/
|
|
4269
4514
|
type TaxCreationResponse = {
|
|
4270
4515
|
/**
|
|
4271
4516
|
* Code of country for which the tax configuration has been created.
|
|
@@ -4389,6 +4634,9 @@ type Location$2 = {
|
|
|
4389
4634
|
*/
|
|
4390
4635
|
countryCode: string;
|
|
4391
4636
|
};
|
|
4637
|
+
/**
|
|
4638
|
+
* taxUpdate
|
|
4639
|
+
*/
|
|
4392
4640
|
type TaxUpdate = TaxCreation & {
|
|
4393
4641
|
metadata: Metadata$7;
|
|
4394
4642
|
};
|
|
@@ -4455,6 +4703,8 @@ declare class TaxService {
|
|
|
4455
4703
|
|
|
4456
4704
|
type Coupons = Array<CouponWithIdAndStatus>;
|
|
4457
4705
|
/**
|
|
4706
|
+
* Coupon response/update payload
|
|
4707
|
+
*
|
|
4458
4708
|
* Coupons describe voucher alike commerce capabilities, e.g. 10% off winter accessories.
|
|
4459
4709
|
*/
|
|
4460
4710
|
type BaseCoupon = {
|
|
@@ -4551,6 +4801,8 @@ type Coupon$2 = BaseCoupon & {
|
|
|
4551
4801
|
deleted?: boolean;
|
|
4552
4802
|
};
|
|
4553
4803
|
/**
|
|
4804
|
+
* Coupon creation payload
|
|
4805
|
+
*
|
|
4554
4806
|
* Coupon creation schema.
|
|
4555
4807
|
*/
|
|
4556
4808
|
type CouponCreation = {
|
|
@@ -4632,6 +4884,8 @@ type SegmentRestricted = boolean;
|
|
|
4632
4884
|
*/
|
|
4633
4885
|
type CategoryRestricted = boolean;
|
|
4634
4886
|
/**
|
|
4887
|
+
* Money amount
|
|
4888
|
+
*
|
|
4635
4889
|
* Defines an amount in a specific currency.
|
|
4636
4890
|
*/
|
|
4637
4891
|
type CurrencyAmount = {
|
|
@@ -4645,6 +4899,8 @@ type CurrencyAmount = {
|
|
|
4645
4899
|
currency?: string;
|
|
4646
4900
|
};
|
|
4647
4901
|
/**
|
|
4902
|
+
* Coupon Redemption
|
|
4903
|
+
*
|
|
4648
4904
|
* Defines a coupon redemption response.
|
|
4649
4905
|
*/
|
|
4650
4906
|
type Redemption = RedemptionCreation & {
|
|
@@ -4658,6 +4914,8 @@ type Redemption = RedemptionCreation & {
|
|
|
4658
4914
|
redeemedAt?: string;
|
|
4659
4915
|
};
|
|
4660
4916
|
/**
|
|
4917
|
+
* Coupon Redemption Request
|
|
4918
|
+
*
|
|
4661
4919
|
* Defines a coupon redemption request payload that affects a coupon instance.
|
|
4662
4920
|
*/
|
|
4663
4921
|
type RedemptionCreation = {
|
|
@@ -4728,6 +4986,8 @@ type CouponWithIdAndStatus = Coupon$2 & {
|
|
|
4728
4986
|
status?: 'VALID' | 'INACTIVE' | 'EXPIRED' | 'USED';
|
|
4729
4987
|
};
|
|
4730
4988
|
/**
|
|
4989
|
+
* Coupon
|
|
4990
|
+
*
|
|
4731
4991
|
* Coupons describe voucher alike commerce capabilities.
|
|
4732
4992
|
*/
|
|
4733
4993
|
type ReferralCoupon = {
|
|
@@ -4890,7 +5150,13 @@ declare class CouponService {
|
|
|
4890
5150
|
createReferralCoupon(customerNumber: string, auth?: AuthContext): Promise<ReferralCoupon>;
|
|
4891
5151
|
}
|
|
4892
5152
|
|
|
5153
|
+
/**
|
|
5154
|
+
* Collection of Summaries
|
|
5155
|
+
*/
|
|
4893
5156
|
type CustomerSummaryBatchOut = Array<PointsSummaryOut>;
|
|
5157
|
+
/**
|
|
5158
|
+
* pointsSummaryOut
|
|
5159
|
+
*/
|
|
4894
5160
|
type PointsSummaryOut = {
|
|
4895
5161
|
/**
|
|
4896
5162
|
* Id of the customer to whom the points are assigned
|
|
@@ -4902,6 +5168,9 @@ type PointsSummaryOut = {
|
|
|
4902
5168
|
activePoints?: number;
|
|
4903
5169
|
summary?: CustomerSummary;
|
|
4904
5170
|
};
|
|
5171
|
+
/**
|
|
5172
|
+
* addedPoints
|
|
5173
|
+
*/
|
|
4905
5174
|
type AddedPoints = {
|
|
4906
5175
|
id?: string;
|
|
4907
5176
|
/**
|
|
@@ -4931,6 +5200,9 @@ type AddedPoints = {
|
|
|
4931
5200
|
usedPoints?: number;
|
|
4932
5201
|
usedWith?: Array<string>;
|
|
4933
5202
|
};
|
|
5203
|
+
/**
|
|
5204
|
+
* redeemedPoints
|
|
5205
|
+
*/
|
|
4934
5206
|
type RedeemedPoints = {
|
|
4935
5207
|
/**
|
|
4936
5208
|
* Identifier of the redeemed points
|
|
@@ -4953,11 +5225,20 @@ type RedeemedPoints = {
|
|
|
4953
5225
|
*/
|
|
4954
5226
|
allPointsAfterCreation?: number;
|
|
4955
5227
|
};
|
|
5228
|
+
/**
|
|
5229
|
+
* customerSummary
|
|
5230
|
+
*/
|
|
4956
5231
|
type CustomerSummary = {
|
|
4957
5232
|
addedPointsList: Array<AddedPoints>;
|
|
4958
5233
|
redeemedPointsList?: Array<RedeemedPoints>;
|
|
4959
5234
|
};
|
|
5235
|
+
/**
|
|
5236
|
+
* redeemOptions
|
|
5237
|
+
*/
|
|
4960
5238
|
type RedeemOptions = Array<RedeemOption>;
|
|
5239
|
+
/**
|
|
5240
|
+
* redeemOption
|
|
5241
|
+
*/
|
|
4961
5242
|
type RedeemOption = {
|
|
4962
5243
|
/**
|
|
4963
5244
|
* ID of the redemption option to be used at reward points exchange
|
|
@@ -4996,6 +5277,9 @@ type RedeemOption = {
|
|
|
4996
5277
|
modifiedAt?: string;
|
|
4997
5278
|
};
|
|
4998
5279
|
};
|
|
5280
|
+
/**
|
|
5281
|
+
* CouponCode
|
|
5282
|
+
*/
|
|
4999
5283
|
type RedeemCouponOut = {
|
|
5000
5284
|
/**
|
|
5001
5285
|
* Coupon code received after exchanging points
|
|
@@ -5003,6 +5287,8 @@ type RedeemCouponOut = {
|
|
|
5003
5287
|
code?: string;
|
|
5004
5288
|
};
|
|
5005
5289
|
/**
|
|
5290
|
+
* Coupon API
|
|
5291
|
+
*
|
|
5006
5292
|
* Coupons describe voucher-like commerce capabilities.
|
|
5007
5293
|
*/
|
|
5008
5294
|
type Coupon = {
|
|
@@ -5027,6 +5313,8 @@ type Coupon = {
|
|
|
5027
5313
|
*/
|
|
5028
5314
|
discountPercentage?: number;
|
|
5029
5315
|
/**
|
|
5316
|
+
* Money Amount
|
|
5317
|
+
*
|
|
5030
5318
|
* Must be specified only if type is 'ABSOLUTE'
|
|
5031
5319
|
*/
|
|
5032
5320
|
discountAbsolute?: {
|
|
@@ -5094,6 +5382,9 @@ type NewCustomerIn = {
|
|
|
5094
5382
|
customerId?: string;
|
|
5095
5383
|
startPoints?: AddedPoints;
|
|
5096
5384
|
};
|
|
5385
|
+
/**
|
|
5386
|
+
* Restrictions
|
|
5387
|
+
*/
|
|
5097
5388
|
type Restrictions = {
|
|
5098
5389
|
/**
|
|
5099
5390
|
* A list of identifiers of customers that can redeem the coupon. Cannot be specified for coupons which can be redeemed by anonymous users.
|
|
@@ -5108,6 +5399,8 @@ type Restrictions = {
|
|
|
5108
5399
|
*/
|
|
5109
5400
|
validUntil?: string;
|
|
5110
5401
|
/**
|
|
5402
|
+
* Money Amount
|
|
5403
|
+
*
|
|
5111
5404
|
* Minimum order value which entitles the customer to redeem the coupon
|
|
5112
5405
|
*/
|
|
5113
5406
|
minOrderValue?: {
|
|
@@ -5197,7 +5490,13 @@ declare class RewardPointsService {
|
|
|
5197
5490
|
deleteRedeemOption(redeemOptionId: string, auth?: AuthContext): Promise<void>;
|
|
5198
5491
|
}
|
|
5199
5492
|
|
|
5493
|
+
/**
|
|
5494
|
+
* Collection of Brands
|
|
5495
|
+
*/
|
|
5200
5496
|
type Brands = Array<BrandResponse>;
|
|
5497
|
+
/**
|
|
5498
|
+
* Brand
|
|
5499
|
+
*/
|
|
5201
5500
|
type Brand$1 = {
|
|
5202
5501
|
/**
|
|
5203
5502
|
* Unique identifier of a brand.
|
|
@@ -5224,6 +5523,9 @@ type Brand$1 = {
|
|
|
5224
5523
|
[key: string]: string;
|
|
5225
5524
|
};
|
|
5226
5525
|
};
|
|
5526
|
+
/**
|
|
5527
|
+
* Brand
|
|
5528
|
+
*/
|
|
5227
5529
|
type UpdateBrand = {
|
|
5228
5530
|
/**
|
|
5229
5531
|
* Brand name.
|
|
@@ -5247,6 +5549,9 @@ type UpdateBrand = {
|
|
|
5247
5549
|
};
|
|
5248
5550
|
metadata?: UpdateMetaData;
|
|
5249
5551
|
};
|
|
5552
|
+
/**
|
|
5553
|
+
* Brand Response
|
|
5554
|
+
*/
|
|
5250
5555
|
type BrandResponse = {
|
|
5251
5556
|
/**
|
|
5252
5557
|
* Brand name.
|
|
@@ -5286,6 +5591,9 @@ type BrandResponse = {
|
|
|
5286
5591
|
id?: string;
|
|
5287
5592
|
metadata?: MetaData$1;
|
|
5288
5593
|
};
|
|
5594
|
+
/**
|
|
5595
|
+
* Metadata
|
|
5596
|
+
*/
|
|
5289
5597
|
type MetaData$1 = {
|
|
5290
5598
|
/**
|
|
5291
5599
|
* Date and time when the object was created compliant with the ISO 8601 standard.
|
|
@@ -5300,6 +5608,9 @@ type MetaData$1 = {
|
|
|
5300
5608
|
*/
|
|
5301
5609
|
version?: number;
|
|
5302
5610
|
};
|
|
5611
|
+
/**
|
|
5612
|
+
* Metadata
|
|
5613
|
+
*/
|
|
5303
5614
|
type UpdateMetaData = {
|
|
5304
5615
|
/**
|
|
5305
5616
|
* Object version.
|
|
@@ -5402,6 +5713,8 @@ type Overlay = {
|
|
|
5402
5713
|
position: number;
|
|
5403
5714
|
};
|
|
5404
5715
|
/**
|
|
5716
|
+
* Metadata
|
|
5717
|
+
*
|
|
5405
5718
|
* Metadata
|
|
5406
5719
|
*/
|
|
5407
5720
|
type Metadata$6 = {
|
|
@@ -5472,6 +5785,9 @@ type Metadata$5 = {
|
|
|
5472
5785
|
*/
|
|
5473
5786
|
version: number;
|
|
5474
5787
|
};
|
|
5788
|
+
/**
|
|
5789
|
+
* Country
|
|
5790
|
+
*/
|
|
5475
5791
|
type Country$1 = {
|
|
5476
5792
|
/**
|
|
5477
5793
|
* The country code which consists of two capital letters and is compliant with ISO-3166-1 specification.
|
|
@@ -5493,6 +5809,9 @@ type Country$1 = {
|
|
|
5493
5809
|
active?: boolean;
|
|
5494
5810
|
metadata?: Metadata$5;
|
|
5495
5811
|
};
|
|
5812
|
+
/**
|
|
5813
|
+
* Region
|
|
5814
|
+
*/
|
|
5496
5815
|
type Region$1 = {
|
|
5497
5816
|
/**
|
|
5498
5817
|
* The region code.
|
|
@@ -5506,6 +5825,9 @@ type Region$1 = {
|
|
|
5506
5825
|
};
|
|
5507
5826
|
metadata?: Metadata$5;
|
|
5508
5827
|
};
|
|
5828
|
+
/**
|
|
5829
|
+
* Country update
|
|
5830
|
+
*/
|
|
5509
5831
|
type CountryUpdate$1 = {
|
|
5510
5832
|
/**
|
|
5511
5833
|
* The field indicates whether the given country is active for the tenant or not. Only active countries are visible in the system.
|
|
@@ -5579,6 +5901,8 @@ type UpdateMetadata$1 = {
|
|
|
5579
5901
|
version: number;
|
|
5580
5902
|
};
|
|
5581
5903
|
/**
|
|
5904
|
+
* currencyCreation
|
|
5905
|
+
*
|
|
5582
5906
|
* Represents a single currency creation. The currency consists of a code compliant with the ISO-4217 standard (https://www.iso.org/iso-4217-currency-codes.html) and a currency name. The `name` field is localized.
|
|
5583
5907
|
*/
|
|
5584
5908
|
type CurrencyCreation = {
|
|
@@ -5597,6 +5921,8 @@ type CurrencyCreation = {
|
|
|
5597
5921
|
};
|
|
5598
5922
|
};
|
|
5599
5923
|
/**
|
|
5924
|
+
* currencyUpdate
|
|
5925
|
+
*
|
|
5600
5926
|
* Represents a single currency update.
|
|
5601
5927
|
*/
|
|
5602
5928
|
type CurrencyUpdate$1 = {
|
|
@@ -5611,6 +5937,8 @@ type CurrencyUpdate$1 = {
|
|
|
5611
5937
|
metadata: UpdateMetadata$1;
|
|
5612
5938
|
};
|
|
5613
5939
|
/**
|
|
5940
|
+
* currencyCreationResponse
|
|
5941
|
+
*
|
|
5614
5942
|
* Represents the response after a successful currency creation.
|
|
5615
5943
|
*/
|
|
5616
5944
|
type CurrencyCreationResponse = {
|
|
@@ -5621,6 +5949,8 @@ type CurrencyCreationResponse = {
|
|
|
5621
5949
|
code?: string;
|
|
5622
5950
|
};
|
|
5623
5951
|
/**
|
|
5952
|
+
* exchangeRateResponse
|
|
5953
|
+
*
|
|
5624
5954
|
* Represents the response after a successful exchange rate creation.
|
|
5625
5955
|
*/
|
|
5626
5956
|
type ExchangeRateResponse = {
|
|
@@ -5631,6 +5961,8 @@ type ExchangeRateResponse = {
|
|
|
5631
5961
|
code?: string;
|
|
5632
5962
|
};
|
|
5633
5963
|
/**
|
|
5964
|
+
* currencyRetrieval
|
|
5965
|
+
*
|
|
5634
5966
|
* Represents a single currency. The currency consists of a code compliant with ISO-4217 (https://www.iso.org/iso-4217-currency-codes.html) and a currency name. The name field is localized.
|
|
5635
5967
|
*/
|
|
5636
5968
|
type CurrencyRetrieval = {
|
|
@@ -5650,6 +5982,9 @@ type CurrencyRetrieval = {
|
|
|
5650
5982
|
};
|
|
5651
5983
|
metadata?: Metadata$4;
|
|
5652
5984
|
};
|
|
5985
|
+
/**
|
|
5986
|
+
* exchangeRateUpdateRequest
|
|
5987
|
+
*/
|
|
5653
5988
|
type ExchangeRateUpdateRequest = {
|
|
5654
5989
|
/**
|
|
5655
5990
|
* Represents the exchange rate.
|
|
@@ -5659,6 +5994,9 @@ type ExchangeRateUpdateRequest = {
|
|
|
5659
5994
|
rate: string;
|
|
5660
5995
|
metadata: UpdateMetadata$1;
|
|
5661
5996
|
};
|
|
5997
|
+
/**
|
|
5998
|
+
* exchangeRate
|
|
5999
|
+
*/
|
|
5662
6000
|
type ExchangeRateCreationRequest = {
|
|
5663
6001
|
/**
|
|
5664
6002
|
* The source currency code. The currency symbol must consist of three capital letters and must be a valid ISO-4217 code (https://www.iso.org/iso-4217-currency-codes.html) defined in the system.
|
|
@@ -5675,6 +6013,9 @@ type ExchangeRateCreationRequest = {
|
|
|
5675
6013
|
*/
|
|
5676
6014
|
rate: string;
|
|
5677
6015
|
};
|
|
6016
|
+
/**
|
|
6017
|
+
* exchangeRateRetrieval
|
|
6018
|
+
*/
|
|
5678
6019
|
type ExchangeRateRetrieval = {
|
|
5679
6020
|
/**
|
|
5680
6021
|
* Identifier of the exchange rate. The identifier consists of the source currency and the target currency separated by an underscore.
|
|
@@ -5754,6 +6095,9 @@ declare class CurrencyService {
|
|
|
5754
6095
|
deleteExchangeRate(code: string, auth?: AuthContext): Promise<void>;
|
|
5755
6096
|
}
|
|
5756
6097
|
|
|
6098
|
+
/**
|
|
6099
|
+
* Collection of actual delivery windows
|
|
6100
|
+
*/
|
|
5757
6101
|
type ActualDeliveryWindows = Array<ActualDeliveryWindow>;
|
|
5758
6102
|
type Patch = Array<{
|
|
5759
6103
|
/**
|
|
@@ -5772,6 +6116,8 @@ type Patch = Array<{
|
|
|
5772
6116
|
};
|
|
5773
6117
|
}>;
|
|
5774
6118
|
/**
|
|
6119
|
+
* Actual delivery window
|
|
6120
|
+
*
|
|
5775
6121
|
* Delivery window is a range of times when the shipment can be delivered to the customers.
|
|
5776
6122
|
*/
|
|
5777
6123
|
type ActualDeliveryWindow = {
|
|
@@ -5806,6 +6152,9 @@ type ActualDeliveryWindow = {
|
|
|
5806
6152
|
slotId?: string;
|
|
5807
6153
|
metadata?: MetaData;
|
|
5808
6154
|
};
|
|
6155
|
+
/**
|
|
6156
|
+
* Delivery Time
|
|
6157
|
+
*/
|
|
5809
6158
|
type BasicDeliveryTime = {
|
|
5810
6159
|
/**
|
|
5811
6160
|
* Delivery Time ID: Autogenerated (if not provided in request) or User-Defined
|
|
@@ -5845,9 +6194,15 @@ type BasicDeliveryTime = {
|
|
|
5845
6194
|
*/
|
|
5846
6195
|
deliveryDayShift?: number;
|
|
5847
6196
|
};
|
|
6197
|
+
/**
|
|
6198
|
+
* Delivery Time
|
|
6199
|
+
*/
|
|
5848
6200
|
type DeliveryTime$2 = BasicDeliveryTime & {
|
|
5849
6201
|
metadata?: MetaData;
|
|
5850
6202
|
};
|
|
6203
|
+
/**
|
|
6204
|
+
* Delivery Time
|
|
6205
|
+
*/
|
|
5851
6206
|
type UpdateDeliveryTime = BasicDeliveryTime & {
|
|
5852
6207
|
/**
|
|
5853
6208
|
* metadata of the document
|
|
@@ -5859,6 +6214,9 @@ type UpdateDeliveryTime = BasicDeliveryTime & {
|
|
|
5859
6214
|
version: number;
|
|
5860
6215
|
};
|
|
5861
6216
|
};
|
|
6217
|
+
/**
|
|
6218
|
+
* Slot
|
|
6219
|
+
*/
|
|
5862
6220
|
type SlotCreation = {
|
|
5863
6221
|
/**
|
|
5864
6222
|
* Delivery Time Slot ID: Autogenerated (if not provided in request) or User-Defined
|
|
@@ -5876,6 +6234,8 @@ type SlotCreation = {
|
|
|
5876
6234
|
capacity: number;
|
|
5877
6235
|
};
|
|
5878
6236
|
/**
|
|
6237
|
+
* Delivery Cycle
|
|
6238
|
+
*
|
|
5879
6239
|
* Object which encapsulates all the fields needed to generate delivery cycle.
|
|
5880
6240
|
*/
|
|
5881
6241
|
type DeliveryCycle = {
|
|
@@ -5893,6 +6253,8 @@ type DeliveryCycle = {
|
|
|
5893
6253
|
deliveryDate: string;
|
|
5894
6254
|
};
|
|
5895
6255
|
/**
|
|
6256
|
+
* Delivery Day
|
|
6257
|
+
*
|
|
5896
6258
|
* This attribute holds the time configuration for which the Delivery Time is valid. Only a single attribute can be set at any given moment.
|
|
5897
6259
|
*/
|
|
5898
6260
|
type DeliveryDay = {
|
|
@@ -5919,6 +6281,8 @@ type DeliveryDay = {
|
|
|
5919
6281
|
};
|
|
5920
6282
|
};
|
|
5921
6283
|
/**
|
|
6284
|
+
* Cut-Off Time
|
|
6285
|
+
*
|
|
5922
6286
|
* This denotes the latest point in time by which an action (such as an order or request) must be completed for a specific Delivery Time. This attribute is key in determining the end of a time window for certain operations and helps maintain efficiency in the delivery process.
|
|
5923
6287
|
*/
|
|
5924
6288
|
type CutOffTIme = {
|
|
@@ -5936,6 +6300,8 @@ type CutOffTIme = {
|
|
|
5936
6300
|
deliveryCycleName?: string;
|
|
5937
6301
|
};
|
|
5938
6302
|
/**
|
|
6303
|
+
* Time range
|
|
6304
|
+
*
|
|
5939
6305
|
* A `from` to `to` time range for which the object is valid
|
|
5940
6306
|
*/
|
|
5941
6307
|
type TimeRange = {
|
|
@@ -5949,6 +6315,8 @@ type TimeRange = {
|
|
|
5949
6315
|
endTime: string;
|
|
5950
6316
|
};
|
|
5951
6317
|
/**
|
|
6318
|
+
* Time range
|
|
6319
|
+
*
|
|
5952
6320
|
* A `from` to `to` time range for which the object is valid
|
|
5953
6321
|
*/
|
|
5954
6322
|
type DeliveryTimeRange = {
|
|
@@ -5972,8 +6340,13 @@ type MetaData = {
|
|
|
5972
6340
|
modifiedAt?: string;
|
|
5973
6341
|
version?: number;
|
|
5974
6342
|
};
|
|
6343
|
+
/**
|
|
6344
|
+
* Collection of sites.
|
|
6345
|
+
*/
|
|
5975
6346
|
type Sites = Array<Site>;
|
|
5976
6347
|
/**
|
|
6348
|
+
* Site
|
|
6349
|
+
*
|
|
5977
6350
|
* A site is a specific virtual or real shop.
|
|
5978
6351
|
*/
|
|
5979
6352
|
type Site = {
|
|
@@ -5988,8 +6361,13 @@ type Site = {
|
|
|
5988
6361
|
zones?: Array<ZoneWithActualDeliveryWindows>;
|
|
5989
6362
|
metadata?: MetaData;
|
|
5990
6363
|
};
|
|
6364
|
+
/**
|
|
6365
|
+
* Collection of zones
|
|
6366
|
+
*/
|
|
5991
6367
|
type Zones = Array<Zone$1>;
|
|
5992
6368
|
/**
|
|
6369
|
+
* Zone
|
|
6370
|
+
*
|
|
5993
6371
|
* The zone is an area where shipments can be delivered.
|
|
5994
6372
|
*/
|
|
5995
6373
|
type Zone$1 = {
|
|
@@ -6009,6 +6387,8 @@ type ZoneWithActualDeliveryWindows = Zone$1 & {
|
|
|
6009
6387
|
actualDeliveryWindows?: ActualDeliveryWindows;
|
|
6010
6388
|
};
|
|
6011
6389
|
/**
|
|
6390
|
+
* Resource created
|
|
6391
|
+
*
|
|
6012
6392
|
* Link to created resource with unique resource identifier.
|
|
6013
6393
|
*/
|
|
6014
6394
|
type ResourceCreatedResponse = {
|
|
@@ -6017,8 +6397,13 @@ type ResourceCreatedResponse = {
|
|
|
6017
6397
|
*/
|
|
6018
6398
|
id?: string;
|
|
6019
6399
|
};
|
|
6400
|
+
/**
|
|
6401
|
+
* Collection of shipping methods
|
|
6402
|
+
*/
|
|
6020
6403
|
type Methods = Array<Method>;
|
|
6021
6404
|
/**
|
|
6405
|
+
* Shipping method
|
|
6406
|
+
*
|
|
6022
6407
|
* Shipping methods define the types of deliveries and properties such as delivery fees.
|
|
6023
6408
|
*/
|
|
6024
6409
|
type Method = {
|
|
@@ -6039,8 +6424,13 @@ type Method = {
|
|
|
6039
6424
|
*/
|
|
6040
6425
|
shippingGroupId?: string;
|
|
6041
6426
|
};
|
|
6427
|
+
/**
|
|
6428
|
+
* Collection of fees
|
|
6429
|
+
*/
|
|
6042
6430
|
type Fees = Array<Fee>;
|
|
6043
6431
|
/**
|
|
6432
|
+
* Fee
|
|
6433
|
+
*
|
|
6044
6434
|
* Fee is a shipping cost for a given shipping method and parameters.
|
|
6045
6435
|
*/
|
|
6046
6436
|
type Fee = {
|
|
@@ -6052,6 +6442,8 @@ type Fee = {
|
|
|
6052
6442
|
shippingGroupId?: string;
|
|
6053
6443
|
};
|
|
6054
6444
|
/**
|
|
6445
|
+
* Monetary amount
|
|
6446
|
+
*
|
|
6055
6447
|
* Amount of money in a given currency.
|
|
6056
6448
|
*/
|
|
6057
6449
|
type MonetaryAmount = {
|
|
@@ -6065,6 +6457,8 @@ type MonetaryAmount = {
|
|
|
6065
6457
|
amount: number;
|
|
6066
6458
|
};
|
|
6067
6459
|
/**
|
|
6460
|
+
* Find site request payload
|
|
6461
|
+
*
|
|
6068
6462
|
* Payload with parameters for price finding.
|
|
6069
6463
|
*/
|
|
6070
6464
|
type FindSiteRequest = {
|
|
@@ -6078,10 +6472,14 @@ type FindSiteRequest = {
|
|
|
6078
6472
|
country?: string;
|
|
6079
6473
|
};
|
|
6080
6474
|
/**
|
|
6475
|
+
* ShipTo
|
|
6476
|
+
*
|
|
6081
6477
|
* Collection of shipping destinations
|
|
6082
6478
|
*/
|
|
6083
6479
|
type ShipTo = Array<ShipToItem>;
|
|
6084
6480
|
/**
|
|
6481
|
+
* shipToItem
|
|
6482
|
+
*
|
|
6085
6483
|
* Shipping destination containing country and postal code.
|
|
6086
6484
|
*/
|
|
6087
6485
|
type ShipToItem = {
|
|
@@ -6095,6 +6493,8 @@ type ShipToItem = {
|
|
|
6095
6493
|
postalCode?: string;
|
|
6096
6494
|
};
|
|
6097
6495
|
/**
|
|
6496
|
+
* Quote request payload
|
|
6497
|
+
*
|
|
6098
6498
|
* Example of payload for shipping cost calculation.
|
|
6099
6499
|
*/
|
|
6100
6500
|
type QuotePayload = {
|
|
@@ -6119,6 +6519,8 @@ type QuotePayload = {
|
|
|
6119
6519
|
shipToAddress: Address$2;
|
|
6120
6520
|
};
|
|
6121
6521
|
/**
|
|
6522
|
+
* Quote slot request schema
|
|
6523
|
+
*
|
|
6122
6524
|
* Example of payload for shipping cost calculation.
|
|
6123
6525
|
*/
|
|
6124
6526
|
type QuoteSlot = {
|
|
@@ -6151,6 +6553,8 @@ type QuoteSlot = {
|
|
|
6151
6553
|
deliveryWindowId: string;
|
|
6152
6554
|
};
|
|
6153
6555
|
/**
|
|
6556
|
+
* Address
|
|
6557
|
+
*
|
|
6154
6558
|
* Address of billing or delivery that contains customer or company name and location including street, street number, zipcode, and country.
|
|
6155
6559
|
*/
|
|
6156
6560
|
type Address$2 = {
|
|
@@ -6169,10 +6573,14 @@ type Address$2 = {
|
|
|
6169
6573
|
country: string;
|
|
6170
6574
|
};
|
|
6171
6575
|
/**
|
|
6576
|
+
* Quote response
|
|
6577
|
+
*
|
|
6172
6578
|
* Example quote response which contains a list of fees for various methods and delivery zone.
|
|
6173
6579
|
*/
|
|
6174
6580
|
type QuoteResponse$1 = Array<QuoteResponseItem>;
|
|
6175
6581
|
/**
|
|
6582
|
+
* Quote response item
|
|
6583
|
+
*
|
|
6176
6584
|
* Example quote response which contains fee for specific method and zone.
|
|
6177
6585
|
*/
|
|
6178
6586
|
type QuoteResponseItem = {
|
|
@@ -6186,6 +6594,8 @@ type QuoteResponseItem = {
|
|
|
6186
6594
|
methods?: Array<QuoteResponseMethods>;
|
|
6187
6595
|
};
|
|
6188
6596
|
/**
|
|
6597
|
+
* Quote response shipping methods
|
|
6598
|
+
*
|
|
6189
6599
|
* Example quote response which contains fee for specific method.
|
|
6190
6600
|
*/
|
|
6191
6601
|
type QuoteResponseMethods = {
|
|
@@ -6198,12 +6608,16 @@ type LocalizedValue = string | {
|
|
|
6198
6608
|
[key: string]: string;
|
|
6199
6609
|
};
|
|
6200
6610
|
/**
|
|
6611
|
+
* Minimum fee
|
|
6612
|
+
*
|
|
6201
6613
|
* Minimum available delivery fee for given parameters.
|
|
6202
6614
|
*/
|
|
6203
6615
|
type MinimumFee$1 = {
|
|
6204
6616
|
fee?: MonetaryAmount;
|
|
6205
6617
|
};
|
|
6206
6618
|
/**
|
|
6619
|
+
* Group
|
|
6620
|
+
*
|
|
6207
6621
|
* Shipping groups can be used for customer grouping with use customer group relations.
|
|
6208
6622
|
*/
|
|
6209
6623
|
type Group = {
|
|
@@ -6214,10 +6628,14 @@ type Group = {
|
|
|
6214
6628
|
description?: LocalizedValue;
|
|
6215
6629
|
};
|
|
6216
6630
|
/**
|
|
6631
|
+
* Collection of groups
|
|
6632
|
+
*
|
|
6217
6633
|
* Collection of shipping groups.
|
|
6218
6634
|
*/
|
|
6219
6635
|
type GroupList = Array<Group>;
|
|
6220
6636
|
/**
|
|
6637
|
+
* Customer-group relation
|
|
6638
|
+
*
|
|
6221
6639
|
* Customer-group relation allows to assign user for specific group.
|
|
6222
6640
|
*/
|
|
6223
6641
|
type CgRelation$1 = {
|
|
@@ -6230,7 +6648,13 @@ type CgRelation$1 = {
|
|
|
6230
6648
|
*/
|
|
6231
6649
|
groupId?: string;
|
|
6232
6650
|
};
|
|
6651
|
+
/**
|
|
6652
|
+
* Collection of customer-group relation
|
|
6653
|
+
*/
|
|
6233
6654
|
type CgRelationList$1 = Array<CgRelation$1>;
|
|
6655
|
+
/**
|
|
6656
|
+
* DeliveryWindowValidationDto
|
|
6657
|
+
*/
|
|
6234
6658
|
type DeliveryWindowValidationDto = {
|
|
6235
6659
|
/**
|
|
6236
6660
|
* The selected delivery window
|
|
@@ -7414,6 +7838,8 @@ type QuoteHistory$1 = Array<{
|
|
|
7414
7838
|
modifiedAt?: string;
|
|
7415
7839
|
}>;
|
|
7416
7840
|
/**
|
|
7841
|
+
* QuoteCreateFromCartRequest
|
|
7842
|
+
*
|
|
7417
7843
|
* This schema includes the attributes that are required to be provided when creating a quote from the cart.
|
|
7418
7844
|
*/
|
|
7419
7845
|
type QuoteCreateFromCartRequest = {
|
|
@@ -7570,6 +7996,8 @@ type CalculatedFinalPrice = {
|
|
|
7570
7996
|
finalPrice?: CalculatedPrice$1;
|
|
7571
7997
|
};
|
|
7572
7998
|
/**
|
|
7999
|
+
* metadataCore
|
|
8000
|
+
*
|
|
7573
8001
|
* Core metadata fields shared across multiple objects.
|
|
7574
8002
|
*/
|
|
7575
8003
|
type MetadataCore = {
|
|
@@ -7581,6 +8009,8 @@ type MetadataCore = {
|
|
|
7581
8009
|
};
|
|
7582
8010
|
};
|
|
7583
8011
|
/**
|
|
8012
|
+
* metadataUpdate
|
|
8013
|
+
*
|
|
7584
8014
|
* Metadata fields required when updating an existing object.
|
|
7585
8015
|
*/
|
|
7586
8016
|
type MetadataUpdate$1 = MetadataCore & {
|
|
@@ -7590,6 +8020,8 @@ type MetadataUpdate$1 = MetadataCore & {
|
|
|
7590
8020
|
version: number;
|
|
7591
8021
|
};
|
|
7592
8022
|
/**
|
|
8023
|
+
* metadataResponse
|
|
8024
|
+
*
|
|
7593
8025
|
* Metadata fields returned by the API.
|
|
7594
8026
|
* Extends `metadataUpdate` with timestamps indicating when the object
|
|
7595
8027
|
* was created and last modified.
|
|
@@ -7606,6 +8038,8 @@ type MetadataResponse = MetadataUpdate$1 & {
|
|
|
7606
8038
|
modifiedAt?: string;
|
|
7607
8039
|
};
|
|
7608
8040
|
/**
|
|
8041
|
+
* basicReturn
|
|
8042
|
+
*
|
|
7609
8043
|
* Base schema for a return.
|
|
7610
8044
|
*/
|
|
7611
8045
|
type BasicReturn = {
|
|
@@ -7636,6 +8070,8 @@ type BasicReturn = {
|
|
|
7636
8070
|
};
|
|
7637
8071
|
type BasicCustomerReturn = BasicReturn;
|
|
7638
8072
|
/**
|
|
8073
|
+
* A return request created on behalf of a customer.
|
|
8074
|
+
*
|
|
7639
8075
|
* Base schema for returns created by an employee FOR A REGISTERED CUSTOMER.
|
|
7640
8076
|
*/
|
|
7641
8077
|
type BasicEmployeeReturn = BasicEmployeeReturnBase & {
|
|
@@ -7650,6 +8086,8 @@ type BasicEmployeeReturn = BasicEmployeeReturnBase & {
|
|
|
7650
8086
|
};
|
|
7651
8087
|
};
|
|
7652
8088
|
/**
|
|
8089
|
+
* A return request created on behalf of a customer FOR AN ANONYMOUS ORDER.
|
|
8090
|
+
*
|
|
7653
8091
|
* Base schema for returns created by an employee for an ANONYMOUS ORDER.
|
|
7654
8092
|
*/
|
|
7655
8093
|
type EmployeeReturnForAnonymousOrder = BasicEmployeeReturnBase & {
|
|
@@ -7672,6 +8110,8 @@ type EmployeeReturnForAnonymousOrder = BasicEmployeeReturnBase & {
|
|
|
7672
8110
|
};
|
|
7673
8111
|
};
|
|
7674
8112
|
/**
|
|
8113
|
+
* Base schema for returns created by an employee.
|
|
8114
|
+
*
|
|
7675
8115
|
* Common structure for returns created by an employee on behalf of a customer.
|
|
7676
8116
|
*/
|
|
7677
8117
|
type BasicEmployeeReturnBase = BasicReturn & {
|
|
@@ -7739,6 +8179,8 @@ type BasicEmployeeReturnBase = BasicReturn & {
|
|
|
7739
8179
|
expiryDate?: string;
|
|
7740
8180
|
};
|
|
7741
8181
|
/**
|
|
8182
|
+
* A return updated by a customer
|
|
8183
|
+
*
|
|
7742
8184
|
* Base schema for a return requested by a customer.
|
|
7743
8185
|
*/
|
|
7744
8186
|
type UpdateCustomerReturn = {
|
|
@@ -7750,6 +8192,8 @@ type UpdateCustomerReturn = {
|
|
|
7750
8192
|
metadata: MetadataUpdate$1;
|
|
7751
8193
|
};
|
|
7752
8194
|
/**
|
|
8195
|
+
* A return updated on behalf of a customer.
|
|
8196
|
+
*
|
|
7753
8197
|
* Base schema for a return requested by an employee.
|
|
7754
8198
|
*/
|
|
7755
8199
|
type UpdateEmployeeReturn = UpdateCustomerReturn & {
|
|
@@ -7808,6 +8252,8 @@ type UpdateEmployeeReturn = UpdateCustomerReturn & {
|
|
|
7808
8252
|
expiryDate?: string;
|
|
7809
8253
|
};
|
|
7810
8254
|
/**
|
|
8255
|
+
* A customer return object.
|
|
8256
|
+
*
|
|
7811
8257
|
* Schema for retrieving returns by a customer.
|
|
7812
8258
|
*/
|
|
7813
8259
|
type FullCustomerReturn = BasicCustomerReturn & AssistedBuying & {
|
|
@@ -7833,6 +8279,8 @@ type FullCustomerReturn = BasicCustomerReturn & AssistedBuying & {
|
|
|
7833
8279
|
calculatedPrice?: CalculatedFinalPrice;
|
|
7834
8280
|
};
|
|
7835
8281
|
/**
|
|
8282
|
+
* A return object for an employee
|
|
8283
|
+
*
|
|
7836
8284
|
* Schema for retrieving returns by an employee.
|
|
7837
8285
|
*/
|
|
7838
8286
|
type FullEmployeeReturn = FullCustomerReturn & {
|
|
@@ -7975,12 +8423,18 @@ type OrderItem = {
|
|
|
7975
8423
|
details?: string;
|
|
7976
8424
|
};
|
|
7977
8425
|
};
|
|
8426
|
+
/**
|
|
8427
|
+
* returnId
|
|
8428
|
+
*/
|
|
7978
8429
|
type ReturnId = {
|
|
7979
8430
|
/**
|
|
7980
8431
|
* Unique identifier of the created return.
|
|
7981
8432
|
*/
|
|
7982
8433
|
id?: string;
|
|
7983
8434
|
};
|
|
8435
|
+
/**
|
|
8436
|
+
* patchRequest
|
|
8437
|
+
*/
|
|
7984
8438
|
type PatchOperation = {
|
|
7985
8439
|
/**
|
|
7986
8440
|
* Indicates an operation which should be done on a return. Available operations: `add` `remove` and `replace`
|
|
@@ -7997,6 +8451,9 @@ type PatchOperation = {
|
|
|
7997
8451
|
[key: string]: unknown;
|
|
7998
8452
|
} | string;
|
|
7999
8453
|
};
|
|
8454
|
+
/**
|
|
8455
|
+
* AssistedBuyingEntry
|
|
8456
|
+
*/
|
|
8000
8457
|
type AssistedBuyingEntry = {
|
|
8001
8458
|
/**
|
|
8002
8459
|
* Identifier of an employee who performed an action on behalf of a customer.
|
|
@@ -8012,6 +8469,8 @@ type AssistedBuyingEntry = {
|
|
|
8012
8469
|
timestamp?: string;
|
|
8013
8470
|
};
|
|
8014
8471
|
/**
|
|
8472
|
+
* assistedBuying
|
|
8473
|
+
*
|
|
8015
8474
|
* The field is populated only if an assisted buying operation was performed. The field is read-only. There is no possibility to update it by PUT/PATCH operation.
|
|
8016
8475
|
*/
|
|
8017
8476
|
type AssistedBuying = {
|
|
@@ -8162,6 +8621,9 @@ type ReindexRequest = {
|
|
|
8162
8621
|
*/
|
|
8163
8622
|
rag?: boolean;
|
|
8164
8623
|
};
|
|
8624
|
+
/**
|
|
8625
|
+
* IndexPublicConfiguration
|
|
8626
|
+
*/
|
|
8165
8627
|
type IndexPublicConfiguration = {
|
|
8166
8628
|
/**
|
|
8167
8629
|
* API Key used for search purposes.
|
|
@@ -8184,6 +8646,9 @@ type IndexPublicConfiguration = {
|
|
|
8184
8646
|
*/
|
|
8185
8647
|
active?: boolean;
|
|
8186
8648
|
};
|
|
8649
|
+
/**
|
|
8650
|
+
* IndexConfiguration
|
|
8651
|
+
*/
|
|
8187
8652
|
type IndexConfiguration = IndexPublicConfiguration & {
|
|
8188
8653
|
/**
|
|
8189
8654
|
* API key used for write purposes.
|
|
@@ -8201,12 +8666,18 @@ type IndexConfiguration = IndexPublicConfiguration & {
|
|
|
8201
8666
|
*/
|
|
8202
8667
|
includedMixinPaths?: Array<string>;
|
|
8203
8668
|
};
|
|
8669
|
+
/**
|
|
8670
|
+
* IndexCreationResponse
|
|
8671
|
+
*/
|
|
8204
8672
|
type IndexCreationResponse = {
|
|
8205
8673
|
/**
|
|
8206
8674
|
* Identifier of a newly created configuration.
|
|
8207
8675
|
*/
|
|
8208
8676
|
id?: string;
|
|
8209
8677
|
};
|
|
8678
|
+
/**
|
|
8679
|
+
* Reindex
|
|
8680
|
+
*/
|
|
8210
8681
|
type Reindex = {
|
|
8211
8682
|
/**
|
|
8212
8683
|
* Indicates reindex mode. Supported modes: `FULL`.
|
|
@@ -8292,6 +8763,8 @@ declare class IndexingService {
|
|
|
8292
8763
|
}
|
|
8293
8764
|
|
|
8294
8765
|
/**
|
|
8766
|
+
* Import configuration
|
|
8767
|
+
*
|
|
8295
8768
|
* An import configuration grouping one or more streams.
|
|
8296
8769
|
*/
|
|
8297
8770
|
type ImportConfig$1 = {
|
|
@@ -8333,6 +8806,8 @@ type ImportConfig$1 = {
|
|
|
8333
8806
|
updatedAt?: string;
|
|
8334
8807
|
};
|
|
8335
8808
|
/**
|
|
8809
|
+
* Stream
|
|
8810
|
+
*
|
|
8336
8811
|
* A stream that extracts from a source, maps fields, and upserts into an Emporix target type.
|
|
8337
8812
|
*/
|
|
8338
8813
|
type ImportStream$1 = {
|
|
@@ -8370,6 +8845,8 @@ type ImportStream$1 = {
|
|
|
8370
8845
|
enabled?: boolean;
|
|
8371
8846
|
};
|
|
8372
8847
|
/**
|
|
8848
|
+
* Schedule
|
|
8849
|
+
*
|
|
8373
8850
|
* A cron schedule for a configuration.
|
|
8374
8851
|
*/
|
|
8375
8852
|
type Schedule = {
|
|
@@ -8399,6 +8876,8 @@ type Schedule = {
|
|
|
8399
8876
|
nextFireAt?: string;
|
|
8400
8877
|
};
|
|
8401
8878
|
/**
|
|
8879
|
+
* Run
|
|
8880
|
+
*
|
|
8402
8881
|
* An import run and its reconciled counters.
|
|
8403
8882
|
*/
|
|
8404
8883
|
type ImportRun$1 = {
|
|
@@ -8464,6 +8943,8 @@ type ImportRun$1 = {
|
|
|
8464
8943
|
message?: string;
|
|
8465
8944
|
};
|
|
8466
8945
|
/**
|
|
8946
|
+
* Run stream progress
|
|
8947
|
+
*
|
|
8467
8948
|
* The per-stream progress within a run.
|
|
8468
8949
|
*/
|
|
8469
8950
|
type ImportRunStream$1 = {
|
|
@@ -8517,6 +8998,8 @@ type ImportRunStream$1 = {
|
|
|
8517
8998
|
message?: string;
|
|
8518
8999
|
};
|
|
8519
9000
|
/**
|
|
9001
|
+
* Run detail
|
|
9002
|
+
*
|
|
8520
9003
|
* A run together with its per-stream progress.
|
|
8521
9004
|
*/
|
|
8522
9005
|
type RunDetail = {
|
|
@@ -8527,6 +9010,8 @@ type RunDetail = {
|
|
|
8527
9010
|
streams?: Array<ImportRunStream$1>;
|
|
8528
9011
|
};
|
|
8529
9012
|
/**
|
|
9013
|
+
* Cancellation result
|
|
9014
|
+
*
|
|
8530
9015
|
* The outcome of a cancellation request.
|
|
8531
9016
|
*/
|
|
8532
9017
|
type CancelResult = {
|
|
@@ -8544,6 +9029,8 @@ type CancelResult = {
|
|
|
8544
9029
|
accepted?: boolean;
|
|
8545
9030
|
};
|
|
8546
9031
|
/**
|
|
9032
|
+
* Error record
|
|
9033
|
+
*
|
|
8547
9034
|
* A single error recorded during a run.
|
|
8548
9035
|
*/
|
|
8549
9036
|
type ErrorRecord = {
|
|
@@ -8585,6 +9072,8 @@ type ErrorRecord = {
|
|
|
8585
9072
|
createdAt?: string;
|
|
8586
9073
|
};
|
|
8587
9074
|
/**
|
|
9075
|
+
* Imported record
|
|
9076
|
+
*
|
|
8588
9077
|
* A record that was imported. Holds keys and outcome; for composite parents it also holds the embedded child arrays.
|
|
8589
9078
|
*/
|
|
8590
9079
|
type ImportedRecord$1 = {
|
|
@@ -9092,8 +9581,8 @@ type Catalog$1 = {
|
|
|
9092
9581
|
* Catalog's unique identifier, generated when the catalog is created.
|
|
9093
9582
|
*/
|
|
9094
9583
|
id: string;
|
|
9095
|
-
name?:
|
|
9096
|
-
description?:
|
|
9584
|
+
name?: Object$1 & unknown;
|
|
9585
|
+
description?: Object$1 & unknown;
|
|
9097
9586
|
status?: Status & unknown;
|
|
9098
9587
|
visibility?: VisibilityInformation;
|
|
9099
9588
|
/**
|
|
@@ -9114,8 +9603,8 @@ type CreateCatalog = {
|
|
|
9114
9603
|
* Custom catalog identifier. If not provided, it is automatically generated.
|
|
9115
9604
|
*/
|
|
9116
9605
|
id?: string;
|
|
9117
|
-
name:
|
|
9118
|
-
description?:
|
|
9606
|
+
name: Object$1;
|
|
9607
|
+
description?: Object$1;
|
|
9119
9608
|
visibility?: VisibilityInformation;
|
|
9120
9609
|
/**
|
|
9121
9610
|
* List of site identifiers on which the catalog is published.
|
|
@@ -9155,7 +9644,7 @@ type Metadata$2 = {
|
|
|
9155
9644
|
/**
|
|
9156
9645
|
* Localized field that must be provided as a map of language codes to translations.
|
|
9157
9646
|
*/
|
|
9158
|
-
type
|
|
9647
|
+
type Object$1 = string | {
|
|
9159
9648
|
[key: string]: string;
|
|
9160
9649
|
};
|
|
9161
9650
|
/**
|
|
@@ -9166,8 +9655,8 @@ type Status = 'not_visible' | 'visible';
|
|
|
9166
9655
|
* Payload for updating a catalog.
|
|
9167
9656
|
*/
|
|
9168
9657
|
type UpdateCatalog = {
|
|
9169
|
-
name:
|
|
9170
|
-
description?:
|
|
9658
|
+
name: Object$1;
|
|
9659
|
+
description?: Object$1;
|
|
9171
9660
|
visibility?: VisibilityInformation;
|
|
9172
9661
|
/**
|
|
9173
9662
|
* List of site identifiers on which the catalog is published.
|
|
@@ -9183,8 +9672,8 @@ type UpdateCatalog = {
|
|
|
9183
9672
|
* Payload for partially updating a catalog.
|
|
9184
9673
|
*/
|
|
9185
9674
|
type UpdateCatalogProperties = {
|
|
9186
|
-
name?:
|
|
9187
|
-
description?:
|
|
9675
|
+
name?: Object$1;
|
|
9676
|
+
description?: Object$1;
|
|
9188
9677
|
visibility?: VisibilityInformation;
|
|
9189
9678
|
/**
|
|
9190
9679
|
* List of site identifiers on which the catalog is published.
|
|
@@ -9279,12 +9768,18 @@ type Metadata$1 = MetadataUpdate & {
|
|
|
9279
9768
|
*/
|
|
9280
9769
|
modifiedAt?: string;
|
|
9281
9770
|
};
|
|
9771
|
+
/**
|
|
9772
|
+
* Resource
|
|
9773
|
+
*/
|
|
9282
9774
|
type ResourceId = {
|
|
9283
9775
|
/**
|
|
9284
9776
|
* Id of a resource.
|
|
9285
9777
|
*/
|
|
9286
9778
|
id?: string;
|
|
9287
9779
|
};
|
|
9780
|
+
/**
|
|
9781
|
+
* Vendor
|
|
9782
|
+
*/
|
|
9288
9783
|
type Vendor$1 = {
|
|
9289
9784
|
/**
|
|
9290
9785
|
* The vendor unique identifier.
|
|
@@ -9319,6 +9814,9 @@ type Vendor$1 = {
|
|
|
9319
9814
|
[key: string]: unknown;
|
|
9320
9815
|
};
|
|
9321
9816
|
};
|
|
9817
|
+
/**
|
|
9818
|
+
* Vendor Legal Information
|
|
9819
|
+
*/
|
|
9322
9820
|
type LegalInfo = {
|
|
9323
9821
|
/**
|
|
9324
9822
|
* The legal name of the vendor.
|
|
@@ -9337,6 +9835,9 @@ type LegalInfo = {
|
|
|
9337
9835
|
*/
|
|
9338
9836
|
taxRegistrationNumber?: string;
|
|
9339
9837
|
};
|
|
9838
|
+
/**
|
|
9839
|
+
* Contact Details
|
|
9840
|
+
*/
|
|
9340
9841
|
type VendorContactDetails = {
|
|
9341
9842
|
/**
|
|
9342
9843
|
* The list of contact emails.
|
|
@@ -9367,6 +9868,9 @@ type VendorContactDetails = {
|
|
|
9367
9868
|
*/
|
|
9368
9869
|
countryCode?: string;
|
|
9369
9870
|
};
|
|
9871
|
+
/**
|
|
9872
|
+
* Vendor create payload
|
|
9873
|
+
*/
|
|
9370
9874
|
type VendorCreate = {
|
|
9371
9875
|
/**
|
|
9372
9876
|
* Custom vendor identifier. If not provided, it is automatically generated.
|
|
@@ -9400,6 +9904,9 @@ type VendorCreate = {
|
|
|
9400
9904
|
[key: string]: unknown;
|
|
9401
9905
|
};
|
|
9402
9906
|
};
|
|
9907
|
+
/**
|
|
9908
|
+
* Vendor update payload
|
|
9909
|
+
*/
|
|
9403
9910
|
type VendorUpdate$1 = {
|
|
9404
9911
|
/**
|
|
9405
9912
|
* The name of the vendor.
|
|
@@ -9430,6 +9937,9 @@ type VendorUpdate$1 = {
|
|
|
9430
9937
|
[key: string]: unknown;
|
|
9431
9938
|
};
|
|
9432
9939
|
};
|
|
9940
|
+
/**
|
|
9941
|
+
* Location
|
|
9942
|
+
*/
|
|
9433
9943
|
type Location$1 = {
|
|
9434
9944
|
/**
|
|
9435
9945
|
* The location unique identifier.
|
|
@@ -9452,6 +9962,9 @@ type Location$1 = {
|
|
|
9452
9962
|
[key: string]: unknown;
|
|
9453
9963
|
};
|
|
9454
9964
|
};
|
|
9965
|
+
/**
|
|
9966
|
+
* Location create payload
|
|
9967
|
+
*/
|
|
9455
9968
|
type LocationCreate = {
|
|
9456
9969
|
/**
|
|
9457
9970
|
* Custom location identifier. If not provided, it is automatically generated.
|
|
@@ -9473,6 +9986,9 @@ type LocationCreate = {
|
|
|
9473
9986
|
[key: string]: unknown;
|
|
9474
9987
|
};
|
|
9475
9988
|
};
|
|
9989
|
+
/**
|
|
9990
|
+
* Location update payload
|
|
9991
|
+
*/
|
|
9476
9992
|
type LocationUpdate = {
|
|
9477
9993
|
/**
|
|
9478
9994
|
* The name of the location.
|
|
@@ -9491,6 +10007,9 @@ type LocationUpdate = {
|
|
|
9491
10007
|
[key: string]: unknown;
|
|
9492
10008
|
};
|
|
9493
10009
|
};
|
|
10010
|
+
/**
|
|
10011
|
+
* Contact Details
|
|
10012
|
+
*/
|
|
9494
10013
|
type ContactDetails = {
|
|
9495
10014
|
/**
|
|
9496
10015
|
* The list of contact emails.
|
|
@@ -9711,6 +10230,9 @@ type PackagingProductsChange = {
|
|
|
9711
10230
|
*/
|
|
9712
10231
|
packedCount: number;
|
|
9713
10232
|
};
|
|
10233
|
+
/**
|
|
10234
|
+
* Assignee
|
|
10235
|
+
*/
|
|
9714
10236
|
type Assignee$1 = {
|
|
9715
10237
|
/**
|
|
9716
10238
|
* Identifier of an assignment
|
|
@@ -9729,6 +10251,9 @@ type Assignee$1 = {
|
|
|
9729
10251
|
*/
|
|
9730
10252
|
lastName: string;
|
|
9731
10253
|
};
|
|
10254
|
+
/**
|
|
10255
|
+
* Order
|
|
10256
|
+
*/
|
|
9732
10257
|
type Order = {
|
|
9733
10258
|
/**
|
|
9734
10259
|
* The id of the packed order
|
|
@@ -9782,6 +10307,9 @@ type Order = {
|
|
|
9782
10307
|
*/
|
|
9783
10308
|
holdingAreaNumber?: number;
|
|
9784
10309
|
};
|
|
10310
|
+
/**
|
|
10311
|
+
* Entry
|
|
10312
|
+
*/
|
|
9785
10313
|
type Entry = {
|
|
9786
10314
|
/**
|
|
9787
10315
|
* The entry id
|
|
@@ -9841,6 +10369,9 @@ type Entry = {
|
|
|
9841
10369
|
basePrice?: BasePrice;
|
|
9842
10370
|
mhd?: string;
|
|
9843
10371
|
};
|
|
10372
|
+
/**
|
|
10373
|
+
* Customer
|
|
10374
|
+
*/
|
|
9844
10375
|
type Customer = {
|
|
9845
10376
|
id?: string;
|
|
9846
10377
|
title?: string;
|
|
@@ -9851,6 +10382,9 @@ type Customer = {
|
|
|
9851
10382
|
email?: string;
|
|
9852
10383
|
phoneNumber?: string;
|
|
9853
10384
|
};
|
|
10385
|
+
/**
|
|
10386
|
+
* Delivery
|
|
10387
|
+
*/
|
|
9854
10388
|
type Delivery = {
|
|
9855
10389
|
deliveryTimeModel?: DeliveryTime;
|
|
9856
10390
|
deliveryAddressModel?: DeliveryAddress;
|
|
@@ -9858,15 +10392,24 @@ type Delivery = {
|
|
|
9858
10392
|
deliveryOptionModel?: DeliveryOption;
|
|
9859
10393
|
deliveryWindow?: DeliveryWindow$1;
|
|
9860
10394
|
};
|
|
10395
|
+
/**
|
|
10396
|
+
* Payment
|
|
10397
|
+
*/
|
|
9861
10398
|
type Payment$1 = {
|
|
9862
10399
|
invoiceNumber?: string;
|
|
9863
10400
|
invoiceAddress?: InvoiceAddress;
|
|
9864
10401
|
methods?: Array<string>;
|
|
9865
10402
|
};
|
|
10403
|
+
/**
|
|
10404
|
+
* PricingMeasure
|
|
10405
|
+
*/
|
|
9866
10406
|
type PricingMeasure = {
|
|
9867
10407
|
unitCode?: string;
|
|
9868
10408
|
value?: string;
|
|
9869
10409
|
};
|
|
10410
|
+
/**
|
|
10411
|
+
* Location
|
|
10412
|
+
*/
|
|
9870
10413
|
type Location = {
|
|
9871
10414
|
zone?: string;
|
|
9872
10415
|
rack?: string;
|
|
@@ -9875,6 +10418,9 @@ type Location = {
|
|
|
9875
10418
|
section?: string;
|
|
9876
10419
|
bin?: string;
|
|
9877
10420
|
};
|
|
10421
|
+
/**
|
|
10422
|
+
* BasePrice
|
|
10423
|
+
*/
|
|
9878
10424
|
type BasePrice = {
|
|
9879
10425
|
effectiveAmount?: string;
|
|
9880
10426
|
originalAmount?: string;
|
|
@@ -9882,12 +10428,18 @@ type BasePrice = {
|
|
|
9882
10428
|
basePriceFactor?: string;
|
|
9883
10429
|
measurementUnit?: MeasurementUnit;
|
|
9884
10430
|
};
|
|
10431
|
+
/**
|
|
10432
|
+
* DeliveryTime
|
|
10433
|
+
*/
|
|
9885
10434
|
type DeliveryTime = {
|
|
9886
10435
|
deliveryDate?: string;
|
|
9887
10436
|
deliveryTimeFrom?: string;
|
|
9888
10437
|
deliveryTimeTo?: string;
|
|
9889
10438
|
deliveryChargeType?: string;
|
|
9890
10439
|
};
|
|
10440
|
+
/**
|
|
10441
|
+
* DeliveryAddress
|
|
10442
|
+
*/
|
|
9891
10443
|
type DeliveryAddress = {
|
|
9892
10444
|
title?: string;
|
|
9893
10445
|
contactName?: string;
|
|
@@ -9899,10 +10451,16 @@ type DeliveryAddress = {
|
|
|
9899
10451
|
city?: string;
|
|
9900
10452
|
country?: string;
|
|
9901
10453
|
};
|
|
10454
|
+
/**
|
|
10455
|
+
* DeliveryCost
|
|
10456
|
+
*/
|
|
9902
10457
|
type DeliveryCost = {
|
|
9903
10458
|
amount?: number;
|
|
9904
10459
|
currency?: string;
|
|
9905
10460
|
};
|
|
10461
|
+
/**
|
|
10462
|
+
* DeliveryOption
|
|
10463
|
+
*/
|
|
9906
10464
|
type DeliveryOption = {
|
|
9907
10465
|
packaging?: string;
|
|
9908
10466
|
replacement?: boolean;
|
|
@@ -9910,6 +10468,8 @@ type DeliveryOption = {
|
|
|
9910
10468
|
deliveryNote?: string;
|
|
9911
10469
|
};
|
|
9912
10470
|
/**
|
|
10471
|
+
* DeliveryWindow
|
|
10472
|
+
*
|
|
9913
10473
|
* This object contains attributes that are related to selected delivery window for a given order and allows to group orders by delivery cycle and sort by delivery time for a better and more efficient packing experience
|
|
9914
10474
|
*/
|
|
9915
10475
|
type DeliveryWindow$1 = {
|
|
@@ -9926,6 +10486,9 @@ type DeliveryWindow$1 = {
|
|
|
9926
10486
|
*/
|
|
9927
10487
|
deliveryTimeTo?: string;
|
|
9928
10488
|
};
|
|
10489
|
+
/**
|
|
10490
|
+
* InvoiceAddress
|
|
10491
|
+
*/
|
|
9929
10492
|
type InvoiceAddress = {
|
|
9930
10493
|
title?: string;
|
|
9931
10494
|
contactName?: string;
|
|
@@ -9937,11 +10500,17 @@ type InvoiceAddress = {
|
|
|
9937
10500
|
city?: string;
|
|
9938
10501
|
country?: string;
|
|
9939
10502
|
};
|
|
10503
|
+
/**
|
|
10504
|
+
* RecalculationJobOrder
|
|
10505
|
+
*/
|
|
9940
10506
|
type RecalculationJobOrder = {
|
|
9941
10507
|
orderId?: string;
|
|
9942
10508
|
message?: string;
|
|
9943
10509
|
jobOrderStatus?: 'SUCCESS' | 'FAILURE' | 'PENDING';
|
|
9944
10510
|
};
|
|
10511
|
+
/**
|
|
10512
|
+
* RecalculationJob
|
|
10513
|
+
*/
|
|
9945
10514
|
type RecalculationJob$1 = {
|
|
9946
10515
|
id?: string;
|
|
9947
10516
|
jobType?: 'AUTOMATIC' | 'MANUAL';
|
|
@@ -9950,6 +10519,9 @@ type RecalculationJob$1 = {
|
|
|
9950
10519
|
startedAt?: string;
|
|
9951
10520
|
finishedAt?: string;
|
|
9952
10521
|
};
|
|
10522
|
+
/**
|
|
10523
|
+
* RecalculationJobCreation
|
|
10524
|
+
*/
|
|
9953
10525
|
type RecalculationJobCreation = {
|
|
9954
10526
|
/**
|
|
9955
10527
|
* The order identifiers requiring recalculation. This attribute is optional. In case the job type is `AUTOMATIC` the orders for recalculation will be selected automatically based on last packing events.
|
|
@@ -9962,6 +10534,9 @@ type RecalculationJobCreation = {
|
|
|
9962
10534
|
*/
|
|
9963
10535
|
jobType: 'AUTOMATIC' | 'MANUAL';
|
|
9964
10536
|
};
|
|
10537
|
+
/**
|
|
10538
|
+
* MeasurementUnit
|
|
10539
|
+
*/
|
|
9965
10540
|
type MeasurementUnit = {
|
|
9966
10541
|
/**
|
|
9967
10542
|
* The unit code of the measured quantity
|
|
@@ -9972,6 +10547,9 @@ type MeasurementUnit = {
|
|
|
9972
10547
|
*/
|
|
9973
10548
|
quantity?: number;
|
|
9974
10549
|
};
|
|
10550
|
+
/**
|
|
10551
|
+
* OrderList
|
|
10552
|
+
*/
|
|
9975
10553
|
type OrderList = {
|
|
9976
10554
|
/**
|
|
9977
10555
|
* The id of the order
|
|
@@ -10118,6 +10696,9 @@ type Address$1 = {
|
|
|
10118
10696
|
[key: string]: unknown;
|
|
10119
10697
|
};
|
|
10120
10698
|
};
|
|
10699
|
+
/**
|
|
10700
|
+
* AddressCommonDto
|
|
10701
|
+
*/
|
|
10121
10702
|
type AddressCommonDto = {
|
|
10122
10703
|
contactName?: string;
|
|
10123
10704
|
companyName?: string;
|
|
@@ -10235,6 +10816,9 @@ type CustomerCreateDto = {
|
|
|
10235
10816
|
type CustomerCommonDto = CustomerCreateDto & {
|
|
10236
10817
|
metadata?: DefaultDtoMetadata;
|
|
10237
10818
|
};
|
|
10819
|
+
/**
|
|
10820
|
+
* CustomerForSellerDto
|
|
10821
|
+
*/
|
|
10238
10822
|
type CustomerForSellerDto = CustomerCommonDto & {
|
|
10239
10823
|
/**
|
|
10240
10824
|
* Customer unique number generated when the customer profile is created.
|
|
@@ -10408,6 +10992,8 @@ type CustomerPatchBySellerDto = CustomerUpdateBySellerDto & {
|
|
|
10408
10992
|
contactEmail?: string;
|
|
10409
10993
|
};
|
|
10410
10994
|
/**
|
|
10995
|
+
* DefaultDtoMetadata
|
|
10996
|
+
*
|
|
10411
10997
|
* Links to mixin schemas.
|
|
10412
10998
|
*/
|
|
10413
10999
|
type BasicMetadataDto = {
|
|
@@ -10415,10 +11001,15 @@ type BasicMetadataDto = {
|
|
|
10415
11001
|
[key: string]: unknown;
|
|
10416
11002
|
};
|
|
10417
11003
|
};
|
|
11004
|
+
/**
|
|
11005
|
+
* DefaultDtoMetadata
|
|
11006
|
+
*/
|
|
10418
11007
|
type DefaultDtoMetadata = BasicMetadataDto & {
|
|
10419
11008
|
version?: number;
|
|
10420
11009
|
};
|
|
10421
11010
|
/**
|
|
11011
|
+
* Resource Location
|
|
11012
|
+
*
|
|
10422
11013
|
* Schema for showing location of the new resource.
|
|
10423
11014
|
*/
|
|
10424
11015
|
type ResourceLocation = {
|
|
@@ -10602,6 +11193,8 @@ declare class CustomerAdminService {
|
|
|
10602
11193
|
}
|
|
10603
11194
|
|
|
10604
11195
|
/**
|
|
11196
|
+
* basicApproval
|
|
11197
|
+
*
|
|
10605
11198
|
* Base schema for an approval.
|
|
10606
11199
|
*/
|
|
10607
11200
|
type BasicApproval = GenericApprovalForCreate & {
|
|
@@ -10609,6 +11202,8 @@ type BasicApproval = GenericApprovalForCreate & {
|
|
|
10609
11202
|
details?: Details;
|
|
10610
11203
|
};
|
|
10611
11204
|
/**
|
|
11205
|
+
* basicApproval
|
|
11206
|
+
*
|
|
10612
11207
|
* Base schema for an approval creation.
|
|
10613
11208
|
*/
|
|
10614
11209
|
type GenericApprovalForCreate = {
|
|
@@ -10628,6 +11223,8 @@ type GenericApprovalForCreate = {
|
|
|
10628
11223
|
comment?: string;
|
|
10629
11224
|
};
|
|
10630
11225
|
/**
|
|
11226
|
+
* additional information
|
|
11227
|
+
*
|
|
10631
11228
|
* Checkout details for **cart** approvals. **Required** when `resourceType` is `CART`.
|
|
10632
11229
|
*
|
|
10633
11230
|
*/
|
|
@@ -10667,6 +11264,8 @@ type Address = {
|
|
|
10667
11264
|
type?: 'SHIPPING' | 'BILLING';
|
|
10668
11265
|
};
|
|
10669
11266
|
/**
|
|
11267
|
+
* Shipping information
|
|
11268
|
+
*
|
|
10670
11269
|
* Information about the shipping.
|
|
10671
11270
|
*/
|
|
10672
11271
|
type Shipping = {
|
|
@@ -10692,6 +11291,8 @@ type Shipping = {
|
|
|
10692
11291
|
shippingTaxCode?: string;
|
|
10693
11292
|
};
|
|
10694
11293
|
/**
|
|
11294
|
+
* Payment information
|
|
11295
|
+
*
|
|
10695
11296
|
* Information about the payment.
|
|
10696
11297
|
*/
|
|
10697
11298
|
type Payment = {
|
|
@@ -10735,6 +11336,9 @@ type PaymentMethod = {
|
|
|
10735
11336
|
*/
|
|
10736
11337
|
amount?: number;
|
|
10737
11338
|
};
|
|
11339
|
+
/**
|
|
11340
|
+
* user schema
|
|
11341
|
+
*/
|
|
10738
11342
|
type User = {
|
|
10739
11343
|
/**
|
|
10740
11344
|
* An identifier of the user.
|
|
@@ -10750,22 +11354,33 @@ type User = {
|
|
|
10750
11354
|
lastName: string;
|
|
10751
11355
|
};
|
|
10752
11356
|
/**
|
|
11357
|
+
* A type of a resource
|
|
11358
|
+
*
|
|
10753
11359
|
* Type of resource under approval.
|
|
10754
11360
|
*
|
|
10755
11361
|
*/
|
|
10756
11362
|
type ResourceType = 'CART' | 'QUOTE';
|
|
10757
11363
|
/**
|
|
11364
|
+
* An approval action
|
|
11365
|
+
*
|
|
10758
11366
|
* Base schema for an approval action type.
|
|
10759
11367
|
*/
|
|
10760
11368
|
type ApprovalAction = 'CHECKOUT';
|
|
10761
11369
|
/**
|
|
11370
|
+
* A status of the approval
|
|
11371
|
+
*
|
|
10762
11372
|
* Base schema for the approval status.
|
|
10763
11373
|
*/
|
|
10764
11374
|
type ApprovalStatus = 'PENDING' | 'APPROVED' | 'CLOSED' | 'EXPIRED' | 'DECLINED';
|
|
10765
11375
|
/**
|
|
11376
|
+
* An expiration date
|
|
11377
|
+
*
|
|
10766
11378
|
* An expiration date which defines when the approval will expire. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-31T13:18:02.379Z`
|
|
10767
11379
|
*/
|
|
10768
11380
|
type ExpiryDate = string;
|
|
11381
|
+
/**
|
|
11382
|
+
* An approval response
|
|
11383
|
+
*/
|
|
10769
11384
|
type GetApprovalResponse = BasicApproval & {
|
|
10770
11385
|
/**
|
|
10771
11386
|
* An identifier of the approval document.
|
|
@@ -10785,6 +11400,8 @@ type GetApprovalResponse = BasicApproval & {
|
|
|
10785
11400
|
metadata?: Metadata;
|
|
10786
11401
|
};
|
|
10787
11402
|
/**
|
|
11403
|
+
* Legal entity
|
|
11404
|
+
*
|
|
10788
11405
|
* Legal entity (company) the approval belongs to. Set when the approval is created from the customer token.
|
|
10789
11406
|
*
|
|
10790
11407
|
*/
|
|
@@ -10795,6 +11412,8 @@ type LegalEntity = {
|
|
|
10795
11412
|
id: string;
|
|
10796
11413
|
};
|
|
10797
11414
|
/**
|
|
11415
|
+
* Created resource
|
|
11416
|
+
*
|
|
10798
11417
|
* Resource created when the approval flow completes and the approved action is executed. Present once the downstream system has created the linked entity; omitted until then.
|
|
10799
11418
|
*
|
|
10800
11419
|
* For checkout approvals (`action: CHECKOUT`), `id` is typically the order identifier (for example, from Order Service).
|
|
@@ -10807,6 +11426,8 @@ type CreatedResource = {
|
|
|
10807
11426
|
id: string;
|
|
10808
11427
|
};
|
|
10809
11428
|
/**
|
|
11429
|
+
* approval permitted response
|
|
11430
|
+
*
|
|
10810
11431
|
* Base schema for approval permitted response.
|
|
10811
11432
|
*/
|
|
10812
11433
|
type ApprovalPermittedResponse = {
|
|
@@ -10822,6 +11443,8 @@ type ApprovalPermittedResponse = {
|
|
|
10822
11443
|
approvalId?: string;
|
|
10823
11444
|
};
|
|
10824
11445
|
/**
|
|
11446
|
+
* Resource
|
|
11447
|
+
*
|
|
10825
11448
|
* Resource of the approval.
|
|
10826
11449
|
*/
|
|
10827
11450
|
type ResourceResponse = {
|
|
@@ -10840,6 +11463,8 @@ type ResourceResponse = {
|
|
|
10840
11463
|
deliveryWindow?: DeliveryWindow;
|
|
10841
11464
|
};
|
|
10842
11465
|
/**
|
|
11466
|
+
* Resource item
|
|
11467
|
+
*
|
|
10843
11468
|
* Item of the resource.
|
|
10844
11469
|
*/
|
|
10845
11470
|
type ResourceItem = {
|
|
@@ -10850,6 +11475,7 @@ type ResourceItem = {
|
|
|
10850
11475
|
itemPrice?: ResourceItemPrice;
|
|
10851
11476
|
/**
|
|
10852
11477
|
* YRN which identifies the product.
|
|
11478
|
+
*
|
|
10853
11479
|
* @deprecated
|
|
10854
11480
|
*/
|
|
10855
11481
|
itemYrn?: string;
|
|
@@ -10859,6 +11485,8 @@ type ResourceItem = {
|
|
|
10859
11485
|
itemId?: string;
|
|
10860
11486
|
};
|
|
10861
11487
|
/**
|
|
11488
|
+
* Resource item price
|
|
11489
|
+
*
|
|
10862
11490
|
* Per-line price; used for resource line items.
|
|
10863
11491
|
*/
|
|
10864
11492
|
type ResourceItemPrice = {
|
|
@@ -10868,6 +11496,7 @@ type ResourceItemPrice = {
|
|
|
10868
11496
|
currency?: string;
|
|
10869
11497
|
/**
|
|
10870
11498
|
* Deprecated; prefer `unitPrice`, `newUnitPrice`, or `calculatedPrice`.
|
|
11499
|
+
*
|
|
10871
11500
|
* @deprecated
|
|
10872
11501
|
*/
|
|
10873
11502
|
amount?: number;
|
|
@@ -10881,6 +11510,9 @@ type ResourceItemPrice = {
|
|
|
10881
11510
|
newUnitPrice?: number;
|
|
10882
11511
|
calculatedPrice?: CalculatedPrice;
|
|
10883
11512
|
};
|
|
11513
|
+
/**
|
|
11514
|
+
* Calculated price breakdown
|
|
11515
|
+
*/
|
|
10884
11516
|
type CalculatedPrice = {
|
|
10885
11517
|
price?: {
|
|
10886
11518
|
/**
|
|
@@ -10898,6 +11530,8 @@ type CalculatedPrice = {
|
|
|
10898
11530
|
};
|
|
10899
11531
|
};
|
|
10900
11532
|
/**
|
|
11533
|
+
* Price value
|
|
11534
|
+
*
|
|
10901
11535
|
* Aggregated price (totals, subtotals) with currency and optional tax breakdown.
|
|
10902
11536
|
*/
|
|
10903
11537
|
type Price = {
|
|
@@ -10907,6 +11541,7 @@ type Price = {
|
|
|
10907
11541
|
currency?: string;
|
|
10908
11542
|
/**
|
|
10909
11543
|
* Deprecated; use `netValue`, `grossValue`, and `taxValue` when present.
|
|
11544
|
+
*
|
|
10910
11545
|
* @deprecated
|
|
10911
11546
|
*/
|
|
10912
11547
|
amount?: number;
|
|
@@ -10924,6 +11559,8 @@ type Price = {
|
|
|
10924
11559
|
taxValue?: number;
|
|
10925
11560
|
};
|
|
10926
11561
|
/**
|
|
11562
|
+
* Taxable price value
|
|
11563
|
+
*
|
|
10927
11564
|
* Price value with the currency and tax information.
|
|
10928
11565
|
*/
|
|
10929
11566
|
type TaxablePrice = {
|
|
@@ -10945,6 +11582,8 @@ type TaxablePrice = {
|
|
|
10945
11582
|
taxValue?: number;
|
|
10946
11583
|
};
|
|
10947
11584
|
/**
|
|
11585
|
+
* Delivery Window
|
|
11586
|
+
*
|
|
10948
11587
|
* delivery window required for order.
|
|
10949
11588
|
*/
|
|
10950
11589
|
type DeliveryWindow = {
|
|
@@ -10961,6 +11600,9 @@ type DeliveryWindow = {
|
|
|
10961
11600
|
*/
|
|
10962
11601
|
deliveryDate?: string;
|
|
10963
11602
|
};
|
|
11603
|
+
/**
|
|
11604
|
+
* Create a cart approval
|
|
11605
|
+
*/
|
|
10964
11606
|
type CreateCartApprovalRequest = GenericApprovalForCreate & {
|
|
10965
11607
|
/**
|
|
10966
11608
|
* An identifier of the approval document.
|
|
@@ -10973,6 +11615,9 @@ type CreateCartApprovalRequest = GenericApprovalForCreate & {
|
|
|
10973
11615
|
resourceType: 'CART';
|
|
10974
11616
|
details: Details;
|
|
10975
11617
|
};
|
|
11618
|
+
/**
|
|
11619
|
+
* Create a quote approval
|
|
11620
|
+
*/
|
|
10976
11621
|
type CreateQuoteApprovalRequest = GenericApprovalForCreate & {
|
|
10977
11622
|
/**
|
|
10978
11623
|
* An identifier of the approval document.
|
|
@@ -11012,12 +11657,18 @@ type Metadata = BasicMetadata & {
|
|
|
11012
11657
|
*/
|
|
11013
11658
|
modifiedAt: string;
|
|
11014
11659
|
};
|
|
11660
|
+
/**
|
|
11661
|
+
* approvalId
|
|
11662
|
+
*/
|
|
11015
11663
|
type ApprovalId = {
|
|
11016
11664
|
/**
|
|
11017
11665
|
* Unique identifier of the created approval.
|
|
11018
11666
|
*/
|
|
11019
11667
|
id?: string;
|
|
11020
11668
|
};
|
|
11669
|
+
/**
|
|
11670
|
+
* approval permitted request
|
|
11671
|
+
*/
|
|
11021
11672
|
type ApprovalPermittedRequest = {
|
|
11022
11673
|
resourceType: ResourceType;
|
|
11023
11674
|
/**
|
|
@@ -11026,6 +11677,9 @@ type ApprovalPermittedRequest = {
|
|
|
11026
11677
|
resourceId: string;
|
|
11027
11678
|
action: ApprovalAction;
|
|
11028
11679
|
};
|
|
11680
|
+
/**
|
|
11681
|
+
* Search approver users request
|
|
11682
|
+
*/
|
|
11029
11683
|
type SearchUsersRequest = {
|
|
11030
11684
|
resourceType: ResourceType;
|
|
11031
11685
|
/**
|