@01.software/sdk 0.70.1 → 0.72.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/MIGRATION.md +28 -0
  3. package/README.md +253 -11
  4. package/dist/client.cjs +396 -26
  5. package/dist/client.cjs.map +1 -1
  6. package/dist/client.d.cts +7 -6
  7. package/dist/client.d.ts +7 -6
  8. package/dist/client.js +396 -26
  9. package/dist/client.js.map +1 -1
  10. package/dist/{collection-client-BHLStm1K.d.cts → collection-client-B3CnqMDQ.d.cts} +14 -18
  11. package/dist/{collection-client-B1FSJ24_.d.ts → collection-client-uOgS_1bC.d.ts} +14 -18
  12. package/dist/{const-ty8u0TDI.d.ts → const-BJBK7jBl.d.ts} +1 -1
  13. package/dist/{const-BfQfV-rr.d.cts → const-_ZfJjRQG.d.cts} +1 -1
  14. package/dist/embedded-admin/server.cjs +117 -2
  15. package/dist/embedded-admin/server.cjs.map +1 -1
  16. package/dist/embedded-admin/server.d.cts +30 -2
  17. package/dist/embedded-admin/server.d.ts +30 -2
  18. package/dist/embedded-admin/server.js +117 -2
  19. package/dist/embedded-admin/server.js.map +1 -1
  20. package/dist/embedded-admin.cjs +135 -7
  21. package/dist/embedded-admin.cjs.map +1 -1
  22. package/dist/embedded-admin.d.cts +35 -2
  23. package/dist/embedded-admin.d.ts +35 -2
  24. package/dist/embedded-admin.js +135 -7
  25. package/dist/embedded-admin.js.map +1 -1
  26. package/dist/errors.cjs +2 -0
  27. package/dist/errors.cjs.map +1 -1
  28. package/dist/errors.d.cts +3 -3
  29. package/dist/errors.d.ts +3 -3
  30. package/dist/errors.js +2 -0
  31. package/dist/errors.js.map +1 -1
  32. package/dist/{index-DnKgjPGM.d.ts → index-CBaP4q8r.d.ts} +3 -3
  33. package/dist/{index-CX6si6YC.d.cts → index-CI_LFWiG.d.cts} +3 -3
  34. package/dist/index.cjs +396 -26
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +24 -9
  37. package/dist/index.d.ts +24 -9
  38. package/dist/index.js +396 -26
  39. package/dist/index.js.map +1 -1
  40. package/dist/{payload-types-DTAaWKrp.d.cts → payload-types-BRg8Yary.d.cts} +262 -177
  41. package/dist/{payload-types-DTAaWKrp.d.ts → payload-types-BRg8Yary.d.ts} +262 -177
  42. package/dist/query.cjs +20 -0
  43. package/dist/query.cjs.map +1 -1
  44. package/dist/query.d.cts +5 -5
  45. package/dist/query.d.ts +5 -5
  46. package/dist/query.js +20 -0
  47. package/dist/query.js.map +1 -1
  48. package/dist/realtime.d.cts +2 -2
  49. package/dist/realtime.d.ts +2 -2
  50. package/dist/server.cjs +459 -46
  51. package/dist/server.cjs.map +1 -1
  52. package/dist/server.d.cts +10 -8
  53. package/dist/server.d.ts +10 -8
  54. package/dist/server.js +459 -46
  55. package/dist/server.js.map +1 -1
  56. package/dist/storefront-cache.cjs +2 -0
  57. package/dist/storefront-cache.cjs.map +1 -1
  58. package/dist/storefront-cache.js +2 -0
  59. package/dist/storefront-cache.js.map +1 -1
  60. package/dist/{types-DdlhpNVv.d.ts → types-Cmnxxvuv.d.ts} +238 -21
  61. package/dist/{types-Bzgf4mTo.d.cts → types-CnkJQUez.d.cts} +238 -21
  62. package/dist/{types-DX8Z44yQ.d.ts → types-DLjSqL0P.d.ts} +2 -2
  63. package/dist/{types-CpSiyJud.d.cts → types-FyklqLAk.d.cts} +2 -2
  64. package/dist/ui/form.d.cts +1 -1
  65. package/dist/ui/form.d.ts +1 -1
  66. package/dist/ui/video.d.cts +1 -1
  67. package/dist/ui/video.d.ts +1 -1
  68. package/dist/webhook.d.cts +5 -5
  69. package/dist/webhook.d.ts +5 -5
  70. package/package.json +2 -4
