@01.software/sdk 0.72.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 +73 -0
- package/README.md +70 -3
- package/dist/client.cjs +21 -11
- 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 +21 -11
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-B3CnqMDQ.d.cts → collection-client-Bb1Wa6T6.d.cts} +4 -4
- package/dist/{collection-client-uOgS_1bC.d.ts → collection-client-DBrLM9RR.d.ts} +4 -4
- package/dist/{const-BJBK7jBl.d.ts → const-CkY2zB6J.d.ts} +1 -1
- package/dist/{const-_ZfJjRQG.d.cts → const-DWTSgCkn.d.cts} +1 -1
- package/dist/{index-CBaP4q8r.d.ts → index-Daoh-98A.d.ts} +3 -3
- package/dist/{index-CI_LFWiG.d.cts → index-Di5AybQN.d.cts} +3 -3
- package/dist/index.cjs +22 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BRg8Yary.d.cts → payload-types-zukuL1s_.d.cts} +408 -1761
- package/dist/{payload-types-BRg8Yary.d.ts → payload-types-zukuL1s_.d.ts} +408 -1761
- 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 +51 -19
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.js +51 -19
- package/dist/server.js.map +1 -1
- package/dist/{types-FyklqLAk.d.cts → types-BI7aowdu.d.cts} +4 -4
- package/dist/{types-Cmnxxvuv.d.ts → types-BsJokT6P.d.ts} +76 -16
- package/dist/{types-DLjSqL0P.d.ts → types-SsS04wGw.d.ts} +4 -4
- package/dist/{types-CnkJQUez.d.cts → types-evAvqRBj.d.cts} +76 -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
|
|
2
|
-
export { A as AddItemParams,
|
|
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 = {
|
|
@@ -37,6 +37,7 @@ declare class ServerClient {
|
|
|
37
37
|
endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
|
|
38
38
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
39
39
|
billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
|
|
40
|
+
billingCustodyContext: (params: BillingCustodyContextParams) => Promise<BillingCustodyContextResponse>;
|
|
40
41
|
};
|
|
41
42
|
customerGroups: CustomerGroupApi;
|
|
42
43
|
externalEffectClaims: ExternalEffectClaimsApi;
|
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
|
|
2
|
-
export { A as AddItemParams,
|
|
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 = {
|
|
@@ -37,6 +37,7 @@ declare class ServerClient {
|
|
|
37
37
|
endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
|
|
38
38
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
39
39
|
billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
|
|
40
|
+
billingCustodyContext: (params: BillingCustodyContextParams) => Promise<BillingCustodyContextResponse>;
|
|
40
41
|
};
|
|
41
42
|
customerGroups: CustomerGroupApi;
|
|
42
43
|
externalEffectClaims: ExternalEffectClaimsApi;
|
package/dist/server.js
CHANGED
|
@@ -853,7 +853,7 @@ async function httpFetch(url, options) {
|
|
|
853
853
|
);
|
|
854
854
|
const usageError = attachRequestId(
|
|
855
855
|
createUsageLimitError(
|
|
856
|
-
`Monthly API usage limit exceeded (${current.toLocaleString()}/${limit.toLocaleString()})`,
|
|
856
|
+
`Monthly API usage limit exceeded (${current.toLocaleString("en-US")}/${limit.toLocaleString("en-US")})`,
|
|
857
857
|
{ limit, current, remaining },
|
|
858
858
|
{
|
|
859
859
|
url,
|
|
@@ -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"),
|
|
@@ -4910,6 +4914,11 @@ function getRelationID(value) {
|
|
|
4910
4914
|
}
|
|
4911
4915
|
return void 0;
|
|
4912
4916
|
}
|
|
4917
|
+
function compareOrdinal(left, right) {
|
|
4918
|
+
if (left < right) return -1;
|
|
4919
|
+
if (left > right) return 1;
|
|
4920
|
+
return 0;
|
|
4921
|
+
}
|
|
4913
4922
|
function extractEntityId(value) {
|
|
4914
4923
|
if (typeof value === "string") return value;
|
|
4915
4924
|
if (typeof value === "number") return String(value);
|
|
@@ -5515,14 +5524,17 @@ function buildProductHref(product, group, options = {}) {
|
|
|
5515
5524
|
return params.size > 0 ? `${path}?${params.toString()}` : path;
|
|
5516
5525
|
}
|
|
5517
5526
|
function compareVariantOrder(a, b) {
|
|
5518
|
-
const aOrder =
|
|
5519
|
-
const bOrder =
|
|
5520
|
-
if (
|
|
5521
|
-
|
|
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;
|
|
5522
5534
|
}
|
|
5523
5535
|
const aId = String(getRelationID(a.id) ?? "");
|
|
5524
5536
|
const bId = String(getRelationID(b.id) ?? "");
|
|
5525
|
-
return aId
|
|
5537
|
+
return compareOrdinal(aId, bId);
|
|
5526
5538
|
}
|
|
5527
5539
|
function getVariantAvailableForSale(variant) {
|
|
5528
5540
|
if (variant.isActive === false) return false;
|
|
@@ -5769,11 +5781,7 @@ function buildProductListingPageWhere(params) {
|
|
|
5769
5781
|
const search = params.search?.trim();
|
|
5770
5782
|
if (search) {
|
|
5771
5783
|
clauses.push({
|
|
5772
|
-
or: [
|
|
5773
|
-
{ title: { like: search } },
|
|
5774
|
-
{ slug: { like: search } },
|
|
5775
|
-
{ handle: { like: search } }
|
|
5776
|
-
]
|
|
5784
|
+
or: [{ title: { like: search } }, { slug: { like: search } }]
|
|
5777
5785
|
});
|
|
5778
5786
|
}
|
|
5779
5787
|
const filters = params.filters;
|
|
@@ -6729,6 +6737,8 @@ function buildRangeEndpoint(params) {
|
|
|
6729
6737
|
function buildAdmissionAvailabilityEndpoint(params) {
|
|
6730
6738
|
const urlParams = new URLSearchParams();
|
|
6731
6739
|
urlParams.set("occurrence", params.occurrence);
|
|
6740
|
+
const normalizedMarket2 = params.market?.trim();
|
|
6741
|
+
if (normalizedMarket2) urlParams.set("market", normalizedMarket2);
|
|
6732
6742
|
return resolveOperationPath(
|
|
6733
6743
|
EVENTS_ENDPOINT_OPERATIONS.occurrences.admissionAvailability,
|
|
6734
6744
|
{ query: urlParams }
|
|
@@ -6931,16 +6941,37 @@ var MembershipApi = class extends BaseApi {
|
|
|
6931
6941
|
}
|
|
6932
6942
|
/**
|
|
6933
6943
|
* Store/read only app-encrypted billing ciphertext for the Membership's
|
|
6934
|
-
* method.
|
|
6935
|
-
*
|
|
6936
|
-
*
|
|
6944
|
+
* method. Obtain generation from billingCustodyContext before a new upload
|
|
6945
|
+
* or read, and retain that same generation for every mutation based on the
|
|
6946
|
+
* read. Never rediscover and retry a mutation after a generation mismatch.
|
|
6937
6947
|
*/
|
|
6938
6948
|
async billingCustody(params) {
|
|
6939
6949
|
const { webhookSecret, ...input } = params;
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6950
|
+
return this.requestBillingCustody(
|
|
6951
|
+
{
|
|
6952
|
+
kind: "billing-custody.v1",
|
|
6953
|
+
...input
|
|
6954
|
+
},
|
|
6955
|
+
webhookSecret
|
|
6956
|
+
);
|
|
6957
|
+
}
|
|
6958
|
+
/** Requires the same server key, Membership and delegated HMAC as custody. */
|
|
6959
|
+
async billingCustodyContext(params) {
|
|
6960
|
+
const result = await this.requestBillingCustody(
|
|
6961
|
+
{
|
|
6962
|
+
kind: "billing-custody.v1",
|
|
6963
|
+
action: "context",
|
|
6964
|
+
membershipId: params.membershipId
|
|
6965
|
+
},
|
|
6966
|
+
params.webhookSecret
|
|
6967
|
+
);
|
|
6968
|
+
if (!result || typeof result !== "object" || Array.isArray(result) || Object.keys(result).length !== 2 || !("action" in result) || result.action !== "context" || !("generation" in result) || typeof result.generation !== "string" || !/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(
|
|
6969
|
+
result.generation
|
|
6970
|
+
))
|
|
6971
|
+
throw new Error("Invalid billing custody context response");
|
|
6972
|
+
return { action: "context", generation: result.generation };
|
|
6973
|
+
}
|
|
6974
|
+
async requestBillingCustody(body, webhookSecret) {
|
|
6944
6975
|
const timestamp2 = Date.now().toString();
|
|
6945
6976
|
const deliveryId = crypto.randomUUID();
|
|
6946
6977
|
const signature = await custodySignature(
|
|
@@ -7304,7 +7335,8 @@ var ServerClient = class _ServerClient {
|
|
|
7304
7335
|
subscribe: membershipApi.subscribe.bind(membershipApi),
|
|
7305
7336
|
endSubscribeIntent: membershipApi.endSubscribeIntent.bind(membershipApi),
|
|
7306
7337
|
cancel: membershipApi.cancel.bind(membershipApi),
|
|
7307
|
-
billingCustody: membershipApi.billingCustody.bind(membershipApi)
|
|
7338
|
+
billingCustody: membershipApi.billingCustody.bind(membershipApi),
|
|
7339
|
+
billingCustodyContext: membershipApi.billingCustodyContext.bind(membershipApi)
|
|
7308
7340
|
};
|
|
7309
7341
|
this.customerGroups = new CustomerGroupApi(serverOptions);
|
|
7310
7342
|
this.externalEffectClaims = new ExternalEffectClaimsApi(serverOptions);
|