@viu/emporix-sdk 2.8.0 → 2.9.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 (68) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/{chunk-5JHTZBOC.js → chunk-B4UOYJKW.js} +12 -2
  3. package/dist/chunk-B4UOYJKW.js.map +1 -0
  4. package/dist/{chunk-SCI7D74B.js → chunk-BK25FDTH.js} +17 -5
  5. package/dist/chunk-BK25FDTH.js.map +1 -0
  6. package/dist/{chunk-B56JZNI7.js → chunk-HAEVK6IS.js} +6 -3
  7. package/dist/chunk-HAEVK6IS.js.map +1 -0
  8. package/dist/{chunk-6UNFMCHZ.js → chunk-KVBCTXVH.js} +2 -2
  9. package/dist/chunk-KVBCTXVH.js.map +1 -0
  10. package/dist/{chunk-NM7VDXBR.js → chunk-LGLFJL3S.js} +6 -3
  11. package/dist/chunk-LGLFJL3S.js.map +1 -0
  12. package/dist/chunk-LGOC5XOI.js +40 -0
  13. package/dist/chunk-LGOC5XOI.js.map +1 -0
  14. package/dist/{chunk-RXVVFNYN.js → chunk-MM6JF3Z7.js} +6 -3
  15. package/dist/chunk-MM6JF3Z7.js.map +1 -0
  16. package/dist/companies.cjs +4 -1
  17. package/dist/companies.cjs.map +1 -1
  18. package/dist/companies.d.cts +7 -4
  19. package/dist/companies.d.ts +7 -4
  20. package/dist/companies.js +1 -1
  21. package/dist/contacts.cjs +4 -1
  22. package/dist/contacts.cjs.map +1 -1
  23. package/dist/contacts.d.cts +6 -4
  24. package/dist/contacts.d.ts +6 -4
  25. package/dist/contacts.js +1 -1
  26. package/dist/customer-groups.cjs +17 -0
  27. package/dist/customer-groups.cjs.map +1 -1
  28. package/dist/customer-groups.d.cts +94 -21
  29. package/dist/customer-groups.d.ts +94 -21
  30. package/dist/customer-groups.js +1 -1
  31. package/dist/index.cjs +63 -7
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +13 -5
  34. package/dist/index.d.ts +13 -5
  35. package/dist/index.js +23 -16
  36. package/dist/index.js.map +1 -1
  37. package/dist/locations.cjs +4 -1
  38. package/dist/locations.cjs.map +1 -1
  39. package/dist/locations.d.cts +7 -4
  40. package/dist/locations.d.ts +7 -4
  41. package/dist/locations.js +1 -1
  42. package/dist/orders.cjs.map +1 -1
  43. package/dist/orders.d.cts +1726 -80
  44. package/dist/orders.d.ts +1726 -80
  45. package/dist/orders.js +1 -1
  46. package/dist/price.cjs +15 -3
  47. package/dist/price.cjs.map +1 -1
  48. package/dist/price.d.cts +23 -4
  49. package/dist/price.d.ts +23 -4
  50. package/dist/price.js +1 -1
  51. package/dist/product.cjs +10 -0
  52. package/dist/product.cjs.map +1 -1
  53. package/dist/product.d.cts +10 -0
  54. package/dist/product.d.ts +10 -0
  55. package/dist/product.js +1 -1
  56. package/dist/types.gen-C_wOXYZB.d.cts +455 -0
  57. package/dist/types.gen-C_wOXYZB.d.ts +455 -0
  58. package/package.json +1 -1
  59. package/dist/chunk-5JHTZBOC.js.map +0 -1
  60. package/dist/chunk-6UNFMCHZ.js.map +0 -1
  61. package/dist/chunk-B56JZNI7.js.map +0 -1
  62. package/dist/chunk-NM7VDXBR.js.map +0 -1
  63. package/dist/chunk-RXVVFNYN.js.map +0 -1
  64. package/dist/chunk-SCI7D74B.js.map +0 -1
  65. package/dist/chunk-SKX7KCMH.js +0 -23
  66. package/dist/chunk-SKX7KCMH.js.map +0 -1
  67. package/dist/types.gen-D1QuqPLs.d.cts +0 -166
  68. package/dist/types.gen-D1QuqPLs.d.ts +0 -166
