@01.software/sdk 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -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/{const-C0GlmeJ_.d.cts → const-DAjQYNuM.d.ts} +4 -4
- package/dist/{const-D-xucnw4.d.ts → const-Dsixdi6z.d.cts} +4 -4
- package/dist/index.cjs +626 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.js +626 -13
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BPvUmPAq.d.cts → payload-types-Ci-ZA7aM.d.cts} +153 -73
- package/dist/{payload-types-BPvUmPAq.d.ts → payload-types-Ci-ZA7aM.d.ts} +153 -73
- 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-n3xK4Nks.d.cts → server-C0C8dtms.d.cts} +331 -12
- package/dist/{server-_zvihptw.d.ts → server-Cv0Q4dPQ.d.ts} +331 -12
- package/dist/server.cjs +68 -4
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +68 -4
- package/dist/server.js.map +1 -1
- package/dist/{types-BLdthWiW.d.ts → types-BWq_WlbB.d.ts} +1 -1
- package/dist/{types-DzWNu9pw.d.cts → types-zKjATmDK.d.cts} +1 -1
- package/dist/ui/canvas/server.cjs.map +1 -1
- package/dist/ui/canvas/server.js.map +1 -1
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.js.map +1 -1
- 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 +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as Cart, e as CartItem, O as Order, f as Product } from './payload-types-
|
|
2
|
-
export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, P as Post, j as PostCategory, k as ProductVariant, T as Tenant, V as Video } from './payload-types-
|
|
3
|
-
import { C as CustomerAuth, a as CustomerAuthOptions, S as StockCheckParams, b as StockCheckResponse, L as ListingGroupsParams, P as ProductListingGroupsResponse, A as AddItemParams, U as UpdateItemParams, R as RemoveItemParams,
|
|
4
|
-
export {
|
|
1
|
+
import { d as Cart, e as CartItem, O as Order, f as Product } from './payload-types-Ci-ZA7aM.cjs';
|
|
2
|
+
export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, P as Post, j as PostCategory, k as ProductVariant, T as Tenant, V as Video } from './payload-types-Ci-ZA7aM.cjs';
|
|
3
|
+
import { C as CustomerAuth, a as CustomerAuthOptions, S as StockCheckParams, b as StockCheckResponse, L as ListingGroupsParams, P as ProductListingGroupsResponse, c as ProductDetailParams, d as ProductDetail, A as AddItemParams, U as UpdateItemParams, R as RemoveItemParams, e as ApplyDiscountParams, f as RemoveDiscountParams, g as ClearCartParams, h as CheckoutParams, i as PayloadFindResponse, V as ValidateDiscountParams, j as ValidateDiscountResult, k as CalculateShippingParams, l as CalculateShippingResult, m as ApiQueryOptions, n as ProductListingGroupsQueryOptions, o as CommunityClient, p as ReadOnlyQueryHooks, q as ReadOnlyCollectionClient, r as ClientState, s as ClientConfig } from './server-C0C8dtms.cjs';
|
|
4
|
+
export { t as ApiError, u as AuthError, B as BanCustomerParams, v as BaseApi, w as BulkImportFulfillmentsParams, x as BulkImportFulfillmentsResponse, y as CartApi, z as CartApiOptions, D as ClientMetadata, E as ClientServerConfig, F as CollectionClient, G as CollectionDetailQueryParams, H as CollectionHooks, I as CollectionInfiniteQueryParams, J as CollectionQueryBuilder, K as CollectionQueryParams, M as CommunityBan, N as CommunityClientOptions, O as CommunityPost, Q as ConfigError, T as ConfirmPaymentParams, W as ConfirmPaymentResponse, X as ConflictError, Y as CreateFulfillmentParams, Z as CreateOrderParams, _ as CreateReturnParams, $ as CustomerAuthResponse, a0 as CustomerHooks, a1 as CustomerLoginData, a2 as CustomerProfile, a3 as CustomerRefreshResponse, a4 as CustomerRegisterData, a5 as CustomerRegisterResponse, a6 as CustomerSnapshot, a7 as DebugConfig, a8 as DeepPartial, a9 as DiscountApi, aa as DiscountApiOptions, ab as ExtractArrayType, ac as GenerateMetadataOptions, ad as GoneError, ae as InfiniteQueryOptions, af as LegacyProductSelectionParamEvent, ag as ModerationApi, ah as ModerationApiOptions, ai as NetworkError, aj as NormalizedProductSelection, ak as NotFoundError, al as OrderApi, am as OrderApiOptions, an as PaginationMeta, ao as PayloadMutationResponse, ap as PermissionError, aq as ProductApi, ar as ProductApiOptions, as as ProductDetailBrand, at as ProductDetailCategory, au as ProductDetailImage, av as ProductDetailListing, aw as ProductDetailMedia, ax as ProductDetailOption, ay as ProductDetailOptionValue, az as ProductDetailTag, aA as ProductDetailVariant, aB as ProductDetailVariantOptionValue, aC as ProductDetailVideo, aD as ProductListingGroup, aE as ProductListingGroupSummary, aF as ProductListingGroupsItem, aG as ProductListingProductShape, aH as ProductListingProjection, aI as ProductOptionMatrix, aJ as ProductOptionMatrixOption, aK as ProductOptionMatrixValue, aL as ProductOptionMatrixVariant, aM as ProductOptionShape, aN as ProductOptionValueShape, aO as ProductSelectionAvailableValue, aP as ProductSelectionByOptionValue, aQ as ProductSelectionCodecError, aR as ProductSelectionCodecOptions, aS as ProductSelectionInput, aT as ProductSelectionResolution, aU as ProductVariantShape, aV as QueryHooks, aW as QueryOptions, aX as RateLimitError, aY as ReadOnlyQueryBuilder, aZ as RequestOptions, a_ as RetryConfig, a$ as ReturnItem, b0 as ReturnReason, b1 as ReturnWithRefundParams, b2 as SDKError, b3 as ServerApiOptions, b4 as ServerClient, b4 as ServerClientType, b5 as ServerCollectionClient, b6 as ServerCollectionQueryBuilder, b7 as ServerCommerceClient, b8 as ServerCommerceClientOptions, b9 as ServiceUnavailableError, ba as ShippingApi, bb as ShippingApiOptions, bc as StockCheckResult, bd as SuspenseInfiniteQueryOptions, be as SuspenseQueryOptions, bf as TimeoutError, bg as UnbanCustomerParams, bh as UpdateFulfillmentParams, bi as UpdateOrderParams, bj as UpdateProfileData, bk as UpdateReturnParams, bl as UpdateTransactionParams, bm as UsageLimitError, bn as ValidationError, bo as buildProductListingGroupsByOption, bp as buildProductListingProjection, bq as buildProductOptionMatrix, br as buildProductOptionMatrixFromDetail, bs as createAuthError, bt as createConflictError, bu as createNotFoundError, bv as createPermissionError, bw as createProductSelectionCodec, bx as createRateLimitError, by as createServerClient, bz as getAvailableOptionValues, bA as getSelectedValueByOptionId, bB as isApiError, bC as isAuthError, bD as isConfigError, bE as isConflictError, bF as isGoneError, bG as isNetworkError, bH as isNotFoundError, bI as isPermissionError, bJ as isRateLimitError, bK as isSDKError, bL as isServiceUnavailableError, bM as isTimeoutError, bN as isUsageLimitError, bO as isValidationError, bP as normalizeProductSelection, bQ as normalizeSelectedValueIds, bR as parseProductSelection, bS as resolveApiUrl, bT as resolveProductSelection, bU as resolveVariantForSelection, bV as stringifyProductSelection } from './server-C0C8dtms.cjs';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
export { C as CollectionType } from './types-
|
|
7
|
-
import { P as PublicCollection } from './const-
|
|
8
|
-
export { C as COLLECTIONS, a as Collection, I as INTERNAL_COLLECTIONS, b as InternalCollection, S as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS, d as ServerCollection, e as ServerOnlyCollection } from './const-
|
|
6
|
+
export { C as CollectionType } from './types-zKjATmDK.cjs';
|
|
7
|
+
import { P as PublicCollection } from './const-Dsixdi6z.cjs';
|
|
8
|
+
export { C as COLLECTIONS, a as Collection, I as INTERNAL_COLLECTIONS, b as InternalCollection, S as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS, d as ServerCollection, e as ServerOnlyCollection } from './const-Dsixdi6z.cjs';
|
|
9
9
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
10
10
|
export { CUSTOMER_PASSWORD_RESET_OPERATION, CustomerAuthWebhookEvent, CustomerAuthWebhookHandlers, CustomerPasswordResetWebhookData, CustomerPasswordResetWebhookEvent, WebhookEvent, WebhookHandler, WebhookOperation, WebhookOptions, createCustomerAuthWebhookHandler, createTypedWebhookHandler, handleWebhook, isCustomerPasswordResetWebhookEvent, isValidWebhookEvent } from './webhook.cjs';
|
|
11
11
|
export { a as IMAGE_SIZES, I as ImageData, b as ImagePalette, c as ImagePlaceholderOptions, g as getImageLqip, d as getImagePalette, e as getImagePlaceholderStyle, f as getImageSrcSet, h as getImageUrl } from './image-BDz2-AaO.cjs';
|
|
@@ -34,6 +34,7 @@ declare class CommerceClient {
|
|
|
34
34
|
readonly product: {
|
|
35
35
|
stockCheck: (params: StockCheckParams) => Promise<StockCheckResponse>;
|
|
36
36
|
listingGroups: (params: ListingGroupsParams) => Promise<ProductListingGroupsResponse>;
|
|
37
|
+
detail: (params: ProductDetailParams) => Promise<ProductDetail | null>;
|
|
37
38
|
};
|
|
38
39
|
readonly cart: {
|
|
39
40
|
get: (cartId: string) => Promise<Cart>;
|
|
@@ -81,6 +82,16 @@ declare const customerKeys: {
|
|
|
81
82
|
declare const productKeys: {
|
|
82
83
|
listingGroups: (options?: ProductListingGroupsQueryOptions) => readonly ["products", "listing-groups", "list", ProductListingGroupsQueryOptions | undefined];
|
|
83
84
|
listingGroupsInfinite: (options?: Omit<ProductListingGroupsQueryOptions, "page" | "limit">) => readonly ["products", "listing-groups", "infinite", Omit<ProductListingGroupsQueryOptions, "limit" | "page"> | undefined];
|
|
85
|
+
detail: (params: {
|
|
86
|
+
slug: string;
|
|
87
|
+
} | {
|
|
88
|
+
id: string;
|
|
89
|
+
}) => readonly ["products", "detail", {
|
|
90
|
+
slug: string;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
}];
|
|
94
|
+
detailAll: () => readonly ["products", "detail"];
|
|
84
95
|
};
|
|
85
96
|
|
|
86
97
|
declare class Client {
|
|
@@ -124,4 +135,4 @@ declare const formatOrderName: (items: OrderItem[]) => string;
|
|
|
124
135
|
*/
|
|
125
136
|
declare const resolveRelation: <T>(ref: T | string | number | null | undefined) => T | null;
|
|
126
137
|
|
|
127
|
-
export { AddItemParams, ApiQueryOptions, ApplyDiscountParams, CalculateShippingParams, CalculateShippingResult, Cart, CartItem, CheckoutParams, ClearCartParams, Client, ClientConfig, ClientState, Client as ClientType, CommerceClient, type CommerceClientOptions, CommunityClient, CustomerAuth, CustomerAuthOptions, CustomerNamespace, ListingGroupsParams, Order, PayloadFindResponse, Product, ProductListingGroupsQueryOptions, ProductListingGroupsResponse, PublicCollection, ReadOnlyCollectionClient, ReadOnlyQueryHooks, RemoveDiscountParams, RemoveItemParams, StockCheckParams, StockCheckResponse, UpdateItemParams, ValidateDiscountParams, ValidateDiscountResult, collectionKeys, createClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, productKeys, resolveRelation };
|
|
138
|
+
export { AddItemParams, ApiQueryOptions, ApplyDiscountParams, CalculateShippingParams, CalculateShippingResult, Cart, CartItem, CheckoutParams, ClearCartParams, Client, ClientConfig, ClientState, Client as ClientType, CommerceClient, type CommerceClientOptions, CommunityClient, CustomerAuth, CustomerAuthOptions, CustomerNamespace, ListingGroupsParams, Order, PayloadFindResponse, Product, ProductDetail, ProductDetailParams, ProductListingGroupsQueryOptions, ProductListingGroupsResponse, PublicCollection, ReadOnlyCollectionClient, ReadOnlyQueryHooks, RemoveDiscountParams, RemoveItemParams, StockCheckParams, StockCheckResponse, UpdateItemParams, ValidateDiscountParams, ValidateDiscountResult, collectionKeys, createClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, productKeys, resolveRelation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as Cart, e as CartItem, O as Order, f as Product } from './payload-types-
|
|
2
|
-
export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, P as Post, j as PostCategory, k as ProductVariant, T as Tenant, V as Video } from './payload-types-
|
|
3
|
-
import { C as CustomerAuth, a as CustomerAuthOptions, S as StockCheckParams, b as StockCheckResponse, L as ListingGroupsParams, P as ProductListingGroupsResponse, A as AddItemParams, U as UpdateItemParams, R as RemoveItemParams,
|
|
4
|
-
export {
|
|
1
|
+
import { d as Cart, e as CartItem, O as Order, f as Product } from './payload-types-Ci-ZA7aM.js';
|
|
2
|
+
export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, P as Post, j as PostCategory, k as ProductVariant, T as Tenant, V as Video } from './payload-types-Ci-ZA7aM.js';
|
|
3
|
+
import { C as CustomerAuth, a as CustomerAuthOptions, S as StockCheckParams, b as StockCheckResponse, L as ListingGroupsParams, P as ProductListingGroupsResponse, c as ProductDetailParams, d as ProductDetail, A as AddItemParams, U as UpdateItemParams, R as RemoveItemParams, e as ApplyDiscountParams, f as RemoveDiscountParams, g as ClearCartParams, h as CheckoutParams, i as PayloadFindResponse, V as ValidateDiscountParams, j as ValidateDiscountResult, k as CalculateShippingParams, l as CalculateShippingResult, m as ApiQueryOptions, n as ProductListingGroupsQueryOptions, o as CommunityClient, p as ReadOnlyQueryHooks, q as ReadOnlyCollectionClient, r as ClientState, s as ClientConfig } from './server-Cv0Q4dPQ.js';
|
|
4
|
+
export { t as ApiError, u as AuthError, B as BanCustomerParams, v as BaseApi, w as BulkImportFulfillmentsParams, x as BulkImportFulfillmentsResponse, y as CartApi, z as CartApiOptions, D as ClientMetadata, E as ClientServerConfig, F as CollectionClient, G as CollectionDetailQueryParams, H as CollectionHooks, I as CollectionInfiniteQueryParams, J as CollectionQueryBuilder, K as CollectionQueryParams, M as CommunityBan, N as CommunityClientOptions, O as CommunityPost, Q as ConfigError, T as ConfirmPaymentParams, W as ConfirmPaymentResponse, X as ConflictError, Y as CreateFulfillmentParams, Z as CreateOrderParams, _ as CreateReturnParams, $ as CustomerAuthResponse, a0 as CustomerHooks, a1 as CustomerLoginData, a2 as CustomerProfile, a3 as CustomerRefreshResponse, a4 as CustomerRegisterData, a5 as CustomerRegisterResponse, a6 as CustomerSnapshot, a7 as DebugConfig, a8 as DeepPartial, a9 as DiscountApi, aa as DiscountApiOptions, ab as ExtractArrayType, ac as GenerateMetadataOptions, ad as GoneError, ae as InfiniteQueryOptions, af as LegacyProductSelectionParamEvent, ag as ModerationApi, ah as ModerationApiOptions, ai as NetworkError, aj as NormalizedProductSelection, ak as NotFoundError, al as OrderApi, am as OrderApiOptions, an as PaginationMeta, ao as PayloadMutationResponse, ap as PermissionError, aq as ProductApi, ar as ProductApiOptions, as as ProductDetailBrand, at as ProductDetailCategory, au as ProductDetailImage, av as ProductDetailListing, aw as ProductDetailMedia, ax as ProductDetailOption, ay as ProductDetailOptionValue, az as ProductDetailTag, aA as ProductDetailVariant, aB as ProductDetailVariantOptionValue, aC as ProductDetailVideo, aD as ProductListingGroup, aE as ProductListingGroupSummary, aF as ProductListingGroupsItem, aG as ProductListingProductShape, aH as ProductListingProjection, aI as ProductOptionMatrix, aJ as ProductOptionMatrixOption, aK as ProductOptionMatrixValue, aL as ProductOptionMatrixVariant, aM as ProductOptionShape, aN as ProductOptionValueShape, aO as ProductSelectionAvailableValue, aP as ProductSelectionByOptionValue, aQ as ProductSelectionCodecError, aR as ProductSelectionCodecOptions, aS as ProductSelectionInput, aT as ProductSelectionResolution, aU as ProductVariantShape, aV as QueryHooks, aW as QueryOptions, aX as RateLimitError, aY as ReadOnlyQueryBuilder, aZ as RequestOptions, a_ as RetryConfig, a$ as ReturnItem, b0 as ReturnReason, b1 as ReturnWithRefundParams, b2 as SDKError, b3 as ServerApiOptions, b4 as ServerClient, b4 as ServerClientType, b5 as ServerCollectionClient, b6 as ServerCollectionQueryBuilder, b7 as ServerCommerceClient, b8 as ServerCommerceClientOptions, b9 as ServiceUnavailableError, ba as ShippingApi, bb as ShippingApiOptions, bc as StockCheckResult, bd as SuspenseInfiniteQueryOptions, be as SuspenseQueryOptions, bf as TimeoutError, bg as UnbanCustomerParams, bh as UpdateFulfillmentParams, bi as UpdateOrderParams, bj as UpdateProfileData, bk as UpdateReturnParams, bl as UpdateTransactionParams, bm as UsageLimitError, bn as ValidationError, bo as buildProductListingGroupsByOption, bp as buildProductListingProjection, bq as buildProductOptionMatrix, br as buildProductOptionMatrixFromDetail, bs as createAuthError, bt as createConflictError, bu as createNotFoundError, bv as createPermissionError, bw as createProductSelectionCodec, bx as createRateLimitError, by as createServerClient, bz as getAvailableOptionValues, bA as getSelectedValueByOptionId, bB as isApiError, bC as isAuthError, bD as isConfigError, bE as isConflictError, bF as isGoneError, bG as isNetworkError, bH as isNotFoundError, bI as isPermissionError, bJ as isRateLimitError, bK as isSDKError, bL as isServiceUnavailableError, bM as isTimeoutError, bN as isUsageLimitError, bO as isValidationError, bP as normalizeProductSelection, bQ as normalizeSelectedValueIds, bR as parseProductSelection, bS as resolveApiUrl, bT as resolveProductSelection, bU as resolveVariantForSelection, bV as stringifyProductSelection } from './server-Cv0Q4dPQ.js';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
export { C as CollectionType } from './types-
|
|
7
|
-
import { P as PublicCollection } from './const-
|
|
8
|
-
export { C as COLLECTIONS, a as Collection, I as INTERNAL_COLLECTIONS, b as InternalCollection, S as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS, d as ServerCollection, e as ServerOnlyCollection } from './const-
|
|
6
|
+
export { C as CollectionType } from './types-BWq_WlbB.js';
|
|
7
|
+
import { P as PublicCollection } from './const-DAjQYNuM.js';
|
|
8
|
+
export { C as COLLECTIONS, a as Collection, I as INTERNAL_COLLECTIONS, b as InternalCollection, S as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS, d as ServerCollection, e as ServerOnlyCollection } from './const-DAjQYNuM.js';
|
|
9
9
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
10
10
|
export { CUSTOMER_PASSWORD_RESET_OPERATION, CustomerAuthWebhookEvent, CustomerAuthWebhookHandlers, CustomerPasswordResetWebhookData, CustomerPasswordResetWebhookEvent, WebhookEvent, WebhookHandler, WebhookOperation, WebhookOptions, createCustomerAuthWebhookHandler, createTypedWebhookHandler, handleWebhook, isCustomerPasswordResetWebhookEvent, isValidWebhookEvent } from './webhook.js';
|
|
11
11
|
export { a as IMAGE_SIZES, I as ImageData, b as ImagePalette, c as ImagePlaceholderOptions, g as getImageLqip, d as getImagePalette, e as getImagePlaceholderStyle, f as getImageSrcSet, h as getImageUrl } from './image-BDz2-AaO.js';
|
|
@@ -34,6 +34,7 @@ declare class CommerceClient {
|
|
|
34
34
|
readonly product: {
|
|
35
35
|
stockCheck: (params: StockCheckParams) => Promise<StockCheckResponse>;
|
|
36
36
|
listingGroups: (params: ListingGroupsParams) => Promise<ProductListingGroupsResponse>;
|
|
37
|
+
detail: (params: ProductDetailParams) => Promise<ProductDetail | null>;
|
|
37
38
|
};
|
|
38
39
|
readonly cart: {
|
|
39
40
|
get: (cartId: string) => Promise<Cart>;
|
|
@@ -81,6 +82,16 @@ declare const customerKeys: {
|
|
|
81
82
|
declare const productKeys: {
|
|
82
83
|
listingGroups: (options?: ProductListingGroupsQueryOptions) => readonly ["products", "listing-groups", "list", ProductListingGroupsQueryOptions | undefined];
|
|
83
84
|
listingGroupsInfinite: (options?: Omit<ProductListingGroupsQueryOptions, "page" | "limit">) => readonly ["products", "listing-groups", "infinite", Omit<ProductListingGroupsQueryOptions, "limit" | "page"> | undefined];
|
|
85
|
+
detail: (params: {
|
|
86
|
+
slug: string;
|
|
87
|
+
} | {
|
|
88
|
+
id: string;
|
|
89
|
+
}) => readonly ["products", "detail", {
|
|
90
|
+
slug: string;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
}];
|
|
94
|
+
detailAll: () => readonly ["products", "detail"];
|
|
84
95
|
};
|
|
85
96
|
|
|
86
97
|
declare class Client {
|
|
@@ -124,4 +135,4 @@ declare const formatOrderName: (items: OrderItem[]) => string;
|
|
|
124
135
|
*/
|
|
125
136
|
declare const resolveRelation: <T>(ref: T | string | number | null | undefined) => T | null;
|
|
126
137
|
|
|
127
|
-
export { AddItemParams, ApiQueryOptions, ApplyDiscountParams, CalculateShippingParams, CalculateShippingResult, Cart, CartItem, CheckoutParams, ClearCartParams, Client, ClientConfig, ClientState, Client as ClientType, CommerceClient, type CommerceClientOptions, CommunityClient, CustomerAuth, CustomerAuthOptions, CustomerNamespace, ListingGroupsParams, Order, PayloadFindResponse, Product, ProductListingGroupsQueryOptions, ProductListingGroupsResponse, PublicCollection, ReadOnlyCollectionClient, ReadOnlyQueryHooks, RemoveDiscountParams, RemoveItemParams, StockCheckParams, StockCheckResponse, UpdateItemParams, ValidateDiscountParams, ValidateDiscountResult, collectionKeys, createClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, productKeys, resolveRelation };
|
|
138
|
+
export { AddItemParams, ApiQueryOptions, ApplyDiscountParams, CalculateShippingParams, CalculateShippingResult, Cart, CartItem, CheckoutParams, ClearCartParams, Client, ClientConfig, ClientState, Client as ClientType, CommerceClient, type CommerceClientOptions, CommunityClient, CustomerAuth, CustomerAuthOptions, CustomerNamespace, ListingGroupsParams, Order, PayloadFindResponse, Product, ProductDetail, ProductDetailParams, ProductListingGroupsQueryOptions, ProductListingGroupsResponse, PublicCollection, ReadOnlyCollectionClient, ReadOnlyQueryHooks, RemoveDiscountParams, RemoveItemParams, StockCheckParams, StockCheckResponse, UpdateItemParams, ValidateDiscountParams, ValidateDiscountResult, collectionKeys, createClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, productKeys, resolveRelation };
|