@viu/emporix-sdk 2.31.1 → 2.32.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 (83) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/availability.cjs +44 -10
  3. package/dist/availability.cjs.map +1 -1
  4. package/dist/availability.d.cts +2 -1
  5. package/dist/availability.d.ts +2 -1
  6. package/dist/availability.js +2 -1
  7. package/dist/cart.d.cts +1 -1
  8. package/dist/cart.d.ts +1 -1
  9. package/dist/category.cjs +82 -28
  10. package/dist/category.cjs.map +1 -1
  11. package/dist/category.d.cts +10 -1
  12. package/dist/category.d.ts +10 -1
  13. package/dist/category.js +3 -2
  14. package/dist/checkout.d.cts +1 -1
  15. package/dist/checkout.d.ts +1 -1
  16. package/dist/{chunk-W2KBVWJ2.js → chunk-3G5KROEC.js} +8 -2
  17. package/dist/chunk-3G5KROEC.js.map +1 -0
  18. package/dist/{chunk-7W22KLUL.js → chunk-JQWUGGRV.js} +32 -17
  19. package/dist/chunk-JQWUGGRV.js.map +1 -0
  20. package/dist/chunk-LKHKFF7B.js +30 -0
  21. package/dist/chunk-LKHKFF7B.js.map +1 -0
  22. package/dist/{chunk-D7HBM2DQ.js → chunk-MSQ3GEIW.js} +59 -31
  23. package/dist/chunk-MSQ3GEIW.js.map +1 -0
  24. package/dist/{chunk-P7G4LOOV.js → chunk-P3RANRGB.js} +47 -25
  25. package/dist/chunk-P3RANRGB.js.map +1 -0
  26. package/dist/{chunk-OTG2S2L4.js → chunk-TI56QENX.js} +14 -14
  27. package/dist/chunk-TI56QENX.js.map +1 -0
  28. package/dist/{chunk-GWJ2U2CP.js → chunk-W6SLZNRX.js} +2 -2
  29. package/dist/chunk-W6SLZNRX.js.map +1 -0
  30. package/dist/{chunk-V3275BA7.js → chunk-XQAOHHXL.js} +20 -12
  31. package/dist/chunk-XQAOHHXL.js.map +1 -0
  32. package/dist/companies.d.cts +1 -1
  33. package/dist/companies.d.ts +1 -1
  34. package/dist/contacts.d.cts +1 -1
  35. package/dist/contacts.d.ts +1 -1
  36. package/dist/{context-CpLIDl0P.d.cts → context-DK8jg6y5.d.cts} +48 -2
  37. package/dist/{context-CpLIDl0P.d.ts → context-DK8jg6y5.d.ts} +48 -2
  38. package/dist/{customer-groups-DJVbdrEP.d.cts → customer-groups-D0OCm8kJ.d.cts} +1 -1
  39. package/dist/{customer-groups-DhpCTCTg.d.ts → customer-groups-WSt4aT62.d.ts} +1 -1
  40. package/dist/customer-groups.d.cts +2 -2
  41. package/dist/customer-groups.d.ts +2 -2
  42. package/dist/customer.d.cts +1 -1
  43. package/dist/customer.d.ts +1 -1
  44. package/dist/index.cjs +343 -146
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +62 -7
  47. package/dist/index.d.ts +62 -7
  48. package/dist/index.js +169 -72
  49. package/dist/index.js.map +1 -1
  50. package/dist/locations.d.cts +1 -1
  51. package/dist/locations.d.ts +1 -1
  52. package/dist/media.cjs +38 -12
  53. package/dist/media.cjs.map +1 -1
  54. package/dist/media.d.cts +7 -2
  55. package/dist/media.d.ts +7 -2
  56. package/dist/media.js +2 -1
  57. package/dist/orders.cjs +71 -23
  58. package/dist/orders.cjs.map +1 -1
  59. package/dist/orders.d.cts +7 -1
  60. package/dist/orders.d.ts +7 -1
  61. package/dist/orders.js +2 -1
  62. package/dist/payment.d.cts +1 -1
  63. package/dist/payment.d.ts +1 -1
  64. package/dist/price.d.cts +1 -1
  65. package/dist/price.d.ts +1 -1
  66. package/dist/product.cjs +55 -14
  67. package/dist/product.cjs.map +1 -1
  68. package/dist/product.d.cts +4 -1
  69. package/dist/product.d.ts +4 -1
  70. package/dist/product.js +3 -2
  71. package/dist/segment.cjs +6 -0
  72. package/dist/segment.cjs.map +1 -1
  73. package/dist/segment.d.cts +1 -1
  74. package/dist/segment.d.ts +1 -1
  75. package/dist/segment.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/chunk-7W22KLUL.js.map +0 -1
  78. package/dist/chunk-D7HBM2DQ.js.map +0 -1
  79. package/dist/chunk-GWJ2U2CP.js.map +0 -1
  80. package/dist/chunk-OTG2S2L4.js.map +0 -1
  81. package/dist/chunk-P7G4LOOV.js.map +0 -1
  82. package/dist/chunk-V3275BA7.js.map +0 -1
  83. package/dist/chunk-W2KBVWJ2.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { p as StoredAnonymousSession, b as AuthContext, C as ClientContext, P as PaginatedItems, T as TokenProvider, n as ResolvedConfig, E as EmporixConfig, j as LogLevel, o as ServiceName, e as CustomerTokenRefresher } from './context-CpLIDl0P.cjs';