package/dist/index.d.cts CHANGED
@@ -13,7 +13,7 @@ export { CheckoutInput, CheckoutOptions, CheckoutResult, QuoteCheckoutInput } fr
13
13
  import { PaymentGatewayService } from './payment.cjs';
14
14
  export { AuthorizePaymentInput, AuthorizePaymentResult, PaymentMode } from './payment.cjs';
15
15
  import { PriceService } from './price.cjs';
16
- export { MatchByContextChunkedOptions, PriceMatch, PriceMatchByContextInput, PriceMatchInput } from './price.cjs';
16
+ export { MatchByContextChunkedOptions, PriceMatch, PriceMatchByContextInput, PriceMatchInput, PriceMatchItemRef } from './price.cjs';
17
17
  import { MediaService } from './media.cjs';
18
18
  export { Asset, AssetCreateBlobInput, AssetCreateLinkInput, AssetRefId, AssetUpdateBlobInput, AssetUpdateInput, AssetUpdateLinkInput, DownloadResult, ListAssetsQuery } from './media.cjs';
19
19
  import { SegmentService } from './segment.cjs';
@@ -22,12 +22,12 @@ import { CompaniesService } from './companies.cjs';
22
22
  import { ContactsService } from './contacts.cjs';
23
23
  import { LocationsService } from './locations.cjs';
24
24
  import { CustomerGroupsService } from './customer-groups.cjs';
25
- export { IamGroup, IamGroupB2B } from './customer-groups.cjs';
25
+ export { IamGroup, IamGroupMemberAssignment } from './customer-groups.cjs';
26
26
  import { OrdersService, SalesOrdersService } from './orders.cjs';
27
- export { GetOrderOptions, ListMyOrdersOptions, Order, OrderAddress, OrderCustomer, OrderDelivery, OrderItem, OrderMetadata, OrderMoney, OrderPayment, OrderStatus, OrderTaxLine, OrderTransition, OrderTransitionOptions, SalesOrderPatch, UpdateSalesOrderOptions } from './orders.cjs';
27
+ export { GetOrderOptions, ListMyOrdersOptions, Order, OrderEntry, OrderStatus, OrderTransitionOptions, SalesOrder, SalesOrderPatch, Transition, UpdateSalesOrderOptions } from './orders.cjs';
28
28
  import { AvailabilityService } from './availability.cjs';
29
29
  export { Availability, AvailabilityOptions } from './availability.cjs';
30
- export { A as AccountLimit, C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentType, c as ContactAssignmentUpdate, d as ContactDetails, e as CustomerGroupRef, L as LegalEntity, f as LegalEntityCreate, g as LegalEntityType, h as LegalEntityUpdate, i as LegalInfo, j as Location, k as LocationCreate, l as LocationType, m as LocationUpdate } from './types.gen-D1QuqPLs.cjs';
30
+ export { A as AccountLimit, C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate, c as ContactDetails, d as CustomerGroup, L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate, g as LegalInfo, h as Location, i as LocationCreate, j as LocationUpdate } from './types.gen-C_wOXYZB.cjs';
31
31
 
32
32
  /** Base class for every error thrown by the SDK. */
