@01.software/sdk 0.21.0 → 0.22.0

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.
@@ -103,6 +103,7 @@ interface Config {
103
103
  'event-tags': EventTag;
104
104
  'event-occurrences': EventOccurrence;
105
105
  'event-registrations': EventRegistration;
106
+ 'direct-upload-sessions': DirectUploadSession;
106
107
  forms: Form;
107
108
  'form-submissions': FormSubmission;
108
109
  'payload-kv': PayloadKv;
@@ -250,6 +251,7 @@ interface Config {
250
251
  'event-tags': EventTagsSelect<false> | EventTagsSelect<true>;
251
252
  'event-occurrences': EventOccurrencesSelect<false> | EventOccurrencesSelect<true>;
252
253
  'event-registrations': EventRegistrationsSelect<false> | EventRegistrationsSelect<true>;
254
+ 'direct-upload-sessions': DirectUploadSessionsSelect<false> | DirectUploadSessionsSelect<true>;
253
255
  forms: FormsSelect<false> | FormsSelect<true>;
254
256
  'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
255
257
  'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
@@ -425,6 +427,10 @@ interface Tenant {
425
427
  * Only features checked above will be enabled for this tenant.
426
428
  */
427
429
  enabledFeatures?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'articles' | 'documents' | 'canvas' | 'videos' | 'live-streaming' | 'community' | 'events')[] | null;
430
+ /**
431
+ * Only selected relationship recipes are active for this tenant. Recipes whose required features are disabled keep their stored intent but remain inactive at runtime.
432
+ */
433
+ enabledRelationshipRecipes?: ('event-commerce' | 'shoppable-content' | 'product-content-access' | 'form-context' | 'document-acceptance')[] | null;
428
434
  featureVersion?: number | null;
429
435
  /**
430
436
  * Dev mode shows configuration tools like the field settings panel. Turn off after setup for a clean production UI.
@@ -518,6 +524,9 @@ interface Image {
518
524
  lightMuted?: string | null;
519
525
  };
520
526
  prefix?: string | null;
527
+ uploadStatus?: ('ready' | 'finalizing' | 'failed') | null;
528
+ processingStatus?: ('ready' | 'processing' | 'failed') | null;
529
+ processingError?: string | null;
521
530
  updatedAt: string;
522
531
  createdAt: string;
523
532
  deletedAt?: string | null;
@@ -4682,6 +4691,10 @@ interface Event {
4682
4691
  } | null;
4683
4692
  categories?: (string | EventCategory)[] | null;
4684
4693
  tags?: (string | EventTag)[] | null;
4694
+ /**
4695
+ * Products shown with this event. Available only when the Event commerce recipe is active for the tenant.
4696
+ */
4697
+ products?: (string | Product)[] | null;
4685
4698
  organizer?: {
4686
4699
  name?: string | null;
4687
4700
  url?: string | null;
@@ -4715,7 +4728,7 @@ interface Event {
4715
4728
  privateNote?: string | null;
4716
4729
  };
4717
4730
  registrationPolicy?: ('none' | 'rsvp' | 'approval' | 'external') | null;
4718
- waitlistPolicy: 'disabled' | 'auto_waitlist';
4731
+ waitlistPolicy?: ('disabled' | 'auto_waitlist') | null;
4719
4732
  externalRegistrationUrl?: string | null;
4720
4733
  seo?: {
4721
4734
  /**
@@ -4757,7 +4770,7 @@ interface Event {
4757
4770
  status: 'draft' | 'published' | 'archived' | 'canceled';
4758
4771
  coverImage?: (string | null) | Image;
4759
4772
  visibility: 'inherit' | 'public' | 'unlisted' | 'members' | 'private';
4760
- sourceType: 'native' | 'external';
4773
+ sourceType?: ('native' | 'external') | null;
4761
4774
  externalSource?: {
4762
4775
  provider?: string | null;
4763
4776
  sourceId?: string | null;
@@ -4945,6 +4958,33 @@ interface EventRegistration {
4945
4958
  createdAt: string;
4946
4959
  deletedAt?: string | null;
4947
4960
  }
4961
+ /**
4962
+ * This interface was referenced by `Config`'s JSON-Schema
4963
+ * via the `definition` "direct-upload-sessions".
4964
+ */
4965
+ interface DirectUploadSession {
4966
+ id: string;
4967
+ tenant?: (string | null) | Tenant;
4968
+ collectionSlug: string;
4969
+ status: 'created' | 'uploading' | 'uploaded' | 'hydrating' | 'finalizing' | 'ready' | 'aborted' | 'expired' | 'errored';
4970
+ originalFilename: string;
4971
+ safeFilename: string;
4972
+ finalFilename: string;
4973
+ mimeType: string;
4974
+ expectedBytes: number;
4975
+ actualBytes?: number | null;
4976
+ temporaryObjectKey: string;
4977
+ finalObjectKey: string;
4978
+ quotaReservedBytes?: number | null;
4979
+ quotaAdjustmentBytes?: number | null;
4980
+ expiresAt: string;
4981
+ createdBy?: (string | null) | User;
4982
+ completedAt?: string | null;
4983
+ abortedAt?: string | null;
4984
+ error?: string | null;
4985
+ updatedAt: string;
4986
+ createdAt: string;
4987
+ }
4948
4988
  /**
4949
4989
  * This interface was referenced by `Config`'s JSON-Schema
4950
4990
  * via the `definition` "forms".
@@ -5433,6 +5473,9 @@ interface PayloadLockedDocument {
5433
5473
  } | null) | ({
5434
5474
  relationTo: 'event-registrations';
5435
5475
  value: string | EventRegistration;
5476
+ } | null) | ({
5477
+ relationTo: 'direct-upload-sessions';
5478
+ value: string | DirectUploadSession;
5436
5479
  } | null) | ({
5437
5480
  relationTo: 'forms';
5438
5481
  value: string | Form;
@@ -5559,6 +5602,9 @@ interface ImagesSelect<T extends boolean = true> {
5559
5602
  lightMuted?: T;
5560
5603
  };
5561
5604
  prefix?: T;
5605
+ uploadStatus?: T;
5606
+ processingStatus?: T;
5607
+ processingError?: T;
5562
5608
  updatedAt?: T;
5563
5609
  createdAt?: T;
5564
5610
  deletedAt?: T;
@@ -5765,6 +5811,7 @@ interface TenantsSelect<T extends boolean = true> {
5765
5811
  slug?: T;
5766
5812
  owner?: T;
5767
5813
  enabledFeatures?: T;
5814
+ enabledRelationshipRecipes?: T;
5768
5815
  featureVersion?: T;
5769
5816
  isDevMode?: T;
5770
5817
  status?: T;
@@ -7999,6 +8046,7 @@ interface EventsSelect<T extends boolean = true> {
7999
8046
  content?: T;
8000
8047
  categories?: T;
8001
8048
  tags?: T;
8049
+ products?: T;
8002
8050
  organizer?: T | {
8003
8051
  name?: T;
8004
8052
  url?: T;
@@ -8177,6 +8225,32 @@ interface EventRegistrationsSelect<T extends boolean = true> {
8177
8225
  createdAt?: T;
8178
8226
  deletedAt?: T;
8179
8227
  }
8228
+ /**
8229
+ * This interface was referenced by `Config`'s JSON-Schema
8230
+ * via the `definition` "direct-upload-sessions_select".
8231
+ */
8232
+ interface DirectUploadSessionsSelect<T extends boolean = true> {
8233
+ tenant?: T;
8234
+ collectionSlug?: T;
8235
+ status?: T;
8236
+ originalFilename?: T;
8237
+ safeFilename?: T;
8238
+ finalFilename?: T;
8239
+ mimeType?: T;
8240
+ expectedBytes?: T;
8241
+ actualBytes?: T;
8242
+ temporaryObjectKey?: T;
8243
+ finalObjectKey?: T;
8244
+ quotaReservedBytes?: T;
8245
+ quotaAdjustmentBytes?: T;
8246
+ expiresAt?: T;
8247
+ createdBy?: T;
8248
+ completedAt?: T;
8249
+ abortedAt?: T;
8250
+ error?: T;
8251
+ updatedAt?: T;
8252
+ createdAt?: T;
8253
+ }
8180
8254
  /**
8181
8255
  * This interface was referenced by `Config`'s JSON-Schema
8182
8256
  * via the `definition` "forms_select".
@@ -8363,4 +8437,4 @@ declare module 'payload' {
8363
8437
  }
8364
8438
  }
8365
8439
 
8366
- export type { Article as A, Config as C, Document as D, Form as F, Image as I, Order as O, Product as P, Return as R, Transaction as T, Video as V, Cart as a, CartItem as b, OrderItem as c, Fulfillment as d, ArticleAuthor as e, ArticleCategory as f, ArticleTag as g, Post as h, PostCategory as i, ProductVariant as j, Tenant as k, CustomerProfile as l, Comment as m, Reaction as n };
8440
+ export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Order as O, Post as P, Reaction as R, Tenant as T, Video as V, Comment as a, Config as b, Cart as c, CartItem as d, Product as e, ArticleAuthor as f, ArticleCategory as g, ArticleTag as h, PostCategory as i, ProductVariant as j, OrderItem as k, Transaction as l, Fulfillment as m, Return as n };
@@ -103,6 +103,7 @@ interface Config {
103
103
  'event-tags': EventTag;
104
104
  'event-occurrences': EventOccurrence;
105
105
  'event-registrations': EventRegistration;
106
+ 'direct-upload-sessions': DirectUploadSession;
106
107
  forms: Form;
107
108
  'form-submissions': FormSubmission;
108
109
  'payload-kv': PayloadKv;
@@ -250,6 +251,7 @@ interface Config {
250
251
  'event-tags': EventTagsSelect<false> | EventTagsSelect<true>;
251
252
  'event-occurrences': EventOccurrencesSelect<false> | EventOccurrencesSelect<true>;
252
253
  'event-registrations': EventRegistrationsSelect<false> | EventRegistrationsSelect<true>;
254
+ 'direct-upload-sessions': DirectUploadSessionsSelect<false> | DirectUploadSessionsSelect<true>;
253
255
  forms: FormsSelect<false> | FormsSelect<true>;
254
256
  'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
255
257
  'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
@@ -425,6 +427,10 @@ interface Tenant {
425
427
  * Only features checked above will be enabled for this tenant.
426
428
  */
427
429
  enabledFeatures?: ('ecommerce' | 'customers' | 'playlists' | 'galleries' | 'links' | 'forms' | 'articles' | 'documents' | 'canvas' | 'videos' | 'live-streaming' | 'community' | 'events')[] | null;
430
+ /**
431
+ * Only selected relationship recipes are active for this tenant. Recipes whose required features are disabled keep their stored intent but remain inactive at runtime.
432
+ */
433
+ enabledRelationshipRecipes?: ('event-commerce' | 'shoppable-content' | 'product-content-access' | 'form-context' | 'document-acceptance')[] | null;
428
434
  featureVersion?: number | null;
429
435
  /**
430
436
  * Dev mode shows configuration tools like the field settings panel. Turn off after setup for a clean production UI.
@@ -518,6 +524,9 @@ interface Image {
518
524
  lightMuted?: string | null;
519
525
  };
520
526
  prefix?: string | null;
527
+ uploadStatus?: ('ready' | 'finalizing' | 'failed') | null;
528
+ processingStatus?: ('ready' | 'processing' | 'failed') | null;
529
+ processingError?: string | null;
521
530
  updatedAt: string;
522
531
  createdAt: string;
523
532
  deletedAt?: string | null;
@@ -4682,6 +4691,10 @@ interface Event {
4682
4691
  } | null;
4683
4692
  categories?: (string | EventCategory)[] | null;
4684
4693
  tags?: (string | EventTag)[] | null;
4694
+ /**
4695
+ * Products shown with this event. Available only when the Event commerce recipe is active for the tenant.
4696
+ */
4697
+ products?: (string | Product)[] | null;
4685
4698
  organizer?: {
4686
4699
  name?: string | null;
4687
4700
  url?: string | null;
@@ -4715,7 +4728,7 @@ interface Event {
4715
4728
  privateNote?: string | null;
4716
4729
  };
4717
4730
  registrationPolicy?: ('none' | 'rsvp' | 'approval' | 'external') | null;
4718
- waitlistPolicy: 'disabled' | 'auto_waitlist';
4731
+ waitlistPolicy?: ('disabled' | 'auto_waitlist') | null;
4719
4732
  externalRegistrationUrl?: string | null;
4720
4733
  seo?: {
4721
4734
  /**
@@ -4757,7 +4770,7 @@ interface Event {
4757
4770
  status: 'draft' | 'published' | 'archived' | 'canceled';
4758
4771
  coverImage?: (string | null) | Image;
4759
4772
  visibility: 'inherit' | 'public' | 'unlisted' | 'members' | 'private';
4760
- sourceType: 'native' | 'external';
4773
+ sourceType?: ('native' | 'external') | null;
4761
4774
  externalSource?: {
4762
4775
  provider?: string | null;
4763
4776
  sourceId?: string | null;
@@ -4945,6 +4958,33 @@ interface EventRegistration {
4945
4958
  createdAt: string;
4946
4959
  deletedAt?: string | null;
4947
4960
  }
4961
+ /**
4962
+ * This interface was referenced by `Config`'s JSON-Schema
4963
+ * via the `definition` "direct-upload-sessions".
4964
+ */
4965
+ interface DirectUploadSession {
4966
+ id: string;
4967
+ tenant?: (string | null) | Tenant;
4968
+ collectionSlug: string;
4969
+ status: 'created' | 'uploading' | 'uploaded' | 'hydrating' | 'finalizing' | 'ready' | 'aborted' | 'expired' | 'errored';
4970
+ originalFilename: string;
4971
+ safeFilename: string;
4972
+ finalFilename: string;
4973
+ mimeType: string;
4974
+ expectedBytes: number;
4975
+ actualBytes?: number | null;
4976
+ temporaryObjectKey: string;
4977
+ finalObjectKey: string;
4978
+ quotaReservedBytes?: number | null;
4979
+ quotaAdjustmentBytes?: number | null;
4980
+ expiresAt: string;
4981
+ createdBy?: (string | null) | User;
4982
+ completedAt?: string | null;
4983
+ abortedAt?: string | null;
4984
+ error?: string | null;
4985
+ updatedAt: string;
4986
+ createdAt: string;
4987
+ }
4948
4988
  /**
4949
4989
  * This interface was referenced by `Config`'s JSON-Schema
4950
4990
  * via the `definition` "forms".
@@ -5433,6 +5473,9 @@ interface PayloadLockedDocument {
5433
5473
  } | null) | ({
5434
5474
  relationTo: 'event-registrations';
5435
5475
  value: string | EventRegistration;
5476
+ } | null) | ({
5477
+ relationTo: 'direct-upload-sessions';
5478
+ value: string | DirectUploadSession;
5436
5479
  } | null) | ({
5437
5480
  relationTo: 'forms';
5438
5481
  value: string | Form;
@@ -5559,6 +5602,9 @@ interface ImagesSelect<T extends boolean = true> {
5559
5602
  lightMuted?: T;
5560
5603
  };
5561
5604
  prefix?: T;
5605
+ uploadStatus?: T;
5606
+ processingStatus?: T;
5607
+ processingError?: T;
5562
5608
  updatedAt?: T;
5563
5609
  createdAt?: T;
5564
5610
  deletedAt?: T;
@@ -5765,6 +5811,7 @@ interface TenantsSelect<T extends boolean = true> {
5765
5811
  slug?: T;
5766
5812
  owner?: T;
5767
5813
  enabledFeatures?: T;
5814
+ enabledRelationshipRecipes?: T;
5768
5815
  featureVersion?: T;
5769
5816
  isDevMode?: T;
5770
5817
  status?: T;
@@ -7999,6 +8046,7 @@ interface EventsSelect<T extends boolean = true> {
7999
8046
  content?: T;
8000
8047
  categories?: T;
8001
8048
  tags?: T;
8049
+ products?: T;
8002
8050
  organizer?: T | {
8003
8051
  name?: T;
8004
8052
  url?: T;
@@ -8177,6 +8225,32 @@ interface EventRegistrationsSelect<T extends boolean = true> {
8177
8225
  createdAt?: T;
8178
8226
  deletedAt?: T;
8179
8227
  }
8228
+ /**
8229
+ * This interface was referenced by `Config`'s JSON-Schema
8230
+ * via the `definition` "direct-upload-sessions_select".
8231
+ */
8232
+ interface DirectUploadSessionsSelect<T extends boolean = true> {
8233
+ tenant?: T;
8234
+ collectionSlug?: T;
8235
+ status?: T;
8236
+ originalFilename?: T;
8237
+ safeFilename?: T;
8238
+ finalFilename?: T;
8239
+ mimeType?: T;
8240
+ expectedBytes?: T;
8241
+ actualBytes?: T;
8242
+ temporaryObjectKey?: T;
8243
+ finalObjectKey?: T;
8244
+ quotaReservedBytes?: T;
8245
+ quotaAdjustmentBytes?: T;
8246
+ expiresAt?: T;
8247
+ createdBy?: T;
8248
+ completedAt?: T;
8249
+ abortedAt?: T;
8250
+ error?: T;
8251
+ updatedAt?: T;
8252
+ createdAt?: T;
8253
+ }
8180
8254
  /**
8181
8255
  * This interface was referenced by `Config`'s JSON-Schema
8182
8256
  * via the `definition` "forms_select".
@@ -8363,4 +8437,4 @@ declare module 'payload' {
8363
8437
  }
8364
8438
  }
8365
8439
 
8366
- export type { Article as A, Config as C, Document as D, Form as F, Image as I, Order as O, Product as P, Return as R, Transaction as T, Video as V, Cart as a, CartItem as b, OrderItem as c, Fulfillment as d, ArticleAuthor as e, ArticleCategory as f, ArticleTag as g, Post as h, PostCategory as i, ProductVariant as j, Tenant as k, CustomerProfile as l, Comment as m, Reaction as n };
8440
+ export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Order as O, Post as P, Reaction as R, Tenant as T, Video as V, Comment as a, Config as b, Cart as c, CartItem as d, Product as e, ArticleAuthor as f, ArticleCategory as g, ArticleTag as h, PostCategory as i, ProductVariant as j, OrderItem as k, Transaction as l, Fulfillment as m, Return as n };
@@ -1,7 +1,7 @@
1
1
  import { R as RealtimeEvent } from './realtime-D7HtUpqt.cjs';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
3
- import { P as PublicCollection } from './const-BApEF1Hu.cjs';
4
- import './payload-types-D7lnu9By.cjs';
3
+ import { P as PublicCollection } from './const-DraU44bA.cjs';
4
+ import './payload-types-DeLBmtzd.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-D7HtUpqt.js';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.js';
3
- import { P as PublicCollection } from './const-BNJRuk3V.js';
4
- import './payload-types-D7lnu9By.js';
3
+ import { P as PublicCollection } from './const-CfcjPbOu.js';
4
+ import './payload-types-DeLBmtzd.js';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */