@01.software/sdk 0.5.6 → 0.5.8
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/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/{const-Blyfn0_b.d.ts → const-Dde6Z3er.d.ts} +2 -2
- package/dist/{const-DbDP4kYA.d.cts → const-MzPYopC7.d.cts} +2 -2
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-B98DjTLi.d.cts → payload-types-CyaSGIFI.d.cts} +170 -3
- package/dist/{payload-types-B98DjTLi.d.ts → payload-types-CyaSGIFI.d.ts} +170 -3
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/ui/flow.cjs +7 -2
- package/dist/ui/flow.cjs.map +1 -1
- package/dist/ui/flow.d.cts +4 -0
- package/dist/ui/flow.d.ts +4 -0
- package/dist/ui/flow.js +7 -2
- package/dist/ui/flow.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/image.cjs +3 -2
- package/dist/ui/image.cjs.map +1 -1
- package/dist/ui/image.d.cts +3 -1
- package/dist/ui/image.d.ts +3 -1
- package/dist/ui/image.js +3 -2
- package/dist/ui/image.js.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/{webhook-D8HqaKUG.d.cts → webhook-D78o4MiB.d.cts} +2 -2
- package/dist/{webhook-DdVG08Bs.d.ts → webhook-cfGx5lXy.d.ts} +2 -2
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +1 -1
|
@@ -75,6 +75,9 @@ interface Config {
|
|
|
75
75
|
'gallery-categories': GalleryCategory;
|
|
76
76
|
'gallery-tags': GalleryTag;
|
|
77
77
|
'gallery-items': GalleryItem;
|
|
78
|
+
links: Link;
|
|
79
|
+
'link-categories': LinkCategory;
|
|
80
|
+
'link-tags': LinkTag;
|
|
78
81
|
flows: Flow;
|
|
79
82
|
'flow-node-types': FlowNodeType;
|
|
80
83
|
'flow-edge-types': FlowEdgeType;
|
|
@@ -194,6 +197,9 @@ interface Config {
|
|
|
194
197
|
'gallery-categories': GalleryCategoriesSelect<false> | GalleryCategoriesSelect<true>;
|
|
195
198
|
'gallery-tags': GalleryTagsSelect<false> | GalleryTagsSelect<true>;
|
|
196
199
|
'gallery-items': GalleryItemsSelect<false> | GalleryItemsSelect<true>;
|
|
200
|
+
links: LinksSelect<false> | LinksSelect<true>;
|
|
201
|
+
'link-categories': LinkCategoriesSelect<false> | LinkCategoriesSelect<true>;
|
|
202
|
+
'link-tags': LinkTagsSelect<false> | LinkTagsSelect<true>;
|
|
197
203
|
flows: FlowsSelect<false> | FlowsSelect<true>;
|
|
198
204
|
'flow-node-types': FlowNodeTypesSelect<false> | FlowNodeTypesSelect<true>;
|
|
199
205
|
'flow-edge-types': FlowEdgeTypesSelect<false> | FlowEdgeTypesSelect<true>;
|
|
@@ -345,7 +351,7 @@ interface Tenant {
|
|
|
345
351
|
*/
|
|
346
352
|
owner: string | User;
|
|
347
353
|
plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
|
|
348
|
-
features?: ('ecommerce' | 'playlists' | 'galleries' | 'forms' | 'posts' | 'documents' | 'flows' | 'videos' | 'live-streaming')[] | null;
|
|
354
|
+
features?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'flows' | 'videos' | 'live-streaming')[] | null;
|
|
349
355
|
/**
|
|
350
356
|
* Require email verification on customer registration. Verification token is delivered via webhook (operation: verification). You must configure a webhook URL first.
|
|
351
357
|
*/
|
|
@@ -404,7 +410,7 @@ interface Tenant {
|
|
|
404
410
|
interface FieldConfig {
|
|
405
411
|
id: string;
|
|
406
412
|
tenant?: (string | null) | Tenant;
|
|
407
|
-
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
413
|
+
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
408
414
|
isHidden?: boolean | null;
|
|
409
415
|
hiddenFields?: {
|
|
410
416
|
[k: string]: unknown;
|
|
@@ -1188,6 +1194,9 @@ interface Video {
|
|
|
1188
1194
|
tenant?: (string | null) | Tenant;
|
|
1189
1195
|
title: string;
|
|
1190
1196
|
filename?: string | null;
|
|
1197
|
+
/**
|
|
1198
|
+
* Short summary for listing/cards
|
|
1199
|
+
*/
|
|
1191
1200
|
description?: string | null;
|
|
1192
1201
|
content?: {
|
|
1193
1202
|
root: {
|
|
@@ -1271,6 +1280,9 @@ interface LiveStream {
|
|
|
1271
1280
|
id: string;
|
|
1272
1281
|
tenant?: (string | null) | Tenant;
|
|
1273
1282
|
title: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* Short summary for listing/cards
|
|
1285
|
+
*/
|
|
1274
1286
|
description?: string | null;
|
|
1275
1287
|
/**
|
|
1276
1288
|
* Scheduled start time
|
|
@@ -2378,6 +2390,7 @@ interface Post {
|
|
|
2378
2390
|
thumbnail?: (string | null) | Image;
|
|
2379
2391
|
images?: (string | Image)[] | null;
|
|
2380
2392
|
publishedAt?: string | null;
|
|
2393
|
+
customer?: (string | null) | Customer;
|
|
2381
2394
|
isFeatured?: boolean | null;
|
|
2382
2395
|
/**
|
|
2383
2396
|
* Read time (minutes)
|
|
@@ -3020,6 +3033,91 @@ interface GalleryItem {
|
|
|
3020
3033
|
createdAt: string;
|
|
3021
3034
|
deletedAt?: string | null;
|
|
3022
3035
|
}
|
|
3036
|
+
/**
|
|
3037
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3038
|
+
* via the `definition` "links".
|
|
3039
|
+
*/
|
|
3040
|
+
interface Link {
|
|
3041
|
+
id: string;
|
|
3042
|
+
_order?: string | null;
|
|
3043
|
+
tenant?: (string | null) | Tenant;
|
|
3044
|
+
title: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* Link URL (internal or external)
|
|
3047
|
+
*/
|
|
3048
|
+
url: string;
|
|
3049
|
+
/**
|
|
3050
|
+
* Short summary for listing/cards
|
|
3051
|
+
*/
|
|
3052
|
+
description?: string | null;
|
|
3053
|
+
categories?: (string | LinkCategory)[] | null;
|
|
3054
|
+
tags?: (string | LinkTag)[] | null;
|
|
3055
|
+
/**
|
|
3056
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
3057
|
+
*/
|
|
3058
|
+
generateSlug?: boolean | null;
|
|
3059
|
+
slug?: string | null;
|
|
3060
|
+
type?: ('external' | 'social' | 'internal') | null;
|
|
3061
|
+
thumbnail?: (string | null) | Image;
|
|
3062
|
+
status: 'draft' | 'published' | 'archived';
|
|
3063
|
+
isFeatured?: boolean | null;
|
|
3064
|
+
metadata?: {
|
|
3065
|
+
[k: string]: unknown;
|
|
3066
|
+
} | unknown[] | string | number | boolean | null;
|
|
3067
|
+
updatedAt: string;
|
|
3068
|
+
createdAt: string;
|
|
3069
|
+
deletedAt?: string | null;
|
|
3070
|
+
}
|
|
3071
|
+
/**
|
|
3072
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3073
|
+
* via the `definition` "link-categories".
|
|
3074
|
+
*/
|
|
3075
|
+
interface LinkCategory {
|
|
3076
|
+
id: string;
|
|
3077
|
+
_order?: string | null;
|
|
3078
|
+
tenant?: (string | null) | Tenant;
|
|
3079
|
+
title: string;
|
|
3080
|
+
/**
|
|
3081
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
3082
|
+
*/
|
|
3083
|
+
generateSlug?: boolean | null;
|
|
3084
|
+
slug?: string | null;
|
|
3085
|
+
/**
|
|
3086
|
+
* Short summary for listing/cards
|
|
3087
|
+
*/
|
|
3088
|
+
description?: string | null;
|
|
3089
|
+
image?: (string | null) | Image;
|
|
3090
|
+
parent?: (string | null) | LinkCategory;
|
|
3091
|
+
color?: string | null;
|
|
3092
|
+
updatedAt: string;
|
|
3093
|
+
createdAt: string;
|
|
3094
|
+
deletedAt?: string | null;
|
|
3095
|
+
}
|
|
3096
|
+
/**
|
|
3097
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3098
|
+
* via the `definition` "link-tags".
|
|
3099
|
+
*/
|
|
3100
|
+
interface LinkTag {
|
|
3101
|
+
id: string;
|
|
3102
|
+
_order?: string | null;
|
|
3103
|
+
tenant?: (string | null) | Tenant;
|
|
3104
|
+
title: string;
|
|
3105
|
+
/**
|
|
3106
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
3107
|
+
*/
|
|
3108
|
+
generateSlug?: boolean | null;
|
|
3109
|
+
slug?: string | null;
|
|
3110
|
+
/**
|
|
3111
|
+
* Short summary for listing/cards
|
|
3112
|
+
*/
|
|
3113
|
+
description?: string | null;
|
|
3114
|
+
image?: (string | null) | Image;
|
|
3115
|
+
parent?: (string | null) | LinkTag;
|
|
3116
|
+
color?: string | null;
|
|
3117
|
+
updatedAt: string;
|
|
3118
|
+
createdAt: string;
|
|
3119
|
+
deletedAt?: string | null;
|
|
3120
|
+
}
|
|
3023
3121
|
/**
|
|
3024
3122
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3025
3123
|
* via the `definition` "flows".
|
|
@@ -3617,6 +3715,15 @@ interface PayloadLockedDocument {
|
|
|
3617
3715
|
} | null) | ({
|
|
3618
3716
|
relationTo: 'gallery-items';
|
|
3619
3717
|
value: string | GalleryItem;
|
|
3718
|
+
} | null) | ({
|
|
3719
|
+
relationTo: 'links';
|
|
3720
|
+
value: string | Link;
|
|
3721
|
+
} | null) | ({
|
|
3722
|
+
relationTo: 'link-categories';
|
|
3723
|
+
value: string | LinkCategory;
|
|
3724
|
+
} | null) | ({
|
|
3725
|
+
relationTo: 'link-tags';
|
|
3726
|
+
value: string | LinkTag;
|
|
3620
3727
|
} | null) | ({
|
|
3621
3728
|
relationTo: 'flows';
|
|
3622
3729
|
value: string | Flow;
|
|
@@ -4814,6 +4921,7 @@ interface PostsSelect<T extends boolean = true> {
|
|
|
4814
4921
|
thumbnail?: T;
|
|
4815
4922
|
images?: T;
|
|
4816
4923
|
publishedAt?: T;
|
|
4924
|
+
customer?: T;
|
|
4817
4925
|
isFeatured?: T;
|
|
4818
4926
|
readTime?: T;
|
|
4819
4927
|
metadata?: T;
|
|
@@ -5186,6 +5294,65 @@ interface GalleryItemsSelect<T extends boolean = true> {
|
|
|
5186
5294
|
createdAt?: T;
|
|
5187
5295
|
deletedAt?: T;
|
|
5188
5296
|
}
|
|
5297
|
+
/**
|
|
5298
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5299
|
+
* via the `definition` "links_select".
|
|
5300
|
+
*/
|
|
5301
|
+
interface LinksSelect<T extends boolean = true> {
|
|
5302
|
+
_order?: T;
|
|
5303
|
+
tenant?: T;
|
|
5304
|
+
title?: T;
|
|
5305
|
+
url?: T;
|
|
5306
|
+
description?: T;
|
|
5307
|
+
categories?: T;
|
|
5308
|
+
tags?: T;
|
|
5309
|
+
generateSlug?: T;
|
|
5310
|
+
slug?: T;
|
|
5311
|
+
type?: T;
|
|
5312
|
+
thumbnail?: T;
|
|
5313
|
+
status?: T;
|
|
5314
|
+
isFeatured?: T;
|
|
5315
|
+
metadata?: T;
|
|
5316
|
+
updatedAt?: T;
|
|
5317
|
+
createdAt?: T;
|
|
5318
|
+
deletedAt?: T;
|
|
5319
|
+
}
|
|
5320
|
+
/**
|
|
5321
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5322
|
+
* via the `definition` "link-categories_select".
|
|
5323
|
+
*/
|
|
5324
|
+
interface LinkCategoriesSelect<T extends boolean = true> {
|
|
5325
|
+
_order?: T;
|
|
5326
|
+
tenant?: T;
|
|
5327
|
+
title?: T;
|
|
5328
|
+
generateSlug?: T;
|
|
5329
|
+
slug?: T;
|
|
5330
|
+
description?: T;
|
|
5331
|
+
image?: T;
|
|
5332
|
+
parent?: T;
|
|
5333
|
+
color?: T;
|
|
5334
|
+
updatedAt?: T;
|
|
5335
|
+
createdAt?: T;
|
|
5336
|
+
deletedAt?: T;
|
|
5337
|
+
}
|
|
5338
|
+
/**
|
|
5339
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5340
|
+
* via the `definition` "link-tags_select".
|
|
5341
|
+
*/
|
|
5342
|
+
interface LinkTagsSelect<T extends boolean = true> {
|
|
5343
|
+
_order?: T;
|
|
5344
|
+
tenant?: T;
|
|
5345
|
+
title?: T;
|
|
5346
|
+
generateSlug?: T;
|
|
5347
|
+
slug?: T;
|
|
5348
|
+
description?: T;
|
|
5349
|
+
image?: T;
|
|
5350
|
+
parent?: T;
|
|
5351
|
+
color?: T;
|
|
5352
|
+
updatedAt?: T;
|
|
5353
|
+
createdAt?: T;
|
|
5354
|
+
deletedAt?: T;
|
|
5355
|
+
}
|
|
5189
5356
|
/**
|
|
5190
5357
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
5191
5358
|
* via the `definition` "flows_select".
|
|
@@ -5637,4 +5804,4 @@ declare module 'payload' {
|
|
|
5637
5804
|
}
|
|
5638
5805
|
}
|
|
5639
5806
|
|
|
5640
|
-
export type { Document as $, Audience as A, BrandLogo as B, Config as C, ProductCollection as D, Exchange as E, Form as F, Customer as G, CustomerGroup as H, IframeBlock as I, CustomerAddress as J, FulfillmentItem as K, LiveStream as L, ReturnProduct as M, ExchangeProduct as N, Order as O, Product as P, OrderStatusLog as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, Discount as W, Post as X, PostAuthor as Y, PostCategory as Z, PostTag as _, OrderProduct as a,
|
|
5807
|
+
export type { Document as $, Audience as A, BrandLogo as B, Config as C, ProductCollection as D, Exchange as E, Form as F, Customer as G, CustomerGroup as H, IframeBlock as I, CustomerAddress as J, FulfillmentItem as K, LiveStream as L, ReturnProduct as M, ExchangeProduct as N, Order as O, Product as P, OrderStatusLog as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, Discount as W, Post as X, PostAuthor as Y, PostCategory as Z, PostTag as _, OrderProduct as a, PostAuthorsSelect as a$, DocumentType as a0, DocumentCategory as a1, Playlist as a2, PlaylistCategory as a3, PlaylistTag as a4, Music as a5, MusicCategory as a6, MusicTag as a7, Gallery as a8, GalleryCategory as a9, TenantLogosSelect as aA, ProductsSelect as aB, ProductVariantsSelect as aC, ProductOptionsSelect as aD, ProductCategoriesSelect as aE, ProductTagsSelect as aF, ProductCollectionsSelect as aG, BrandsSelect as aH, BrandLogosSelect as aI, OrdersSelect as aJ, OrderProductsSelect as aK, TransactionsSelect as aL, OrderStatusLogsSelect as aM, FulfillmentsSelect as aN, FulfillmentItemsSelect as aO, ReturnsSelect as aP, ReturnProductsSelect as aQ, ExchangesSelect as aR, ExchangeProductsSelect as aS, ShippingPoliciesSelect as aT, CustomersSelect as aU, CustomerAddressesSelect as aV, CustomerGroupsSelect as aW, CartsSelect as aX, CartItemsSelect as aY, DiscountsSelect as aZ, PostsSelect as a_, GalleryTag as aa, GalleryItem as ab, Link as ac, LinkCategory as ad, LinkTag as ae, Flow as af, FlowCategory as ag, FlowTag as ah, FlowNodeType as ai, FlowEdgeType as aj, FormSubmission as ak, PayloadKv as al, PayloadLockedDocument as am, PayloadPreference as an, PayloadMigration as ao, UsersSelect as ap, FieldConfigsSelect as aq, ImagesSelect as ar, SystemMediaSelect as as, AudiencesSelect as at, EmailLogsSelect as au, TenantsSelect as av, TenantMetadataSelect as aw, ApiUsageSelect as ax, SubscriptionsSelect as ay, BillingHistorySelect as az, Fulfillment as b, PostCategoriesSelect as b0, PostTagsSelect as b1, DocumentsSelect as b2, DocumentCategoriesSelect as b3, DocumentTypesSelect as b4, PlaylistsSelect as b5, PlaylistCategoriesSelect as b6, PlaylistTagsSelect as b7, MusicsSelect as b8, MusicCategoriesSelect as b9, MusicTagsSelect as ba, GalleriesSelect as bb, GalleryCategoriesSelect as bc, GalleryTagsSelect as bd, GalleryItemsSelect as be, LinksSelect as bf, LinkCategoriesSelect as bg, LinkTagsSelect as bh, FlowsSelect as bi, FlowNodeTypesSelect as bj, FlowEdgeTypesSelect as bk, FlowCategoriesSelect as bl, FlowTagsSelect as bm, VideosSelect as bn, VideoCategoriesSelect as bo, VideoTagsSelect as bp, LiveStreamsSelect as bq, FormsSelect as br, FormSubmissionsSelect as bs, PayloadKvSelect as bt, PayloadLockedDocumentsSelect as bu, PayloadPreferencesSelect as bv, PayloadMigrationsSelect as bw, CollectionsWidget as bx, Auth as by, Cart as c, CartItem as d, CustomerAuthOperations as e, PlayerBlock as f, CodeBlock as g, User as h, Tenant as i, FieldConfig as j, Image as k, SystemMedia as l, EmailLog as m, TenantMetadatum as n, ApiUsage as o, Subscription as p, BillingHistory as q, TenantLogo as r, VideoCategory as s, VideoTag as t, ProductVariant as u, ProductOption as v, ProductCategory as w, ProductTag as x, Brand as y, ShippingPolicy as z };
|
|
@@ -75,6 +75,9 @@ interface Config {
|
|
|
75
75
|
'gallery-categories': GalleryCategory;
|
|
76
76
|
'gallery-tags': GalleryTag;
|
|
77
77
|
'gallery-items': GalleryItem;
|
|
78
|
+
links: Link;
|
|
79
|
+
'link-categories': LinkCategory;
|
|
80
|
+
'link-tags': LinkTag;
|
|
78
81
|
flows: Flow;
|
|
79
82
|
'flow-node-types': FlowNodeType;
|
|
80
83
|
'flow-edge-types': FlowEdgeType;
|
|
@@ -194,6 +197,9 @@ interface Config {
|
|
|
194
197
|
'gallery-categories': GalleryCategoriesSelect<false> | GalleryCategoriesSelect<true>;
|
|
195
198
|
'gallery-tags': GalleryTagsSelect<false> | GalleryTagsSelect<true>;
|
|
196
199
|
'gallery-items': GalleryItemsSelect<false> | GalleryItemsSelect<true>;
|
|
200
|
+
links: LinksSelect<false> | LinksSelect<true>;
|
|
201
|
+
'link-categories': LinkCategoriesSelect<false> | LinkCategoriesSelect<true>;
|
|
202
|
+
'link-tags': LinkTagsSelect<false> | LinkTagsSelect<true>;
|
|
197
203
|
flows: FlowsSelect<false> | FlowsSelect<true>;
|
|
198
204
|
'flow-node-types': FlowNodeTypesSelect<false> | FlowNodeTypesSelect<true>;
|
|
199
205
|
'flow-edge-types': FlowEdgeTypesSelect<false> | FlowEdgeTypesSelect<true>;
|
|
@@ -345,7 +351,7 @@ interface Tenant {
|
|
|
345
351
|
*/
|
|
346
352
|
owner: string | User;
|
|
347
353
|
plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
|
|
348
|
-
features?: ('ecommerce' | 'playlists' | 'galleries' | 'forms' | 'posts' | 'documents' | 'flows' | 'videos' | 'live-streaming')[] | null;
|
|
354
|
+
features?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'flows' | 'videos' | 'live-streaming')[] | null;
|
|
349
355
|
/**
|
|
350
356
|
* Require email verification on customer registration. Verification token is delivered via webhook (operation: verification). You must configure a webhook URL first.
|
|
351
357
|
*/
|
|
@@ -404,7 +410,7 @@ interface Tenant {
|
|
|
404
410
|
interface FieldConfig {
|
|
405
411
|
id: string;
|
|
406
412
|
tenant?: (string | null) | Tenant;
|
|
407
|
-
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
413
|
+
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
408
414
|
isHidden?: boolean | null;
|
|
409
415
|
hiddenFields?: {
|
|
410
416
|
[k: string]: unknown;
|
|
@@ -1188,6 +1194,9 @@ interface Video {
|
|
|
1188
1194
|
tenant?: (string | null) | Tenant;
|
|
1189
1195
|
title: string;
|
|
1190
1196
|
filename?: string | null;
|
|
1197
|
+
/**
|
|
1198
|
+
* Short summary for listing/cards
|
|
1199
|
+
*/
|
|
1191
1200
|
description?: string | null;
|
|
1192
1201
|
content?: {
|
|
1193
1202
|
root: {
|
|
@@ -1271,6 +1280,9 @@ interface LiveStream {
|
|
|
1271
1280
|
id: string;
|
|
1272
1281
|
tenant?: (string | null) | Tenant;
|
|
1273
1282
|
title: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* Short summary for listing/cards
|
|
1285
|
+
*/
|
|
1274
1286
|
description?: string | null;
|
|
1275
1287
|
/**
|
|
1276
1288
|
* Scheduled start time
|
|
@@ -2378,6 +2390,7 @@ interface Post {
|
|
|
2378
2390
|
thumbnail?: (string | null) | Image;
|
|
2379
2391
|
images?: (string | Image)[] | null;
|
|
2380
2392
|
publishedAt?: string | null;
|
|
2393
|
+
customer?: (string | null) | Customer;
|
|
2381
2394
|
isFeatured?: boolean | null;
|
|
2382
2395
|
/**
|
|
2383
2396
|
* Read time (minutes)
|
|
@@ -3020,6 +3033,91 @@ interface GalleryItem {
|
|
|
3020
3033
|
createdAt: string;
|
|
3021
3034
|
deletedAt?: string | null;
|
|
3022
3035
|
}
|
|
3036
|
+
/**
|
|
3037
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3038
|
+
* via the `definition` "links".
|
|
3039
|
+
*/
|
|
3040
|
+
interface Link {
|
|
3041
|
+
id: string;
|
|
3042
|
+
_order?: string | null;
|
|
3043
|
+
tenant?: (string | null) | Tenant;
|
|
3044
|
+
title: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* Link URL (internal or external)
|
|
3047
|
+
*/
|
|
3048
|
+
url: string;
|
|
3049
|
+
/**
|
|
3050
|
+
* Short summary for listing/cards
|
|
3051
|
+
*/
|
|
3052
|
+
description?: string | null;
|
|
3053
|
+
categories?: (string | LinkCategory)[] | null;
|
|
3054
|
+
tags?: (string | LinkTag)[] | null;
|
|
3055
|
+
/**
|
|
3056
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
3057
|
+
*/
|
|
3058
|
+
generateSlug?: boolean | null;
|
|
3059
|
+
slug?: string | null;
|
|
3060
|
+
type?: ('external' | 'social' | 'internal') | null;
|
|
3061
|
+
thumbnail?: (string | null) | Image;
|
|
3062
|
+
status: 'draft' | 'published' | 'archived';
|
|
3063
|
+
isFeatured?: boolean | null;
|
|
3064
|
+
metadata?: {
|
|
3065
|
+
[k: string]: unknown;
|
|
3066
|
+
} | unknown[] | string | number | boolean | null;
|
|
3067
|
+
updatedAt: string;
|
|
3068
|
+
createdAt: string;
|
|
3069
|
+
deletedAt?: string | null;
|
|
3070
|
+
}
|
|
3071
|
+
/**
|
|
3072
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3073
|
+
* via the `definition` "link-categories".
|
|
3074
|
+
*/
|
|
3075
|
+
interface LinkCategory {
|
|
3076
|
+
id: string;
|
|
3077
|
+
_order?: string | null;
|
|
3078
|
+
tenant?: (string | null) | Tenant;
|
|
3079
|
+
title: string;
|
|
3080
|
+
/**
|
|
3081
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
3082
|
+
*/
|
|
3083
|
+
generateSlug?: boolean | null;
|
|
3084
|
+
slug?: string | null;
|
|
3085
|
+
/**
|
|
3086
|
+
* Short summary for listing/cards
|
|
3087
|
+
*/
|
|
3088
|
+
description?: string | null;
|
|
3089
|
+
image?: (string | null) | Image;
|
|
3090
|
+
parent?: (string | null) | LinkCategory;
|
|
3091
|
+
color?: string | null;
|
|
3092
|
+
updatedAt: string;
|
|
3093
|
+
createdAt: string;
|
|
3094
|
+
deletedAt?: string | null;
|
|
3095
|
+
}
|
|
3096
|
+
/**
|
|
3097
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3098
|
+
* via the `definition` "link-tags".
|
|
3099
|
+
*/
|
|
3100
|
+
interface LinkTag {
|
|
3101
|
+
id: string;
|
|
3102
|
+
_order?: string | null;
|
|
3103
|
+
tenant?: (string | null) | Tenant;
|
|
3104
|
+
title: string;
|
|
3105
|
+
/**
|
|
3106
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
3107
|
+
*/
|
|
3108
|
+
generateSlug?: boolean | null;
|
|
3109
|
+
slug?: string | null;
|
|
3110
|
+
/**
|
|
3111
|
+
* Short summary for listing/cards
|
|
3112
|
+
*/
|
|
3113
|
+
description?: string | null;
|
|
3114
|
+
image?: (string | null) | Image;
|
|
3115
|
+
parent?: (string | null) | LinkTag;
|
|
3116
|
+
color?: string | null;
|
|
3117
|
+
updatedAt: string;
|
|
3118
|
+
createdAt: string;
|
|
3119
|
+
deletedAt?: string | null;
|
|
3120
|
+
}
|
|
3023
3121
|
/**
|
|
3024
3122
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3025
3123
|
* via the `definition` "flows".
|
|
@@ -3617,6 +3715,15 @@ interface PayloadLockedDocument {
|
|
|
3617
3715
|
} | null) | ({
|
|
3618
3716
|
relationTo: 'gallery-items';
|
|
3619
3717
|
value: string | GalleryItem;
|
|
3718
|
+
} | null) | ({
|
|
3719
|
+
relationTo: 'links';
|
|
3720
|
+
value: string | Link;
|
|
3721
|
+
} | null) | ({
|
|
3722
|
+
relationTo: 'link-categories';
|
|
3723
|
+
value: string | LinkCategory;
|
|
3724
|
+
} | null) | ({
|
|
3725
|
+
relationTo: 'link-tags';
|
|
3726
|
+
value: string | LinkTag;
|
|
3620
3727
|
} | null) | ({
|
|
3621
3728
|
relationTo: 'flows';
|
|
3622
3729
|
value: string | Flow;
|
|
@@ -4814,6 +4921,7 @@ interface PostsSelect<T extends boolean = true> {
|
|
|
4814
4921
|
thumbnail?: T;
|
|
4815
4922
|
images?: T;
|
|
4816
4923
|
publishedAt?: T;
|
|
4924
|
+
customer?: T;
|
|
4817
4925
|
isFeatured?: T;
|
|
4818
4926
|
readTime?: T;
|
|
4819
4927
|
metadata?: T;
|
|
@@ -5186,6 +5294,65 @@ interface GalleryItemsSelect<T extends boolean = true> {
|
|
|
5186
5294
|
createdAt?: T;
|
|
5187
5295
|
deletedAt?: T;
|
|
5188
5296
|
}
|
|
5297
|
+
/**
|
|
5298
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5299
|
+
* via the `definition` "links_select".
|
|
5300
|
+
*/
|
|
5301
|
+
interface LinksSelect<T extends boolean = true> {
|
|
5302
|
+
_order?: T;
|
|
5303
|
+
tenant?: T;
|
|
5304
|
+
title?: T;
|
|
5305
|
+
url?: T;
|
|
5306
|
+
description?: T;
|
|
5307
|
+
categories?: T;
|
|
5308
|
+
tags?: T;
|
|
5309
|
+
generateSlug?: T;
|
|
5310
|
+
slug?: T;
|
|
5311
|
+
type?: T;
|
|
5312
|
+
thumbnail?: T;
|
|
5313
|
+
status?: T;
|
|
5314
|
+
isFeatured?: T;
|
|
5315
|
+
metadata?: T;
|
|
5316
|
+
updatedAt?: T;
|
|
5317
|
+
createdAt?: T;
|
|
5318
|
+
deletedAt?: T;
|
|
5319
|
+
}
|
|
5320
|
+
/**
|
|
5321
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5322
|
+
* via the `definition` "link-categories_select".
|
|
5323
|
+
*/
|
|
5324
|
+
interface LinkCategoriesSelect<T extends boolean = true> {
|
|
5325
|
+
_order?: T;
|
|
5326
|
+
tenant?: T;
|
|
5327
|
+
title?: T;
|
|
5328
|
+
generateSlug?: T;
|
|
5329
|
+
slug?: T;
|
|
5330
|
+
description?: T;
|
|
5331
|
+
image?: T;
|
|
5332
|
+
parent?: T;
|
|
5333
|
+
color?: T;
|
|
5334
|
+
updatedAt?: T;
|
|
5335
|
+
createdAt?: T;
|
|
5336
|
+
deletedAt?: T;
|
|
5337
|
+
}
|
|
5338
|
+
/**
|
|
5339
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5340
|
+
* via the `definition` "link-tags_select".
|
|
5341
|
+
*/
|
|
5342
|
+
interface LinkTagsSelect<T extends boolean = true> {
|
|
5343
|
+
_order?: T;
|
|
5344
|
+
tenant?: T;
|
|
5345
|
+
title?: T;
|
|
5346
|
+
generateSlug?: T;
|
|
5347
|
+
slug?: T;
|
|
5348
|
+
description?: T;
|
|
5349
|
+
image?: T;
|
|
5350
|
+
parent?: T;
|
|
5351
|
+
color?: T;
|
|
5352
|
+
updatedAt?: T;
|
|
5353
|
+
createdAt?: T;
|
|
5354
|
+
deletedAt?: T;
|
|
5355
|
+
}
|
|
5189
5356
|
/**
|
|
5190
5357
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
5191
5358
|
* via the `definition` "flows_select".
|
|
@@ -5637,4 +5804,4 @@ declare module 'payload' {
|
|
|
5637
5804
|
}
|
|
5638
5805
|
}
|
|
5639
5806
|
|
|
5640
|
-
export type { Document as $, Audience as A, BrandLogo as B, Config as C, ProductCollection as D, Exchange as E, Form as F, Customer as G, CustomerGroup as H, IframeBlock as I, CustomerAddress as J, FulfillmentItem as K, LiveStream as L, ReturnProduct as M, ExchangeProduct as N, Order as O, Product as P, OrderStatusLog as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, Discount as W, Post as X, PostAuthor as Y, PostCategory as Z, PostTag as _, OrderProduct as a,
|
|
5807
|
+
export type { Document as $, Audience as A, BrandLogo as B, Config as C, ProductCollection as D, Exchange as E, Form as F, Customer as G, CustomerGroup as H, IframeBlock as I, CustomerAddress as J, FulfillmentItem as K, LiveStream as L, ReturnProduct as M, ExchangeProduct as N, Order as O, Product as P, OrderStatusLog as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, Discount as W, Post as X, PostAuthor as Y, PostCategory as Z, PostTag as _, OrderProduct as a, PostAuthorsSelect as a$, DocumentType as a0, DocumentCategory as a1, Playlist as a2, PlaylistCategory as a3, PlaylistTag as a4, Music as a5, MusicCategory as a6, MusicTag as a7, Gallery as a8, GalleryCategory as a9, TenantLogosSelect as aA, ProductsSelect as aB, ProductVariantsSelect as aC, ProductOptionsSelect as aD, ProductCategoriesSelect as aE, ProductTagsSelect as aF, ProductCollectionsSelect as aG, BrandsSelect as aH, BrandLogosSelect as aI, OrdersSelect as aJ, OrderProductsSelect as aK, TransactionsSelect as aL, OrderStatusLogsSelect as aM, FulfillmentsSelect as aN, FulfillmentItemsSelect as aO, ReturnsSelect as aP, ReturnProductsSelect as aQ, ExchangesSelect as aR, ExchangeProductsSelect as aS, ShippingPoliciesSelect as aT, CustomersSelect as aU, CustomerAddressesSelect as aV, CustomerGroupsSelect as aW, CartsSelect as aX, CartItemsSelect as aY, DiscountsSelect as aZ, PostsSelect as a_, GalleryTag as aa, GalleryItem as ab, Link as ac, LinkCategory as ad, LinkTag as ae, Flow as af, FlowCategory as ag, FlowTag as ah, FlowNodeType as ai, FlowEdgeType as aj, FormSubmission as ak, PayloadKv as al, PayloadLockedDocument as am, PayloadPreference as an, PayloadMigration as ao, UsersSelect as ap, FieldConfigsSelect as aq, ImagesSelect as ar, SystemMediaSelect as as, AudiencesSelect as at, EmailLogsSelect as au, TenantsSelect as av, TenantMetadataSelect as aw, ApiUsageSelect as ax, SubscriptionsSelect as ay, BillingHistorySelect as az, Fulfillment as b, PostCategoriesSelect as b0, PostTagsSelect as b1, DocumentsSelect as b2, DocumentCategoriesSelect as b3, DocumentTypesSelect as b4, PlaylistsSelect as b5, PlaylistCategoriesSelect as b6, PlaylistTagsSelect as b7, MusicsSelect as b8, MusicCategoriesSelect as b9, MusicTagsSelect as ba, GalleriesSelect as bb, GalleryCategoriesSelect as bc, GalleryTagsSelect as bd, GalleryItemsSelect as be, LinksSelect as bf, LinkCategoriesSelect as bg, LinkTagsSelect as bh, FlowsSelect as bi, FlowNodeTypesSelect as bj, FlowEdgeTypesSelect as bk, FlowCategoriesSelect as bl, FlowTagsSelect as bm, VideosSelect as bn, VideoCategoriesSelect as bo, VideoTagsSelect as bp, LiveStreamsSelect as bq, FormsSelect as br, FormSubmissionsSelect as bs, PayloadKvSelect as bt, PayloadLockedDocumentsSelect as bu, PayloadPreferencesSelect as bv, PayloadMigrationsSelect as bw, CollectionsWidget as bx, Auth as by, Cart as c, CartItem as d, CustomerAuthOperations as e, PlayerBlock as f, CodeBlock as g, User as h, Tenant as i, FieldConfig as j, Image as k, SystemMedia as l, EmailLog as m, TenantMetadatum as n, ApiUsage as o, Subscription as p, BillingHistory as q, TenantLogo as r, VideoCategory as s, VideoTag as t, ProductVariant as u, ProductOption as v, ProductCategory as w, ProductTag as x, Brand as y, ShippingPolicy as z };
|
package/dist/realtime.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RealtimeEvent } from './realtime-DupPIYx-.cjs';
|
|
2
2
|
export { a as RealtimeConnection, b as RealtimeListener } from './realtime-DupPIYx-.cjs';
|
|
3
|
-
import { P as PublicCollection } from './const-
|
|
4
|
-
import './payload-types-
|
|
3
|
+
import { P as PublicCollection } from './const-MzPYopC7.cjs';
|
|
4
|
+
import './payload-types-CyaSGIFI.cjs';
|
|
5
5
|
|
|
6
6
|
interface UseRealtimeQueryOptions {
|
|
7
7
|
/** Filter events to specific collections. Empty/undefined = all collections. */
|
package/dist/realtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RealtimeEvent } from './realtime-DupPIYx-.js';
|
|
2
2
|
export { a as RealtimeConnection, b as RealtimeListener } from './realtime-DupPIYx-.js';
|
|
3
|
-
import { P as PublicCollection } from './const-
|
|
4
|
-
import './payload-types-
|
|
3
|
+
import { P as PublicCollection } from './const-Dde6Z3er.js';
|
|
4
|
+
import './payload-types-CyaSGIFI.js';
|
|
5
5
|
|
|
6
6
|
interface UseRealtimeQueryOptions {
|
|
7
7
|
/** Filter events to specific collections. Empty/undefined = all collections. */
|
package/dist/ui/flow.cjs
CHANGED
|
@@ -832,6 +832,10 @@ function DefaultFrameNode({ data }) {
|
|
|
832
832
|
const bgColor = (() => {
|
|
833
833
|
const m = baseColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
834
834
|
if (m) return `rgba(${m[1]},${m[2]},${m[3]},${opacity})`;
|
|
835
|
+
const h6 = baseColor.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);
|
|
836
|
+
if (h6) return `rgba(${parseInt(h6[1], 16)},${parseInt(h6[2], 16)},${parseInt(h6[3], 16)},${opacity})`;
|
|
837
|
+
const h3 = baseColor.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);
|
|
838
|
+
if (h3) return `rgba(${parseInt(h3[1] + h3[1], 16)},${parseInt(h3[2] + h3[2], 16)},${parseInt(h3[3] + h3[3], 16)},${opacity})`;
|
|
835
839
|
return baseColor;
|
|
836
840
|
})();
|
|
837
841
|
return /* @__PURE__ */ import_react5.default.createElement(
|
|
@@ -1048,7 +1052,8 @@ function Image({
|
|
|
1048
1052
|
objectFit = "cover",
|
|
1049
1053
|
priority = false,
|
|
1050
1054
|
fill = false,
|
|
1051
|
-
imageRendering
|
|
1055
|
+
imageRendering,
|
|
1056
|
+
alt: altProp
|
|
1052
1057
|
}) {
|
|
1053
1058
|
const [loaded, setLoaded] = (0, import_react6.useState)(false);
|
|
1054
1059
|
const firedRef = (0, import_react6.useRef)(false);
|
|
@@ -1131,7 +1136,7 @@ function Image({
|
|
|
1131
1136
|
"img",
|
|
1132
1137
|
{
|
|
1133
1138
|
ref: imgRef,
|
|
1134
|
-
alt: image.alt ?? "",
|
|
1139
|
+
alt: altProp ?? image.alt ?? "",
|
|
1135
1140
|
src,
|
|
1136
1141
|
srcSet: srcSet || void 0,
|
|
1137
1142
|
sizes,
|