2
- export { A as AnonymousSession, a as AnonymousSessionStore, c as AuthKind, d as CustomerRefreshRegistry, D as DEFAULT_HOST, f as DefaultTokenProvider, H as HttpClient, g as HttpClientOptions, L as LEVEL, h as LevelResolver, i as LogFields, k as Logger, l as LoggerConfig, m as LoggerObjectConfig, R as RequestOptions, S as ServiceCredentials, q as StorefrontCredentials, r as auth, s as createConsoleLogger, t as createNoopLogger, u as iterateAll, v as redact, w as resolveToken, x as validateConfig } from './context-CpLIDl0P.cjs';
1
+ import { q as StoredAnonymousSession, b as AuthContext, C as ClientContext, P as PaginatedItems, T as TokenProvider, o as ResolvedConfig, E as EmporixConfig, k as LogLevel, p as ServiceName, e as CustomerTokenRefresher } from './context-DK8jg6y5.cjs';
2
+ export { A as AnonymousSession, a as AnonymousSessionStore, c as AuthKind, d as CustomerRefreshRegistry, D as DEFAULT_HOST, f as DefaultTokenProvider, H as HttpClient, g as HttpClientOptions, h as HttpResult, L as LEVEL, i as LevelResolver, j as LogFields, l as Logger, m as LoggerConfig, n as LoggerObjectConfig, R as RequestOptions, S as ServiceCredentials, r as StorefrontCredentials, s as auth, t as createConsoleLogger, u as createNoopLogger, v as iterateAll, w as redact, x as resolveToken, y as validateConfig } from './context-DK8jg6y5.cjs';
3
3
  import { CustomerService } from './customer.cjs';
4
4
  export { Address, AddressCreateInput, AddressUpdateInput, ChangeEmailInput, ConfirmEmailChangeInput, Customer, CustomerSession, CustomerSignupInput, CustomerUpdateInput, PasswordChangeInput, PasswordResetConfirmInput, PasswordResetRequestInput, ResendActivationInput } from './customer.cjs';
5
5
  import { ProductService } from './product.cjs';
