@01.software/sdk 0.5.8 → 0.5.9

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,13 +1,13 @@
1
- import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, c as Cart, d as CartItem, P as Product } from './payload-types-CyaSGIFI.cjs';
2
- export { o as ApiUsage, ax as ApiUsageSelect, A as Audience, at as AudiencesSelect, by as Auth, q as BillingHistory, az as BillingHistorySelect, y as Brand, B as BrandLogo, aI as BrandLogosSelect, aH as BrandsSelect, aY as CartItemsSelect, aX as CartsSelect, g as CodeBlock, bx as CollectionsWidget, C as Config, G as Customer, J as CustomerAddress, aV as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, aW as CustomerGroupsSelect, aU as CustomersSelect, W as Discount, aZ as DiscountsSelect, $ as Document, b3 as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, b4 as DocumentTypesSelect, b2 as DocumentsSelect, m as EmailLog, au as EmailLogsSelect, N as ExchangeProduct, aS as ExchangeProductsSelect, aR as ExchangesSelect, j as FieldConfig, aq as FieldConfigsSelect, af as Flow, bl as FlowCategoriesSelect, ag as FlowCategory, aj as FlowEdgeType, bk as FlowEdgeTypesSelect, ai as FlowNodeType, bj as FlowNodeTypesSelect, ah as FlowTag, bm as FlowTagsSelect, bi as FlowsSelect, F as Form, ak as FormSubmission, bs as FormSubmissionsSelect, br as FormsSelect, K as FulfillmentItem, aO as FulfillmentItemsSelect, aN as FulfillmentsSelect, bb as GalleriesSelect, a8 as Gallery, bc as GalleryCategoriesSelect, a9 as GalleryCategory, ab as GalleryItem, be as GalleryItemsSelect, aa as GalleryTag, bd as GalleryTagsSelect, I as IframeBlock, k as Image, ar as ImagesSelect, ac as Link, bg as LinkCategoriesSelect, ad as LinkCategory, ae as LinkTag, bh as LinkTagsSelect, bf as LinksSelect, L as LiveStream, bq as LiveStreamsSelect, a5 as Music, b9 as MusicCategoriesSelect, a6 as MusicCategory, a7 as MusicTag, ba as MusicTagsSelect, b8 as MusicsSelect, aK as OrderProductsSelect, Q as OrderStatusLog, aM as OrderStatusLogsSelect, aJ as OrdersSelect, al as PayloadKv, bt as PayloadKvSelect, am as PayloadLockedDocument, bu as PayloadLockedDocumentsSelect, ao as PayloadMigration, bw as PayloadMigrationsSelect, an as PayloadPreference, bv as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, b6 as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, b7 as PlaylistTagsSelect, b5 as PlaylistsSelect, X as Post, Y as PostAuthor, a$ as PostAuthorsSelect, b0 as PostCategoriesSelect, Z as PostCategory, _ as PostTag, b1 as PostTagsSelect, a_ as PostsSelect, aE as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aG as ProductCollectionsSelect, v as ProductOption, aD as ProductOptionsSelect, x as ProductTag, aF as ProductTagsSelect, u as ProductVariant, aC as ProductVariantsSelect, aB as ProductsSelect, M as ReturnProduct, aQ as ReturnProductsSelect, aP as ReturnsSelect, aT as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, ay as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, as as SystemMediaSelect, i as Tenant, r as TenantLogo, aA as TenantLogosSelect, aw as TenantMetadataSelect, n as TenantMetadatum, av as TenantsSelect, aL as TransactionsSelect, h as User, U as UserAuthOperations, ap as UsersSelect, V as Video, bo as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bp as VideoTagsSelect, bn as VideosSelect } from './payload-types-CyaSGIFI.cjs';
1
+ import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, c as Cart, d as CartItem, P as Product } from './payload-types-D70l0uF9.cjs';
2
+ export { o as ApiUsage, ax as ApiUsageSelect, A as Audience, at as AudiencesSelect, by as Auth, q as BillingHistory, az as BillingHistorySelect, y as Brand, B as BrandLogo, aI as BrandLogosSelect, aH as BrandsSelect, aY as CartItemsSelect, aX as CartsSelect, g as CodeBlock, bx as CollectionsWidget, C as Config, G as Customer, J as CustomerAddress, aV as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, aW as CustomerGroupsSelect, aU as CustomersSelect, W as Discount, aZ as DiscountsSelect, $ as Document, b3 as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, b4 as DocumentTypesSelect, b2 as DocumentsSelect, m as EmailLog, au as EmailLogsSelect, N as ExchangeProduct, aS as ExchangeProductsSelect, aR as ExchangesSelect, j as FieldConfig, aq as FieldConfigsSelect, af as Flow, bl as FlowCategoriesSelect, ag as FlowCategory, aj as FlowEdgeType, bk as FlowEdgeTypesSelect, ai as FlowNodeType, bj as FlowNodeTypesSelect, ah as FlowTag, bm as FlowTagsSelect, bi as FlowsSelect, F as Form, ak as FormSubmission, bs as FormSubmissionsSelect, br as FormsSelect, K as FulfillmentItem, aO as FulfillmentItemsSelect, aN as FulfillmentsSelect, bb as GalleriesSelect, a8 as Gallery, bc as GalleryCategoriesSelect, a9 as GalleryCategory, ab as GalleryItem, be as GalleryItemsSelect, aa as GalleryTag, bd as GalleryTagsSelect, I as IframeBlock, k as Image, ar as ImagesSelect, ac as Link, bg as LinkCategoriesSelect, ad as LinkCategory, ae as LinkTag, bh as LinkTagsSelect, bf as LinksSelect, L as LiveStream, bq as LiveStreamsSelect, a5 as Music, b9 as MusicCategoriesSelect, a6 as MusicCategory, a7 as MusicTag, ba as MusicTagsSelect, b8 as MusicsSelect, aK as OrderProductsSelect, Q as OrderStatusLog, aM as OrderStatusLogsSelect, aJ as OrdersSelect, al as PayloadKv, bt as PayloadKvSelect, am as PayloadLockedDocument, bu as PayloadLockedDocumentsSelect, ao as PayloadMigration, bw as PayloadMigrationsSelect, an as PayloadPreference, bv as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, b6 as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, b7 as PlaylistTagsSelect, b5 as PlaylistsSelect, X as Post, Y as PostAuthor, a$ as PostAuthorsSelect, b0 as PostCategoriesSelect, Z as PostCategory, _ as PostTag, b1 as PostTagsSelect, a_ as PostsSelect, aE as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aG as ProductCollectionsSelect, v as ProductOption, aD as ProductOptionsSelect, x as ProductTag, aF as ProductTagsSelect, u as ProductVariant, aC as ProductVariantsSelect, aB as ProductsSelect, M as ReturnProduct, aQ as ReturnProductsSelect, aP as ReturnsSelect, aT as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, ay as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, as as SystemMediaSelect, i as Tenant, r as TenantLogo, aA as TenantLogosSelect, aw as TenantMetadataSelect, n as TenantMetadatum, av as TenantsSelect, aL as TransactionsSelect, h as User, U as UserAuthOperations, ap as UsersSelect, V as Video, bo as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bp as VideoTagsSelect, bn as VideosSelect } from './payload-types-D70l0uF9.cjs';
3
3
  import { Sort, Where } from 'payload';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { QueryClient, InfiniteData } from '@tanstack/react-query';
