@01.software/sdk 0.4.3 → 0.5.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 +13 -13
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/{const-ikSyKVND.d.ts → const-CDpRB7XK.d.cts} +2 -2
- package/dist/{const-C3GC2SxR.d.cts → const-DQIDvvB-.d.ts} +2 -2
- package/dist/index.cjs +22 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -34
- package/dist/index.d.ts +55 -34
- package/dist/index.js +22 -20
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DPka7hJu.d.cts → payload-types-C-keX5go.d.cts} +112 -41
- package/dist/{payload-types-DPka7hJu.d.ts → payload-types-C-keX5go.d.ts} +112 -41
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js.map +1 -1
- package/dist/server-B80o7igg.d.cts +242 -0
- package/dist/server-B80o7igg.d.ts +242 -0
- package/dist/ui/flow/server.cjs +233 -0
- package/dist/ui/flow/server.cjs.map +1 -0
- package/dist/ui/flow/server.d.cts +3 -0
- package/dist/ui/flow/server.d.ts +3 -0
- package/dist/ui/flow/server.js +213 -0
- package/dist/ui/flow/server.js.map +1 -0
- package/dist/ui/flow.cjs +540 -127
- package/dist/ui/flow.cjs.map +1 -1
- package/dist/ui/flow.d.cts +39 -189
- package/dist/ui/flow.d.ts +39 -189
- package/dist/ui/flow.js +544 -135
- 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/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/{webhook-CvNTdBWV.d.ts → webhook-Dqe2_xMx.d.cts} +3 -3
- package/dist/{webhook-B8BfJ_Ka.d.cts → webhook-DseJdRFT.d.ts} +3 -3
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +17 -12
|
@@ -69,6 +69,8 @@ interface Config {
|
|
|
69
69
|
'playlist-categories': PlaylistCategory;
|
|
70
70
|
'playlist-tags': PlaylistTag;
|
|
71
71
|
musics: Music;
|
|
72
|
+
'music-categories': MusicCategory;
|
|
73
|
+
'music-tags': MusicTag;
|
|
72
74
|
galleries: Gallery;
|
|
73
75
|
'gallery-categories': GalleryCategory;
|
|
74
76
|
'gallery-tags': GalleryTag;
|
|
@@ -183,6 +185,8 @@ interface Config {
|
|
|
183
185
|
'playlist-categories': PlaylistCategoriesSelect<false> | PlaylistCategoriesSelect<true>;
|
|
184
186
|
'playlist-tags': PlaylistTagsSelect<false> | PlaylistTagsSelect<true>;
|
|
185
187
|
musics: MusicsSelect<false> | MusicsSelect<true>;
|
|
188
|
+
'music-categories': MusicCategoriesSelect<false> | MusicCategoriesSelect<true>;
|
|
189
|
+
'music-tags': MusicTagsSelect<false> | MusicTagsSelect<true>;
|
|
186
190
|
galleries: GalleriesSelect<false> | GalleriesSelect<true>;
|
|
187
191
|
'gallery-categories': GalleryCategoriesSelect<false> | GalleryCategoriesSelect<true>;
|
|
188
192
|
'gallery-tags': GalleryTagsSelect<false> | GalleryTagsSelect<true>;
|
|
@@ -387,7 +391,7 @@ interface Tenant {
|
|
|
387
391
|
interface FieldConfig {
|
|
388
392
|
id: string;
|
|
389
393
|
tenant?: (string | null) | Tenant;
|
|
390
|
-
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
394
|
+
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | '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' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
391
395
|
isHidden?: boolean | null;
|
|
392
396
|
hiddenFields?: {
|
|
393
397
|
[k: string]: unknown;
|
|
@@ -1089,15 +1093,6 @@ interface Product {
|
|
|
1089
1093
|
* Product weight (g)
|
|
1090
1094
|
*/
|
|
1091
1095
|
weight?: number | null;
|
|
1092
|
-
dimensions?: {
|
|
1093
|
-
width?: number | null;
|
|
1094
|
-
height?: number | null;
|
|
1095
|
-
depth?: number | null;
|
|
1096
|
-
};
|
|
1097
|
-
/**
|
|
1098
|
-
* Digital product (no shipping required)
|
|
1099
|
-
*/
|
|
1100
|
-
isDigital?: boolean | null;
|
|
1101
1096
|
collections?: {
|
|
1102
1097
|
docs?: (string | ProductCollection)[];
|
|
1103
1098
|
hasNextPage?: boolean;
|
|
@@ -1371,20 +1366,11 @@ interface ProductVariant {
|
|
|
1371
1366
|
weight?: number | null;
|
|
1372
1367
|
isSoldOut?: boolean | null;
|
|
1373
1368
|
images?: (string | Image)[] | null;
|
|
1374
|
-
dimensions?: {
|
|
1375
|
-
width?: number | null;
|
|
1376
|
-
height?: number | null;
|
|
1377
|
-
depth?: number | null;
|
|
1378
|
-
};
|
|
1379
1369
|
/**
|
|
1380
1370
|
* External system ID
|
|
1381
1371
|
*/
|
|
1382
1372
|
externalId?: string | null;
|
|
1383
1373
|
status?: ('active' | 'inactive') | null;
|
|
1384
|
-
/**
|
|
1385
|
-
* Sort order
|
|
1386
|
-
*/
|
|
1387
|
-
position?: number | null;
|
|
1388
1374
|
metadata?: {
|
|
1389
1375
|
[k: string]: unknown;
|
|
1390
1376
|
} | unknown[] | string | number | boolean | null;
|
|
@@ -1431,10 +1417,6 @@ interface ProductOption {
|
|
|
1431
1417
|
* Option-specific weight (g)
|
|
1432
1418
|
*/
|
|
1433
1419
|
weight?: number | null;
|
|
1434
|
-
/**
|
|
1435
|
-
* Low stock alert threshold
|
|
1436
|
-
*/
|
|
1437
|
-
lowStockThreshold?: number | null;
|
|
1438
1420
|
/**
|
|
1439
1421
|
* External system ID
|
|
1440
1422
|
*/
|
|
@@ -2686,7 +2668,7 @@ interface Music {
|
|
|
2686
2668
|
*/
|
|
2687
2669
|
artist?: string | null;
|
|
2688
2670
|
/**
|
|
2689
|
-
* Duration in seconds (auto-filled
|
|
2671
|
+
* Duration in seconds (auto-filled)
|
|
2690
2672
|
*/
|
|
2691
2673
|
duration?: number | null;
|
|
2692
2674
|
/**
|
|
@@ -2708,8 +2690,9 @@ interface Music {
|
|
|
2708
2690
|
};
|
|
2709
2691
|
[k: string]: unknown;
|
|
2710
2692
|
} | null;
|
|
2693
|
+
categories?: (string | MusicCategory)[] | null;
|
|
2694
|
+
tags?: (string | MusicTag)[] | null;
|
|
2711
2695
|
album?: string | null;
|
|
2712
|
-
genre?: string | null;
|
|
2713
2696
|
releaseDate?: string | null;
|
|
2714
2697
|
metadata?: {
|
|
2715
2698
|
[k: string]: unknown;
|
|
@@ -2719,6 +2702,56 @@ interface Music {
|
|
|
2719
2702
|
createdAt: string;
|
|
2720
2703
|
deletedAt?: string | null;
|
|
2721
2704
|
}
|
|
2705
|
+
/**
|
|
2706
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2707
|
+
* via the `definition` "music-categories".
|
|
2708
|
+
*/
|
|
2709
|
+
interface MusicCategory {
|
|
2710
|
+
id: string;
|
|
2711
|
+
_order?: string | null;
|
|
2712
|
+
tenant?: (string | null) | Tenant;
|
|
2713
|
+
title: string;
|
|
2714
|
+
/**
|
|
2715
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
2716
|
+
*/
|
|
2717
|
+
generateSlug?: boolean | null;
|
|
2718
|
+
slug?: string | null;
|
|
2719
|
+
/**
|
|
2720
|
+
* Short summary for listing/cards
|
|
2721
|
+
*/
|
|
2722
|
+
description?: string | null;
|
|
2723
|
+
image?: (string | null) | Image;
|
|
2724
|
+
parent?: (string | null) | MusicCategory;
|
|
2725
|
+
color?: string | null;
|
|
2726
|
+
updatedAt: string;
|
|
2727
|
+
createdAt: string;
|
|
2728
|
+
deletedAt?: string | null;
|
|
2729
|
+
}
|
|
2730
|
+
/**
|
|
2731
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2732
|
+
* via the `definition` "music-tags".
|
|
2733
|
+
*/
|
|
2734
|
+
interface MusicTag {
|
|
2735
|
+
id: string;
|
|
2736
|
+
_order?: string | null;
|
|
2737
|
+
tenant?: (string | null) | Tenant;
|
|
2738
|
+
title: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
2741
|
+
*/
|
|
2742
|
+
generateSlug?: boolean | null;
|
|
2743
|
+
slug?: string | null;
|
|
2744
|
+
/**
|
|
2745
|
+
* Short summary for listing/cards
|
|
2746
|
+
*/
|
|
2747
|
+
description?: string | null;
|
|
2748
|
+
image?: (string | null) | Image;
|
|
2749
|
+
parent?: (string | null) | MusicTag;
|
|
2750
|
+
color?: string | null;
|
|
2751
|
+
updatedAt: string;
|
|
2752
|
+
createdAt: string;
|
|
2753
|
+
deletedAt?: string | null;
|
|
2754
|
+
}
|
|
2722
2755
|
/**
|
|
2723
2756
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
2724
2757
|
* via the `definition` "galleries".
|
|
@@ -3017,12 +3050,19 @@ interface FlowNodeType {
|
|
|
3017
3050
|
*/
|
|
3018
3051
|
name: string;
|
|
3019
3052
|
label: string;
|
|
3020
|
-
fieldType: 'text' | 'textarea' | 'number' | 'url' | 'color' | 'image' | 'select' | 'toggle';
|
|
3053
|
+
fieldType: 'text' | 'textarea' | 'number' | 'url' | 'color' | 'image' | 'date' | 'select' | 'toggle';
|
|
3021
3054
|
options?: {
|
|
3022
3055
|
label: string;
|
|
3023
3056
|
value: string;
|
|
3024
3057
|
id?: string | null;
|
|
3025
3058
|
}[] | null;
|
|
3059
|
+
/**
|
|
3060
|
+
* Allow multiple values as an array
|
|
3061
|
+
*/
|
|
3062
|
+
hasMany?: boolean | null;
|
|
3063
|
+
/**
|
|
3064
|
+
* For has-many, separate with commas
|
|
3065
|
+
*/
|
|
3026
3066
|
defaultValue?: string | null;
|
|
3027
3067
|
required?: boolean | null;
|
|
3028
3068
|
id?: string | null;
|
|
@@ -3432,6 +3472,12 @@ interface PayloadLockedDocument {
|
|
|
3432
3472
|
} | null) | ({
|
|
3433
3473
|
relationTo: 'musics';
|
|
3434
3474
|
value: string | Music;
|
|
3475
|
+
} | null) | ({
|
|
3476
|
+
relationTo: 'music-categories';
|
|
3477
|
+
value: string | MusicCategory;
|
|
3478
|
+
} | null) | ({
|
|
3479
|
+
relationTo: 'music-tags';
|
|
3480
|
+
value: string | MusicTag;
|
|
3435
3481
|
} | null) | ({
|
|
3436
3482
|
relationTo: 'galleries';
|
|
3437
3483
|
value: string | Gallery;
|
|
@@ -3969,12 +4015,6 @@ interface ProductsSelect<T extends boolean = true> {
|
|
|
3969
4015
|
brand?: T;
|
|
3970
4016
|
shippingPolicy?: T;
|
|
3971
4017
|
weight?: T;
|
|
3972
|
-
dimensions?: T | {
|
|
3973
|
-
width?: T;
|
|
3974
|
-
height?: T;
|
|
3975
|
-
depth?: T;
|
|
3976
|
-
};
|
|
3977
|
-
isDigital?: T;
|
|
3978
4018
|
collections?: T;
|
|
3979
4019
|
sku?: T;
|
|
3980
4020
|
barcode?: T;
|
|
@@ -4019,14 +4059,8 @@ interface ProductVariantsSelect<T extends boolean = true> {
|
|
|
4019
4059
|
weight?: T;
|
|
4020
4060
|
isSoldOut?: T;
|
|
4021
4061
|
images?: T;
|
|
4022
|
-
dimensions?: T | {
|
|
4023
|
-
width?: T;
|
|
4024
|
-
height?: T;
|
|
4025
|
-
depth?: T;
|
|
4026
|
-
};
|
|
4027
4062
|
externalId?: T;
|
|
4028
4063
|
status?: T;
|
|
4029
|
-
position?: T;
|
|
4030
4064
|
metadata?: T;
|
|
4031
4065
|
productOptions?: T;
|
|
4032
4066
|
updatedAt?: T;
|
|
@@ -4051,7 +4085,6 @@ interface ProductOptionsSelect<T extends boolean = true> {
|
|
|
4051
4085
|
priceAdjustment?: T;
|
|
4052
4086
|
barcode?: T;
|
|
4053
4087
|
weight?: T;
|
|
4054
|
-
lowStockThreshold?: T;
|
|
4055
4088
|
externalId?: T;
|
|
4056
4089
|
metadata?: T;
|
|
4057
4090
|
updatedAt?: T;
|
|
@@ -4865,8 +4898,9 @@ interface MusicsSelect<T extends boolean = true> {
|
|
|
4865
4898
|
duration?: T;
|
|
4866
4899
|
description?: T;
|
|
4867
4900
|
content?: T;
|
|
4901
|
+
categories?: T;
|
|
4902
|
+
tags?: T;
|
|
4868
4903
|
album?: T;
|
|
4869
|
-
genre?: T;
|
|
4870
4904
|
releaseDate?: T;
|
|
4871
4905
|
metadata?: T;
|
|
4872
4906
|
isValid?: T;
|
|
@@ -4874,6 +4908,42 @@ interface MusicsSelect<T extends boolean = true> {
|
|
|
4874
4908
|
createdAt?: T;
|
|
4875
4909
|
deletedAt?: T;
|
|
4876
4910
|
}
|
|
4911
|
+
/**
|
|
4912
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
4913
|
+
* via the `definition` "music-categories_select".
|
|
4914
|
+
*/
|
|
4915
|
+
interface MusicCategoriesSelect<T extends boolean = true> {
|
|
4916
|
+
_order?: T;
|
|
4917
|
+
tenant?: T;
|
|
4918
|
+
title?: T;
|
|
4919
|
+
generateSlug?: T;
|
|
4920
|
+
slug?: T;
|
|
4921
|
+
description?: T;
|
|
4922
|
+
image?: T;
|
|
4923
|
+
parent?: T;
|
|
4924
|
+
color?: T;
|
|
4925
|
+
updatedAt?: T;
|
|
4926
|
+
createdAt?: T;
|
|
4927
|
+
deletedAt?: T;
|
|
4928
|
+
}
|
|
4929
|
+
/**
|
|
4930
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
4931
|
+
* via the `definition` "music-tags_select".
|
|
4932
|
+
*/
|
|
4933
|
+
interface MusicTagsSelect<T extends boolean = true> {
|
|
4934
|
+
_order?: T;
|
|
4935
|
+
tenant?: T;
|
|
4936
|
+
title?: T;
|
|
4937
|
+
generateSlug?: T;
|
|
4938
|
+
slug?: T;
|
|
4939
|
+
description?: T;
|
|
4940
|
+
image?: T;
|
|
4941
|
+
parent?: T;
|
|
4942
|
+
color?: T;
|
|
4943
|
+
updatedAt?: T;
|
|
4944
|
+
createdAt?: T;
|
|
4945
|
+
deletedAt?: T;
|
|
4946
|
+
}
|
|
4877
4947
|
/**
|
|
4878
4948
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
4879
4949
|
* via the `definition` "galleries_select".
|
|
@@ -5020,6 +5090,7 @@ interface FlowNodeTypesSelect<T extends boolean = true> {
|
|
|
5020
5090
|
value?: T;
|
|
5021
5091
|
id?: T;
|
|
5022
5092
|
};
|
|
5093
|
+
hasMany?: T;
|
|
5023
5094
|
defaultValue?: T;
|
|
5024
5095
|
required?: T;
|
|
5025
5096
|
id?: T;
|
|
@@ -5396,4 +5467,4 @@ declare module 'payload' {
|
|
|
5396
5467
|
}
|
|
5397
5468
|
}
|
|
5398
5469
|
|
|
5399
|
-
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,
|
|
5470
|
+
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, DocumentsSelect 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, ProductOptionsSelect as aA, ProductCategoriesSelect as aB, ProductTagsSelect as aC, ProductCollectionsSelect as aD, BrandsSelect as aE, BrandLogosSelect as aF, OrdersSelect as aG, OrderProductsSelect as aH, TransactionsSelect as aI, OrderStatusLogsSelect as aJ, FulfillmentsSelect as aK, FulfillmentItemsSelect as aL, ReturnsSelect as aM, ReturnProductsSelect as aN, ExchangesSelect as aO, ExchangeProductsSelect as aP, ShippingPoliciesSelect as aQ, CustomersSelect as aR, CustomerAddressesSelect as aS, CustomerGroupsSelect as aT, CartsSelect as aU, CartItemsSelect as aV, DiscountsSelect as aW, PostsSelect as aX, PostAuthorsSelect as aY, PostCategoriesSelect as aZ, PostTagsSelect as a_, GalleryTag as aa, GalleryItem as ab, Flow as ac, FlowCategory as ad, FlowTag as ae, FlowNodeType as af, FlowEdgeType as ag, FormSubmission as ah, PayloadKv as ai, PayloadLockedDocument as aj, PayloadPreference as ak, PayloadMigration as al, UsersSelect as am, FieldConfigsSelect as an, ImagesSelect as ao, SystemMediaSelect as ap, AudiencesSelect as aq, EmailLogsSelect as ar, TenantsSelect as as, TenantMetadataSelect as at, ApiUsageSelect as au, SubscriptionsSelect as av, BillingHistorySelect as aw, TenantLogosSelect as ax, ProductsSelect as ay, ProductVariantsSelect as az, Fulfillment as b, DocumentCategoriesSelect as b0, DocumentTypesSelect as b1, PlaylistsSelect as b2, PlaylistCategoriesSelect as b3, PlaylistTagsSelect as b4, MusicsSelect as b5, MusicCategoriesSelect as b6, MusicTagsSelect as b7, GalleriesSelect as b8, GalleryCategoriesSelect as b9, GalleryTagsSelect as ba, GalleryItemsSelect as bb, FlowsSelect as bc, FlowNodeTypesSelect as bd, FlowEdgeTypesSelect as be, FlowCategoriesSelect as bf, FlowTagsSelect as bg, VideosSelect as bh, VideoCategoriesSelect as bi, VideoTagsSelect as bj, LiveStreamsSelect as bk, FormsSelect as bl, FormSubmissionsSelect as bm, PayloadKvSelect as bn, PayloadLockedDocumentsSelect as bo, PayloadPreferencesSelect as bp, PayloadMigrationsSelect as bq, CollectionsWidget as br, Auth as bs, 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 };
|
|
@@ -69,6 +69,8 @@ interface Config {
|
|
|
69
69
|
'playlist-categories': PlaylistCategory;
|
|
70
70
|
'playlist-tags': PlaylistTag;
|
|
71
71
|
musics: Music;
|
|
72
|
+
'music-categories': MusicCategory;
|
|
73
|
+
'music-tags': MusicTag;
|
|
72
74
|
galleries: Gallery;
|
|
73
75
|
'gallery-categories': GalleryCategory;
|
|
74
76
|
'gallery-tags': GalleryTag;
|
|
@@ -183,6 +185,8 @@ interface Config {
|
|
|
183
185
|
'playlist-categories': PlaylistCategoriesSelect<false> | PlaylistCategoriesSelect<true>;
|
|
184
186
|
'playlist-tags': PlaylistTagsSelect<false> | PlaylistTagsSelect<true>;
|
|
185
187
|
musics: MusicsSelect<false> | MusicsSelect<true>;
|
|
188
|
+
'music-categories': MusicCategoriesSelect<false> | MusicCategoriesSelect<true>;
|
|
189
|
+
'music-tags': MusicTagsSelect<false> | MusicTagsSelect<true>;
|
|
186
190
|
galleries: GalleriesSelect<false> | GalleriesSelect<true>;
|
|
187
191
|
'gallery-categories': GalleryCategoriesSelect<false> | GalleryCategoriesSelect<true>;
|
|
188
192
|
'gallery-tags': GalleryTagsSelect<false> | GalleryTagsSelect<true>;
|
|
@@ -387,7 +391,7 @@ interface Tenant {
|
|
|
387
391
|
interface FieldConfig {
|
|
388
392
|
id: string;
|
|
389
393
|
tenant?: (string | null) | Tenant;
|
|
390
|
-
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
394
|
+
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | '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' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
|
|
391
395
|
isHidden?: boolean | null;
|
|
392
396
|
hiddenFields?: {
|
|
393
397
|
[k: string]: unknown;
|
|
@@ -1089,15 +1093,6 @@ interface Product {
|
|
|
1089
1093
|
* Product weight (g)
|
|
1090
1094
|
*/
|
|
1091
1095
|
weight?: number | null;
|
|
1092
|
-
dimensions?: {
|
|
1093
|
-
width?: number | null;
|
|
1094
|
-
height?: number | null;
|
|
1095
|
-
depth?: number | null;
|
|
1096
|
-
};
|
|
1097
|
-
/**
|
|
1098
|
-
* Digital product (no shipping required)
|
|
1099
|
-
*/
|
|
1100
|
-
isDigital?: boolean | null;
|
|
1101
1096
|
collections?: {
|
|
1102
1097
|
docs?: (string | ProductCollection)[];
|
|
1103
1098
|
hasNextPage?: boolean;
|
|
@@ -1371,20 +1366,11 @@ interface ProductVariant {
|
|
|
1371
1366
|
weight?: number | null;
|
|
1372
1367
|
isSoldOut?: boolean | null;
|
|
1373
1368
|
images?: (string | Image)[] | null;
|
|
1374
|
-
dimensions?: {
|
|
1375
|
-
width?: number | null;
|
|
1376
|
-
height?: number | null;
|
|
1377
|
-
depth?: number | null;
|
|
1378
|
-
};
|
|
1379
1369
|
/**
|
|
1380
1370
|
* External system ID
|
|
1381
1371
|
*/
|
|
1382
1372
|
externalId?: string | null;
|
|
1383
1373
|
status?: ('active' | 'inactive') | null;
|
|
1384
|
-
/**
|
|
1385
|
-
* Sort order
|
|
1386
|
-
*/
|
|
1387
|
-
position?: number | null;
|
|
1388
1374
|
metadata?: {
|
|
1389
1375
|
[k: string]: unknown;
|
|
1390
1376
|
} | unknown[] | string | number | boolean | null;
|
|
@@ -1431,10 +1417,6 @@ interface ProductOption {
|
|
|
1431
1417
|
* Option-specific weight (g)
|
|
1432
1418
|
*/
|
|
1433
1419
|
weight?: number | null;
|
|
1434
|
-
/**
|
|
1435
|
-
* Low stock alert threshold
|
|
1436
|
-
*/
|
|
1437
|
-
lowStockThreshold?: number | null;
|
|
1438
1420
|
/**
|
|
1439
1421
|
* External system ID
|
|
1440
1422
|
*/
|
|
@@ -2686,7 +2668,7 @@ interface Music {
|
|
|
2686
2668
|
*/
|
|
2687
2669
|
artist?: string | null;
|
|
2688
2670
|
/**
|
|
2689
|
-
* Duration in seconds (auto-filled
|
|
2671
|
+
* Duration in seconds (auto-filled)
|
|
2690
2672
|
*/
|
|
2691
2673
|
duration?: number | null;
|
|
2692
2674
|
/**
|
|
@@ -2708,8 +2690,9 @@ interface Music {
|
|
|
2708
2690
|
};
|
|
2709
2691
|
[k: string]: unknown;
|
|
2710
2692
|
} | null;
|
|
2693
|
+
categories?: (string | MusicCategory)[] | null;
|
|
2694
|
+
tags?: (string | MusicTag)[] | null;
|
|
2711
2695
|
album?: string | null;
|
|
2712
|
-
genre?: string | null;
|
|
2713
2696
|
releaseDate?: string | null;
|
|
2714
2697
|
metadata?: {
|
|
2715
2698
|
[k: string]: unknown;
|
|
@@ -2719,6 +2702,56 @@ interface Music {
|
|
|
2719
2702
|
createdAt: string;
|
|
2720
2703
|
deletedAt?: string | null;
|
|
2721
2704
|
}
|
|
2705
|
+
/**
|
|
2706
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2707
|
+
* via the `definition` "music-categories".
|
|
2708
|
+
*/
|
|
2709
|
+
interface MusicCategory {
|
|
2710
|
+
id: string;
|
|
2711
|
+
_order?: string | null;
|
|
2712
|
+
tenant?: (string | null) | Tenant;
|
|
2713
|
+
title: string;
|
|
2714
|
+
/**
|
|
2715
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
2716
|
+
*/
|
|
2717
|
+
generateSlug?: boolean | null;
|
|
2718
|
+
slug?: string | null;
|
|
2719
|
+
/**
|
|
2720
|
+
* Short summary for listing/cards
|
|
2721
|
+
*/
|
|
2722
|
+
description?: string | null;
|
|
2723
|
+
image?: (string | null) | Image;
|
|
2724
|
+
parent?: (string | null) | MusicCategory;
|
|
2725
|
+
color?: string | null;
|
|
2726
|
+
updatedAt: string;
|
|
2727
|
+
createdAt: string;
|
|
2728
|
+
deletedAt?: string | null;
|
|
2729
|
+
}
|
|
2730
|
+
/**
|
|
2731
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2732
|
+
* via the `definition` "music-tags".
|
|
2733
|
+
*/
|
|
2734
|
+
interface MusicTag {
|
|
2735
|
+
id: string;
|
|
2736
|
+
_order?: string | null;
|
|
2737
|
+
tenant?: (string | null) | Tenant;
|
|
2738
|
+
title: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
2741
|
+
*/
|
|
2742
|
+
generateSlug?: boolean | null;
|
|
2743
|
+
slug?: string | null;
|
|
2744
|
+
/**
|
|
2745
|
+
* Short summary for listing/cards
|
|
2746
|
+
*/
|
|
2747
|
+
description?: string | null;
|
|
2748
|
+
image?: (string | null) | Image;
|
|
2749
|
+
parent?: (string | null) | MusicTag;
|
|
2750
|
+
color?: string | null;
|
|
2751
|
+
updatedAt: string;
|
|
2752
|
+
createdAt: string;
|
|
2753
|
+
deletedAt?: string | null;
|
|
2754
|
+
}
|
|
2722
2755
|
/**
|
|
2723
2756
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
2724
2757
|
* via the `definition` "galleries".
|
|
@@ -3017,12 +3050,19 @@ interface FlowNodeType {
|
|
|
3017
3050
|
*/
|
|
3018
3051
|
name: string;
|
|
3019
3052
|
label: string;
|
|
3020
|
-
fieldType: 'text' | 'textarea' | 'number' | 'url' | 'color' | 'image' | 'select' | 'toggle';
|
|
3053
|
+
fieldType: 'text' | 'textarea' | 'number' | 'url' | 'color' | 'image' | 'date' | 'select' | 'toggle';
|
|
3021
3054
|
options?: {
|
|
3022
3055
|
label: string;
|
|
3023
3056
|
value: string;
|
|
3024
3057
|
id?: string | null;
|
|
3025
3058
|
}[] | null;
|
|
3059
|
+
/**
|
|
3060
|
+
* Allow multiple values as an array
|
|
3061
|
+
*/
|
|
3062
|
+
hasMany?: boolean | null;
|
|
3063
|
+
/**
|
|
3064
|
+
* For has-many, separate with commas
|
|
3065
|
+
*/
|
|
3026
3066
|
defaultValue?: string | null;
|
|
3027
3067
|
required?: boolean | null;
|
|
3028
3068
|
id?: string | null;
|
|
@@ -3432,6 +3472,12 @@ interface PayloadLockedDocument {
|
|
|
3432
3472
|
} | null) | ({
|
|
3433
3473
|
relationTo: 'musics';
|
|
3434
3474
|
value: string | Music;
|
|
3475
|
+
} | null) | ({
|
|
3476
|
+
relationTo: 'music-categories';
|
|
3477
|
+
value: string | MusicCategory;
|
|
3478
|
+
} | null) | ({
|
|
3479
|
+
relationTo: 'music-tags';
|
|
3480
|
+
value: string | MusicTag;
|
|
3435
3481
|
} | null) | ({
|
|
3436
3482
|
relationTo: 'galleries';
|
|
3437
3483
|
value: string | Gallery;
|
|
@@ -3969,12 +4015,6 @@ interface ProductsSelect<T extends boolean = true> {
|
|
|
3969
4015
|
brand?: T;
|
|
3970
4016
|
shippingPolicy?: T;
|
|
3971
4017
|
weight?: T;
|
|
3972
|
-
dimensions?: T | {
|
|
3973
|
-
width?: T;
|
|
3974
|
-
height?: T;
|
|
3975
|
-
depth?: T;
|
|
3976
|
-
};
|
|
3977
|
-
isDigital?: T;
|
|
3978
4018
|
collections?: T;
|
|
3979
4019
|
sku?: T;
|
|
3980
4020
|
barcode?: T;
|
|
@@ -4019,14 +4059,8 @@ interface ProductVariantsSelect<T extends boolean = true> {
|
|
|
4019
4059
|
weight?: T;
|
|
4020
4060
|
isSoldOut?: T;
|
|
4021
4061
|
images?: T;
|
|
4022
|
-
dimensions?: T | {
|
|
4023
|
-
width?: T;
|
|
4024
|
-
height?: T;
|
|
4025
|
-
depth?: T;
|
|
4026
|
-
};
|
|
4027
4062
|
externalId?: T;
|
|
4028
4063
|
status?: T;
|
|
4029
|
-
position?: T;
|
|
4030
4064
|
metadata?: T;
|
|
4031
4065
|
productOptions?: T;
|
|
4032
4066
|
updatedAt?: T;
|
|
@@ -4051,7 +4085,6 @@ interface ProductOptionsSelect<T extends boolean = true> {
|
|
|
4051
4085
|
priceAdjustment?: T;
|
|
4052
4086
|
barcode?: T;
|
|
4053
4087
|
weight?: T;
|
|
4054
|
-
lowStockThreshold?: T;
|
|
4055
4088
|
externalId?: T;
|
|
4056
4089
|
metadata?: T;
|
|
4057
4090
|
updatedAt?: T;
|
|
@@ -4865,8 +4898,9 @@ interface MusicsSelect<T extends boolean = true> {
|
|
|
4865
4898
|
duration?: T;
|
|
4866
4899
|
description?: T;
|
|
4867
4900
|
content?: T;
|
|
4901
|
+
categories?: T;
|
|
4902
|
+
tags?: T;
|
|
4868
4903
|
album?: T;
|
|
4869
|
-
genre?: T;
|
|
4870
4904
|
releaseDate?: T;
|
|
4871
4905
|
metadata?: T;
|
|
4872
4906
|
isValid?: T;
|
|
@@ -4874,6 +4908,42 @@ interface MusicsSelect<T extends boolean = true> {
|
|
|
4874
4908
|
createdAt?: T;
|
|
4875
4909
|
deletedAt?: T;
|
|
4876
4910
|
}
|
|
4911
|
+
/**
|
|
4912
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
4913
|
+
* via the `definition` "music-categories_select".
|
|
4914
|
+
*/
|
|
4915
|
+
interface MusicCategoriesSelect<T extends boolean = true> {
|
|
4916
|
+
_order?: T;
|
|
4917
|
+
tenant?: T;
|
|
4918
|
+
title?: T;
|
|
4919
|
+
generateSlug?: T;
|
|
4920
|
+
slug?: T;
|
|
4921
|
+
description?: T;
|
|
4922
|
+
image?: T;
|
|
4923
|
+
parent?: T;
|
|
4924
|
+
color?: T;
|
|
4925
|
+
updatedAt?: T;
|
|
4926
|
+
createdAt?: T;
|
|
4927
|
+
deletedAt?: T;
|
|
4928
|
+
}
|
|
4929
|
+
/**
|
|
4930
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
4931
|
+
* via the `definition` "music-tags_select".
|
|
4932
|
+
*/
|
|
4933
|
+
interface MusicTagsSelect<T extends boolean = true> {
|
|
4934
|
+
_order?: T;
|
|
4935
|
+
tenant?: T;
|
|
4936
|
+
title?: T;
|
|
4937
|
+
generateSlug?: T;
|
|
4938
|
+
slug?: T;
|
|
4939
|
+
description?: T;
|
|
4940
|
+
image?: T;
|
|
4941
|
+
parent?: T;
|
|
4942
|
+
color?: T;
|
|
4943
|
+
updatedAt?: T;
|
|
4944
|
+
createdAt?: T;
|
|
4945
|
+
deletedAt?: T;
|
|
4946
|
+
}
|
|
4877
4947
|
/**
|
|
4878
4948
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
4879
4949
|
* via the `definition` "galleries_select".
|
|
@@ -5020,6 +5090,7 @@ interface FlowNodeTypesSelect<T extends boolean = true> {
|
|
|
5020
5090
|
value?: T;
|
|
5021
5091
|
id?: T;
|
|
5022
5092
|
};
|
|
5093
|
+
hasMany?: T;
|
|
5023
5094
|
defaultValue?: T;
|
|
5024
5095
|
required?: T;
|
|
5025
5096
|
id?: T;
|
|
@@ -5396,4 +5467,4 @@ declare module 'payload' {
|
|
|
5396
5467
|
}
|
|
5397
5468
|
}
|
|
5398
5469
|
|
|
5399
|
-
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,
|
|
5470
|
+
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, DocumentsSelect 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, ProductOptionsSelect as aA, ProductCategoriesSelect as aB, ProductTagsSelect as aC, ProductCollectionsSelect as aD, BrandsSelect as aE, BrandLogosSelect as aF, OrdersSelect as aG, OrderProductsSelect as aH, TransactionsSelect as aI, OrderStatusLogsSelect as aJ, FulfillmentsSelect as aK, FulfillmentItemsSelect as aL, ReturnsSelect as aM, ReturnProductsSelect as aN, ExchangesSelect as aO, ExchangeProductsSelect as aP, ShippingPoliciesSelect as aQ, CustomersSelect as aR, CustomerAddressesSelect as aS, CustomerGroupsSelect as aT, CartsSelect as aU, CartItemsSelect as aV, DiscountsSelect as aW, PostsSelect as aX, PostAuthorsSelect as aY, PostCategoriesSelect as aZ, PostTagsSelect as a_, GalleryTag as aa, GalleryItem as ab, Flow as ac, FlowCategory as ad, FlowTag as ae, FlowNodeType as af, FlowEdgeType as ag, FormSubmission as ah, PayloadKv as ai, PayloadLockedDocument as aj, PayloadPreference as ak, PayloadMigration as al, UsersSelect as am, FieldConfigsSelect as an, ImagesSelect as ao, SystemMediaSelect as ap, AudiencesSelect as aq, EmailLogsSelect as ar, TenantsSelect as as, TenantMetadataSelect as at, ApiUsageSelect as au, SubscriptionsSelect as av, BillingHistorySelect as aw, TenantLogosSelect as ax, ProductsSelect as ay, ProductVariantsSelect as az, Fulfillment as b, DocumentCategoriesSelect as b0, DocumentTypesSelect as b1, PlaylistsSelect as b2, PlaylistCategoriesSelect as b3, PlaylistTagsSelect as b4, MusicsSelect as b5, MusicCategoriesSelect as b6, MusicTagsSelect as b7, GalleriesSelect as b8, GalleryCategoriesSelect as b9, GalleryTagsSelect as ba, GalleryItemsSelect as bb, FlowsSelect as bc, FlowNodeTypesSelect as bd, FlowEdgeTypesSelect as be, FlowCategoriesSelect as bf, FlowTagsSelect as bg, VideosSelect as bh, VideoCategoriesSelect as bi, VideoTagsSelect as bj, LiveStreamsSelect as bk, FormsSelect as bl, FormSubmissionsSelect as bm, PayloadKvSelect as bn, PayloadLockedDocumentsSelect as bo, PayloadPreferencesSelect as bp, PayloadMigrationsSelect as bq, CollectionsWidget as br, Auth as bs, 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 };
|