@01.software/sdk 0.35.0 → 0.36.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 (39) hide show
  1. package/dist/client.cjs.map +1 -1
  2. package/dist/client.d.cts +6 -6
  3. package/dist/client.d.ts +6 -6
  4. package/dist/client.js.map +1 -1
  5. package/dist/{collection-client-DkREjhQ9.d.ts → collection-client-Bq5Zd7p7.d.ts} +3 -3
  6. package/dist/{collection-client-CR2B8c1v.d.cts → collection-client-Cv0D2w1Q.d.cts} +3 -3
  7. package/dist/{const-CdqCauHQ.d.ts → const-BDUKFP9w.d.ts} +1 -1
  8. package/dist/{const-BTvdrXtY.d.cts → const-DVcM7Ac_.d.cts} +1 -1
  9. package/dist/{index-CjA3U6X3.d.cts → index-BHDKJ6B3.d.cts} +3 -3
  10. package/dist/{index-DK8_NXkh.d.ts → index-DTSXUYkr.d.ts} +3 -3
  11. package/dist/index.cjs +57 -4
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +7 -7
  14. package/dist/index.d.ts +7 -7
  15. package/dist/index.js +57 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/{payload-types-C7tb7Xbs.d.cts → payload-types-BCui2Oml.d.cts} +0 -20
  18. package/dist/{payload-types-C7tb7Xbs.d.ts → payload-types-BCui2Oml.d.ts} +0 -20
  19. package/dist/query.d.cts +5 -5
  20. package/dist/query.d.ts +5 -5
  21. package/dist/realtime.d.cts +2 -2
  22. package/dist/realtime.d.ts +2 -2
  23. package/dist/server.cjs +15 -0
  24. package/dist/server.cjs.map +1 -1
  25. package/dist/server.d.cts +7 -7
  26. package/dist/server.d.ts +7 -7
  27. package/dist/server.js +15 -0
  28. package/dist/server.js.map +1 -1
  29. package/dist/{types-1ylMrCuW.d.ts → types-3qV6sY7T.d.ts} +1 -1
  30. package/dist/{types-Bx558PU6.d.cts → types-CEzLf3PX.d.cts} +1 -1
  31. package/dist/{types-Byo_Rty4.d.ts → types-DK9EnLwJ.d.ts} +83 -17
  32. package/dist/{types-DDhtZI6E.d.cts → types-Dib-zdK6.d.cts} +83 -17
  33. package/dist/ui/form.d.cts +1 -1
  34. package/dist/ui/form.d.ts +1 -1
  35. package/dist/ui/video.d.cts +1 -1
  36. package/dist/ui/video.d.ts +1 -1
  37. package/dist/webhook.d.cts +4 -4
  38. package/dist/webhook.d.ts +4 -4
  39. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Post, d as Comment, R as Reaction, e as Config } from './payload-types-C7tb7Xbs.js';
1
+ import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Post, d as Comment, R as Reaction, e as Config } from './payload-types-BCui2Oml.js';
2
2
 
3
3
  type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
4
4
  type PublicProfileRelation = string | PublicCustomerProfile;
@@ -1,4 +1,4 @@
1
- import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Post, d as Comment, R as Reaction, e as Config } from './payload-types-C7tb7Xbs.cjs';
1
+ import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Post, d as Comment, R as Reaction, e as Config } from './payload-types-BCui2Oml.cjs';
2
2
 
3
3
  type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
4
4
  type PublicProfileRelation = string | PublicCustomerProfile;
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, S as ServerCollection } from './const-CdqCauHQ.js';
2
- import { C as CollectionType, P as PublicProduct } from './types-1ylMrCuW.js';
3
- import { O as Order, i as Cart, j as CartItem, m as Transaction, n as Fulfillment, o as Return } from './payload-types-C7tb7Xbs.js';
1
+ import { P as PublicCollection, S as ServerCollection } from './const-BDUKFP9w.js';
2
+ import { C as CollectionType, P as PublicProduct } from './types-3qV6sY7T.js';
3
+ import { O as Order, i as Cart, j as CartItem, m as Transaction, n as Fulfillment, o as Return } from './payload-types-BCui2Oml.js';
4
4
 