@@ -21,7 +21,7 @@ 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-DJVbdrEP.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';
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';
@@ -1327,7 +1327,12 @@ interface ListFeesQuery {
1327
1327
  sort?: string;
1328
1328
  /** Emporix `q`-syntax filter, e.g. `"siteCode:main"`. */
1329
1329
  q?: string;
1330
- [key: string]: string | number | undefined;
1330
+ /**
1331
+ * Ask for `X-Total-Count`. An SDK-side flag, not an Emporix query parameter:
1332
+ * it becomes a request header.
1333
+ */
1334
+ totalCount?: boolean;
1335
+ [key: string]: string | number | boolean | undefined;
1331
1336
  }
1332
1337
  /** Options for {@link FeeService.setItemFees} / {@link FeeService.setProductFees}. */
1333
1338
  interface SetItemFeesOptions {
@@ -2257,6 +2262,8 @@ interface ListSchemasQuery {
2257
2262
  type?: SchemaTypeName;
2258
2263
  pageNumber?: number;
2259
2264
  pageSize?: number;
2265
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
2266
+ totalCount?: boolean;
2260
2267
  }
2261
2268
  /**
2262
2269
  * Pagination options for {@link SchemaService.listInstances}. The index
@@ -2265,7 +2272,20 @@ interface ListSchemasQuery {
2265
2272
  interface ListInstancesQuery {
2266
2273
  pageNumber?: number;
2267
2274
  pageSize?: number;
2268
- [key: string]: string | number | undefined;
2275
+ /**
2276
+ * Opaque cursor from a previous page's `nextCursor`. Sending it switches the
2277
+ * server to cursor pagination: `pageNumber` is ignored and no total is
2278
+ * returned. Cannot be combined with {@link prev} — the server answers 400.
2279
+ */
2280
+ next?: string;
2281
+ /** Opaque cursor from a previous page's `prevCursor`. See {@link next}. */
2282
+ prev?: string;
2283
+ /**
2284
+ * Ask for `X-Total-Count`. An SDK-side flag, not an Emporix query parameter:
2285
+ * it becomes a request header. Ignored by the server in cursor mode.
2286
+ */
2287
+ totalCount?: boolean;
2288
+ [key: string]: string | number | boolean | undefined;
2269
2289
  }
2270
2290
  /** Options for {@link SchemaService.listCustomEntities}. */
2271
2291
  interface ListCustomEntitiesOptions {
@@ -2274,6 +2294,19 @@ interface ListCustomEntitiesOptions {
2274
2294
  }
2275
2295
  /** Structured search filter body for {@link SchemaService.searchInstances}. */
2276
2296
  type InstanceSearchBody = Record<string, unknown>;
2297
+ /** Pagination, sorting and cursor options for {@link SchemaService.searchInstances}. */
2298
+ interface SearchInstancesQuery {
2299
+ pageNumber?: number;
2300
+ pageSize?: number;
2301
+ /** e.g. `"_id:ASC"`. The server appends `_id:ASC` as a tie-breaker if absent. */
2302
+ sort?: string;
2303
+ /** See {@link ListInstancesQuery.next}. */
2304
+ next?: string;
2305
+ /** See {@link ListInstancesQuery.prev}. */
2306
+ prev?: string;
2307
+ /** Ask for `X-Total-Count`. Ignored by the server in cursor mode. */
2308
+ totalCount?: boolean;
2309
+ }
2277
2310
  /** A reference entity (a schema attached to an uploaded JSON file). */
2278
2311
  type SchemaReference = ReferenceResponse;
2279
2312
  /** Metadata part for creating a reference. */
@@ -2301,6 +2334,8 @@ interface ListSchemaReferencesQuery {
2301
2334
  fields?: string;
2302
2335
  /** Restrict to references attached to this entity type (e.g. `PRODUCT`). */
2303
2336
  type?: string;
2337
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
2338
+ totalCount?: boolean;
2304
2339
  }
2305
2340
 
2306
2341
  /**
@@ -2364,6 +2399,16 @@ declare class SchemaService {
2364
2399
  * `type` is the custom-entity type and is always the first argument.
2365
2400
  */
2366
2401
  listInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): Promise<PaginatedItems<CustomInstance<T>>>;
