@01.software/sdk 0.2.9-dev.260311.bb95a4e → 0.2.9-dev.260314.f493447

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/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-BjvBwB8Z.cjs';
2
- export { n as ApiUsage, az as ApiUsageSelect, A as Audience, av as AudiencesSelect, bE as Auth, p as BillingHistory, aB as BillingHistorySelect, D as Brand, B as BrandLogo, aL as BrandLogosSelect, aK as BrandsSelect, b1 as CartItemsSelect, b0 as CartsSelect, g as CodeBlock, bD as CollectionsWidget, d as Config, J as Customer, Q as CustomerAddress, aZ as CustomerAddressesSelect, e as CustomerAuthOperations, K as CustomerGroup, N as CustomerGroupImage, a$ as CustomerGroupImagesSelect, a_ as CustomerGroupsSelect, aY as CustomersSelect, _ as Discount, b2 as DiscountsSelect, a4 as Document, b9 as DocumentCategoriesSelect, a7 as DocumentCategory, a5 as DocumentImage, bb as DocumentImagesSelect, a6 as DocumentType, ba as DocumentTypesSelect, b8 as DocumentsSelect, k as EmailLog, aw as EmailLogsSelect, Y as ExchangeProduct, aW as ExchangeProductsSelect, aV as ExchangesSelect, j as FieldConfig, at as FieldConfigsSelect, ah as Flow, bo as FlowCategoriesSelect, ai as FlowCategory, am as FlowEdgeType, bn as FlowEdgeTypesSelect, aj as FlowImage, bp as FlowImagesSelect, al as FlowNodeType, bm as FlowNodeTypesSelect, ak as FlowTag, bq as FlowTagsSelect, bl as FlowsSelect, F as Form, an as FormSubmission, by as FormSubmissionsSelect, bx as FormsSelect, W as FulfillmentItem, aS as FulfillmentItemsSelect, aR as FulfillmentsSelect, bh as GalleriesSelect, ad as Gallery, bj as GalleryCategoriesSelect, ae as GalleryCategory, af as GalleryImage, bi as GalleryImagesSelect, ag as GalleryTag, bk as GalleryTagsSelect, I as IframeBlock, L as LiveStream, s as LiveStreamImage, bw as LiveStreamImagesSelect, bv as LiveStreamsSelect, M as Media, au as MediaSelect, ac as Music, bf as MusicsSelect, aO as OrderProductsSelect, Z as OrderStatusLog, aQ as OrderStatusLogsSelect, aN as OrdersSelect, ao as PayloadKv, bz as PayloadKvSelect, ap as PayloadLockedDocument, bA as PayloadLockedDocumentsSelect, ar as PayloadMigration, bC as PayloadMigrationsSelect, aq as PayloadPreference, bB as PayloadPreferencesSelect, f as PlayerBlock, a8 as Playlist, bd as PlaylistCategoriesSelect, a9 as PlaylistCategory, aa as PlaylistImage, bg as PlaylistImagesSelect, ab as PlaylistTag, be as PlaylistTagsSelect, bc as PlaylistsSelect, $ as Post, a0 as PostAuthor, b4 as PostAuthorsSelect, b5 as PostCategoriesSelect, a2 as PostCategory, a1 as PostImage, b7 as PostImagesSelect, a3 as PostTag, b6 as PostTagsSelect, b3 as PostsSelect, aH as ProductCategoriesSelect, y as ProductCategory, H as ProductCollection, aJ as ProductCollectionsSelect, r as ProductImage, aM as ProductImagesSelect, x as ProductOption, aG as ProductOptionsSelect, z as ProductTag, aI as ProductTagsSelect, w as ProductVariant, aF as ProductVariantsSelect, aE as ProductsSelect, X as ReturnProduct, aU as ReturnProductsSelect, aT as ReturnsSelect, aX as ShippingPoliciesSelect, G as ShippingPolicy, o as Subscription, aA as SubscriptionsSelect, S as SupportedTimezones, i as Tenant, q as TenantLogo, aC as TenantLogosSelect, ay as TenantMetadataSelect, l as TenantMetadatum, m as TenantOgImage, aD as TenantOgImagesSelect, ax as TenantsSelect, aP as TransactionsSelect, h as User, U as UserAuthOperations, as as UsersSelect, V as Video, bs as VideoCategoriesSelect, u as VideoCategory, t as VideoImage, bu as VideoImagesSelect, v as VideoTag, bt as VideoTagsSelect, br as VideosSelect } from './payload-types-BjvBwB8Z.cjs';
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-ggU6BNuH.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-ggU6BNuH.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-CszIpUKn.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-CszIpUKn.cjs';
6
+ import { P as PublicCollection, C as CollectionType } from './webhook-DInps2xX.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-DInps2xX.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';
@@ -99,12 +99,13 @@ interface ClientBrowserConfig {
99
99
  */
100
100
  customer?: {
101
101
  /**
102
- * Automatically persist token in localStorage.
103
- * - `true`: uses default key `'customer-token'`
102
+ * Persist token in localStorage. Defaults to `true`.
103
+ * - `true` (default): uses key `'customer-token'`
104
104
  * - `string`: uses the given string as localStorage key
105
+ * - `false`: disables persistence (token/onTokenChange used instead)
105
106
  *
106
107
  * Handles SSR safely (no-op on server).
107
- * When set, `token` and `onTokenChange` are ignored.
108
+ * When enabled, `token` and `onTokenChange` are ignored.
108
109
  */
109
110
  persist?: boolean | string;
110
111
  /** Initial token (e.g. from SSR cookie) */
@@ -638,12 +639,13 @@ interface UpdateProfileData {
638
639
  }
639
640
  interface CustomerAuthOptions {
640
641
  /**
641
- * Automatically persist token in localStorage.
642
- * - `true`: uses default key `'customer-token'`
642
+ * Persist token in localStorage. Defaults to `true`.
643
+ * - `true` (default): uses key `'customer-token'`
643
644
  * - `string`: uses the given string as localStorage key
645
+ * - `false`: disables persistence (token/onTokenChange used instead)
644
646
  *
645
647
  * Handles SSR safely (no-op on server).
646
- * When set, `token` and `onTokenChange` are ignored.
648
+ * When enabled, `token` and `onTokenChange` are ignored.
647
649
  */
648
650
  persist?: boolean | string;
649
651
  /** Initial token (e.g. from SSR cookie) */
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-BjvBwB8Z.js';
2
- export { n as ApiUsage, az as ApiUsageSelect, A as Audience, av as AudiencesSelect, bE as Auth, p as BillingHistory, aB as BillingHistorySelect, D as Brand, B as BrandLogo, aL as BrandLogosSelect, aK as BrandsSelect, b1 as CartItemsSelect, b0 as CartsSelect, g as CodeBlock, bD as CollectionsWidget, d as Config, J as Customer, Q as CustomerAddress, aZ as CustomerAddressesSelect, e as CustomerAuthOperations, K as CustomerGroup, N as CustomerGroupImage, a$ as CustomerGroupImagesSelect, a_ as CustomerGroupsSelect, aY as CustomersSelect, _ as Discount, b2 as DiscountsSelect, a4 as Document, b9 as DocumentCategoriesSelect, a7 as DocumentCategory, a5 as DocumentImage, bb as DocumentImagesSelect, a6 as DocumentType, ba as DocumentTypesSelect, b8 as DocumentsSelect, k as EmailLog, aw as EmailLogsSelect, Y as ExchangeProduct, aW as ExchangeProductsSelect, aV as ExchangesSelect, j as FieldConfig, at as FieldConfigsSelect, ah as Flow, bo as FlowCategoriesSelect, ai as FlowCategory, am as FlowEdgeType, bn as FlowEdgeTypesSelect, aj as FlowImage, bp as FlowImagesSelect, al as FlowNodeType, bm as FlowNodeTypesSelect, ak as FlowTag, bq as FlowTagsSelect, bl as FlowsSelect, F as Form, an as FormSubmission, by as FormSubmissionsSelect, bx as FormsSelect, W as FulfillmentItem, aS as FulfillmentItemsSelect, aR as FulfillmentsSelect, bh as GalleriesSelect, ad as Gallery, bj as GalleryCategoriesSelect, ae as GalleryCategory, af as GalleryImage, bi as GalleryImagesSelect, ag as GalleryTag, bk as GalleryTagsSelect, I as IframeBlock, L as LiveStream, s as LiveStreamImage, bw as LiveStreamImagesSelect, bv as LiveStreamsSelect, M as Media, au as MediaSelect, ac as Music, bf as MusicsSelect, aO as OrderProductsSelect, Z as OrderStatusLog, aQ as OrderStatusLogsSelect, aN as OrdersSelect, ao as PayloadKv, bz as PayloadKvSelect, ap as PayloadLockedDocument, bA as PayloadLockedDocumentsSelect, ar as PayloadMigration, bC as PayloadMigrationsSelect, aq as PayloadPreference, bB as PayloadPreferencesSelect, f as PlayerBlock, a8 as Playlist, bd as PlaylistCategoriesSelect, a9 as PlaylistCategory, aa as PlaylistImage, bg as PlaylistImagesSelect, ab as PlaylistTag, be as PlaylistTagsSelect, bc as PlaylistsSelect, $ as Post, a0 as PostAuthor, b4 as PostAuthorsSelect, b5 as PostCategoriesSelect, a2 as PostCategory, a1 as PostImage, b7 as PostImagesSelect, a3 as PostTag, b6 as PostTagsSelect, b3 as PostsSelect, aH as ProductCategoriesSelect, y as ProductCategory, H as ProductCollection, aJ as ProductCollectionsSelect, r as ProductImage, aM as ProductImagesSelect, x as ProductOption, aG as ProductOptionsSelect, z as ProductTag, aI as ProductTagsSelect, w as ProductVariant, aF as ProductVariantsSelect, aE as ProductsSelect, X as ReturnProduct, aU as ReturnProductsSelect, aT as ReturnsSelect, aX as ShippingPoliciesSelect, G as ShippingPolicy, o as Subscription, aA as SubscriptionsSelect, S as SupportedTimezones, i as Tenant, q as TenantLogo, aC as TenantLogosSelect, ay as TenantMetadataSelect, l as TenantMetadatum, m as TenantOgImage, aD as TenantOgImagesSelect, ax as TenantsSelect, aP as TransactionsSelect, h as User, U as UserAuthOperations, as as UsersSelect, V as Video, bs as VideoCategoriesSelect, u as VideoCategory, t as VideoImage, bu as VideoImagesSelect, v as VideoTag, bt as VideoTagsSelect, br as VideosSelect } from './payload-types-BjvBwB8Z.js';
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-ggU6BNuH.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-ggU6BNuH.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-_LdLdjGa.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-_LdLdjGa.js';
6
+ import { P as PublicCollection, C as CollectionType } from './webhook-B54a-HGd.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-B54a-HGd.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';
@@ -99,12 +99,13 @@ interface ClientBrowserConfig {
99
99
  */
100
100
  customer?: {
101
101
  /**
102
- * Automatically persist token in localStorage.
103
- * - `true`: uses default key `'customer-token'`
102
+ * Persist token in localStorage. Defaults to `true`.
103
+ * - `true` (default): uses key `'customer-token'`
104
104
  * - `string`: uses the given string as localStorage key
105
+ * - `false`: disables persistence (token/onTokenChange used instead)
105
106
  *
106
107
  * Handles SSR safely (no-op on server).
107
- * When set, `token` and `onTokenChange` are ignored.
108
+ * When enabled, `token` and `onTokenChange` are ignored.
108
109
  */
109
110
  persist?: boolean | string;
110
111
  /** Initial token (e.g. from SSR cookie) */
@@ -638,12 +639,13 @@ interface UpdateProfileData {
638
639
  }
639
640
  interface CustomerAuthOptions {
640
641
  /**
641
- * Automatically persist token in localStorage.
642
- * - `true`: uses default key `'customer-token'`
642
+ * Persist token in localStorage. Defaults to `true`.
643
+ * - `true` (default): uses key `'customer-token'`
643
644
  * - `string`: uses the given string as localStorage key
645
+ * - `false`: disables persistence (token/onTokenChange used instead)
644
646
  *
645
647
  * Handles SSR safely (no-op on server).
646
- * When set, `token` and `onTokenChange` are ignored.
648
+ * When enabled, `token` and `onTokenChange` are ignored.
647
649
  */
648
650
  persist?: boolean | string;
649
651
  /** Initial token (e.g. from SSR cookie) */