5
5
  interface CommunityClientOptions {
6
6
  publishableKey?: string;
@@ -805,6 +805,18 @@ type ProductListingCardOptions = {
805
805
  declare function buildProductHref(product: ProductHrefProduct, group?: ProductHrefGroup | null, options?: ProductHrefOptions): string;
806
806
  declare function buildProductListingProjection(product: ProductListingProductShape | null | undefined, variants: ProductVariantShape[]): ProductListingProjection;
807
807
  declare function buildProductListingCard(item: ProductListingGroupsItem, options?: ProductListingCardOptions): ProductListingCard;
808
+ /** Shopify `priceRangeV2` naming for persisted listing projection fields. */
809
+ declare function toShopifyPriceRangeV2(listing: {
810
+ minPrice?: number | null;
811
+ maxPrice?: number | null;
812
+ }): {
813
+ minVariantPrice: {
814
+ amount: number | null;
815
+ };
816
+ maxVariantPrice: {
817
+ amount: number | null;
818
+ };
819
+ };
808
820
  /**
809
821
  * Builds product-first listing groups for one primary option.
810
822
  *
@@ -842,8 +854,6 @@ type StockCheckResponse = {
842
854
  type ListingGroupsParams = {
843
855
  productIds: string[];
844
856
  };
845
- type ListingGroupingState = 'grouped' | 'no_primary_option' | 'empty';
846
- type ListingGroupingEmptyReason = 'primary_option_not_linked' | 'primary_option_has_no_values' | 'no_variants_for_primary_option';
847
857
  type ProductListingGroupVariant = Pick<ProductVariantShape, 'id' | 'optionValues' | 'price' | 'compareAtPrice' | 'stock' | 'isUnlimited' | 'isActive' | 'thumbnail' | 'images' | '_order'>;
848
858
  type ProductListingGroupSummary = ProductListingGroup<ProductListingGroupVariant>;
849
859
  type ProductListingGroupsProductVariants = NonNullable<PublicProduct['variants']>;
@@ -861,10 +871,6 @@ type ProductListingGroupsProduct = Omit<PublicProduct, 'variants'> & {
861
871
  };
862
872
  type ProductListingGroupsItem = {
863
873
  product: ProductListingGroupsProduct;
864
- primaryOptionId: string | null;
865
- listingGroupingState: ListingGroupingState;
866
- /** Present only when `listingGroupingState` is `empty`. */
867
- listingGroupingEmptyReason: ListingGroupingEmptyReason | null;
868
874
  groups: ProductListingGroupSummary[];
869
875
  };
870
876
  type ProductListingGroupsResponse = {
@@ -1280,41 +1286,99 @@ type CancelOrderReconciliationStatus = Exclude<CancelOrderStatus, 'pending' | 'f
1280
1286
  type CancelOrderResponseBase = {
1281
1287
  orderId: string;
1282
1288
  };
1283
- type CancelOrderUnpaidResponseFields = {
1289
+ type CancelOrderUnpaidCommittedResponseFields = {
1284
1290
  refundedAmount: 0;
1285
1291
  providerRefunded: false;
1286
1292
  };
1287
- type CancelOrderAlreadyCanceledResponseFields = {
1288
- refundedAmount: number;
1293
+ type CancelOrderPaidCommittedResponseFields = {
1294
+ transactionId: string;
1295
+ refundedAmount: 0;
1289
1296
  providerRefunded: false;
1297
+ refundPending: true;
1290
1298
  };
1291
- type CancelOrderProviderRefundResponseFields = {
1299
+ type CancelOrderLegacyProviderRefundResponseFields = {
1292
1300
  transactionId: string;
1293
1301
  refundedAmount: number;
1294
1302
  refundSeq: number;
1295
1303
  providerRefunded: true;
1296
1304
  };
1297
- type CancelOrderCommittedResponse = CancelOrderResponseBase & (CancelOrderUnpaidResponseFields | CancelOrderProviderRefundResponseFields) & {
1305
+ type CancelOrderAlreadyCanceledResponseFields = {
1306
+ refundedAmount: number;
1307
+ providerRefunded: false;
1308
+ };
1309
+ type CancelOrderAlreadyCanceledRefundPendingResponseFields = {
1310
+ transactionId: string;
1311
+ refundedAmount: number;
1312
+ providerRefunded: false;
1313
+ refundPending: true;
1314
+ };
1315
+ type CancelOrderPaidCommittedResponse = CancelOrderResponseBase & CancelOrderPaidCommittedResponseFields & {
1316
+ status: 'canceled';
1317
+ cancelCommitted: true;
1318
+ };
1319
+ type CancelOrderUnpaidCommittedResponse = CancelOrderResponseBase & CancelOrderUnpaidCommittedResponseFields & {
1298
1320
  status: 'canceled';
1299
1321
  cancelCommitted: true;
1300
1322
  };
1323
+ type CancelOrderCommittedResponse = CancelOrderPaidCommittedResponse | CancelOrderUnpaidCommittedResponse;
1301
1324
  type CancelOrderAlreadyCanceledResponse = CancelOrderResponseBase & CancelOrderAlreadyCanceledResponseFields & {
1302
1325
  status: 'canceled';
1303
1326
  cancelCommitted: false;
1304
1327
  alreadyCanceled: true;
1305
1328
  };
1306
- type CancelOrderReconciliationResponse = CancelOrderResponseBase & CancelOrderProviderRefundResponseFields & {
1329
+ type CancelOrderAlreadyCanceledRefundPendingResponse = CancelOrderResponseBase & CancelOrderAlreadyCanceledRefundPendingResponseFields & {
1330
+ status: 'canceled';
1331
+ cancelCommitted: false;
1332
+ alreadyCanceled: true;
1333
+ };
1334
+ /** @deprecated Inline PG cancel reconciliation; retained for legacy API consumers. */
1335
+ type CancelOrderReconciliationResponse = CancelOrderResponseBase & CancelOrderLegacyProviderRefundResponseFields & {
1307
1336
  status: CancelOrderReconciliationStatus;
1308
1337
  cancelCommitted: false;
1309
1338
  reconciliationRequired: true;
1310
1339
  };
1311
- type CancelOrderResponse = CancelOrderCommittedResponse | CancelOrderAlreadyCanceledResponse | CancelOrderReconciliationResponse;
1340
+ type CancelOrderResponse = CancelOrderCommittedResponse | CancelOrderAlreadyCanceledResponse | CancelOrderAlreadyCanceledRefundPendingResponse | CancelOrderReconciliationResponse;
1312
1341
  type CancelOrderParams = {
1313
1342
  orderNumber: string;
1314
1343
  reasonCode?: CancelReasonCode;
1315
1344
  reasonDetail?: string;
1316
1345
  idempotencyKey?: string;
1317
1346
  };
1347
+ type ResolveCancelRefundOutcome = 'succeeded' | 'failed';
1348
+ type ResolveCancelRefundSucceededParams = {
1349
+ orderNumber: string;
1350
+ idempotencyKey: string;
1351
+ outcome: 'succeeded';
1352
+ refundedAmount: number;
1353
+ pgProvider: string;
1354
+ pgRefundId: string;
1355
+ };
1356
+ type ResolveCancelRefundFailedParams = {
1357
+ orderNumber: string;
1358
+ idempotencyKey: string;
1359
+ outcome: 'failed';
1360
+ refundedAmount: 0;
1361
+ pgProvider: string;
1362
+ pgRefundId?: string;
1363
+ };
1364
+ type ResolveCancelRefundParams = ResolveCancelRefundSucceededParams | ResolveCancelRefundFailedParams;
1365
+ type ResolveCancelRefundSucceededResponse = {
1366
+ orderId: string;
1367
+ transactionId: string;
1368
+ refundTransactionId: string;
1369
+ refundedAmount: number;
1370
+ refundStatus: 'succeeded';
1371
+ transactionStatus: 'refunded';
1372
+ };
1373
+ type ResolveCancelRefundFailedResponse = {
1374
+ orderId: string;
1375
+ transactionId: string;
1376
+ refundTransactionId: string;
1377
+ refundedAmount: 0;
1378
+ refundStatus: 'failed';
1379
+ transactionStatus: 'paid';
1380
+ };
1381
+ type ResolveCancelRefundResponse = ResolveCancelRefundSucceededResponse | ResolveCancelRefundFailedResponse;
1318
1382
  type RestockAction = 'return_to_stock' | 'discard';
1319
1383
  type ReturnWithRefundItem = {
1320
1384
  orderItem: string | number;
@@ -1390,6 +1454,7 @@ declare class OrderApi extends BaseApi {
1390
1454
  updateTransaction(params: UpdateTransactionParams): Promise<Transaction>;
1391
1455
  confirmPayment(params: ConfirmPaymentParams): Promise<ConfirmPaymentResponse>;
1392
1456
  cancelOrder(params: CancelOrderParams): Promise<CancelOrderResponse>;
1457
+ resolveCancelRefund(params: ResolveCancelRefundParams): Promise<ResolveCancelRefundResponse>;
1393
1458
  checkout(params: CheckoutParams): Promise<Order>;
1394
1459
  createFulfillment(params: CreateFulfillmentParams): Promise<Fulfillment>;
1395
1460
  updateFulfillment(params: UpdateFulfillmentParams): Promise<Fulfillment>;
@@ -1483,6 +1548,7 @@ declare class ServerCommerceClient {
1483
1548
  updateTransaction: (params: UpdateTransactionParams) => Promise<Transaction>;
1484
1549
  confirmPayment: (params: ConfirmPaymentParams) => Promise<ConfirmPaymentResponse>;
1485
1550
  cancelOrder: (params: CancelOrderParams) => Promise<CancelOrderResponse>;
1551
+ resolveCancelRefund: (params: ResolveCancelRefundParams) => Promise<ResolveCancelRefundResponse>;
1486
1552
  createFulfillment: (params: CreateFulfillmentParams) => Promise<Fulfillment>;
1487
1553
  updateFulfillment: (params: UpdateFulfillmentParams) => Promise<Fulfillment>;
1488
1554
  bulkImportFulfillments: (params: BulkImportFulfillmentsParams) => Promise<BulkImportFulfillmentsResponse>;
@@ -1972,4 +2038,4 @@ type DeepPartial<T> = {
1972
2038
  };
1973
2039
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
1974
2040
 
1975
- export { type TenantFeatureProgressGroup as $, type ApiQueryOptions as A, BaseApi as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type EventRegistrationRegisterResponse as F, type EventsCalendarItem as G, type EventsClientOptions as H, type EventsDateParam as I, type EventsExternalSource as J, type EventsLocation as K, type EventsOccurrenceLocation as L, type EventsRangeEvent as M, type EventsRangeOccurrence as N, type EventsRangeParams as O, type PayloadFindResponse as P, type EventsRangeResponse as Q, type RetryConfig as R, type Sort as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, type EventsTaxonomyItem as V, type Where as W, ModerationApi as X, type RootServerClient as Y, type TenantFeatureProgressEvidenceValue as Z, type TenantFeatureProgressFeature as _, CommunityClient as a, type ListingGroupingEmptyReason as a$, type TenantFeatureProgressInput as a0, type TenantFeatureProgressItem as a1, type TenantFeatureProgressItemState as a2, type TenantFeatureProgressResponse as a3, type TenantFeatureProgressSeverity as a4, type TenantFeatureProgressStatus as a5, TenantIntrospectionApi as a6, type TenantIntrospectionApiOptions as a7, CustomerAuth as a8, type CustomerProfile as a9, type CancelOrderResponse as aA, type CancelReasonCode as aB, CartApi as aC, type CartApiOptions as aD, type CheckoutParams as aE, type ClearCartParams as aF, type Comment as aG, type CommerceClientOptions as aH, type CommunityClientOptions as aI, type CommunityComment as aJ, type CommunityCommentListSort as aK, type CommunityPost as aL, type CommunityPostCategory as aM, type CommunityPostListSort as aN, type CommunityPostTag as aO, type CompatibilityProductSelectionParamEvent as aP, type ConfirmPaymentParams as aQ, type ConfirmPaymentResponse as aR, type CreateFulfillmentParams as aS, type CreateOrderItem as aT, type CreateOrderParams as aU, type CreateReturnParams as aV, type CustomerAuthOptions as aW, type CustomerSnapshot as aX, DiscountApi as aY, type DiscountApiOptions as aZ, type LegacyProductSelectionParamEvent as a_, type CustomerAuthResponse as aa, type CustomerLoginData as ab, type CustomerRegisterResponse as ac, type CustomerRegisterData as ad, type CustomerRefreshResponse as ae, type UpdateProfileData as af, type ProductDetailParams as ag, type ProductDetailResult as ah, type ProductListingGroupsItem as ai, type ProductDetail as aj, type ProductDetailCatalog as ak, type StockSnapshotResponse as al, type ProductSelectionMediaSource as am, type ProductDisplayMediaSource as an, type ResolveProductSelectionMediaInput as ao, type ResolveProductSelectionMediaResult as ap, type ProductSelectionMediaPointer as aq, type RootClientWithEvents as ar, type AddItemParams as as, type ApplyDiscountParams as at, type BulkImportFulfillmentsParams as au, type BulkImportFulfillmentsResponse as av, type CalculateShippingParams as aw, type CalculateShippingResult as ax, type CancelOrderParams as ay, type CancelOrderReconciliationStatus as az, CustomerNamespace as b, type ProductUpsertFieldValidationErrorBody as b$, type ListingGroupingState as b0, type ListingGroupsParams as b1, type ListingPrimaryImageFallbackInput as b2, type MediaValue as b3, type NormalizedOptionSwatch as b4, type NormalizedProductSelection as b5, OrderApi as b6, type OrderApiOptions as b7, PRODUCT_UPSERT_READONLY_FIELD_REASON as b8, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as b9, type ProductListingGroupSummary as bA, type ProductListingGroupVariant as bB, type ProductListingGroupsProduct as bC, type ProductListingGroupsResponse as bD, type ProductListingProductShape as bE, type ProductListingProjection as bF, type ProductListingSwatch as bG, type ProductMediaResolutionSource as bH, type ProductOptionMatrix as bI, type ProductOptionMatrixOption as bJ, type ProductOptionMatrixValue as bK, type ProductOptionMatrixVariant as bL, type ProductOptionShape as bM, type ProductOptionValueShape as bN, type ProductOptionValueSwatch as bO, type ProductOptionValueSwatchInput as bP, type ProductSelectionAvailableSwatch as bQ, type ProductSelectionAvailableValue as bR, type ProductSelectionByOptionValue as bS, ProductSelectionCodecError as bT, type ProductSelectionCodecOptions as bU, type ProductSelectionInput as bV, type ProductSelectionOptionValue as bW, type ProductSelectionResolution as bX, type ProductSelectionResolutionContext as bY, type ProductSelectionUrlEmit as bZ, type ProductSelectionVariant as b_, ProductApi as ba, type ProductApiOptions as bb, type ProductDetailBrand as bc, type ProductDetailCatalogListing as bd, type ProductDetailCatalogResult as be, type ProductDetailCatalogVariant as bf, type ProductDetailCategory as bg, type ProductDetailImage as bh, type ProductDetailImageMedia as bi, type ProductDetailListing as bj, type ProductDetailMedia as bk, type ProductDetailOption as bl, type ProductDetailOptionValue as bm, type ProductDetailTag as bn, type ProductDetailUnavailableReason as bo, type ProductDetailVariant as bp, type ProductDetailVariantOptionValue as bq, type ProductDetailVideo as br, type ProductHrefGroup as bs, type ProductHrefOptions as bt, type ProductHrefProduct as bu, type ProductListingCard as bv, type ProductListingCardOptions as bw, type ProductListingCardPriceRange as bx, type ProductListingCardRepresentativeVariant as by, type ProductListingGroup as bz, type ClientState as c, type ProductUpsertFieldValidationErrorReason as c0, type ProductVariantShape as c1, type RemoveDiscountParams as c2, type RemoveItemParams as c3, type RequestOptions as c4, type ResolveProductDisplayMediaInput as c5, type ResolveProductDisplayMediaResult as c6, type ReturnItem as c7, type ReturnReason as c8, type ReturnWithRefundItem as c9, isProductUpsertFieldValidationErrorBody as cA, normalizeProductSelection as cB, normalizeProductSelectionFromMatrix as cC, normalizeSelectedValueIds as cD, parseProductSelection as cE, resolveListingPrimaryImagePointer as cF, resolveProductDisplayMedia as cG, resolveProductSelection as cH, resolveProductSelectionFromMatrix as cI, resolveProductSelectionMedia as cJ, resolveVariantForSelection as cK, selectNext as cL, selectedSwatchMediaItemId as cM, stringifyProductSelection as cN, type ReturnWithRefundParams as ca, ShippingApi as cb, type ShippingApiOptions as cc, type StockCheckParams as cd, type StockCheckResponse as ce, type StockCheckResult as cf, type StockSnapshotItem as cg, type StockSnapshotParams as ch, type UpdateFulfillmentParams as ci, type UpdateItemParams as cj, type UpdateOrderParams as ck, type UpdateReturnParams as cl, type UpdateTransactionParams as cm, type ValidateDiscountParams as cn, type ValidateDiscountResult as co, type WithIdempotencyKey as cp, buildProductHref as cq, buildProductListingCard as cr, buildProductListingGroupsByOption as cs, buildProductListingProjection as ct, buildProductOptionMatrix as cu, buildProductOptionMatrixFromDetail as cv, createProductSelectionCodec as cw, getAvailableOptionValues as cx, getProductSelectionImages as cy, getSelectedValueByOptionId as cz, type ClientConfig as d, type ClientMetadata as e, type DeepPartial as f, type ExtractArrayType as g, type PayloadMutationResponse as h, type RootClient as i, type RootCollectionClient as j, type RootReadOnlyQueryBuilder as k, type ServerApiOptions as l, ServerCommerceClient as m, type BanCustomerParams as n, type CommunityBan as o, type ClientServerConfig as p, type RootServerClientWithEvents as q, type CollectionFieldSchema as r, type CollectionSchemaResponse as s, type EventGuestCancelParams as t, type EventGuestRegistration as u, type EventGuestRegistrationResponse as v, type EventRegistrationAnswerInput as w, type EventRegistrationAttendeeInput as x, type EventRegistrationPublic as y, type EventRegistrationRegisterParams as z };
2041
+ export { type TenantFeatureProgressGroup as $, type ApiQueryOptions as A, BaseApi as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type EventRegistrationRegisterResponse as F, type EventsCalendarItem as G, type EventsClientOptions as H, type EventsDateParam as I, type EventsExternalSource as J, type EventsLocation as K, type EventsOccurrenceLocation as L, type EventsRangeEvent as M, type EventsRangeOccurrence as N, type EventsRangeParams as O, type PayloadFindResponse as P, type EventsRangeResponse as Q, type RetryConfig as R, type Sort as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, type EventsTaxonomyItem as V, type Where as W, ModerationApi as X, type RootServerClient as Y, type TenantFeatureProgressEvidenceValue as Z, type TenantFeatureProgressFeature as _, CommunityClient as a, type ListingGroupsParams as a$, type TenantFeatureProgressInput as a0, type TenantFeatureProgressItem as a1, type TenantFeatureProgressItemState as a2, type TenantFeatureProgressResponse as a3, type TenantFeatureProgressSeverity as a4, type TenantFeatureProgressStatus as a5, TenantIntrospectionApi as a6, type TenantIntrospectionApiOptions as a7, CustomerAuth as a8, type CustomerProfile as a9, type CancelOrderResponse as aA, type CancelReasonCode as aB, CartApi as aC, type CartApiOptions as aD, type CheckoutParams as aE, type ClearCartParams as aF, type Comment as aG, type CommerceClientOptions as aH, type CommunityClientOptions as aI, type CommunityComment as aJ, type CommunityCommentListSort as aK, type CommunityPost as aL, type CommunityPostCategory as aM, type CommunityPostListSort as aN, type CommunityPostTag as aO, type CompatibilityProductSelectionParamEvent as aP, type ConfirmPaymentParams as aQ, type ConfirmPaymentResponse as aR, type CreateFulfillmentParams as aS, type CreateOrderItem as aT, type CreateOrderParams as aU, type CreateReturnParams as aV, type CustomerAuthOptions as aW, type CustomerSnapshot as aX, DiscountApi as aY, type DiscountApiOptions as aZ, type LegacyProductSelectionParamEvent as a_, type CustomerAuthResponse as aa, type CustomerLoginData as ab, type CustomerRegisterResponse as ac, type CustomerRegisterData as ad, type CustomerRefreshResponse as ae, type UpdateProfileData as af, type ProductDetailParams as ag, type ProductDetailResult as ah, type ProductListingGroupsItem as ai, type ProductDetail as aj, type ProductDetailCatalog as ak, type StockSnapshotResponse as al, type ProductSelectionMediaSource as am, type ProductDisplayMediaSource as an, type ResolveProductSelectionMediaInput as ao, type ResolveProductSelectionMediaResult as ap, type ProductSelectionMediaPointer as aq, type RootClientWithEvents as ar, type AddItemParams as as, type ApplyDiscountParams as at, type BulkImportFulfillmentsParams as au, type BulkImportFulfillmentsResponse as av, type CalculateShippingParams as aw, type CalculateShippingResult as ax, type CancelOrderParams as ay, type CancelOrderReconciliationStatus as az, CustomerNamespace as b, type ProductVariantShape as b$, type ListingPrimaryImageFallbackInput as b0, type MediaValue as b1, type NormalizedOptionSwatch as b2, type NormalizedProductSelection as b3, OrderApi as b4, type OrderApiOptions as b5, PRODUCT_UPSERT_READONLY_FIELD_REASON as b6, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as b7, ProductApi as b8, type ProductApiOptions as b9, type ProductListingGroupsProduct as bA, type ProductListingGroupsResponse as bB, type ProductListingProductShape as bC, type ProductListingProjection as bD, type ProductListingSwatch as bE, type ProductMediaResolutionSource as bF, type ProductOptionMatrix as bG, type ProductOptionMatrixOption as bH, type ProductOptionMatrixValue as bI, type ProductOptionMatrixVariant as bJ, type ProductOptionShape as bK, type ProductOptionValueShape as bL, type ProductOptionValueSwatch as bM, type ProductOptionValueSwatchInput as bN, type ProductSelectionAvailableSwatch as bO, type ProductSelectionAvailableValue as bP, type ProductSelectionByOptionValue as bQ, ProductSelectionCodecError as bR, type ProductSelectionCodecOptions as bS, type ProductSelectionInput as bT, type ProductSelectionOptionValue as bU, type ProductSelectionResolution as bV, type ProductSelectionResolutionContext as bW, type ProductSelectionUrlEmit as bX, type ProductSelectionVariant as bY, type ProductUpsertFieldValidationErrorBody as bZ, type ProductUpsertFieldValidationErrorReason as b_, type ProductDetailBrand as ba, type ProductDetailCatalogListing as bb, type ProductDetailCatalogResult as bc, type ProductDetailCatalogVariant as bd, type ProductDetailCategory as be, type ProductDetailImage as bf, type ProductDetailImageMedia as bg, type ProductDetailListing as bh, type ProductDetailMedia as bi, type ProductDetailOption as bj, type ProductDetailOptionValue as bk, type ProductDetailTag as bl, type ProductDetailUnavailableReason as bm, type ProductDetailVariant as bn, type ProductDetailVariantOptionValue as bo, type ProductDetailVideo as bp, type ProductHrefGroup as bq, type ProductHrefOptions as br, type ProductHrefProduct as bs, type ProductListingCard as bt, type ProductListingCardOptions as bu, type ProductListingCardPriceRange as bv, type ProductListingCardRepresentativeVariant as bw, type ProductListingGroup as bx, type ProductListingGroupSummary as by, type ProductListingGroupVariant as bz, type ClientState as c, type RemoveDiscountParams as c0, type RemoveItemParams as c1, type RequestOptions as c2, type ResolveCancelRefundFailedResponse as c3, type ResolveCancelRefundOutcome as c4, type ResolveCancelRefundParams as c5, type ResolveCancelRefundResponse as c6, type ResolveCancelRefundSucceededResponse as c7, type ResolveProductDisplayMediaInput as c8, type ResolveProductDisplayMediaResult as c9, getAvailableOptionValues as cA, getProductSelectionImages as cB, getSelectedValueByOptionId as cC, isProductUpsertFieldValidationErrorBody as cD, normalizeProductSelection as cE, normalizeProductSelectionFromMatrix as cF, normalizeSelectedValueIds as cG, parseProductSelection as cH, resolveListingPrimaryImagePointer as cI, resolveProductDisplayMedia as cJ, resolveProductSelection as cK, resolveProductSelectionFromMatrix as cL, resolveProductSelectionMedia as cM, resolveVariantForSelection as cN, selectNext as cO, selectedSwatchMediaItemId as cP, stringifyProductSelection as cQ, toShopifyPriceRangeV2 as cR, type ReturnItem as ca, type ReturnReason as cb, type ReturnWithRefundItem as cc, type ReturnWithRefundParams as cd, ShippingApi as ce, type ShippingApiOptions as cf, type StockCheckParams as cg, type StockCheckResponse as ch, type StockCheckResult as ci, type StockSnapshotItem as cj, type StockSnapshotParams as ck, type UpdateFulfillmentParams as cl, type UpdateItemParams as cm, type UpdateOrderParams as cn, type UpdateReturnParams as co, type UpdateTransactionParams as cp, type ValidateDiscountParams as cq, type ValidateDiscountResult as cr, type WithIdempotencyKey as cs, buildProductHref as ct, buildProductListingCard as cu, buildProductListingGroupsByOption as cv, buildProductListingProjection as cw, buildProductOptionMatrix as cx, buildProductOptionMatrixFromDetail as cy, createProductSelectionCodec as cz, type ClientConfig as d, type ClientMetadata as e, type DeepPartial as f, type ExtractArrayType as g, type PayloadMutationResponse as h, type RootClient as i, type RootCollectionClient as j, type RootReadOnlyQueryBuilder as k, type ServerApiOptions as l, ServerCommerceClient as m, type BanCustomerParams as n, type CommunityBan as o, type ClientServerConfig as p, type RootServerClientWithEvents as q, type CollectionFieldSchema as r, type CollectionSchemaResponse as s, type EventGuestCancelParams as t, type EventGuestRegistration as u, type EventGuestRegistrationResponse as v, type EventRegistrationAnswerInput as w, type EventRegistrationAttendeeInput as x, type EventRegistrationPublic as y, type EventRegistrationRegisterParams as z };
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, S as ServerCollection } from './const-BTvdrXtY.cjs';
2
- import { C as CollectionType, P as PublicProduct } from './types-Bx558PU6.cjs';
3
- import { O as Order, i as Cart, j as CartItem, m as Transaction, n as Fulfillment, o as Return } from './payload-types-C7tb7Xbs.cjs';
1
+ import { P as PublicCollection, S as ServerCollection } from './const-DVcM7Ac_.cjs';
2
+ import { C as CollectionType, P as PublicProduct } from './types-CEzLf3PX.cjs';
3
+ import { O as Order, i as Cart, j as CartItem, m as Transaction, n as Fulfillment, o as Return } from './payload-types-BCui2Oml.cjs';
4
4
 
5
5
  interface CommunityClientOptions {
6
6
  publishableKey?: string;
@@ -805,6 +805,18 @@ type ProductListingCardOptions = {
805
805
  declare function buildProductHref(product: ProductHrefProduct, group?: ProductHrefGroup | null, options?: ProductHrefOptions): string;
806
806
  declare function buildProductListingProjection(product: ProductListingProductShape | null | undefined, variants: ProductVariantShape[]): ProductListingProjection;
807
807
  declare function buildProductListingCard(item: ProductListingGroupsItem, options?: ProductListingCardOptions): ProductListingCard;
808
+ /** Shopify `priceRangeV2` naming for persisted listing projection fields. */
809
+ declare function toShopifyPriceRangeV2(listing: {
810
+ minPrice?: number | null;
811
+ maxPrice?: number | null;
812
+ }): {
813
+ minVariantPrice: {
814
+ amount: number | null;
815
+ };
816
+ maxVariantPrice: {
817
+ amount: number | null;
818
+ };
819
+ };
808
820
  /**
809
821
  * Builds product-first listing groups for one primary option.
810
822
  *
@@ -842,8 +854,6 @@ type StockCheckResponse = {
842
854
  type ListingGroupsParams = {
843
855
  productIds: string[];
844
856
  };
845
- type ListingGroupingState = 'grouped' | 'no_primary_option' | 'empty';
846
- type ListingGroupingEmptyReason = 'primary_option_not_linked' | 'primary_option_has_no_values' | 'no_variants_for_primary_option';
847
857
  type ProductListingGroupVariant = Pick<ProductVariantShape, 'id' | 'optionValues' | 'price' | 'compareAtPrice' | 'stock' | 'isUnlimited' | 'isActive' | 'thumbnail' | 'images' | '_order'>;
848
858
  type ProductListingGroupSummary = ProductListingGroup<ProductListingGroupVariant>;
849
859
  type ProductListingGroupsProductVariants = NonNullable<PublicProduct['variants']>;
@@ -861,10 +871,6 @@ type ProductListingGroupsProduct = Omit<PublicProduct, 'variants'> & {
861
871
  };
862
872
  type ProductListingGroupsItem = {
863
873
  product: ProductListingGroupsProduct;
864
- primaryOptionId: string | null;
865
- listingGroupingState: ListingGroupingState;
866
- /** Present only when `listingGroupingState` is `empty`. */
867
- listingGroupingEmptyReason: ListingGroupingEmptyReason | null;
868
874
  groups: ProductListingGroupSummary[];
869
875
  };
870
876
  type ProductListingGroupsResponse = {
@@ -1280,41 +1286,99 @@ type CancelOrderReconciliationStatus = Exclude<CancelOrderStatus, 'pending' | 'f
1280
1286
  type CancelOrderResponseBase = {
1281
1287
  orderId: string;
1282
1288
  };
1283
- type CancelOrderUnpaidResponseFields = {
1289
+ type CancelOrderUnpaidCommittedResponseFields = {
1284
1290
  refundedAmount: 0;
1285
1291
  providerRefunded: false;
1286
1292
  };
1287
- type CancelOrderAlreadyCanceledResponseFields = {
1288
- refundedAmount: number;
1293
+ type CancelOrderPaidCommittedResponseFields = {
1294
+ transactionId: string;
1295
+ refundedAmount: 0;
1289
1296
  providerRefunded: false;
1297
+ refundPending: true;
1290
1298
  };
1291
- type CancelOrderProviderRefundResponseFields = {
1299
+ type CancelOrderLegacyProviderRefundResponseFields = {
1292
1300
  transactionId: string;
1293
1301
  refundedAmount: number;
1294
1302
  refundSeq: number;
1295
1303
  providerRefunded: true;
1296
1304
  };
1297
- type CancelOrderCommittedResponse = CancelOrderResponseBase & (CancelOrderUnpaidResponseFields | CancelOrderProviderRefundResponseFields) & {
1305
+ type CancelOrderAlreadyCanceledResponseFields = {
1306
+ refundedAmount: number;
1307
+ providerRefunded: false;
1308
+ };
1309
+ type CancelOrderAlreadyCanceledRefundPendingResponseFields = {
1310
+ transactionId: string;
1311
+ refundedAmount: number;
1312
+ providerRefunded: false;
1313
+ refundPending: true;
1314
+ };
1315
+ type CancelOrderPaidCommittedResponse = CancelOrderResponseBase & CancelOrderPaidCommittedResponseFields & {
1316
+ status: 'canceled';
1317
+ cancelCommitted: true;
1318
+ };
1319
+ type CancelOrderUnpaidCommittedResponse = CancelOrderResponseBase & CancelOrderUnpaidCommittedResponseFields & {
1298
1320
  status: 'canceled';
1299
1321
  cancelCommitted: true;
1300
1322
  };
1323
+ type CancelOrderCommittedResponse = CancelOrderPaidCommittedResponse | CancelOrderUnpaidCommittedResponse;
1301
1324
  type CancelOrderAlreadyCanceledResponse = CancelOrderResponseBase & CancelOrderAlreadyCanceledResponseFields & {
1302
1325
  status: 'canceled';
1303
1326
  cancelCommitted: false;
1304
1327
  alreadyCanceled: true;
1305
1328
  };
1306
- type CancelOrderReconciliationResponse = CancelOrderResponseBase & CancelOrderProviderRefundResponseFields & {
1329
+ type CancelOrderAlreadyCanceledRefundPendingResponse = CancelOrderResponseBase & CancelOrderAlreadyCanceledRefundPendingResponseFields & {
1330
+ status: 'canceled';
1331
+ cancelCommitted: false;
1332
+ alreadyCanceled: true;
1333
+ };
1334
+ /** @deprecated Inline PG cancel reconciliation; retained for legacy API consumers. */
1335
+ type CancelOrderReconciliationResponse = CancelOrderResponseBase & CancelOrderLegacyProviderRefundResponseFields & {
1307
1336
  status: CancelOrderReconciliationStatus;
1308
1337
  cancelCommitted: false;
1309
1338
  reconciliationRequired: true;
1310
1339
  };
1311
- type CancelOrderResponse = CancelOrderCommittedResponse | CancelOrderAlreadyCanceledResponse | CancelOrderReconciliationResponse;
1340
+ type CancelOrderResponse = CancelOrderCommittedResponse | CancelOrderAlreadyCanceledResponse | CancelOrderAlreadyCanceledRefundPendingResponse | CancelOrderReconciliationResponse;
1312
1341
  type CancelOrderParams = {
1313
1342
  orderNumber: string;
1314
1343
  reasonCode?: CancelReasonCode;
1315
1344
  reasonDetail?: string;
1316
1345
  idempotencyKey?: string;
1317
1346
  };
1347
+ type ResolveCancelRefundOutcome = 'succeeded' | 'failed';
1348
+ type ResolveCancelRefundSucceededParams = {
1349
+ orderNumber: string;
1350
+ idempotencyKey: string;
1351
+ outcome: 'succeeded';
1352
+ refundedAmount: number;
1353
+ pgProvider: string;
1354
+ pgRefundId: string;
1355
+ };
1356
+ type ResolveCancelRefundFailedParams = {
1357
+ orderNumber: string;
1358
+ idempotencyKey: string;
1359
+ outcome: 'failed';
1360
+ refundedAmount: 0;
1361
+ pgProvider: string;
1362
+ pgRefundId?: string;
1363
+ };
1364
+ type ResolveCancelRefundParams = ResolveCancelRefundSucceededParams | ResolveCancelRefundFailedParams;
1365
+ type ResolveCancelRefundSucceededResponse = {
1366
+ orderId: string;
1367
+ transactionId: string;
1368
+ refundTransactionId: string;
1369
+ refundedAmount: number;
1370
+ refundStatus: 'succeeded';
1371
+ transactionStatus: 'refunded';
1372
+ };
1373
+ type ResolveCancelRefundFailedResponse = {
1374
+ orderId: string;
1375
+ transactionId: string;
1376
+ refundTransactionId: string;
1377
+ refundedAmount: 0;
1378
+ refundStatus: 'failed';
1379
+ transactionStatus: 'paid';
1380
+ };
1381
+ type ResolveCancelRefundResponse = ResolveCancelRefundSucceededResponse | ResolveCancelRefundFailedResponse;
1318
1382
  type RestockAction = 'return_to_stock' | 'discard';
1319
1383
  type ReturnWithRefundItem = {
1320
1384
  orderItem: string | number;
@@ -1390,6 +1454,7 @@ declare class OrderApi extends BaseApi {
1390
1454
  updateTransaction(params: UpdateTransactionParams): Promise<Transaction>;
1391
1455
  confirmPayment(params: ConfirmPaymentParams): Promise<ConfirmPaymentResponse>;
1392
1456
  cancelOrder(params: CancelOrderParams): Promise<CancelOrderResponse>;
1457
+ resolveCancelRefund(params: ResolveCancelRefundParams): Promise<ResolveCancelRefundResponse>;
1393
1458
  checkout(params: CheckoutParams): Promise<Order>;
1394
1459
  createFulfillment(params: CreateFulfillmentParams): Promise<Fulfillment>;
1395
1460
  updateFulfillment(params: UpdateFulfillmentParams): Promise<Fulfillment>;
@@ -1483,6 +1548,7 @@ declare class ServerCommerceClient {
1483
1548
  updateTransaction: (params: UpdateTransactionParams) => Promise<Transaction>;
1484
1549
  confirmPayment: (params: ConfirmPaymentParams) => Promise<ConfirmPaymentResponse>;
1485
1550
  cancelOrder: (params: CancelOrderParams) => Promise<CancelOrderResponse>;
1551
+ resolveCancelRefund: (params: ResolveCancelRefundParams) => Promise<ResolveCancelRefundResponse>;
1486
1552
  createFulfillment: (params: CreateFulfillmentParams) => Promise<Fulfillment>;
1487
1553
  updateFulfillment: (params: UpdateFulfillmentParams) => Promise<Fulfillment>;
1488
1554
  bulkImportFulfillments: (params: BulkImportFulfillmentsParams) => Promise<BulkImportFulfillmentsResponse>;
@@ -1972,4 +2038,4 @@ type DeepPartial<T> = {
1972
2038
  };
1973
2039
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
1974
2040
 
1975
- export { type TenantFeatureProgressGroup as $, type ApiQueryOptions as A, BaseApi as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type EventRegistrationRegisterResponse as F, type EventsCalendarItem as G, type EventsClientOptions as H, type EventsDateParam as I, type EventsExternalSource as J, type EventsLocation as K, type EventsOccurrenceLocation as L, type EventsRangeEvent as M, type EventsRangeOccurrence as N, type EventsRangeParams as O, type PayloadFindResponse as P, type EventsRangeResponse as Q, type RetryConfig as R, type Sort as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, type EventsTaxonomyItem as V, type Where as W, ModerationApi as X, type RootServerClient as Y, type TenantFeatureProgressEvidenceValue as Z, type TenantFeatureProgressFeature as _, CommunityClient as a, type ListingGroupingEmptyReason as a$, type TenantFeatureProgressInput as a0, type TenantFeatureProgressItem as a1, type TenantFeatureProgressItemState as a2, type TenantFeatureProgressResponse as a3, type TenantFeatureProgressSeverity as a4, type TenantFeatureProgressStatus as a5, TenantIntrospectionApi as a6, type TenantIntrospectionApiOptions as a7, CustomerAuth as a8, type CustomerProfile as a9, type CancelOrderResponse as aA, type CancelReasonCode as aB, CartApi as aC, type CartApiOptions as aD, type CheckoutParams as aE, type ClearCartParams as aF, type Comment as aG, type CommerceClientOptions as aH, type CommunityClientOptions as aI, type CommunityComment as aJ, type CommunityCommentListSort as aK, type CommunityPost as aL, type CommunityPostCategory as aM, type CommunityPostListSort as aN, type CommunityPostTag as aO, type CompatibilityProductSelectionParamEvent as aP, type ConfirmPaymentParams as aQ, type ConfirmPaymentResponse as aR, type CreateFulfillmentParams as aS, type CreateOrderItem as aT, type CreateOrderParams as aU, type CreateReturnParams as aV, type CustomerAuthOptions as aW, type CustomerSnapshot as aX, DiscountApi as aY, type DiscountApiOptions as aZ, type LegacyProductSelectionParamEvent as a_, type CustomerAuthResponse as aa, type CustomerLoginData as ab, type CustomerRegisterResponse as ac, type CustomerRegisterData as ad, type CustomerRefreshResponse as ae, type UpdateProfileData as af, type ProductDetailParams as ag, type ProductDetailResult as ah, type ProductListingGroupsItem as ai, type ProductDetail as aj, type ProductDetailCatalog as ak, type StockSnapshotResponse as al, type ProductSelectionMediaSource as am, type ProductDisplayMediaSource as an, type ResolveProductSelectionMediaInput as ao, type ResolveProductSelectionMediaResult as ap, type ProductSelectionMediaPointer as aq, type RootClientWithEvents as ar, type AddItemParams as as, type ApplyDiscountParams as at, type BulkImportFulfillmentsParams as au, type BulkImportFulfillmentsResponse as av, type CalculateShippingParams as aw, type CalculateShippingResult as ax, type CancelOrderParams as ay, type CancelOrderReconciliationStatus as az, CustomerNamespace as b, type ProductUpsertFieldValidationErrorBody as b$, type ListingGroupingState as b0, type ListingGroupsParams as b1, type ListingPrimaryImageFallbackInput as b2, type MediaValue as b3, type NormalizedOptionSwatch as b4, type NormalizedProductSelection as b5, OrderApi as b6, type OrderApiOptions as b7, PRODUCT_UPSERT_READONLY_FIELD_REASON as b8, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as b9, type ProductListingGroupSummary as bA, type ProductListingGroupVariant as bB, type ProductListingGroupsProduct as bC, type ProductListingGroupsResponse as bD, type ProductListingProductShape as bE, type ProductListingProjection as bF, type ProductListingSwatch as bG, type ProductMediaResolutionSource as bH, type ProductOptionMatrix as bI, type ProductOptionMatrixOption as bJ, type ProductOptionMatrixValue as bK, type ProductOptionMatrixVariant as bL, type ProductOptionShape as bM, type ProductOptionValueShape as bN, type ProductOptionValueSwatch as bO, type ProductOptionValueSwatchInput as bP, type ProductSelectionAvailableSwatch as bQ, type ProductSelectionAvailableValue as bR, type ProductSelectionByOptionValue as bS, ProductSelectionCodecError as bT, type ProductSelectionCodecOptions as bU, type ProductSelectionInput as bV, type ProductSelectionOptionValue as bW, type ProductSelectionResolution as bX, type ProductSelectionResolutionContext as bY, type ProductSelectionUrlEmit as bZ, type ProductSelectionVariant as b_, ProductApi as ba, type ProductApiOptions as bb, type ProductDetailBrand as bc, type ProductDetailCatalogListing as bd, type ProductDetailCatalogResult as be, type ProductDetailCatalogVariant as bf, type ProductDetailCategory as bg, type ProductDetailImage as bh, type ProductDetailImageMedia as bi, type ProductDetailListing as bj, type ProductDetailMedia as bk, type ProductDetailOption as bl, type ProductDetailOptionValue as bm, type ProductDetailTag as bn, type ProductDetailUnavailableReason as bo, type ProductDetailVariant as bp, type ProductDetailVariantOptionValue as bq, type ProductDetailVideo as br, type ProductHrefGroup as bs, type ProductHrefOptions as bt, type ProductHrefProduct as bu, type ProductListingCard as bv, type ProductListingCardOptions as bw, type ProductListingCardPriceRange as bx, type ProductListingCardRepresentativeVariant as by, type ProductListingGroup as bz, type ClientState as c, type ProductUpsertFieldValidationErrorReason as c0, type ProductVariantShape as c1, type RemoveDiscountParams as c2, type RemoveItemParams as c3, type RequestOptions as c4, type ResolveProductDisplayMediaInput as c5, type ResolveProductDisplayMediaResult as c6, type ReturnItem as c7, type ReturnReason as c8, type ReturnWithRefundItem as c9, isProductUpsertFieldValidationErrorBody as cA, normalizeProductSelection as cB, normalizeProductSelectionFromMatrix as cC, normalizeSelectedValueIds as cD, parseProductSelection as cE, resolveListingPrimaryImagePointer as cF, resolveProductDisplayMedia as cG, resolveProductSelection as cH, resolveProductSelectionFromMatrix as cI, resolveProductSelectionMedia as cJ, resolveVariantForSelection as cK, selectNext as cL, selectedSwatchMediaItemId as cM, stringifyProductSelection as cN, type ReturnWithRefundParams as ca, ShippingApi as cb, type ShippingApiOptions as cc, type StockCheckParams as cd, type StockCheckResponse as ce, type StockCheckResult as cf, type StockSnapshotItem as cg, type StockSnapshotParams as ch, type UpdateFulfillmentParams as ci, type UpdateItemParams as cj, type UpdateOrderParams as ck, type UpdateReturnParams as cl, type UpdateTransactionParams as cm, type ValidateDiscountParams as cn, type ValidateDiscountResult as co, type WithIdempotencyKey as cp, buildProductHref as cq, buildProductListingCard as cr, buildProductListingGroupsByOption as cs, buildProductListingProjection as ct, buildProductOptionMatrix as cu, buildProductOptionMatrixFromDetail as cv, createProductSelectionCodec as cw, getAvailableOptionValues as cx, getProductSelectionImages as cy, getSelectedValueByOptionId as cz, type ClientConfig as d, type ClientMetadata as e, type DeepPartial as f, type ExtractArrayType as g, type PayloadMutationResponse as h, type RootClient as i, type RootCollectionClient as j, type RootReadOnlyQueryBuilder as k, type ServerApiOptions as l, ServerCommerceClient as m, type BanCustomerParams as n, type CommunityBan as o, type ClientServerConfig as p, type RootServerClientWithEvents as q, type CollectionFieldSchema as r, type CollectionSchemaResponse as s, type EventGuestCancelParams as t, type EventGuestRegistration as u, type EventGuestRegistrationResponse as v, type EventRegistrationAnswerInput as w, type EventRegistrationAttendeeInput as x, type EventRegistrationPublic as y, type EventRegistrationRegisterParams as z };
2041
+ export { type TenantFeatureProgressGroup as $, type ApiQueryOptions as A, BaseApi as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type EventRegistrationRegisterResponse as F, type EventsCalendarItem as G, type EventsClientOptions as H, type EventsDateParam as I, type EventsExternalSource as J, type EventsLocation as K, type EventsOccurrenceLocation as L, type EventsRangeEvent as M, type EventsRangeOccurrence as N, type EventsRangeParams as O, type PayloadFindResponse as P, type EventsRangeResponse as Q, type RetryConfig as R, type Sort as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, type EventsTaxonomyItem as V, type Where as W, ModerationApi as X, type RootServerClient as Y, type TenantFeatureProgressEvidenceValue as Z, type TenantFeatureProgressFeature as _, CommunityClient as a, type ListingGroupsParams as a$, type TenantFeatureProgressInput as a0, type TenantFeatureProgressItem as a1, type TenantFeatureProgressItemState as a2, type TenantFeatureProgressResponse as a3, type TenantFeatureProgressSeverity as a4, type TenantFeatureProgressStatus as a5, TenantIntrospectionApi as a6, type TenantIntrospectionApiOptions as a7, CustomerAuth as a8, type CustomerProfile as a9, type CancelOrderResponse as aA, type CancelReasonCode as aB, CartApi as aC, type CartApiOptions as aD, type CheckoutParams as aE, type ClearCartParams as aF, type Comment as aG, type CommerceClientOptions as aH, type CommunityClientOptions as aI, type CommunityComment as aJ, type CommunityCommentListSort as aK, type CommunityPost as aL, type CommunityPostCategory as aM, type CommunityPostListSort as aN, type CommunityPostTag as aO, type CompatibilityProductSelectionParamEvent as aP, type ConfirmPaymentParams as aQ, type ConfirmPaymentResponse as aR, type CreateFulfillmentParams as aS, type CreateOrderItem as aT, type CreateOrderParams as aU, type CreateReturnParams as aV, type CustomerAuthOptions as aW, type CustomerSnapshot as aX, DiscountApi as aY, type DiscountApiOptions as aZ, type LegacyProductSelectionParamEvent as a_, type CustomerAuthResponse as aa, type CustomerLoginData as ab, type CustomerRegisterResponse as ac, type CustomerRegisterData as ad, type CustomerRefreshResponse as ae, type UpdateProfileData as af, type ProductDetailParams as ag, type ProductDetailResult as ah, type ProductListingGroupsItem as ai, type ProductDetail as aj, type ProductDetailCatalog as ak, type StockSnapshotResponse as al, type ProductSelectionMediaSource as am, type ProductDisplayMediaSource as an, type ResolveProductSelectionMediaInput as ao, type ResolveProductSelectionMediaResult as ap, type ProductSelectionMediaPointer as aq, type RootClientWithEvents as ar, type AddItemParams as as, type ApplyDiscountParams as at, type BulkImportFulfillmentsParams as au, type BulkImportFulfillmentsResponse as av, type CalculateShippingParams as aw, type CalculateShippingResult as ax, type CancelOrderParams as ay, type CancelOrderReconciliationStatus as az, CustomerNamespace as b, type ProductVariantShape as b$, type ListingPrimaryImageFallbackInput as b0, type MediaValue as b1, type NormalizedOptionSwatch as b2, type NormalizedProductSelection as b3, OrderApi as b4, type OrderApiOptions as b5, PRODUCT_UPSERT_READONLY_FIELD_REASON as b6, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as b7, ProductApi as b8, type ProductApiOptions as b9, type ProductListingGroupsProduct as bA, type ProductListingGroupsResponse as bB, type ProductListingProductShape as bC, type ProductListingProjection as bD, type ProductListingSwatch as bE, type ProductMediaResolutionSource as bF, type ProductOptionMatrix as bG, type ProductOptionMatrixOption as bH, type ProductOptionMatrixValue as bI, type ProductOptionMatrixVariant as bJ, type ProductOptionShape as bK, type ProductOptionValueShape as bL, type ProductOptionValueSwatch as bM, type ProductOptionValueSwatchInput as bN, type ProductSelectionAvailableSwatch as bO, type ProductSelectionAvailableValue as bP, type ProductSelectionByOptionValue as bQ, ProductSelectionCodecError as bR, type ProductSelectionCodecOptions as bS, type ProductSelectionInput as bT, type ProductSelectionOptionValue as bU, type ProductSelectionResolution as bV, type ProductSelectionResolutionContext as bW, type ProductSelectionUrlEmit as bX, type ProductSelectionVariant as bY, type ProductUpsertFieldValidationErrorBody as bZ, type ProductUpsertFieldValidationErrorReason as b_, type ProductDetailBrand as ba, type ProductDetailCatalogListing as bb, type ProductDetailCatalogResult as bc, type ProductDetailCatalogVariant as bd, type ProductDetailCategory as be, type ProductDetailImage as bf, type ProductDetailImageMedia as bg, type ProductDetailListing as bh, type ProductDetailMedia as bi, type ProductDetailOption as bj, type ProductDetailOptionValue as bk, type ProductDetailTag as bl, type ProductDetailUnavailableReason as bm, type ProductDetailVariant as bn, type ProductDetailVariantOptionValue as bo, type ProductDetailVideo as bp, type ProductHrefGroup as bq, type ProductHrefOptions as br, type ProductHrefProduct as bs, type ProductListingCard as bt, type ProductListingCardOptions as bu, type ProductListingCardPriceRange as bv, type ProductListingCardRepresentativeVariant as bw, type ProductListingGroup as bx, type ProductListingGroupSummary as by, type ProductListingGroupVariant as bz, type ClientState as c, type RemoveDiscountParams as c0, type RemoveItemParams as c1, type RequestOptions as c2, type ResolveCancelRefundFailedResponse as c3, type ResolveCancelRefundOutcome as c4, type ResolveCancelRefundParams as c5, type ResolveCancelRefundResponse as c6, type ResolveCancelRefundSucceededResponse as c7, type ResolveProductDisplayMediaInput as c8, type ResolveProductDisplayMediaResult as c9, getAvailableOptionValues as cA, getProductSelectionImages as cB, getSelectedValueByOptionId as cC, isProductUpsertFieldValidationErrorBody as cD, normalizeProductSelection as cE, normalizeProductSelectionFromMatrix as cF, normalizeSelectedValueIds as cG, parseProductSelection as cH, resolveListingPrimaryImagePointer as cI, resolveProductDisplayMedia as cJ, resolveProductSelection as cK, resolveProductSelectionFromMatrix as cL, resolveProductSelectionMedia as cM, resolveVariantForSelection as cN, selectNext as cO, selectedSwatchMediaItemId as cP, stringifyProductSelection as cQ, toShopifyPriceRangeV2 as cR, type ReturnItem as ca, type ReturnReason as cb, type ReturnWithRefundItem as cc, type ReturnWithRefundParams as cd, ShippingApi as ce, type ShippingApiOptions as cf, type StockCheckParams as cg, type StockCheckResponse as ch, type StockCheckResult as ci, type StockSnapshotItem as cj, type StockSnapshotParams as ck, type UpdateFulfillmentParams as cl, type UpdateItemParams as cm, type UpdateOrderParams as cn, type UpdateReturnParams as co, type UpdateTransactionParams as cp, type ValidateDiscountParams as cq, type ValidateDiscountResult as cr, type WithIdempotencyKey as cs, buildProductHref as ct, buildProductListingCard as cu, buildProductListingGroupsByOption as cv, buildProductListingProjection as cw, buildProductOptionMatrix as cx, buildProductOptionMatrixFromDetail as cy, createProductSelectionCodec as cz, type ClientConfig as d, type ClientMetadata as e, type DeepPartial as f, type ExtractArrayType as g, type PayloadMutationResponse as h, type RootClient as i, type RootCollectionClient as j, type RootReadOnlyQueryBuilder as k, type ServerApiOptions as l, ServerCommerceClient as m, type BanCustomerParams as n, type CommunityBan as o, type ClientServerConfig as p, type RootServerClientWithEvents as q, type CollectionFieldSchema as r, type CollectionSchemaResponse as s, type EventGuestCancelParams as t, type EventGuestRegistration as u, type EventGuestRegistrationResponse as v, type EventRegistrationAnswerInput as w, type EventRegistrationAttendeeInput as x, type EventRegistrationPublic as y, type EventRegistrationRegisterParams as z };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-C7tb7Xbs.cjs';
2
+ import { F as Form } from '../payload-types-BCui2Oml.cjs';
3
3
  import { RichTextData } from './rich-text.cjs';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
package/dist/ui/form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-C7tb7Xbs.js';
2
+ import { F as Form } from '../payload-types-BCui2Oml.js';
3
3
  import { RichTextData } from './rich-text.js';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-C7tb7Xbs.cjs';
4
+ import { V as Video } from '../payload-types-BCui2Oml.cjs';
5
5
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from '../video-WR_TFO9a.cjs';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-C7tb7Xbs.js';
4
+ import { V as Video } from '../payload-types-BCui2Oml.js';
5
5
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from '../video-WR_TFO9a.js';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
- export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventName, m as CommerceNotificationSource, n as CommerceNotificationSourceCollection, o as CommerceNotificationWebhookEvent, p as CustomerAuthWebhookEvent, q as CustomerAuthWebhookHandlers, r as CustomerPasswordResetWebhookData, s as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, t as OrderChangedWebhookEvent, W as WebhookChange, u as WebhookCommerceNotificationChange, v as WebhookEvent, w as WebhookHandler, x as WebhookKnownOperation, y as WebhookOperation, z as WebhookOptions, A as WebhookOrderChange, B as WebhookOrderMoved, D as WebhookOrderScope, E as createCommerceEmailWebhookHandler, F as createCustomerAuthWebhookHandler, G as createTypedWebhookHandler, H as defineCommerceEmailConfig, I as getCommerceNotificationIdempotencyKey, J as handleWebhook, K as isCommerceNotificationWebhookEvent, L as isCustomerPasswordResetWebhookEvent, M as isOrderChangedWebhookEvent, N as isValidWebhookEvent, P as isWebhookCollection, Q as isWebhookOperation } from './index-CjA3U6X3.cjs';
2
- import { W as Webhook } from './payload-types-C7tb7Xbs.cjs';
3
- import './const-BTvdrXtY.cjs';
4
- import './types-Bx558PU6.cjs';
1
+ export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventName, m as CommerceNotificationSource, n as CommerceNotificationSourceCollection, o as CommerceNotificationWebhookEvent, p as CustomerAuthWebhookEvent, q as CustomerAuthWebhookHandlers, r as CustomerPasswordResetWebhookData, s as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, t as OrderChangedWebhookEvent, W as WebhookChange, u as WebhookCommerceNotificationChange, v as WebhookEvent, w as WebhookHandler, x as WebhookKnownOperation, y as WebhookOperation, z as WebhookOptions, A as WebhookOrderChange, B as WebhookOrderMoved, D as WebhookOrderScope, E as createCommerceEmailWebhookHandler, F as createCustomerAuthWebhookHandler, G as createTypedWebhookHandler, H as defineCommerceEmailConfig, I as getCommerceNotificationIdempotencyKey, J as handleWebhook, K as isCommerceNotificationWebhookEvent, L as isCustomerPasswordResetWebhookEvent, M as isOrderChangedWebhookEvent, N as isValidWebhookEvent, P as isWebhookCollection, Q as isWebhookOperation } from './index-BHDKJ6B3.cjs';
2
+ import { W as Webhook } from './payload-types-BCui2Oml.cjs';
3
+ import './const-DVcM7Ac_.cjs';
4
+ import './types-CEzLf3PX.cjs';
5
5
 
6
6
  /**
7
7
  * Webhook records returned from ordinary list/find — `secret` is encrypted at
package/dist/webhook.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventName, m as CommerceNotificationSource, n as CommerceNotificationSourceCollection, o as CommerceNotificationWebhookEvent, p as CustomerAuthWebhookEvent, q as CustomerAuthWebhookHandlers, r as CustomerPasswordResetWebhookData, s as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, t as OrderChangedWebhookEvent, W as WebhookChange, u as WebhookCommerceNotificationChange, v as WebhookEvent, w as WebhookHandler, x as WebhookKnownOperation, y as WebhookOperation, z as WebhookOptions, A as WebhookOrderChange, B as WebhookOrderMoved, D as WebhookOrderScope, E as createCommerceEmailWebhookHandler, F as createCustomerAuthWebhookHandler, G as createTypedWebhookHandler, H as defineCommerceEmailConfig, I as getCommerceNotificationIdempotencyKey, J as handleWebhook, K as isCommerceNotificationWebhookEvent, L as isCustomerPasswordResetWebhookEvent, M as isOrderChangedWebhookEvent, N as isValidWebhookEvent, P as isWebhookCollection, Q as isWebhookOperation } from './index-DK8_NXkh.js';
2
- import { W as Webhook } from './payload-types-C7tb7Xbs.js';
3
- import './const-CdqCauHQ.js';
4
- import './types-1ylMrCuW.js';
1
+ export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventName, m as CommerceNotificationSource, n as CommerceNotificationSourceCollection, o as CommerceNotificationWebhookEvent, p as CustomerAuthWebhookEvent, q as CustomerAuthWebhookHandlers, r as CustomerPasswordResetWebhookData, s as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, t as OrderChangedWebhookEvent, W as WebhookChange, u as WebhookCommerceNotificationChange, v as WebhookEvent, w as WebhookHandler, x as WebhookKnownOperation, y as WebhookOperation, z as WebhookOptions, A as WebhookOrderChange, B as WebhookOrderMoved, D as WebhookOrderScope, E as createCommerceEmailWebhookHandler, F as createCustomerAuthWebhookHandler, G as createTypedWebhookHandler, H as defineCommerceEmailConfig, I as getCommerceNotificationIdempotencyKey, J as handleWebhook, K as isCommerceNotificationWebhookEvent, L as isCustomerPasswordResetWebhookEvent, M as isOrderChangedWebhookEvent, N as isValidWebhookEvent, P as isWebhookCollection, Q as isWebhookOperation } from './index-DTSXUYkr.js';
2
+ import { W as Webhook } from './payload-types-BCui2Oml.js';
3
+ import './const-BDUKFP9w.js';
4
+ import './types-3qV6sY7T.js';
5
5
 
6
6
  /**
7
7
  * Webhook records returned from ordinary list/find — `secret` is encrypted at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "repository": {
@@ -221,8 +221,8 @@
221
221
  "tsup": "^8.5.1",
222
222
  "typescript": "5.7.3",
223
223
  "vitest": "^4.1.5",
224
- "@repo/typescript-config": "0.0.0",
225
- "@repo/eslint-config": "0.0.0"
224
+ "@repo/eslint-config": "0.0.0",
225
+ "@repo/typescript-config": "0.0.0"
226
226
  },
227
227
  "dependencies": {
228
228
  "qs-esm": "^8.0.1"