@viu/emporix-sdk 2.36.0 → 2.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/cart.d.cts +21 -3
  3. package/dist/cart.d.ts +21 -3
  4. package/dist/category.d.cts +4 -0
  5. package/dist/category.d.ts +4 -0
  6. package/dist/{chunk-LQFRJSVT.js → chunk-5XZ6MSXW.js} +13 -2
  7. package/dist/chunk-5XZ6MSXW.js.map +1 -0
  8. package/dist/{chunk-PRN3T6TY.js → chunk-UA4BM6OP.js} +20 -2
  9. package/dist/chunk-UA4BM6OP.js.map +1 -0
  10. package/dist/companies.d.cts +2 -2
  11. package/dist/companies.d.ts +2 -2
  12. package/dist/contacts.d.cts +1 -1
  13. package/dist/contacts.d.ts +1 -1
  14. package/dist/{customer-groups-D0OCm8kJ.d.cts → customer-groups-BfHDqExS.d.cts} +2 -0
  15. package/dist/{customer-groups-WSt4aT62.d.ts → customer-groups-Cs6-Cwzg.d.ts} +2 -0
  16. package/dist/customer-groups.cjs +11 -0
  17. package/dist/customer-groups.cjs.map +1 -1
  18. package/dist/customer-groups.d.cts +1 -1
  19. package/dist/customer-groups.d.ts +1 -1
  20. package/dist/customer-groups.js +1 -1
  21. package/dist/customer.cjs +18 -0
  22. package/dist/customer.cjs.map +1 -1
  23. package/dist/customer.d.cts +65 -1
  24. package/dist/customer.d.ts +65 -1
  25. package/dist/customer.js +1 -1
  26. package/dist/index.cjs +30 -1
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +546 -22
  29. package/dist/index.d.ts +546 -22
  30. package/dist/index.js +5 -5
  31. package/dist/index.js.map +1 -1
  32. package/dist/locations.d.cts +2 -2
  33. package/dist/locations.d.ts +2 -2
  34. package/dist/media.d.cts +24 -0
  35. package/dist/media.d.ts +24 -0
  36. package/dist/orders.d.cts +118 -6
  37. package/dist/orders.d.ts +118 -6
  38. package/dist/payment.d.cts +39 -0
  39. package/dist/payment.d.ts +39 -0
  40. package/dist/price.d.cts +45 -0
  41. package/dist/price.d.ts +45 -0
  42. package/dist/product.d.cts +20 -0
  43. package/dist/product.d.ts +20 -0
  44. package/dist/{types.gen-C_wOXYZB.d.cts → types.gen-fWB4nrso.d.cts} +52 -0
  45. package/dist/{types.gen-C_wOXYZB.d.ts → types.gen-fWB4nrso.d.ts} +52 -0
  46. package/package.json +5 -5
  47. package/dist/chunk-LQFRJSVT.js.map +0 -1
  48. package/dist/chunk-PRN3T6TY.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -21,14 +21,14 @@ export { Segment, SegmentAssignmentBulkResult, SegmentBulkItem, SegmentBulkResul
21
21
  import { CompaniesService } from './companies.cjs';
22
22
  import { ContactsService } from './contacts.cjs';
23
23
  import { LocationsService } from './locations.cjs';
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-D0OCm8kJ.cjs';
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-BfHDqExS.cjs';
25
25
  import { OrdersService, SalesOrdersService } from './orders.cjs';
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.cjs';
27
27
  import { AvailabilityService } from './availability.cjs';
28
28
  export { Availability, AvailabilityBulkDeleteInput, AvailabilityBulkInput, AvailabilityBulkResult, AvailabilityCreated, AvailabilityInput, AvailabilityOptions } from './availability.cjs';
29
29
  import { a as QueryFor } from './query-mLQs2WFr.cjs';
30
30
  export { B as BuiltQuery, Q as QueryCapability, r as resolveQuery } from './query-mLQs2WFr.cjs';
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-C_wOXYZB.cjs';
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.cjs';
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;
@@ -637,9 +677,18 @@ type SessionContextPatch = Pick<SessionContextPatch$1, "siteCode" | "currency" |
637
677
  };
638
678
 
639
679
  /**
640
- * Session-context binding for the current storefront session. Both endpoints
641
- * resolve the session-id from the `Authorization` token — no path/query
642
- * parameter required.
680
+ * Session-context binding for the current storefront session. Every method here
681
+ * hits a `/me/context` path, so the session-id comes from the `Authorization`
682
+ * token — no path or query parameter required.
683
+ *
684
+ * **The service's other half is intentionally not wrapped.** Emporix also exposes
685
+ * the same four operations addressed by an explicit session id —
686
+ * `GET`/`PUT /{sessionId}/context`, `POST`/`DELETE` on its attributes. Those are
687
+ * administrative: they let a caller read and rewrite *someone else's* session,
688
+ * which is not a storefront capability and needs a service token. Wrapping them
689
+ * here would put an admin surface on the object a storefront holds. If you need
690
+ * them, build the request directly — the generated types are in
691
+ * `../generated/session-context`.
643
692
  */