33
33
  declare class EmporixError extends Error {
@@ -7126,4 +7126,12 @@ declare class EmporixClient {
7126
7126
  setCustomerTokenRefresher(refresher: CustomerTokenRefresher | null): void;
7127
7127
  }
7128
7128
 
7129
- 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 AgentInput, type AgentPatchOp, type AgentSearchQuery, AiService, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatRequest, type ChatResponse, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, 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, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNotFoundError, EmporixServerError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type JobIdResponse, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListSchemasQuery, LocationsService, LogLevel, MediaService, type MetadataFilter, type MinimumFee, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, type PointsSummary, PriceService, ProductService, type QuoteInput, type QuoteResult, type QuoteSlotInput, 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 ReindexInput, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, SalesOrdersService, type Schema, type SchemaAttribute, type SchemaDraft, SchemaService, type SchemaTypeName, type SchemaUpdate, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, ServiceName, type SessionContext, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteList, SiteService, 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, TokenProvider, 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, errorFromResponse };
7129
+ /**
7130
+ * Extracts the product id from a product `itemYrn`
7131
+ * (`urn:yaas:hybris:product:product:<tenant>;<productId>`). Cart and order line
7132
+ * items carry only the YRN, not a bare product id. Returns "" when the YRN is
7133
+ * missing or has no `;` segment.
7134
+ */
7135
+ declare function productIdFromYrn(yrn: string | undefined): string;
7136
+
7137
+ 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 AgentInput, type AgentPatchOp, type AgentSearchQuery, AiService, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatRequest, type ChatResponse, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, 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, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNotFoundError, EmporixServerError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type JobIdResponse, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListSchemasQuery, LocationsService, LogLevel, MediaService, type MetadataFilter, type MinimumFee, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, type PointsSummary, PriceService, ProductService, type QuoteInput, type QuoteResult, type QuoteSlotInput, 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 ReindexInput, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, SalesOrdersService, type Schema, type SchemaAttribute, type SchemaDraft, SchemaService, type SchemaTypeName, type SchemaUpdate, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, ServiceName, type SessionContext, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteList, SiteService, 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, TokenProvider, 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, errorFromResponse, productIdFromYrn };
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { CheckoutInput, CheckoutOptions, CheckoutResult, QuoteCheckoutInput } fr
13
13
  import { PaymentGatewayService } from './payment.js';
14
14
  export { AuthorizePaymentInput, AuthorizePaymentResult, PaymentMode } from './payment.js';
15
15
  import { PriceService } from './price.js';
16
- export { MatchByContextChunkedOptions, PriceMatch, PriceMatchByContextInput, PriceMatchInput } from './price.js';
16
+ export { MatchByContextChunkedOptions, PriceMatch, PriceMatchByContextInput, PriceMatchInput, PriceMatchItemRef } from './price.js';
17
17
  import { MediaService } from './media.js';
18
18
  export { Asset, AssetCreateBlobInput, AssetCreateLinkInput, AssetRefId, AssetUpdateBlobInput, AssetUpdateInput, AssetUpdateLinkInput, DownloadResult, ListAssetsQuery } from './media.js';
19
19
  import { SegmentService } from './segment.js';
@@ -22,12 +22,12 @@ import { CompaniesService } from './companies.js';
22
22
  import { ContactsService } from './contacts.js';
23
23
  import { LocationsService } from './locations.js';
24
24
  import { CustomerGroupsService } from './customer-groups.js';
25
- export { IamGroup, IamGroupB2B } from './customer-groups.js';
25
+ export { IamGroup, IamGroupMemberAssignment } from './customer-groups.js';
26
26
  import { OrdersService, SalesOrdersService } from './orders.js';
27
- export { GetOrderOptions, ListMyOrdersOptions, Order, OrderAddress, OrderCustomer, OrderDelivery, OrderItem, OrderMetadata, OrderMoney, OrderPayment, OrderStatus, OrderTaxLine, OrderTransition, OrderTransitionOptions, SalesOrderPatch, UpdateSalesOrderOptions } from './orders.js';
27
+ export { GetOrderOptions, ListMyOrdersOptions, Order, OrderEntry, OrderStatus, OrderTransitionOptions, SalesOrder, SalesOrderPatch, Transition, UpdateSalesOrderOptions } from './orders.js';
28
28
  import { AvailabilityService } from './availability.js';
