@01.software/sdk 0.5.8 → 0.5.10

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.
@@ -87,6 +87,14 @@ interface Config {
87
87
  'video-categories': VideoCategory;
88
88
  'video-tags': VideoTag;
89
89
  'live-streams': LiveStream;
90
+ threads: Thread;
91
+ comments: Comment;
92
+ reactions: Reaction;
93
+ 'reaction-types': ReactionType;
94
+ bookmarks: Bookmark;
95
+ 'thread-categories': ThreadCategory;
96
+ reports: Report;
97
+ 'community-bans': CommunityBan;
90
98
  forms: Form;
91
99
  'form-submissions': FormSubmission;
92
100
  'payload-kv': PayloadKv;
@@ -141,6 +149,9 @@ interface Config {
141
149
  galleries: {
142
150
  items: 'gallery-items';
143
151
  };
152
+ threads: {
153
+ comments: 'comments';
154
+ };
144
155
  };
145
156
  collectionsSelect: {
146
157
  users: UsersSelect<false> | UsersSelect<true>;
@@ -209,6 +220,14 @@ interface Config {
209
220
  'video-categories': VideoCategoriesSelect<false> | VideoCategoriesSelect<true>;
210
221
  'video-tags': VideoTagsSelect<false> | VideoTagsSelect<true>;
211
222
  'live-streams': LiveStreamsSelect<false> | LiveStreamsSelect<true>;
223
+ threads: ThreadsSelect<false> | ThreadsSelect<true>;
224
+ comments: CommentsSelect<false> | CommentsSelect<true>;
225
+ reactions: ReactionsSelect<false> | ReactionsSelect<true>;
226
+ 'reaction-types': ReactionTypesSelect<false> | ReactionTypesSelect<true>;
227
+ bookmarks: BookmarksSelect<false> | BookmarksSelect<true>;
228
+ 'thread-categories': ThreadCategoriesSelect<false> | ThreadCategoriesSelect<true>;
229
+ reports: ReportsSelect<false> | ReportsSelect<true>;
230
+ 'community-bans': CommunityBansSelect<false> | CommunityBansSelect<true>;
212
231
  forms: FormsSelect<false> | FormsSelect<true>;
213
232
  'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
214
233
  'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
@@ -351,11 +370,15 @@ interface Tenant {
351
370
  */
352
371
  owner: string | User;
353
372
  plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
354
- features?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'flows' | 'videos' | 'live-streaming')[] | null;
373
+ features?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'posts' | 'documents' | 'flows' | 'videos' | 'live-streaming' | 'community')[] | null;
355
374
  /**
356
375
  * Require email verification on customer registration. Verification token is delivered via webhook (operation: verification). You must configure a webhook URL first.
357
376
  */
358
377
  requireEmailVerification?: boolean | null;
378
+ /**
379
+ * When enabled, new threads require admin approval before being published.
380
+ */
381
+ requirePostApproval?: boolean | null;
359
382
  /**
360
383
  * Dev mode shows configuration tools like the field settings panel. Turn off after setup for a clean production UI.
361
384
  */
@@ -410,7 +433,7 @@ interface Tenant {
410
433
  interface FieldConfig {
411
434
  id: string;
412
435
  tenant?: (string | null) | Tenant;
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';
436
+ collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'customers' | 'customer-groups' | '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' | 'threads' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'thread-categories';
414
437
  isHidden?: boolean | null;
415
438
  hiddenFields?: {
416
439
  [k: string]: unknown;
@@ -1403,8 +1426,8 @@ interface VideoTag {
1403
1426
  */
1404
1427
  interface ProductVariant {
1405
1428
  id: string;
1406
- _order?: string | null;
1407
1429
  '_product-variants_variants_order'?: string | null;
1430
+ _order?: string | null;
1408
1431
  tenant?: (string | null) | Tenant;
1409
1432
  product: string | Product;
1410
1433
  title: string;
@@ -1453,9 +1476,9 @@ interface ProductVariant {
1453
1476
  */
1454
1477
  interface ProductOption {
1455
1478
  id: string;
1456
- _order?: string | null;
1457
1479
  '_product-options_productOptions_order'?: string | null;
1458
1480
  '_product-options_options_order'?: string | null;
1481
+ _order?: string | null;
1459
1482
  tenant?: (string | null) | Tenant;
1460
1483
  product: string | Product;
1461
1484
  variant?: (string | null) | ProductVariant;
@@ -1466,7 +1489,7 @@ interface ProductOption {
1466
1489
  sku?: string | null;
1467
1490
  stock: number;
1468
1491
  /**
1469
- * Reserved by carts (available = stock - reservedStock)
1492
+ * Paid orders in transit (informational stock alone gates new purchases)
1470
1493
  */
1471
1494
  reservedStock?: number | null;
1472
1495
  /**
@@ -1623,7 +1646,7 @@ interface Brand {
1623
1646
  */
1624
1647
  generateSlug?: boolean | null;
1625
1648
  slug?: string | null;
1626
- status?: ('draft' | 'published') | null;
1649
+ status?: ('draft' | 'published' | 'archived') | null;
1627
1650
  isFeatured?: boolean | null;
1628
1651
  publishedAt?: string | null;
1629
1652
  metadata?: {
@@ -2769,8 +2792,8 @@ interface PlaylistTag {
2769
2792
  */
2770
2793
  interface Music {
2771
2794
  id: string;
2772
- _order?: string | null;
2773
2795
  _musics_musics_order?: string | null;
2796
+ _order?: string | null;
2774
2797
  tenant?: (string | null) | Tenant;
2775
2798
  playlist: string | Playlist;
2776
2799
  url: string;
@@ -2935,7 +2958,7 @@ interface Gallery {
2935
2958
  generateSlug?: boolean | null;
2936
2959
  slug?: string | null;
2937
2960
  thumbnail?: (string | null) | Image;
2938
- status: 'draft' | 'published' | 'archived';
2961
+ status?: ('draft' | 'published' | 'archived') | null;
2939
2962
  isFeatured?: boolean | null;
2940
2963
  publishedAt?: string | null;
2941
2964
  metadata?: {
@@ -3001,8 +3024,8 @@ interface GalleryTag {
3001
3024
  */
3002
3025
  interface GalleryItem {
3003
3026
  id: string;
3004
- _order?: string | null;
3005
3027
  '_gallery-items_items_order'?: string | null;
3028
+ _order?: string | null;
3006
3029
  tenant?: (string | null) | Tenant;
3007
3030
  gallery: string | Gallery;
3008
3031
  title?: string | null;
@@ -3059,7 +3082,7 @@ interface Link {
3059
3082
  slug?: string | null;
3060
3083
  type?: ('external' | 'social' | 'internal') | null;
3061
3084
  thumbnail?: (string | null) | Image;
3062
- status: 'draft' | 'published' | 'archived';
3085
+ status?: ('draft' | 'published' | 'archived') | null;
3063
3086
  isFeatured?: boolean | null;
3064
3087
  metadata?: {
3065
3088
  [k: string]: unknown;
@@ -3347,6 +3370,204 @@ interface FlowEdgeType {
3347
3370
  createdAt: string;
3348
3371
  deletedAt?: string | null;
3349
3372
  }
3373
+ /**
3374
+ * This interface was referenced by `Config`'s JSON-Schema
3375
+ * via the `definition` "threads".
3376
+ */
3377
+ interface Thread {
3378
+ id: string;
3379
+ _order?: string | null;
3380
+ tenant?: (string | null) | Tenant;
3381
+ title: string;
3382
+ content?: {
3383
+ root: {
3384
+ type: string;
3385
+ children: {
3386
+ type: any;
3387
+ version: number;
3388
+ [k: string]: unknown;
3389
+ }[];
3390
+ direction: ('ltr' | 'rtl') | null;
3391
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
3392
+ indent: number;
3393
+ version: number;
3394
+ };
3395
+ [k: string]: unknown;
3396
+ } | null;
3397
+ categories?: (string | ThreadCategory)[] | null;
3398
+ comments?: {
3399
+ docs?: (string | Comment)[];
3400
+ hasNextPage?: boolean;
3401
+ totalDocs?: number;
3402
+ };
3403
+ /**
3404
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
3405
+ */
3406
+ generateSlug?: boolean | null;
3407
+ slug?: string | null;
3408
+ thumbnail?: (string | null) | Image;
3409
+ customer: string | Customer;
3410
+ moderationStatus?: ('pending' | 'approved' | 'rejected' | 'reported' | 'hidden') | null;
3411
+ viewCount?: number | null;
3412
+ commentCount?: number | null;
3413
+ reactionCount?: number | null;
3414
+ reportCount?: number | null;
3415
+ isPinned?: boolean | null;
3416
+ allowComments?: boolean | null;
3417
+ isFeatured?: boolean | null;
3418
+ publishedAt?: string | null;
3419
+ metadata?: {
3420
+ [k: string]: unknown;
3421
+ } | unknown[] | string | number | boolean | null;
3422
+ updatedAt: string;
3423
+ createdAt: string;
3424
+ deletedAt?: string | null;
3425
+ }
3426
+ /**
3427
+ * This interface was referenced by `Config`'s JSON-Schema
3428
+ * via the `definition` "thread-categories".
3429
+ */
3430
+ interface ThreadCategory {
3431
+ id: string;
3432
+ _order?: string | null;
3433
+ tenant?: (string | null) | Tenant;
3434
+ title: string;
3435
+ /**
3436
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
3437
+ */
3438
+ generateSlug?: boolean | null;
3439
+ slug?: string | null;
3440
+ /**
3441
+ * Short summary for listing/cards
3442
+ */
3443
+ description?: string | null;
3444
+ image?: (string | null) | Image;
3445
+ parent?: (string | null) | ThreadCategory;
3446
+ color?: string | null;
3447
+ updatedAt: string;
3448
+ createdAt: string;
3449
+ deletedAt?: string | null;
3450
+ }
3451
+ /**
3452
+ * This interface was referenced by `Config`'s JSON-Schema
3453
+ * via the `definition` "comments".
3454
+ */
3455
+ interface Comment {
3456
+ id: string;
3457
+ tenant?: (string | null) | Tenant;
3458
+ thread: string | Thread;
3459
+ customer: string | Customer;
3460
+ content: string;
3461
+ parent?: (string | null) | Comment;
3462
+ depth?: number | null;
3463
+ rootId?: string | null;
3464
+ status?: ('published' | 'hidden' | 'reported') | null;
3465
+ isEdited?: boolean | null;
3466
+ reactionCount?: number | null;
3467
+ reportCount?: number | null;
3468
+ metadata?: {
3469
+ [k: string]: unknown;
3470
+ } | unknown[] | string | number | boolean | null;
3471
+ updatedAt: string;
3472
+ createdAt: string;
3473
+ }
3474
+ /**
3475
+ * This interface was referenced by `Config`'s JSON-Schema
3476
+ * via the `definition` "reactions".
3477
+ */
3478
+ interface Reaction {
3479
+ id: string;
3480
+ tenant?: (string | null) | Tenant;
3481
+ thread?: (string | null) | Thread;
3482
+ comment?: (string | null) | Comment;
3483
+ customer: string | Customer;
3484
+ type: string | ReactionType;
3485
+ metadata?: {
3486
+ [k: string]: unknown;
3487
+ } | unknown[] | string | number | boolean | null;
3488
+ updatedAt: string;
3489
+ createdAt: string;
3490
+ }
3491
+ /**
3492
+ * This interface was referenced by `Config`'s JSON-Schema
3493
+ * via the `definition` "reaction-types".
3494
+ */
3495
+ interface ReactionType {
3496
+ id: string;
3497
+ _order?: string | null;
3498
+ tenant?: (string | null) | Tenant;
3499
+ title: string;
3500
+ /**
3501
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
3502
+ */
3503
+ generateSlug?: boolean | null;
3504
+ slug?: string | null;
3505
+ /**
3506
+ * Emoji (e.g. 👍)
3507
+ */
3508
+ emoji?: string | null;
3509
+ /**
3510
+ * Icon name or path
3511
+ */
3512
+ icon?: string | null;
3513
+ metadata?: {
3514
+ [k: string]: unknown;
3515
+ } | unknown[] | string | number | boolean | null;
3516
+ updatedAt: string;
3517
+ createdAt: string;
3518
+ deletedAt?: string | null;
3519
+ }
3520
+ /**
3521
+ * This interface was referenced by `Config`'s JSON-Schema
3522
+ * via the `definition` "bookmarks".
3523
+ */
3524
+ interface Bookmark {
3525
+ id: string;
3526
+ tenant?: (string | null) | Tenant;
3527
+ thread: string | Thread;
3528
+ customer: string | Customer;
3529
+ metadata?: {
3530
+ [k: string]: unknown;
3531
+ } | unknown[] | string | number | boolean | null;
3532
+ updatedAt: string;
3533
+ createdAt: string;
3534
+ }
3535
+ /**
3536
+ * This interface was referenced by `Config`'s JSON-Schema
3537
+ * via the `definition` "reports".
3538
+ */
3539
+ interface Report {
3540
+ id: string;
3541
+ tenant?: (string | null) | Tenant;
3542
+ target?: (string | null) | Thread;
3543
+ targetComment?: (string | null) | Comment;
3544
+ customer: string | Customer;
3545
+ reason: 'spam' | 'harassment' | 'inappropriate' | 'off-topic' | 'other';
3546
+ reasonDetail?: string | null;
3547
+ updatedAt: string;
3548
+ createdAt: string;
3549
+ }
3550
+ /**
3551
+ * This interface was referenced by `Config`'s JSON-Schema
3552
+ * via the `definition` "community-bans".
3553
+ */
3554
+ interface CommunityBan {
3555
+ id: string;
3556
+ tenant?: (string | null) | Tenant;
3557
+ customer: string | Customer;
3558
+ /**
3559
+ * Temp ban expiry. null means check isPermanent
3560
+ */
3561
+ bannedUntil?: string | null;
3562
+ isPermanent: boolean;
3563
+ reason?: string | null;
3564
+ /**
3565
+ * Admin who issued the ban (auto-set)
3566
+ */
3567
+ bannedBy?: (string | null) | User;
3568
+ updatedAt: string;
3569
+ createdAt: string;
3570
+ }
3350
3571
  /**
3351
3572
  * This interface was referenced by `Config`'s JSON-Schema
3352
3573
  * via the `definition` "forms".
@@ -3360,7 +3581,7 @@ interface Form {
3360
3581
  * Short summary for listing/cards
3361
3582
  */
3362
3583
  description?: string | null;
3363
- status: 'active' | 'inactive';
3584
+ status?: ('active' | 'inactive') | null;
3364
3585
  /**
3365
3586
  * When enabled, the slug will auto-generate from the title field on save and autosave.
3366
3587
  */
@@ -3751,6 +3972,30 @@ interface PayloadLockedDocument {
3751
3972
  } | null) | ({
3752
3973
  relationTo: 'live-streams';
3753
3974
  value: string | LiveStream;
3975
+ } | null) | ({
3976
+ relationTo: 'threads';
3977
+ value: string | Thread;
3978
+ } | null) | ({
3979
+ relationTo: 'comments';
3980
+ value: string | Comment;
3981
+ } | null) | ({
3982
+ relationTo: 'reactions';
3983
+ value: string | Reaction;
3984
+ } | null) | ({
3985
+ relationTo: 'reaction-types';
3986
+ value: string | ReactionType;
3987
+ } | null) | ({
3988
+ relationTo: 'bookmarks';
3989
+ value: string | Bookmark;
3990
+ } | null) | ({
3991
+ relationTo: 'thread-categories';
3992
+ value: string | ThreadCategory;
3993
+ } | null) | ({
3994
+ relationTo: 'reports';
3995
+ value: string | Report;
3996
+ } | null) | ({
3997
+ relationTo: 'community-bans';
3998
+ value: string | CommunityBan;
3754
3999
  } | null) | ({
3755
4000
  relationTo: 'forms';
3756
4001
  value: string | Form;
@@ -3979,6 +4224,7 @@ interface TenantsSelect<T extends boolean = true> {
3979
4224
  plan?: T;
3980
4225
  features?: T;
3981
4226
  requireEmailVerification?: T;
4227
+ requirePostApproval?: T;
3982
4228
  devMode?: T;
3983
4229
  cors?: T | {
3984
4230
  origin?: T;
@@ -4285,8 +4531,8 @@ interface ProductsSelect<T extends boolean = true> {
4285
4531
  * via the `definition` "product-variants_select".
4286
4532
  */
4287
4533
  interface ProductVariantsSelect<T extends boolean = true> {
4288
- _order?: T;
4289
4534
  '_product-variants_variants_order'?: T;
4535
+ _order?: T;
4290
4536
  tenant?: T;
4291
4537
  product?: T;
4292
4538
  title?: T;
@@ -4310,9 +4556,9 @@ interface ProductVariantsSelect<T extends boolean = true> {
4310
4556
  * via the `definition` "product-options_select".
4311
4557
  */
4312
4558
  interface ProductOptionsSelect<T extends boolean = true> {
4313
- _order?: T;
4314
4559
  '_product-options_productOptions_order'?: T;
4315
4560
  '_product-options_options_order'?: T;
4561
+ _order?: T;
4316
4562
  tenant?: T;
4317
4563
  product?: T;
4318
4564
  variant?: T;
@@ -5143,8 +5389,8 @@ interface PlaylistTagsSelect<T extends boolean = true> {
5143
5389
  * via the `definition` "musics_select".
5144
5390
  */
5145
5391
  interface MusicsSelect<T extends boolean = true> {
5146
- _order?: T;
5147
5392
  _musics_musics_order?: T;
5393
+ _order?: T;
5148
5394
  tenant?: T;
5149
5395
  playlist?: T;
5150
5396
  url?: T;
@@ -5281,8 +5527,8 @@ interface GalleryTagsSelect<T extends boolean = true> {
5281
5527
  * via the `definition` "gallery-items_select".
5282
5528
  */
5283
5529
  interface GalleryItemsSelect<T extends boolean = true> {
5284
- _order?: T;
5285
5530
  '_gallery-items_items_order'?: T;
5531
+ _order?: T;
5286
5532
  tenant?: T;
5287
5533
  gallery?: T;
5288
5534
  title?: T;
@@ -5611,6 +5857,144 @@ interface LiveStreamsSelect<T extends boolean = true> {
5611
5857
  createdAt?: T;
5612
5858
  deletedAt?: T;
5613
5859
  }
5860
+ /**
5861
+ * This interface was referenced by `Config`'s JSON-Schema
5862
+ * via the `definition` "threads_select".
5863
+ */
5864
+ interface ThreadsSelect<T extends boolean = true> {
5865
+ _order?: T;
5866
+ tenant?: T;
5867
+ title?: T;
5868
+ content?: T;
5869
+ categories?: T;
5870
+ comments?: T;
5871
+ generateSlug?: T;
5872
+ slug?: T;
5873
+ thumbnail?: T;
5874
+ customer?: T;
5875
+ moderationStatus?: T;
5876
+ viewCount?: T;
5877
+ commentCount?: T;
5878
+ reactionCount?: T;
5879
+ reportCount?: T;
5880
+ isPinned?: T;
5881
+ allowComments?: T;
5882
+ isFeatured?: T;
5883
+ publishedAt?: T;
5884
+ metadata?: T;
5885
+ updatedAt?: T;
5886
+ createdAt?: T;
5887
+ deletedAt?: T;
5888
+ }
5889
+ /**
5890
+ * This interface was referenced by `Config`'s JSON-Schema
5891
+ * via the `definition` "comments_select".
5892
+ */
5893
+ interface CommentsSelect<T extends boolean = true> {
5894
+ tenant?: T;
5895
+ thread?: T;
5896
+ customer?: T;
5897
+ content?: T;
5898
+ parent?: T;
5899
+ depth?: T;
5900
+ rootId?: T;
5901
+ status?: T;
5902
+ isEdited?: T;
5903
+ reactionCount?: T;
5904
+ reportCount?: T;
5905
+ metadata?: T;
5906
+ updatedAt?: T;
5907
+ createdAt?: T;
5908
+ }
5909
+ /**
5910
+ * This interface was referenced by `Config`'s JSON-Schema
5911
+ * via the `definition` "reactions_select".
5912
+ */
5913
+ interface ReactionsSelect<T extends boolean = true> {
5914
+ tenant?: T;
5915
+ thread?: T;
5916
+ comment?: T;
5917
+ customer?: T;
5918
+ type?: T;
5919
+ metadata?: T;
5920
+ updatedAt?: T;
5921
+ createdAt?: T;
5922
+ }
5923
+ /**
5924
+ * This interface was referenced by `Config`'s JSON-Schema
5925
+ * via the `definition` "reaction-types_select".
5926
+ */
5927
+ interface ReactionTypesSelect<T extends boolean = true> {
5928
+ _order?: T;
5929
+ tenant?: T;
5930
+ title?: T;
5931
+ generateSlug?: T;
5932
+ slug?: T;
5933
+ emoji?: T;
5934
+ icon?: T;
5935
+ metadata?: T;
5936
+ updatedAt?: T;
5937
+ createdAt?: T;
5938
+ deletedAt?: T;
5939
+ }
5940
+ /**
5941
+ * This interface was referenced by `Config`'s JSON-Schema
5942
+ * via the `definition` "bookmarks_select".
5943
+ */
5944
+ interface BookmarksSelect<T extends boolean = true> {
5945
+ tenant?: T;
5946
+ thread?: T;
5947
+ customer?: T;
5948
+ metadata?: T;
5949
+ updatedAt?: T;
5950
+ createdAt?: T;
5951
+ }
5952
+ /**
5953
+ * This interface was referenced by `Config`'s JSON-Schema
5954
+ * via the `definition` "thread-categories_select".
5955
+ */
5956
+ interface ThreadCategoriesSelect<T extends boolean = true> {
5957
+ _order?: T;
5958
+ tenant?: T;
5959
+ title?: T;
5960
+ generateSlug?: T;
5961
+ slug?: T;
5962
+ description?: T;
5963
+ image?: T;
5964
+ parent?: T;
5965
+ color?: T;
5966
+ updatedAt?: T;
5967
+ createdAt?: T;
5968
+ deletedAt?: T;
5969
+ }
5970
+ /**
5971
+ * This interface was referenced by `Config`'s JSON-Schema
5972
+ * via the `definition` "reports_select".
5973
+ */
5974
+ interface ReportsSelect<T extends boolean = true> {
5975
+ tenant?: T;
5976
+ target?: T;
5977
+ targetComment?: T;
5978
+ customer?: T;
5979
+ reason?: T;
5980
+ reasonDetail?: T;
5981
+ updatedAt?: T;
5982
+ createdAt?: T;
5983
+ }
5984
+ /**
5985
+ * This interface was referenced by `Config`'s JSON-Schema
5986
+ * via the `definition` "community-bans_select".
5987
+ */
5988
+ interface CommunityBansSelect<T extends boolean = true> {
5989
+ tenant?: T;
5990
+ customer?: T;
5991
+ bannedUntil?: T;
5992
+ isPermanent?: T;
5993
+ reason?: T;
5994
+ bannedBy?: T;
5995
+ updatedAt?: T;
5996
+ createdAt?: T;
5997
+ }
5614
5998
  /**
5615
5999
  * This interface was referenced by `Config`'s JSON-Schema
5616
6000
  * via the `definition` "forms_select".
@@ -5804,4 +6188,4 @@ declare module 'payload' {
5804
6188
  }
5805
6189
  }
5806
6190
 
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 };
6191
+ 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, ShippingPoliciesSelect 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, SystemMediaSelect as aA, AudiencesSelect as aB, EmailLogsSelect as aC, TenantsSelect as aD, TenantMetadataSelect as aE, ApiUsageSelect as aF, SubscriptionsSelect as aG, BillingHistorySelect as aH, TenantLogosSelect as aI, ProductsSelect as aJ, ProductVariantsSelect as aK, ProductOptionsSelect as aL, ProductCategoriesSelect as aM, ProductTagsSelect as aN, ProductCollectionsSelect as aO, BrandsSelect as aP, BrandLogosSelect as aQ, OrdersSelect as aR, OrderProductsSelect as aS, TransactionsSelect as aT, OrderStatusLogsSelect as aU, FulfillmentsSelect as aV, FulfillmentItemsSelect as aW, ReturnsSelect as aX, ReturnProductsSelect as aY, ExchangesSelect as aZ, ExchangeProductsSelect 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, Thread as ak, ThreadCategory as al, Comment as am, Reaction as an, ReactionType as ao, Bookmark as ap, Report as aq, CommunityBan as ar, FormSubmission as as, PayloadKv as at, PayloadLockedDocument as au, PayloadPreference as av, PayloadMigration as aw, UsersSelect as ax, FieldConfigsSelect as ay, ImagesSelect as az, Fulfillment as b, CustomersSelect as b0, CustomerAddressesSelect as b1, CustomerGroupsSelect as b2, CartsSelect as b3, CartItemsSelect as b4, DiscountsSelect as b5, PostsSelect as b6, PostAuthorsSelect as b7, PostCategoriesSelect as b8, PostTagsSelect as b9, CommentsSelect as bA, ReactionsSelect as bB, ReactionTypesSelect as bC, BookmarksSelect as bD, ThreadCategoriesSelect as bE, ReportsSelect as bF, CommunityBansSelect as bG, FormsSelect as bH, FormSubmissionsSelect as bI, PayloadKvSelect as bJ, PayloadLockedDocumentsSelect as bK, PayloadPreferencesSelect as bL, PayloadMigrationsSelect as bM, CollectionsWidget as bN, Auth as bO, DocumentsSelect as ba, DocumentCategoriesSelect as bb, DocumentTypesSelect as bc, PlaylistsSelect as bd, PlaylistCategoriesSelect as be, PlaylistTagsSelect as bf, MusicsSelect as bg, MusicCategoriesSelect as bh, MusicTagsSelect as bi, GalleriesSelect as bj, GalleryCategoriesSelect as bk, GalleryTagsSelect as bl, GalleryItemsSelect as bm, LinksSelect as bn, LinkCategoriesSelect as bo, LinkTagsSelect as bp, FlowsSelect as bq, FlowNodeTypesSelect as br, FlowEdgeTypesSelect as bs, FlowCategoriesSelect as bt, FlowTagsSelect as bu, VideosSelect as bv, VideoCategoriesSelect as bw, VideoTagsSelect as bx, LiveStreamsSelect as by, ThreadsSelect as bz, 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 };
@@ -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-MzPYopC7.cjs';
4
- import './payload-types-CyaSGIFI.cjs';
3
+ import { P as PublicCollection } from './const-DQZQAXex.cjs';
4
+ import './payload-types-DCVm1syH.cjs';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */
@@ -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-Dde6Z3er.js';
4
- import './payload-types-CyaSGIFI.js';
3
+ import { P as PublicCollection } from './const-Bk3-zigV.js';
4
+ import './payload-types-DCVm1syH.js';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-CyaSGIFI.cjs';
2
+ import { F as Form } from '../payload-types-DCVm1syH.cjs';
3
3
  import { RichTextData } from './rich-text.cjs';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
package/dist/ui/form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-CyaSGIFI.js';
2
+ import { F as Form } from '../payload-types-DCVm1syH.js';
3
3
  import { RichTextData } from './rich-text.js';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-CyaSGIFI.cjs';
4
+ import { V as Video } from '../payload-types-DCVm1syH.cjs';
5
5
  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';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-CyaSGIFI.js';
4
+ import { V as Video } from '../payload-types-DCVm1syH.js';
5
5
  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';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,5 +1,5 @@
1
- import { C as Collection } from './const-Dde6Z3er.js';
2
- import { C as Config } from './payload-types-CyaSGIFI.js';
1
+ import { C as Collection } from './const-Bk3-zigV.js';
2
+ import { C as Config } from './payload-types-DCVm1syH.js';
3
3
 
4
4
  type CollectionType<T extends string> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
5
5
 
@@ -1,5 +1,5 @@
1
- import { C as Collection } from './const-MzPYopC7.cjs';
2
- import { C as Config } from './payload-types-CyaSGIFI.cjs';
1
+ import { C as Collection } from './const-DQZQAXex.cjs';
2
+ import { C as Config } from './payload-types-DCVm1syH.cjs';
3
3
 
4
4
  type CollectionType<T extends string> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
5
5
 
@@ -1,3 +1,3 @@
1
- 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';
2
- import './const-MzPYopC7.cjs';
3
- import './payload-types-CyaSGIFI.cjs';
1
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-TDfT7aKA.cjs';
2
+ import './const-DQZQAXex.cjs';
3
+ import './payload-types-DCVm1syH.cjs';