@01.software/sdk 0.74.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +79 -1
  3. package/dist/client.cjs +47 -5
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +6 -6
  6. package/dist/client.d.ts +6 -6
  7. package/dist/client.js +47 -5
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-Bb1Wa6T6.d.cts → collection-client-BNC6tUdK.d.cts} +3 -4
  10. package/dist/{collection-client-DBrLM9RR.d.ts → collection-client-CNkBMUHj.d.ts} +3 -4
  11. package/dist/collection-documents-Bl0AF0m0.d.cts +5486 -0
  12. package/dist/collection-documents-Bl0AF0m0.d.ts +5486 -0
  13. package/dist/{const-CkY2zB6J.d.ts → const-CcOT0taO.d.cts} +1 -3
  14. package/dist/{const-DWTSgCkn.d.cts → const-CcOT0taO.d.ts} +1 -3
  15. package/dist/{index-Daoh-98A.d.ts → index-CQsJvMCN.d.ts} +2 -3
  16. package/dist/{index-Di5AybQN.d.cts → index-CfxkqaY9.d.cts} +2 -3
  17. package/dist/index.cjs +48 -5
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +7 -7
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +48 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/query.cjs +12 -1
  24. package/dist/query.cjs.map +1 -1
  25. package/dist/query.d.cts +5 -5
  26. package/dist/query.d.ts +5 -5
  27. package/dist/query.js +12 -1
  28. package/dist/query.js.map +1 -1
  29. package/dist/realtime.d.cts +1 -2
  30. package/dist/realtime.d.ts +1 -2
  31. package/dist/server.cjs +38 -2
  32. package/dist/server.cjs.map +1 -1
  33. package/dist/server.d.cts +7 -7
  34. package/dist/server.d.ts +7 -7
  35. package/dist/server.js +38 -2
  36. package/dist/server.js.map +1 -1
  37. package/dist/{types-BsJokT6P.d.ts → types-Btxz6NVi.d.ts} +106 -19
  38. package/dist/types-CQw4HXky.d.ts +151 -0
  39. package/dist/{types-evAvqRBj.d.cts → types-DMwRdJ-4.d.cts} +106 -19
  40. package/dist/types-Jr4xTiGs.d.cts +151 -0
  41. package/dist/ui/form.cjs.map +1 -1
  42. package/dist/ui/form.d.cts +1 -1
  43. package/dist/ui/form.d.ts +1 -1
  44. package/dist/ui/form.js.map +1 -1
  45. package/dist/ui/video.cjs.map +1 -1
  46. package/dist/ui/video.d.cts +1 -1
  47. package/dist/ui/video.d.ts +1 -1
  48. package/dist/ui/video.js.map +1 -1
  49. package/dist/webhook.d.cts +7 -5
  50. package/dist/webhook.d.ts +7 -5
  51. package/package.json +1 -1
  52. package/dist/payload-types-zukuL1s_.d.cts +0 -12617
  53. package/dist/payload-types-zukuL1s_.d.ts +0 -12617
  54. package/dist/types-BI7aowdu.d.cts +0 -53
  55. package/dist/types-SsS04wGw.d.ts +0 -53
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-DWTSgCkn.cjs';
2
- import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-BI7aowdu.cjs';
3
- import { O as Order, l as Transaction, m as Fulfillment, n as Return } from './payload-types-zukuL1s_.cjs';
1
+ import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-CcOT0taO.cjs';
2
+ import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-Jr4xTiGs.cjs';
3
+ import { a6 as Order, aj as Transaction, a9 as Return } from './collection-documents-Bl0AF0m0.cjs';
4
4
  import { SDKError } from './errors.cjs';
5
5
 
6
6
  declare const BENEFIT_VOUCHER_VOID_REASONS: readonly ["issued_in_error", "benefit_revoked", "customer_request", "other"];
@@ -1069,9 +1069,12 @@ type ReturnWithRefundItem = {
1069
1069
  };