29
29
  export { Availability, AvailabilityOptions } from './availability.js';
30
- export { A as AccountLimit, C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentType, c as ContactAssignmentUpdate, d as ContactDetails, e as CustomerGroupRef, L as LegalEntity, f as LegalEntityCreate, g as LegalEntityType, h as LegalEntityUpdate, i as LegalInfo, j as Location, k as LocationCreate, l as LocationType, m as LocationUpdate } from './types.gen-D1QuqPLs.js';
30
+ export { A as AccountLimit, C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate, c as ContactDetails, d as CustomerGroup, L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate, g as LegalInfo, h as Location, i as LocationCreate, j as LocationUpdate } from './types.gen-C_wOXYZB.js';
31
31
 
32
32
  /** Base class for every error thrown by the SDK. */
33
33
  declare class EmporixError extends Error {
@@ -7126,4 +7126,12 @@ declare class EmporixClient {
7126
7126
  setCustomerTokenRefresher(refresher: CustomerTokenRefresher | null): void;
7127
7127
  }
7128
7128
 
7129
- 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 AgentInput, type AgentPatchOp, type AgentSearchQuery, AiService, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatRequest, type ChatResponse, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, 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, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNotFoundError, EmporixServerError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type JobIdResponse, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListSchemasQuery, LocationsService, LogLevel, MediaService, type MetadataFilter, type MinimumFee, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, type PointsSummary, PriceService, ProductService, type QuoteInput, type QuoteResult, type QuoteSlotInput, 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 ReindexInput, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, SalesOrdersService, type Schema, type SchemaAttribute, type SchemaDraft, SchemaService, type SchemaTypeName, type SchemaUpdate, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, ServiceName, type SessionContext, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteList, SiteService, 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, TokenProvider, 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, errorFromResponse };
7129
+ /**
7130
+ * Extracts the product id from a product `itemYrn`
7131
+ * (`urn:yaas:hybris:product:product:<tenant>;<productId>`). Cart and order line
7132
+ * items carry only the YRN, not a bare product id. Returns "" when the YRN is
7133
+ * missing or has no `;` segment.
7134
+ */
7135
+ declare function productIdFromYrn(yrn: string | undefined): string;
7136
+
7137
+ 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 AgentInput, type AgentPatchOp, type AgentSearchQuery, AiService, type Approval, type ApprovalCreated, type ApprovalInput, type ApprovalList, type ApprovalPatch, type ApprovalPermittedInput, type ApprovalPermittedResult, ApprovalService, type ApprovalUsersQuery, type ApprovalUsersResult, type Assignee, AuthContext, AvailabilityService, type BatchNextIdEntry, type Brand, type BrandInput, type BrandList, BrandService, type BrandUpdate, CartService, type Catalog, type CatalogCreated, type CatalogInput, type CatalogList, type CatalogPatch, CatalogService, type CatalogUpdate, CategoryService, type CgRelation, type CgRelationList, type ChatRequest, type ChatResponse, CheckoutService, ClientConfigService, type ClientConfiguration, ClientContext, CompaniesService, type CompletionMessage, type CompletionRequest, type CompletionResponse, type Configuration$1 as Configuration, type ConfigurationDraft, ContactsService, type ConversionFactorInput, type ConversionFactorResult, type ConvertUnitInput, type ConvertUnitResult, type Country, type CountryList, CountryService, type CountryUpdate, type Coupon$1 as Coupon, type CouponCreated, type CouponInput, type CouponList, CouponService, type CouponUpdate, 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, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNotFoundError, EmporixServerError, EmporixValidationError, type ExchangeRate, type ExchangeRateCreated, type ExchangeRateInput, type ExchangeRateList, type ExchangeRateUpdate, type Fee$1 as Fee, type FeeDraft, FeeService, type FindSiteInput, type IndexConfig, type IndexConfigCreated, type IndexPublicConfig, IndexingService, type InstanceSearchBody, type ItemFee, type ItemFeeDraft, type ItemFeeSearch, type JobIdResponse, type Label, type LabelInput, type LabelList, LabelService, type LabelUpdate, type ListConfigOptions, type ListCustomEntitiesOptions, type ListFeesQuery, type ListInstancesQuery, type ListSchemasQuery, LocationsService, LogLevel, MediaService, type MetadataFilter, type MinimumFee, type NewPointsEntry, type NextIdCommandRequest, type NextIdOptions, type NextIdResponse, type NextIdsBatchRequest, type NextIdsBatchResponse, type OrderCycleList, type OrderEntryEventCreate, type OrderStatusChange, OrdersService, type PackagingProductsChange, type PackingEvent, type PackingEventList, PaginatedItems, PaymentGatewayService, type PickOrder, type PickOrderList, type PickPackAck, PickPackService, type PointsSummary, PriceService, ProductService, type QuoteInput, type QuoteResult, type QuoteSlotInput, 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 ReindexInput, ResolvedConfig, type ResourceCreated, type Return, type ReturnCreated, type ReturnInput, type ReturnList, type ReturnPatch, type ReturnUpdate, ReturnsService, RewardPointsService, SalesOrdersService, type Schema, type SchemaAttribute, type SchemaDraft, SchemaService, type SchemaTypeName, type SchemaUpdate, SegmentService, SepaExportService, type SepaJob, type SepaJobCreated, type SepaJobInput, type SequenceSchema, type SequenceSchemaCreate, SequentialIdService, ServiceName, type SessionContext, type SessionContextPatch, SessionContextService, type SetItemFeesOptions, type ShippingGroup, type ShippingGroupList, type ShippingMethod, type ShippingMethodList, type ShippingPatch, ShippingService, type ShoppingList, type ShoppingListDraft, type ShoppingListItem, ShoppingListService, type Site$1 as Site, type SiteList, SiteService, 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, TokenProvider, 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, errorFromResponse, productIdFromYrn };
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { LocationsService } from './chunk-NM7VDXBR.js';
2
- export { LocationsService } from './chunk-NM7VDXBR.js';
1
+ import { LocationsService } from './chunk-LGLFJL3S.js';
2
+ export { LocationsService } from './chunk-LGLFJL3S.js';
3
3
  import { MediaService } from './chunk-WSXRUYBE.js';
