@viu/emporix-sdk 4.6.7 → 4.7.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/availability.cjs.map +1 -1
  3. package/dist/availability.js +2 -2
  4. package/dist/cart.cjs +3 -0
  5. package/dist/cart.cjs.map +1 -1
  6. package/dist/cart.js +2 -2
  7. package/dist/checkout.cjs.map +1 -1
  8. package/dist/checkout.js +2 -2
  9. package/dist/{chunk-J2AN2FMK.js → chunk-3JO2O4BY.js} +25 -14
  10. package/dist/chunk-3JO2O4BY.js.map +1 -0
  11. package/dist/{chunk-UWGGF4MC.js → chunk-4Q76UV4J.js} +6 -3
  12. package/dist/chunk-4Q76UV4J.js.map +1 -0
  13. package/dist/{chunk-RYQVMR26.js → chunk-BHNYGUSD.js} +3 -3
  14. package/dist/{chunk-RYQVMR26.js.map → chunk-BHNYGUSD.js.map} +1 -1
  15. package/dist/{chunk-IYNT5BQW.js → chunk-CXTVY4SI.js} +8 -4
  16. package/dist/chunk-CXTVY4SI.js.map +1 -0
  17. package/dist/{chunk-K4KXT6NX.js → chunk-ENMMDGUB.js} +3 -3
  18. package/dist/{chunk-K4KXT6NX.js.map → chunk-ENMMDGUB.js.map} +1 -1
  19. package/dist/{chunk-UA4BM6OP.js → chunk-EQE5WGME.js} +4 -4
  20. package/dist/{chunk-UA4BM6OP.js.map → chunk-EQE5WGME.js.map} +1 -1
  21. package/dist/{chunk-4VRUMCS2.js → chunk-PK4DQHJO.js} +4 -4
  22. package/dist/{chunk-4VRUMCS2.js.map → chunk-PK4DQHJO.js.map} +1 -1
  23. package/dist/{chunk-NFSO7WUA.js → chunk-SIGXBN4F.js} +3 -3
  24. package/dist/{chunk-NFSO7WUA.js.map → chunk-SIGXBN4F.js.map} +1 -1
  25. package/dist/{chunk-N2CE3J4M.js → chunk-U3ZIJZYH.js} +3 -3
  26. package/dist/{chunk-N2CE3J4M.js.map → chunk-U3ZIJZYH.js.map} +1 -1
  27. package/dist/{chunk-S2ERKGYL.js → chunk-ZLGLI4KC.js} +3 -3
  28. package/dist/{chunk-S2ERKGYL.js.map → chunk-ZLGLI4KC.js.map} +1 -1
  29. package/dist/{chunk-3BDDYX3V.js → chunk-ZVIEFW3X.js} +3 -3
  30. package/dist/{chunk-3BDDYX3V.js.map → chunk-ZVIEFW3X.js.map} +1 -1
  31. package/dist/{chunk-XQAOHHXL.js → chunk-ZZ3X3DDL.js} +3 -3
  32. package/dist/{chunk-XQAOHHXL.js.map → chunk-ZZ3X3DDL.js.map} +1 -1
  33. package/dist/customer.cjs.map +1 -1
  34. package/dist/customer.js +3 -3
  35. package/dist/index.cjs +62 -29
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +137 -42
  38. package/dist/index.d.ts +137 -42
  39. package/dist/index.js +52 -38
  40. package/dist/index.js.map +1 -1
  41. package/dist/media.cjs +3 -0
  42. package/dist/media.cjs.map +1 -1
  43. package/dist/media.js +2 -2
  44. package/dist/orders.cjs +6 -2
  45. package/dist/orders.cjs.map +1 -1
  46. package/dist/orders.d.cts +6 -2
  47. package/dist/orders.d.ts +6 -2
  48. package/dist/orders.js +1 -1
  49. package/dist/payment.cjs.map +1 -1
  50. package/dist/payment.js +3 -3
  51. package/dist/price.cjs.map +1 -1
  52. package/dist/price.js +2 -2
  53. package/dist/product.cjs +23 -12
  54. package/dist/product.cjs.map +1 -1
  55. package/dist/product.d.cts +197 -14
  56. package/dist/product.d.ts +197 -14
  57. package/dist/product.js +1 -1
  58. package/dist/segment.cjs.map +1 -1
  59. package/dist/segment.js +3 -3
  60. package/package.json +1 -1
  61. package/dist/chunk-IYNT5BQW.js.map +0 -1
  62. package/dist/chunk-J2AN2FMK.js.map +0 -1
  63. package/dist/chunk-UWGGF4MC.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { S as SearchPaging } from './search-DU6tE356.js';
4
4
  import { CustomerService } from './customer.js';
5
5
  export { Address, AddressCreateInput, AddressUpdateInput, ChangeEmailInput, ConfirmEmailChangeInput, Customer, CustomerSession, CustomerSignupInput, CustomerTokenValidation, CustomerUpdateInput, PasswordChangeInput, PasswordResetConfirmInput, PasswordResetRequestInput, ResendActivationInput } from './customer.js';
6
6
  import { ProductService } from './product.js';
7
- export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkUpdateInput, ProductCreateInput, ProductCreated, ProductPatchInput, ProductRecalculationInput, ProductRecalculationJob, ProductRecalculationJobStatus, ProductRecalculationResult, ProductTemplate, ProductTemplateCreateInput, ProductTemplateCreated, ProductTemplateUpdateInput, ProductUpdateInput, ProductWriteOptions } from './product.js';
7
+ export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkUpdateInput, ProductCreateInput, ProductCreated, ProductPatchInput, ProductRecalculationInput, ProductRecalculationJob, ProductRecalculationJobStatus, ProductRecalculationResult, ProductTemplate, ProductTemplateCreateInput, ProductTemplateCreated, ProductTemplateUpdateInput, ProductUpdateInput, ProductVariant, ProductWriteOptions } from './product.js';
8
8
  import { CategoryService } from './category.js';