2402
+ /**
2403
+ * Async-iterates every instance of a type.
2404
+ *
2405
+ * Not built on `iterateAll`: that helper drives pagination by page number, and
2406
+ * the server ignores `pageNumber` the moment a cursor is in play. This follows
2407
+ * `nextCursor` while the server offers one and falls back to `pageNumber + 1`
2408
+ * when it does not — so it is correct whether or not the tenant's deployment
2409
+ * emits cursor headers on a request that carries no cursor.
2410
+ */
2411
+ listAllInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): AsyncIterable<CustomInstance<T>>;
2367
2412
  /** Retrieve one instance by id. */
2368
2413
  getInstance<T = Record<string, unknown>>(type: string, id: string, auth?: AuthContext): Promise<CustomInstance<T>>;
2369
2414
  /** Create an instance of a custom entity. */
@@ -2421,8 +2466,12 @@ declare class SchemaService {
2421
2466
  /**
2422
2467
  * Structured search over a custom entity's instances
2423
2468
  * (`POST /instances/search`), wrapped in {@link PaginatedItems}.
2469
+ *
2470
+ * The `query` parameter is third and `auth` fourth. This used to forward no
2471
+ * query parameters at all and report a hard-coded `hasNextPage: false`, so a
2472
+ * search could only ever return the server's default first page.
2424
2473
  */
2425
- searchInstances<T = Record<string, unknown>>(type: string, body: InstanceSearchBody, auth?: AuthContext): Promise<PaginatedItems<CustomInstance<T>>>;
2474
+ searchInstances<T = Record<string, unknown>>(type: string, body: InstanceSearchBody, query?: SearchInstancesQuery, auth?: AuthContext): Promise<PaginatedItems<CustomInstance<T>>>;
2426
2475
  /**
2427
2476
  * Reference entities (`/references`) — a schema plus an uploaded JSON file.
2428
2477
  * Create/update are `multipart/form-data` (parts `file` and `body`), like
@@ -7327,11 +7376,15 @@ interface ListQuotesQuery {
7327
7376
  sort?: string;
7328
7377
  pageNumber?: number;
7329
7378
  pageSize?: number;
7379
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
7380
+ totalCount?: boolean;
7330
7381
  }
7331
7382
  /** Pagination for `reasons.list`. */
7332
7383
  interface ListQuoteReasonsQuery {
7333
7384
  pageNumber?: number;
7334
7385
  pageSize?: number;
7386
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
7387
+ totalCount?: boolean;
7335
7388
  }
7336
7389
 
7337
7390
  /**
@@ -8099,6 +8152,8 @@ interface ListReindexJobsOptions {
8099
8152
  pageSize?: number;
8100
8153
  /** Raw Emporix `q` filter string. */
8101
8154
  q?: string;
8155
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
8156
+ totalCount?: boolean;
8102
8157
  }
8103
8158
  /**
8104
8159
  * Emporix Indexing Service (`/indexing/{tenant}/…`): search-index provider
@@ -10934,4 +10989,4 @@ declare function createEmporixClient<S extends Record<string, ServiceClass<unkno
10934
10989
  */
10935
10990
  declare function productIdFromYrn(yrn: string | undefined): string;
10936
10991
 