4
4
  export { MediaService } from './chunk-WSXRUYBE.js';
5
- import { OrdersService, SalesOrdersService } from './chunk-6UNFMCHZ.js';
6
- export { OrdersService, SalesOrdersService } from './chunk-6UNFMCHZ.js';
5
+ import { OrdersService, SalesOrdersService } from './chunk-KVBCTXVH.js';
6
+ export { OrdersService, SalesOrdersService } from './chunk-KVBCTXVH.js';
7
7
  import { PaymentGatewayService } from './chunk-HKPZI7Y5.js';
8
8
  export { PaymentGatewayService } from './chunk-HKPZI7Y5.js';
9
- import { PriceService } from './chunk-SCI7D74B.js';
10
- export { PriceService } from './chunk-SCI7D74B.js';
11
- import { ProductService } from './chunk-5JHTZBOC.js';
12
- export { ProductService } from './chunk-5JHTZBOC.js';
9
+ import { PriceService } from './chunk-BK25FDTH.js';
10
+ export { PriceService } from './chunk-BK25FDTH.js';
11
+ import { ProductService } from './chunk-B4UOYJKW.js';
12
+ export { ProductService } from './chunk-B4UOYJKW.js';
13
13
  import { SegmentService } from './chunk-Z6PNI5VT.js';
14
14
  export { SegmentService } from './chunk-Z6PNI5VT.js';
15
15
  import { AvailabilityService } from './chunk-XMEP74BU.js';