9
9
  export { Category, CategoryAssignment, CategoryAssignmentBulkInput, CategoryAssignmentBulkResult, CategoryAssignmentCreated, CategoryAssignmentInput, CategoryAssignmentRefBulkInput, CategoryCreateInput, CategoryCreated, CategoryNode, CategoryPatchInput, CategoryTreeSearchInput, CategoryUpdateInput, CategoryWriteOptions } from './category.js';
10
10
  import { CartService } from './cart.js';
@@ -52,6 +52,9 @@ declare class EmporixNotFoundError extends EmporixError {
52
52
  /** 400/422 — request validation failed. */
53
53
  declare class EmporixValidationError extends EmporixError {
54
54
  }
55
+ /** 409 — conflict: a stale `metadata.version`, or an id that already exists. */
56
+ declare class EmporixConflictError extends EmporixError {
57
+ }
55
58
  /** 5xx — server-side failure. */
56
59
  declare class EmporixServerError extends EmporixError {
57
60
  }
@@ -2307,12 +2310,44 @@ type AbstractSchemaResponse = {
2307
2310
  metadata?: SchemaMetadata;
2308
2311
  };
2309
2312
  type SchemaResponse = AbstractSchemaResponse & {
2313
+ /**
2314
+ * When `true`, custom instances or products that use this mixin may store per-site overlays under keys in the form `{mixinName}__{siteCode}`.
2315
+ * Historical schemas may omit the field (`null`), which behaves like `false`.
2316
+ *
2317
+ */
2318
+ siteAware?: boolean | null;
2310
2319
  /**
2311
2320
  * List of attributes related to the schema.
2312
2321
  */
2313
2322
  attributes?: Array<SchemaAttribute$1>;
2314
2323
  };
2315
2324
  type ReferenceResponse = AbstractSchemaResponse;
2325
+ type CustomSchemaTypeCreation = {
2326
+ /**
2327
+ * Unique code for the custom type. Can contain uppercase letters, digits, and underscores. The first character must be a letter.
2328
+ */
2329
+ id: string;
2330
+ /**
2331
+ * Localized custom type name in a form of a map of translations.
2332
+ */
2333
+ name: {
2334
+ [key: string]: unknown;
2335
+ };
2336
+ };
2337
+ type CustomSchemaTypeUpdate = {
2338
+ /**
2339
+ * Localized custom type name in a form of a map of translations.
2340
+ */
2341
+ name: {
2342
+ [key: string]: unknown;
2343
+ };
2344
+ metadata?: {
2345
+ /**
2346
+ * Version of the custom schema type. If provided, it will be validated against the current entity version.
2347
+ */
2348
+ version?: number;
2349
+ };
2350
+ };
2316
2351
  type CustomSchemaTypeResponse = {
2317
2352
  /**
2318
2353
  * Unique id of the custom schema type.
@@ -2355,12 +2390,18 @@ type CustomInstanceCreation = {
2355
2390
  };
2356
2391
  owner?: CustomInstanceOwnerRequest;
2357
2392
  /**
2358
- * A key-value map of additional attributes.
2393
+ * Key-value map of mixin payloads. For site-aware schemas, include per-site overlays as additional keys in the form `{mixinName}__{siteCode}`.
2394
+ * Overlay values are validated against the base mixin JSON Schema.
2395
+ *
2359
2396
  */
2360
- mixins?: string;
2397
+ mixins?: {
2398
+ [key: string]: unknown;
2399
+ };
2361
2400
  metadata?: {
2362
2401
  /**
2363
- * A key-value map, where key is a mixin name and value is a link to the mixin schema.
2402
+ * Key-value map where each key is a base mixin name and each value is a link to the mixin schema.
2403
+ * Do not add `{mixinName}__{siteCode}` keys here. Site overlays reuse the base schema URL.
2404
+ *
2364
2405
  */
2365
2406
  mixins?: {
2366
2407
  [key: string]: unknown;
@@ -2376,16 +2417,22 @@ type CustomInstanceUpdate = {
2376
2417
  };
2377
2418
  owner?: CustomInstanceOwnerRequest;
2378
2419
  /**
2379
- * A key-value map of additional attributes.
2420
+ * Key-value map of mixin payloads. For site-aware schemas, include per-site overlays as additional keys in the form `{mixinName}__{siteCode}`.
2421
+ * Overlay values are validated against the base mixin JSON Schema.
2422
+ *
2380
2423
  */
2381
- mixins?: string;
2424
+ mixins?: {
2425
+ [key: string]: unknown;
2426
+ };
2382
2427
  metadata?: {
2383
2428
  /**
2384
2429
  * Version of the custom instance. If provided, it will be validated against the current entity version.
2385
2430
  */
2386
2431
  version?: number;
2387
2432
  /**
2388
- * A key-value map, where key is a mixin name and value is a link to the mixin schema.
2433
+ * Key-value map where each key is a base mixin name and each value is a link to the mixin schema.
2434
+ * Do not add `{mixinName}__{siteCode}` keys here. Site overlays reuse the base schema URL.
2435
+ *
2389
2436
  */
2390
2437
  mixins?: {
2391
2438
  [key: string]: unknown;
@@ -2443,9 +2490,13 @@ type CustomInstanceResponse = {
2443
2490
  type?: string;
2444
2491
  owner?: CustomInstanceOwner;
2445
2492
  /**
2446
- * A key-value map of additional attributes.
2493
+ * Key-value map of mixin payloads. Without `emporix-site`, base keys and `{mixinName}__{siteCode}` overlay keys are returned as stored.
2494
+ * With `emporix-site`, overlays for that site are deep-merged into the base keys and only the merged base keys are returned.
2495
+ *
2447
2496
  */
2448
- mixins?: string;
2497
+ mixins?: {
2498
+ [key: string]: unknown;
2499
+ };
2449
2500
  /**
2450
2501
  * List of media IDs assigned to the custom instance.
2451
2502
  */
@@ -2540,6 +2591,12 @@ type SchemaAttribute = SchemaAttribute$1;
2540
2591
  * (`PRODUCT`, `CART`, `ORDER`, `CUSTOM_ENTITY`, …).
2541
2592
  */
2542
2593
  type SchemaTypeName = SchemaType;
2594
+ /**
2595
+ * An entity type a schema attaches to: a {@link SchemaTypeName} or the id of a
2596
+ * custom entity — the spec's `SchemaType` allows "any custom schema type id",
2597
+ * which its enum cannot express.
2598
+ */
2599
+ type SchemaTargetType = SchemaTypeName | (string & {});
2543
2600
  /** A custom-entity definition (a tenant-defined resource type). */
2544
2601
  type CustomEntity = CustomSchemaTypeResponse;
2545
2602
  /**
@@ -2552,11 +2609,14 @@ type CustomInstance<T = Record<string, unknown>> = Omit<CustomInstanceResponse,
2552
2609
  };
2553
2610
  /**
2554
2611
  * Input for creating a schema (server assigns `metadata.version`/`url`).
2555
- * `name`, `types` and `attributes` are the caller-controlled fields.
2612
+ * `name`, `types` and `attributes` are the caller-controlled fields; `id` is
2613
+ * the mixin key the data is stored under (`mixins.<id>`), generated when left
2614
+ * out.
2556
2615
  */
2557
2616
  interface SchemaDraft {
2617
+ id?: string;
2558
2618
  name: Record<string, string>;
2559
- types: SchemaTypeName[];
2619
+ types: SchemaTargetType[];
2560
2620
  attributes: SchemaAttribute[];
2561
2621
  }
2562
2622
  /**
@@ -2564,27 +2624,48 @@ interface SchemaDraft {
2564
2624
  * upstream API **requires** `metadata.version` for optimistic locking
2565
2625
  * (409 Conflict on a stale version).
2566
2626
  */
2567
- interface SchemaUpdate extends SchemaDraft {
2627
+ interface SchemaUpdate extends Omit<SchemaDraft, "id"> {
2568
2628
  metadata: {
2569
2629
  version: number;
2570
2630
  };
2571
2631
  }
2572
- /** Input for creating/updating a custom-entity definition. */
2573
- interface CustomEntityDraft {
2574
- name: Record<string, string>;
2575
- attributes: SchemaAttribute[];
2576
- }
2577
- /** Input for creating/replacing a custom instance. `mixins` carries the data. */
2578
- interface CustomInstanceDraft<T = Record<string, unknown>> {
2579
- name: Record<string, string>;
2632
+ /** Id envelope of a `201` from {@link SchemaService.createSchema}. */
2633
+ type SchemaCreated = IdResponse$1;
2634
+ /**
2635
+ * Input for creating a custom-entity definition. `id` is the type code —
2636
+ * uppercase letters, digits and underscores. Its fields are defined by
2637
+ * schemas attached to the type, not here.
2638
+ */
2639
+ type CustomEntityDraft = CustomSchemaTypeCreation;
2640
+ /** Input for updating a custom-entity definition (`PUT`, an upsert). */
2641
+ type CustomEntityUpdate = CustomSchemaTypeUpdate;
2642
+ /** Id envelope of a `201` from creating a custom-entity definition. */
2643
+ type CustomEntityCreated = IdResponse$1;
2644
+ /**
2645
+ * Input for creating a custom instance. `mixins` carries the data; `id` is
2646
+ * optional (generated when left out); `metadata.mixins` maps each mixin key to
2647
+ * its schema URL.
2648
+ */
2649
+ type CustomInstanceDraft<T = Record<string, unknown>> = Omit<CustomInstanceCreation, "mixins"> & {
2580
2650
  mixins: T;
2581
- }
2651
+ };
2652
+ /**
2653
+ * Input for replacing a custom instance (`PUT`, an upsert). `metadata.version`
2654
+ * enables optimistic locking — a stale one is answered with a 409.
2655
+ */
2656
+ type CustomInstanceReplace<T = Record<string, unknown>> = Omit<CustomInstanceUpdate, "mixins"> & {
2657
+ mixins: T;
2658
+ };
2659
+ /** RFC-6902 operations for {@link SchemaService.patchInstance}. */
2660
+ type CustomInstancePatch = PatchOperation$1[];
2661
+ /** Id envelope of a `201` from creating a custom instance. */
2662
+ type CustomInstanceCreated = IdResponse$1;
2582
2663
  /** Filter / pagination options for {@link SchemaService.listSchemas}. */
2583
2664
  interface ListSchemasQuery {
2584
2665
  /** Emporix `q`-syntax filter (supports `compoundLogicalQuery`). */
2585
2666
  q?: string;
2586
2667
  /** Restrict to schemas attached to this entity type. */
2587
- type?: SchemaTypeName;
2668
+ type?: SchemaTargetType;
2588
2669
  pageNumber?: number;
2589
2670
  pageSize?: number;
2590
2671
  /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
@@ -2686,14 +2767,14 @@ declare class SchemaService {
2686
2767
  listSchemas(query?: ListSchemasQuery, auth?: AuthContext): Promise<PaginatedItems<Schema>>;
2687
2768
  /** Retrieve one schema by id. */
2688
2769
  getSchema(id: string, auth?: AuthContext): Promise<Schema>;
2689
- /** Create a schema. */
2690
- createSchema(draft: SchemaDraft, auth?: AuthContext): Promise<Schema>;
2770
+ /** Create a schema. Resolves to the `201`'s id envelope — read the schema back for the rest. */
2771
+ createSchema(draft: SchemaDraft, auth?: AuthContext): Promise<SchemaCreated>;
2691
2772
  /**
2692
- * Update a schema. The upstream API requires `draft.metadata.version`; a
2693
- * stale version yields 409 Conflict (propagated as the standard conflict
2694
- * error).
2773
+ * Update a schema; resolves on the `204`. The upstream API requires
2774
+ * `draft.metadata.version`; a stale version yields a 409
2775
+ * (`EmporixConflictError`).
2695
2776
  */
2696
- updateSchema(id: string, draft: SchemaUpdate, auth?: AuthContext): Promise<Schema>;
2777
+ updateSchema(id: string, draft: SchemaUpdate, auth?: AuthContext): Promise<void>;
2697
2778
  /** Delete a schema by id. */
2698
2779
  deleteSchema(id: string, auth?: AuthContext): Promise<void>;
2699
2780
  /**
@@ -2704,19 +2785,22 @@ declare class SchemaService {
2704
2785
  /** List entity types that currently have at least one schema. */
2705
2786
  listTypes(auth?: AuthContext): Promise<SchemaTypeName[]>;
2706
2787
  /** Set the entity types a schema applies to (`PUT /schemas/{id}/types`). */
2707
- setSchemaTypes(id: string, types: SchemaTypeName[], auth?: AuthContext): Promise<Schema>;
2788
+ setSchemaTypes(id: string, types: SchemaTargetType[], auth?: AuthContext): Promise<void>;
2708
2789
  /** List custom-entity definitions. `expandSchemas` inlines each schema body. */
2709
2790
  listCustomEntities(opts?: ListCustomEntitiesOptions, auth?: AuthContext): Promise<CustomEntity[]>;
2710
2791
  /** Retrieve one custom-entity definition by id. */
2711
2792
  getCustomEntity(id: string, auth?: AuthContext): Promise<CustomEntity>;
2712
- /** Create a custom-entity definition. */
2713
- createCustomEntity(draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntity>;
2714
- /** Update a custom-entity definition. */
2715
- updateCustomEntity(id: string, draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntity>;
2793
+ /** Create a custom-entity definition. Resolves to the `201`'s id envelope. */
2794
+ createCustomEntity(draft: CustomEntityDraft, auth?: AuthContext): Promise<CustomEntityCreated>;
2795
+ /**
2796
+ * Update a custom-entity definition — an upsert: resolves to the id envelope
2797
+ * when the `PUT` created the type (`201`), to `undefined` when it updated it
2798
+ * (`204`).
2799
+ */
2800
+ updateCustomEntity(id: string, draft: CustomEntityUpdate, auth?: AuthContext): Promise<CustomEntityCreated | undefined>;
2716
2801
  /**
2717
2802
  * Delete a custom-entity definition. The server rejects with 409 if
2718
- * instances or schemas still reference it (propagated as the standard
2719
- * conflict error).
2803
+ * instances or schemas still reference it (`EmporixConflictError`).
2720
2804
  */
2721
2805
  deleteCustomEntity(id: string, auth?: AuthContext): Promise<void>;
2722
2806
  /**
@@ -2736,12 +2820,23 @@ declare class SchemaService {
2736
2820
  listAllInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): AsyncIterable<CustomInstance<T>>;
2737
2821
  /** Retrieve one instance by id. */
2738
2822
  getInstance<T = Record<string, unknown>>(type: string, id: string, auth?: AuthContext): Promise<CustomInstance<T>>;
2739
- /** Create an instance of a custom entity. */
2740
- createInstance<T = Record<string, unknown>>(type: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstance<T>>;
2741
- /** Replace an instance (full `PUT`). */
2742
- replaceInstance<T = Record<string, unknown>>(type: string, id: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstance<T>>;
2743
- /** Partially update an instance (`PATCH`). */
2744
- patchInstance<T = Record<string, unknown>>(type: string, id: string, patch: Partial<CustomInstanceDraft<T>>, auth?: AuthContext): Promise<CustomInstance<T>>;
2823
+ /**
2824
+ * Create an instance of a custom entity. Resolves to the `201`'s id envelope;
2825
+ * an id that already exists is answered with a 409 (`EmporixConflictError`).
2826
+ */
2827
+ createInstance<T = Record<string, unknown>>(type: string, draft: CustomInstanceDraft<T>, auth?: AuthContext): Promise<CustomInstanceCreated>;
2828
+ /**
2829
+ * Replace an instance (full `PUT`, an upsert). Resolves to the id envelope
2830
+ * when it created the instance (`201`), to `undefined` when it replaced one
2831
+ * (`204`). A stale `metadata.version` is answered with a 409.
2832
+ */
2833
+ replaceInstance<T = Record<string, unknown>>(type: string, id: string, draft: CustomInstanceReplace<T>, auth?: AuthContext): Promise<CustomInstanceCreated | undefined>;
2834
+ /**
2835
+ * Partially update an instance (`PATCH`) with RFC-6902 operations, e.g.
2836
+ * `[{ op: "replace", path: "/mixins/shoe/size", value: 44 }]`. Resolves on
2837
+ * the `204`.
2838
+ */
2839
+ patchInstance(type: string, id: string, patch: CustomInstancePatch, auth?: AuthContext): Promise<void>;
2745
2840
  /**
2746
2841
  * Patch up to 200 custom instances of `type` in one call
2747
2842
  * (`PATCH /custom-entities/{type}/instances/bulk`). Returns a 207 envelope:
@@ -13557,4 +13652,4 @@ declare function productIdFromYrn(yrn: string | undefined): string;
13557
13652
  */
13558
13653
  declare function productYrn(tenant: string, productId: string): string;
13559
13654
 
13560
- export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerImport, type AdminCustomerImportAccount, type AdminCustomerImportResult, type AdminCustomerInput, type AdminCustomerLegacyAuth, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type AdminPasswordMigrationRetention, type AdminPasswordMigrationRetentionInput, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, AgenticCrudResource, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, AnalyticsResource, type Approval, type ApprovalCreated, type ApprovalDecision, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Attachment, type AttachmentOptions, type AttachmentReuseOptions, type AuditLogChangeType, type AuditLogEntry, type AuditLogPage, type AuditLogPathChange, type AuditLogQuery, type AuditLogRelatedEntity, AuditLogService, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, type BulkInstanceResult, type BulkPatchInstanceItem, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatOptions, type ChatRequest, type ChatResponse, type ChatStreamOptions, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CloudFunctionsService, type CommerceEvents, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type Conversation, type ConversationSearchQuery, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type CookieIo, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, type Created, type Currency, type CurrencyCreated, type CurrencyInput, type CurrencyList, CurrencyService, type CurrencyUpdate, type CustomEntity, type CustomEntityDraft, type CustomInstance, type CustomInstanceDraft, CustomerAdminService, CustomerGroupsService, CustomerService, type CustomerSessionState, type CustomerSessionStore, type CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$1 as DeliveryWindow, type DeliveryWindowList, type DeliveryWindowValidation, EmporixAuthError, EmporixClient, EmporixConfig, type EmporixCore, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, type EmporixStorage, type EmporixStorageKey, EmporixTimeoutError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type ExecutionsQuery, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type GetOptions, type IamAccessControl, type IamAccessControlCreated, type IamAccessControlUpsert, type IamGroup, type IamGroupCreate, type IamGroupCreated, AssignmentCreateRequest as IamGroupMemberAssignment, type IamGroupMemberCreated, type IamGroupMemberInput, type IamGroupUpdate, type IamScope, type IamScopeCreated, type IamScopeUpsert, IamService, type IamUser, type IamUserCreate, type IamUserCreated, type IamUserDetail, type IamUserScopes, type IamUserUpdate, type ImportCancelResult, type ImportConfig, type ImportDiagnosticKind, type ImportDiagnosticRecord, type ImportErrorRecord, type ImportHealthThresholds, type ImportJobGroup, type ImportLicense, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunDiagnostics, type ImportRunDiagnosticsQuery, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStats, type ImportStatsQuery, type ImportStream, type ImportStreamOrder, type ImportedRecord, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type InvoiceJob, type InvoiceJobCreated, type InvoiceJobDraft, InvoiceService, type InvokeCloudFunctionOptions, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type ItemFeeSearchByProductId, type ItemFeeSearchByProductIds, type Job, type JobIdResponse, JobsResource, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListQuery, type ListQuoteReasonsQuery, type ListQuotesQuery, type ListReindexJobsOptions, type ListSchemaReferencesQuery, type ListSchemasQuery, LocationsService, LogLevel, LogsResource, type McpServer, type McpServerInput, MediaService, type MetadataFilter, type MinimumFee, type MutateOptions, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OAuthConfig, type OAuthInput, OrdersService, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PointsSummary, PriceService, ProductService, type ProviderModels, QueryFor, type Quote, type QuoteCreated, type QuoteDraft, type QuoteHistory, type QuoteInput, type QuoteReason, type QuoteReasonCreated, type QuoteReasonDraft, type QuoteReasonUpdate, QuoteReasonsResource, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RedeemCouponResult, type RedeemMyPointsInput, type RedeemOption, type RedeemOptionList, type RedeemedPoints, type Redemption, type RedemptionCreated, type RedemptionInput, type ReferralCoupon, type Region, type RegionList, type ReindexEntityType, type ReindexInput, type ReindexJob, type ReindexJobInput, type ReindexJobStatus, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, STORAGE_KEYS, SalesOrdersService, type SavedSearch, type SavedSearchCreated, type SavedSearchInput, type Schema, type SchemaAttribute, type SchemaDraft, type SchemaExport, type SchemaImportInput, type SchemaInstanceBulkCreateItem, type SchemaInstanceBulkUpsertItem, type SchemaReference, type SchemaReferenceCreated, type SchemaReferenceInput, type SchemaReferenceUpdateInput, SchemaService, type SchemaTypeName, type SchemaUpdate, type SearchFilterNode, type SearchHit, type SearchImportedRecordsOptions, type SearchIndex, type SearchIndexExport, type SearchIndexField, type SearchIndexImportResult, type SearchIndexInput, type SearchIndexJob, type SearchIndexJobRef, type SearchIndexSelection, type SearchInput, type SearchInstancesQuery, type SearchListOptions, type SearchOptions, SearchPaging, type SearchQuery, type SearchQueryNode, SearchService, type SearchStreamRecordsOptions, type SearchTypeListOptions, SegmentService, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, type SessionContextData, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingFee, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteAddress, type SiteCreated, type SiteFields, type SiteHomeBase, type SiteInput, type SiteList, type SiteMixin, type SiteMixinCreated, type SiteMixins, SiteService, StoredAnonymousSession, type TaxCalculationInput, type TaxCalculationRequest, type TaxCalculationResult, type TaxClass, type TaxConfig, type TaxConfigCreated, type TaxCreation as TaxConfigInput, type TaxUpdate as TaxConfigUpdate, type TaxLocation, TaxService, TemplatesResource, TenantConfigService, type TextRequest, type TextResponse, type Token, type TokenInput, TokenProvider, type TokenStorage, type Tool, type ToolInput, type Unit, type UnitCreated, UnitHandlingService, type UnitInput, type UnitUpdate, type Vendor, type VendorCreated, type VendorInput, type VendorList, type VendorLocation, type VendorLocationInput, type VendorLocationList, type VendorLocationUpdate, type VendorSearchQuery, VendorService, type VendorUpdate, type WebhookConfig, type WebhookConfigCreated, type WebhookConfigDraft, type WebhookConfigPatch, type WebhookDashboardAccess, WebhookService, type WebhookStatistics, type WebhookStatisticsQuery, type WebhookSubscription, type WebhookSubscriptionUpdateItem, type WebhookSubscriptionUpdateResultItem, type Zone, type ZoneList, approvalStatusPatch, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createServerStorage, createSessionStorage, emporixKey, errorFromResponse, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, resolveZone, serverAuth, siteMeta };
13655
+ export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerImport, type AdminCustomerImportAccount, type AdminCustomerImportResult, type AdminCustomerInput, type AdminCustomerLegacyAuth, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type AdminPasswordMigrationRetention, type AdminPasswordMigrationRetentionInput, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, AgenticCrudResource, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, AnalyticsResource, type Approval, type ApprovalCreated, type ApprovalDecision, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Attachment, type AttachmentOptions, type AttachmentReuseOptions, type AuditLogChangeType, type AuditLogEntry, type AuditLogPage, type AuditLogPathChange, type AuditLogQuery, type AuditLogRelatedEntity, AuditLogService, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, type BulkInstanceResult, type BulkPatchInstanceItem, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatOptions, type ChatRequest, type ChatResponse, type ChatStreamOptions, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CloudFunctionsService, type CommerceEvents, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type Conversation, type ConversationSearchQuery, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type CookieIo, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, type Created, type Currency, type CurrencyCreated, type CurrencyInput, type CurrencyList, CurrencyService, type CurrencyUpdate, type CustomEntity, type CustomEntityCreated, type CustomEntityDraft, type CustomEntityUpdate, type CustomInstance, type CustomInstanceCreated, type CustomInstanceDraft, type CustomInstancePatch, type CustomInstanceReplace, CustomerAdminService, CustomerGroupsService, CustomerService, type CustomerSessionState, type CustomerSessionStore, type CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$1 as DeliveryWindow, type DeliveryWindowList, type DeliveryWindowValidation, EmporixAuthError, EmporixClient, EmporixConfig, EmporixConflictError, type EmporixCore, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, type EmporixStorage, type EmporixStorageKey, EmporixTimeoutError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type ExecutionsQuery, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type GetOptions, type IamAccessControl, type IamAccessControlCreated, type IamAccessControlUpsert, type IamGroup, type IamGroupCreate, type IamGroupCreated, AssignmentCreateRequest as IamGroupMemberAssignment, type IamGroupMemberCreated, type IamGroupMemberInput, type IamGroupUpdate, type IamScope, type IamScopeCreated, type IamScopeUpsert, IamService, type IamUser, type IamUserCreate, type IamUserCreated, type IamUserDetail, type IamUserScopes, type IamUserUpdate, type ImportCancelResult, type ImportConfig, type ImportDiagnosticKind, type ImportDiagnosticRecord, type ImportErrorRecord, type ImportHealthThresholds, type ImportJobGroup, type ImportLicense, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunDiagnostics, type ImportRunDiagnosticsQuery, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStats, type ImportStatsQuery, type ImportStream, type ImportStreamOrder, type ImportedRecord, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type InvoiceJob, type InvoiceJobCreated, type InvoiceJobDraft, InvoiceService, type InvokeCloudFunctionOptions, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type ItemFeeSearchByProductId, type ItemFeeSearchByProductIds, type Job, type JobIdResponse, JobsResource, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListQuery, type ListQuoteReasonsQuery, type ListQuotesQuery, type ListReindexJobsOptions, type ListSchemaReferencesQuery, type ListSchemasQuery, LocationsService, LogLevel, LogsResource, type McpServer, type McpServerInput, MediaService, type MetadataFilter, type MinimumFee, type MutateOptions, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OAuthConfig, type OAuthInput, OrdersService, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PointsSummary, PriceService, ProductService, type ProviderModels, QueryFor, type Quote, type QuoteCreated, type QuoteDraft, type QuoteHistory, type QuoteInput, type QuoteReason, type QuoteReasonCreated, type QuoteReasonDraft, type QuoteReasonUpdate, QuoteReasonsResource, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RedeemCouponResult, type RedeemMyPointsInput, type RedeemOption, type RedeemOptionList, type RedeemedPoints, type Redemption, type RedemptionCreated, type RedemptionInput, type ReferralCoupon, type Region, type RegionList, type ReindexEntityType, type ReindexInput, type ReindexJob, type ReindexJobInput, type ReindexJobStatus, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, STORAGE_KEYS, SalesOrdersService, type SavedSearch, type SavedSearchCreated, type SavedSearchInput, type Schema, type SchemaAttribute, type SchemaCreated, type SchemaDraft, type SchemaExport, type SchemaImportInput, type SchemaInstanceBulkCreateItem, type SchemaInstanceBulkUpsertItem, type SchemaReference, type SchemaReferenceCreated, type SchemaReferenceInput, type SchemaReferenceUpdateInput, SchemaService, type SchemaTargetType, type SchemaTypeName, type SchemaUpdate, type SearchFilterNode, type SearchHit, type SearchImportedRecordsOptions, type SearchIndex, type SearchIndexExport, type SearchIndexField, type SearchIndexImportResult, type SearchIndexInput, type SearchIndexJob, type SearchIndexJobRef, type SearchIndexSelection, type SearchInput, type SearchInstancesQuery, type SearchListOptions, type SearchOptions, SearchPaging, type SearchQuery, type SearchQueryNode, SearchService, type SearchStreamRecordsOptions, type SearchTypeListOptions, SegmentService, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, type SessionContextData, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingFee, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteAddress, type SiteCreated, type SiteFields, type SiteHomeBase, type SiteInput, type SiteList, type SiteMixin, type SiteMixinCreated, type SiteMixins, SiteService, StoredAnonymousSession, type TaxCalculationInput, type TaxCalculationRequest, type TaxCalculationResult, type TaxClass, type TaxConfig, type TaxConfigCreated, type TaxCreation as TaxConfigInput, type TaxUpdate as TaxConfigUpdate, type TaxLocation, TaxService, TemplatesResource, TenantConfigService, type TextRequest, type TextResponse, type Token, type TokenInput, TokenProvider, type TokenStorage, type Tool, type ToolInput, type Unit, type UnitCreated, UnitHandlingService, type UnitInput, type UnitUpdate, type Vendor, type VendorCreated, type VendorInput, type VendorList, type VendorLocation, type VendorLocationInput, type VendorLocationList, type VendorLocationUpdate, type VendorSearchQuery, VendorService, type VendorUpdate, type WebhookConfig, type WebhookConfigCreated, type WebhookConfigDraft, type WebhookConfigPatch, type WebhookDashboardAccess, WebhookService, type WebhookStatistics, type WebhookStatisticsQuery, type WebhookSubscription, type WebhookSubscriptionUpdateItem, type WebhookSubscriptionUpdateResultItem, type Zone, type ZoneList, approvalStatusPatch, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createServerStorage, createSessionStorage, emporixKey, errorFromResponse, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, resolveZone, serverAuth, siteMeta };
package/dist/index.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import { LocationsService } from './chunk-IAOWDMTA.js';
2
2
  export { LocationsService } from './chunk-IAOWDMTA.js';
3
- import { MediaService } from './chunk-NFSO7WUA.js';
4
- export { MediaService } from './chunk-NFSO7WUA.js';
5
- import { OrdersService, SalesOrdersService } from './chunk-IYNT5BQW.js';
6
- export { OrdersService, SalesOrdersService } from './chunk-IYNT5BQW.js';
7
- import { auth, resolveToken, DefaultTokenProvider, CustomerRefreshRegistry, PaymentGatewayService } from './chunk-4VRUMCS2.js';
8
- export { CustomerRefreshRegistry, DefaultTokenProvider, PaymentGatewayService, auth, resolveToken } from './chunk-4VRUMCS2.js';
9
- import { PriceService } from './chunk-K4KXT6NX.js';
10
- export { PriceService } from './chunk-K4KXT6NX.js';
11
- import { ProductService } from './chunk-J2AN2FMK.js';
12
- export { ProductService } from './chunk-J2AN2FMK.js';
13
- import { SegmentService } from './chunk-N2CE3J4M.js';
14
- export { SegmentService } from './chunk-N2CE3J4M.js';
15
- import { AvailabilityService } from './chunk-XQAOHHXL.js';
16
- export { AvailabilityService } from './chunk-XQAOHHXL.js';
17
- import { CartService } from './chunk-S2ERKGYL.js';
18
- export { CartService } from './chunk-S2ERKGYL.js';
3
+ import { MediaService } from './chunk-SIGXBN4F.js';
4
+ export { MediaService } from './chunk-SIGXBN4F.js';
5
+ import { OrdersService, SalesOrdersService } from './chunk-CXTVY4SI.js';
6
+ export { OrdersService, SalesOrdersService } from './chunk-CXTVY4SI.js';
7
+ import { auth, resolveToken, DefaultTokenProvider, CustomerRefreshRegistry, PaymentGatewayService } from './chunk-PK4DQHJO.js';
8
+ export { CustomerRefreshRegistry, DefaultTokenProvider, PaymentGatewayService, auth, resolveToken } from './chunk-PK4DQHJO.js';
9
+ import { PriceService } from './chunk-ENMMDGUB.js';
10
+ export { PriceService } from './chunk-ENMMDGUB.js';
11
+ import { ProductService } from './chunk-3JO2O4BY.js';
12
+ export { ProductService } from './chunk-3JO2O4BY.js';
13
+ import { SegmentService } from './chunk-U3ZIJZYH.js';
14
+ export { SegmentService } from './chunk-U3ZIJZYH.js';
15
+ import { AvailabilityService } from './chunk-ZZ3X3DDL.js';
16
+ export { AvailabilityService } from './chunk-ZZ3X3DDL.js';
17
+ import { CartService } from './chunk-ZLGLI4KC.js';
18
+ export { CartService } from './chunk-ZLGLI4KC.js';
19
19
  import { CategoryService } from './chunk-KJEBG7MP.js';
20
20
  export { CategoryService } from './chunk-KJEBG7MP.js';
21
21
  export { iterateAll } from './chunk-W6SLZNRX.js';
22
22
  import { resolveQuery } from './chunk-S5HEIQDK.js';
23
23
  export { resolveQuery } from './chunk-S5HEIQDK.js';
24
24
  import { requestPage } from './chunk-LKHKFF7B.js';
25
- import { CheckoutService } from './chunk-RYQVMR26.js';
26
- export { CheckoutService } from './chunk-RYQVMR26.js';
25
+ import { CheckoutService } from './chunk-BHNYGUSD.js';
26
+ export { CheckoutService } from './chunk-BHNYGUSD.js';
27
27
  import { CompaniesService } from './chunk-2OTFVTG6.js';
28
28
  export { CompaniesService } from './chunk-2OTFVTG6.js';
29
29
  import { splitQuery, SEARCH_PAGING } from './chunk-ZWJUDXTK.js';
@@ -31,11 +31,11 @@ import { ContactsService } from './chunk-27NLS646.js';
31
31
  export { ContactsService } from './chunk-27NLS646.js';
32
32
  import { CustomerGroupsService, IamService } from './chunk-VXORPTMP.js';
33
33
  export { CustomerGroupsService, IamService } from './chunk-VXORPTMP.js';
34
- import { CustomerService } from './chunk-UA4BM6OP.js';
35
- export { CustomerService } from './chunk-UA4BM6OP.js';
36
- import './chunk-3BDDYX3V.js';
37
- import { EmporixTimeoutError, EmporixNetworkError, errorFromResponse, EmporixNotFoundError, EmporixError } from './chunk-UWGGF4MC.js';
38
- export { EmporixAuthError, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, EmporixTimeoutError, EmporixValidationError, errorFromResponse } from './chunk-UWGGF4MC.js';
34
+ import { CustomerService } from './chunk-EQE5WGME.js';
35
+ export { CustomerService } from './chunk-EQE5WGME.js';
36
+ import './chunk-ZVIEFW3X.js';
37
+ import { EmporixTimeoutError, EmporixNetworkError, errorFromResponse, EmporixNotFoundError, EmporixError } from './chunk-4Q76UV4J.js';
38
+ export { EmporixAuthError, EmporixConflictError, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, EmporixTimeoutError, EmporixValidationError, errorFromResponse } from './chunk-4Q76UV4J.js';
39
39
 
40
40
  // src/core/config.ts
41
41
  var DEFAULT_HOST = "https://api.emporix.io";
@@ -948,7 +948,7 @@ var HttpClient = class {
948
948
  };
949
949
 
950
950
  // package.json
951
- var version = "4.6.7";
951
+ var version = "4.7.1";
952
952
 
953
953
  // src/version.ts
954
954
  var SDK_VERSION = version;
@@ -2040,7 +2040,7 @@ var SchemaService = class {
2040
2040
  auth: auth2
2041
2041
  });
2042
2042
  }
2043
- /** Create a schema. */
2043
+ /** Create a schema. Resolves to the `201`'s id envelope — read the schema back for the rest. */
2044
2044
  async createSchema(draft, auth2 = SERVICE8) {
2045
2045
  return this.ctx.http.request({
2046
2046
  method: "POST",
@@ -2050,12 +2050,12 @@ var SchemaService = class {
2050
2050
  });
2051
2051
  }
2052
2052
  /**
2053
- * Update a schema. The upstream API requires `draft.metadata.version`; a
2054
- * stale version yields 409 Conflict (propagated as the standard conflict
2055
- * error).
2053
+ * Update a schema; resolves on the `204`. The upstream API requires
2054
+ * `draft.metadata.version`; a stale version yields a 409
2055
+ * (`EmporixConflictError`).
2056
2056
  */
2057
2057
  async updateSchema(id, draft, auth2 = SERVICE8) {
2058
- return this.ctx.http.request({
2058
+ await this.ctx.http.request({
2059
2059
  method: "PUT",
2060
2060
  path: `${this.schemasBase()}/${encodeURIComponent(id)}`,
2061
2061
  auth: auth2,
@@ -2093,7 +2093,7 @@ var SchemaService = class {
2093
2093
  }
2094
2094
  /** Set the entity types a schema applies to (`PUT /schemas/{id}/types`). */
2095
2095
  async setSchemaTypes(id, types, auth2 = SERVICE8) {
2096
- return this.ctx.http.request({
2096
+ await this.ctx.http.request({
2097
2097
  method: "PUT",
2098
2098
  path: `${this.schemasBase()}/${encodeURIComponent(id)}/types`,
2099
2099
  auth: auth2,
@@ -2118,7 +2118,7 @@ var SchemaService = class {
2118
2118
  auth: auth2
2119
2119
  });
2120
2120
  }
2121
- /** Create a custom-entity definition. */
2121
+ /** Create a custom-entity definition. Resolves to the `201`'s id envelope. */
2122
2122
  async createCustomEntity(draft, auth2 = SERVICE8) {
2123
2123
  return this.ctx.http.request({
2124
2124
  method: "POST",
@@ -2127,7 +2127,11 @@ var SchemaService = class {
2127
2127
  body: draft
2128
2128
  });
2129
2129
  }
2130
- /** Update a custom-entity definition. */
2130
+ /**
2131
+ * Update a custom-entity definition — an upsert: resolves to the id envelope
2132
+ * when the `PUT` created the type (`201`), to `undefined` when it updated it
2133
+ * (`204`).
2134
+ */
2131
2135
  async updateCustomEntity(id, draft, auth2 = SERVICE8) {
2132
2136
  return this.ctx.http.request({
2133
2137
  method: "PUT",
@@ -2138,8 +2142,7 @@ var SchemaService = class {
2138
2142
  }
2139
2143
  /**
2140
2144
  * Delete a custom-entity definition. The server rejects with 409 if
2141
- * instances or schemas still reference it (propagated as the standard
2142
- * conflict error).
2145
+ * instances or schemas still reference it (`EmporixConflictError`).
2143
2146
  */
2144
2147
  async deleteCustomEntity(id, auth2 = SERVICE8) {
2145
2148
  await this.ctx.http.request({
@@ -2200,7 +2203,10 @@ var SchemaService = class {
2200
2203
  auth: auth2
2201
2204
  });
2202
2205
  }
2203
- /** Create an instance of a custom entity. */
2206
+ /**
2207
+ * Create an instance of a custom entity. Resolves to the `201`'s id envelope;
2208
+ * an id that already exists is answered with a 409 (`EmporixConflictError`).
2209
+ */
2204
2210
  async createInstance(type, draft, auth2 = SERVICE8) {
2205
2211
  return this.ctx.http.request({
2206
2212
  method: "POST",
@@ -2209,7 +2215,11 @@ var SchemaService = class {
2209
2215
  body: draft
2210
2216
  });
2211
2217
  }
2212
- /** Replace an instance (full `PUT`). */
2218
+ /**
2219
+ * Replace an instance (full `PUT`, an upsert). Resolves to the id envelope
2220
+ * when it created the instance (`201`), to `undefined` when it replaced one
2221
+ * (`204`). A stale `metadata.version` is answered with a 409.
2222
+ */
2213
2223
  async replaceInstance(type, id, draft, auth2 = SERVICE8) {
2214
2224
  return this.ctx.http.request({
2215
2225
  method: "PUT",
@@ -2218,9 +2228,13 @@ var SchemaService = class {
2218
2228
  body: draft
2219
2229
  });
2220
2230
  }
2221
- /** Partially update an instance (`PATCH`). */
2231
+ /**
2232
+ * Partially update an instance (`PATCH`) with RFC-6902 operations, e.g.
2233
+ * `[{ op: "replace", path: "/mixins/shoe/size", value: 44 }]`. Resolves on
2234
+ * the `204`.
2235
+ */
2222
2236
  async patchInstance(type, id, patch, auth2 = SERVICE8) {
2223
- return this.ctx.http.request({
2237
+ await this.ctx.http.request({
2224
2238
  method: "PATCH",
2225
2239
  path: `${this.instancesBase(type)}/${encodeURIComponent(id)}`,
2226
2240
  auth: auth2,