package/dist/server.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, C as CancelMembershipParams, d as CancelMembershipResponse, B as BillingCustodyParams, e as BillingCustodyResponse, f as CustomerGroupApi, E as ExternalEffectClaimsApi, I as InstallationCredentialsApi, g as ExternalCustomerLinksApi, h as BenefitVouchersApi, V as VideoPlaybackClient, i as CommunityClient, j as BanCustomerParams, k as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, l as ClientState, m as ClientServerConfig, n as RootServerClientWithEvents } from './types-Bzgf4mTo.cjs';
2
- export { A as AddItemParams, o as BENEFIT_VOUCHER_ERROR_REASONS, p as BENEFIT_VOUCHER_VOID_REASONS, q as BenefitVoucher, r as BenefitVoucherErrorReason, s as CancelServerPaymentSessionParams, t as CaptureExternalCustomerPreviousStateParams, u as CartApi, v as CartApiOptions, w as CartMergeResult, x as CartMineResult, y as CartMutationResult, z as CheckoutAbandonedReason, D as CheckoutAmounts, F as CheckoutApi, G as CheckoutApiOptions, H as CheckoutListItem, J as CheckoutOrderReference, K as CheckoutPaymentSessionRef, L as CheckoutQueryParams, N as CheckoutQueryResult, O as CheckoutShippingAddress, P as CheckoutStatus, Q as ClaimExternalEffectParams, W as ClearCartParams, X as CollectionCustomFieldDefinition, Y as CollectionCustomFields, Z as CollectionFieldSchema, _ as CollectionSchemaResponse, $ as ConfirmCustomPaymentSessionOptions, a0 as ConfirmCustomPaymentSessionParams, a1 as ConfirmCustomPaymentSessionResponse, a2 as ConfirmTossPaymentSessionParams, a3 as ConnectExternalCustomerLinkParams, a4 as CreateCartParams, a5 as CreateCartResult, a6 as CreateCustomPaymentSessionParams, a7 as CreateInstallationCredentialParams, a8 as CreatePaymentSessionParams, a9 as CreatePortOnePaymentSessionParams, aa as CreateServerCheckoutParams, ab as CreateServerCheckoutResult, ac as CreateServerPaymentSessionParams, ad as CreateServerPortOnePaymentSessionParams, ae as CustomPaymentSession, af as CustomPaymentSessionProof, ag as CustomerBenefitVoucher, ah as CustomerGroupApiOptions, ai as CustomerGroupManualSource, aj as CustomerGroupMember, ak as CustomerGroupMemberCommandResponse, al as CustomerGroupMemberSource, am as CustomerGroupMembershipSource, an as CustomerGroupMembershipState, ao as CustomerMembershipView, ap as CustomerSnapshot, aq as DisposeInstallationCredentialParams, ar as EventAdmissionAvailabilityParams, as as EventAdmissionAvailabilityResponse, at as EventAdmissionAvailabilityType, au as EventAdmissionPricePresentment, av as EventGuestCancelParams, aw as EventGuestRegistration, ax as EventGuestRegistrationResponse, ay as EventMyRegistration, az as EventMyRegistrationsParams, aA as EventMyRegistrationsResponse, aB as EventRegistrationAnswerInput, aC as EventRegistrationAttendeeInput, aD as EventRegistrationPublic, aE as EventRegistrationRegisterParams, aF as EventRegistrationRegisterResponse, aG as EventsCalendarItem, aH as EventsClient, aI as EventsClientOptions, aJ as EventsDateParam, aK as EventsExternalSource, aL as EventsLocation, aM as EventsOccurrenceLocation, aN as EventsRangeEvent, aO as EventsRangeOccurrence, aP as EventsRangeParams, aQ as EventsRangeResponse, aR as EventsTaxonomyItem, aS as ExternalCustomerLink, aT as ExternalCustomerLinkListResponse, aU as ExternalCustomerPreviousState, aV as ExternalEffectClaimErrorReason, aW as ExternalEffectClaimSnapshot, aX as ExternalEffectClaimState, aY as ExternalEffectLeaseParams, aZ as ExternalEffectLocator, a_ as FindPortOnePaymentParams, a$ as FindPortOnePaymentResult, b0 as GetBenefitVoucherRequest, b1 as GetExternalCustomerLinkParams, b2 as GetExternalEffectClaimParams, b3 as GrantCustomerGroupMemberParams, b4 as InstallationCredentialIdentity, b5 as InstallationCredentialSnapshot, b6 as IssueBenefitVoucherRequest, b7 as IssueBenefitVoucherResponse, b8 as ListBenefitVouchersRequest, b9 as ListBenefitVouchersResponse, ba as ListCustomerGroupMembersParams, bb as ListCustomerGroupMembersResponse, bc as ListExternalCustomerLinksParams, bd as ListMyBenefitVouchersRequest, be as ListMyBenefitVouchersResponse, bf as MembershipStatus, bg as ModerationApi, bh as Money, bi as MutateBenefitVoucherResponse, bj as MutateExternalCustomerLinkParams, bk as OpenCheckoutPaymentState, bl as PaymentFailureReason, bm as PaymentNextAction, bn as PaymentProviderStatus, bo as PaymentReconciliationReason, bp as PaymentSessionApi, bq as PaymentSessionApiOptions, br as PaymentSessionRole, bs as PortOneHostedPaymentMethod, bt as PortOnePaymentCurrentState, bu as PortOnePaymentNextAction, bv as PortOnePaymentReconciliationApi, bw as PortOnePaymentSelector, bx as PortOnePublicPaymentSession, by as PortOneReconciliationDisposition, bz as ProductGraphRevisionParams, bA as ProductGraphRevisionResponse, bB as ProductUpsertInput, bC as ProductUpsertParams, bD as ProductUpsertResponse, bE as ProductUpsertVariantInput, bF as PublicAttribute, bG as PublicCaptureEvidence, bH as PublicCart, bI as PublicCartItem, bJ as PublicCartItemAdmission, bK as PublicCartMarket, bL as PublicCartReference, bM as PublicCheckout, bN as PublicCheckoutItem, bO as PublicMediaAsset, bP as PublicMediaSize, bQ as PublicOrder, bR as PublicOrderAmounts, bS as PublicOrderItem, bT as PublicOrderReference, bU as PublicPaymentSession, bV as ReconcilePortOnePaymentParams, bW as ReconcilePortOnePaymentResult, bX as ReconciliationRequired, bY as RecordExternalEffectRecoveryParams, bZ as RedeemBenefitVoucherRequest, b_ as RemoveItemParams, b$ as ReplaceInstallationCredentialParams, c0 as ReportExternalEffectParams, c1 as RetrieveCartParams, c2 as RetrieveCheckoutParams, c3 as RetrieveCustomPaymentSessionParams, c4 as RetrieveServerCheckoutParams, c5 as RetrieveServerPaymentSessionParams, c6 as RetrievedCustomPaymentSession, c7 as RevokeCustomerGroupMemberParams, c8 as RootServerClient, c9 as ServerAddItemParams, ca as ServerCartMergeParams, cb as ServerCartMineParams, cc as ServerCheckout, cd as ServerUpdateItemParams, ce as ShippingLine, cf as SpentCheckoutPaymentState, cg as TENANT_CONTEXT_PATH, ch as TenantContextInput, ci as TenantContextResponse, cj as TenantCustomFieldType, ck as TenantFeatureProgressEvidenceValue, cl as TenantFeatureProgressFeature, cm as TenantFeatureProgressGroup, cn as TenantFeatureProgressInput, co as TenantFeatureProgressItem, cp as TenantFeatureProgressItemState, cq as TenantFeatureProgressResponse, cr as TenantFeatureProgressSeverity, cs as TenantFeatureProgressStatus, ct as TenantFieldConfigState, cu as TenantIntrospectionApi, cv as TenantIntrospectionApiOptions, cw as UpdateCartAttributesParams, cx as UpdateDiscountCodesParams, cy as UpdateItemParams, cz as VariantInput, cA as VariantPricesUpdateInput, cB as VariantPricesUpdateParams, cC as VariantPricesUpdateResponse, cD as VoidBenefitVoucherRequest, cE as getExternalEffectClaimErrorReason, cF as invalidBenefitVoucherResponse, cG as parseBenefitVoucher, cH as parseBenefitVoucherList } from './types-Bzgf4mTo.cjs';
3
- import { S as ServerCollectionClient } from './collection-client-BHLStm1K.cjs';
4
- export { C as CollectionClient } from './collection-client-BHLStm1K.cjs';
5
- import './payload-types-DTAaWKrp.cjs';
1
+ import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as CustomerGroupApi, h as ExternalEffectClaimsApi, I as InstallationCredentialsApi, i as ExternalCustomerLinksApi, j as BenefitVouchersApi, k as CreditsApi, V as VideoPlaybackClient, l as CommunityClient, m as BanCustomerParams, n as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, o as ClientState, p as ClientServerConfig, q as RootServerClientWithEvents } from './types-CnkJQUez.cjs';
2
+ export { A as AddItemParams, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, v as CancelServerPaymentSessionParams, w as CaptureExternalCustomerPreviousStateParams, x as CartApi, y as CartApiOptions, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, G as CheckoutAbandonedReason, H as CheckoutAmounts, J as CheckoutApi, K as CheckoutApiOptions, L as CheckoutListItem, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, P as CheckoutQueryParams, Q as CheckoutQueryResult, W as CheckoutShippingAddress, X as CheckoutStatus, Y as ClaimExternalEffectParams, Z as ClearCartParams, _ as CollectionCustomFieldDefinition, $ as CollectionCustomFields, a0 as CollectionFieldSchema, a1 as CollectionSchemaResponse, a2 as ConfirmCustomPaymentSessionOptions, a3 as ConfirmCustomPaymentSessionParams, a4 as ConfirmCustomPaymentSessionResponse, a5 as ConfirmTossPaymentSessionParams, a6 as ConnectExternalCustomerLinkParams, a7 as CreateCartParams, a8 as CreateCartResult, a9 as CreateCustomPaymentSessionParams, aa as CreateInstallationCredentialParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, ad as CreateServerCheckoutParams, ae as CreateServerCheckoutResult, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, ah as CustomPaymentSession, ai as CustomPaymentSessionProof, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, au as CustomerMembershipView, av as CustomerSnapshot, aw as DisposeInstallationCredentialParams, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, aY as ExternalCustomerLink, aZ as ExternalCustomerLinkListResponse, a_ as ExternalCustomerPreviousState, a$ as ExternalEffectClaimErrorReason, b0 as ExternalEffectClaimSnapshot, b1 as ExternalEffectClaimState, b2 as ExternalEffectLeaseParams, b3 as ExternalEffectLocator, b4 as FindPortOnePaymentParams, b5 as FindPortOnePaymentResult, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, b9 as GetExternalCustomerLinkParams, ba as GetExternalEffectClaimParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bd as InstallationCredentialIdentity, be as InstallationCredentialSnapshot, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bl as ListExternalCustomerLinksParams, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, bo as MembershipStatus, bp as ModerationApi, bq as Money, br as MutateBenefitVoucherResponse, bs as MutateExternalCustomerLinkParams, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, bx as OpenCheckoutPaymentState, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bC as PaymentSessionApi, bD as PaymentSessionApiOptions, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bG as PortOnePaymentCurrentState, bH as PortOnePaymentNextAction, bI as PortOnePaymentReconciliationApi, bJ as PortOnePaymentSelector, bK as PortOnePublicPaymentSession, bL as PortOneReconciliationDisposition, bM as ProductGraphRevisionParams, bN as ProductGraphRevisionResponse, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, c6 as ReconcilePortOnePaymentParams, c7 as ReconcilePortOnePaymentResult, c8 as ReconciliationRequired, c9 as RecordExternalEffectRecoveryParams, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, cc as ReplaceInstallationCredentialParams, cd as ReportExternalEffectParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, cg as RetrieveCustomPaymentSessionParams, ch as RetrieveServerCheckoutParams, ci as RetrieveServerPaymentSessionParams, cj as RetrievedCustomPaymentSession, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, cn as RootServerClient, co as ServerAddItemParams, cp as ServerCartMergeParams, cq as ServerCartMineParams, cr as ServerCheckout, cs as ServerUpdateItemParams, ct as ShippingLine, cu as SpentCheckoutPaymentState, cv as TENANT_CONTEXT_PATH, cw as TenantContextInput, cx as TenantContextResponse, cy as TenantCustomFieldType, cz as TenantFeatureProgressEvidenceValue, cA as TenantFeatureProgressFeature, cB as TenantFeatureProgressGroup, cC as TenantFeatureProgressInput, cD as TenantFeatureProgressItem, cE as TenantFeatureProgressItemState, cF as TenantFeatureProgressResponse, cG as TenantFeatureProgressSeverity, cH as TenantFeatureProgressStatus, cI as TenantFieldConfigState, cJ as TenantIntrospectionApi, cK as TenantIntrospectionApiOptions, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, cN as UpdateItemParams, cO as VariantInput, cP as VariantPricesUpdateInput, cQ as VariantPricesUpdateParams, cR as VariantPricesUpdateResponse, cS as VoidBenefitVoucherRequest, cT as getExternalEffectClaimErrorReason, cU as invalidBenefitVoucherResponse, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, c$ as parseRevokeCustomerCredit } from './types-CnkJQUez.cjs';
3
+ import { S as ServerCollectionClient } from './collection-client-B3CnqMDQ.cjs';
4
+ export { C as CollectionClient } from './collection-client-B3CnqMDQ.cjs';
5
+ import './payload-types-BRg8Yary.cjs';
6
6
  export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