10937
- export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerInput, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, type Attachment, type AttachmentOptions, 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 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 CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime$1 as DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$2 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 ImportErrorRecord, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStream, 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, 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, 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, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, 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, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RecalculationJob, type RecalculationJobCreated, type RecalculationJobInput, 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 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 SearchImportedRecordsOptions, type SearchQuery, type SearchStreamRecordsOptions, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, 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 SiteCreated, 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, 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, createCookieBackedStorage, createCore, createEmporixClient, createServerStorage, errorFromResponse, parseAnonymousSession, pickFee, productIdFromYrn, resolveZone, serverAuth };
10992
+ export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerInput, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, type Attachment, type AttachmentOptions, 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 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 CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime$1 as DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$2 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 ImportErrorRecord, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStream, 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, 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, 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, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, 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, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RecalculationJob, type RecalculationJobCreated, type RecalculationJobInput, 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 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 SearchImportedRecordsOptions, type SearchInstancesQuery, type SearchQuery, type SearchStreamRecordsOptions, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, 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 SiteCreated, 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, 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, createCookieBackedStorage, createCore, createEmporixClient, createServerStorage, errorFromResponse, parseAnonymousSession, pickFee, productIdFromYrn, resolveZone, serverAuth };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { p as StoredAnonymousSession, b as AuthContext, C as ClientContext, P as PaginatedItems, T as TokenProvider, n as ResolvedConfig, E as EmporixConfig, j as LogLevel, o as ServiceName, e as CustomerTokenRefresher } from './context-CpLIDl0P.js';
2
- export { A as AnonymousSession, a as AnonymousSessionStore, c as AuthKind, d as CustomerRefreshRegistry, D as DEFAULT_HOST, f as DefaultTokenProvider, H as HttpClient, g as HttpClientOptions, L as LEVEL, h as LevelResolver, i as LogFields, k as Logger, l as LoggerConfig, m as LoggerObjectConfig, R as RequestOptions, S as ServiceCredentials, q as StorefrontCredentials, r as auth, s as createConsoleLogger, t as createNoopLogger, u as iterateAll, v as redact, w as resolveToken, x as validateConfig } from './context-CpLIDl0P.js';
1
+ import { q as StoredAnonymousSession, b as AuthContext, C as ClientContext, P as PaginatedItems, T as TokenProvider, o as ResolvedConfig, E as EmporixConfig, k as LogLevel, p as ServiceName, e as CustomerTokenRefresher } from './context-DK8jg6y5.js';
2
+ export { A as AnonymousSession, a as AnonymousSessionStore, c as AuthKind, d as CustomerRefreshRegistry, D as DEFAULT_HOST, f as DefaultTokenProvider, H as HttpClient, g as HttpClientOptions, h as HttpResult, L as LEVEL, i as LevelResolver, j as LogFields, l as Logger, m as LoggerConfig, n as LoggerObjectConfig, R as RequestOptions, S as ServiceCredentials, r as StorefrontCredentials, s as auth, t as createConsoleLogger, u as createNoopLogger, v as iterateAll, w as redact, x as resolveToken, y as validateConfig } from './context-DK8jg6y5.js';
3
3
  import { CustomerService } from './customer.js';
4
4
  export { Address, AddressCreateInput, AddressUpdateInput, ChangeEmailInput, ConfirmEmailChangeInput, Customer, CustomerSession, CustomerSignupInput, CustomerUpdateInput, PasswordChangeInput, PasswordResetConfirmInput, PasswordResetRequestInput, ResendActivationInput } from './customer.js';
5
5
  import { ProductService } from './product.js';
