@01.software/sdk 0.2.9-dev.260311.926a6d4 → 0.2.9-dev.260312.8c43a16
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 +95 -62
- package/dist/auth.cjs +3 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -1
- package/dist/auth.js.map +1 -1
- package/dist/index.cjs +172 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -35
- package/dist/index.d.ts +17 -35
- package/dist/index.js +177 -92
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BjvBwB8Z.d.cts → payload-types-BUwpb306.d.cts} +295 -1384
- package/dist/{payload-types-BjvBwB8Z.d.ts → payload-types-BUwpb306.d.ts} +295 -1384
- package/dist/{components → ui}/code-block.cjs +11 -8
- package/dist/ui/code-block.cjs.map +1 -0
- package/dist/{components → ui}/code-block.js +11 -8
- package/dist/ui/code-block.js.map +1 -0
- package/dist/{components → ui}/flow.cjs +117 -69
- package/dist/ui/flow.cjs.map +1 -0
- package/dist/{components → ui}/flow.js +114 -66
- package/dist/ui/flow.js.map +1 -0
- package/dist/{components → ui}/form.cjs +6 -6
- package/dist/ui/form.cjs.map +1 -0
- package/dist/{components → ui}/form.d.cts +1 -1
- package/dist/{components → ui}/form.d.ts +1 -1
- package/dist/{components → ui}/form.js +3 -3
- package/dist/ui/form.js.map +1 -0
- package/dist/{components → ui}/image.cjs +2 -2
- package/dist/ui/image.cjs.map +1 -0
- package/dist/{components → ui}/image.js +2 -2
- package/dist/ui/image.js.map +1 -0
- package/dist/{components → ui}/rich-text.cjs +6 -6
- package/dist/ui/rich-text.cjs.map +1 -0
- package/dist/{components → ui}/rich-text.js +3 -3
- package/dist/ui/rich-text.js.map +1 -0
- package/dist/{webhook-_LdLdjGa.d.ts → webhook-BUcDo2Ny.d.cts} +2 -2
- package/dist/{webhook-CszIpUKn.d.cts → webhook-D8Bp97bF.d.ts} +2 -2
- package/dist/webhook.cjs +7 -5
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +2 -2
- package/dist/webhook.d.ts +2 -2
- package/dist/webhook.js +7 -5
- package/dist/webhook.js.map +1 -1
- package/package.json +29 -28
- package/dist/components/code-block.cjs.map +0 -1
- package/dist/components/code-block.js.map +0 -1
- package/dist/components/flow.cjs.map +0 -1
- package/dist/components/flow.js.map +0 -1
- package/dist/components/form.cjs.map +0 -1
- package/dist/components/form.js.map +0 -1
- package/dist/components/image.cjs.map +0 -1
- package/dist/components/image.js.map +0 -1
- package/dist/components/rich-text.cjs.map +0 -1
- package/dist/components/rich-text.js.map +0 -1
- /package/dist/{components → ui}/code-block.d.cts +0 -0
- /package/dist/{components → ui}/code-block.d.ts +0 -0
- /package/dist/{components → ui}/flow.d.cts +0 -0
- /package/dist/{components → ui}/flow.d.ts +0 -0
- /package/dist/{components → ui}/image.d.cts +0 -0
- /package/dist/{components → ui}/image.d.ts +0 -0
- /package/dist/{components → ui}/rich-text.d.cts +0 -0
- /package/dist/{components → ui}/rich-text.d.ts +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, C as Cart, c as CartItem, P as Product } from './payload-types-
|
|
2
|
-
export {
|
|
1
|
+
import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, C as Cart, c as CartItem, P as Product } from './payload-types-BUwpb306.cjs';
|
|
2
|
+
export { o as ApiUsage, as as ApiUsageSelect, A as Audience, ao as AudiencesSelect, bo as Auth, q as BillingHistory, au as BillingHistorySelect, y as Brand, B as BrandLogo, aD as BrandLogosSelect, aC as BrandsSelect, aT as CartItemsSelect, aS as CartsSelect, g as CodeBlock, bn as CollectionsWidget, d as Config, G as Customer, J as CustomerAddress, aQ as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, aR as CustomerGroupsSelect, aP as CustomersSelect, W as Discount, aU as DiscountsSelect, $ as Document, a_ as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, a$ as DocumentTypesSelect, aZ as DocumentsSelect, m as EmailLog, ap as EmailLogsSelect, N as ExchangeProduct, aN as ExchangeProductsSelect, aM as ExchangesSelect, j as FieldConfig, al as FieldConfigsSelect, aa as Flow, bb as FlowCategoriesSelect, ab as FlowCategory, ae as FlowEdgeType, ba as FlowEdgeTypesSelect, ad as FlowNodeType, b9 as FlowNodeTypesSelect, ac as FlowTag, bc as FlowTagsSelect, b8 as FlowsSelect, F as Form, af as FormSubmission, bi as FormSubmissionsSelect, bh as FormsSelect, K as FulfillmentItem, aJ as FulfillmentItemsSelect, aI as FulfillmentsSelect, b4 as GalleriesSelect, a6 as Gallery, b5 as GalleryCategoriesSelect, a7 as GalleryCategory, a9 as GalleryItem, b7 as GalleryItemsSelect, a8 as GalleryTag, b6 as GalleryTagsSelect, I as IframeBlock, k as Image, am as ImagesSelect, L as LiveStream, bg as LiveStreamsSelect, a5 as Music, b3 as MusicsSelect, aF as OrderProductsSelect, Q as OrderStatusLog, aH as OrderStatusLogsSelect, aE as OrdersSelect, ag as PayloadKv, bj as PayloadKvSelect, ah as PayloadLockedDocument, bk as PayloadLockedDocumentsSelect, aj as PayloadMigration, bm as PayloadMigrationsSelect, ai as PayloadPreference, bl as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, b1 as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, b2 as PlaylistTagsSelect, b0 as PlaylistsSelect, X as Post, Y as PostAuthor, aW as PostAuthorsSelect, aX as PostCategoriesSelect, Z as PostCategory, _ as PostTag, aY as PostTagsSelect, aV as PostsSelect, az as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aB as ProductCollectionsSelect, v as ProductOption, ay as ProductOptionsSelect, x as ProductTag, aA as ProductTagsSelect, u as ProductVariant, ax as ProductVariantsSelect, aw as ProductsSelect, M as ReturnProduct, aL as ReturnProductsSelect, aK as ReturnsSelect, aO as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, at as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, an as SystemMediaSelect, i as Tenant, r as TenantLogo, av as TenantLogosSelect, ar as TenantMetadataSelect, n as TenantMetadatum, aq as TenantsSelect, aG as TransactionsSelect, h as User, U as UserAuthOperations, ak as UsersSelect, V as Video, be as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bf as VideoTagsSelect, bd as VideosSelect } from './payload-types-BUwpb306.cjs';
|
|
3
3
|
import { Sort, Where } from 'payload';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { P as PublicCollection, C as CollectionType } from './webhook-
|
|
7
|
-
export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-
|
|
6
|
+
import { P as PublicCollection, C as CollectionType } from './webhook-BUcDo2Ny.cjs';
|
|
7
|
+
export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-BUcDo2Ny.cjs';
|
|
8
8
|
import { Metadata } from 'next';
|
|
9
9
|
export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.cjs';
|
|
10
10
|
export { JwtPayload, createApiKey, createServerToken, decodeServerToken, parseApiKey, verifyServerToken } from './auth.cjs';
|
|
@@ -85,46 +85,27 @@ declare function isGoneError(error: unknown): error is GoneError;
|
|
|
85
85
|
declare function isServiceUnavailableError(error: unknown): error is ServiceUnavailableError;
|
|
86
86
|
declare function isUsageLimitError(error: unknown): error is UsageLimitError;
|
|
87
87
|
|
|
88
|
-
type Environment = 'local' | 'development' | 'staging' | 'production';
|
|
89
|
-
declare const API_URLS: Record<Environment, string>;
|
|
90
88
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
89
|
+
* API URL을 반환합니다.
|
|
90
|
+
* 환경변수 SOFTWARE_API_URL 또는 NEXT_PUBLIC_SOFTWARE_API_URL로 오버라이드 가능.
|
|
91
|
+
* 빌드 시 버전에 따라 기본값 결정: dev 빌드 → api-dev, 정식 → api.01.software
|
|
93
92
|
*/
|
|
94
|
-
declare function resolveApiUrl(
|
|
95
|
-
baseUrl?: string;
|
|
96
|
-
environment?: Environment;
|
|
97
|
-
}): string;
|
|
93
|
+
declare function resolveApiUrl(): string;
|
|
98
94
|
interface ClientBrowserConfig {
|
|
99
95
|
clientKey: string;
|
|
100
|
-
/**
|
|
101
|
-
* API 환경 설정.
|
|
102
|
-
* - 'local': localhost:3000
|
|
103
|
-
* - 'development': dev.01.software
|
|
104
|
-
* - 'staging': stg.01.software
|
|
105
|
-
* - 'production': api.01.software
|
|
106
|
-
*
|
|
107
|
-
* baseUrl이 설정되면 이 값은 무시됩니다.
|
|
108
|
-
* @default 'production'
|
|
109
|
-
*/
|
|
110
|
-
environment?: Environment;
|
|
111
|
-
/**
|
|
112
|
-
* 커스텀 API URL. 설정 시 environment 값은 무시됩니다.
|
|
113
|
-
* @example 'https://my-custom-api.example.com'
|
|
114
|
-
*/
|
|
115
|
-
baseUrl?: string;
|
|
116
96
|
/**
|
|
117
97
|
* Customer authentication options.
|
|
118
98
|
* Used to initialize CustomerAuth on BrowserClient.
|
|
119
99
|
*/
|
|
120
100
|
customer?: {
|
|
121
101
|
/**
|
|
122
|
-
*
|
|
123
|
-
* - `true
|
|
102
|
+
* Persist token in localStorage. Defaults to `true`.
|
|
103
|
+
* - `true` (default): uses key `'customer-token'`
|
|
124
104
|
* - `string`: uses the given string as localStorage key
|
|
105
|
+
* - `false`: disables persistence (token/onTokenChange used instead)
|
|
125
106
|
*
|
|
126
107
|
* Handles SSR safely (no-op on server).
|
|
127
|
-
* When
|
|
108
|
+
* When enabled, `token` and `onTokenChange` are ignored.
|
|
128
109
|
*/
|
|
129
110
|
persist?: boolean | string;
|
|
130
111
|
/** Initial token (e.g. from SSR cookie) */
|
|
@@ -658,12 +639,13 @@ interface UpdateProfileData {
|
|
|
658
639
|
}
|
|
659
640
|
interface CustomerAuthOptions {
|
|
660
641
|
/**
|
|
661
|
-
*
|
|
662
|
-
* - `true
|
|
642
|
+
* Persist token in localStorage. Defaults to `true`.
|
|
643
|
+
* - `true` (default): uses key `'customer-token'`
|
|
663
644
|
* - `string`: uses the given string as localStorage key
|
|
645
|
+
* - `false`: disables persistence (token/onTokenChange used instead)
|
|
664
646
|
*
|
|
665
647
|
* Handles SSR safely (no-op on server).
|
|
666
|
-
* When
|
|
648
|
+
* When enabled, `token` and `onTokenChange` are ignored.
|
|
667
649
|
*/
|
|
668
650
|
persist?: boolean | string;
|
|
669
651
|
/** Initial token (e.g. from SSR cookie) */
|
|
@@ -1047,4 +1029,4 @@ declare function getVideoStreamUrl(playbackId: string): string;
|
|
|
1047
1029
|
*/
|
|
1048
1030
|
declare function getVideoMp4Url(playbackId: string, resolution?: 'high' | 'medium' | 'low'): string;
|
|
1049
1031
|
|
|
1050
|
-
export {
|
|
1032
|
+
export { type AddItemParams, ApiError, type ApiQueryOptions, type ApiQueryReactOptions, type ApplyDiscountParams, BaseApi, BrowserClient, BrowserClient as BrowserClientType, type CalculateShippingParams, type CalculateShippingResult, Cart, CartApi, type CartApiOptions, CartItem, type CheckoutParams, type ClearCartParams, type ClientBrowserConfig, type ClientMetadata, type ClientServerConfig, type ClientState, CollectionClient, type CollectionDetailQueryParams, CollectionHooks, type CollectionInfiniteQueryParams, CollectionQueryBuilder, type CollectionQueryParams, CollectionType, ConfigError, type CreateExchangeParams, type CreateFulfillmentParams, type CreateOrderParams, type CreateReturnParams, CustomerAuth, type CustomerAuthOptions, type CustomerAuthResponse, CustomerHooks, type CustomerLoginData, type CustomerProfile, type CustomerRefreshResponse, type CustomerRegisterData, type DebugConfig, type DeepPartial, type ErrorLogger, Exchange, type ExtractArrayType, Fulfillment, type GenerateMetadataOptions, type GetOrderParams, GoneError, NetworkError, Order, OrderApi, type OrderApiOptions, OrderProduct, type PaginationMeta, type PayloadFindResponse, type PayloadMutationResponse, Product, ProductApi, type ProductApiOptions, PublicCollection, QueryHooks, type ReadOnlyQueryBuilder, type ReadOnlyQueryHooks, type RemoveDiscountParams, type RemoveItemParams, type RetryConfig, Return, type ReturnWithRefundParams, SDKError, type ServerApiOptions, ServerClient, ServerClient as ServerClientType, ServiceUnavailableError, type StockCheckParams, type StockCheckResponse, type StockCheckResult, TimeoutError, Transaction, type UpdateExchangeParams, type UpdateFulfillmentParams, type UpdateItemParams, type UpdateOrderParams, type UpdateProfileData, type UpdateReturnParams, type UpdateTransactionParams, UsageLimitError, type ValidateDiscountParams, type ValidateDiscountResult, ValidationError, type VideoGifOptions, type VideoThumbnailOptions, collectionKeys, createBrowserClient, createServerClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, getVideoGif, getVideoMp4Url, getVideoStoryboard, getVideoStreamUrl, getVideoThumbnail, isApiError, isConfigError, isGoneError, isNetworkError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError, resolveApiUrl, resolveRelation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, C as Cart, c as CartItem, P as Product } from './payload-types-
|
|
2
|
-
export {
|
|
1
|
+
import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, C as Cart, c as CartItem, P as Product } from './payload-types-BUwpb306.js';
|
|
2
|
+
export { o as ApiUsage, as as ApiUsageSelect, A as Audience, ao as AudiencesSelect, bo as Auth, q as BillingHistory, au as BillingHistorySelect, y as Brand, B as BrandLogo, aD as BrandLogosSelect, aC as BrandsSelect, aT as CartItemsSelect, aS as CartsSelect, g as CodeBlock, bn as CollectionsWidget, d as Config, G as Customer, J as CustomerAddress, aQ as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, aR as CustomerGroupsSelect, aP as CustomersSelect, W as Discount, aU as DiscountsSelect, $ as Document, a_ as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, a$ as DocumentTypesSelect, aZ as DocumentsSelect, m as EmailLog, ap as EmailLogsSelect, N as ExchangeProduct, aN as ExchangeProductsSelect, aM as ExchangesSelect, j as FieldConfig, al as FieldConfigsSelect, aa as Flow, bb as FlowCategoriesSelect, ab as FlowCategory, ae as FlowEdgeType, ba as FlowEdgeTypesSelect, ad as FlowNodeType, b9 as FlowNodeTypesSelect, ac as FlowTag, bc as FlowTagsSelect, b8 as FlowsSelect, F as Form, af as FormSubmission, bi as FormSubmissionsSelect, bh as FormsSelect, K as FulfillmentItem, aJ as FulfillmentItemsSelect, aI as FulfillmentsSelect, b4 as GalleriesSelect, a6 as Gallery, b5 as GalleryCategoriesSelect, a7 as GalleryCategory, a9 as GalleryItem, b7 as GalleryItemsSelect, a8 as GalleryTag, b6 as GalleryTagsSelect, I as IframeBlock, k as Image, am as ImagesSelect, L as LiveStream, bg as LiveStreamsSelect, a5 as Music, b3 as MusicsSelect, aF as OrderProductsSelect, Q as OrderStatusLog, aH as OrderStatusLogsSelect, aE as OrdersSelect, ag as PayloadKv, bj as PayloadKvSelect, ah as PayloadLockedDocument, bk as PayloadLockedDocumentsSelect, aj as PayloadMigration, bm as PayloadMigrationsSelect, ai as PayloadPreference, bl as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, b1 as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, b2 as PlaylistTagsSelect, b0 as PlaylistsSelect, X as Post, Y as PostAuthor, aW as PostAuthorsSelect, aX as PostCategoriesSelect, Z as PostCategory, _ as PostTag, aY as PostTagsSelect, aV as PostsSelect, az as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aB as ProductCollectionsSelect, v as ProductOption, ay as ProductOptionsSelect, x as ProductTag, aA as ProductTagsSelect, u as ProductVariant, ax as ProductVariantsSelect, aw as ProductsSelect, M as ReturnProduct, aL as ReturnProductsSelect, aK as ReturnsSelect, aO as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, at as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, an as SystemMediaSelect, i as Tenant, r as TenantLogo, av as TenantLogosSelect, ar as TenantMetadataSelect, n as TenantMetadatum, aq as TenantsSelect, aG as TransactionsSelect, h as User, U as UserAuthOperations, ak as UsersSelect, V as Video, be as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bf as VideoTagsSelect, bd as VideosSelect } from './payload-types-BUwpb306.js';
|
|
3
3
|
import { Sort, Where } from 'payload';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { P as PublicCollection, C as CollectionType } from './webhook-
|
|
7
|
-
export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-
|
|
6
|
+
import { P as PublicCollection, C as CollectionType } from './webhook-D8Bp97bF.js';
|
|
7
|
+
export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-D8Bp97bF.js';
|
|
8
8
|
import { Metadata } from 'next';
|
|
9
9
|
export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.js';
|
|
10
10
|
export { JwtPayload, createApiKey, createServerToken, decodeServerToken, parseApiKey, verifyServerToken } from './auth.js';
|
|
@@ -85,46 +85,27 @@ declare function isGoneError(error: unknown): error is GoneError;
|
|
|
85
85
|
declare function isServiceUnavailableError(error: unknown): error is ServiceUnavailableError;
|
|
86
86
|
declare function isUsageLimitError(error: unknown): error is UsageLimitError;
|
|
87
87
|
|
|
88
|
-
type Environment = 'local' | 'development' | 'staging' | 'production';
|
|
89
|
-
declare const API_URLS: Record<Environment, string>;
|
|
90
88
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
89
|
+
* API URL을 반환합니다.
|
|
90
|
+
* 환경변수 SOFTWARE_API_URL 또는 NEXT_PUBLIC_SOFTWARE_API_URL로 오버라이드 가능.
|
|
91
|
+
* 빌드 시 버전에 따라 기본값 결정: dev 빌드 → api-dev, 정식 → api.01.software
|
|
93
92
|
*/
|
|
94
|
-
declare function resolveApiUrl(
|
|
95
|
-
baseUrl?: string;
|
|
96
|
-
environment?: Environment;
|
|
97
|
-
}): string;
|
|
93
|
+
declare function resolveApiUrl(): string;
|
|
98
94
|
interface ClientBrowserConfig {
|
|
99
95
|
clientKey: string;
|
|
100
|
-
/**
|
|
101
|
-
* API 환경 설정.
|
|
102
|
-
* - 'local': localhost:3000
|
|
103
|
-
* - 'development': dev.01.software
|
|
104
|
-
* - 'staging': stg.01.software
|
|
105
|
-
* - 'production': api.01.software
|
|
106
|
-
*
|
|
107
|
-
* baseUrl이 설정되면 이 값은 무시됩니다.
|
|
108
|
-
* @default 'production'
|
|
109
|
-
*/
|
|
110
|
-
environment?: Environment;
|
|
111
|
-
/**
|
|
112
|
-
* 커스텀 API URL. 설정 시 environment 값은 무시됩니다.
|
|
113
|
-
* @example 'https://my-custom-api.example.com'
|
|
114
|
-
*/
|
|
115
|
-
baseUrl?: string;
|
|
116
96
|
/**
|
|
117
97
|
* Customer authentication options.
|
|
118
98
|
* Used to initialize CustomerAuth on BrowserClient.
|
|
119
99
|
*/
|
|
120
100
|
customer?: {
|
|
121
101
|
/**
|
|
122
|
-
*
|
|
123
|
-
* - `true
|
|
102
|
+
* Persist token in localStorage. Defaults to `true`.
|
|
103
|
+
* - `true` (default): uses key `'customer-token'`
|
|
124
104
|
* - `string`: uses the given string as localStorage key
|
|
105
|
+
* - `false`: disables persistence (token/onTokenChange used instead)
|
|
125
106
|
*
|
|
126
107
|
* Handles SSR safely (no-op on server).
|
|
127
|
-
* When
|
|
108
|
+
* When enabled, `token` and `onTokenChange` are ignored.
|
|
128
109
|
*/
|
|
129
110
|
persist?: boolean | string;
|
|
130
111
|
/** Initial token (e.g. from SSR cookie) */
|
|
@@ -658,12 +639,13 @@ interface UpdateProfileData {
|
|
|
658
639
|
}
|
|
659
640
|
interface CustomerAuthOptions {
|
|
660
641
|
/**
|
|
661
|
-
*
|
|
662
|
-
* - `true
|
|
642
|
+
* Persist token in localStorage. Defaults to `true`.
|
|
643
|
+
* - `true` (default): uses key `'customer-token'`
|
|
663
644
|
* - `string`: uses the given string as localStorage key
|
|
645
|
+
* - `false`: disables persistence (token/onTokenChange used instead)
|
|
664
646
|
*
|
|
665
647
|
* Handles SSR safely (no-op on server).
|
|
666
|
-
* When
|
|
648
|
+
* When enabled, `token` and `onTokenChange` are ignored.
|
|
667
649
|
*/
|
|
668
650
|
persist?: boolean | string;
|
|
669
651
|
/** Initial token (e.g. from SSR cookie) */
|
|
@@ -1047,4 +1029,4 @@ declare function getVideoStreamUrl(playbackId: string): string;
|
|
|
1047
1029
|
*/
|
|
1048
1030
|
declare function getVideoMp4Url(playbackId: string, resolution?: 'high' | 'medium' | 'low'): string;
|
|
1049
1031
|
|
|
1050
|
-
export {
|
|
1032
|
+
export { type AddItemParams, ApiError, type ApiQueryOptions, type ApiQueryReactOptions, type ApplyDiscountParams, BaseApi, BrowserClient, BrowserClient as BrowserClientType, type CalculateShippingParams, type CalculateShippingResult, Cart, CartApi, type CartApiOptions, CartItem, type CheckoutParams, type ClearCartParams, type ClientBrowserConfig, type ClientMetadata, type ClientServerConfig, type ClientState, CollectionClient, type CollectionDetailQueryParams, CollectionHooks, type CollectionInfiniteQueryParams, CollectionQueryBuilder, type CollectionQueryParams, CollectionType, ConfigError, type CreateExchangeParams, type CreateFulfillmentParams, type CreateOrderParams, type CreateReturnParams, CustomerAuth, type CustomerAuthOptions, type CustomerAuthResponse, CustomerHooks, type CustomerLoginData, type CustomerProfile, type CustomerRefreshResponse, type CustomerRegisterData, type DebugConfig, type DeepPartial, type ErrorLogger, Exchange, type ExtractArrayType, Fulfillment, type GenerateMetadataOptions, type GetOrderParams, GoneError, NetworkError, Order, OrderApi, type OrderApiOptions, OrderProduct, type PaginationMeta, type PayloadFindResponse, type PayloadMutationResponse, Product, ProductApi, type ProductApiOptions, PublicCollection, QueryHooks, type ReadOnlyQueryBuilder, type ReadOnlyQueryHooks, type RemoveDiscountParams, type RemoveItemParams, type RetryConfig, Return, type ReturnWithRefundParams, SDKError, type ServerApiOptions, ServerClient, ServerClient as ServerClientType, ServiceUnavailableError, type StockCheckParams, type StockCheckResponse, type StockCheckResult, TimeoutError, Transaction, type UpdateExchangeParams, type UpdateFulfillmentParams, type UpdateItemParams, type UpdateOrderParams, type UpdateProfileData, type UpdateReturnParams, type UpdateTransactionParams, UsageLimitError, type ValidateDiscountParams, type ValidateDiscountResult, ValidationError, type VideoGifOptions, type VideoThumbnailOptions, collectionKeys, createBrowserClient, createServerClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, getVideoGif, getVideoMp4Url, getVideoStoryboard, getVideoStreamUrl, getVideoThumbnail, isApiError, isConfigError, isGoneError, isNetworkError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError, resolveApiUrl, resolveRelation };
|