1070
1070
  type ReturnWithRefundParams = WithIdempotencyKey<{
1071
1071
  orderNumber: string;
1072
+ /** Complete an approved Return for this order using its persisted items, amounts, fees and reason. */
1073
+ existingReturnId?: string;
1072
1074
  reason?: ReturnReason;
1073
1075
  reasonDetail?: string;
1074
1076
  returnItems: ReturnWithRefundItem[];
1077
+ /** Line refund after return shipping/restocking fees; initial shipping refund is added separately. */
1075
1078
  refundAmount: number;
1076
1079
  returnShippingFee?: number;
1077
1080
  initialShippingRefundAmount?: number;
@@ -1084,6 +1087,47 @@ type ReturnWithRefundParams = WithIdempotencyKey<{
1084
1087
  /** Canonical trimmed receipt URL; the server rejects values over 2048 characters. */
1085
1088
  refundReceiptUrl?: string;
1086
1089
  }>;
1090
+ /** Shipment mutation receipt. Relationships are IDs; raw document extensions are excluded. */
1091
+ type FulfillmentMutationResponse = {
1092
+ id: string;
1093
+ tenant?: string | null;
1094
+ order: string;
1095
+ fulfillmentOrder: string | null;
1096
+ status: 'pending' | 'packed' | 'shipped' | 'delivered' | 'canceled' | 'failed';
1097
+ carrier?: string | null;
1098
+ trackingNumber?: string | null;
1099
+ trackingUrl?: string | null;
1100
+ packedAt?: string | null;
1101
+ shippedAt?: string | null;
1102
+ deliveredAt?: string | null;
1103
+ createdAt: string;
1104
+ updatedAt: string;
1105
+ };
1106
+ /** Bounded completion receipt; full Return/Transaction documents require separate reads. */
1107
+ type ReturnWithRefundResponse = {
1108
+ return: {
1109
+ id: string;
1110
+ status: 'completed';
1111
+ refundAmount: number;
1112
+ returnShippingFee: number;
1113
+ initialShippingRefundAmount: number;
1114
+ completedAt: string;
1115
+ };
1116
+ notificationWarning?: string;
1117
+ } & ({
1118
+ transaction: {
1119
+ id: string;
1120
+ type: 'refund';
1121
+ kind: 'refund';
1122
+ status: 'refunded';
1123
+ amount: number;
1124
+ providerEventId: string | null;
1125
+ };
1126
+ refundSeq: number;
1127
+ } | {
1128
+ transaction: null;
1129
+ refundSeq: null;
1130
+ });
1087
1131
  type CreateFulfillmentParams = WithIdempotencyKey<{
1088
1132
  orderNumber: string;
1089
1133
  fulfillmentOrderId?: string | number;
@@ -1161,14 +1205,23 @@ declare class OrderApi extends BaseApi {
1161
1205
  getByPaymentId(params: GetOrderByPaymentIdParams): Promise<OrderByPaymentResult>;
1162
1206
  cancelOrder(params: CancelOrderParams): Promise<CancelOrderResponse>;
1163
1207
  resolveCancelRefund(params: ResolveCancelRefundParams): Promise<ResolveCancelRefundResponse>;
1164
- createFulfillment(params: CreateFulfillmentParams): Promise<Fulfillment>;
1208
+ /**
1209
+ * Creates a shipment from an in-progress fulfillment order.
1210
+ * Call `prepareFulfillmentOrder` for the same orderNumber first; payment alone
1211
+ * does not prepare the fulfillment order. This method does not prepare it
1212
+ * automatically and returns HTTP 400 `not_fulfillable` when none is in progress.
1213
+ */
1214
+ createFulfillment(params: CreateFulfillmentParams): Promise<FulfillmentMutationResponse>;
1215
+ /**
1216
+ * Moves a paid order's open fulfillment orders to in_progress.
1217
+ * Call this before `createFulfillment` for the same orderNumber: shipment
1218
+ * creation requires an in-progress fulfillment order. Preparation does not
1219
+ * require carrier or tracking information.
1220
+ */
1165
1221
  prepareFulfillmentOrder(params: PrepareFulfillmentOrderParams): Promise<PrepareFulfillmentOrderResponse>;
1166
- updateFulfillment(params: UpdateFulfillmentParams): Promise<Fulfillment>;
1222
+ updateFulfillment(params: UpdateFulfillmentParams): Promise<FulfillmentMutationResponse>;
1167
1223
  bulkImportFulfillments(params: BulkImportFulfillmentsParams): Promise<BulkImportFulfillmentsResponse>;
1168
- returnWithRefund(params: ReturnWithRefundParams): Promise<{
1169
- return: Return;
1170
- transaction: Transaction | null;
1171
- }>;
1224
+ returnWithRefund(params: ReturnWithRefundParams): Promise<ReturnWithRefundResponse>;
1172
1225
  createReturn(params: CreateReturnParams): Promise<Return>;
1173
1226
  updateReturn(params: UpdateReturnParams): Promise<Return>;
1174
1227
  }
@@ -1350,6 +1403,17 @@ interface CustomerAuthOptions {
1350
1403
  interface CustomerWithdrawalResult {
1351
1404
  withdrawnAt: string;
1352
1405
  }
1406
+ /** Reauthenticate only the requested withdrawal; never starts a login session. */
1407
+ type CustomerWithdrawalRequest = {
1408
+ currentPassword: string;
1409
+ } | {
1410
+ emailCode: string;
1411
+ };
1412
+ type CustomerWithdrawalCodeResult = {
1413
+ message: string;
1414
+ };
1415
+ /** Code-issuance 409 reasons; common HTTP/auth errors also apply. */
1416
+ type CustomerWithdrawalCodeReauthenticationReason = 'password_reauthentication_required' | 'withdrawal_session_refresh_required';
1353
1417
 
1354
1418
  type CustomerOrderListOptions = {
1355
1419
  page?: number;
@@ -1484,8 +1548,10 @@ declare class CustomerAuth {
1484
1548
  * revocation fails. A legacy access-only session has no refresh family here.
1485
1549
  */
1486
1550
  logoutAsync(): Promise<void>;
1487
- /** Archive the current password account and clear this client's credentials on success. */
1488
- withdraw(currentPassword: string): Promise<CustomerWithdrawalResult>;
1551
+ /** Send a withdrawal-only code to the current passwordless customer's stored email. */
1552
+ requestWithdrawalCode(): Promise<CustomerWithdrawalCodeResult>;
1553
+ /** Archive the current account and clear this client's credentials on success. */
1554
+ withdraw(proof: string | CustomerWithdrawalRequest): Promise<CustomerWithdrawalResult>;
1489
1555
  /**
1490
1556
  * Get the current authenticated customer's profile
1491
1557
  */
@@ -3360,16 +3426,13 @@ declare class ServerCommerceClient {
3360
3426
  getByPaymentId: (params: GetOrderByPaymentIdParams) => Promise<OrderByPaymentResult>;
3361
3427
  cancelOrder: (params: CancelOrderParams) => Promise<CancelOrderResponse>;
3362
3428
  resolveCancelRefund: (params: ResolveCancelRefundParams) => Promise<ResolveCancelRefundResponse>;
3363
- createFulfillment: (params: CreateFulfillmentParams) => Promise<Fulfillment>;
3429
+ createFulfillment: (params: CreateFulfillmentParams) => Promise<FulfillmentMutationResponse>;
3364
3430
  prepareFulfillmentOrder: (params: PrepareFulfillmentOrderParams) => Promise<PrepareFulfillmentOrderResponse>;
3365
- updateFulfillment: (params: UpdateFulfillmentParams) => Promise<Fulfillment>;
3431
+ updateFulfillment: (params: UpdateFulfillmentParams) => Promise<FulfillmentMutationResponse>;
3366
3432
  bulkImportFulfillments: (params: BulkImportFulfillmentsParams) => Promise<BulkImportFulfillmentsResponse>;
3367
3433
  createReturn: (params: CreateReturnParams) => Promise<Return>;
3368
3434
  updateReturn: (params: UpdateReturnParams) => Promise<Return>;
3369
- returnWithRefund: (params: ReturnWithRefundParams) => Promise<{
3370
- return: Return;
3371
- transaction: Transaction | null;
3372
- }>;
3435
+ returnWithRefund: (params: ReturnWithRefundParams) => Promise<ReturnWithRefundResponse>;
3373
3436
  };
3374
3437
  readonly checkouts: {
3375
3438
  create: (params: CreateServerCheckoutParams) => Promise<CreateServerCheckoutResult>;
@@ -3559,7 +3622,30 @@ interface EventRegistrationRegisterParams {
3559
3622
  quantity?: number;
3560
3623
  attendee?: EventRegistrationAttendeeInput;
3561
3624
  answers?: EventRegistrationAnswerInput[];
3625
+ /** Required only when the event enables email verification. */
3626
+ emailVerification?: {
3627
+ requestId: string;
3628
+ code: string;
3629
+ };
3562
3630
  }
3631
+ interface EventRegistrationEmailVerificationRequest {
3632
+ event: string;
3633
+ occurrence: string;
3634
+ quantity?: number;
3635
+ attendee: {
3636
+ name?: string;
3637
+ email: string;
3638
+ phone?: string;
3639
+ };
3640
+ answers?: EventRegistrationAnswerInput[];
3641
+ }
3642
+ type EventRegistrationEmailVerificationResponse = {
3643
+ verificationRequired: false;
3644
+ } | {
3645
+ verificationRequired: true;
3646
+ requestId: string;
3647
+ expiresAt: string;
3648
+ };
3563
3649
  interface EventRegistrationPublic {
3564
3650
  id?: string | number;
3565
3651
  event?: unknown;
@@ -3636,6 +3722,7 @@ declare class EventsClient {
3636
3722
  getAdmissionAvailability(params: EventAdmissionAvailabilityParams): Promise<EventAdmissionAvailabilityResponse>;
3637
3723
  listMyRegistrations(params?: EventMyRegistrationsParams): Promise<EventMyRegistrationsResponse>;
3638
3724
  register(params: EventRegistrationRegisterParams): Promise<EventRegistrationRegisterResponse>;
3725
+ requestRegistrationEmailVerification(params: EventRegistrationEmailVerificationRequest): Promise<EventRegistrationEmailVerificationResponse>;
3639
3726
  getGuestRegistration(token: string): Promise<EventGuestRegistrationResponse>;
3640
3727
  cancelGuestRegistration(token: string, params?: EventGuestCancelParams): Promise<EventGuestRegistrationResponse>;
3641
3728
  private execute;
@@ -4459,7 +4546,7 @@ interface RootClient {
4459
4546
  getConfig(): ClientConfig;
4460
4547
  }
4461
4548
  /** Publishable-key event helpers usable without a customer session. */
4462
- type ServerEventsClient = Pick<EventsClient, 'getRange' | 'getAdmissionAvailability' | 'register' | 'getGuestRegistration' | 'cancelGuestRegistration'>;
4549
+ type ServerEventsClient = Pick<EventsClient, 'getRange' | 'getAdmissionAvailability' | 'register' | 'requestRegistrationEmailVerification' | 'getGuestRegistration' | 'cancelGuestRegistration'>;
4463
4550
  interface RootServerClient {
4464
4551
  commerce: ServerCommerceClient;
4465
4552
  tenant: TenantIntrospectionClient;
@@ -4507,4 +4594,4 @@ type DeepPartial<T> = {
4507
4594
  };
4508
4595
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
4509
4596
 
4510
- export { type ClearCartParams as $, type AddItemParams as A, type BillingCustodyParams as B, type CancelMembershipParams as C, type CartApiOptions as D, type EndSubscribeIntentParams as E, type CartMergeResult as F, type CartMineResult as G, type CartMutationResult as H, InstallationCredentialsApi as I, type CheckoutAbandonedReason as J, type CheckoutAmounts as K, CheckoutApi as L, MarketDiscovery as M, type CheckoutApiOptions as N, type CheckoutListItem as O, type CheckoutOrderReference as P, type CheckoutPaymentSessionRef as Q, RawBaseApi as R, type ServerApiOptions as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, VideoPlaybackClient as V, type CheckoutQueryParams as W, type CheckoutQueryResult as X, type CheckoutShippingAddress as Y, type CheckoutStatus as Z, type ClaimExternalEffectParams as _, ServerCommerceClient as a, type ExternalCustomerLinkListResponse as a$, type CollectionCustomFieldDefinition as a0, type CollectionCustomFields as a1, type CollectionFieldSchema as a2, type CollectionSchemaResponse as a3, type ConfirmCustomPaymentSessionOptions as a4, type ConfirmCustomPaymentSessionParams as a5, type ConfirmCustomPaymentSessionResponse as a6, type ConfirmTossPaymentSessionParams as a7, type ConnectExternalCustomerLinkParams as a8, type CreateCartParams as a9, type EventAdmissionAvailabilityResponse as aA, type EventAdmissionAvailabilityType as aB, type EventAdmissionPricePresentment as aC, type EventGuestCancelParams as aD, type EventGuestRegistration as aE, type EventGuestRegistrationResponse as aF, type EventMyRegistration as aG, type EventMyRegistrationsParams as aH, type EventMyRegistrationsResponse as aI, type EventRegistrationAnswerInput as aJ, type EventRegistrationAttendeeInput as aK, type EventRegistrationPublic as aL, type EventRegistrationRegisterParams as aM, type EventRegistrationRegisterResponse as aN, type EventsCalendarItem as aO, EventsClient as aP, type EventsClientOptions as aQ, type EventsDateParam as aR, type EventsExternalSource as aS, type EventsLocation as aT, type EventsOccurrenceLocation as aU, type EventsRangeEvent as aV, type EventsRangeOccurrence as aW, type EventsRangeParams as aX, type EventsRangeResponse as aY, type EventsTaxonomyItem as aZ, type ExternalCustomerLink as a_, type CreateCartResult as aa, type CreateCustomPaymentSessionParams as ab, type CreateInstallationCredentialParams as ac, type CreatePaymentSessionParams as ad, type CreatePortOnePaymentSessionParams as ae, type CreateServerCheckoutParams as af, type CreateServerCheckoutResult as ag, type CreateServerPaymentSessionParams as ah, type CreateServerPortOnePaymentSessionParams as ai, type CustomPaymentSession as aj, type CustomPaymentSessionProof as ak, type CustomerBenefitVoucher as al, type CustomerCreditAccountResponse as am, type CustomerCreditBalances as an, type CustomerCreditGrant as ao, type CustomerGroupApiOptions as ap, type CustomerGroupManualSource as aq, type CustomerGroupMember as ar, type CustomerGroupMemberCommandResponse as as, type CustomerGroupMemberSource as at, type CustomerGroupMembershipSource as au, type CustomerGroupMembershipState as av, type CustomerMembershipView as aw, type CustomerSnapshot as ax, type DisposeInstallationCredentialParams as ay, type EventAdmissionAvailabilityParams as az, type SubscribeMembershipParams as b, type PublicCheckout as b$, type ExternalCustomerPreviousState as b0, type ExternalEffectClaimErrorReason as b1, type ExternalEffectClaimSnapshot as b2, type ExternalEffectClaimState as b3, type ExternalEffectLeaseParams as b4, type ExternalEffectLocator as b5, type FindPortOnePaymentParams as b6, type FindPortOnePaymentResult as b7, type GetBenefitVoucherRequest as b8, type GetCustomerCreditAccountRequest as b9, type PaymentFailureReason as bA, type PaymentNextAction as bB, type PaymentProviderStatus as bC, type PaymentReconciliationReason as bD, PaymentSessionApi as bE, type PaymentSessionApiOptions as bF, type PaymentSessionRole as bG, type PortOneHostedPaymentMethod as bH, type PortOnePaymentCurrentState as bI, type PortOnePaymentNextAction as bJ, PortOnePaymentReconciliationApi as bK, type PortOnePaymentSelector as bL, type PortOnePublicPaymentSession as bM, type PortOneReconciliationDisposition as bN, type ProductGraphRevisionParams as bO, type ProductGraphRevisionResponse as bP, type ProductUpsertInput as bQ, type ProductUpsertParams as bR, type ProductUpsertResponse as bS, type ProductUpsertVariantInput as bT, type PublicAttribute as bU, type PublicCaptureEvidence as bV, type PublicCart as bW, type PublicCartItem as bX, type PublicCartItemAdmission as bY, type PublicCartMarket as bZ, type PublicCartReference as b_, type GetCustomerCreditGrantRequest as ba, type GetExternalCustomerLinkParams as bb, type GetExternalEffectClaimParams as bc, type GrantCustomerCreditRequest as bd, type GrantCustomerGroupMemberParams as be, type InstallationCredentialIdentity as bf, type InstallationCredentialSnapshot as bg, type IssueBenefitVoucherRequest as bh, type IssueBenefitVoucherResponse as bi, type ListBenefitVouchersRequest as bj, type ListBenefitVouchersResponse as bk, type ListCustomerGroupMembersParams as bl, type ListCustomerGroupMembersResponse as bm, type ListExternalCustomerLinksParams as bn, type ListMyBenefitVouchersRequest as bo, type ListMyBenefitVouchersResponse as bp, type MembershipStatus as bq, ModerationApi as br, type Money as bs, type MutateBenefitVoucherResponse as bt, type MutateExternalCustomerLinkParams as bu, type MyCustomerCreditHistoryRequest as bv, type MyCustomerCreditHistoryResponse as bw, type MyCustomerCreditsRequest as bx, type MyCustomerCreditsResponse as by, type OpenCheckoutPaymentState as bz, type SubscribeMembershipResponse as c, type VoidBenefitVoucherRequest as c$, type PublicCheckoutItem as c0, type PublicMediaAsset as c1, type PublicMediaSize as c2, type PublicOrder as c3, type PublicOrderAmounts as c4, type PublicOrderItem as c5, type PublicOrderReference as c6, type PublicPaymentSession as c7, type ReconcilePortOnePaymentParams as c8, type ReconcilePortOnePaymentResult as c9, type TenantContextResponse as cA, type TenantCustomFieldType as cB, type TenantCustomersFeatureProgressResponse as cC, type TenantEcommerceFeatureProgressResponse as cD, type TenantEventsFeatureProgressResponse as cE, type TenantFeatureProgressEvidenceValue as cF, type TenantFeatureProgressFeature as cG, type TenantFeatureProgressGroup as cH, type TenantFeatureProgressInput as cI, type TenantFeatureProgressItem as cJ, type TenantFeatureProgressItemState as cK, type TenantFeatureProgressResponse as cL, type TenantFeatureProgressResponseFor as cM, type TenantFeatureProgressResponseUnion as cN, type TenantFeatureProgressSeverity as cO, type TenantFeatureProgressStatus as cP, type TenantFieldConfigState as cQ, TenantIntrospectionApi as cR, type TenantIntrospectionApiOptions as cS, type TenantMembershipFeatureProgressResponse as cT, type UpdateCartAttributesParams as cU, type UpdateDiscountCodesParams as cV, type UpdateItemParams as cW, type VariantInput as cX, type VariantPricesUpdateInput as cY, type VariantPricesUpdateParams as cZ, type VariantPricesUpdateResponse as c_, type ReconciliationRequired as ca, type RecordExternalEffectRecoveryParams as cb, type RedeemBenefitVoucherRequest as cc, type RemoveItemParams as cd, type ReplaceInstallationCredentialParams as ce, type ReportExternalEffectParams as cf, type RetrieveCartParams as cg, type RetrieveCheckoutParams as ch, type RetrieveCustomPaymentSessionParams as ci, type RetrieveServerCheckoutParams as cj, type RetrieveServerPaymentSessionParams as ck, type RetrievedCustomPaymentSession as cl, type RevokeCustomerCreditRequest as cm, type RevokeCustomerCreditResponse as cn, type RevokeCustomerGroupMemberParams as co, type RootServerClient as cp, type ServerAddItemParams as cq, type ServerCartMergeParams as cr, type ServerCartMineParams as cs, type ServerCheckout as ct, type ServerUpdateItemParams as cu, type ShippingLine as cv, type SpentCheckoutPaymentState as cw, TENANT_CONTEXT_PATH as cx, type TenantCommunityFeatureProgressResponse as cy, type TenantContextInput as cz, type EndSubscribeIntentResponse as d, type ProductListingGroupsItem as d$, getExternalEffectClaimErrorReason as d0, invalidBenefitVoucherResponse as d1, parseBenefitVoucher as d2, parseBenefitVoucherList as d3, parseCustomerCreditAccount as d4, parseCustomerCreditGrant as d5, parseMyCustomerCreditHistory as d6, parseMyCustomerCredits as d7, parseRevokeCustomerCredit as d8, CustomerScopedApi as d9, type StorefrontGalleryItem as dA, type StorefrontGalleryItemsListOptions as dB, type StorefrontGalleryItemsSort as dC, type StorefrontLink as dD, type StorefrontLinksListOptions as dE, type StorefrontLinksSort as dF, type Where as dG, type ApiDocumentWriteOptions as dH, type ApiWriteOptions as dI, type ApiDeleteOptions as dJ, type PublicReadQueryOptions as dK, CustomerAuth as dL, type CustomerProfile as dM, type CustomerAuthResponse as dN, type CustomerLoginData as dO, type CustomerRegisterResponse as dP, type CustomerRegisterData as dQ, type CustomerRefreshResponse as dR, type UpdateProfileData as dS, type ProductListingPageParams as dT, type ProductListingPageBaseParams as dU, type ProductDetailParams as dV, type ProductDetailCatalogResult as dW, type ProductListingPageCatalogParams as dX, type ProductListingPageResult as dY, type ProductListingGroupsCatalogItem as dZ, type ProductListingPageFullParams as d_, CustomerCreditsApi as da, CommerceClient as db, ContentClient as dc, CustomerNamespace as dd, type ClientConfig as de, type ApiQueryOptions as df, type CancelBrowserPaymentSessionParams as dg, type CartMergeParams as dh, type ClientMetadata as di, type ContentClientOptions as dj, type CreateCheckoutParams as dk, type CreateCheckoutResult as dl, type DebugConfig as dm, type DeepPartial as dn, type ExtractArrayType as dp, type PayloadFindResponse as dq, type PayloadMutationResponse as dr, type RetrieveBrowserPaymentSessionParams as ds, type RetryConfig as dt, type RootClient as du, type RootCollectionClient as dv, type RootReadOnlyQueryBuilder as dw, type Sort as dx, type StorefrontContentListOptions as dy, type StorefrontContentReference as dz, type CancelMembershipResponse as e, PRODUCT_PLP_FIND_OPTIONS as e$, BaseApi as e0, type ProductDetail as e1, type ProductDetailCatalog as e2, type StockSnapshotResponse as e3, type RootClientWithEvents as e4, type BillingCustodyContextWireRequest as e5, type BillingCustodyWireRequest as e6, type BulkImportFulfillmentsParams as e7, type BulkImportFulfillmentsResponse as e8, type CalculateShippingParams as e9, type CustomerAuthOptions as eA, type CustomerAuthorizationUrlInput as eB, type CustomerAuthorizationUrlResult as eC, CustomerOAuth as eD, type CustomerOAuthCallbackResult as eE, type CustomerOAuthConfig as eF, type CustomerOAuthTokenSet as eG, type CustomerOrderListOptions as eH, type CustomerWithdrawalResult as eI, DiscountApi as eJ, type DiscountApiOptions as eK, type DiscountErrorReasonCode as eL, type FeaturedImagePointerInput as eM, type GetOrderByPaymentIdParams as eN, type LegacyProductSelectionParamEvent as eO, type ListingGroupsParams as eP, MAX_CART_LINE_ADMISSIONS as eQ, type ManagedCancelRefundOutcome as eR, type ManagedPaymentNextAction as eS, type ManagedPublicPaymentSession as eT, type MarketDTO as eU, type MediaValue as eV, type NormalizedOptionSwatch as eW, type NormalizedProductSelection as eX, OrderApi as eY, type OrderApiOptions as eZ, type OrderByPaymentResult as e_, type CalculateShippingResult as ea, type CancelOrderCreditOnlyCommittedResponse as eb, type CancelOrderManagedAlreadyCanceledResponse as ec, type CancelOrderManagedCommittedResponse as ed, type CancelOrderParams as ee, type CancelOrderResponse as ef, type CancelReasonCode as eg, type CartDiscountCode as eh, type CartWarning as ei, type CartWarningCode as ej, type CheckoutFunding as ek, type Comment as el, type CommerceClientOptions as em, type CommunityClientOptions as en, type CommunityComment as eo, type CommunityCommentListSort as ep, type CommunityPost as eq, type CommunityPostCategory as er, type CommunityPostListSort as es, type CommunityPostTag as et, type CommunityPublicAuthorSnapshot as eu, type CommunityPublicMediaAsset as ev, type CommunityPublicReference as ew, type CompatibilityProductSelectionParamEvent as ex, type CreateFulfillmentParams as ey, type CreateReturnParams as ez, type BillingCustodyResponse as f, type ProductSelectionInput as f$, PRODUCT_UPSERT_READONLY_FIELD_REASON as f0, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as f1, type PrepareFulfillmentOrderParams as f2, type PrepareFulfillmentOrderResponse as f3, ProductApi as f4, type ProductApiOptions as f5, type ProductDetailBrand as f6, type ProductDetailCatalogVariant as f7, type ProductDetailCategory as f8, type ProductDetailImage as f9, type ProductListingGroupsCatalogResponse as fA, type ProductListingGroupsProduct as fB, type ProductListingGroupsResponse as fC, type ProductListingPageFilters as fD, type ProductListingPageSort as fE, type ProductListingProductShape as fF, type ProductListingSwatch as fG, type ProductLocaleOption as fH, type ProductLocaleReadParams as fI, type ProductLocalizedText as fJ, type ProductLocalizedValue as fK, type ProductMediaResolutionSource as fL, type ProductMoneyRange as fM, type ProductOptionMatrix as fN, type ProductOptionMatrixOption as fO, type ProductOptionMatrixValue as fP, type ProductOptionMatrixVariant as fQ, type ProductOptionShape as fR, type ProductOptionValueShape as fS, type ProductOptionValueSwatch as fT, type ProductOptionValueSwatchInput as fU, type ProductPriceRange as fV, type ProductSelectionAvailableSwatch as fW, type ProductSelectionAvailableValue as fX, type ProductSelectionByOptionValue as fY, ProductSelectionCodecError as fZ, type ProductSelectionCodecOptions as f_, type ProductDetailImageMedia as fa, type ProductDetailMedia as fb, type ProductDetailOption as fc, type ProductDetailOptionValue as fd, type ProductDetailResult as fe, type ProductDetailTag as ff, type ProductDetailUnavailableReason as fg, type ProductDetailVariant as fh, type ProductDetailVariantOptionValue as fi, type ProductDetailVideo as fj, type ProductDisplayMediaSource as fk, type ProductFallbackLocaleOption as fl, type ProductHrefGroup as fm, type ProductHrefOptions as fn, type ProductHrefProduct as fo, type ProductListingCard as fp, type ProductListingCardOptions as fq, type ProductListingCardPriceRange as fr, type ProductListingCardRepresentativeVariant as fs, type ProductListingGroup as ft, type ProductListingGroupCatalogSummary as fu, type ProductListingGroupCatalogVariant as fv, type ProductListingGroupProjection as fw, type ProductListingGroupSummary as fx, type ProductListingGroupVariant as fy, type ProductListingGroupsCatalogProduct as fz, type BillingCustodyContextParams as g, resolveProductSelectionMedia as g$, type ProductSelectionMediaPointer as g0, type ProductSelectionMediaSource as g1, type ProductSelectionOptionValue as g2, type ProductSelectionResolution as g3, type ProductSelectionResolutionContext as g4, type ProductSelectionUrlEmit as g5, type ProductSelectionVariant$1 as g6, type ProductUpsertFieldValidationErrorBody as g7, type ProductUpsertFieldValidationErrorReason as g8, type ProductVariantShape as g9, type UpdateReturnParams as gA, type ValidateDiscountParams as gB, type ValidateDiscountResult as gC, type VideoPlaybackResponse as gD, type WithIdempotencyKey as gE, buildProductHref as gF, buildProductListingCard as gG, buildProductListingGroupProjection as gH, buildProductListingGroupsByOption as gI, buildProductOptionMatrix as gJ, buildProductOptionMatrixFromDetail as gK, createProductSelectionCodec as gL, getAvailableOptionValues as gM, getProductSelectionImages as gN, getSelectedValueByOptionId as gO, getVariantAvailableForSale as gP, getVariantAvailableStock as gQ, isProductUpsertFieldValidationErrorBody as gR, normalizeProductSelection as gS, normalizeProductSelectionFromMatrix as gT, normalizeSelectedValueIds as gU, parseProductSelection as gV, projectProductToListingShape as gW, resolveFeaturedImagePointer as gX, resolveProductDisplayMedia as gY, resolveProductSelection as gZ, resolveProductSelectionFromMatrix as g_, type PublicCheckoutBase as ga, type RequestOptions as gb, type ResolveCancelRefundFailedResponse as gc, type ResolveCancelRefundOutcome as gd, type ResolveCancelRefundParams as ge, type ResolveCancelRefundResponse as gf, type ResolveCancelRefundSucceededResponse as gg, type ResolveProductDisplayMediaInput as gh, type ResolveProductDisplayMediaResult as gi, type ResolveProductSelectionMediaInput as gj, type ResolveProductSelectionMediaResult as gk, type ResolvedCatalogPrice as gl, type ReturnCancellationReasonCode as gm, type ReturnItem as gn, type ReturnReason as go, type ReturnWithRefundItem as gp, type ReturnWithRefundParams as gq, ShippingApi as gr, type ShippingApiOptions as gs, type StockCheckParams as gt, type StockCheckResponse as gu, type StockCheckResult as gv, type StockSnapshotItem as gw, type StockSnapshotParams as gx, type UpdateFulfillmentParams as gy, type UpdateOrderParams as gz, type BillingCustodyContextResponse as h, resolveVariantForSelection as h0, selectNext as h1, selectedSwatchMediaItemId as h2, stringifyProductSelection as h3, toShopifyPriceRangeV2 as h4, CustomerGroupApi as i, ExternalEffectClaimsApi as j, ExternalCustomerLinksApi as k, BenefitVouchersApi as l, CreditsApi as m, CommunityClient as n, type BanCustomerParams as o, type CommunityBan as p, type ClientState as q, type ClientServerConfig as r, type RootServerClientWithEvents as s, BENEFIT_VOUCHER_ERROR_REASONS as t, BENEFIT_VOUCHER_VOID_REASONS as u, type BenefitVoucher as v, type BenefitVoucherErrorReason as w, type CancelServerPaymentSessionParams as x, type CaptureExternalCustomerPreviousStateParams as y, CartApi as z };
4597
+ export { type ClearCartParams as $, type AddItemParams as A, type BillingCustodyParams as B, type CancelMembershipParams as C, type CartApiOptions as D, type EndSubscribeIntentParams as E, type CartMergeResult as F, type CartMineResult as G, type CartMutationResult as H, InstallationCredentialsApi as I, type CheckoutAbandonedReason as J, type CheckoutAmounts as K, CheckoutApi as L, MarketDiscovery as M, type CheckoutApiOptions as N, type CheckoutListItem as O, type CheckoutOrderReference as P, type CheckoutPaymentSessionRef as Q, RawBaseApi as R, type ServerApiOptions as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, VideoPlaybackClient as V, type CheckoutQueryParams as W, type CheckoutQueryResult as X, type CheckoutShippingAddress as Y, type CheckoutStatus as Z, type ClaimExternalEffectParams as _, ServerCommerceClient as a, type ExternalCustomerLinkListResponse as a$, type CollectionCustomFieldDefinition as a0, type CollectionCustomFields as a1, type CollectionFieldSchema as a2, type CollectionSchemaResponse as a3, type ConfirmCustomPaymentSessionOptions as a4, type ConfirmCustomPaymentSessionParams as a5, type ConfirmCustomPaymentSessionResponse as a6, type ConfirmTossPaymentSessionParams as a7, type ConnectExternalCustomerLinkParams as a8, type CreateCartParams as a9, type EventAdmissionAvailabilityResponse as aA, type EventAdmissionAvailabilityType as aB, type EventAdmissionPricePresentment as aC, type EventGuestCancelParams as aD, type EventGuestRegistration as aE, type EventGuestRegistrationResponse as aF, type EventMyRegistration as aG, type EventMyRegistrationsParams as aH, type EventMyRegistrationsResponse as aI, type EventRegistrationAnswerInput as aJ, type EventRegistrationAttendeeInput as aK, type EventRegistrationPublic as aL, type EventRegistrationRegisterParams as aM, type EventRegistrationRegisterResponse as aN, type EventsCalendarItem as aO, EventsClient as aP, type EventsClientOptions as aQ, type EventsDateParam as aR, type EventsExternalSource as aS, type EventsLocation as aT, type EventsOccurrenceLocation as aU, type EventsRangeEvent as aV, type EventsRangeOccurrence as aW, type EventsRangeParams as aX, type EventsRangeResponse as aY, type EventsTaxonomyItem as aZ, type ExternalCustomerLink as a_, type CreateCartResult as aa, type CreateCustomPaymentSessionParams as ab, type CreateInstallationCredentialParams as ac, type CreatePaymentSessionParams as ad, type CreatePortOnePaymentSessionParams as ae, type CreateServerCheckoutParams as af, type CreateServerCheckoutResult as ag, type CreateServerPaymentSessionParams as ah, type CreateServerPortOnePaymentSessionParams as ai, type CustomPaymentSession as aj, type CustomPaymentSessionProof as ak, type CustomerBenefitVoucher as al, type CustomerCreditAccountResponse as am, type CustomerCreditBalances as an, type CustomerCreditGrant as ao, type CustomerGroupApiOptions as ap, type CustomerGroupManualSource as aq, type CustomerGroupMember as ar, type CustomerGroupMemberCommandResponse as as, type CustomerGroupMemberSource as at, type CustomerGroupMembershipSource as au, type CustomerGroupMembershipState as av, type CustomerMembershipView as aw, type CustomerSnapshot as ax, type DisposeInstallationCredentialParams as ay, type EventAdmissionAvailabilityParams as az, type SubscribeMembershipParams as b, type PublicCheckout as b$, type ExternalCustomerPreviousState as b0, type ExternalEffectClaimErrorReason as b1, type ExternalEffectClaimSnapshot as b2, type ExternalEffectClaimState as b3, type ExternalEffectLeaseParams as b4, type ExternalEffectLocator as b5, type FindPortOnePaymentParams as b6, type FindPortOnePaymentResult as b7, type GetBenefitVoucherRequest as b8, type GetCustomerCreditAccountRequest as b9, type PaymentFailureReason as bA, type PaymentNextAction as bB, type PaymentProviderStatus as bC, type PaymentReconciliationReason as bD, PaymentSessionApi as bE, type PaymentSessionApiOptions as bF, type PaymentSessionRole as bG, type PortOneHostedPaymentMethod as bH, type PortOnePaymentCurrentState as bI, type PortOnePaymentNextAction as bJ, PortOnePaymentReconciliationApi as bK, type PortOnePaymentSelector as bL, type PortOnePublicPaymentSession as bM, type PortOneReconciliationDisposition as bN, type ProductGraphRevisionParams as bO, type ProductGraphRevisionResponse as bP, type ProductUpsertInput as bQ, type ProductUpsertParams as bR, type ProductUpsertResponse as bS, type ProductUpsertVariantInput as bT, type PublicAttribute as bU, type PublicCaptureEvidence as bV, type PublicCart as bW, type PublicCartItem as bX, type PublicCartItemAdmission as bY, type PublicCartMarket as bZ, type PublicCartReference as b_, type GetCustomerCreditGrantRequest as ba, type GetExternalCustomerLinkParams as bb, type GetExternalEffectClaimParams as bc, type GrantCustomerCreditRequest as bd, type GrantCustomerGroupMemberParams as be, type InstallationCredentialIdentity as bf, type InstallationCredentialSnapshot as bg, type IssueBenefitVoucherRequest as bh, type IssueBenefitVoucherResponse as bi, type ListBenefitVouchersRequest as bj, type ListBenefitVouchersResponse as bk, type ListCustomerGroupMembersParams as bl, type ListCustomerGroupMembersResponse as bm, type ListExternalCustomerLinksParams as bn, type ListMyBenefitVouchersRequest as bo, type ListMyBenefitVouchersResponse as bp, type MembershipStatus as bq, ModerationApi as br, type Money as bs, type MutateBenefitVoucherResponse as bt, type MutateExternalCustomerLinkParams as bu, type MyCustomerCreditHistoryRequest as bv, type MyCustomerCreditHistoryResponse as bw, type MyCustomerCreditsRequest as bx, type MyCustomerCreditsResponse as by, type OpenCheckoutPaymentState as bz, type SubscribeMembershipResponse as c, type VoidBenefitVoucherRequest as c$, type PublicCheckoutItem as c0, type PublicMediaAsset as c1, type PublicMediaSize as c2, type PublicOrder as c3, type PublicOrderAmounts as c4, type PublicOrderItem as c5, type PublicOrderReference as c6, type PublicPaymentSession as c7, type ReconcilePortOnePaymentParams as c8, type ReconcilePortOnePaymentResult as c9, type TenantContextResponse as cA, type TenantCustomFieldType as cB, type TenantCustomersFeatureProgressResponse as cC, type TenantEcommerceFeatureProgressResponse as cD, type TenantEventsFeatureProgressResponse as cE, type TenantFeatureProgressEvidenceValue as cF, type TenantFeatureProgressFeature as cG, type TenantFeatureProgressGroup as cH, type TenantFeatureProgressInput as cI, type TenantFeatureProgressItem as cJ, type TenantFeatureProgressItemState as cK, type TenantFeatureProgressResponse as cL, type TenantFeatureProgressResponseFor as cM, type TenantFeatureProgressResponseUnion as cN, type TenantFeatureProgressSeverity as cO, type TenantFeatureProgressStatus as cP, type TenantFieldConfigState as cQ, TenantIntrospectionApi as cR, type TenantIntrospectionApiOptions as cS, type TenantMembershipFeatureProgressResponse as cT, type UpdateCartAttributesParams as cU, type UpdateDiscountCodesParams as cV, type UpdateItemParams as cW, type VariantInput as cX, type VariantPricesUpdateInput as cY, type VariantPricesUpdateParams as cZ, type VariantPricesUpdateResponse as c_, type ReconciliationRequired as ca, type RecordExternalEffectRecoveryParams as cb, type RedeemBenefitVoucherRequest as cc, type RemoveItemParams as cd, type ReplaceInstallationCredentialParams as ce, type ReportExternalEffectParams as cf, type RetrieveCartParams as cg, type RetrieveCheckoutParams as ch, type RetrieveCustomPaymentSessionParams as ci, type RetrieveServerCheckoutParams as cj, type RetrieveServerPaymentSessionParams as ck, type RetrievedCustomPaymentSession as cl, type RevokeCustomerCreditRequest as cm, type RevokeCustomerCreditResponse as cn, type RevokeCustomerGroupMemberParams as co, type RootServerClient as cp, type ServerAddItemParams as cq, type ServerCartMergeParams as cr, type ServerCartMineParams as cs, type ServerCheckout as ct, type ServerUpdateItemParams as cu, type ShippingLine as cv, type SpentCheckoutPaymentState as cw, TENANT_CONTEXT_PATH as cx, type TenantCommunityFeatureProgressResponse as cy, type TenantContextInput as cz, type EndSubscribeIntentResponse as d, type ProductListingGroupsItem as d$, getExternalEffectClaimErrorReason as d0, invalidBenefitVoucherResponse as d1, parseBenefitVoucher as d2, parseBenefitVoucherList as d3, parseCustomerCreditAccount as d4, parseCustomerCreditGrant as d5, parseMyCustomerCreditHistory as d6, parseMyCustomerCredits as d7, parseRevokeCustomerCredit as d8, CustomerScopedApi as d9, type StorefrontGalleryItem as dA, type StorefrontGalleryItemsListOptions as dB, type StorefrontGalleryItemsSort as dC, type StorefrontLink as dD, type StorefrontLinksListOptions as dE, type StorefrontLinksSort as dF, type Where as dG, type ApiDocumentWriteOptions as dH, type ApiWriteOptions as dI, type ApiDeleteOptions as dJ, type PublicReadQueryOptions as dK, CustomerAuth as dL, type CustomerProfile as dM, type CustomerAuthResponse as dN, type CustomerLoginData as dO, type CustomerRegisterResponse as dP, type CustomerRegisterData as dQ, type CustomerRefreshResponse as dR, type UpdateProfileData as dS, type ProductListingPageParams as dT, type ProductListingPageBaseParams as dU, type ProductDetailParams as dV, type ProductDetailCatalogResult as dW, type ProductListingPageCatalogParams as dX, type ProductListingPageResult as dY, type ProductListingGroupsCatalogItem as dZ, type ProductListingPageFullParams as d_, CustomerCreditsApi as da, CommerceClient as db, ContentClient as dc, CustomerNamespace as dd, type ClientConfig as de, type ApiQueryOptions as df, type CancelBrowserPaymentSessionParams as dg, type CartMergeParams as dh, type ClientMetadata as di, type ContentClientOptions as dj, type CreateCheckoutParams as dk, type CreateCheckoutResult as dl, type DebugConfig as dm, type DeepPartial as dn, type ExtractArrayType as dp, type PayloadFindResponse as dq, type PayloadMutationResponse as dr, type RetrieveBrowserPaymentSessionParams as ds, type RetryConfig as dt, type RootClient as du, type RootCollectionClient as dv, type RootReadOnlyQueryBuilder as dw, type Sort as dx, type StorefrontContentListOptions as dy, type StorefrontContentReference as dz, type CancelMembershipResponse as e, type MediaValue as e$, BaseApi as e0, type ProductDetail as e1, type ProductDetailCatalog as e2, type StockSnapshotResponse as e3, type RootClientWithEvents as e4, type BillingCustodyContextWireRequest as e5, type BillingCustodyWireRequest as e6, type BulkImportFulfillmentsParams as e7, type BulkImportFulfillmentsResponse as e8, type CalculateShippingParams as e9, type CustomerAuthOptions as eA, type CustomerAuthorizationUrlInput as eB, type CustomerAuthorizationUrlResult as eC, CustomerOAuth as eD, type CustomerOAuthCallbackResult as eE, type CustomerOAuthConfig as eF, type CustomerOAuthTokenSet as eG, type CustomerOrderListOptions as eH, type CustomerWithdrawalCodeReauthenticationReason as eI, type CustomerWithdrawalCodeResult as eJ, type CustomerWithdrawalRequest as eK, type CustomerWithdrawalResult as eL, DiscountApi as eM, type DiscountApiOptions as eN, type DiscountErrorReasonCode as eO, type EventRegistrationEmailVerificationRequest as eP, type EventRegistrationEmailVerificationResponse as eQ, type FeaturedImagePointerInput as eR, type FulfillmentMutationResponse as eS, type GetOrderByPaymentIdParams as eT, type LegacyProductSelectionParamEvent as eU, type ListingGroupsParams as eV, MAX_CART_LINE_ADMISSIONS as eW, type ManagedCancelRefundOutcome as eX, type ManagedPaymentNextAction as eY, type ManagedPublicPaymentSession as eZ, type MarketDTO as e_, type CalculateShippingResult as ea, type CancelOrderCreditOnlyCommittedResponse as eb, type CancelOrderManagedAlreadyCanceledResponse as ec, type CancelOrderManagedCommittedResponse as ed, type CancelOrderParams as ee, type CancelOrderResponse as ef, type CancelReasonCode as eg, type CartDiscountCode as eh, type CartWarning as ei, type CartWarningCode as ej, type CheckoutFunding as ek, type Comment as el, type CommerceClientOptions as em, type CommunityClientOptions as en, type CommunityComment as eo, type CommunityCommentListSort as ep, type CommunityPost as eq, type CommunityPostCategory as er, type CommunityPostListSort as es, type CommunityPostTag as et, type CommunityPublicAuthorSnapshot as eu, type CommunityPublicMediaAsset as ev, type CommunityPublicReference as ew, type CompatibilityProductSelectionParamEvent as ex, type CreateFulfillmentParams as ey, type CreateReturnParams as ez, type BillingCustodyResponse as f, type ProductPriceRange as f$, type NormalizedOptionSwatch as f0, type NormalizedProductSelection as f1, OrderApi as f2, type OrderApiOptions as f3, type OrderByPaymentResult as f4, PRODUCT_PLP_FIND_OPTIONS as f5, PRODUCT_UPSERT_READONLY_FIELD_REASON as f6, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as f7, type PrepareFulfillmentOrderParams as f8, type PrepareFulfillmentOrderResponse as f9, type ProductListingGroupCatalogSummary as fA, type ProductListingGroupCatalogVariant as fB, type ProductListingGroupProjection as fC, type ProductListingGroupSummary as fD, type ProductListingGroupVariant as fE, type ProductListingGroupsCatalogProduct as fF, type ProductListingGroupsCatalogResponse as fG, type ProductListingGroupsProduct as fH, type ProductListingGroupsResponse as fI, type ProductListingPageFilters as fJ, type ProductListingPageSort as fK, type ProductListingProductShape as fL, type ProductListingSwatch as fM, type ProductLocaleOption as fN, type ProductLocaleReadParams as fO, type ProductLocalizedText as fP, type ProductLocalizedValue as fQ, type ProductMediaResolutionSource as fR, type ProductMoneyRange as fS, type ProductOptionMatrix as fT, type ProductOptionMatrixOption as fU, type ProductOptionMatrixValue as fV, type ProductOptionMatrixVariant as fW, type ProductOptionShape as fX, type ProductOptionValueShape as fY, type ProductOptionValueSwatch as fZ, type ProductOptionValueSwatchInput as f_, ProductApi as fa, type ProductApiOptions as fb, type ProductDetailBrand as fc, type ProductDetailCatalogVariant as fd, type ProductDetailCategory as fe, type ProductDetailImage as ff, type ProductDetailImageMedia as fg, type ProductDetailMedia as fh, type ProductDetailOption as fi, type ProductDetailOptionValue as fj, type ProductDetailResult as fk, type ProductDetailTag as fl, type ProductDetailUnavailableReason as fm, type ProductDetailVariant as fn, type ProductDetailVariantOptionValue as fo, type ProductDetailVideo as fp, type ProductDisplayMediaSource as fq, type ProductFallbackLocaleOption as fr, type ProductHrefGroup as fs, type ProductHrefOptions as ft, type ProductHrefProduct as fu, type ProductListingCard as fv, type ProductListingCardOptions as fw, type ProductListingCardPriceRange as fx, type ProductListingCardRepresentativeVariant as fy, type ProductListingGroup as fz, type BillingCustodyContextParams as g, normalizeSelectedValueIds as g$, type ProductSelectionAvailableSwatch as g0, type ProductSelectionAvailableValue as g1, type ProductSelectionByOptionValue as g2, ProductSelectionCodecError as g3, type ProductSelectionCodecOptions as g4, type ProductSelectionInput as g5, type ProductSelectionMediaPointer as g6, type ProductSelectionMediaSource as g7, type ProductSelectionOptionValue as g8, type ProductSelectionResolution as g9, type StockCheckParams as gA, type StockCheckResponse as gB, type StockCheckResult as gC, type StockSnapshotItem as gD, type StockSnapshotParams as gE, type UpdateFulfillmentParams as gF, type UpdateOrderParams as gG, type UpdateReturnParams as gH, type ValidateDiscountParams as gI, type ValidateDiscountResult as gJ, type VideoPlaybackResponse as gK, type WithIdempotencyKey as gL, buildProductHref as gM, buildProductListingCard as gN, buildProductListingGroupProjection as gO, buildProductListingGroupsByOption as gP, buildProductOptionMatrix as gQ, buildProductOptionMatrixFromDetail as gR, createProductSelectionCodec as gS, getAvailableOptionValues as gT, getProductSelectionImages as gU, getSelectedValueByOptionId as gV, getVariantAvailableForSale as gW, getVariantAvailableStock as gX, isProductUpsertFieldValidationErrorBody as gY, normalizeProductSelection as gZ, normalizeProductSelectionFromMatrix as g_, type ProductSelectionResolutionContext as ga, type ProductSelectionUrlEmit as gb, type ProductSelectionVariant$1 as gc, type ProductUpsertFieldValidationErrorBody as gd, type ProductUpsertFieldValidationErrorReason as ge, type ProductVariantShape as gf, type PublicCheckoutBase as gg, type RequestOptions as gh, type ResolveCancelRefundFailedResponse as gi, type ResolveCancelRefundOutcome as gj, type ResolveCancelRefundParams as gk, type ResolveCancelRefundResponse as gl, type ResolveCancelRefundSucceededResponse as gm, type ResolveProductDisplayMediaInput as gn, type ResolveProductDisplayMediaResult as go, type ResolveProductSelectionMediaInput as gp, type ResolveProductSelectionMediaResult as gq, type ResolvedCatalogPrice as gr, type ReturnCancellationReasonCode as gs, type ReturnItem as gt, type ReturnReason as gu, type ReturnWithRefundItem as gv, type ReturnWithRefundParams as gw, type ReturnWithRefundResponse as gx, ShippingApi as gy, type ShippingApiOptions as gz, type BillingCustodyContextResponse as h, parseProductSelection as h0, projectProductToListingShape as h1, resolveFeaturedImagePointer as h2, resolveProductDisplayMedia as h3, resolveProductSelection as h4, resolveProductSelectionFromMatrix as h5, resolveProductSelectionMedia as h6, resolveVariantForSelection as h7, selectNext as h8, selectedSwatchMediaItemId as h9, stringifyProductSelection as ha, toShopifyPriceRangeV2 as hb, CustomerGroupApi as i, ExternalEffectClaimsApi as j, ExternalCustomerLinksApi as k, BenefitVouchersApi as l, CreditsApi as m, CommunityClient as n, type BanCustomerParams as o, type CommunityBan as p, type ClientState as q, type ClientServerConfig as r, type RootServerClientWithEvents as s, BENEFIT_VOUCHER_ERROR_REASONS as t, BENEFIT_VOUCHER_VOID_REASONS as u, type BenefitVoucher as v, type BenefitVoucherErrorReason as w, type CancelServerPaymentSessionParams as x, type CaptureExternalCustomerPreviousStateParams as y, CartApi as z };
@@ -0,0 +1,151 @@
1
+ import { T as TenantMetadatum, P as Product, a as ProductVariant, b as ProductOption, c as ProductOptionValue, d as ProductCategory, e as ProductTag, f as ProductCollection, M as Market, B as Brand, C as CustomerProfile, g as CustomerProfileStat, S as ShippingPolicy, h as ShippingZone, D as Document, i as DocumentCategory, j as DocumentType, A as Article, k as ArticleAuthor, l as ArticleCategory, m as ArticleTag, n as Playlist, o as PlaylistCategory, p as PlaylistTag, q as Track, r as TrackCategory, s as TrackTag, G as Gallery, t as GalleryCategory, u as GalleryTag, v as GalleryItem, L as Link, w as LinkCategory, x as LinkTag, y as Canvase, z as CanvasNodeType, E as CanvasEdgeType, H as CanvasCategory, I as CanvasTag, J as VideoCategory, K as VideoTag, F as Form, R as ReactionType, N as PostCategory, O as PostTag, Q as CustomerProfileList, U as EventCalendar, X as Event, Y as EventCategory, Z as EventOccurrence, _ as EventTag, $ as MembershipPlan, a0 as MembershipPlanPrice, a1 as CustomerMembership, a2 as Tenant, a3 as TenantLogo, a4 as BrandLogo, a5 as Image, V as Video, a6 as Order, a7 as OrderTag, a8 as OrderItem, a9 as Return, aa as ReturnItem, ab as Refund, ac as RefundLineItem, ad as OrderEditSession, ae as OrderStagedChange, af as FulfillmentOrder, ag as FulfillmentOrderItem, ah as Fulfillment, ai as FulfillmentItem, aj as Transaction, ak as Customer, al as CustomerAddress, am as FormSubmission, an as Cart, ao as CartItem, ap as Checkout, aq as CheckoutItem, ar as Discount, as as DraftOrder, at as DraftOrderItem, au as Post, av as Comment, aw as Reaction, ax as Bookmark, ay as LiveStream, az as CanvasNode, aA as CanvasEdge, aB as CustomerGroup, aC as Report, aD as CommunityBan, aE as OrderExportProfile, aF as MembershipCharge } from './collection-documents-Bl0AF0m0.cjs';
2
+ import { C as Collection } from './const-CcOT0taO.cjs';
3
+
4
+ interface PublicCollectionMap {
5
+ 'tenant-metadata': TenantMetadatum;
6
+ products: Product;
7
+ 'product-variants': ProductVariant;
8
+ 'product-options': ProductOption;
9
+ 'product-option-values': ProductOptionValue;
10
+ 'product-categories': ProductCategory;
11
+ 'product-tags': ProductTag;
12
+ 'product-collections': ProductCollection;
13
+ markets: Market;
14
+ brands: Brand;
15
+ 'customer-profiles': CustomerProfile;
16
+ 'customer-profile-stats': CustomerProfileStat;
17
+ 'shipping-policies': ShippingPolicy;
18
+ 'shipping-zones': ShippingZone;
19
+ documents: Document;
20
+ 'document-categories': DocumentCategory;
21
+ 'document-types': DocumentType;
22
+ articles: Article;
23
+ 'article-authors': ArticleAuthor;
24
+ 'article-categories': ArticleCategory;
25
+ 'article-tags': ArticleTag;
26
+ playlists: Playlist;
27
+ 'playlist-categories': PlaylistCategory;
28
+ 'playlist-tags': PlaylistTag;
29
+ tracks: Track;
30
+ 'track-categories': TrackCategory;
31
+ 'track-tags': TrackTag;
32
+ galleries: Gallery;
33
+ 'gallery-categories': GalleryCategory;
34
+ 'gallery-tags': GalleryTag;
35
+ 'gallery-items': GalleryItem;
36
+ links: Link;
37
+ 'link-categories': LinkCategory;
38
+ 'link-tags': LinkTag;
39
+ canvases: Canvase;
40
+ 'canvas-node-types': CanvasNodeType;
41
+ 'canvas-edge-types': CanvasEdgeType;
42
+ 'canvas-categories': CanvasCategory;
43
+ 'canvas-tags': CanvasTag;
44
+ 'video-categories': VideoCategory;
45
+ 'video-tags': VideoTag;
46
+ forms: Form;
47
+ 'reaction-types': ReactionType;
48
+ 'post-categories': PostCategory;
49
+ 'post-tags': PostTag;
50
+ 'customer-profile-lists': CustomerProfileList;
51
+ 'event-calendars': EventCalendar;
52
+ events: Event;
53
+ 'event-categories': EventCategory;
54
+ 'event-occurrences': EventOccurrence;
55
+ 'event-tags': EventTag;
56
+ 'membership-plans': MembershipPlan;
57
+ 'membership-plan-prices': MembershipPlanPrice;
58
+ 'customer-memberships': CustomerMembership;
59
+ tenants: Tenant;
60
+ 'tenant-logos': TenantLogo;
61
+ 'brand-logos': BrandLogo;
62
+ images: Image;
63
+ videos: Video;
64
+ orders: Order;
65
+ 'order-tags': OrderTag;
66
+ 'order-items': OrderItem;
67
+ returns: Return;
68
+ 'return-items': ReturnItem;
69
+ refunds: Refund;
70
+ 'refund-line-items': RefundLineItem;
71
+ 'order-edit-sessions': OrderEditSession;
72
+ 'order-staged-changes': OrderStagedChange;
73
+ 'fulfillment-orders': FulfillmentOrder;
74
+ 'fulfillment-order-items': FulfillmentOrderItem;
75
+ fulfillments: Fulfillment;
76
+ 'fulfillment-items': FulfillmentItem;
77
+ transactions: Transaction;
78
+ customers: Customer;
79
+ 'customer-addresses': CustomerAddress;
80
+ 'form-submissions': FormSubmission;
81
+ carts: Cart;
82
+ 'cart-items': CartItem;
83
+ checkouts: Checkout;
84
+ 'checkout-items': CheckoutItem;
85
+ discounts: Discount;
86
+ 'draft-orders': DraftOrder;
87
+ 'draft-order-items': DraftOrderItem;
88
+ posts: Post;
89
+ comments: Comment;
90
+ reactions: Reaction;
91
+ bookmarks: Bookmark;
92
+ 'live-streams': LiveStream;
93
+ 'canvas-nodes': CanvasNode;
94
+ 'canvas-edges': CanvasEdge;
95
+ 'customer-groups': CustomerGroup;
96
+ reports: Report;
97
+ 'community-bans': CommunityBan;
98
+ 'order-export-profiles': OrderExportProfile;
99
+ 'membership-charges': MembershipCharge;
100
+ }
101
+
102
+ type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata' | 'recordCreatedAt'>;
103
+ type PublicCustomerProfileListEntry = {
104
+ profile: PublicCustomerProfile;
105
+ rank: number;
106
+ label?: string | null;
107
+ caption?: string | null;
108
+ score?: number | null;
109
+ badgeColor?: string | null;
110
+ badgeImage?: CustomerProfileList['entries'] extends Array<infer Entry> ? Entry extends {
111
+ badgeImage?: infer Image;
112
+ } ? Image : unknown : unknown;
113
+ publicMetadata?: unknown;
114
+ };
115
+ type PublicCustomerProfileList = Omit<CustomerProfileList, 'tenant' | 'visibility' | 'metadata' | 'entries'> & {
116
+ entries?: PublicCustomerProfileListEntry[] | null;
117
+ };
118
+ type PublicCustomerProfileStats = Omit<CustomerProfileStat, 'tenant' | 'profile' | 'recordCreatedAt'> & {
119
+ profile: string | PublicCustomerProfile;
120
+ };
121
+ type PublicMarket = Omit<Market, 'fxRateFromShopCurrency' | 'priceAdjustmentType' | 'priceAdjustmentValue' | 'roundingRule' | 'metadata'>;
122
+ type PublicProductVariant = Omit<ProductVariant, 'marketPrices' | 'product'> & {
123
+ product: string | PublicProduct;
124
+ };
125
+ type PublicProduct = Omit<Product, 'collectionItems' | 'variants' | 'markets'> & {
126
+ variants?: {
127
+ docs?: (string | PublicProductVariant)[];
128
+ hasNextPage?: boolean;
129
+ totalDocs?: number;
130
+ };
131
+ markets?: (string | PublicMarket)[] | null;
132
+ };
133
+ type PublicProductCollection = Omit<ProductCollection, 'items'>;
134
+ type PublicRefund = Omit<Refund, 'fundingCheckout' | 'creditAmount' | 'providerAmount'>;
135
+ type PublicRefundLineItem = Omit<RefundLineItem, 'refund'> & {
136
+ refund: string | PublicRefund;
137
+ };
138
+ type PublicCollectionOverrides = {
139
+ 'customer-profiles': PublicCustomerProfile;
140
+ 'customer-profile-stats': PublicCustomerProfileStats;
141
+ 'customer-profile-lists': PublicCustomerProfileList;
142
+ products: PublicProduct;
143
+ 'product-variants': PublicProductVariant;
144
+ 'product-collections': PublicProductCollection;
145
+ markets: PublicMarket;
146
+ refunds: PublicRefund;
147
+ 'refund-line-items': PublicRefundLineItem;
148
+ };
149
+ type CollectionType<T extends Collection> = T extends keyof PublicCollectionOverrides ? PublicCollectionOverrides[T] : T extends keyof PublicCollectionMap ? PublicCollectionMap[T] : never;
150
+
151
+ export type { CollectionType as C, PublicMarket as P, PublicProduct as a, PublicProductCollection as b, PublicProductVariant as c };