@01.software/sdk 0.38.0 → 0.39.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 (56) hide show
  1. package/README.md +117 -34
  2. package/dist/analytics/react.cjs.map +1 -1
  3. package/dist/analytics/react.js.map +1 -1
  4. package/dist/analytics.cjs.map +1 -1
  5. package/dist/analytics.js.map +1 -1
  6. package/dist/client.cjs +1219 -5
  7. package/dist/client.cjs.map +1 -1
  8. package/dist/client.d.cts +5 -4
  9. package/dist/client.d.ts +5 -4
  10. package/dist/client.js +1219 -5
  11. package/dist/client.js.map +1 -1
  12. package/dist/{collection-client-BroIWHY1.d.ts → collection-client-CaMgs5KE.d.ts} +14 -8
  13. package/dist/{collection-client-B0J9wMNE.d.cts → collection-client-DVfB0Em1.d.cts} +14 -8
  14. package/dist/errors.cjs +4 -1
  15. package/dist/errors.cjs.map +1 -1
  16. package/dist/errors.js +4 -1
  17. package/dist/errors.js.map +1 -1
  18. package/dist/index.cjs +2787 -2612
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +2787 -2612
  23. package/dist/index.js.map +1 -1
  24. package/dist/query.cjs +241 -58
  25. package/dist/query.cjs.map +1 -1
  26. package/dist/query.d.cts +148 -23
  27. package/dist/query.d.ts +148 -23
  28. package/dist/query.js +241 -58
  29. package/dist/query.js.map +1 -1
  30. package/dist/realtime.cjs +5 -1
  31. package/dist/realtime.cjs.map +1 -1
  32. package/dist/realtime.js +5 -1
  33. package/dist/realtime.js.map +1 -1
  34. package/dist/server.cjs +1149 -1
  35. package/dist/server.cjs.map +1 -1
  36. package/dist/server.d.cts +4 -4
  37. package/dist/server.d.ts +4 -4
  38. package/dist/server.js +1149 -1
  39. package/dist/server.js.map +1 -1
  40. package/dist/storefront-cache.cjs +144 -0
  41. package/dist/storefront-cache.cjs.map +1 -0
  42. package/dist/storefront-cache.d.cts +24 -0
  43. package/dist/storefront-cache.d.ts +24 -0
  44. package/dist/storefront-cache.js +121 -0
  45. package/dist/storefront-cache.js.map +1 -0
  46. package/dist/{types-CIGscmus.d.cts → types-BQo7UdI9.d.cts} +181 -35
  47. package/dist/{types-D2xYdz4P.d.ts → types-CVf8sCZ-.d.ts} +181 -35
  48. package/dist/ui/canvas/server.cjs +5 -1
  49. package/dist/ui/canvas/server.cjs.map +1 -1
  50. package/dist/ui/canvas/server.js +5 -1
  51. package/dist/ui/canvas/server.js.map +1 -1
  52. package/dist/ui/canvas.cjs +5 -1
  53. package/dist/ui/canvas.cjs.map +1 -1
  54. package/dist/ui/canvas.js +5 -1
  55. package/dist/ui/canvas.js.map +1 -1
  56. package/package.json +13 -3
@@ -1194,7 +1194,8 @@ type ProductListingSwatch = {
1194
1194
  href: string;
1195
1195
  availableForSale: boolean;
1196
1196
  };
