@01.software/sdk 0.73.1 → 0.74.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.
- package/CHANGELOG.md +39 -0
- package/README.md +30 -3
- package/dist/client.cjs +12 -9
- 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 +12 -9
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BH4dIZ6c.d.cts → collection-client-Bb1Wa6T6.d.cts} +4 -4
- package/dist/{collection-client-lLAl3xCZ.d.ts → collection-client-DBrLM9RR.d.ts} +4 -4
- package/dist/{const-CCvoknRY.d.ts → const-CkY2zB6J.d.ts} +1 -1
- package/dist/{const-BS2EaIp4.d.cts → const-DWTSgCkn.d.cts} +1 -1
- package/dist/{index-DVqNpmsc.d.ts → index-Daoh-98A.d.ts} +3 -3
- package/dist/{index-CHdrzJ8-.d.cts → index-Di5AybQN.d.cts} +3 -3
- package/dist/index.cjs +12 -9
- 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 +12 -9
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-PXkmefhZ.d.cts → payload-types-zukuL1s_.d.cts} +345 -1755
- package/dist/{payload-types-PXkmefhZ.d.ts → payload-types-zukuL1s_.d.ts} +345 -1755
- package/dist/query.cjs +4 -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 +4 -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 +12 -9
- 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 +12 -9
- package/dist/server.js.map +1 -1
- package/dist/{types-CyMz0Kzc.d.cts → types-BI7aowdu.d.cts} +4 -4
- package/dist/{types-lbzbJSZh.d.ts → types-BsJokT6P.d.ts} +59 -16
- package/dist/{types-CQRsG6sA.d.ts → types-SsS04wGw.d.ts} +4 -4
- package/dist/{types-Chwgg4CQ.d.cts → types-evAvqRBj.d.cts} +59 -16
- 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, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as BillingCustodyContextParams, h as BillingCustodyContextResponse, i as CustomerGroupApi, j as ExternalEffectClaimsApi, I as InstallationCredentialsApi, k as ExternalCustomerLinksApi, l as BenefitVouchersApi, m as CreditsApi, V as VideoPlaybackClient, n as CommunityClient, o as BanCustomerParams, p as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, q as ClientState, r as ClientServerConfig, s as RootServerClientWithEvents } from './types-
|
|
2
|
-
export { A as AddItemParams, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, x as CancelServerPaymentSessionParams, y as CaptureExternalCustomerPreviousStateParams, z as CartApi, D as CartApiOptions, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, L as CheckoutApi, N as CheckoutApiOptions, O as CheckoutListItem, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, W as CheckoutQueryParams, X as CheckoutQueryResult, Y as CheckoutShippingAddress, Z as CheckoutStatus, _ as ClaimExternalEffectParams, $ as ClearCartParams, a0 as CollectionCustomFieldDefinition, a1 as CollectionCustomFields, a2 as CollectionFieldSchema, a3 as CollectionSchemaResponse, a4 as ConfirmCustomPaymentSessionOptions, a5 as ConfirmCustomPaymentSessionParams, a6 as ConfirmCustomPaymentSessionResponse, a7 as ConfirmTossPaymentSessionParams, a8 as ConnectExternalCustomerLinkParams, a9 as CreateCartParams, aa as CreateCartResult, ab as CreateCustomPaymentSessionParams, ac as CreateInstallationCredentialParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, af as CreateServerCheckoutParams, ag as CreateServerCheckoutResult, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, aj as CustomPaymentSession, ak as CustomPaymentSessionProof, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, aw as CustomerMembershipView, ax as CustomerSnapshot, ay as DisposeInstallationCredentialParams, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, a_ as ExternalCustomerLink, a$ as ExternalCustomerLinkListResponse, b0 as ExternalCustomerPreviousState, b1 as ExternalEffectClaimErrorReason, b2 as ExternalEffectClaimSnapshot, b3 as ExternalEffectClaimState, b4 as ExternalEffectLeaseParams, b5 as ExternalEffectLocator, b6 as FindPortOnePaymentParams, b7 as FindPortOnePaymentResult, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, bb as GetExternalCustomerLinkParams, bc as GetExternalEffectClaimParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bf as InstallationCredentialIdentity, bg as InstallationCredentialSnapshot, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bn as ListExternalCustomerLinksParams, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, bq as MembershipStatus, br as ModerationApi, bs as Money, bt as MutateBenefitVoucherResponse, bu as MutateExternalCustomerLinkParams, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, bz as OpenCheckoutPaymentState, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bE as PaymentSessionApi, bF as PaymentSessionApiOptions, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bI as PortOnePaymentCurrentState, bJ as PortOnePaymentNextAction, bK as PortOnePaymentReconciliationApi, bL as PortOnePaymentSelector, bM as PortOnePublicPaymentSession, bN as PortOneReconciliationDisposition, bO as ProductGraphRevisionParams, bP as ProductGraphRevisionResponse, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, c8 as ReconcilePortOnePaymentParams, c9 as ReconcilePortOnePaymentResult, ca as ReconciliationRequired, cb as RecordExternalEffectRecoveryParams, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, ce as ReplaceInstallationCredentialParams, cf as ReportExternalEffectParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, ci as RetrieveCustomPaymentSessionParams, cj as RetrieveServerCheckoutParams, ck as RetrieveServerPaymentSessionParams, cl as RetrievedCustomPaymentSession, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, cp as RootServerClient, cq as ServerAddItemParams, cr as ServerCartMergeParams, cs as ServerCartMineParams, ct as ServerCheckout, cu as ServerUpdateItemParams, cv as ShippingLine, cw as SpentCheckoutPaymentState, cx as TENANT_CONTEXT_PATH, cy as
|
|
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, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as BillingCustodyContextParams, h as BillingCustodyContextResponse, i as CustomerGroupApi, j as ExternalEffectClaimsApi, I as InstallationCredentialsApi, k as ExternalCustomerLinksApi, l as BenefitVouchersApi, m as CreditsApi, V as VideoPlaybackClient, n as CommunityClient, o as BanCustomerParams, p as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, q as ClientState, r as ClientServerConfig, s as RootServerClientWithEvents } from './types-evAvqRBj.cjs';
|
|
2
|
+
export { A as AddItemParams, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, x as CancelServerPaymentSessionParams, y as CaptureExternalCustomerPreviousStateParams, z as CartApi, D as CartApiOptions, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, L as CheckoutApi, N as CheckoutApiOptions, O as CheckoutListItem, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, W as CheckoutQueryParams, X as CheckoutQueryResult, Y as CheckoutShippingAddress, Z as CheckoutStatus, _ as ClaimExternalEffectParams, $ as ClearCartParams, a0 as CollectionCustomFieldDefinition, a1 as CollectionCustomFields, a2 as CollectionFieldSchema, a3 as CollectionSchemaResponse, a4 as ConfirmCustomPaymentSessionOptions, a5 as ConfirmCustomPaymentSessionParams, a6 as ConfirmCustomPaymentSessionResponse, a7 as ConfirmTossPaymentSessionParams, a8 as ConnectExternalCustomerLinkParams, a9 as CreateCartParams, aa as CreateCartResult, ab as CreateCustomPaymentSessionParams, ac as CreateInstallationCredentialParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, af as CreateServerCheckoutParams, ag as CreateServerCheckoutResult, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, aj as CustomPaymentSession, ak as CustomPaymentSessionProof, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, aw as CustomerMembershipView, ax as CustomerSnapshot, ay as DisposeInstallationCredentialParams, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, a_ as ExternalCustomerLink, a$ as ExternalCustomerLinkListResponse, b0 as ExternalCustomerPreviousState, b1 as ExternalEffectClaimErrorReason, b2 as ExternalEffectClaimSnapshot, b3 as ExternalEffectClaimState, b4 as ExternalEffectLeaseParams, b5 as ExternalEffectLocator, b6 as FindPortOnePaymentParams, b7 as FindPortOnePaymentResult, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, bb as GetExternalCustomerLinkParams, bc as GetExternalEffectClaimParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bf as InstallationCredentialIdentity, bg as InstallationCredentialSnapshot, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bn as ListExternalCustomerLinksParams, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, bq as MembershipStatus, br as ModerationApi, bs as Money, bt as MutateBenefitVoucherResponse, bu as MutateExternalCustomerLinkParams, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, bz as OpenCheckoutPaymentState, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bE as PaymentSessionApi, bF as PaymentSessionApiOptions, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bI as PortOnePaymentCurrentState, bJ as PortOnePaymentNextAction, bK as PortOnePaymentReconciliationApi, bL as PortOnePaymentSelector, bM as PortOnePublicPaymentSession, bN as PortOneReconciliationDisposition, bO as ProductGraphRevisionParams, bP as ProductGraphRevisionResponse, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, c8 as ReconcilePortOnePaymentParams, c9 as ReconcilePortOnePaymentResult, ca as ReconciliationRequired, cb as RecordExternalEffectRecoveryParams, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, ce as ReplaceInstallationCredentialParams, cf as ReportExternalEffectParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, ci as RetrieveCustomPaymentSessionParams, cj as RetrieveServerCheckoutParams, ck as RetrieveServerPaymentSessionParams, cl as RetrievedCustomPaymentSession, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, cp as RootServerClient, cq as ServerAddItemParams, cr as ServerCartMergeParams, cs as ServerCartMineParams, ct as ServerCheckout, cu as ServerUpdateItemParams, cv as ShippingLine, cw as SpentCheckoutPaymentState, cx as TENANT_CONTEXT_PATH, cy as TenantCommunityFeatureProgressResponse, cz as TenantContextInput, cA as TenantContextResponse, cB as TenantCustomFieldType, cC as TenantCustomersFeatureProgressResponse, cD as TenantEcommerceFeatureProgressResponse, cE as TenantEventsFeatureProgressResponse, cF as TenantFeatureProgressEvidenceValue, cG as TenantFeatureProgressFeature, cH as TenantFeatureProgressGroup, cI as TenantFeatureProgressInput, cJ as TenantFeatureProgressItem, cK as TenantFeatureProgressItemState, cL as TenantFeatureProgressResponse, cM as TenantFeatureProgressResponseFor, cN as TenantFeatureProgressResponseUnion, cO as TenantFeatureProgressSeverity, cP as TenantFeatureProgressStatus, cQ as TenantFieldConfigState, cR as TenantIntrospectionApi, cS as TenantIntrospectionApiOptions, cT as TenantMembershipFeatureProgressResponse, cU as UpdateCartAttributesParams, cV as UpdateDiscountCodesParams, cW as UpdateItemParams, cX as VariantInput, cY as VariantPricesUpdateInput, cZ as VariantPricesUpdateParams, c_ as VariantPricesUpdateResponse, c$ as VoidBenefitVoucherRequest, d0 as getExternalEffectClaimErrorReason, d1 as invalidBenefitVoucherResponse, d2 as parseBenefitVoucher, d3 as parseBenefitVoucherList, d4 as parseCustomerCreditAccount, d5 as parseCustomerCreditGrant, d6 as parseMyCustomerCreditHistory, d7 as parseMyCustomerCredits, d8 as parseRevokeCustomerCredit } from './types-evAvqRBj.cjs';
|
|
3
|
+
import { S as ServerCollectionClient } from './collection-client-Bb1Wa6T6.cjs';
|
|
4
|
+
export { C as CollectionClient } from './collection-client-Bb1Wa6T6.cjs';
|
|
5
|
+
import './payload-types-zukuL1s_.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-DWTSgCkn.cjs';
|
|
8
|
+
import './types-BI7aowdu.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, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as BillingCustodyContextParams, h as BillingCustodyContextResponse, i as CustomerGroupApi, j as ExternalEffectClaimsApi, I as InstallationCredentialsApi, k as ExternalCustomerLinksApi, l as BenefitVouchersApi, m as CreditsApi, V as VideoPlaybackClient, n as CommunityClient, o as BanCustomerParams, p as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, q as ClientState, r as ClientServerConfig, s as RootServerClientWithEvents } from './types-
|
|
2
|
-
export { A as AddItemParams, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, x as CancelServerPaymentSessionParams, y as CaptureExternalCustomerPreviousStateParams, z as CartApi, D as CartApiOptions, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, L as CheckoutApi, N as CheckoutApiOptions, O as CheckoutListItem, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, W as CheckoutQueryParams, X as CheckoutQueryResult, Y as CheckoutShippingAddress, Z as CheckoutStatus, _ as ClaimExternalEffectParams, $ as ClearCartParams, a0 as CollectionCustomFieldDefinition, a1 as CollectionCustomFields, a2 as CollectionFieldSchema, a3 as CollectionSchemaResponse, a4 as ConfirmCustomPaymentSessionOptions, a5 as ConfirmCustomPaymentSessionParams, a6 as ConfirmCustomPaymentSessionResponse, a7 as ConfirmTossPaymentSessionParams, a8 as ConnectExternalCustomerLinkParams, a9 as CreateCartParams, aa as CreateCartResult, ab as CreateCustomPaymentSessionParams, ac as CreateInstallationCredentialParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, af as CreateServerCheckoutParams, ag as CreateServerCheckoutResult, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, aj as CustomPaymentSession, ak as CustomPaymentSessionProof, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, aw as CustomerMembershipView, ax as CustomerSnapshot, ay as DisposeInstallationCredentialParams, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, a_ as ExternalCustomerLink, a$ as ExternalCustomerLinkListResponse, b0 as ExternalCustomerPreviousState, b1 as ExternalEffectClaimErrorReason, b2 as ExternalEffectClaimSnapshot, b3 as ExternalEffectClaimState, b4 as ExternalEffectLeaseParams, b5 as ExternalEffectLocator, b6 as FindPortOnePaymentParams, b7 as FindPortOnePaymentResult, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, bb as GetExternalCustomerLinkParams, bc as GetExternalEffectClaimParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bf as InstallationCredentialIdentity, bg as InstallationCredentialSnapshot, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bn as ListExternalCustomerLinksParams, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, bq as MembershipStatus, br as ModerationApi, bs as Money, bt as MutateBenefitVoucherResponse, bu as MutateExternalCustomerLinkParams, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, bz as OpenCheckoutPaymentState, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bE as PaymentSessionApi, bF as PaymentSessionApiOptions, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bI as PortOnePaymentCurrentState, bJ as PortOnePaymentNextAction, bK as PortOnePaymentReconciliationApi, bL as PortOnePaymentSelector, bM as PortOnePublicPaymentSession, bN as PortOneReconciliationDisposition, bO as ProductGraphRevisionParams, bP as ProductGraphRevisionResponse, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, c8 as ReconcilePortOnePaymentParams, c9 as ReconcilePortOnePaymentResult, ca as ReconciliationRequired, cb as RecordExternalEffectRecoveryParams, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, ce as ReplaceInstallationCredentialParams, cf as ReportExternalEffectParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, ci as RetrieveCustomPaymentSessionParams, cj as RetrieveServerCheckoutParams, ck as RetrieveServerPaymentSessionParams, cl as RetrievedCustomPaymentSession, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, cp as RootServerClient, cq as ServerAddItemParams, cr as ServerCartMergeParams, cs as ServerCartMineParams, ct as ServerCheckout, cu as ServerUpdateItemParams, cv as ShippingLine, cw as SpentCheckoutPaymentState, cx as TENANT_CONTEXT_PATH, cy as
|
|
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, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as BillingCustodyContextParams, h as BillingCustodyContextResponse, i as CustomerGroupApi, j as ExternalEffectClaimsApi, I as InstallationCredentialsApi, k as ExternalCustomerLinksApi, l as BenefitVouchersApi, m as CreditsApi, V as VideoPlaybackClient, n as CommunityClient, o as BanCustomerParams, p as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, q as ClientState, r as ClientServerConfig, s as RootServerClientWithEvents } from './types-BsJokT6P.js';
|
|
2
|
+
export { A as AddItemParams, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, x as CancelServerPaymentSessionParams, y as CaptureExternalCustomerPreviousStateParams, z as CartApi, D as CartApiOptions, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, L as CheckoutApi, N as CheckoutApiOptions, O as CheckoutListItem, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, W as CheckoutQueryParams, X as CheckoutQueryResult, Y as CheckoutShippingAddress, Z as CheckoutStatus, _ as ClaimExternalEffectParams, $ as ClearCartParams, a0 as CollectionCustomFieldDefinition, a1 as CollectionCustomFields, a2 as CollectionFieldSchema, a3 as CollectionSchemaResponse, a4 as ConfirmCustomPaymentSessionOptions, a5 as ConfirmCustomPaymentSessionParams, a6 as ConfirmCustomPaymentSessionResponse, a7 as ConfirmTossPaymentSessionParams, a8 as ConnectExternalCustomerLinkParams, a9 as CreateCartParams, aa as CreateCartResult, ab as CreateCustomPaymentSessionParams, ac as CreateInstallationCredentialParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, af as CreateServerCheckoutParams, ag as CreateServerCheckoutResult, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, aj as CustomPaymentSession, ak as CustomPaymentSessionProof, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, aw as CustomerMembershipView, ax as CustomerSnapshot, ay as DisposeInstallationCredentialParams, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, a_ as ExternalCustomerLink, a$ as ExternalCustomerLinkListResponse, b0 as ExternalCustomerPreviousState, b1 as ExternalEffectClaimErrorReason, b2 as ExternalEffectClaimSnapshot, b3 as ExternalEffectClaimState, b4 as ExternalEffectLeaseParams, b5 as ExternalEffectLocator, b6 as FindPortOnePaymentParams, b7 as FindPortOnePaymentResult, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, bb as GetExternalCustomerLinkParams, bc as GetExternalEffectClaimParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bf as InstallationCredentialIdentity, bg as InstallationCredentialSnapshot, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bn as ListExternalCustomerLinksParams, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, bq as MembershipStatus, br as ModerationApi, bs as Money, bt as MutateBenefitVoucherResponse, bu as MutateExternalCustomerLinkParams, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, bz as OpenCheckoutPaymentState, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bE as PaymentSessionApi, bF as PaymentSessionApiOptions, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bI as PortOnePaymentCurrentState, bJ as PortOnePaymentNextAction, bK as PortOnePaymentReconciliationApi, bL as PortOnePaymentSelector, bM as PortOnePublicPaymentSession, bN as PortOneReconciliationDisposition, bO as ProductGraphRevisionParams, bP as ProductGraphRevisionResponse, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, c8 as ReconcilePortOnePaymentParams, c9 as ReconcilePortOnePaymentResult, ca as ReconciliationRequired, cb as RecordExternalEffectRecoveryParams, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, ce as ReplaceInstallationCredentialParams, cf as ReportExternalEffectParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, ci as RetrieveCustomPaymentSessionParams, cj as RetrieveServerCheckoutParams, ck as RetrieveServerPaymentSessionParams, cl as RetrievedCustomPaymentSession, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, cp as RootServerClient, cq as ServerAddItemParams, cr as ServerCartMergeParams, cs as ServerCartMineParams, ct as ServerCheckout, cu as ServerUpdateItemParams, cv as ShippingLine, cw as SpentCheckoutPaymentState, cx as TENANT_CONTEXT_PATH, cy as TenantCommunityFeatureProgressResponse, cz as TenantContextInput, cA as TenantContextResponse, cB as TenantCustomFieldType, cC as TenantCustomersFeatureProgressResponse, cD as TenantEcommerceFeatureProgressResponse, cE as TenantEventsFeatureProgressResponse, cF as TenantFeatureProgressEvidenceValue, cG as TenantFeatureProgressFeature, cH as TenantFeatureProgressGroup, cI as TenantFeatureProgressInput, cJ as TenantFeatureProgressItem, cK as TenantFeatureProgressItemState, cL as TenantFeatureProgressResponse, cM as TenantFeatureProgressResponseFor, cN as TenantFeatureProgressResponseUnion, cO as TenantFeatureProgressSeverity, cP as TenantFeatureProgressStatus, cQ as TenantFieldConfigState, cR as TenantIntrospectionApi, cS as TenantIntrospectionApiOptions, cT as TenantMembershipFeatureProgressResponse, cU as UpdateCartAttributesParams, cV as UpdateDiscountCodesParams, cW as UpdateItemParams, cX as VariantInput, cY as VariantPricesUpdateInput, cZ as VariantPricesUpdateParams, c_ as VariantPricesUpdateResponse, c$ as VoidBenefitVoucherRequest, d0 as getExternalEffectClaimErrorReason, d1 as invalidBenefitVoucherResponse, d2 as parseBenefitVoucher, d3 as parseBenefitVoucherList, d4 as parseCustomerCreditAccount, d5 as parseCustomerCreditGrant, d6 as parseMyCustomerCreditHistory, d7 as parseMyCustomerCredits, d8 as parseRevokeCustomerCredit } from './types-BsJokT6P.js';
|
|
3
|
+
import { S as ServerCollectionClient } from './collection-client-DBrLM9RR.js';
|
|
4
|
+
export { C as CollectionClient } from './collection-client-DBrLM9RR.js';
|
|
5
|
+
import './payload-types-zukuL1s_.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-CkY2zB6J.js';
|
|
8
|
+
import './types-SsS04wGw.js';
|
|
9
9
|
import './metadata.js';
|
|
10
10
|
|
|
11
11
|
type PreviewDetailParams = {
|
package/dist/server.js
CHANGED
|
@@ -1343,6 +1343,10 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
|
1343
1343
|
configure: operation("tenants", "patch", "/embedded-admin-app"),
|
|
1344
1344
|
disable: operation("tenants", "delete", "/embedded-admin-app")
|
|
1345
1345
|
};
|
|
1346
|
+
var FIELD_CONFIG_ENDPOINT_OPERATIONS = {
|
|
1347
|
+
list: operation("field-configs", "get", "/list"),
|
|
1348
|
+
save: operation("field-configs", "post", "/save")
|
|
1349
|
+
};
|
|
1346
1350
|
var EVENTS_ENDPOINT_OPERATIONS = {
|
|
1347
1351
|
registrations: {
|
|
1348
1352
|
register: operation("event-registrations", "post", "/register"),
|
|
@@ -5520,10 +5524,13 @@ function buildProductHref(product, group, options = {}) {
|
|
|
5520
5524
|
return params.size > 0 ? `${path}?${params.toString()}` : path;
|
|
5521
5525
|
}
|
|
5522
5526
|
function compareVariantOrder(a, b) {
|
|
5523
|
-
const aOrder =
|
|
5524
|
-
const bOrder =
|
|
5525
|
-
if (
|
|
5526
|
-
|
|
5527
|
+
const aOrder = a._order || null;
|
|
5528
|
+
const bOrder = b._order || null;
|
|
5529
|
+
if (aOrder !== bOrder) {
|
|
5530
|
+
if (aOrder === null) return 1;
|
|
5531
|
+
if (bOrder === null) return -1;
|
|
5532
|
+
const byOrder = compareOrdinal(aOrder, bOrder);
|
|
5533
|
+
if (byOrder !== 0) return byOrder;
|
|
5527
5534
|
}
|
|
5528
5535
|
const aId = String(getRelationID(a.id) ?? "");
|
|
5529
5536
|
const bId = String(getRelationID(b.id) ?? "");
|
|
@@ -5774,11 +5781,7 @@ function buildProductListingPageWhere(params) {
|
|
|
5774
5781
|
const search = params.search?.trim();
|
|
5775
5782
|
if (search) {
|
|
5776
5783
|
clauses.push({
|
|
5777
|
-
or: [
|
|
5778
|
-
{ title: { like: search } },
|
|
5779
|
-
{ slug: { like: search } },
|
|
5780
|
-
{ handle: { like: search } }
|
|
5781
|
-
]
|
|
5784
|
+
or: [{ title: { like: search } }, { slug: { like: search } }]
|
|
5782
5785
|
});
|
|
5783
5786
|
}
|
|
5784
5787
|
const filters = params.filters;
|