@01.software/sdk 0.40.0 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +506 -0
- package/MIGRATION.md +183 -0
- package/README.md +12 -1
- package/dist/analytics/react.cjs.map +1 -1
- package/dist/analytics/react.js.map +1 -1
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.js.map +1 -1
- package/dist/client.cjs +4 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-CKFa99C6.d.ts → collection-client-BdcxkW7l.d.ts} +5 -5
- package/dist/{collection-client-VYwYi6u6.d.cts → collection-client-Bk--pNzW.d.cts} +5 -5
- package/dist/{const-ymprfiPf.d.ts → const-HwdntWtG.d.ts} +1 -1
- package/dist/{const-4BUtUdGU.d.cts → const-qGGI7Uii.d.cts} +1 -1
- package/dist/{index-w36lpSkU.d.ts → index-B1oW50RY.d.ts} +3 -3
- package/dist/{index-Dquv4xTL.d.cts → index-DiXtjVab.d.cts} +3 -3
- package/dist/index.cjs +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DC0xzR9i.d.cts → payload-types-CqJOgON7.d.cts} +0 -3
- package/dist/{payload-types-DC0xzR9i.d.ts → payload-types-CqJOgON7.d.ts} +0 -3
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js.map +1 -1
- package/dist/server.cjs +10 -5
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +10 -5
- package/dist/server.js.map +1 -1
- package/dist/{types-Umd-YTjM.d.ts → types-BKa9z9s2.d.cts} +36 -5
- package/dist/{types-Bh2p-EMc.d.ts → types-BMI3M0nb.d.ts} +1 -1
- package/dist/{types-BvpjooU-.d.cts → types-ByLSG-O3.d.cts} +1 -1
- package/dist/{types-D5uHrPLr.d.cts → types-DgfXb7iV.d.ts} +36 -5
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/package.json +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PublicCollection, S as ServerCollection } from './const-
|
|
2
|
-
import { C as CollectionType, P as PublicProduct } from './types-
|
|
3
|
-
import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-
|
|
1
|
+
import { P as PublicCollection, S as ServerCollection } from './const-qGGI7Uii.cjs';
|
|
2
|
+
import { C as CollectionType, P as PublicProduct } from './types-ByLSG-O3.cjs';
|
|
3
|
+
import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-CqJOgON7.cjs';
|
|
4
4
|
|
|
5
5
|
interface CustomerScopedApiOptions {
|
|
6
6
|
publishableKey?: string;
|
|
@@ -1381,6 +1381,22 @@ type ProductListingCardOptions = {
|
|
|
1381
1381
|
preferCompleteVariantFromHint?: boolean;
|
|
1382
1382
|
};
|
|
1383
1383
|
declare function buildProductHref(product: ProductHrefProduct, group?: ProductHrefGroup | null, options?: ProductHrefOptions): string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Server-equivalent sellability for a single variant: active, and either
|
|
1386
|
+
* unlimited or with positive sellable stock (`stock - reservedStock`). This is
|
|
1387
|
+
* the same rule the SDK applies when rolling availability up to the product, so
|
|
1388
|
+
* storefronts can compute a Shopify-style `availableForSale` without
|
|
1389
|
+
* re-implementing the check or shipping raw `stock`/`reservedStock` to the
|
|
1390
|
+
* browser.
|
|
1391
|
+
*/
|
|
1392
|
+
declare function getVariantAvailableForSale(variant: ProductVariantShape): boolean;
|
|
1393
|
+
/**
|
|
1394
|
+
* Sellable quantity for a single variant (`stock - reservedStock`, clamped at
|
|
1395
|
+
* zero), or `null` when the variant is unlimited and has no finite quantity.
|
|
1396
|
+
* Mirrors Shopify's `ProductVariant.quantityAvailable` (a single computed
|
|
1397
|
+
* number, never the raw stock/reserved breakdown).
|
|
1398
|
+
*/
|
|
1399
|
+
declare function getVariantAvailableStock(variant: ProductVariantShape): number | null;
|
|
1384
1400
|
declare function buildProductListingGroupProjection(product: ProductListingProductShape | null | undefined, variants: ProductVariantShape[]): ProductListingGroupProjection;
|
|
1385
1401
|
declare function buildProductListingCard(item: ProductListingCardSourceItem, options?: ProductListingCardOptions): ProductListingCard;
|
|
1386
1402
|
/** Shopify `priceRangeV2` naming for persisted listing projection fields. */
|
|
@@ -1414,6 +1430,20 @@ declare function toShopifyPriceRangeV2(listing: {
|
|
|
1414
1430
|
* raw reads are constrained to `depth: 0`, `joins: false`, and no `populate`.
|
|
1415
1431
|
*/
|
|
1416
1432
|
declare const PRODUCT_PLP_FIND_OPTIONS: ApiQueryOptions;
|
|
1433
|
+
/**
|
|
1434
|
+
* Adapts a raw Payload product document (from
|
|
1435
|
+
* `collections.from('products').find()`) into the listing shape the SDK
|
|
1436
|
+
* listing builders consume. A raw product already carries `priceRange`,
|
|
1437
|
+
* `compareAtPriceRange`, `availableForSale`, and `selectedOrFirstAvailableVariant`,
|
|
1438
|
+
* but it has no `featuredImage` field — only the `images` gallery. This pure,
|
|
1439
|
+
* non-lossy adapter fills `featuredImage` from the first non-null gallery image
|
|
1440
|
+
* (when not already set) so SSG/sitemap consumers on the raw `find()` escape
|
|
1441
|
+
* hatch can feed `buildProductListingGroupsByOption` / `buildProductListingCard`
|
|
1442
|
+
* without hand-rolling the projection. An explicit `featuredImage` is preserved.
|
|
1443
|
+
*/
|
|
1444
|
+
declare function projectProductToListingShape<T extends ProductListingProductShape>(product: T): T & {
|
|
1445
|
+
featuredImage: MediaValue;
|
|
1446
|
+
};
|
|
1417
1447
|
/**
|
|
1418
1448
|
* Builds product-first listing groups for one primary option.
|
|
1419
1449
|
*
|
|
@@ -2485,6 +2515,7 @@ interface ApiQueryOptions {
|
|
|
2485
2515
|
/** Include soft-deleted documents (requires `trash` enabled on the collection) */
|
|
2486
2516
|
trash?: boolean;
|
|
2487
2517
|
}
|
|
2518
|
+
type ApiDeleteOptions = Pick<ApiQueryOptions, 'trash'>;
|
|
2488
2519
|
type PublicReadQueryOptions = Omit<ApiQueryOptions, 'depth' | 'joins' | 'populate'> & {
|
|
2489
2520
|
/**
|
|
2490
2521
|
* Publishable collection reads stay unpopulated. Use shaped commerce/community
|
|
@@ -2527,7 +2558,7 @@ interface RootServerQueryBuilder<T extends ServerCollection> extends RootQueryLo
|
|
|
2527
2558
|
filename?: string;
|
|
2528
2559
|
}): Promise<PayloadMutationResponse<CollectionType<T>>>;
|
|
2529
2560
|
updateMany(where: ApiQueryOptions['where'], data: Partial<CollectionType<T>>): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
2530
|
-
remove(id: string): Promise<CollectionType<T>>;
|
|
2561
|
+
remove(id: string, options?: ApiDeleteOptions): Promise<CollectionType<T>>;
|
|
2531
2562
|
removeMany(where: ApiQueryOptions['where']): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
2532
2563
|
}
|
|
2533
2564
|
interface RootCollectionClient {
|
|
@@ -2577,4 +2608,4 @@ type DeepPartial<T> = {
|
|
|
2577
2608
|
};
|
|
2578
2609
|
type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
|
|
2579
2610
|
|
|
2580
|
-
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
|
|
2611
|
+
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 CalculateShippingParams 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 CustomerProfile as aA, type CustomerAuthResponse as aB, type CustomerLoginData as aC, type CustomerRegisterResponse as aD, type CustomerRegisterData as aE, type CustomerRefreshResponse as aF, type UpdateProfileData as aG, type ProductListingPageBaseParams as aH, type ProductListingPageParams as aI, type ProductDetailParams as aJ, type ProductDetailResult as aK, type ProductListingPageCatalogParams as aL, type ProductListingPageResult as aM, type ProductListingGroupsCatalogItem as aN, type ProductListingPageFullParams as aO, type ProductListingGroupsItem as aP, type ProductDetail as aQ, type ProductDetailCatalog as aR, type StockSnapshotResponse as aS, type ProductSelectionMediaSource as aT, type ProductDisplayMediaSource as aU, type ResolveProductSelectionMediaInput as aV, type ResolveProductSelectionMediaResult as aW, type ProductSelectionMediaPointer as aX, type RootClientWithEvents as aY, type BulkImportFulfillmentsParams as aZ, type BulkImportFulfillmentsResponse 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 ApiDeleteOptions as ax, type PublicReadQueryOptions as ay, CustomerAuth as az, ContentClient as b, type ProductListingCard as b$, type CalculateShippingResult as b0, type CancelOrderParams as b1, type CancelOrderReconciliationStatus as b2, type CancelOrderResponse as b3, type CancelReasonCode as b4, CartApi as b5, type CartApiOptions as b6, type Comment as b7, type CommerceClientOptions as b8, type CommunityClientOptions as b9, type NormalizedProductSelection as bA, OrderApi as bB, type OrderApiOptions as bC, PRODUCT_PLP_FIND_OPTIONS as bD, PRODUCT_UPSERT_READONLY_FIELD_REASON as bE, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bF, type PrepareFulfillmentOrderParams as bG, type PrepareFulfillmentOrderResponse as bH, ProductApi as bI, type ProductApiOptions as bJ, type ProductDetailBrand as bK, type ProductDetailCatalogResult as bL, type ProductDetailCatalogVariant as bM, type ProductDetailCategory as bN, type ProductDetailImage as bO, type ProductDetailImageMedia 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 CommunityComment as ba, type CommunityCommentListSort as bb, type CommunityPost as bc, type CommunityPostCategory as bd, type CommunityPostListSort as be, type CommunityPostTag as bf, type CommunityPublicAuthorSnapshot as bg, type CommunityPublicMediaAsset as bh, type CommunityPublicReference as bi, type CompatibilityProductSelectionParamEvent as bj, type ConfirmPaymentParams as bk, type ConfirmPaymentResponse as bl, type CreateFulfillmentParams as bm, type CreateOrderItem as bn, type CreateOrderParams as bo, type CreateReturnParams as bp, type CustomerAuthOptions as bq, type CustomerOrderListOptions as br, type CustomerSnapshot as bs, DiscountApi as bt, type DiscountApiOptions as bu, type FeaturedImagePointerInput as bv, type LegacyProductSelectionParamEvent as bw, type ListingGroupsParams as bx, type MediaValue as by, type NormalizedOptionSwatch as bz, CustomerNamespace as c, type UpdateReturnParams 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 ProductListingGroupProjection as c6, type ProductListingGroupSummary as c7, type ProductListingGroupVariant as c8, type ProductListingGroupsCatalogProduct as c9, type ProductSelectionResolutionContext as cA, type ProductSelectionUrlEmit as cB, type ProductSelectionVariant as cC, type ProductUpsertFieldValidationErrorBody as cD, type ProductUpsertFieldValidationErrorReason as cE, type ProductVariantShape as cF, type RequestOptions as cG, type ResolveCancelRefundFailedResponse as cH, type ResolveCancelRefundOutcome as cI, type ResolveCancelRefundParams as cJ, type ResolveCancelRefundResponse as cK, type ResolveCancelRefundSucceededResponse as cL, type ResolveProductDisplayMediaInput as cM, type ResolveProductDisplayMediaResult as cN, type ReturnItem as cO, type ReturnReason as cP, type ReturnWithRefundItem as cQ, type ReturnWithRefundParams as cR, ShippingApi as cS, type ShippingApiOptions as cT, type StockCheckParams as cU, type StockCheckResponse as cV, type StockCheckResult as cW, type StockSnapshotItem as cX, type StockSnapshotParams as cY, type UpdateFulfillmentParams as cZ, type UpdateOrderParams 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 ProductListingSwatch as cg, type ProductMediaResolutionSource as ch, type ProductMoneyRange 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 ProductPriceRange as cr, type ProductSelectionAvailableSwatch as cs, type ProductSelectionAvailableValue as ct, type ProductSelectionByOptionValue as cu, ProductSelectionCodecError as cv, type ProductSelectionCodecOptions as cw, type ProductSelectionInput as cx, type ProductSelectionOptionValue as cy, type ProductSelectionResolution as cz, type ClientState as d, type UpdateTransactionParams as d0, type ValidateDiscountParams as d1, type ValidateDiscountResult as d2, type WithIdempotencyKey as d3, buildProductHref as d4, buildProductListingCard as d5, buildProductListingGroupProjection as d6, buildProductListingGroupsByOption as d7, buildProductOptionMatrix as d8, buildProductOptionMatrixFromDetail as d9, createProductSelectionCodec as da, getAvailableOptionValues as db, getProductSelectionImages as dc, getSelectedValueByOptionId as dd, getVariantAvailableForSale as de, getVariantAvailableStock as df, isProductUpsertFieldValidationErrorBody as dg, normalizeProductSelection as dh, normalizeProductSelectionFromMatrix as di, normalizeSelectedValueIds as dj, parseProductSelection as dk, projectProductToListingShape as dl, resolveFeaturedImagePointer as dm, resolveProductDisplayMedia as dn, resolveProductSelection as dp, resolveProductSelectionFromMatrix as dq, resolveProductSelectionMedia as dr, resolveVariantForSelection as ds, selectNext as dt, selectedSwatchMediaItemId as du, stringifyProductSelection as dv, toShopifyPriceRangeV2 as dw, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-
|
|
1
|
+
import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-CqJOgON7.js';
|
|
2
2
|
|
|
3
3
|
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
|
|
4
4
|
type PublicCustomerProfileListEntry = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-
|
|
1
|
+
import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-CqJOgON7.cjs';
|
|
2
2
|
|
|
3
3
|
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
|
|
4
4
|
type PublicCustomerProfileListEntry = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PublicCollection, S as ServerCollection } from './const-
|
|
2
|
-
import { C as CollectionType, P as PublicProduct } from './types-
|
|
3
|
-
import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-
|
|
1
|
+
import { P as PublicCollection, S as ServerCollection } from './const-HwdntWtG.js';
|
|
2
|
+
import { C as CollectionType, P as PublicProduct } from './types-BMI3M0nb.js';
|
|
3
|
+
import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-CqJOgON7.js';
|
|
4
4
|
|
|
5
5
|
interface CustomerScopedApiOptions {
|
|
6
6
|
publishableKey?: string;
|
|
@@ -1381,6 +1381,22 @@ type ProductListingCardOptions = {
|
|
|
1381
1381
|
preferCompleteVariantFromHint?: boolean;
|
|
1382
1382
|
};
|
|
1383
1383
|
declare function buildProductHref(product: ProductHrefProduct, group?: ProductHrefGroup | null, options?: ProductHrefOptions): string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Server-equivalent sellability for a single variant: active, and either
|
|
1386
|
+
* unlimited or with positive sellable stock (`stock - reservedStock`). This is
|
|
1387
|
+
* the same rule the SDK applies when rolling availability up to the product, so
|
|
1388
|
+
* storefronts can compute a Shopify-style `availableForSale` without
|
|
1389
|
+
* re-implementing the check or shipping raw `stock`/`reservedStock` to the
|
|
1390
|
+
* browser.
|
|
1391
|
+
*/
|
|
1392
|
+
declare function getVariantAvailableForSale(variant: ProductVariantShape): boolean;
|
|
1393
|
+
/**
|
|
1394
|
+
* Sellable quantity for a single variant (`stock - reservedStock`, clamped at
|
|
1395
|
+
* zero), or `null` when the variant is unlimited and has no finite quantity.
|
|
1396
|
+
* Mirrors Shopify's `ProductVariant.quantityAvailable` (a single computed
|
|
1397
|
+
* number, never the raw stock/reserved breakdown).
|
|
1398
|
+
*/
|
|
1399
|
+
declare function getVariantAvailableStock(variant: ProductVariantShape): number | null;
|
|
1384
1400
|
declare function buildProductListingGroupProjection(product: ProductListingProductShape | null | undefined, variants: ProductVariantShape[]): ProductListingGroupProjection;
|
|
1385
1401
|
declare function buildProductListingCard(item: ProductListingCardSourceItem, options?: ProductListingCardOptions): ProductListingCard;
|
|
1386
1402
|
/** Shopify `priceRangeV2` naming for persisted listing projection fields. */
|
|
@@ -1414,6 +1430,20 @@ declare function toShopifyPriceRangeV2(listing: {
|
|
|
1414
1430
|
* raw reads are constrained to `depth: 0`, `joins: false`, and no `populate`.
|
|
1415
1431
|
*/
|
|
1416
1432
|
declare const PRODUCT_PLP_FIND_OPTIONS: ApiQueryOptions;
|
|
1433
|
+
/**
|
|
1434
|
+
* Adapts a raw Payload product document (from
|
|
1435
|
+
* `collections.from('products').find()`) into the listing shape the SDK
|
|
1436
|
+
* listing builders consume. A raw product already carries `priceRange`,
|
|
1437
|
+
* `compareAtPriceRange`, `availableForSale`, and `selectedOrFirstAvailableVariant`,
|
|
1438
|
+
* but it has no `featuredImage` field — only the `images` gallery. This pure,
|
|
1439
|
+
* non-lossy adapter fills `featuredImage` from the first non-null gallery image
|
|
1440
|
+
* (when not already set) so SSG/sitemap consumers on the raw `find()` escape
|
|
1441
|
+
* hatch can feed `buildProductListingGroupsByOption` / `buildProductListingCard`
|
|
1442
|
+
* without hand-rolling the projection. An explicit `featuredImage` is preserved.
|
|
1443
|
+
*/
|
|
1444
|
+
declare function projectProductToListingShape<T extends ProductListingProductShape>(product: T): T & {
|
|
1445
|
+
featuredImage: MediaValue;
|
|
1446
|
+
};
|
|
1417
1447
|
/**
|
|
1418
1448
|
* Builds product-first listing groups for one primary option.
|
|
1419
1449
|
*
|
|
@@ -2485,6 +2515,7 @@ interface ApiQueryOptions {
|
|
|
2485
2515
|
/** Include soft-deleted documents (requires `trash` enabled on the collection) */
|
|
2486
2516
|
trash?: boolean;
|
|
2487
2517
|
}
|
|
2518
|
+
type ApiDeleteOptions = Pick<ApiQueryOptions, 'trash'>;
|
|
2488
2519
|
type PublicReadQueryOptions = Omit<ApiQueryOptions, 'depth' | 'joins' | 'populate'> & {
|
|
2489
2520
|
/**
|
|
2490
2521
|
* Publishable collection reads stay unpopulated. Use shaped commerce/community
|
|
@@ -2527,7 +2558,7 @@ interface RootServerQueryBuilder<T extends ServerCollection> extends RootQueryLo
|
|
|
2527
2558
|
filename?: string;
|
|
2528
2559
|
}): Promise<PayloadMutationResponse<CollectionType<T>>>;
|
|
2529
2560
|
updateMany(where: ApiQueryOptions['where'], data: Partial<CollectionType<T>>): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
2530
|
-
remove(id: string): Promise<CollectionType<T>>;
|
|
2561
|
+
remove(id: string, options?: ApiDeleteOptions): Promise<CollectionType<T>>;
|
|
2531
2562
|
removeMany(where: ApiQueryOptions['where']): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
2532
2563
|
}
|
|
2533
2564
|
interface RootCollectionClient {
|
|
@@ -2577,4 +2608,4 @@ type DeepPartial<T> = {
|
|
|
2577
2608
|
};
|
|
2578
2609
|
type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
|
|
2579
2610
|
|
|
2580
|
-
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
|
|
2611
|
+
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 CalculateShippingParams 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 CustomerProfile as aA, type CustomerAuthResponse as aB, type CustomerLoginData as aC, type CustomerRegisterResponse as aD, type CustomerRegisterData as aE, type CustomerRefreshResponse as aF, type UpdateProfileData as aG, type ProductListingPageBaseParams as aH, type ProductListingPageParams as aI, type ProductDetailParams as aJ, type ProductDetailResult as aK, type ProductListingPageCatalogParams as aL, type ProductListingPageResult as aM, type ProductListingGroupsCatalogItem as aN, type ProductListingPageFullParams as aO, type ProductListingGroupsItem as aP, type ProductDetail as aQ, type ProductDetailCatalog as aR, type StockSnapshotResponse as aS, type ProductSelectionMediaSource as aT, type ProductDisplayMediaSource as aU, type ResolveProductSelectionMediaInput as aV, type ResolveProductSelectionMediaResult as aW, type ProductSelectionMediaPointer as aX, type RootClientWithEvents as aY, type BulkImportFulfillmentsParams as aZ, type BulkImportFulfillmentsResponse 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 ApiDeleteOptions as ax, type PublicReadQueryOptions as ay, CustomerAuth as az, ContentClient as b, type ProductListingCard as b$, type CalculateShippingResult as b0, type CancelOrderParams as b1, type CancelOrderReconciliationStatus as b2, type CancelOrderResponse as b3, type CancelReasonCode as b4, CartApi as b5, type CartApiOptions as b6, type Comment as b7, type CommerceClientOptions as b8, type CommunityClientOptions as b9, type NormalizedProductSelection as bA, OrderApi as bB, type OrderApiOptions as bC, PRODUCT_PLP_FIND_OPTIONS as bD, PRODUCT_UPSERT_READONLY_FIELD_REASON as bE, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bF, type PrepareFulfillmentOrderParams as bG, type PrepareFulfillmentOrderResponse as bH, ProductApi as bI, type ProductApiOptions as bJ, type ProductDetailBrand as bK, type ProductDetailCatalogResult as bL, type ProductDetailCatalogVariant as bM, type ProductDetailCategory as bN, type ProductDetailImage as bO, type ProductDetailImageMedia 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 CommunityComment as ba, type CommunityCommentListSort as bb, type CommunityPost as bc, type CommunityPostCategory as bd, type CommunityPostListSort as be, type CommunityPostTag as bf, type CommunityPublicAuthorSnapshot as bg, type CommunityPublicMediaAsset as bh, type CommunityPublicReference as bi, type CompatibilityProductSelectionParamEvent as bj, type ConfirmPaymentParams as bk, type ConfirmPaymentResponse as bl, type CreateFulfillmentParams as bm, type CreateOrderItem as bn, type CreateOrderParams as bo, type CreateReturnParams as bp, type CustomerAuthOptions as bq, type CustomerOrderListOptions as br, type CustomerSnapshot as bs, DiscountApi as bt, type DiscountApiOptions as bu, type FeaturedImagePointerInput as bv, type LegacyProductSelectionParamEvent as bw, type ListingGroupsParams as bx, type MediaValue as by, type NormalizedOptionSwatch as bz, CustomerNamespace as c, type UpdateReturnParams 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 ProductListingGroupProjection as c6, type ProductListingGroupSummary as c7, type ProductListingGroupVariant as c8, type ProductListingGroupsCatalogProduct as c9, type ProductSelectionResolutionContext as cA, type ProductSelectionUrlEmit as cB, type ProductSelectionVariant as cC, type ProductUpsertFieldValidationErrorBody as cD, type ProductUpsertFieldValidationErrorReason as cE, type ProductVariantShape as cF, type RequestOptions as cG, type ResolveCancelRefundFailedResponse as cH, type ResolveCancelRefundOutcome as cI, type ResolveCancelRefundParams as cJ, type ResolveCancelRefundResponse as cK, type ResolveCancelRefundSucceededResponse as cL, type ResolveProductDisplayMediaInput as cM, type ResolveProductDisplayMediaResult as cN, type ReturnItem as cO, type ReturnReason as cP, type ReturnWithRefundItem as cQ, type ReturnWithRefundParams as cR, ShippingApi as cS, type ShippingApiOptions as cT, type StockCheckParams as cU, type StockCheckResponse as cV, type StockCheckResult as cW, type StockSnapshotItem as cX, type StockSnapshotParams as cY, type UpdateFulfillmentParams as cZ, type UpdateOrderParams 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 ProductListingSwatch as cg, type ProductMediaResolutionSource as ch, type ProductMoneyRange 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 ProductPriceRange as cr, type ProductSelectionAvailableSwatch as cs, type ProductSelectionAvailableValue as ct, type ProductSelectionByOptionValue as cu, ProductSelectionCodecError as cv, type ProductSelectionCodecOptions as cw, type ProductSelectionInput as cx, type ProductSelectionOptionValue as cy, type ProductSelectionResolution as cz, type ClientState as d, type UpdateTransactionParams as d0, type ValidateDiscountParams as d1, type ValidateDiscountResult as d2, type WithIdempotencyKey as d3, buildProductHref as d4, buildProductListingCard as d5, buildProductListingGroupProjection as d6, buildProductListingGroupsByOption as d7, buildProductOptionMatrix as d8, buildProductOptionMatrixFromDetail as d9, createProductSelectionCodec as da, getAvailableOptionValues as db, getProductSelectionImages as dc, getSelectedValueByOptionId as dd, getVariantAvailableForSale as de, getVariantAvailableStock as df, isProductUpsertFieldValidationErrorBody as dg, normalizeProductSelection as dh, normalizeProductSelectionFromMatrix as di, normalizeSelectedValueIds as dj, parseProductSelection as dk, projectProductToListingShape as dl, resolveFeaturedImagePointer as dm, resolveProductDisplayMedia as dn, resolveProductSelection as dp, resolveProductSelectionFromMatrix as dq, resolveProductSelectionMedia as dr, resolveVariantForSelection as ds, selectNext as dt, selectedSwatchMediaItemId as du, stringifyProductSelection as dv, toShopifyPriceRangeV2 as dw, 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 };
|
package/dist/ui/form.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { F as Form } from '../payload-types-
|
|
2
|
+
import { F as Form } from '../payload-types-CqJOgON7.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-
|
|
2
|
+
import { F as Form } from '../payload-types-CqJOgON7.js';
|
|
3
3
|
import { RichTextData } from './rich-text.js';
|
|
4
4
|
import '@payloadcms/richtext-lexical';
|
|
5
5
|
import '@payloadcms/richtext-lexical/lexical';
|
package/dist/ui/video.d.cts
CHANGED
|
@@ -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-
|
|
4
|
+
import { V as Video } from '../payload-types-CqJOgON7.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 {
|
package/dist/ui/video.d.ts
CHANGED
|
@@ -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-
|
|
4
|
+
import { V as Video } from '../payload-types-CqJOgON7.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 {
|
package/dist/webhook.d.cts
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 CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-
|
|
2
|
-
import { W as Webhook } from './payload-types-
|
|
3
|
-
import './const-
|
|
4
|
-
import './types-
|
|
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 CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-DiXtjVab.cjs';
|
|
2
|
+
import { W as Webhook } from './payload-types-CqJOgON7.cjs';
|
|
3
|
+
import './const-qGGI7Uii.cjs';
|
|
4
|
+
import './types-ByLSG-O3.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 CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-
|
|
2
|
-
import { W as Webhook } from './payload-types-
|
|
3
|
-
import './const-
|
|
4
|
-
import './types-
|
|
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 CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-B1oW50RY.js';
|
|
2
|
+
import { W as Webhook } from './payload-types-CqJOgON7.js';
|
|
3
|
+
import './const-HwdntWtG.js';
|
|
4
|
+
import './types-BMI3M0nb.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.
|
|
3
|
+
"version": "0.41.1",
|
|
4
4
|
"description": "01.software SDK",
|
|
5
5
|
"author": "<office@01.works>",
|
|
6
6
|
"repository": {
|
|
@@ -201,7 +201,9 @@
|
|
|
201
201
|
"node": ">=18.0.0"
|
|
202
202
|
},
|
|
203
203
|
"files": [
|
|
204
|
-
"dist"
|
|
204
|
+
"dist",
|
|
205
|
+
"MIGRATION.md",
|
|
206
|
+
"CHANGELOG.md"
|
|
205
207
|
],
|
|
206
208
|
"devDependencies": {
|
|
207
209
|
"@arethetypeswrong/cli": "^0.18.2",
|