1197
- type ProductListingCardRepresentativeVariant = ProductListingGroupsItem['groups'][number]['variants'][number];
1197
+ type ProductListingCardSourceItem = ProductListingGroupsCatalogItem | ProductListingGroupsItem;
1198
+ type ProductListingCardRepresentativeVariant = ProductListingCardSourceItem['groups'][number]['variants'][number];
1198
1199
  type ProductListingCard = {
1199
1200
  id: EntityID;
1200
1201
  href: string;
@@ -1353,7 +1354,7 @@ type ProductListingCardOptions = {
1353
1354
  };
1354
1355
  declare function buildProductHref(product: ProductHrefProduct, group?: ProductHrefGroup | null, options?: ProductHrefOptions): string;
1355
1356
  declare function buildProductListingProjection(product: ProductListingProductShape | null | undefined, variants: ProductVariantShape[]): ProductListingProjection;
1356
- declare function buildProductListingCard(item: ProductListingGroupsItem, options?: ProductListingCardOptions): ProductListingCard;
1357
+ declare function buildProductListingCard(item: ProductListingCardSourceItem, options?: ProductListingCardOptions): ProductListingCard;
1357
1358
  /** Shopify `priceRangeV2` naming for persisted listing projection fields. */
1358
1359
  declare function toShopifyPriceRangeV2(listing: {
1359
1360
  minPrice?: number | null;
@@ -1367,33 +1368,22 @@ declare function toShopifyPriceRangeV2(listing: {
1367
1368
  };
1368
1369
  };
1369
1370
  /**
1370
- * PLP-safe query preset for the `products` collection.
1371
+ * Server-side PLP query preset for raw `products` collection reads.
1371
1372
  *
1372
- * Payload's top-level `type: 'join'` fields on `products` (`variants`,
1373
- * `options`) return at most 10 docs by default when queried via the REST API.
1374
- * Storefront PLPs calling `client.collections.from('products').find()` without
1375
- * explicit join limits silently receive truncated variant/option join data.
1376
- * `buildProductListingGroupsByOption()` then drops primary-option values with
1377
- * no matching variant in the response — a common cause of missing color swatches
1378
- * even when the product has more variants than the default join cap.
1373
+ * Greenfield storefronts should prefer
1374
+ * `client.commerce.product.listingPage()` because it calls the shaped catalog
1375
+ * endpoint, preserves pagination metadata, returns card-ready `cards`, and
1376
+ * avoids exposing inventory quantities.
1379
1377
  *
1380
- * Spread this constant into your `find()` call to raise both top-level limits:
1378
+ * This preset remains only for server-auth raw product query code
1379
+ * that deliberately understands Payload join behavior. It raises top-level
1380
+ * `products.options` and `products.variants` join limits, but it cannot fix
1381
+ * nested `options[].values.docs` joins because the Payload REST `joins` param
1382
+ * is flat.
1381
1383
  *
1382
- * ```typescript
1383
- * const { docs } = await client.collections.from('products').find({
1384
- * ...PRODUCT_PLP_FIND_OPTIONS,
1385
- * where: { status: { equals: 'published' } },
1386
- * limit: 24,
1387
- * })
1388
- * ```
1389
- *
1390
- * **Limitation:** This preset cures top-level `products.options` and
1391
- * `products.variants` join truncation. It cannot cure the nested
1392
- * `options[].values.docs` join — the Payload REST `joins` param is flat and
1393
- * nested join limits require the listing-groups endpoint. Prefer
1394
- * `commerce.product.listingGroupsCatalog()` + `buildProductListingCard()` as
1395
- * the primary PLP path; they apply unlimited join fetches server-side and
1396
- * return pre-grouped data ready for rendering.
1384
+ * It is not accepted by publishable
1385
+ * `createClient().collections.from('products').find()` because browser-public
1386
+ * raw reads are constrained to `depth: 0`, `joins: false`, and no `populate`.
1397
1387
  */
1398
1388
  declare const PRODUCT_PLP_FIND_OPTIONS: ApiQueryOptions;
1399
1389
  /**
@@ -1530,16 +1520,37 @@ type ProductListingGroupsProductVariants = NonNullable<PublicProduct['variants']
1530
1520
  type ProductListingGroupsProductPrimaryMediaItemId = string | number | {
1531
1521
  id?: string | number | null;
1532
1522
  } | null;
1533
- type ProductListingGroupsProduct = Omit<PublicProduct, 'variants'> & {
1523
+ type ProductListingGroupsProduct = Omit<PublicProduct, 'createdAt' | 'primaryMediaItemId' | 'updatedAt' | 'variants'> & {
1534
1524
  id: string;
1535
1525
  slug: string;
1536
1526
  title: string;
1527
+ createdAt?: PublicProduct['createdAt'];
1528
+ updatedAt?: PublicProduct['updatedAt'];
1537
1529
  primaryMediaItemId?: ProductListingGroupsProductPrimaryMediaItemId;
1538
1530
  variants?: (Omit<ProductListingGroupsProductVariants, 'docs'> & {
1539
1531
  docs: ProductListingGroupVariant[];
1540
1532
  }) | null;
1541
1533
  };
1542
- type ProductListingGroupsCatalogProduct = Omit<ProductListingGroupsProduct, 'variants'> & {
1534
+ type ProductListingGroupsCatalogListing = {
1535
+ minPrice?: NonNullable<ProductListingGroupsProduct['listing']>['minPrice'];
1536
+ maxPrice?: NonNullable<ProductListingGroupsProduct['listing']>['maxPrice'];
1537
+ minCompareAtPrice?: NonNullable<ProductListingGroupsProduct['listing']>['minCompareAtPrice'];
1538
+ maxCompareAtPrice?: NonNullable<ProductListingGroupsProduct['listing']>['maxCompareAtPrice'];
1539
+ isPriceRange?: NonNullable<ProductListingGroupsProduct['listing']>['isPriceRange'];
1540
+ primaryImage?: NonNullable<ProductListingGroupsProduct['listing']>['primaryImage'];
1541
+ availableForSale?: NonNullable<ProductListingGroupsProduct['listing']>['availableForSale'];
1542
+ selectionHintVariant?: NonNullable<ProductListingGroupsProduct['listing']>['selectionHintVariant'];
1543
+ };
1544
+ type ProductListingGroupsCatalogProduct = {
1545
+ id: string;
1546
+ slug: string;
1547
+ handle?: string | null;
1548
+ title: string;
1549
+ subtitle?: ProductListingGroupsProduct['subtitle'];
1550
+ primaryMediaItemId?: ProductListingGroupsProductPrimaryMediaItemId;
1551
+ thumbnail?: ProductListingGroupsProduct['thumbnail'];
1552
+ images?: ProductListingGroupsProduct['images'];
1553
+ listing?: ProductListingGroupsCatalogListing | null;
1543
1554
  variants?: (Omit<NonNullable<ProductListingGroupsProduct['variants']>, 'docs'> & {
1544
1555
  docs: ProductListingGroupCatalogVariant[];
1545
1556
  }) | null;
@@ -1565,6 +1576,36 @@ type ProductListingGroupsResponse = {
1565
1576
  type ProductListingGroupsCatalogResponse = Omit<ProductListingGroupsResponse, 'docs'> & {
1566
1577
  docs: ProductListingGroupsCatalogItem[];
1567
1578
  };
1579
+ type ProductListingPageSort = 'id' | '-id' | 'slug' | '-slug' | 'handle' | '-handle' | 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'title' | '-title' | 'listing.minPrice' | '-listing.minPrice' | 'listing.maxPrice' | '-listing.maxPrice' | 'listing.availableForSale' | '-listing.availableForSale';
1580
+ type ProductListingPageFilters = {
1581
+ ids?: string[];
1582
+ slugs?: string[];
1583
+ handles?: string[];
1584
+ categoryIds?: string[];
1585
+ tagIds?: string[];
1586
+ price?: {
1587
+ min?: number;
1588
+ max?: number;
1589
+ };
1590
+ availableForSale?: boolean;
1591
+ };
1592
+ type ProductListingPageBaseParams = {
1593
+ page?: number;
1594
+ limit?: number;
1595
+ search?: string;
1596
+ sort?: ProductListingPageSort | ProductListingPageSort[];
1597
+ filters?: ProductListingPageFilters;
1598
+ } & ProductListingCardOptions;
1599
+ type ProductListingPageCatalogParams = ProductListingPageBaseParams & {
1600
+ mode?: 'catalog';
1601
+ };
1602
+ type ProductListingPageFullParams = ProductListingPageBaseParams & {
1603
+ mode: 'full';
1604
+ };
1605
+ type ProductListingPageParams = ProductListingPageCatalogParams | ProductListingPageFullParams;
1606
+ type ProductListingPageResult<TItem> = PayloadFindResponse<TItem> & {
1607
+ cards: ProductListingCard[];
1608
+ };
1568
1609
  type ProductDetailParams = {
1569
1610
  slug: string;
1570
1611
  } | {
@@ -1778,6 +1819,9 @@ declare class ProductApi extends BaseApi {
1778
1819
  stockSnapshot(params: StockSnapshotParams): Promise<StockSnapshotResponse>;
1779
1820
  listingGroups(params: ListingGroupsParams): Promise<ProductListingGroupsResponse>;
1780
1821
  listingGroupsCatalog(params: ListingGroupsParams): Promise<ProductListingGroupsCatalogResponse>;
1822
+ listingPage(params?: ProductListingPageCatalogParams): Promise<ProductListingPageResult<ProductListingGroupsCatalogItem>>;
1823
+ listingPage(params: ProductListingPageFullParams): Promise<ProductListingPageResult<ProductListingGroupsItem>>;
1824
+ listingPage(params: ProductListingPageParams): Promise<ProductListingPageResult<ProductListingGroupsCatalogItem> | ProductListingPageResult<ProductListingGroupsItem>>;
1781
1825
  /**
1782
1826
  * Fetch full product detail by slug or id.
1783
1827
  * Returns a discriminated result so storefronts can distinguish missing,
@@ -1849,8 +1893,11 @@ declare class CommerceClient {
1849
1893
  readonly product: {
1850
1894
  stockCheck: (params: StockCheckParams) => Promise<StockCheckResponse>;
1851
1895
  stockSnapshot: (params: StockSnapshotParams) => Promise<StockSnapshotResponse>;
1852
- listingGroups: (params: ListingGroupsParams) => Promise<ProductListingGroupsResponse>;
1896
+ listingGroups: (params: ListingGroupsParams) => Promise<ProductListingGroupsCatalogResponse>;
1853
1897
  listingGroupsCatalog: (params: ListingGroupsParams) => Promise<ProductListingGroupsCatalogResponse>;
1898
+ listingPage: {
1899
+ (params?: ProductListingPageCatalogParams): Promise<ProductListingPageResult<ProductListingGroupsCatalogItem>>;
1900
+ };
1854
1901
  detail: (params: ProductDetailParams) => Promise<ProductDetailResult>;
1855
1902
  detailCatalog: (params: ProductDetailParams) => Promise<ProductDetailCatalogResult>;
1856
1903
  };
@@ -1884,6 +1931,85 @@ declare class CommerceClient {
1884
1931
  constructor(options: CommerceClientOptions);
1885
1932
  }
1886
1933
 
1934
+ type StorefrontContentReference = {
1935
+ id?: string | number | null;
1936
+ title?: string | null;
1937
+ name?: string | null;
1938
+ slug?: string | null;
1939
+ displayName?: string | null;
1940
+ handle?: string | null;
1941
+ color?: string | null;
1942
+ image?: PublicMediaAsset | null;
1943
+ thumbnail?: PublicMediaAsset | null;
1944
+ avatar?: PublicMediaAsset | null;
1945
+ };
1946
+ type StorefrontLink = {
1947
+ id?: string | number | null;
1948
+ title?: string | null;
1949
+ subtitle?: string | null;
1950
+ url?: string | null;
1951
+ description?: string | null;
1952
+ slug?: string | null;
1953
+ type?: 'external' | 'social' | 'internal' | string | null;
1954
+ platform?: string | null;
1955
+ opensInNewTab?: boolean | null;
1956
+ noFollow?: boolean | null;
1957
+ expiresAt?: string | null;
1958
+ isFeatured?: boolean | null;
1959
+ publishedAt?: string | null;
1960
+ createdAt?: string | null;
1961
+ updatedAt?: string | null;
1962
+ categories?: StorefrontContentReference[] | StorefrontContentReference | null;
1963
+ tags?: StorefrontContentReference[] | StorefrontContentReference | null;
1964
+ thumbnail?: PublicMediaAsset | null;
1965
+ icon?: PublicMediaAsset | null;
1966
+ };
1967
+ type StorefrontGalleryItem = {
1968
+ id?: string | number | null;
1969
+ title?: string | null;
1970
+ description?: string | null;
1971
+ content?: unknown;
1972
+ createdAt?: string | null;
1973
+ updatedAt?: string | null;
1974
+ gallery?: StorefrontContentReference | string | null;
1975
+ image?: PublicMediaAsset | null;
1976
+ };
1977
+ type StorefrontLinksSort = 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'publishedAt' | '-publishedAt' | 'title' | '-title' | 'isFeatured' | '-isFeatured';
1978
+ type StorefrontGalleryItemsSort = 'manual' | 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'title' | '-title';
1979
+ type StorefrontContentListOptions<TSort extends string = string> = {
1980
+ page?: number;
1981
+ limit?: number;
1982
+ sort?: TSort;
1983
+ };
1984
+ type StorefrontLinksListOptions = StorefrontContentListOptions<StorefrontLinksSort> & {
1985
+ categoryId?: string;
1986
+ categorySlug?: string;
1987
+ tagId?: string;
1988
+ tagSlug?: string;
1989
+ featured?: boolean;
1990
+ };
1991
+ type StorefrontGalleryItemsListOptions = StorefrontContentListOptions<StorefrontGalleryItemsSort> & ({
1992
+ galleryId: string;
1993
+ gallerySlug?: string;
1994
+ } | {
1995
+ galleryId?: string;
1996
+ gallerySlug: string;
1997
+ });
1998
+ type ContentClientOptions = {
1999
+ publishableKey: string;
2000
+ apiUrl?: string;
2001
+ onRequestId?: (id: string | null) => void;
2002
+ };
2003
+ declare class ContentClient {
2004
+ readonly links: {
2005
+ list: (options?: StorefrontLinksListOptions) => Promise<PayloadFindResponse<StorefrontLink>>;
2006
+ };
2007
+ readonly galleryItems: {
2008
+ list: (options: StorefrontGalleryItemsListOptions) => Promise<PayloadFindResponse<StorefrontGalleryItem>>;
2009
+ };
2010
+ constructor(options: ContentClientOptions);
2011
+ }
2012
+
1887
2013
  interface ServerCommerceClientOptions {
1888
2014
  publishableKey?: string;
1889
2015
  secretKey: string;
@@ -1894,6 +2020,11 @@ declare class ServerCommerceClient {
1894
2020
  readonly product: {
1895
2021
  stockCheck: (params: StockCheckParams) => Promise<StockCheckResponse>;
1896
2022
  listingGroups: (params: ListingGroupsParams) => Promise<ProductListingGroupsResponse>;
2023
+ listingPage: {
2024
+ (params?: ProductListingPageCatalogParams): Promise<ProductListingPageResult<ProductListingGroupsCatalogItem>>;
2025
+ (params: ProductListingPageFullParams): Promise<ProductListingPageResult<ProductListingGroupsItem>>;
2026
+ (params: ProductListingPageParams): Promise<ProductListingPageResult<ProductListingGroupsCatalogItem> | ProductListingPageResult<ProductListingGroupsItem>>;
2027
+ };
1897
2028
  detail: (params: ProductDetailParams) => Promise<ProductDetailResult>;
1898
2029
  previewDetail: (params: ProductDetailPreviewParams, options: ProductDetailPreviewOptions) => Promise<ProductDetail | null>;
1899
2030
  upsert: (params: ProductUpsertParams) => Promise<ProductUpsertResponse>;
@@ -2332,6 +2463,20 @@ interface ApiQueryOptions {
2332
2463
  /** Include soft-deleted documents (requires `trash` enabled on the collection) */
2333
2464
  trash?: boolean;
2334
2465
  }
2466
+ type PublicReadQueryOptions = Omit<ApiQueryOptions, 'depth' | 'joins' | 'populate'> & {
2467
+ /**
2468
+ * Publishable collection reads stay unpopulated. Use shaped commerce/community
2469
+ * endpoints or a server client when populated relations are required.
2470
+ */
2471
+ depth?: 0;
2472
+ /**
2473
+ * Publishable collection reads disable Payload join fields to avoid accidental
2474
+ * exposure and expensive generic list responses.
2475
+ */
2476
+ joins?: false;
2477
+ /** Publishable collection reads do not support relationship populate maps. */
2478
+ populate?: never;
2479
+ };
2335
2480
  interface DebugConfig {
2336
2481
  logRequests?: boolean;
2337
2482
  logResponses?: boolean;
@@ -2342,14 +2487,14 @@ interface RetryConfig {
2342
2487
  retryableStatuses?: number[];
2343
2488
  retryDelay?: (attempt: number) => number;
2344
2489
  }
2345
- interface RootQueryLookup<T extends string> {
2346
- find(options?: ApiQueryOptions): Promise<PayloadFindResponse<CollectionType<T>>>;
2347
- findById(id: string | number, options?: ApiQueryOptions): Promise<CollectionType<T>>;
2348
- count(options?: ApiQueryOptions): Promise<{
2490
+ interface RootQueryLookup<T extends string, Options extends ApiQueryOptions = ApiQueryOptions> {
2491
+ find(options?: Options): Promise<PayloadFindResponse<CollectionType<T>>>;
2492
+ findById(id: string | number, options?: Options): Promise<CollectionType<T>>;
2493
+ count(options?: Options): Promise<{
2349
2494
  totalDocs: number;
2350
2495
  }>;
2351
2496
  }
2352
- type RootReadOnlyQueryBuilder<T extends PublicCollection> = RootQueryLookup<T>;
2497
+ type RootReadOnlyQueryBuilder<T extends PublicCollection> = RootQueryLookup<T, PublicReadQueryOptions>;
2353
2498
  interface RootServerQueryBuilder<T extends ServerCollection> extends RootQueryLookup<T> {
2354
2499
  create(data: Partial<CollectionType<T>>, options?: {
2355
2500
  file?: File | Blob;
@@ -2372,6 +2517,7 @@ interface RootServerCollectionClient {
2372
2517
  interface RootClient {
2373
2518
  commerce: CommerceClient;
2374
2519
  community: CommunityClient;
2520
+ content: ContentClient;
2375
2521
  /** Set on {@link createClient} return values; optional for structural mocks. */
2376
2522
  events?: EventsClient;
2377
2523
  customer: CustomerNamespace;
@@ -2409,4 +2555,4 @@ type DeepPartial<T> = {
2409
2555
  };
2410
2556
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
2411
2557
 
2412
- export { type EventsCalendarItem as $, type AddItemParams as A, BaseApi as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, ServerCommerceClient as F, type BanCustomerParams as G, type CommunityBan as H, type UnbanCustomerParams as I, type ClientServerConfig as J, type RootServerClientWithEvents as K, type CollectionFieldSchema as L, type CollectionSchemaResponse as M, type EventGuestCancelParams as N, type EventGuestRegistration as O, type PayloadFindResponse as P, type EventGuestRegistrationResponse as Q, type RemoveDiscountParams as R, type Sort as S, type TenantIntrospectionClient as T, type UpdateItemParams as U, type EventRegistrationAnswerInput as V, type Where as W, type EventRegistrationAttendeeInput as X, type EventRegistrationPublic as Y, type EventRegistrationRegisterParams as Z, type EventRegistrationRegisterResponse as _, CommunityClient as a, type CommunityPublicAuthorSnapshot as a$, type EventsClientOptions as a0, type EventsDateParam as a1, type EventsExternalSource as a2, type EventsLocation as a3, type EventsOccurrenceLocation as a4, type EventsRangeEvent as a5, type EventsRangeOccurrence as a6, type EventsRangeParams as a7, type EventsRangeResponse as a8, type EventsTaxonomyItem as a9, type ProductDetailCatalog as aA, type StockSnapshotResponse as aB, type ProductSelectionMediaSource as aC, type ProductDisplayMediaSource as aD, type ResolveProductSelectionMediaInput as aE, type ResolveProductSelectionMediaResult as aF, type ProductSelectionMediaPointer as aG, type RootClientWithEvents as aH, type BulkImportFulfillmentsParams as aI, type BulkImportFulfillmentsResponse as aJ, type CalculateShippingParams as aK, type CalculateShippingResult as aL, type CancelOrderParams as aM, type CancelOrderReconciliationStatus as aN, type CancelOrderResponse as aO, type CancelReasonCode as aP, CartApi as aQ, type CartApiOptions as aR, type Comment as aS, type CommerceClientOptions as aT, type CommunityClientOptions as aU, type CommunityComment as aV, type CommunityCommentListSort as aW, type CommunityPost as aX, type CommunityPostCategory as aY, type CommunityPostListSort as aZ, type CommunityPostTag as a_, ModerationApi as aa, type RootServerClient as ab, type TenantFeatureProgressEvidenceValue as ac, type TenantFeatureProgressFeature as ad, type TenantFeatureProgressGroup as ae, type TenantFeatureProgressInput as af, type TenantFeatureProgressItem as ag, type TenantFeatureProgressItemState as ah, type TenantFeatureProgressResponse as ai, type TenantFeatureProgressSeverity as aj, type TenantFeatureProgressStatus as ak, TenantIntrospectionApi as al, type TenantIntrospectionApiOptions as am, CustomerAuth as an, type CustomerProfile as ao, type CustomerAuthResponse as ap, type CustomerLoginData as aq, type CustomerRegisterResponse as ar, type CustomerRegisterData as as, type CustomerRefreshResponse as at, type UpdateProfileData as au, type ProductDetailParams as av, type ProductDetailResult as aw, type ProductListingGroupsItem as ax, type ProductListingGroupsCatalogItem as ay, type ProductDetail as az, CustomerNamespace as b, type ProductMediaResolutionSource as b$, type CommunityPublicMediaAsset as b0, type CommunityPublicReference as b1, type CompatibilityProductSelectionParamEvent as b2, type ConfirmPaymentParams as b3, type ConfirmPaymentResponse as b4, type CreateFulfillmentParams as b5, type CreateOrderItem as b6, type CreateOrderParams as b7, type CreateReturnParams as b8, type CustomerAuthOptions as b9, type ProductDetailMedia as bA, type ProductDetailOption as bB, type ProductDetailOptionValue as bC, type ProductDetailTag as bD, type ProductDetailUnavailableReason as bE, type ProductDetailVariant as bF, type ProductDetailVariantOptionValue as bG, type ProductDetailVideo as bH, type ProductHrefGroup as bI, type ProductHrefOptions as bJ, type ProductHrefProduct as bK, type ProductListingCard as bL, type ProductListingCardOptions as bM, type ProductListingCardPriceRange as bN, type ProductListingCardRepresentativeVariant as bO, type ProductListingGroup as bP, type ProductListingGroupCatalogSummary as bQ, type ProductListingGroupCatalogVariant as bR, type ProductListingGroupSummary as bS, type ProductListingGroupVariant as bT, type ProductListingGroupsCatalogProduct as bU, type ProductListingGroupsCatalogResponse as bV, type ProductListingGroupsProduct as bW, type ProductListingGroupsResponse as bX, type ProductListingProductShape as bY, type ProductListingProjection as bZ, type ProductListingSwatch as b_, type CustomerSnapshot as ba, DiscountApi as bb, type DiscountApiOptions as bc, type LegacyProductSelectionParamEvent as bd, type ListingGroupsParams as be, type ListingPrimaryImageFallbackInput as bf, type MediaValue as bg, type NormalizedOptionSwatch as bh, type NormalizedProductSelection as bi, OrderApi as bj, type OrderApiOptions as bk, PRODUCT_PLP_FIND_OPTIONS as bl, PRODUCT_UPSERT_READONLY_FIELD_REASON as bm, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bn, type PrepareFulfillmentOrderParams as bo, type PrepareFulfillmentOrderResponse as bp, ProductApi as bq, type ProductApiOptions as br, type ProductDetailBrand as bs, type ProductDetailCatalogListing as bt, type ProductDetailCatalogResult as bu, type ProductDetailCatalogVariant as bv, type ProductDetailCategory as bw, type ProductDetailImage as bx, type ProductDetailImageMedia as by, type ProductDetailListing as bz, type ClientState as c, resolveListingPrimaryImagePointer as c$, type ProductOptionMatrix as c0, type ProductOptionMatrixOption as c1, type ProductOptionMatrixValue as c2, type ProductOptionMatrixVariant as c3, type ProductOptionShape as c4, type ProductOptionValueShape as c5, type ProductOptionValueSwatch as c6, type ProductOptionValueSwatchInput as c7, type ProductSelectionAvailableSwatch as c8, type ProductSelectionAvailableValue as c9, type StockCheckParams as cA, type StockCheckResponse as cB, type StockCheckResult as cC, type StockSnapshotItem as cD, type StockSnapshotParams as cE, type UpdateFulfillmentParams as cF, type UpdateOrderParams as cG, type UpdateReturnParams as cH, type UpdateTransactionParams as cI, type ValidateDiscountParams as cJ, type ValidateDiscountResult as cK, type WithIdempotencyKey as cL, buildProductHref as cM, buildProductListingCard as cN, buildProductListingGroupsByOption as cO, buildProductListingProjection as cP, buildProductOptionMatrix as cQ, buildProductOptionMatrixFromDetail as cR, createProductSelectionCodec as cS, getAvailableOptionValues as cT, getProductSelectionImages as cU, getSelectedValueByOptionId as cV, isProductUpsertFieldValidationErrorBody as cW, normalizeProductSelection as cX, normalizeProductSelectionFromMatrix as cY, normalizeSelectedValueIds as cZ, parseProductSelection as c_, type ProductSelectionByOptionValue as ca, ProductSelectionCodecError as cb, type ProductSelectionCodecOptions as cc, type ProductSelectionInput as cd, type ProductSelectionOptionValue as ce, type ProductSelectionResolution as cf, type ProductSelectionResolutionContext as cg, type ProductSelectionUrlEmit as ch, type ProductSelectionVariant as ci, type ProductUpsertFieldValidationErrorBody as cj, type ProductUpsertFieldValidationErrorReason as ck, type ProductVariantShape as cl, type RequestOptions as cm, type ResolveCancelRefundFailedResponse as cn, type ResolveCancelRefundOutcome as co, type ResolveCancelRefundParams as cp, type ResolveCancelRefundResponse as cq, type ResolveCancelRefundSucceededResponse as cr, type ResolveProductDisplayMediaInput as cs, type ResolveProductDisplayMediaResult as ct, type ReturnItem as cu, type ReturnReason as cv, type ReturnWithRefundItem as cw, type ReturnWithRefundParams as cx, ShippingApi as cy, type ShippingApiOptions as cz, type ClientConfig as d, resolveProductDisplayMedia as d0, resolveProductSelection as d1, resolveProductSelectionFromMatrix as d2, resolveProductSelectionMedia as d3, resolveVariantForSelection as d4, selectNext as d5, selectedSwatchMediaItemId as d6, stringifyProductSelection as d7, toShopifyPriceRangeV2 as d8, type ApiQueryOptions as e, type ApplyDiscountParams as f, type CheckoutParams as g, type ClearCartParams as h, type ClientMetadata as i, type DeepPartial as j, type ExtractArrayType as k, type PayloadMutationResponse as l, type PublicCart as m, type PublicCartItem as n, type PublicCartReference as o, type PublicMediaAsset as p, type PublicMediaSize as q, type PublicOrder as r, type PublicOrderItem as s, type PublicOrderReference as t, type RemoveItemParams as u, type RetryConfig as v, type RootClient as w, type RootCollectionClient as x, type RootReadOnlyQueryBuilder as y, type ServerApiOptions as z };
2558
+ export { type CollectionFieldSchema as $, type AddItemParams as A, type RootReadOnlyQueryBuilder as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type StorefrontContentListOptions as F, type StorefrontContentReference as G, type StorefrontGalleryItem as H, type StorefrontGalleryItemsListOptions as I, type StorefrontGalleryItemsSort as J, type StorefrontLink as K, type StorefrontLinksListOptions as L, type StorefrontLinksSort as M, BaseApi as N, type ServerApiOptions as O, type PayloadFindResponse as P, ServerCommerceClient as Q, type RemoveDiscountParams as R, type Sort as S, type TenantIntrospectionClient as T, type UpdateItemParams as U, type BanCustomerParams as V, type Where as W, type CommunityBan as X, type UnbanCustomerParams as Y, type ClientServerConfig as Z, type RootServerClientWithEvents as _, CommunityClient as a, type CalculateShippingResult as a$, type CollectionSchemaResponse as a0, type EventGuestCancelParams as a1, type EventGuestRegistration as a2, type EventGuestRegistrationResponse as a3, type EventRegistrationAnswerInput as a4, type EventRegistrationAttendeeInput as a5, type EventRegistrationPublic as a6, type EventRegistrationRegisterParams as a7, type EventRegistrationRegisterResponse as a8, type EventsCalendarItem as a9, 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 ProductListingPageBaseParams as aG, type ProductListingPageParams as aH, type ProductDetailParams as aI, type ProductDetailResult as aJ, type ProductListingPageCatalogParams as aK, type ProductListingPageResult as aL, type ProductListingGroupsCatalogItem as aM, type ProductListingPageFullParams as aN, type ProductListingGroupsItem as aO, type ProductDetail as aP, type ProductDetailCatalog as aQ, type StockSnapshotResponse as aR, type ProductSelectionMediaSource as aS, type ProductDisplayMediaSource as aT, type ResolveProductSelectionMediaInput as aU, type ResolveProductSelectionMediaResult as aV, type ProductSelectionMediaPointer as aW, type RootClientWithEvents as aX, type BulkImportFulfillmentsParams as aY, type BulkImportFulfillmentsResponse as aZ, type CalculateShippingParams as a_, type EventsClientOptions as aa, type EventsDateParam as ab, type EventsExternalSource as ac, type EventsLocation as ad, type EventsOccurrenceLocation as ae, type EventsRangeEvent as af, type EventsRangeOccurrence as ag, type EventsRangeParams as ah, type EventsRangeResponse as ai, type EventsTaxonomyItem as aj, ModerationApi as ak, type RootServerClient as al, type TenantFeatureProgressEvidenceValue as am, type TenantFeatureProgressFeature as an, type TenantFeatureProgressGroup as ao, type TenantFeatureProgressInput as ap, type TenantFeatureProgressItem as aq, type TenantFeatureProgressItemState as ar, type TenantFeatureProgressResponse as as, type TenantFeatureProgressSeverity as at, type TenantFeatureProgressStatus as au, TenantIntrospectionApi as av, type TenantIntrospectionApiOptions as aw, type PublicReadQueryOptions as ax, CustomerAuth as ay, type CustomerProfile as az, ContentClient as b, type ProductListingCard as b$, type CancelOrderParams as b0, type CancelOrderReconciliationStatus as b1, type CancelOrderResponse as b2, type CancelReasonCode as b3, CartApi as b4, type CartApiOptions as b5, type Comment as b6, type CommerceClientOptions as b7, type CommunityClientOptions as b8, type CommunityComment as b9, type OrderApiOptions as bA, PRODUCT_PLP_FIND_OPTIONS as bB, PRODUCT_UPSERT_READONLY_FIELD_REASON as bC, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bD, type PrepareFulfillmentOrderParams as bE, type PrepareFulfillmentOrderResponse as bF, ProductApi as bG, type ProductApiOptions as bH, type ProductDetailBrand as bI, type ProductDetailCatalogListing as bJ, type ProductDetailCatalogResult as bK, type ProductDetailCatalogVariant as bL, type ProductDetailCategory as bM, type ProductDetailImage as bN, type ProductDetailImageMedia as bO, type ProductDetailListing as bP, type ProductDetailMedia as bQ, type ProductDetailOption as bR, type ProductDetailOptionValue as bS, type ProductDetailTag as bT, type ProductDetailUnavailableReason as bU, type ProductDetailVariant as bV, type ProductDetailVariantOptionValue as bW, type ProductDetailVideo as bX, type ProductHrefGroup as bY, type ProductHrefOptions as bZ, type ProductHrefProduct as b_, type CommunityCommentListSort as ba, type CommunityPost as bb, type CommunityPostCategory as bc, type CommunityPostListSort as bd, type CommunityPostTag as be, type CommunityPublicAuthorSnapshot as bf, type CommunityPublicMediaAsset as bg, type CommunityPublicReference as bh, type CompatibilityProductSelectionParamEvent as bi, type ConfirmPaymentParams as bj, type ConfirmPaymentResponse as bk, type CreateFulfillmentParams as bl, type CreateOrderItem as bm, type CreateOrderParams as bn, type CreateReturnParams as bo, type CustomerAuthOptions as bp, type CustomerSnapshot as bq, DiscountApi as br, type DiscountApiOptions as bs, type LegacyProductSelectionParamEvent as bt, type ListingGroupsParams as bu, type ListingPrimaryImageFallbackInput as bv, type MediaValue as bw, type NormalizedOptionSwatch as bx, type NormalizedProductSelection as by, OrderApi as bz, CustomerNamespace as c, type UpdateTransactionParams as c$, type ProductListingCardOptions as c0, type ProductListingCardPriceRange as c1, type ProductListingCardRepresentativeVariant as c2, type ProductListingGroup as c3, type ProductListingGroupCatalogSummary as c4, type ProductListingGroupCatalogVariant as c5, type ProductListingGroupSummary as c6, type ProductListingGroupVariant as c7, type ProductListingGroupsCatalogListing as c8, type ProductListingGroupsCatalogProduct as c9, type ProductSelectionUrlEmit as cA, type ProductSelectionVariant as cB, type ProductUpsertFieldValidationErrorBody as cC, type ProductUpsertFieldValidationErrorReason as cD, type ProductVariantShape as cE, type RequestOptions as cF, type ResolveCancelRefundFailedResponse as cG, type ResolveCancelRefundOutcome as cH, type ResolveCancelRefundParams as cI, type ResolveCancelRefundResponse as cJ, type ResolveCancelRefundSucceededResponse as cK, type ResolveProductDisplayMediaInput as cL, type ResolveProductDisplayMediaResult as cM, type ReturnItem as cN, type ReturnReason as cO, type ReturnWithRefundItem as cP, type ReturnWithRefundParams as cQ, ShippingApi as cR, type ShippingApiOptions as cS, type StockCheckParams as cT, type StockCheckResponse as cU, type StockCheckResult as cV, type StockSnapshotItem as cW, type StockSnapshotParams as cX, type UpdateFulfillmentParams as cY, type UpdateOrderParams as cZ, type UpdateReturnParams as c_, type ProductListingGroupsCatalogResponse as ca, type ProductListingGroupsProduct as cb, type ProductListingGroupsResponse as cc, type ProductListingPageFilters as cd, type ProductListingPageSort as ce, type ProductListingProductShape as cf, type ProductListingProjection as cg, type ProductListingSwatch as ch, type ProductMediaResolutionSource as ci, type ProductOptionMatrix as cj, type ProductOptionMatrixOption as ck, type ProductOptionMatrixValue as cl, type ProductOptionMatrixVariant as cm, type ProductOptionShape as cn, type ProductOptionValueShape as co, type ProductOptionValueSwatch as cp, type ProductOptionValueSwatchInput as cq, type ProductSelectionAvailableSwatch as cr, type ProductSelectionAvailableValue as cs, type ProductSelectionByOptionValue as ct, ProductSelectionCodecError as cu, type ProductSelectionCodecOptions as cv, type ProductSelectionInput as cw, type ProductSelectionOptionValue as cx, type ProductSelectionResolution as cy, type ProductSelectionResolutionContext as cz, type ClientState as d, type ValidateDiscountParams as d0, type ValidateDiscountResult as d1, type WithIdempotencyKey as d2, buildProductHref as d3, buildProductListingCard as d4, buildProductListingGroupsByOption as d5, buildProductListingProjection as d6, buildProductOptionMatrix as d7, buildProductOptionMatrixFromDetail as d8, createProductSelectionCodec as d9, getAvailableOptionValues as da, getProductSelectionImages as db, getSelectedValueByOptionId as dc, isProductUpsertFieldValidationErrorBody as dd, normalizeProductSelection as de, normalizeProductSelectionFromMatrix as df, normalizeSelectedValueIds as dg, parseProductSelection as dh, resolveListingPrimaryImagePointer as di, resolveProductDisplayMedia as dj, resolveProductSelection as dk, resolveProductSelectionFromMatrix as dl, resolveProductSelectionMedia as dm, resolveVariantForSelection as dn, selectNext as dp, selectedSwatchMediaItemId as dq, stringifyProductSelection as dr, toShopifyPriceRangeV2 as ds, type ClientConfig as e, type ApiQueryOptions as f, type ApplyDiscountParams as g, type CheckoutParams as h, type ClearCartParams as i, type ClientMetadata as j, type ContentClientOptions as k, type DeepPartial as l, type ExtractArrayType as m, type PayloadMutationResponse as n, type PublicCart as o, type PublicCartItem as p, type PublicCartReference as q, type PublicMediaAsset as r, type PublicMediaSize as s, type PublicOrder as t, type PublicOrderItem as u, type PublicOrderReference as v, type RemoveItemParams as w, type RetryConfig as x, type RootClient as y, type RootCollectionClient as z };