7
- import './const-BfQfV-rr.cjs';
8
- import './types-CpSiyJud.cjs';
7
+ import './const-_ZfJjRQG.cjs';
8
+ import './types-FyklqLAk.cjs';
9
9
  import './metadata.cjs';
10
10
 
11
11
  type PreviewDetailParams = {
@@ -34,6 +34,7 @@ declare class ServerClient {
34
34
  tenant: TenantIntrospectionClient;
35
35
  memberships: {
36
36
  subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
37
+ endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
37
38
  cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
38
39
  billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
39
40
  };
@@ -42,6 +43,7 @@ declare class ServerClient {
42
43
  installationCredentials: InstallationCredentialsApi;
43
44
  externalCustomerLinks: ExternalCustomerLinksApi;
44
45
  benefitVouchers: BenefitVouchersApi;
46
+ credits: CreditsApi;
45
47
  private _events?;
46
48
  video: VideoPlaybackClient;
47
49
  community: CommunityClient & {
@@ -72,4 +74,4 @@ declare class ServerClient {
72
74
  */
73
75
  declare function createServerClient(options: ClientServerConfig): RootServerClientWithEvents;
74
76
 
75
- export { BenefitVouchersApi, CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, CustomerGroupApi, ExternalCustomerLinksApi, ExternalEffectClaimsApi, InstallationCredentialsApi, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
77
+ export { BenefitVouchersApi, CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, CreditsApi, CustomerGroupApi, EndSubscribeIntentParams, EndSubscribeIntentResponse, ExternalCustomerLinksApi, ExternalEffectClaimsApi, InstallationCredentialsApi, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
package/dist/server.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, C as CancelMembershipParams, d as CancelMembershipResponse, B as BillingCustodyParams, e as BillingCustodyResponse, f as CustomerGroupApi, E as ExternalEffectClaimsApi, I as InstallationCredentialsApi, g as ExternalCustomerLinksApi, h as BenefitVouchersApi, V as VideoPlaybackClient, i as CommunityClient, j as BanCustomerParams, k as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, l as ClientState, m as ClientServerConfig, n as RootServerClientWithEvents } from './types-DdlhpNVv.js';
2
- export { A as AddItemParams, o as BENEFIT_VOUCHER_ERROR_REASONS, p as BENEFIT_VOUCHER_VOID_REASONS, q as BenefitVoucher, r as BenefitVoucherErrorReason, s as CancelServerPaymentSessionParams, t as CaptureExternalCustomerPreviousStateParams, u as CartApi, v as CartApiOptions, w as CartMergeResult, x as CartMineResult, y as CartMutationResult, z as CheckoutAbandonedReason, D as CheckoutAmounts, F as CheckoutApi, G as CheckoutApiOptions, H as CheckoutListItem, J as CheckoutOrderReference, K as CheckoutPaymentSessionRef, L as CheckoutQueryParams, N as CheckoutQueryResult, O as CheckoutShippingAddress, P as CheckoutStatus, Q as ClaimExternalEffectParams, W as ClearCartParams, X as CollectionCustomFieldDefinition, Y as CollectionCustomFields, Z as CollectionFieldSchema, _ as CollectionSchemaResponse, $ as ConfirmCustomPaymentSessionOptions, a0 as ConfirmCustomPaymentSessionParams, a1 as ConfirmCustomPaymentSessionResponse, a2 as ConfirmTossPaymentSessionParams, a3 as ConnectExternalCustomerLinkParams, a4 as CreateCartParams, a5 as CreateCartResult, a6 as CreateCustomPaymentSessionParams, a7 as CreateInstallationCredentialParams, a8 as CreatePaymentSessionParams, a9 as CreatePortOnePaymentSessionParams, aa as CreateServerCheckoutParams, ab as CreateServerCheckoutResult, ac as CreateServerPaymentSessionParams, ad as CreateServerPortOnePaymentSessionParams, ae as CustomPaymentSession, af as CustomPaymentSessionProof, ag as CustomerBenefitVoucher, ah as CustomerGroupApiOptions, ai as CustomerGroupManualSource, aj as CustomerGroupMember, ak as CustomerGroupMemberCommandResponse, al as CustomerGroupMemberSource, am as CustomerGroupMembershipSource, an as CustomerGroupMembershipState, ao as CustomerMembershipView, ap as CustomerSnapshot, aq as DisposeInstallationCredentialParams, ar as EventAdmissionAvailabilityParams, as as EventAdmissionAvailabilityResponse, at as EventAdmissionAvailabilityType, au as EventAdmissionPricePresentment, av as EventGuestCancelParams, aw as EventGuestRegistration, ax as EventGuestRegistrationResponse, ay as EventMyRegistration, az as EventMyRegistrationsParams, aA as EventMyRegistrationsResponse, aB as EventRegistrationAnswerInput, aC as EventRegistrationAttendeeInput, aD as EventRegistrationPublic, aE as EventRegistrationRegisterParams, aF as EventRegistrationRegisterResponse, aG as EventsCalendarItem, aH as EventsClient, aI as EventsClientOptions, aJ as EventsDateParam, aK as EventsExternalSource, aL as EventsLocation, aM as EventsOccurrenceLocation, aN as EventsRangeEvent, aO as EventsRangeOccurrence, aP as EventsRangeParams, aQ as EventsRangeResponse, aR as EventsTaxonomyItem, aS as ExternalCustomerLink, aT as ExternalCustomerLinkListResponse, aU as ExternalCustomerPreviousState, aV as ExternalEffectClaimErrorReason, aW as ExternalEffectClaimSnapshot, aX as ExternalEffectClaimState, aY as ExternalEffectLeaseParams, aZ as ExternalEffectLocator, a_ as FindPortOnePaymentParams, a$ as FindPortOnePaymentResult, b0 as GetBenefitVoucherRequest, b1 as GetExternalCustomerLinkParams, b2 as GetExternalEffectClaimParams, b3 as GrantCustomerGroupMemberParams, b4 as InstallationCredentialIdentity, b5 as InstallationCredentialSnapshot, b6 as IssueBenefitVoucherRequest, b7 as IssueBenefitVoucherResponse, b8 as ListBenefitVouchersRequest, b9 as ListBenefitVouchersResponse, ba as ListCustomerGroupMembersParams, bb as ListCustomerGroupMembersResponse, bc as ListExternalCustomerLinksParams, bd as ListMyBenefitVouchersRequest, be as ListMyBenefitVouchersResponse, bf as MembershipStatus, bg as ModerationApi, bh as Money, bi as MutateBenefitVoucherResponse, bj as MutateExternalCustomerLinkParams, bk as OpenCheckoutPaymentState, bl as PaymentFailureReason, bm as PaymentNextAction, bn as PaymentProviderStatus, bo as PaymentReconciliationReason, bp as PaymentSessionApi, bq as PaymentSessionApiOptions, br as PaymentSessionRole, bs as PortOneHostedPaymentMethod, bt as PortOnePaymentCurrentState, bu as PortOnePaymentNextAction, bv as PortOnePaymentReconciliationApi, bw as PortOnePaymentSelector, bx as PortOnePublicPaymentSession, by as PortOneReconciliationDisposition, bz as ProductGraphRevisionParams, bA as ProductGraphRevisionResponse, bB as ProductUpsertInput, bC as ProductUpsertParams, bD as ProductUpsertResponse, bE as ProductUpsertVariantInput, bF as PublicAttribute, bG as PublicCaptureEvidence, bH as PublicCart, bI as PublicCartItem, bJ as PublicCartItemAdmission, bK as PublicCartMarket, bL as PublicCartReference, bM as PublicCheckout, bN as PublicCheckoutItem, bO as PublicMediaAsset, bP as PublicMediaSize, bQ as PublicOrder, bR as PublicOrderAmounts, bS as PublicOrderItem, bT as PublicOrderReference, bU as PublicPaymentSession, bV as ReconcilePortOnePaymentParams, bW as ReconcilePortOnePaymentResult, bX as ReconciliationRequired, bY as RecordExternalEffectRecoveryParams, bZ as RedeemBenefitVoucherRequest, b_ as RemoveItemParams, b$ as ReplaceInstallationCredentialParams, c0 as ReportExternalEffectParams, c1 as RetrieveCartParams, c2 as RetrieveCheckoutParams, c3 as RetrieveCustomPaymentSessionParams, c4 as RetrieveServerCheckoutParams, c5 as RetrieveServerPaymentSessionParams, c6 as RetrievedCustomPaymentSession, c7 as RevokeCustomerGroupMemberParams, c8 as RootServerClient, c9 as ServerAddItemParams, ca as ServerCartMergeParams, cb as ServerCartMineParams, cc as ServerCheckout, cd as ServerUpdateItemParams, ce as ShippingLine, cf as SpentCheckoutPaymentState, cg as TENANT_CONTEXT_PATH, ch as TenantContextInput, ci as TenantContextResponse, cj as TenantCustomFieldType, ck as TenantFeatureProgressEvidenceValue, cl as TenantFeatureProgressFeature, cm as TenantFeatureProgressGroup, cn as TenantFeatureProgressInput, co as TenantFeatureProgressItem, cp as TenantFeatureProgressItemState, cq as TenantFeatureProgressResponse, cr as TenantFeatureProgressSeverity, cs as TenantFeatureProgressStatus, ct as TenantFieldConfigState, cu as TenantIntrospectionApi, cv as TenantIntrospectionApiOptions, cw as UpdateCartAttributesParams, cx as UpdateDiscountCodesParams, cy as UpdateItemParams, cz as VariantInput, cA as VariantPricesUpdateInput, cB as VariantPricesUpdateParams, cC as VariantPricesUpdateResponse, cD as VoidBenefitVoucherRequest, cE as getExternalEffectClaimErrorReason, cF as invalidBenefitVoucherResponse, cG as parseBenefitVoucher, cH as parseBenefitVoucherList } from './types-DdlhpNVv.js';
3
- import { S as ServerCollectionClient } from './collection-client-B1FSJ24_.js';
4
- export { C as CollectionClient } from './collection-client-B1FSJ24_.js';
5
- import './payload-types-DTAaWKrp.js';
1
+ import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as CustomerGroupApi, h as ExternalEffectClaimsApi, I as InstallationCredentialsApi, i as ExternalCustomerLinksApi, j as BenefitVouchersApi, k as CreditsApi, V as VideoPlaybackClient, l as CommunityClient, m as BanCustomerParams, n as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, o as ClientState, p as ClientServerConfig, q as RootServerClientWithEvents } from './types-Cmnxxvuv.js';
2
+ export { A as AddItemParams, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, v as CancelServerPaymentSessionParams, w as CaptureExternalCustomerPreviousStateParams, x as CartApi, y as CartApiOptions, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, G as CheckoutAbandonedReason, H as CheckoutAmounts, J as CheckoutApi, K as CheckoutApiOptions, L as CheckoutListItem, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, P as CheckoutQueryParams, Q as CheckoutQueryResult, W as CheckoutShippingAddress, X as CheckoutStatus, Y as ClaimExternalEffectParams, Z as ClearCartParams, _ as CollectionCustomFieldDefinition, $ as CollectionCustomFields, a0 as CollectionFieldSchema, a1 as CollectionSchemaResponse, a2 as ConfirmCustomPaymentSessionOptions, a3 as ConfirmCustomPaymentSessionParams, a4 as ConfirmCustomPaymentSessionResponse, a5 as ConfirmTossPaymentSessionParams, a6 as ConnectExternalCustomerLinkParams, a7 as CreateCartParams, a8 as CreateCartResult, a9 as CreateCustomPaymentSessionParams, aa as CreateInstallationCredentialParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, ad as CreateServerCheckoutParams, ae as CreateServerCheckoutResult, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, ah as CustomPaymentSession, ai as CustomPaymentSessionProof, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, au as CustomerMembershipView, av as CustomerSnapshot, aw as DisposeInstallationCredentialParams, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, aY as ExternalCustomerLink, aZ as ExternalCustomerLinkListResponse, a_ as ExternalCustomerPreviousState, a$ as ExternalEffectClaimErrorReason, b0 as ExternalEffectClaimSnapshot, b1 as ExternalEffectClaimState, b2 as ExternalEffectLeaseParams, b3 as ExternalEffectLocator, b4 as FindPortOnePaymentParams, b5 as FindPortOnePaymentResult, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, b9 as GetExternalCustomerLinkParams, ba as GetExternalEffectClaimParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bd as InstallationCredentialIdentity, be as InstallationCredentialSnapshot, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bl as ListExternalCustomerLinksParams, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, bo as MembershipStatus, bp as ModerationApi, bq as Money, br as MutateBenefitVoucherResponse, bs as MutateExternalCustomerLinkParams, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, bx as OpenCheckoutPaymentState, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bC as PaymentSessionApi, bD as PaymentSessionApiOptions, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bG as PortOnePaymentCurrentState, bH as PortOnePaymentNextAction, bI as PortOnePaymentReconciliationApi, bJ as PortOnePaymentSelector, bK as PortOnePublicPaymentSession, bL as PortOneReconciliationDisposition, bM as ProductGraphRevisionParams, bN as ProductGraphRevisionResponse, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, c6 as ReconcilePortOnePaymentParams, c7 as ReconcilePortOnePaymentResult, c8 as ReconciliationRequired, c9 as RecordExternalEffectRecoveryParams, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, cc as ReplaceInstallationCredentialParams, cd as ReportExternalEffectParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, cg as RetrieveCustomPaymentSessionParams, ch as RetrieveServerCheckoutParams, ci as RetrieveServerPaymentSessionParams, cj as RetrievedCustomPaymentSession, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, cn as RootServerClient, co as ServerAddItemParams, cp as ServerCartMergeParams, cq as ServerCartMineParams, cr as ServerCheckout, cs as ServerUpdateItemParams, ct as ShippingLine, cu as SpentCheckoutPaymentState, cv as TENANT_CONTEXT_PATH, cw as TenantContextInput, cx as TenantContextResponse, cy as TenantCustomFieldType, cz as TenantFeatureProgressEvidenceValue, cA as TenantFeatureProgressFeature, cB as TenantFeatureProgressGroup, cC as TenantFeatureProgressInput, cD as TenantFeatureProgressItem, cE as TenantFeatureProgressItemState, cF as TenantFeatureProgressResponse, cG as TenantFeatureProgressSeverity, cH as TenantFeatureProgressStatus, cI as TenantFieldConfigState, cJ as TenantIntrospectionApi, cK as TenantIntrospectionApiOptions, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, cN as UpdateItemParams, cO as VariantInput, cP as VariantPricesUpdateInput, cQ as VariantPricesUpdateParams, cR as VariantPricesUpdateResponse, cS as VoidBenefitVoucherRequest, cT as getExternalEffectClaimErrorReason, cU as invalidBenefitVoucherResponse, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, c$ as parseRevokeCustomerCredit } from './types-Cmnxxvuv.js';
3
+ import { S as ServerCollectionClient } from './collection-client-uOgS_1bC.js';
4
+ export { C as CollectionClient } from './collection-client-uOgS_1bC.js';
5
+ import './payload-types-BRg8Yary.js';
6
6
  export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
7
- import './const-ty8u0TDI.js';
8
- import './types-DX8Z44yQ.js';
7
+ import './const-BJBK7jBl.js';
8
+ import './types-DLjSqL0P.js';
9
9
  import './metadata.js';
10
10
 
11
11
  type PreviewDetailParams = {
@@ -34,6 +34,7 @@ declare class ServerClient {
34
34
  tenant: TenantIntrospectionClient;
35
35
  memberships: {
36
36
  subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
37
+ endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
37
38
  cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
38
39
  billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
39
40
  };
@@ -42,6 +43,7 @@ declare class ServerClient {
42
43
  installationCredentials: InstallationCredentialsApi;
43
44
  externalCustomerLinks: ExternalCustomerLinksApi;
44
45
  benefitVouchers: BenefitVouchersApi;
46
+ credits: CreditsApi;
45
47
  private _events?;
46
48
  video: VideoPlaybackClient;
47
49
  community: CommunityClient & {
@@ -72,4 +74,4 @@ declare class ServerClient {
72
74
  */
73
75
  declare function createServerClient(options: ClientServerConfig): RootServerClientWithEvents;
74
76
 
75
- export { BenefitVouchersApi, CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, CustomerGroupApi, ExternalCustomerLinksApi, ExternalEffectClaimsApi, InstallationCredentialsApi, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
77
+ export { BenefitVouchersApi, CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, CreditsApi, CustomerGroupApi, EndSubscribeIntentParams, EndSubscribeIntentResponse, ExternalCustomerLinksApi, ExternalEffectClaimsApi, InstallationCredentialsApi, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };