@01.software/sdk 0.69.0 → 0.70.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.
- package/CHANGELOG.md +39 -0
- package/README.md +26 -7
- package/dist/client.cjs +35 -7
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +35 -7
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-C2VGBnCC.d.ts → collection-client-B1FSJ24_.d.ts} +5 -5
- package/dist/{collection-client-DvWkDxSM.d.cts → collection-client-BHLStm1K.d.cts} +5 -5
- package/dist/{const-AtPEgg__.d.cts → const-BfQfV-rr.d.cts} +1 -1
- package/dist/{const-DR96Chal.d.ts → const-ty8u0TDI.d.ts} +1 -1
- package/dist/embedded-admin/server.cjs +5 -0
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.js +5 -0
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +5 -0
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.js +5 -0
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.cjs +5 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +3 -3
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +5 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-Ce11c_Oh.d.cts → index-CX6si6YC.d.cts} +3 -3
- package/dist/{index-D8fmTrZk.d.ts → index-DnKgjPGM.d.ts} +3 -3
- package/dist/index.cjs +35 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +35 -7
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-rhnw3rR8.d.cts → payload-types-DTAaWKrp.d.cts} +18 -4
- package/dist/{payload-types-rhnw3rR8.d.ts → payload-types-DTAaWKrp.d.ts} +18 -4
- package/dist/query.cjs +14 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +14 -0
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +35 -7
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +35 -7
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +5 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +5 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-B99utaKU.d.cts → types-Bzgf4mTo.d.cts} +3 -3
- package/dist/{types-CHK8VIPa.d.ts → types-CpSiyJud.d.cts} +8 -2
- package/dist/{types-BR0D4AaW.d.cts → types-DX8Z44yQ.d.ts} +8 -2
- package/dist/{types-L0xmn_iT.d.ts → types-DdlhpNVv.d.ts} +3 -3
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +1 -1
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-
|
|
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-
|
|
3
|
-
import { S as ServerCollectionClient } from './collection-client-
|
|
4
|
-
export { C as CollectionClient } from './collection-client-
|
|
5
|
-
import './payload-types-
|
|
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';
|
|
6
6
|
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
|
|
7
|
-
import './const-
|
|
8
|
-
import './types-
|
|
7
|
+
import './const-BfQfV-rr.cjs';
|
|
8
|
+
import './types-CpSiyJud.cjs';
|
|
9
9
|
import './metadata.cjs';
|
|
10
10
|
|
|
11
11
|
type PreviewDetailParams = {
|
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-
|
|
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-
|
|
3
|
-
import { S as ServerCollectionClient } from './collection-client-
|
|
4
|
-
export { C as CollectionClient } from './collection-client-
|
|
5
|
-
import './payload-types-
|
|
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';
|
|
6
6
|
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
|
|
7
|
-
import './const-
|
|
8
|
-
import './types-
|
|
7
|
+
import './const-ty8u0TDI.js';
|
|
8
|
+
import './types-DX8Z44yQ.js';
|
|
9
9
|
import './metadata.js';
|
|
10
10
|
|
|
11
11
|
type PreviewDetailParams = {
|
package/dist/server.js
CHANGED
|
@@ -110,6 +110,11 @@ var COMMERCE_ERROR_CODES = [
|
|
|
110
110
|
"checkout_reservation_release_requires_transaction",
|
|
111
111
|
"admission_metadata_invalid",
|
|
112
112
|
"admission_metadata_required",
|
|
113
|
+
"admission_not_eligible",
|
|
114
|
+
"admission_eligibility_unavailable",
|
|
115
|
+
"admission_authority_unavailable",
|
|
116
|
+
"admission_customer_binding_required",
|
|
117
|
+
"admission_eligibility_unproven",
|
|
113
118
|
"capacity_exceeded",
|
|
114
119
|
"admission_required",
|
|
115
120
|
"occurrence_lock_unavailable",
|
|
@@ -779,6 +784,7 @@ async function httpFetch(url, options) {
|
|
|
779
784
|
let lastError;
|
|
780
785
|
let hasRetried401 = false;
|
|
781
786
|
for (let attempt = 0; attempt <= retryConfig.maxRetries; attempt++) {
|
|
787
|
+
let terminalResponseError;
|
|
782
788
|
try {
|
|
783
789
|
const headers = new Headers(requestInit.headers);
|
|
784
790
|
if (publishableKey) {
|
|
@@ -847,8 +853,9 @@ async function httpFetch(url, options) {
|
|
|
847
853
|
hasRetried401 = true;
|
|
848
854
|
try {
|
|
849
855
|
const newToken = await onUnauthorized();
|
|
850
|
-
if (newToken) {
|
|
856
|
+
if (newToken && SAFE_METHODS.includes((requestInit.method || "GET").toUpperCase())) {
|
|
851
857
|
authToken = newToken;
|
|
858
|
+
attempt--;
|
|
852
859
|
continue;
|
|
853
860
|
}
|
|
854
861
|
} catch {
|
|
@@ -881,11 +888,15 @@ async function httpFetch(url, options) {
|
|
|
881
888
|
await delay(retryDelay);
|
|
882
889
|
continue;
|
|
883
890
|
}
|
|
891
|
+
terminalResponseError = error;
|
|
884
892
|
throw error;
|
|
885
893
|
}
|
|
886
894
|
return response;
|
|
887
895
|
} catch (error) {
|
|
888
896
|
debugLog(debug, "error", url, error);
|
|
897
|
+
if (terminalResponseError && error === terminalResponseError) {
|
|
898
|
+
throw error;
|
|
899
|
+
}
|
|
889
900
|
const method2 = (requestInit.method || "GET").toUpperCase();
|
|
890
901
|
const isSafe = SAFE_METHODS.includes(method2);
|
|
891
902
|
if (error instanceof Error && error.name === "AbortError") {
|
|
@@ -1297,6 +1308,15 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
|
1297
1308
|
};
|
|
1298
1309
|
var EVENTS_ENDPOINT_OPERATIONS = {
|
|
1299
1310
|
registrations: {
|
|
1311
|
+
register: operation("event-registrations", "post", "/register"),
|
|
1312
|
+
guestLookup: operation("event-registrations", "post", "/guest/lookup"),
|
|
1313
|
+
guestLookupByUrl: operation("event-registrations", "get", "/guest/:token"),
|
|
1314
|
+
guestCancel: operation("event-registrations", "post", "/guest/cancel"),
|
|
1315
|
+
guestCancelByUrl: operation(
|
|
1316
|
+
"event-registrations",
|
|
1317
|
+
"post",
|
|
1318
|
+
"/guest/:token/cancel"
|
|
1319
|
+
),
|
|
1300
1320
|
listMine: operation("event-registrations", "get", "/my")
|
|
1301
1321
|
},
|
|
1302
1322
|
events: {
|
|
@@ -6233,24 +6253,32 @@ var EventsClient = class {
|
|
|
6233
6253
|
}
|
|
6234
6254
|
register(params) {
|
|
6235
6255
|
return this.execute(
|
|
6236
|
-
|
|
6237
|
-
|
|
6256
|
+
resolveOperationPath(EVENTS_ENDPOINT_OPERATIONS.registrations.register),
|
|
6257
|
+
resolveOperationMethod(EVENTS_ENDPOINT_OPERATIONS.registrations.register),
|
|
6238
6258
|
buildRegistrationRequestBody(params),
|
|
6239
6259
|
{ useCustomerAuth: true }
|
|
6240
6260
|
);
|
|
6241
6261
|
}
|
|
6242
6262
|
getGuestRegistration(token) {
|
|
6243
6263
|
return this.execute(
|
|
6244
|
-
|
|
6245
|
-
|
|
6264
|
+
resolveOperationPath(
|
|
6265
|
+
EVENTS_ENDPOINT_OPERATIONS.registrations.guestLookup
|
|
6266
|
+
),
|
|
6267
|
+
resolveOperationMethod(
|
|
6268
|
+
EVENTS_ENDPOINT_OPERATIONS.registrations.guestLookup
|
|
6269
|
+
),
|
|
6246
6270
|
{ token },
|
|
6247
6271
|
{ useCustomerAuth: false }
|
|
6248
6272
|
);
|
|
6249
6273
|
}
|
|
6250
6274
|
cancelGuestRegistration(token, params = {}) {
|
|
6251
6275
|
return this.execute(
|
|
6252
|
-
|
|
6253
|
-
|
|
6276
|
+
resolveOperationPath(
|
|
6277
|
+
EVENTS_ENDPOINT_OPERATIONS.registrations.guestCancel
|
|
6278
|
+
),
|
|
6279
|
+
resolveOperationMethod(
|
|
6280
|
+
EVENTS_ENDPOINT_OPERATIONS.registrations.guestCancel
|
|
6281
|
+
),
|
|
6254
6282
|
buildGuestCancelRequestBody(token, params),
|
|
6255
6283
|
{ useCustomerAuth: false }
|
|
6256
6284
|
);
|