@@ -21,12 +21,12 @@ export { CategoryService } from './chunk-AUVJ5V47.js';
21
21
  export { iterateAll } from './chunk-GWJ2U2CP.js';
22
22
  import { CheckoutService } from './chunk-OMYVOOSX.js';
23
23
  export { CheckoutService } from './chunk-OMYVOOSX.js';
24
- import { CompaniesService } from './chunk-RXVVFNYN.js';
25
- export { CompaniesService } from './chunk-RXVVFNYN.js';
26
- import { ContactsService } from './chunk-B56JZNI7.js';
27
- export { ContactsService } from './chunk-B56JZNI7.js';
28
- import { CustomerGroupsService } from './chunk-SKX7KCMH.js';
29
- export { CustomerGroupsService } from './chunk-SKX7KCMH.js';
24
+ import { CompaniesService } from './chunk-MM6JF3Z7.js';
25
+ export { CompaniesService } from './chunk-MM6JF3Z7.js';
26
+ import { ContactsService } from './chunk-HAEVK6IS.js';
27
+ export { ContactsService } from './chunk-HAEVK6IS.js';
28
+ import { CustomerGroupsService } from './chunk-LGOC5XOI.js';
29
+ export { CustomerGroupsService } from './chunk-LGOC5XOI.js';
30
30
  import { CustomerService } from './chunk-TLH6SLAF.js';
31
31
  export { CustomerService } from './chunk-TLH6SLAF.js';
32
32
  import './chunk-BFQ732VZ.js';
@@ -3440,7 +3440,7 @@ var ApprovalService = class {
3440
3440
  };
3441
3441
 
3442
3442
  // package.json
3443
- var version = "2.8.0";
3443
+ var version = "2.9.0";
3444
3444
 
3445
3445
  // src/version.ts
3446
3446
  var SDK_VERSION = version;
@@ -3611,6 +3611,13 @@ var EmporixClient = class {
3611
3611
  }
3612
3612
  };
3613
3613
 
3614
- export { AiService, ApprovalService, BrandService, CatalogService, ClientConfigService, CountryService, CouponService, CurrencyService, CustomerAdminService, CustomerRefreshRegistry, DEFAULT_HOST, DefaultTokenProvider, EmporixClient, FeeService, HttpClient, IndexingService, LEVEL, LabelService, LevelResolver, PickPackService, RagIndexerService, ReturnsService, RewardPointsService, SchemaService, SepaExportService, SequentialIdService, SessionContextService, ShippingService, ShoppingListService, SiteService, TaxService, TenantConfigService, UnitHandlingService, VendorService, WebhookService, auth, createConsoleLogger, createNoopLogger, redact, resolveToken, validateConfig };
3614
+ // src/core/yrn.ts
3615
+ function productIdFromYrn(yrn) {
3616
+ if (!yrn) return "";
3617
+ const semi = yrn.lastIndexOf(";");
3618
+ return semi >= 0 ? yrn.slice(semi + 1) : "";
3619
+ }
3620
+
3621
+ export { AiService, ApprovalService, BrandService, CatalogService, ClientConfigService, CountryService, CouponService, CurrencyService, CustomerAdminService, CustomerRefreshRegistry, DEFAULT_HOST, DefaultTokenProvider, EmporixClient, FeeService, HttpClient, IndexingService, LEVEL, LabelService, LevelResolver, PickPackService, RagIndexerService, ReturnsService, RewardPointsService, SchemaService, SepaExportService, SequentialIdService, SessionContextService, ShippingService, ShoppingListService, SiteService, TaxService, TenantConfigService, UnitHandlingService, VendorService, WebhookService, auth, createConsoleLogger, createNoopLogger, productIdFromYrn, redact, resolveToken, validateConfig };
3615
3622
  //# sourceMappingURL=index.js.map
3616
3623
  //# sourceMappingURL=index.js.map