644
693
  declare class SessionContextService {
645
694
  private readonly ctx;
@@ -706,6 +755,13 @@ declare class IamService {
706
755
  update: (userId: string, input: IamUserUpdate, auth: AuthContext) => Promise<void>;
707
756
  delete: (userId: string, auth: AuthContext) => Promise<void>;
708
757
  getGroups: (userId: string, auth: AuthContext) => Promise<IamGroup[]>;
758
+ /**
759
+ * Reads one of a user's groups (`GET /users/{userId}/groups/{groupId}`).
760
+ * The collection read above returns the same shape per entry; this exists
761
+ * because Emporix exposes the item separately and a caller holding both ids
762
+ * should not have to page the collection to resolve one group.
763
+ */
764
+ getGroup: (userId: string, groupId: string, auth: AuthContext) => Promise<IamGroup>;
709
765
  getScopes: (userId: string, auth: AuthContext) => Promise<IamUserScopes>;
710
766
  getMyScopes: (auth: AuthContext) => Promise<IamUserScopes>;
711
767
  getAccessControls: (userId: string, auth: AuthContext) => Promise<IamAccessControl[]>;
@@ -737,6 +793,9 @@ declare class IamService {
737
793
  };
738
794
  }
739
795
 
796
+ /**
797
+ * BaseConfiguration
798
+ */
740
799
  type BaseConfiguration = {
741
800
  /**
742
801
  * Configuration key.
@@ -934,11 +993,13 @@ type MetadataFilter$1 = {
934
993
  key?: string;
935
994
  /**
936
995
  * Name of the field.
996
+ *
937
997
  * @deprecated
938
998
  */
939
999
  name?: string;
940
1000
  /**
941
1001
  * Description of the field.
1002
+ *
942
1003
  * @deprecated
943
1004
  */
944
1005
  description?: string;
@@ -1248,6 +1309,8 @@ type Fee$2 = {
1248
1309
  yrn?: Yrn;
1249
1310
  };
1250
1311
  /**
1312
+ * Monetary Amount
1313
+ *
1251
1314
  * Schema defining monetary amount in given currency.
1252
1315
  */
1253
1316
  type MonetaryAmount$1 = {
@@ -1261,6 +1324,8 @@ type MonetaryAmount$1 = {
1261
1324
  currency: string;
1262
1325
  };
1263
1326
  /**
1327
+ * Timespan
1328
+ *
1264
1329
  * Restricts the active fees to be only applied in the specified
1265
1330
  * timespan.
1266
1331
  */
@@ -1287,6 +1352,8 @@ type ItemFee$1 = {
1287
1352
  feeIds: Array<string>;
1288
1353
  };
1289
1354
  /**
1355
+ * YRN
1356
+ *
1290
1357
  * A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
1291
1358
  */
1292
1359
  type Yrn = string;
@@ -1636,6 +1703,8 @@ type WebhookConfigCreation = WebhookConfigUpdate & {
1636
1703
  code: ConfigCode;
1637
1704
  };
1638
1705
  /**
1706
+ * Webhook event
1707
+ *
1639
1708
  * Events that you can subscribe to.
1640
1709
  */
1641
1710
  type WebhookEvent = {
@@ -1669,6 +1738,8 @@ type WebhookEvent = {
1669
1738
  };
1670
1739
  };
1671
1740
  /**
1741
+ * Webhook subscription
1742
+ *
1672
1743
  * Subscription per event.
1673
1744
  */
1674
1745
  type WebhookSubscription$1 = {
@@ -1684,6 +1755,8 @@ type WebhookSubscription$1 = {
1684
1755
  excludedFields?: Array<string>;
1685
1756
  };
1686
1757
  /**
1758
+ * Webhook subscription update item
1759
+ *
1687
1760
  * Object used to subscribe to/unsubscribe from an event.
1688
1761
  */
1689
1762
  type WebhookSubscriptionUpdateItem$1 = {
@@ -1706,6 +1779,8 @@ type WebhookSubscriptionUpdateItem$1 = {
1706
1779
  fieldsToSubscribe?: Array<string>;
1707
1780
  };
1708
1781
  /**
1782
+ * Metadata
1783
+ *
1709
1784
  * Auditing details.
1710
1785
  */
1711
1786
  type Metadata$8 = {
@@ -1723,6 +1798,8 @@ type Metadata$8 = {
1723
1798
  version?: number;
1724
1799
  };
1725
1800
  /**
1801
+ * Metadata for update
1802
+ *
1726
1803
  * Auditing details.
1727
1804
  */
1728
1805
  type MetadataForUpdate = {
@@ -1732,6 +1809,8 @@ type MetadataForUpdate = {
1732
1809
  version?: number;
1733
1810
  };
1734
1811
  /**
1812
+ * Update subscription result response
1813
+ *
1735
1814
  * Object containing the result of event subscription.
1736
1815
  */
1737
1816
  type UpdateSubscriptionResponse = {
@@ -1750,6 +1829,9 @@ type DashboardAccess = {
1750
1829
  */
1751
1830
  token?: string;
1752
1831
  };
1832
+ /**
1833
+ * Webhook monthly statistics
1834
+ */
1753
1835
  type MonthStatistics = {
1754
1836
  /**
1755
1837
  * Month for which statistics should be retrieved, provided in the "YYYY-MM" format.
@@ -1760,6 +1842,9 @@ type MonthStatistics = {
1760
1842
  */
1761
1843
  succesfullySentWebhooks?: number;
1762
1844
  };
1845
+ /**
1846
+ * Webhooks limit statistics
1847
+ */
1763
1848
  type WebhookStatistics$1 = {
1764
1849
  monthStatistics?: Array<MonthStatistics>;
1765
1850
  /**
@@ -2168,12 +2253,6 @@ type CustomInstanceResponse = {
2168
2253
  * Unique identifier of the custom instance.
2169
2254
  */
2170
2255
  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
2256
  /**
2178
2257
  * Custom schema type to which custom instance is related.
2179
2258
  */
@@ -2600,6 +2679,8 @@ type AgenticRequest = {
2600
2679
  */
2601
2680
  type AgentType = 'generic' | 'complaint' | 'anti_fraud';
2602
2681
  /**
2682
+ * TextGenerationRequest
2683
+ *
2603
2684
  * Represents a request body for a text generation operation.
2604
2685
  */
2605
2686
  type TextGenerationRequest = {
@@ -3710,7 +3791,29 @@ type ImportedEntity = {
3710
3791
  /**
3711
3792
  * State of the imported entity.
3712
3793
  */
3713
- state?: 'TO_CREATE' | 'ENABLED' | 'DISABLED' | 'EXISTS';
3794
+ state?: 'TO_CREATE' | 'ENABLED' | 'DISABLED' | 'EXISTS' | 'FAILED';
3795
+ /**
3796
+ * Reasons the entity was skipped, disabled, or failed during import.
3797
+ */
3798
+ details?: Array<ImportDetails>;
3799
+ };
3800
+ type ImportDetails = {
3801
+ /**
3802
+ * Machine-readable reason code for UI localization.
3803
+ */
3804
+ code?: 'MISSING_FUNCTION' | 'MISSING_TOKEN' | 'NOT_IMPORTABLE' | 'ALREADY_EXISTS' | 'AGENT_IMPORTED_DISABLED' | 'IMPORT_FAILED';
3805
+ /**
3806
+ * ID of the related object, such as a function ID or token ID.
3807
+ */
3808
+ objectId?: string;
3809
+ /**
3810
+ * Display name of the related object, such as a tool name.
3811
+ */
3812
+ objectName?: string;
3813
+ /**
3814
+ * English fallback message when a localized string is not available.
3815
+ */
3816
+ message?: string;
3714
3817
  };
3715
3818
  type AttachmentResponse = {
3716
3819
  /**
@@ -3805,6 +3908,9 @@ type AgentSessionResponse = {
3805
3908
  duration?: number;
3806
3909
  metadata?: MetadataResponse$1;
3807
3910
  };
3911
+ /**
3912
+ * CompletionRequest
3913
+ */
3808
3914
  type CompletionRequest$1 = {
3809
3915
  /**
3810
3916
  * Identifier of the request. The value is not mandatory - if provided, then the ID is returned in the text generation response.
@@ -3812,7 +3918,7 @@ type CompletionRequest$1 = {
3812
3918
  id?: string;
3813
3919
  messages: Array<{
3814
3920
  /**
3815
- * 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.
3921
+ * 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.
3816
3922
  */
3817
3923
  role: 'USER' | 'SYSTEM' | 'ASSISTANT';
3818
3924
  /**
@@ -4366,6 +4472,8 @@ type Metadata$7 = {
4366
4472
  version?: number;
4367
4473
  };
4368
4474
  /**
4475
+ * taxCreation
4476
+ *
4369
4477
  * Tax configuration for a specified location. It consists of a country code and a list of tax classes applicable in that country.
4370
4478
  */
4371
4479
  type TaxCreation = {
@@ -4376,6 +4484,8 @@ type TaxCreation = {
4376
4484
  taxClasses: Array<TaxClass>;
4377
4485
  };
4378
4486
  /**
4487
+ * taxRetrieval
4488
+ *
4379
4489
  * Tax configuration for a specified location. It consists of a country code and a list of tax classes applicable in that country.
4380
4490
  */
4381
4491
  type TaxRetrieval = {
@@ -4388,6 +4498,8 @@ type TaxRetrieval = {
4388
4498
  metadata?: Metadata$7;
4389
4499
  };
4390
4500
  /**
4501
+ * taxClass
4502
+ *
4391
4503
  * Single tax class.
4392
4504
  */
4393
4505
  type TaxClass = {
@@ -4434,6 +4546,9 @@ type TaxClass = {
4434
4546
  */
4435
4547
  isDefault?: boolean;
4436
4548
  };
4549
+ /**
4550
+ * taxCreationResponse
4551
+ */
4437
4552
  type TaxCreationResponse = {
4438
4553
  /**
4439
4554
  * Code of country for which the tax configuration has been created.
@@ -4557,6 +4672,9 @@ type Location$2 = {
4557
4672
  */
4558
4673
  countryCode: string;
4559
4674
  };
4675
+ /**
4676
+ * taxUpdate
4677
+ */
4560
4678
  type TaxUpdate = TaxCreation & {
4561
4679
  metadata: Metadata$7;
4562
4680
  };
@@ -4623,6 +4741,8 @@ declare class TaxService {
4623
4741
 
4624
4742
  type Coupons = Array<CouponWithIdAndStatus>;
4625
4743
  /**
4744
+ * Coupon response/update payload
4745
+ *
4626
4746
  * Coupons describe voucher alike commerce capabilities, e.g. 10% off winter accessories.
4627
4747
  */
4628
4748
  type BaseCoupon = {
@@ -4719,6 +4839,8 @@ type Coupon$2 = BaseCoupon & {
4719
4839
  deleted?: boolean;
4720
4840
  };
4721
4841
  /**
4842
+ * Coupon creation payload
4843
+ *
4722
4844
  * Coupon creation schema.
4723
4845
  */
4724
4846
  type CouponCreation = {
@@ -4800,6 +4922,8 @@ type SegmentRestricted = boolean;
4800
4922
  */
4801
4923
  type CategoryRestricted = boolean;
4802
4924
  /**
4925
+ * Money amount
4926
+ *
4803
4927
  * Defines an amount in a specific currency.
4804
4928
  */
4805
4929
  type CurrencyAmount = {
@@ -4813,6 +4937,8 @@ type CurrencyAmount = {
4813
4937
  currency?: string;
4814
4938
  };
4815
4939
  /**
4940
+ * Coupon Redemption
4941
+ *
4816
4942
  * Defines a coupon redemption response.
4817
4943
  */
4818
4944
  type Redemption = RedemptionCreation & {
@@ -4826,6 +4952,8 @@ type Redemption = RedemptionCreation & {
4826
4952
  redeemedAt?: string;
4827
4953
  };
4828
4954
  /**
4955
+ * Coupon Redemption Request
4956
+ *
4829
4957
  * Defines a coupon redemption request payload that affects a coupon instance.
4830
4958
  */
4831
4959
  type RedemptionCreation = {
@@ -4896,6 +5024,8 @@ type CouponWithIdAndStatus = Coupon$2 & {
4896
5024
  status?: 'VALID' | 'INACTIVE' | 'EXPIRED' | 'USED';
4897
5025
  };
4898
5026
  /**
5027
+ * Coupon
5028
+ *
4899
5029
  * Coupons describe voucher alike commerce capabilities.
4900
5030
  */
4901
5031
  type ReferralCoupon = {
@@ -5058,7 +5188,13 @@ declare class CouponService {
5058
5188
  createReferralCoupon(customerNumber: string, auth?: AuthContext): Promise<ReferralCoupon>;
5059
5189
  }
5060
5190
 
5191
+ /**
5192
+ * Collection of Summaries
5193
+ */
5061
5194
  type CustomerSummaryBatchOut = Array<PointsSummaryOut>;
5195
+ /**
5196
+ * pointsSummaryOut
5197
+ */
5062
5198
  type PointsSummaryOut = {
5063
5199
  /**
5064
5200
  * Id of the customer to whom the points are assigned
@@ -5070,6 +5206,9 @@ type PointsSummaryOut = {
5070
5206
  activePoints?: number;
5071
5207
  summary?: CustomerSummary;
5072
5208
  };
5209
+ /**
5210
+ * addedPoints
5211
+ */
5073
5212
  type AddedPoints = {
5074
5213
  id?: string;
5075
5214
  /**
@@ -5099,6 +5238,9 @@ type AddedPoints = {
5099
5238
  usedPoints?: number;
5100
5239
  usedWith?: Array<string>;
5101
5240
  };
5241
+ /**
5242
+ * redeemedPoints
5243
+ */
5102
5244
  type RedeemedPoints = {
5103
5245
  /**
5104
5246
  * Identifier of the redeemed points
@@ -5121,11 +5263,20 @@ type RedeemedPoints = {
5121
5263
  */
5122
5264
  allPointsAfterCreation?: number;
5123
5265
  };
5266
+ /**
5267
+ * customerSummary
5268
+ */
5124
5269
  type CustomerSummary = {
5125
5270
  addedPointsList: Array<AddedPoints>;
5126
5271
  redeemedPointsList?: Array<RedeemedPoints>;
5127
5272
  };
5273
+ /**
5274
+ * redeemOptions
5275
+ */
5128
5276
  type RedeemOptions = Array<RedeemOption>;
5277
+ /**
5278
+ * redeemOption
5279
+ */
5129
5280
  type RedeemOption = {
5130
5281
  /**
5131
5282
  * ID of the redemption option to be used at reward points exchange
@@ -5164,6 +5315,9 @@ type RedeemOption = {
5164
5315
  modifiedAt?: string;
5165
5316
  };
5166
5317
  };
5318
+ /**
5319
+ * CouponCode
5320
+ */
5167
5321
  type RedeemCouponOut = {
5168
5322
  /**
5169
5323
  * Coupon code received after exchanging points
@@ -5171,6 +5325,8 @@ type RedeemCouponOut = {
5171
5325
  code?: string;
5172
5326
  };
5173
5327
  /**
5328
+ * Coupon API
5329
+ *
5174
5330
  * Coupons describe voucher-like commerce capabilities.
5175
5331
  */
5176
5332
  type Coupon = {
@@ -5195,6 +5351,8 @@ type Coupon = {
5195
5351
  */
5196
5352
  discountPercentage?: number;
5197
5353
  /**
5354
+ * Money Amount
5355
+ *
5198
5356
  * Must be specified only if type is 'ABSOLUTE'
5199
5357
  */
5200
5358
  discountAbsolute?: {
@@ -5262,6 +5420,9 @@ type NewCustomerIn = {
5262
5420
  customerId?: string;
5263
5421
  startPoints?: AddedPoints;
5264
5422
  };
5423
+ /**
5424
+ * Restrictions
5425
+ */
5265
5426
  type Restrictions = {
5266
5427
  /**
5267
5428
  * A list of identifiers of customers that can redeem the coupon. Cannot be specified for coupons which can be redeemed by anonymous users.
@@ -5276,6 +5437,8 @@ type Restrictions = {
5276
5437
  */
5277
5438
  validUntil?: string;
5278
5439
  /**
5440
+ * Money Amount
5441
+ *
5279
5442
  * Minimum order value which entitles the customer to redeem the coupon
5280
5443
  */
5281
5444
  minOrderValue?: {
@@ -5365,7 +5528,13 @@ declare class RewardPointsService {
5365
5528
  deleteRedeemOption(redeemOptionId: string, auth?: AuthContext): Promise<void>;
5366
5529
  }
5367
5530
 
5531
+ /**
5532
+ * Collection of Brands
5533
+ */
5368
5534
  type Brands = Array<BrandResponse>;
5535
+ /**
5536
+ * Brand
5537
+ */
5369
5538
  type Brand$1 = {
5370
5539
  /**
5371
5540
  * Unique identifier of a brand.
@@ -5392,6 +5561,9 @@ type Brand$1 = {
5392
5561
  [key: string]: string;
5393
5562
  };
5394
5563
  };
5564
+ /**
5565
+ * Brand
5566
+ */
5395
5567
  type UpdateBrand = {
5396
5568
  /**
5397
5569
  * Brand name.
@@ -5415,6 +5587,9 @@ type UpdateBrand = {
5415
5587
  };
5416
5588
  metadata?: UpdateMetaData;
5417
5589
  };
5590
+ /**
5591
+ * Brand Response
5592
+ */
5418
5593
  type BrandResponse = {
5419
5594
  /**
5420
5595
  * Brand name.
@@ -5454,6 +5629,9 @@ type BrandResponse = {
5454
5629
  id?: string;
5455
5630
  metadata?: MetaData$1;
5456
5631
  };
5632
+ /**
5633
+ * Metadata
5634
+ */
5457
5635
  type MetaData$1 = {
5458
5636
  /**
5459
5637
  * Date and time when the object was created compliant with the ISO 8601 standard.
@@ -5468,6 +5646,9 @@ type MetaData$1 = {
5468
5646
  */
5469
5647
  version?: number;
5470
5648
  };
5649
+ /**
5650
+ * Metadata
5651
+ */
5471
5652
  type UpdateMetaData = {
5472
5653
  /**
5473
5654
  * Object version.
@@ -5570,6 +5751,8 @@ type Overlay = {
5570
5751
  position: number;
5571
5752
  };
5572
5753
  /**
5754
+ * Metadata
5755
+ *
5573
5756
  * Metadata
5574
5757
  */
5575
5758
  type Metadata$6 = {
@@ -5640,6 +5823,9 @@ type Metadata$5 = {
5640
5823
  */
5641
5824
  version: number;
5642
5825
  };
5826
+ /**
5827
+ * Country
5828
+ */
5643
5829
  type Country$1 = {
5644
5830
  /**
5645
5831
  * The country code which consists of two capital letters and is compliant with ISO-3166-1 specification.
@@ -5661,6 +5847,9 @@ type Country$1 = {
5661
5847
  active?: boolean;
5662
5848
  metadata?: Metadata$5;
5663
5849
  };
5850
+ /**
5851
+ * Region
5852
+ */
5664
5853
  type Region$1 = {
5665
5854
  /**
5666
5855
  * The region code.
@@ -5674,6 +5863,9 @@ type Region$1 = {
5674
5863
  };
5675
5864
  metadata?: Metadata$5;
5676
5865
  };
5866
+ /**
5867
+ * Country update
5868
+ */
5677
5869
  type CountryUpdate$1 = {
5678
5870
  /**
5679
5871
  * The field indicates whether the given country is active for the tenant or not. Only active countries are visible in the system.
@@ -5747,6 +5939,8 @@ type UpdateMetadata$1 = {
5747
5939
  version: number;
5748
5940
  };
5749
5941
  /**
5942
+ * currencyCreation
5943
+ *
5750
5944
  * 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.
5751
5945
  */
5752
5946
  type CurrencyCreation = {
@@ -5765,6 +5959,8 @@ type CurrencyCreation = {
5765
5959
  };
5766
5960
  };
5767
5961
  /**
5962
+ * currencyUpdate
5963
+ *
5768
5964
  * Represents a single currency update.
5769
5965
  */
5770
5966
  type CurrencyUpdate$1 = {
@@ -5779,6 +5975,8 @@ type CurrencyUpdate$1 = {
5779
5975
  metadata: UpdateMetadata$1;
5780
5976
  };
5781
5977
  /**
5978
+ * currencyCreationResponse
5979
+ *
5782
5980
  * Represents the response after a successful currency creation.
5783
5981
  */
5784
5982
  type CurrencyCreationResponse = {
@@ -5789,6 +5987,8 @@ type CurrencyCreationResponse = {
5789
5987
  code?: string;
5790
5988
  };
5791
5989
  /**
5990
+ * exchangeRateResponse
5991
+ *
5792
5992
  * Represents the response after a successful exchange rate creation.
5793
5993
  */
5794
5994
  type ExchangeRateResponse = {
@@ -5799,6 +5999,8 @@ type ExchangeRateResponse = {
5799
5999
  code?: string;
5800
6000
  };
5801
6001
  /**
6002
+ * currencyRetrieval
6003
+ *
5802
6004
  * 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.
5803
6005
  */
5804
6006
  type CurrencyRetrieval = {
@@ -5818,6 +6020,9 @@ type CurrencyRetrieval = {
5818
6020
  };
5819
6021
  metadata?: Metadata$4;
5820
6022
  };
6023
+ /**
6024
+ * exchangeRateUpdateRequest
6025
+ */
5821
6026
  type ExchangeRateUpdateRequest = {
5822
6027
  /**
5823
6028
  * Represents the exchange rate.
@@ -5827,6 +6032,9 @@ type ExchangeRateUpdateRequest = {
5827
6032
  rate: string;
5828
6033
  metadata: UpdateMetadata$1;
5829
6034
  };
6035
+ /**
6036
+ * exchangeRate
6037
+ */
5830
6038
  type ExchangeRateCreationRequest = {
5831
6039
  /**
5832
6040
  * 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.
@@ -5843,6 +6051,9 @@ type ExchangeRateCreationRequest = {
5843
6051
  */
5844
6052
  rate: string;
5845
6053
  };
6054
+ /**
6055
+ * exchangeRateRetrieval
6056
+ */
5846
6057
  type ExchangeRateRetrieval = {
5847
6058
  /**
5848
6059
  * Identifier of the exchange rate. The identifier consists of the source currency and the target currency separated by an underscore.
@@ -5922,6 +6133,9 @@ declare class CurrencyService {
5922
6133
  deleteExchangeRate(code: string, auth?: AuthContext): Promise<void>;
5923
6134
  }
5924
6135
 
6136
+ /**
6137
+ * Collection of actual delivery windows
6138
+ */
5925
6139
  type ActualDeliveryWindows = Array<ActualDeliveryWindow>;
5926
6140
  type Patch = Array<{
5927
6141
  /**
@@ -5940,6 +6154,8 @@ type Patch = Array<{
5940
6154
  };
5941
6155
  }>;
5942
6156
  /**
6157
+ * Actual delivery window
6158
+ *
5943
6159
  * Delivery window is a range of times when the shipment can be delivered to the customers.
5944
6160
  */
5945
6161
  type ActualDeliveryWindow = {
@@ -5974,6 +6190,9 @@ type ActualDeliveryWindow = {
5974
6190
  slotId?: string;
5975
6191
  metadata?: MetaData;
5976
6192
  };
6193
+ /**
6194
+ * Delivery Time
6195
+ */
5977
6196
  type BasicDeliveryTime = {
5978
6197
  /**
5979
6198
  * Delivery Time ID: Autogenerated (if not provided in request) or User-Defined
@@ -6013,9 +6232,15 @@ type BasicDeliveryTime = {
6013
6232
  */
6014
6233
  deliveryDayShift?: number;
6015
6234
  };
6235
+ /**
6236
+ * Delivery Time
6237
+ */
6016
6238
  type DeliveryTime$2 = BasicDeliveryTime & {
6017
6239
  metadata?: MetaData;
6018
6240
  };
6241
+ /**
6242
+ * Delivery Time
6243
+ */
6019
6244
  type UpdateDeliveryTime = BasicDeliveryTime & {
6020
6245
  /**
6021
6246
  * metadata of the document
@@ -6027,6 +6252,9 @@ type UpdateDeliveryTime = BasicDeliveryTime & {
6027
6252
  version: number;
6028
6253
  };
6029
6254
  };
6255
+ /**
6256
+ * Slot
6257
+ */
6030
6258
  type SlotCreation = {
6031
6259
  /**
6032
6260
  * Delivery Time Slot ID: Autogenerated (if not provided in request) or User-Defined
@@ -6044,6 +6272,8 @@ type SlotCreation = {
6044
6272
  capacity: number;
6045
6273
  };
6046
6274
  /**
6275
+ * Delivery Cycle
6276
+ *
6047
6277
  * Object which encapsulates all the fields needed to generate delivery cycle.
6048
6278
  */
6049
6279
  type DeliveryCycle = {
@@ -6061,6 +6291,8 @@ type DeliveryCycle = {
6061
6291
  deliveryDate: string;
6062
6292
  };
6063
6293
  /**
6294
+ * Delivery Day
6295
+ *
6064
6296
  * This attribute holds the time configuration for which the Delivery Time is valid. Only a single attribute can be set at any given moment.
6065
6297
  */
6066
6298
  type DeliveryDay = {
@@ -6087,6 +6319,8 @@ type DeliveryDay = {
6087
6319
  };
6088
6320
  };
6089
6321
  /**
6322
+ * Cut-Off Time
6323
+ *
6090
6324
  * 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.
6091
6325
  */
6092
6326
  type CutOffTIme = {
@@ -6104,6 +6338,8 @@ type CutOffTIme = {
6104
6338
  deliveryCycleName?: string;
6105
6339
  };
6106
6340
  /**
6341
+ * Time range
6342
+ *
6107
6343
  * A `from` to `to` time range for which the object is valid
6108
6344
  */
6109
6345
  type TimeRange = {
@@ -6117,6 +6353,8 @@ type TimeRange = {
6117
6353
  endTime: string;
6118
6354
  };
6119
6355
  /**
6356
+ * Time range
6357
+ *
6120
6358
  * A `from` to `to` time range for which the object is valid
6121
6359
  */
6122
6360
  type DeliveryTimeRange = {
@@ -6140,8 +6378,13 @@ type MetaData = {
6140
6378
  modifiedAt?: string;
6141
6379
  version?: number;
6142
6380
  };
6381
+ /**
6382
+ * Collection of sites.
6383
+ */
6143
6384
  type Sites = Array<Site>;
6144
6385
  /**
6386
+ * Site
6387
+ *
6145
6388
  * A site is a specific virtual or real shop.
6146
6389
  */
6147
6390
  type Site = {
@@ -6156,8 +6399,13 @@ type Site = {
6156
6399
  zones?: Array<ZoneWithActualDeliveryWindows>;
6157
6400
  metadata?: MetaData;
6158
6401
  };
6402
+ /**
6403
+ * Collection of zones
6404
+ */
6159
6405
  type Zones = Array<Zone$1>;
6160
6406
  /**
6407
+ * Zone
6408
+ *
6161
6409
  * The zone is an area where shipments can be delivered.
6162
6410
  */
6163
6411
  type Zone$1 = {
@@ -6177,6 +6425,8 @@ type ZoneWithActualDeliveryWindows = Zone$1 & {
6177
6425
  actualDeliveryWindows?: ActualDeliveryWindows;
6178
6426
  };
6179
6427
  /**
6428
+ * Resource created
6429
+ *
6180
6430
  * Link to created resource with unique resource identifier.
6181
6431
  */
6182
6432
  type ResourceCreatedResponse = {
@@ -6185,8 +6435,13 @@ type ResourceCreatedResponse = {
6185
6435
  */
6186
6436
  id?: string;
6187
6437
  };
6438
+ /**
6439
+ * Collection of shipping methods
6440
+ */
6188
6441
  type Methods = Array<Method>;
6189
6442
  /**
6443
+ * Shipping method
6444
+ *
6190
6445
  * Shipping methods define the types of deliveries and properties such as delivery fees.
6191
6446
  */
6192
6447
  type Method = {
@@ -6207,8 +6462,13 @@ type Method = {
6207
6462
  */
6208
6463
  shippingGroupId?: string;
6209
6464
  };
6465
+ /**
6466
+ * Collection of fees
6467
+ */
6210
6468
  type Fees = Array<Fee>;
6211
6469
  /**
6470
+ * Fee
6471
+ *
6212
6472
  * Fee is a shipping cost for a given shipping method and parameters.
6213
6473
  */
6214
6474
  type Fee = {
@@ -6220,6 +6480,8 @@ type Fee = {
6220
6480
  shippingGroupId?: string;
6221
6481
  };
6222
6482
  /**
6483
+ * Monetary amount
6484
+ *
6223
6485
  * Amount of money in a given currency.
6224
6486
  */
6225
6487
  type MonetaryAmount = {
@@ -6233,6 +6495,8 @@ type MonetaryAmount = {
6233
6495
  amount: number;
6234
6496
  };
6235
6497
  /**
6498
+ * Find site request payload
6499
+ *
6236
6500
  * Payload with parameters for price finding.
6237
6501
  */
6238
6502
  type FindSiteRequest = {
@@ -6246,10 +6510,14 @@ type FindSiteRequest = {
6246
6510
  country?: string;
6247
6511
  };
6248
6512
  /**
6513
+ * ShipTo
6514
+ *
6249
6515
  * Collection of shipping destinations
6250
6516
  */
6251
6517
  type ShipTo = Array<ShipToItem>;
6252
6518
  /**
6519
+ * shipToItem
6520
+ *
6253
6521
  * Shipping destination containing country and postal code.
6254
6522
  */
6255
6523
  type ShipToItem = {
@@ -6263,6 +6531,8 @@ type ShipToItem = {
6263
6531
  postalCode?: string;
6264
6532
  };
6265
6533
  /**
6534
+ * Quote request payload
6535
+ *
6266
6536
  * Example of payload for shipping cost calculation.
6267
6537
  */
6268
6538
  type QuotePayload = {
@@ -6287,6 +6557,8 @@ type QuotePayload = {
6287
6557
  shipToAddress: Address$2;
6288
6558
  };
6289
6559
  /**
6560
+ * Quote slot request schema
6561
+ *
6290
6562
  * Example of payload for shipping cost calculation.
6291
6563
  */
6292
6564
  type QuoteSlot = {
@@ -6319,6 +6591,8 @@ type QuoteSlot = {
6319
6591
  deliveryWindowId: string;
6320
6592
  };
6321
6593
  /**
6594
+ * Address
6595
+ *
6322
6596
  * Address of billing or delivery that contains customer or company name and location including street, street number, zipcode, and country.
6323
6597
  */
6324
6598
  type Address$2 = {
@@ -6337,10 +6611,14 @@ type Address$2 = {
6337
6611
  country: string;
6338
6612
  };
6339
6613
  /**
6614
+ * Quote response
6615
+ *
6340
6616
  * Example quote response which contains a list of fees for various methods and delivery zone.
6341
6617
  */
6342
6618
  type QuoteResponse$1 = Array<QuoteResponseItem>;
6343
6619
  /**
6620
+ * Quote response item
6621
+ *
6344
6622
  * Example quote response which contains fee for specific method and zone.
6345
6623
  */
6346
6624
  type QuoteResponseItem = {
@@ -6354,6 +6632,8 @@ type QuoteResponseItem = {
6354
6632
  methods?: Array<QuoteResponseMethods>;
6355
6633
  };
6356
6634
  /**
6635
+ * Quote response shipping methods
6636
+ *
6357
6637
  * Example quote response which contains fee for specific method.
6358
6638
  */
6359
6639
  type QuoteResponseMethods = {
@@ -6366,12 +6646,16 @@ type LocalizedValue = string | {
6366
6646
  [key: string]: string;
6367
6647
  };
6368
6648
  /**
6649
+ * Minimum fee
6650
+ *
6369
6651
  * Minimum available delivery fee for given parameters.
6370
6652
  */
6371
6653
  type MinimumFee$1 = {
6372
6654
  fee?: MonetaryAmount;
6373
6655
  };
6374
6656
  /**
6657
+ * Group
6658
+ *
6375
6659
  * Shipping groups can be used for customer grouping with use customer group relations.
6376
6660
  */
6377
6661
  type Group = {
@@ -6382,10 +6666,14 @@ type Group = {
6382
6666
  description?: LocalizedValue;
6383
6667
  };
6384
6668
  /**
6669
+ * Collection of groups
6670
+ *
6385
6671
  * Collection of shipping groups.
6386
6672
  */
6387
6673
  type GroupList = Array<Group>;
6388
6674
  /**
6675
+ * Customer-group relation
6676
+ *
6389
6677
  * Customer-group relation allows to assign user for specific group.
6390
6678
  */
6391
6679
  type CgRelation$1 = {
@@ -6398,7 +6686,13 @@ type CgRelation$1 = {
6398
6686
  */
6399
6687
  groupId?: string;
6400
6688
  };
6689
+ /**
6690
+ * Collection of customer-group relation
6691
+ */
6401
6692
  type CgRelationList$1 = Array<CgRelation$1>;
6693
+ /**
6694
+ * DeliveryWindowValidationDto
6695
+ */
6402
6696
  type DeliveryWindowValidationDto = {
6403
6697
  /**
6404
6698
  * The selected delivery window
@@ -7582,6 +7876,8 @@ type QuoteHistory$1 = Array<{
7582
7876
  modifiedAt?: string;
7583
7877
  }>;
7584
7878
  /**
7879
+ * QuoteCreateFromCartRequest
7880
+ *
7585
7881
  * This schema includes the attributes that are required to be provided when creating a quote from the cart.
7586
7882
  */
7587
7883
  type QuoteCreateFromCartRequest = {
@@ -7738,6 +8034,8 @@ type CalculatedFinalPrice = {
7738
8034
  finalPrice?: CalculatedPrice$1;
7739
8035
  };
7740
8036
  /**
8037
+ * metadataCore
8038
+ *
7741
8039
  * Core metadata fields shared across multiple objects.
7742
8040
  */
7743
8041
  type MetadataCore = {
@@ -7749,6 +8047,8 @@ type MetadataCore = {
7749
8047
  };
7750
8048
  };
7751
8049
  /**
8050
+ * metadataUpdate
8051
+ *
7752
8052
  * Metadata fields required when updating an existing object.
7753
8053
  */
7754
8054
  type MetadataUpdate$1 = MetadataCore & {
@@ -7758,6 +8058,8 @@ type MetadataUpdate$1 = MetadataCore & {
7758
8058
  version: number;
7759
8059
  };
7760
8060
  /**
8061
+ * metadataResponse
8062
+ *
7761
8063
  * Metadata fields returned by the API.
7762
8064
  * Extends `metadataUpdate` with timestamps indicating when the object
7763
8065
  * was created and last modified.
@@ -7774,6 +8076,8 @@ type MetadataResponse = MetadataUpdate$1 & {
7774
8076
  modifiedAt?: string;
7775
8077
  };
7776
8078
  /**
8079
+ * basicReturn
8080
+ *
7777
8081
  * Base schema for a return.
7778
8082
  */
7779
8083
  type BasicReturn = {
@@ -7804,6 +8108,8 @@ type BasicReturn = {
7804
8108
  };
7805
8109
  type BasicCustomerReturn = BasicReturn;
7806
8110
  /**
8111
+ * A return request created on behalf of a customer.
8112
+ *
7807
8113
  * Base schema for returns created by an employee FOR A REGISTERED CUSTOMER.
7808
8114
  */
7809
8115
  type BasicEmployeeReturn = BasicEmployeeReturnBase & {
@@ -7818,6 +8124,8 @@ type BasicEmployeeReturn = BasicEmployeeReturnBase & {
7818
8124
  };
7819
8125
  };
7820
8126
  /**
8127
+ * A return request created on behalf of a customer FOR AN ANONYMOUS ORDER.
8128
+ *
7821
8129
  * Base schema for returns created by an employee for an ANONYMOUS ORDER.
7822
8130
  */
7823
8131
  type EmployeeReturnForAnonymousOrder = BasicEmployeeReturnBase & {
@@ -7840,6 +8148,8 @@ type EmployeeReturnForAnonymousOrder = BasicEmployeeReturnBase & {
7840
8148
  };
7841
8149
  };
7842
8150
  /**
8151
+ * Base schema for returns created by an employee.
8152
+ *
7843
8153
  * Common structure for returns created by an employee on behalf of a customer.
7844
8154
  */
7845
8155
  type BasicEmployeeReturnBase = BasicReturn & {
@@ -7907,6 +8217,8 @@ type BasicEmployeeReturnBase = BasicReturn & {
7907
8217
  expiryDate?: string;
7908
8218
  };
7909
8219
  /**
8220
+ * A return updated by a customer
8221
+ *
7910
8222
  * Base schema for a return requested by a customer.
7911
8223
  */
7912
8224
  type UpdateCustomerReturn = {
@@ -7918,6 +8230,8 @@ type UpdateCustomerReturn = {
7918
8230
  metadata: MetadataUpdate$1;
7919
8231
  };
7920
8232
  /**
8233
+ * A return updated on behalf of a customer.
8234
+ *
7921
8235
  * Base schema for a return requested by an employee.
7922
8236
  */
7923
8237
  type UpdateEmployeeReturn = UpdateCustomerReturn & {
@@ -7976,6 +8290,8 @@ type UpdateEmployeeReturn = UpdateCustomerReturn & {
7976
8290
  expiryDate?: string;
7977
8291
  };
7978
8292
  /**
8293
+ * A customer return object.
8294
+ *
7979
8295
  * Schema for retrieving returns by a customer.
7980
8296
  */
7981
8297
  type FullCustomerReturn = BasicCustomerReturn & AssistedBuying & {
@@ -8001,6 +8317,8 @@ type FullCustomerReturn = BasicCustomerReturn & AssistedBuying & {
8001
8317
  calculatedPrice?: CalculatedFinalPrice;
8002
8318
  };
8003
8319
  /**
8320
+ * A return object for an employee
8321
+ *
8004
8322
  * Schema for retrieving returns by an employee.
8005
8323
  */
8006
8324
  type FullEmployeeReturn = FullCustomerReturn & {
@@ -8143,12 +8461,18 @@ type OrderItem = {
8143
8461
  details?: string;
8144
8462
  };
8145
8463
  };
8464
+ /**
8465
+ * returnId
8466
+ */
8146
8467
  type ReturnId = {
8147
8468
  /**
8148
8469
  * Unique identifier of the created return.
8149
8470
  */
8150
8471
  id?: string;
8151
8472
  };
8473
+ /**
8474
+ * patchRequest
8475
+ */
8152
8476
  type PatchOperation = {
8153
8477
  /**
8154
8478
  * Indicates an operation which should be done on a return. Available operations: `add` `remove` and `replace`
@@ -8165,6 +8489,9 @@ type PatchOperation = {
8165
8489
  [key: string]: unknown;
8166
8490
  } | string;
8167
8491
  };
8492
+ /**
8493
+ * AssistedBuyingEntry
8494
+ */
8168
8495
  type AssistedBuyingEntry = {
8169
8496
  /**
8170
8497
  * Identifier of an employee who performed an action on behalf of a customer.
@@ -8180,6 +8507,8 @@ type AssistedBuyingEntry = {
8180
8507
  timestamp?: string;
8181
8508
  };
8182
8509
  /**
8510
+ * assistedBuying
8511
+ *
8183
8512
  * 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.
8184
8513
  */
8185
8514
  type AssistedBuying = {
@@ -8330,6 +8659,9 @@ type ReindexRequest = {
8330
8659
  */
8331
8660
  rag?: boolean;
8332
8661
  };
8662
+ /**
8663
+ * IndexPublicConfiguration
8664
+ */
8333
8665
  type IndexPublicConfiguration = {
8334
8666
  /**
8335
8667
  * API Key used for search purposes.
@@ -8352,6 +8684,9 @@ type IndexPublicConfiguration = {
8352
8684
  */
8353
8685
  active?: boolean;
8354
8686
  };
8687
+ /**
8688
+ * IndexConfiguration
8689
+ */
8355
8690
  type IndexConfiguration = IndexPublicConfiguration & {
8356
8691
  /**
8357
8692
  * API key used for write purposes.
@@ -8369,12 +8704,18 @@ type IndexConfiguration = IndexPublicConfiguration & {
8369
8704
  */
8370
8705
  includedMixinPaths?: Array<string>;
8371
8706
  };
8707
+ /**
8708
+ * IndexCreationResponse
8709
+ */
8372
8710
  type IndexCreationResponse = {
8373
8711
  /**
8374
8712
  * Identifier of a newly created configuration.
8375
8713
  */
8376
8714
  id?: string;
8377
8715
  };
8716
+ /**
8717
+ * Reindex
8718
+ */
8378
8719
  type Reindex = {
8379
8720
  /**
8380
8721
  * Indicates reindex mode. Supported modes: `FULL`.
@@ -8460,6 +8801,8 @@ declare class IndexingService {
8460
8801
  }
8461
8802
 
8462
8803
  /**
8804
+ * Import configuration
8805
+ *
8463
8806
  * An import configuration grouping one or more streams.
8464
8807
  */
8465
8808
  type ImportConfig$1 = {
@@ -8501,6 +8844,8 @@ type ImportConfig$1 = {
8501
8844
  updatedAt?: string;
8502
8845
  };
8503
8846
  /**
8847
+ * Stream
8848
+ *
8504
8849
  * A stream that extracts from a source, maps fields, and upserts into an Emporix target type.
8505
8850
  */
8506
8851
  type ImportStream$1 = {
@@ -8538,6 +8883,8 @@ type ImportStream$1 = {
8538
8883
  enabled?: boolean;
8539
8884
  };
8540
8885
  /**
8886
+ * Schedule
8887
+ *
8541
8888
  * A cron schedule for a configuration.
8542
8889
  */
8543
8890
  type Schedule = {
@@ -8567,6 +8914,8 @@ type Schedule = {
8567
8914
  nextFireAt?: string;
8568
8915
  };
8569
8916
  /**
8917
+ * Run
8918
+ *
8570
8919
  * An import run and its reconciled counters.
8571
8920
  */
8572
8921
  type ImportRun$1 = {
@@ -8632,6 +8981,8 @@ type ImportRun$1 = {
8632
8981
  message?: string;
8633
8982
  };
8634
8983
  /**
8984
+ * Run stream progress
8985
+ *
8635
8986
  * The per-stream progress within a run.
8636
8987
  */
8637
8988
  type ImportRunStream$1 = {
@@ -8685,6 +9036,8 @@ type ImportRunStream$1 = {
8685
9036
  message?: string;
8686
9037
  };
8687
9038
  /**
9039
+ * Run detail
9040
+ *
8688
9041
  * A run together with its per-stream progress.
8689
9042
  */
8690
9043
  type RunDetail = {
@@ -8695,6 +9048,8 @@ type RunDetail = {
8695
9048
  streams?: Array<ImportRunStream$1>;
8696
9049
  };
8697
9050
  /**
9051
+ * Cancellation result
9052
+ *
8698
9053
  * The outcome of a cancellation request.
8699
9054
  */
8700
9055
  type CancelResult = {
@@ -8712,6 +9067,8 @@ type CancelResult = {
8712
9067
  accepted?: boolean;
8713
9068
  };
8714
9069
  /**
9070
+ * Error record
9071
+ *
8715
9072
  * A single error recorded during a run.
8716
9073
  */
8717
9074
  type ErrorRecord = {
@@ -8753,6 +9110,8 @@ type ErrorRecord = {
8753
9110
  createdAt?: string;
8754
9111
  };
8755
9112
  /**
9113
+ * Imported record
9114
+ *
8756
9115
  * A record that was imported. Holds keys and outcome; for composite parents it also holds the embedded child arrays.
8757
9116
  */
8758
9117
  type ImportedRecord$1 = {
@@ -9260,8 +9619,8 @@ type Catalog$1 = {
9260
9619
  * Catalog's unique identifier, generated when the catalog is created.
9261
9620
  */
9262
9621
  id: string;
9263
- name?: _Object & unknown;
9264
- description?: _Object & unknown;
9622
+ name?: Object$1 & unknown;
9623
+ description?: Object$1 & unknown;
9265
9624
  status?: Status & unknown;
9266
9625
  visibility?: VisibilityInformation;
9267
9626
  /**
@@ -9282,8 +9641,8 @@ type CreateCatalog = {
9282
9641
  * Custom catalog identifier. If not provided, it is automatically generated.
9283
9642
  */
9284
9643
  id?: string;
9285
- name: _Object;
9286
- description?: _Object;
9644
+ name: Object$1;
9645
+ description?: Object$1;
9287
9646
  visibility?: VisibilityInformation;
9288
9647
  /**
9289
9648
  * List of site identifiers on which the catalog is published.
@@ -9323,7 +9682,7 @@ type Metadata$2 = {
9323
9682
  /**
9324
9683
  * Localized field that must be provided as a map of language codes to translations.
9325
9684
  */
9326
- type _Object = string | {
9685
+ type Object$1 = string | {
9327
9686
  [key: string]: string;
9328
9687
  };
9329
9688
  /**
@@ -9334,8 +9693,8 @@ type Status = 'not_visible' | 'visible';
9334
9693
  * Payload for updating a catalog.
9335
9694
  */
9336
9695
  type UpdateCatalog = {
9337
- name: _Object;
9338
- description?: _Object;
9696
+ name: Object$1;
9697
+ description?: Object$1;
9339
9698
  visibility?: VisibilityInformation;
9340
9699
  /**
9341
9700
  * List of site identifiers on which the catalog is published.
@@ -9351,8 +9710,8 @@ type UpdateCatalog = {
9351
9710
  * Payload for partially updating a catalog.
9352
9711
  */
9353
9712
  type UpdateCatalogProperties = {
9354
- name?: _Object;
9355
- description?: _Object;
9713
+ name?: Object$1;
9714
+ description?: Object$1;
9356
9715
  visibility?: VisibilityInformation;
9357
9716
  /**
9358
9717
  * List of site identifiers on which the catalog is published.
@@ -9447,12 +9806,18 @@ type Metadata$1 = MetadataUpdate & {
9447
9806
  */
9448
9807
  modifiedAt?: string;
9449
9808
  };
9809
+ /**
9810
+ * Resource
9811
+ */
9450
9812
  type ResourceId = {
9451
9813
  /**
9452
9814
  * Id of a resource.
9453
9815
  */
9454
9816
  id?: string;
9455
9817
  };
9818
+ /**
9819
+ * Vendor
9820
+ */
9456
9821
  type Vendor$1 = {
9457
9822
  /**
9458
9823
  * The vendor unique identifier.
@@ -9487,6 +9852,9 @@ type Vendor$1 = {
9487
9852
  [key: string]: unknown;
9488
9853
  };
9489
9854
  };
9855
+ /**
9856
+ * Vendor Legal Information
9857
+ */
9490
9858
  type LegalInfo = {
9491
9859
  /**
9492
9860
  * The legal name of the vendor.
@@ -9505,6 +9873,9 @@ type LegalInfo = {
9505
9873
  */
9506
9874
  taxRegistrationNumber?: string;
9507
9875
  };
9876
+ /**
9877
+ * Contact Details
9878
+ */
9508
9879
  type VendorContactDetails = {
9509
9880
  /**
9510
9881
  * The list of contact emails.
@@ -9535,6 +9906,9 @@ type VendorContactDetails = {
9535
9906
  */
9536
9907
  countryCode?: string;
9537
9908
  };
9909
+ /**
9910
+ * Vendor create payload
9911
+ */
9538
9912
  type VendorCreate = {
9539
9913
  /**
9540
9914
  * Custom vendor identifier. If not provided, it is automatically generated.
@@ -9568,6 +9942,9 @@ type VendorCreate = {
9568
9942
  [key: string]: unknown;
9569
9943
  };
9570
9944
  };
9945
+ /**
9946
+ * Vendor update payload
9947
+ */
9571
9948
  type VendorUpdate$1 = {
9572
9949
  /**
9573
9950
  * The name of the vendor.
@@ -9598,6 +9975,9 @@ type VendorUpdate$1 = {
9598
9975
  [key: string]: unknown;
9599
9976
  };
9600
9977
  };
9978
+ /**
9979
+ * Location
9980
+ */
9601
9981
  type Location$1 = {
9602
9982
  /**
9603
9983
  * The location unique identifier.
@@ -9620,6 +10000,9 @@ type Location$1 = {
9620
10000
  [key: string]: unknown;
9621
10001
  };
9622
10002
  };
10003
+ /**
10004
+ * Location create payload
10005
+ */
9623
10006
  type LocationCreate = {
9624
10007
  /**
9625
10008
  * Custom location identifier. If not provided, it is automatically generated.
@@ -9641,6 +10024,9 @@ type LocationCreate = {
9641
10024
  [key: string]: unknown;
9642
10025
  };
9643
10026
  };
10027
+ /**
10028
+ * Location update payload
10029
+ */
9644
10030
  type LocationUpdate = {
9645
10031
  /**
9646
10032
  * The name of the location.
@@ -9659,6 +10045,9 @@ type LocationUpdate = {
9659
10045
  [key: string]: unknown;
9660
10046
  };
9661
10047
  };
10048
+ /**
10049
+ * Contact Details
10050
+ */
9662
10051
  type ContactDetails = {
9663
10052
  /**
9664
10053
  * The list of contact emails.
@@ -9879,6 +10268,9 @@ type PackagingProductsChange = {
9879
10268
  */
9880
10269
  packedCount: number;
9881
10270
  };
10271
+ /**
10272
+ * Assignee
10273
+ */
9882
10274
  type Assignee$1 = {
9883
10275
  /**
9884
10276
  * Identifier of an assignment
@@ -9897,6 +10289,9 @@ type Assignee$1 = {
9897
10289
  */
9898
10290
  lastName: string;
9899
10291
  };
10292
+ /**
10293
+ * Order
10294
+ */
9900
10295
  type Order = {
9901
10296
  /**
9902
10297
  * The id of the packed order
@@ -9950,6 +10345,9 @@ type Order = {
9950
10345
  */
9951
10346
  holdingAreaNumber?: number;
9952
10347
  };
10348
+ /**
10349
+ * Entry
10350
+ */
9953
10351
  type Entry = {
9954
10352
  /**
9955
10353
  * The entry id
@@ -10009,6 +10407,9 @@ type Entry = {
10009
10407
  basePrice?: BasePrice;
10010
10408
  mhd?: string;
10011
10409
  };
10410
+ /**
10411
+ * Customer
10412
+ */
10012
10413
  type Customer = {
10013
10414
  id?: string;
10014
10415
  title?: string;
@@ -10019,6 +10420,9 @@ type Customer = {
10019
10420
  email?: string;
10020
10421
  phoneNumber?: string;
10021
10422
  };
10423
+ /**
10424
+ * Delivery
10425
+ */
10022
10426
  type Delivery = {
10023
10427
  deliveryTimeModel?: DeliveryTime;
10024
10428
  deliveryAddressModel?: DeliveryAddress;
@@ -10026,15 +10430,24 @@ type Delivery = {
10026
10430
  deliveryOptionModel?: DeliveryOption;
10027
10431
  deliveryWindow?: DeliveryWindow$1;
10028
10432
  };
10433
+ /**
10434
+ * Payment
10435
+ */
10029
10436
  type Payment$1 = {
10030
10437
  invoiceNumber?: string;
10031
10438
  invoiceAddress?: InvoiceAddress;
10032
10439
  methods?: Array<string>;
10033
10440
  };
10441
+ /**
10442
+ * PricingMeasure
10443
+ */
10034
10444
  type PricingMeasure = {
10035
10445
  unitCode?: string;
10036
10446
  value?: string;
10037
10447
  };
10448
+ /**
10449
+ * Location
10450
+ */
10038
10451
  type Location = {
10039
10452
  zone?: string;
10040
10453
  rack?: string;
@@ -10043,6 +10456,9 @@ type Location = {
10043
10456
  section?: string;
10044
10457
  bin?: string;
10045
10458
  };
10459
+ /**
10460
+ * BasePrice
10461
+ */
10046
10462
  type BasePrice = {
10047
10463
  effectiveAmount?: string;
10048
10464
  originalAmount?: string;
@@ -10050,12 +10466,18 @@ type BasePrice = {
10050
10466
  basePriceFactor?: string;
10051
10467
  measurementUnit?: MeasurementUnit;
10052
10468
  };
10469
+ /**
10470
+ * DeliveryTime
10471
+ */
10053
10472
  type DeliveryTime = {
10054
10473
  deliveryDate?: string;
10055
10474
  deliveryTimeFrom?: string;
10056
10475
  deliveryTimeTo?: string;
10057
10476
  deliveryChargeType?: string;
10058
10477
  };
10478
+ /**
10479
+ * DeliveryAddress
10480
+ */
10059
10481
  type DeliveryAddress = {
10060
10482
  title?: string;
10061
10483
  contactName?: string;
@@ -10067,10 +10489,16 @@ type DeliveryAddress = {
10067
10489
  city?: string;
10068
10490
  country?: string;
10069
10491
  };
10492
+ /**
10493
+ * DeliveryCost
10494
+ */
10070
10495
  type DeliveryCost = {
10071
10496
  amount?: number;
10072
10497
  currency?: string;
10073
10498
  };
10499
+ /**
10500
+ * DeliveryOption
10501
+ */
10074
10502
  type DeliveryOption = {
10075
10503
  packaging?: string;
10076
10504
  replacement?: boolean;
@@ -10078,6 +10506,8 @@ type DeliveryOption = {
10078
10506
  deliveryNote?: string;
10079
10507
  };
10080
10508
  /**
10509
+ * DeliveryWindow
10510
+ *
10081
10511
  * 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
10082
10512
  */
10083
10513
  type DeliveryWindow$1 = {
@@ -10094,6 +10524,9 @@ type DeliveryWindow$1 = {
10094
10524
  */
10095
10525
  deliveryTimeTo?: string;
10096
10526
  };
10527
+ /**
10528
+ * InvoiceAddress
10529
+ */
10097
10530
  type InvoiceAddress = {
10098
10531
  title?: string;
10099
10532
  contactName?: string;
@@ -10105,11 +10538,17 @@ type InvoiceAddress = {
10105
10538
  city?: string;
10106
10539
  country?: string;
10107
10540
  };
10541
+ /**
10542
+ * RecalculationJobOrder
10543
+ */
10108
10544
  type RecalculationJobOrder = {
10109
10545
  orderId?: string;
10110
10546
  message?: string;
10111
10547
  jobOrderStatus?: 'SUCCESS' | 'FAILURE' | 'PENDING';
10112
10548
  };
10549
+ /**
10550
+ * RecalculationJob
10551
+ */
10113
10552
  type RecalculationJob$1 = {
10114
10553
  id?: string;
10115
10554
  jobType?: 'AUTOMATIC' | 'MANUAL';
@@ -10118,6 +10557,9 @@ type RecalculationJob$1 = {
10118
10557
  startedAt?: string;
10119
10558
  finishedAt?: string;
10120
10559
  };
10560
+ /**
10561
+ * RecalculationJobCreation
10562
+ */
10121
10563
  type RecalculationJobCreation = {
10122
10564
  /**
10123
10565
  * 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.
@@ -10130,6 +10572,9 @@ type RecalculationJobCreation = {
10130
10572
  */
10131
10573
  jobType: 'AUTOMATIC' | 'MANUAL';
10132
10574
  };
10575
+ /**
10576
+ * MeasurementUnit
10577
+ */
10133
10578
  type MeasurementUnit = {
10134
10579
  /**
10135
10580
  * The unit code of the measured quantity
@@ -10140,6 +10585,9 @@ type MeasurementUnit = {
10140
10585
  */
10141
10586
  quantity?: number;
10142
10587
  };
10588
+ /**
10589
+ * OrderList
10590
+ */
10143
10591
  type OrderList = {
10144
10592
  /**
10145
10593
  * The id of the order
@@ -10286,6 +10734,9 @@ type Address$1 = {
10286
10734
  [key: string]: unknown;
10287
10735
  };
10288
10736
  };
10737
+ /**
10738
+ * AddressCommonDto
10739
+ */
10289
10740
  type AddressCommonDto = {
10290
10741
  contactName?: string;
10291
10742
  companyName?: string;
@@ -10403,6 +10854,9 @@ type CustomerCreateDto = {
10403
10854
  type CustomerCommonDto = CustomerCreateDto & {
10404
10855
  metadata?: DefaultDtoMetadata;
10405
10856
  };
10857
+ /**
10858
+ * CustomerForSellerDto
10859
+ */
10406
10860
  type CustomerForSellerDto = CustomerCommonDto & {
10407
10861
  /**
10408
10862
  * Customer unique number generated when the customer profile is created.
@@ -10576,6 +11030,8 @@ type CustomerPatchBySellerDto = CustomerUpdateBySellerDto & {
10576
11030
  contactEmail?: string;
10577
11031
  };
10578
11032
  /**
11033
+ * DefaultDtoMetadata
11034
+ *
10579
11035
  * Links to mixin schemas.
10580
11036
  */
10581
11037
  type BasicMetadataDto = {
@@ -10583,10 +11039,15 @@ type BasicMetadataDto = {
10583
11039
  [key: string]: unknown;
10584
11040
  };
10585
11041
  };
11042
+ /**
11043
+ * DefaultDtoMetadata
11044
+ */
10586
11045
  type DefaultDtoMetadata = BasicMetadataDto & {
10587
11046
  version?: number;
10588
11047
  };
10589
11048
  /**
11049
+ * Resource Location
11050
+ *
10590
11051
  * Schema for showing location of the new resource.
10591
11052
  */
10592
11053
  type ResourceLocation = {
@@ -10770,6 +11231,8 @@ declare class CustomerAdminService {
10770
11231
  }
10771
11232
 
10772
11233
  /**
11234
+ * basicApproval
11235
+ *
10773
11236
  * Base schema for an approval.
10774
11237
  */
10775
11238
  type BasicApproval = GenericApprovalForCreate & {
@@ -10777,6 +11240,8 @@ type BasicApproval = GenericApprovalForCreate & {
10777
11240
  details?: Details;
10778
11241
  };
10779
11242
  /**
11243
+ * basicApproval
11244
+ *
10780
11245
  * Base schema for an approval creation.
10781
11246
  */
10782
11247
  type GenericApprovalForCreate = {
@@ -10796,6 +11261,8 @@ type GenericApprovalForCreate = {
10796
11261
  comment?: string;
10797
11262
  };
10798
11263
  /**
11264
+ * additional information
11265
+ *
10799
11266
  * Checkout details for **cart** approvals. **Required** when `resourceType` is `CART`.
10800
11267
  *
10801
11268
  */
@@ -10835,6 +11302,8 @@ type Address = {
10835
11302
  type?: 'SHIPPING' | 'BILLING';
10836
11303
  };
10837
11304
  /**
11305
+ * Shipping information
11306
+ *
10838
11307
  * Information about the shipping.
10839
11308
  */
10840
11309
  type Shipping = {
@@ -10860,6 +11329,8 @@ type Shipping = {
10860
11329
  shippingTaxCode?: string;
10861
11330
  };
10862
11331
  /**
11332
+ * Payment information
11333
+ *
10863
11334
  * Information about the payment.
10864
11335
  */
10865
11336
  type Payment = {
@@ -10903,6 +11374,9 @@ type PaymentMethod = {
10903
11374
  */
10904
11375
  amount?: number;
10905
11376
  };
11377
+ /**
11378
+ * user schema
11379
+ */
10906
11380
  type User = {
10907
11381
  /**
10908
11382
  * An identifier of the user.
@@ -10918,22 +11392,33 @@ type User = {
10918
11392
  lastName: string;
10919
11393
  };
10920
11394
  /**
11395
+ * A type of a resource
11396
+ *
10921
11397
  * Type of resource under approval.
10922
11398
  *
10923
11399
  */
10924
11400
  type ResourceType = 'CART' | 'QUOTE';
10925
11401
  /**
11402
+ * An approval action
11403
+ *
10926
11404
  * Base schema for an approval action type.
10927
11405
  */
10928
11406
  type ApprovalAction = 'CHECKOUT';
10929
11407
  /**
11408
+ * A status of the approval
11409
+ *
10930
11410
  * Base schema for the approval status.
10931
11411
  */
10932
11412
  type ApprovalStatus = 'PENDING' | 'APPROVED' | 'CLOSED' | 'EXPIRED' | 'DECLINED';
10933
11413
  /**
11414
+ * An expiration date
11415
+ *
10934
11416
  * 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`
10935
11417
  */
10936
11418
  type ExpiryDate = string;
11419
+ /**
11420
+ * An approval response
11421
+ */
10937
11422
  type GetApprovalResponse = BasicApproval & {
10938
11423
  /**
10939
11424
  * An identifier of the approval document.
@@ -10953,6 +11438,8 @@ type GetApprovalResponse = BasicApproval & {
10953
11438
  metadata?: Metadata;
10954
11439
  };
10955
11440
  /**
11441
+ * Legal entity
11442
+ *
10956
11443
  * Legal entity (company) the approval belongs to. Set when the approval is created from the customer token.
10957
11444
  *
10958
11445
  */
@@ -10963,6 +11450,8 @@ type LegalEntity = {
10963
11450
  id: string;
10964
11451
  };
10965
11452
  /**
11453
+ * Created resource
11454
+ *
10966
11455
  * 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.
10967
11456
  *
10968
11457
  * For checkout approvals (`action: CHECKOUT`), `id` is typically the order identifier (for example, from Order Service).
@@ -10975,6 +11464,8 @@ type CreatedResource = {
10975
11464
  id: string;
10976
11465
  };
10977
11466
  /**
11467
+ * approval permitted response
11468
+ *
10978
11469
  * Base schema for approval permitted response.
10979
11470
  */
10980
11471
  type ApprovalPermittedResponse = {
@@ -10990,6 +11481,8 @@ type ApprovalPermittedResponse = {
10990
11481
  approvalId?: string;
10991
11482
  };
10992
11483
  /**
11484
+ * Resource
11485
+ *
10993
11486
  * Resource of the approval.
10994
11487
  */
10995
11488
  type ResourceResponse = {
@@ -11008,6 +11501,8 @@ type ResourceResponse = {
11008
11501
  deliveryWindow?: DeliveryWindow;
11009
11502
  };
11010
11503
  /**
11504
+ * Resource item
11505
+ *
11011
11506
  * Item of the resource.
11012
11507
  */
11013
11508
  type ResourceItem = {
@@ -11018,6 +11513,7 @@ type ResourceItem = {
11018
11513
  itemPrice?: ResourceItemPrice;
11019
11514
  /**
11020
11515
  * YRN which identifies the product.
11516
+ *
11021
11517
  * @deprecated
11022
11518
  */
11023
11519
  itemYrn?: string;
@@ -11027,6 +11523,8 @@ type ResourceItem = {
11027
11523
  itemId?: string;
11028
11524
  };
11029
11525
  /**
11526
+ * Resource item price
11527
+ *
11030
11528
  * Per-line price; used for resource line items.
11031
11529
  */
11032
11530
  type ResourceItemPrice = {
@@ -11036,6 +11534,7 @@ type ResourceItemPrice = {
11036
11534
  currency?: string;
11037
11535
  /**
11038
11536
  * Deprecated; prefer `unitPrice`, `newUnitPrice`, or `calculatedPrice`.
11537
+ *
11039
11538
  * @deprecated
11040
11539
  */
11041
11540
  amount?: number;
@@ -11049,6 +11548,9 @@ type ResourceItemPrice = {
11049
11548
  newUnitPrice?: number;
11050
11549
  calculatedPrice?: CalculatedPrice;
11051
11550
  };
11551
+ /**
11552
+ * Calculated price breakdown
11553
+ */
11052
11554
  type CalculatedPrice = {
11053
11555
  price?: {
11054
11556
  /**
@@ -11066,6 +11568,8 @@ type CalculatedPrice = {
11066
11568
  };
11067
11569
  };
11068
11570
  /**
11571
+ * Price value
11572
+ *
11069
11573
  * Aggregated price (totals, subtotals) with currency and optional tax breakdown.
11070
11574
  */
11071
11575
  type Price = {
@@ -11075,6 +11579,7 @@ type Price = {
11075
11579
  currency?: string;
11076
11580
  /**
11077
11581
  * Deprecated; use `netValue`, `grossValue`, and `taxValue` when present.
11582
+ *
11078
11583
  * @deprecated
11079
11584
  */
11080
11585
  amount?: number;
@@ -11092,6 +11597,8 @@ type Price = {
11092
11597
  taxValue?: number;
11093
11598
  };
11094
11599
  /**
11600
+ * Taxable price value
11601
+ *
11095
11602
  * Price value with the currency and tax information.
11096
11603
  */
11097
11604
  type TaxablePrice = {
@@ -11113,6 +11620,8 @@ type TaxablePrice = {
11113
11620
  taxValue?: number;
11114
11621
  };
11115
11622
  /**
11623
+ * Delivery Window
11624
+ *
11116
11625
  * delivery window required for order.
11117
11626
  */
11118
11627
  type DeliveryWindow = {
@@ -11129,6 +11638,9 @@ type DeliveryWindow = {
11129
11638
  */
11130
11639
  deliveryDate?: string;
11131
11640
  };
11641
+ /**
11642
+ * Create a cart approval
11643
+ */
11132
11644
  type CreateCartApprovalRequest = GenericApprovalForCreate & {
11133
11645
  /**
11134
11646
  * An identifier of the approval document.
@@ -11141,6 +11653,9 @@ type CreateCartApprovalRequest = GenericApprovalForCreate & {
11141
11653
  resourceType: 'CART';
11142
11654
  details: Details;
11143
11655
  };
11656
+ /**
11657
+ * Create a quote approval
11658
+ */
11144
11659
  type CreateQuoteApprovalRequest = GenericApprovalForCreate & {
11145
11660
  /**
11146
11661
  * An identifier of the approval document.
@@ -11180,12 +11695,18 @@ type Metadata = BasicMetadata & {
11180
11695
  */
11181
11696
  modifiedAt: string;
11182
11697
  };
11698
+ /**
11699
+ * approvalId
11700
+ */
11183
11701
  type ApprovalId = {
11184
11702
  /**
11185
11703
  * Unique identifier of the created approval.
11186
11704
  */
11187
11705
  id?: string;
11188
11706
  };
11707
+ /**
11708
+ * approval permitted request
11709
+ */
11189
11710
  type ApprovalPermittedRequest = {
11190
11711
  resourceType: ResourceType;
11191
11712
  /**
@@ -11194,6 +11715,9 @@ type ApprovalPermittedRequest = {
11194
11715
  resourceId: string;
11195
11716
  action: ApprovalAction;
11196
11717
  };
11718
+ /**
11719
+ * Search approver users request
11720
+ */
11197
11721
  type SearchUsersRequest = {
11198
11722
  resourceType: ResourceType;
11199
11723
  /**