6
6
  import { Metadata } from 'next';
7
- import { P as PublicCollection } from './const-MzPYopC7.cjs';
8
- export { a as COLLECTIONS, C as Collection } from './const-MzPYopC7.cjs';
9
- import { C as CollectionType } from './webhook-D78o4MiB.cjs';
10
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-D78o4MiB.cjs';
7
+ import { P as PublicCollection } from './const-rK0y0s2r.cjs';
8
+ export { a as COLLECTIONS, C as Collection } from './const-rK0y0s2r.cjs';
9
+ import { C as CollectionType } from './webhook-C_aXaaBz.cjs';
10
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-C_aXaaBz.cjs';
11
11
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-DupPIYx-.cjs';
12
12
  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';
13
13
  export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from './video-DbLL8yuc.cjs';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, c as Cart, d as CartItem, P as Product } from './payload-types-CyaSGIFI.js';
2
- export { o as ApiUsage, ax as ApiUsageSelect, A as Audience, at as AudiencesSelect, by as Auth, q as BillingHistory, az as BillingHistorySelect, y as Brand, B as BrandLogo, aI as BrandLogosSelect, aH as BrandsSelect, aY as CartItemsSelect, aX as CartsSelect, g as CodeBlock, bx as CollectionsWidget, C as Config, G as Customer, J as CustomerAddress, aV as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, aW as CustomerGroupsSelect, aU as CustomersSelect, W as Discount, aZ as DiscountsSelect, $ as Document, b3 as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, b4 as DocumentTypesSelect, b2 as DocumentsSelect, m as EmailLog, au as EmailLogsSelect, N as ExchangeProduct, aS as ExchangeProductsSelect, aR as ExchangesSelect, j as FieldConfig, aq as FieldConfigsSelect, af as Flow, bl as FlowCategoriesSelect, ag as FlowCategory, aj as FlowEdgeType, bk as FlowEdgeTypesSelect, ai as FlowNodeType, bj as FlowNodeTypesSelect, ah as FlowTag, bm as FlowTagsSelect, bi as FlowsSelect, F as Form, ak as FormSubmission, bs as FormSubmissionsSelect, br as FormsSelect, K as FulfillmentItem, aO as FulfillmentItemsSelect, aN as FulfillmentsSelect, bb as GalleriesSelect, a8 as Gallery, bc as GalleryCategoriesSelect, a9 as GalleryCategory, ab as GalleryItem, be as GalleryItemsSelect, aa as GalleryTag, bd as GalleryTagsSelect, I as IframeBlock, k as Image, ar as ImagesSelect, ac as Link, bg as LinkCategoriesSelect, ad as LinkCategory, ae as LinkTag, bh as LinkTagsSelect, bf as LinksSelect, L as LiveStream, bq as LiveStreamsSelect, a5 as Music, b9 as MusicCategoriesSelect, a6 as MusicCategory, a7 as MusicTag, ba as MusicTagsSelect, b8 as MusicsSelect, aK as OrderProductsSelect, Q as OrderStatusLog, aM as OrderStatusLogsSelect, aJ as OrdersSelect, al as PayloadKv, bt as PayloadKvSelect, am as PayloadLockedDocument, bu as PayloadLockedDocumentsSelect, ao as PayloadMigration, bw as PayloadMigrationsSelect, an as PayloadPreference, bv as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, b6 as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, b7 as PlaylistTagsSelect, b5 as PlaylistsSelect, X as Post, Y as PostAuthor, a$ as PostAuthorsSelect, b0 as PostCategoriesSelect, Z as PostCategory, _ as PostTag, b1 as PostTagsSelect, a_ as PostsSelect, aE as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aG as ProductCollectionsSelect, v as ProductOption, aD as ProductOptionsSelect, x as ProductTag, aF as ProductTagsSelect, u as ProductVariant, aC as ProductVariantsSelect, aB as ProductsSelect, M as ReturnProduct, aQ as ReturnProductsSelect, aP as ReturnsSelect, aT as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, ay as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, as as SystemMediaSelect, i as Tenant, r as TenantLogo, aA as TenantLogosSelect, aw as TenantMetadataSelect, n as TenantMetadatum, av as TenantsSelect, aL as TransactionsSelect, h as User, U as UserAuthOperations, ap as UsersSelect, V as Video, bo as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bp as VideoTagsSelect, bn as VideosSelect } from './payload-types-CyaSGIFI.js';
1
+ import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, E as Exchange, c as Cart, d as CartItem, P as Product } from './payload-types-D70l0uF9.js';
2
+ export { o as ApiUsage, ax as ApiUsageSelect, A as Audience, at as AudiencesSelect, by as Auth, q as BillingHistory, az as BillingHistorySelect, y as Brand, B as BrandLogo, aI as BrandLogosSelect, aH as BrandsSelect, aY as CartItemsSelect, aX as CartsSelect, g as CodeBlock, bx as CollectionsWidget, C as Config, G as Customer, J as CustomerAddress, aV as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, aW as CustomerGroupsSelect, aU as CustomersSelect, W as Discount, aZ as DiscountsSelect, $ as Document, b3 as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, b4 as DocumentTypesSelect, b2 as DocumentsSelect, m as EmailLog, au as EmailLogsSelect, N as ExchangeProduct, aS as ExchangeProductsSelect, aR as ExchangesSelect, j as FieldConfig, aq as FieldConfigsSelect, af as Flow, bl as FlowCategoriesSelect, ag as FlowCategory, aj as FlowEdgeType, bk as FlowEdgeTypesSelect, ai as FlowNodeType, bj as FlowNodeTypesSelect, ah as FlowTag, bm as FlowTagsSelect, bi as FlowsSelect, F as Form, ak as FormSubmission, bs as FormSubmissionsSelect, br as FormsSelect, K as FulfillmentItem, aO as FulfillmentItemsSelect, aN as FulfillmentsSelect, bb as GalleriesSelect, a8 as Gallery, bc as GalleryCategoriesSelect, a9 as GalleryCategory, ab as GalleryItem, be as GalleryItemsSelect, aa as GalleryTag, bd as GalleryTagsSelect, I as IframeBlock, k as Image, ar as ImagesSelect, ac as Link, bg as LinkCategoriesSelect, ad as LinkCategory, ae as LinkTag, bh as LinkTagsSelect, bf as LinksSelect, L as LiveStream, bq as LiveStreamsSelect, a5 as Music, b9 as MusicCategoriesSelect, a6 as MusicCategory, a7 as MusicTag, ba as MusicTagsSelect, b8 as MusicsSelect, aK as OrderProductsSelect, Q as OrderStatusLog, aM as OrderStatusLogsSelect, aJ as OrdersSelect, al as PayloadKv, bt as PayloadKvSelect, am as PayloadLockedDocument, bu as PayloadLockedDocumentsSelect, ao as PayloadMigration, bw as PayloadMigrationsSelect, an as PayloadPreference, bv as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, b6 as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, b7 as PlaylistTagsSelect, b5 as PlaylistsSelect, X as Post, Y as PostAuthor, a$ as PostAuthorsSelect, b0 as PostCategoriesSelect, Z as PostCategory, _ as PostTag, b1 as PostTagsSelect, a_ as PostsSelect, aE as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aG as ProductCollectionsSelect, v as ProductOption, aD as ProductOptionsSelect, x as ProductTag, aF as ProductTagsSelect, u as ProductVariant, aC as ProductVariantsSelect, aB as ProductsSelect, M as ReturnProduct, aQ as ReturnProductsSelect, aP as ReturnsSelect, aT as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, ay as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, as as SystemMediaSelect, i as Tenant, r as TenantLogo, aA as TenantLogosSelect, aw as TenantMetadataSelect, n as TenantMetadatum, av as TenantsSelect, aL as TransactionsSelect, h as User, U as UserAuthOperations, ap as UsersSelect, V as Video, bo as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bp as VideoTagsSelect, bn as VideosSelect } from './payload-types-D70l0uF9.js';
3
3
  import { Sort, Where } from 'payload';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { QueryClient, InfiniteData } from '@tanstack/react-query';
6
6
  import { Metadata } from 'next';
7
- import { P as PublicCollection } from './const-Dde6Z3er.js';
8
- export { a as COLLECTIONS, C as Collection } from './const-Dde6Z3er.js';
9
- import { C as CollectionType } from './webhook-cfGx5lXy.js';
10
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-cfGx5lXy.js';
7
+ import { P as PublicCollection } from './const-EdTT21dc.js';
8
+ export { a as COLLECTIONS, C as Collection } from './const-EdTT21dc.js';
9
+ import { C as CollectionType } from './webhook-BVU0Qfsu.js';
10
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-BVU0Qfsu.js';
11
11
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-DupPIYx-.js';
12
12
  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';
13
13
  export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from './video-DbLL8yuc.js';
package/dist/index.js CHANGED
@@ -458,6 +458,9 @@ async function httpFetch(url, options) {
458
458
  }
459
459
  throw error;
460
460
  }
461
+ if (error instanceof SDKError) {
462
+ throw error;
463
+ }
461
464
  const unknownError = createNetworkError(
462
465
  error instanceof Error ? error.message : "An unknown network error occurred.",
463
466
  void 0,