@@ -21,7 +21,7 @@ export { Segment, SegmentAssignmentBulkResult, SegmentBulkItem, SegmentBulkResul
21
21
  import { CompaniesService } from './companies.js';
22
22
  import { ContactsService } from './contacts.js';
23
23
  import { LocationsService } from './locations.js';
24
- import { m as UserResponse, U as UserCreateRequest, l as UserIdResponse, k as UserExtendedResponse, o as UserUpdateRequest, j as GroupsQueryDocument, n as UserScopesResponse, a as AccessControlQueryDocument, G as GroupCreateRequest, h as GroupIdResponse, i as GroupUpdateRequest, c as AssignmentCreateRequest, d as AssignmentIdResponse, b as AccessControlUpsertRequest, A as AccessControlIdResponse, e as CustomScopeQueryDocument, f as CustomScopeUpsertRequest, C as CustomScopeIdResponse, g as CustomerGroupsService } from './customer-groups-DhpCTCTg.js';
24
+ import { m as UserResponse, U as UserCreateRequest, l as UserIdResponse, k as UserExtendedResponse, o as UserUpdateRequest, j as GroupsQueryDocument, n as UserScopesResponse, a as AccessControlQueryDocument, G as GroupCreateRequest, h as GroupIdResponse, i as GroupUpdateRequest, c as AssignmentCreateRequest, d as AssignmentIdResponse, b as AccessControlUpsertRequest, A as AccessControlIdResponse, e as CustomScopeQueryDocument, f as CustomScopeUpsertRequest, C as CustomScopeIdResponse, g as CustomerGroupsService } from './customer-groups-WSt4aT62.js';
25
25
  import { OrdersService, SalesOrdersService } from './orders.js';
26
26
  export { GetOrderOptions, ListLegalEntityOrdersOptions, ListMyOrdersOptions, ListSalesOrdersOptions, Order, OrderEntry, OrderStatus, OrderTransitionOptions, SalesOrder, SalesOrderCalculationInput, SalesOrderCreateInput, SalesOrderCreated, SalesOrderEntriesInput, SalesOrderHistoricalTransitions, SalesOrderPatch, SalesOrderReplaceInput, SalesOrderSearchInput, SalesOrderSplitInput, SalesOrderSplitResult, Transition, UpdateSalesOrderOptions } from './orders.js';
27
27
  import { AvailabilityService } from './availability.js';
@@ -1327,7 +1327,12 @@ interface ListFeesQuery {
1327
1327
  sort?: string;
1328
1328
  /** Emporix `q`-syntax filter, e.g. `"siteCode:main"`. */
1329
1329
  q?: string;
1330
- [key: string]: string | number | undefined;
1330
+ /**
1331
+ * Ask for `X-Total-Count`. An SDK-side flag, not an Emporix query parameter:
1332
+ * it becomes a request header.
1333
+ */
1334
+ totalCount?: boolean;
1335
+ [key: string]: string | number | boolean | undefined;
1331
1336
  }
1332
1337
  /** Options for {@link FeeService.setItemFees} / {@link FeeService.setProductFees}. */
1333
1338
  interface SetItemFeesOptions {
@@ -2257,6 +2262,8 @@ interface ListSchemasQuery {
2257
2262
  type?: SchemaTypeName;
2258
2263
  pageNumber?: number;
2259
2264
  pageSize?: number;
2265
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
2266
+ totalCount?: boolean;
2260
2267
  }
2261
2268
  /**
2262
2269
  * Pagination options for {@link SchemaService.listInstances}. The index
@@ -2265,7 +2272,20 @@ interface ListSchemasQuery {
2265
2272
  interface ListInstancesQuery {
2266
2273
  pageNumber?: number;
2267
2274
  pageSize?: number;
2268
- [key: string]: string | number | undefined;
2275
+ /**
2276
+ * Opaque cursor from a previous page's `nextCursor`. Sending it switches the
2277
+ * server to cursor pagination: `pageNumber` is ignored and no total is
2278
+ * returned. Cannot be combined with {@link prev} — the server answers 400.
2279
+ */
2280
+ next?: string;
2281
+ /** Opaque cursor from a previous page's `prevCursor`. See {@link next}. */
2282
+ prev?: string;
2283
+ /**
2284
+ * Ask for `X-Total-Count`. An SDK-side flag, not an Emporix query parameter:
2285
+ * it becomes a request header. Ignored by the server in cursor mode.
2286
+ */
2287
+ totalCount?: boolean;
2288
+ [key: string]: string | number | boolean | undefined;
2269
2289
  }
2270
2290
  /** Options for {@link SchemaService.listCustomEntities}. */
2271
2291
  interface ListCustomEntitiesOptions {
@@ -2274,6 +2294,19 @@ interface ListCustomEntitiesOptions {
2274
2294
  }
2275
2295
  /** Structured search filter body for {@link SchemaService.searchInstances}. */
2276
2296
  type InstanceSearchBody = Record<string, unknown>;
2297
+ /** Pagination, sorting and cursor options for {@link SchemaService.searchInstances}. */
2298
+ interface SearchInstancesQuery {
2299
+ pageNumber?: number;
2300
+ pageSize?: number;
2301
+ /** e.g. `"_id:ASC"`. The server appends `_id:ASC` as a tie-breaker if absent. */
2302
+ sort?: string;
2303
+ /** See {@link ListInstancesQuery.next}. */
2304
+ next?: string;
2305
+ /** See {@link ListInstancesQuery.prev}. */
2306
+ prev?: string;
2307
+ /** Ask for `X-Total-Count`. Ignored by the server in cursor mode. */
2308
+ totalCount?: boolean;
2309
+ }
2277
2310
  /** A reference entity (a schema attached to an uploaded JSON file). */
2278
2311
  type SchemaReference = ReferenceResponse;
2279
2312
  /** Metadata part for creating a reference. */
@@ -2301,6 +2334,8 @@ interface ListSchemaReferencesQuery {
2301
2334
  fields?: string;
2302
2335
  /** Restrict to references attached to this entity type (e.g. `PRODUCT`). */
2303
2336
  type?: string;
2337
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
2338
+ totalCount?: boolean;
2304
2339
  }
2305
2340
 
2306
2341
  /**
@@ -2364,6 +2399,16 @@ declare class SchemaService {
2364
2399
  * `type` is the custom-entity type and is always the first argument.
2365
2400
  */
2366
2401
  listInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): Promise<PaginatedItems<CustomInstance<T>>>;
2402
+ /**
2403
+ * Async-iterates every instance of a type.
2404
+ *
2405
+ * Not built on `iterateAll`: that helper drives pagination by page number, and
2406
+ * the server ignores `pageNumber` the moment a cursor is in play. This follows
2407
+ * `nextCursor` while the server offers one and falls back to `pageNumber + 1`
2408
+ * when it does not — so it is correct whether or not the tenant's deployment
2409
+ * emits cursor headers on a request that carries no cursor.
2410
+ */
2411
+ listAllInstances<T = Record<string, unknown>>(type: string, query?: ListInstancesQuery, auth?: AuthContext): AsyncIterable<CustomInstance<T>>;
2367
2412
  /** Retrieve one instance by id. */
2368
2413
  getInstance<T = Record<string, unknown>>(type: string, id: string, auth?: AuthContext): Promise<CustomInstance<T>>;
2369
2414
  /** Create an instance of a custom entity. */
@@ -2421,8 +2466,12 @@ declare class SchemaService {
2421
2466
  /**
2422
2467
  * Structured search over a custom entity's instances
2423
2468
  * (`POST /instances/search`), wrapped in {@link PaginatedItems}.
2469
+ *
2470
+ * The `query` parameter is third and `auth` fourth. This used to forward no
2471
+ * query parameters at all and report a hard-coded `hasNextPage: false`, so a
2472
+ * search could only ever return the server's default first page.
2424
2473
  */
2425
- searchInstances<T = Record<string, unknown>>(type: string, body: InstanceSearchBody, auth?: AuthContext): Promise<PaginatedItems<CustomInstance<T>>>;
2474
+ searchInstances<T = Record<string, unknown>>(type: string, body: InstanceSearchBody, query?: SearchInstancesQuery, auth?: AuthContext): Promise<PaginatedItems<CustomInstance<T>>>;
2426
2475
  /**
2427
2476
  * Reference entities (`/references`) — a schema plus an uploaded JSON file.
2428
2477
  * Create/update are `multipart/form-data` (parts `file` and `body`), like
@@ -7327,11 +7376,15 @@ interface ListQuotesQuery {
7327
7376
  sort?: string;
7328
7377
  pageNumber?: number;
7329
7378
  pageSize?: number;
7379
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
7380
+ totalCount?: boolean;
7330
7381
  }
7331
7382
  /** Pagination for `reasons.list`. */
7332
7383
  interface ListQuoteReasonsQuery {
7333
7384
  pageNumber?: number;
7334
7385
  pageSize?: number;
7386
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
7387
+ totalCount?: boolean;
7335
7388
  }
7336
7389
 
7337
7390
  /**
@@ -8099,6 +8152,8 @@ interface ListReindexJobsOptions {
8099
8152
  pageSize?: number;
8100
8153
  /** Raw Emporix `q` filter string. */
8101
8154
  q?: string;
8155
+ /** Ask for `X-Total-Count` — becomes a request header, not a query parameter. */
8156
+ totalCount?: boolean;
8102
8157
  }
8103
8158
  /**
8104
8159
  * Emporix Indexing Service (`/indexing/{tenant}/…`): search-index provider
@@ -10934,4 +10989,4 @@ declare function createEmporixClient<S extends Record<string, ServiceClass<unkno
10934
10989
  */
10935
10990
  declare function productIdFromYrn(yrn: string | undefined): string;
10936
10991
 
10937
- export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerInput, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, type Attachment, type AttachmentOptions, 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 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 CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime$1 as DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$2 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 ImportErrorRecord, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStream, 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, 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, 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, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, 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, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RecalculationJob, type RecalculationJobCreated, type RecalculationJobInput, 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 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 SearchImportedRecordsOptions, type SearchQuery, type SearchStreamRecordsOptions, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, 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 SiteCreated, 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, 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, createCookieBackedStorage, createCore, createEmporixClient, createServerStorage, errorFromResponse, parseAnonymousSession, pickFee, productIdFromYrn, resolveZone, serverAuth };
10992
+ export { type AddedPoints, type AdminCustomer, type AdminCustomerAddress, type AdminCustomerAddressInput, type AdminCustomerAddressList, type AdminCustomerAddressUpdate, type AdminCustomerCreated, type AdminCustomerInput, type AdminCustomerList, type AdminCustomerPatch, type AdminCustomerSearchQuery, type AdminCustomerUpdate, type Agent, type AgentAnalytics, type AgentExecutions, type AgentFromTemplate, type AgentInput, type AgentPatchOp, type AgentRequestLog, type AgentSearchQuery, type AgentSessionLog, type AgentTemplate, type AgenticPatchOp, type AgentsExport, type AgentsExportRequest, type AgentsImport, type AgentsImportRequest, AiService, type AnalyticsQuery, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, type Attachment, type AttachmentOptions, 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 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 CustomerSummaryBatch, CustomerTokenRefresher, type DeleteAgentOptions, type DeleteConfigOptions, type DeliveryCreated, type DeliveryCycleInput, type DeliverySlot, type DeliverySlotList, type DeliveryTime$1 as DeliveryTime, type DeliveryTimeInput, type DeliveryTimeList, type DeliveryTimeUpdate, type DeliveryWindow$2 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 ImportErrorRecord, type ImportPage, type ImportPageOptions, type ImportRecordOutcome, type ImportRun, type ImportRunDetail, type ImportRunEvent, type ImportRunInput, type ImportRunMode, type ImportRunStatus, type ImportRunStream, type ImportSchedule, ImportService, type ImportStream, 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, 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, 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, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PersistedAnonymousSession, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, 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, type QuoteResult, QuoteService, type QuoteSlotInput, type QuoteUpdate, RagIndexerService, type RagType, type RecalculationJob, type RecalculationJobCreated, type RecalculationJobInput, 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 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 SearchImportedRecordsOptions, type SearchInstancesQuery, type SearchQuery, type SearchStreamRecordsOptions, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, type ServerCookieJar, type ServiceClass, ServiceName, type SessionAttributeInput, type SessionContext, 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 SiteCreated, 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, 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, createCookieBackedStorage, createCore, createEmporixClient, createServerStorage, errorFromResponse, parseAnonymousSession, pickFee, productIdFromYrn, resolveZone, serverAuth };