@01.software/sdk 0.6.0 → 0.7.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/README.md +2 -2
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/{const-DQZQAXex.d.cts → const-B8iE-mDN.d.cts} +2 -2
- package/dist/{const-Bk3-zigV.d.ts → const-Chw71pKS.d.ts} +2 -2
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DCVm1syH.d.cts → payload-types-Cp10MoF6.d.cts} +53 -48
- package/dist/{payload-types-DCVm1syH.d.ts → payload-types-Cp10MoF6.d.ts} +53 -48
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/{server-StNHlSjW.d.cts → server-DxhuG-_s.d.cts} +34 -34
- package/dist/{server-StNHlSjW.d.ts → server-DxhuG-_s.d.ts} +34 -34
- package/dist/ui/{flow → canvas}/server.cjs +20 -20
- package/dist/ui/canvas/server.cjs.map +1 -0
- package/dist/ui/canvas/server.d.cts +3 -0
- package/dist/ui/canvas/server.d.ts +3 -0
- package/dist/ui/{flow → canvas}/server.js +19 -19
- package/dist/ui/canvas/server.js.map +1 -0
- package/dist/ui/{flow.cjs → canvas.cjs} +63 -63
- package/dist/ui/canvas.cjs.map +1 -0
- package/dist/ui/{flow.d.cts → canvas.d.cts} +35 -35
- package/dist/ui/{flow.d.ts → canvas.d.ts} +35 -35
- package/dist/ui/{flow.js → canvas.js} +59 -59
- package/dist/ui/canvas.js.map +1 -0
- 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-BTtG_8f2.d.ts → webhook-BKhMTlFN.d.ts} +2 -2
- package/dist/{webhook-TDfT7aKA.d.cts → webhook-CiWsseVz.d.cts} +2 -2
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +13 -13
- package/dist/ui/flow/server.cjs.map +0 -1
- package/dist/ui/flow/server.d.cts +0 -3
- package/dist/ui/flow/server.d.ts +0 -3
- package/dist/ui/flow/server.js.map +0 -1
- package/dist/ui/flow.cjs.map +0 -1
- package/dist/ui/flow.js.map +0 -1
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-
|
|
2
|
-
export { o as ApiUsage, aF as ApiUsageSelect, A as Audience, aB as AudiencesSelect, bO as Auth, q as BillingHistory, aH as BillingHistorySelect, ap as Bookmark, bD as BookmarksSelect, y as Brand, B as BrandLogo, aQ as BrandLogosSelect, aP as BrandsSelect, b4 as CartItemsSelect, b3 as CartsSelect, g as CodeBlock, bN as CollectionsWidget, am as Comment, bA as CommentsSelect, ar as CommunityBan, bG as CommunityBansSelect, C as Config, G as Customer, J as CustomerAddress, b1 as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, b2 as CustomerGroupsSelect, b0 as CustomersSelect, W as Discount, b5 as DiscountsSelect, $ as Document, bb as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, bc as DocumentTypesSelect, ba as DocumentsSelect, m as EmailLog, aC as EmailLogsSelect, N as ExchangeProduct, a_ as ExchangeProductsSelect, aZ as ExchangesSelect, j as FieldConfig, ay as FieldConfigsSelect,
|
|
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-Cp10MoF6.cjs';
|
|
2
|
+
export { o as ApiUsage, aF as ApiUsageSelect, A as Audience, aB as AudiencesSelect, bO as Auth, q as BillingHistory, aH as BillingHistorySelect, ap as Bookmark, bD as BookmarksSelect, y as Brand, B as BrandLogo, aQ as BrandLogosSelect, aP as BrandsSelect, bt as CanvasCategoriesSelect, ag as CanvasCategory, aj as CanvasEdgeType, bs as CanvasEdgeTypesSelect, ai as CanvasNodeType, br as CanvasNodeTypesSelect, ah as CanvasTag, bu as CanvasTagsSelect, af as Canvase, bq as CanvasesSelect, b4 as CartItemsSelect, b3 as CartsSelect, g as CodeBlock, bN as CollectionsWidget, am as Comment, bA as CommentsSelect, ar as CommunityBan, bG as CommunityBansSelect, C as Config, G as Customer, J as CustomerAddress, b1 as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, b2 as CustomerGroupsSelect, b0 as CustomersSelect, W as Discount, b5 as DiscountsSelect, $ as Document, bb as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, bc as DocumentTypesSelect, ba as DocumentsSelect, m as EmailLog, aC as EmailLogsSelect, N as ExchangeProduct, a_ as ExchangeProductsSelect, aZ as ExchangesSelect, j as FieldConfig, ay as FieldConfigsSelect, F as Form, as as FormSubmission, bI as FormSubmissionsSelect, bH as FormsSelect, K as FulfillmentItem, aW as FulfillmentItemsSelect, aV as FulfillmentsSelect, bj as GalleriesSelect, a8 as Gallery, bk as GalleryCategoriesSelect, a9 as GalleryCategory, ab as GalleryItem, bm as GalleryItemsSelect, aa as GalleryTag, bl as GalleryTagsSelect, I as IframeBlock, k as Image, az as ImagesSelect, ac as Link, bo as LinkCategoriesSelect, ad as LinkCategory, ae as LinkTag, bp as LinkTagsSelect, bn as LinksSelect, L as LiveStream, by as LiveStreamsSelect, a5 as Music, bh as MusicCategoriesSelect, a6 as MusicCategory, a7 as MusicTag, bi as MusicTagsSelect, bg as MusicsSelect, aS as OrderProductsSelect, Q as OrderStatusLog, aU as OrderStatusLogsSelect, aR as OrdersSelect, at as PayloadKv, bJ as PayloadKvSelect, au as PayloadLockedDocument, bK as PayloadLockedDocumentsSelect, aw as PayloadMigration, bM as PayloadMigrationsSelect, av as PayloadPreference, bL as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, be as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, bf as PlaylistTagsSelect, bd as PlaylistsSelect, X as Post, Y as PostAuthor, b7 as PostAuthorsSelect, b8 as PostCategoriesSelect, Z as PostCategory, _ as PostTag, b9 as PostTagsSelect, b6 as PostsSelect, aM as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aO as ProductCollectionsSelect, v as ProductOption, aL as ProductOptionsSelect, x as ProductTag, aN as ProductTagsSelect, u as ProductVariant, aK as ProductVariantsSelect, aJ as ProductsSelect, an as Reaction, ao as ReactionType, bC as ReactionTypesSelect, bB as ReactionsSelect, aq as Report, bF as ReportsSelect, M as ReturnProduct, aY as ReturnProductsSelect, aX as ReturnsSelect, a$ as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, aG as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, aA as SystemMediaSelect, i as Tenant, r as TenantLogo, aI as TenantLogosSelect, aE as TenantMetadataSelect, n as TenantMetadatum, aD as TenantsSelect, ak as Thread, bE as ThreadCategoriesSelect, al as ThreadCategory, bz as ThreadsSelect, aT as TransactionsSelect, h as User, U as UserAuthOperations, ax as UsersSelect, V as Video, bw as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bx as VideoTagsSelect, bv as VideosSelect } from './payload-types-Cp10MoF6.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-
|
|
8
|
-
export { a as COLLECTIONS, C as Collection } from './const-
|
|
9
|
-
import { C as CollectionType } from './webhook-
|
|
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-
|
|
7
|
+
import { P as PublicCollection } from './const-B8iE-mDN.cjs';
|
|
8
|
+
export { a as COLLECTIONS, C as Collection } from './const-B8iE-mDN.cjs';
|
|
9
|
+
import { C as CollectionType } from './webhook-CiWsseVz.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-CiWsseVz.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';
|
|
@@ -505,13 +505,13 @@ declare class CollectionQueryBuilder<T extends PublicCollection> {
|
|
|
505
505
|
}>;
|
|
506
506
|
/**
|
|
507
507
|
* Find first matching document and return its Next.js Metadata.
|
|
508
|
-
* Applies depth: 1 (image populate) and limit: 1 automatically.
|
|
508
|
+
* Applies depth: 1 (SEO image populate) and limit: 1 automatically.
|
|
509
509
|
* @returns Metadata or null if no document matches
|
|
510
510
|
*/
|
|
511
511
|
findMetadata(options?: ApiQueryOptions, metadataOptions?: GenerateMetadataOptions): Promise<Metadata | null>;
|
|
512
512
|
/**
|
|
513
513
|
* Find document by ID and return its Next.js Metadata.
|
|
514
|
-
* Applies depth: 1 (image populate) automatically.
|
|
514
|
+
* Applies depth: 1 (SEO image populate) automatically.
|
|
515
515
|
* @returns Metadata (throws on 404)
|
|
516
516
|
*/
|
|
517
517
|
findMetadataById(id: string, metadataOptions?: GenerateMetadataOptions): Promise<Metadata>;
|
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-
|
|
2
|
-
export { o as ApiUsage, aF as ApiUsageSelect, A as Audience, aB as AudiencesSelect, bO as Auth, q as BillingHistory, aH as BillingHistorySelect, ap as Bookmark, bD as BookmarksSelect, y as Brand, B as BrandLogo, aQ as BrandLogosSelect, aP as BrandsSelect, b4 as CartItemsSelect, b3 as CartsSelect, g as CodeBlock, bN as CollectionsWidget, am as Comment, bA as CommentsSelect, ar as CommunityBan, bG as CommunityBansSelect, C as Config, G as Customer, J as CustomerAddress, b1 as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, b2 as CustomerGroupsSelect, b0 as CustomersSelect, W as Discount, b5 as DiscountsSelect, $ as Document, bb as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, bc as DocumentTypesSelect, ba as DocumentsSelect, m as EmailLog, aC as EmailLogsSelect, N as ExchangeProduct, a_ as ExchangeProductsSelect, aZ as ExchangesSelect, j as FieldConfig, ay as FieldConfigsSelect,
|
|
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-Cp10MoF6.js';
|
|
2
|
+
export { o as ApiUsage, aF as ApiUsageSelect, A as Audience, aB as AudiencesSelect, bO as Auth, q as BillingHistory, aH as BillingHistorySelect, ap as Bookmark, bD as BookmarksSelect, y as Brand, B as BrandLogo, aQ as BrandLogosSelect, aP as BrandsSelect, bt as CanvasCategoriesSelect, ag as CanvasCategory, aj as CanvasEdgeType, bs as CanvasEdgeTypesSelect, ai as CanvasNodeType, br as CanvasNodeTypesSelect, ah as CanvasTag, bu as CanvasTagsSelect, af as Canvase, bq as CanvasesSelect, b4 as CartItemsSelect, b3 as CartsSelect, g as CodeBlock, bN as CollectionsWidget, am as Comment, bA as CommentsSelect, ar as CommunityBan, bG as CommunityBansSelect, C as Config, G as Customer, J as CustomerAddress, b1 as CustomerAddressesSelect, e as CustomerAuthOperations, H as CustomerGroup, b2 as CustomerGroupsSelect, b0 as CustomersSelect, W as Discount, b5 as DiscountsSelect, $ as Document, bb as DocumentCategoriesSelect, a1 as DocumentCategory, a0 as DocumentType, bc as DocumentTypesSelect, ba as DocumentsSelect, m as EmailLog, aC as EmailLogsSelect, N as ExchangeProduct, a_ as ExchangeProductsSelect, aZ as ExchangesSelect, j as FieldConfig, ay as FieldConfigsSelect, F as Form, as as FormSubmission, bI as FormSubmissionsSelect, bH as FormsSelect, K as FulfillmentItem, aW as FulfillmentItemsSelect, aV as FulfillmentsSelect, bj as GalleriesSelect, a8 as Gallery, bk as GalleryCategoriesSelect, a9 as GalleryCategory, ab as GalleryItem, bm as GalleryItemsSelect, aa as GalleryTag, bl as GalleryTagsSelect, I as IframeBlock, k as Image, az as ImagesSelect, ac as Link, bo as LinkCategoriesSelect, ad as LinkCategory, ae as LinkTag, bp as LinkTagsSelect, bn as LinksSelect, L as LiveStream, by as LiveStreamsSelect, a5 as Music, bh as MusicCategoriesSelect, a6 as MusicCategory, a7 as MusicTag, bi as MusicTagsSelect, bg as MusicsSelect, aS as OrderProductsSelect, Q as OrderStatusLog, aU as OrderStatusLogsSelect, aR as OrdersSelect, at as PayloadKv, bJ as PayloadKvSelect, au as PayloadLockedDocument, bK as PayloadLockedDocumentsSelect, aw as PayloadMigration, bM as PayloadMigrationsSelect, av as PayloadPreference, bL as PayloadPreferencesSelect, f as PlayerBlock, a2 as Playlist, be as PlaylistCategoriesSelect, a3 as PlaylistCategory, a4 as PlaylistTag, bf as PlaylistTagsSelect, bd as PlaylistsSelect, X as Post, Y as PostAuthor, b7 as PostAuthorsSelect, b8 as PostCategoriesSelect, Z as PostCategory, _ as PostTag, b9 as PostTagsSelect, b6 as PostsSelect, aM as ProductCategoriesSelect, w as ProductCategory, D as ProductCollection, aO as ProductCollectionsSelect, v as ProductOption, aL as ProductOptionsSelect, x as ProductTag, aN as ProductTagsSelect, u as ProductVariant, aK as ProductVariantsSelect, aJ as ProductsSelect, an as Reaction, ao as ReactionType, bC as ReactionTypesSelect, bB as ReactionsSelect, aq as Report, bF as ReportsSelect, M as ReturnProduct, aY as ReturnProductsSelect, aX as ReturnsSelect, a$ as ShippingPoliciesSelect, z as ShippingPolicy, p as Subscription, aG as SubscriptionsSelect, S as SupportedTimezones, l as SystemMedia, aA as SystemMediaSelect, i as Tenant, r as TenantLogo, aI as TenantLogosSelect, aE as TenantMetadataSelect, n as TenantMetadatum, aD as TenantsSelect, ak as Thread, bE as ThreadCategoriesSelect, al as ThreadCategory, bz as ThreadsSelect, aT as TransactionsSelect, h as User, U as UserAuthOperations, ax as UsersSelect, V as Video, bw as VideoCategoriesSelect, s as VideoCategory, t as VideoTag, bx as VideoTagsSelect, bv as VideosSelect } from './payload-types-Cp10MoF6.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-
|
|
8
|
-
export { a as COLLECTIONS, C as Collection } from './const-
|
|
9
|
-
import { C as CollectionType } from './webhook-
|
|
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-
|
|
7
|
+
import { P as PublicCollection } from './const-Chw71pKS.js';
|
|
8
|
+
export { a as COLLECTIONS, C as Collection } from './const-Chw71pKS.js';
|
|
9
|
+
import { C as CollectionType } from './webhook-BKhMTlFN.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-BKhMTlFN.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';
|
|
@@ -505,13 +505,13 @@ declare class CollectionQueryBuilder<T extends PublicCollection> {
|
|
|
505
505
|
}>;
|
|
506
506
|
/**
|
|
507
507
|
* Find first matching document and return its Next.js Metadata.
|
|
508
|
-
* Applies depth: 1 (image populate) and limit: 1 automatically.
|
|
508
|
+
* Applies depth: 1 (SEO image populate) and limit: 1 automatically.
|
|
509
509
|
* @returns Metadata or null if no document matches
|
|
510
510
|
*/
|
|
511
511
|
findMetadata(options?: ApiQueryOptions, metadataOptions?: GenerateMetadataOptions): Promise<Metadata | null>;
|
|
512
512
|
/**
|
|
513
513
|
* Find document by ID and return its Next.js Metadata.
|
|
514
|
-
* Applies depth: 1 (image populate) automatically.
|
|
514
|
+
* Applies depth: 1 (SEO image populate) automatically.
|
|
515
515
|
* @returns Metadata (throws on 404)
|
|
516
516
|
*/
|
|
517
517
|
findMetadataById(id: string, metadataOptions?: GenerateMetadataOptions): Promise<Metadata>;
|
package/dist/index.js
CHANGED
|
@@ -740,7 +740,7 @@ var CollectionQueryBuilder = class {
|
|
|
740
740
|
async find(options) {
|
|
741
741
|
return this.api.requestFind(
|
|
742
742
|
`/api/${String(this.collection)}`,
|
|
743
|
-
|
|
743
|
+
options
|
|
744
744
|
);
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
@@ -751,7 +751,7 @@ var CollectionQueryBuilder = class {
|
|
|
751
751
|
async findById(id, options) {
|
|
752
752
|
return this.api.requestFindById(
|
|
753
753
|
`/api/${String(this.collection)}/${String(id)}`,
|
|
754
|
-
|
|
754
|
+
options
|
|
755
755
|
);
|
|
756
756
|
}
|
|
757
757
|
/**
|
|
@@ -801,7 +801,7 @@ var CollectionQueryBuilder = class {
|
|
|
801
801
|
}
|
|
802
802
|
/**
|
|
803
803
|
* Find first matching document and return its Next.js Metadata.
|
|
804
|
-
* Applies depth: 1 (image populate) and limit: 1 automatically.
|
|
804
|
+
* Applies depth: 1 (SEO image populate) and limit: 1 automatically.
|
|
805
805
|
* @returns Metadata or null if no document matches
|
|
806
806
|
*/
|
|
807
807
|
async findMetadata(options, metadataOptions) {
|
|
@@ -815,7 +815,7 @@ var CollectionQueryBuilder = class {
|
|
|
815
815
|
}
|
|
816
816
|
/**
|
|
817
817
|
* Find document by ID and return its Next.js Metadata.
|
|
818
|
-
* Applies depth: 1 (image populate) automatically.
|
|
818
|
+
* Applies depth: 1 (SEO image populate) automatically.
|
|
819
819
|
* @returns Metadata (throws on 404)
|
|
820
820
|
*/
|
|
821
821
|
async findMetadataById(id, metadataOptions) {
|
|
@@ -1170,11 +1170,11 @@ var COLLECTIONS = [
|
|
|
1170
1170
|
"links",
|
|
1171
1171
|
"link-categories",
|
|
1172
1172
|
"link-tags",
|
|
1173
|
-
"
|
|
1174
|
-
"
|
|
1175
|
-
"
|
|
1176
|
-
"
|
|
1177
|
-
"
|
|
1173
|
+
"canvases",
|
|
1174
|
+
"canvas-node-types",
|
|
1175
|
+
"canvas-edge-types",
|
|
1176
|
+
"canvas-categories",
|
|
1177
|
+
"canvas-tags",
|
|
1178
1178
|
"videos",
|
|
1179
1179
|
"video-categories",
|
|
1180
1180
|
"video-tags",
|