@01.software/sdk 0.5.7 → 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.
@@ -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;
@@ -2384,6 +2390,7 @@ interface Post {
2384
2390
  thumbnail?: (string | null) | Image;
2385
2391
  images?: (string | Image)[] | null;
2386
2392
  publishedAt?: string | null;
2393
+ customer?: (string | null) | Customer;
2387
2394
  isFeatured?: boolean | null;
2388
2395
  /**
2389
2396
  * Read time (minutes)
@@ -3026,6 +3033,91 @@ interface GalleryItem {
3026
3033
  createdAt: string;
3027
3034
  deletedAt?: string | null;
3028
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
+ }
3029
3121
  /**
3030
3122
  * This interface was referenced by `Config`'s JSON-Schema
3031
3123
  * via the `definition` "flows".
@@ -3623,6 +3715,15 @@ interface PayloadLockedDocument {
3623
3715
  } | null) | ({
3624
3716
  relationTo: 'gallery-items';
3625
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;
3626
3727
  } | null) | ({
3627
3728
  relationTo: 'flows';
3628
3729
  value: string | Flow;
@@ -4820,6 +4921,7 @@ interface PostsSelect<T extends boolean = true> {
4820
4921
  thumbnail?: T;
4821
4922
  images?: T;
4822
4923
  publishedAt?: T;
4924
+ customer?: T;
4823
4925
  isFeatured?: T;
4824
4926
  readTime?: T;
4825
4927
  metadata?: T;
@@ -5192,6 +5294,65 @@ interface GalleryItemsSelect<T extends boolean = true> {
5192
5294
  createdAt?: T;
5193
5295
  deletedAt?: T;
5194
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
+ }
5195
5356
  /**
5196
5357
  * This interface was referenced by `Config`'s JSON-Schema
5197
5358
  * via the `definition` "flows_select".
@@ -5643,4 +5804,4 @@ declare module 'payload' {
5643
5804
  }
5644
5805
  }
5645
5806
 
5646
- 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 };
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;
@@ -2384,6 +2390,7 @@ interface Post {
2384
2390
  thumbnail?: (string | null) | Image;
2385
2391
  images?: (string | Image)[] | null;
2386
2392
  publishedAt?: string | null;
2393
+ customer?: (string | null) | Customer;
2387
2394
  isFeatured?: boolean | null;
2388
2395
  /**
2389
2396
  * Read time (minutes)
@@ -3026,6 +3033,91 @@ interface GalleryItem {
3026
3033
  createdAt: string;
3027
3034
  deletedAt?: string | null;
3028
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
+ }
3029
3121
  /**
3030
3122
  * This interface was referenced by `Config`'s JSON-Schema
3031
3123
  * via the `definition` "flows".
@@ -3623,6 +3715,15 @@ interface PayloadLockedDocument {
3623
3715
  } | null) | ({
3624
3716
  relationTo: 'gallery-items';
3625
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;
3626
3727
  } | null) | ({
3627
3728
  relationTo: 'flows';
3628
3729
  value: string | Flow;
@@ -4820,6 +4921,7 @@ interface PostsSelect<T extends boolean = true> {
4820
4921
  thumbnail?: T;
4821
4922
  images?: T;
4822
4923
  publishedAt?: T;
4924
+ customer?: T;
4823
4925
  isFeatured?: T;
4824
4926
  readTime?: T;
4825
4927
  metadata?: T;
@@ -5192,6 +5294,65 @@ interface GalleryItemsSelect<T extends boolean = true> {
5192
5294
  createdAt?: T;
5193
5295
  deletedAt?: T;
5194
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
+ }
5195
5356
  /**
5196
5357
  * This interface was referenced by `Config`'s JSON-Schema
5197
5358
  * via the `definition` "flows_select".
@@ -5643,4 +5804,4 @@ declare module 'payload' {
5643
5804
  }
5644
5805
  }
5645
5806
 
5646
- 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 };
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 };
@@ -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-Coyx_VW8.cjs';
4
- import './payload-types-fKs2QoML.cjs';
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. */
@@ -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-B09gl0KV.js';
4
- import './payload-types-fKs2QoML.js';
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. */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-fKs2QoML.cjs';
2
+ import { F as Form } from '../payload-types-CyaSGIFI.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-fKs2QoML.js';
2
+ import { F as Form } from '../payload-types-CyaSGIFI.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-fKs2QoML.cjs';
4
+ import { V as Video } from '../payload-types-CyaSGIFI.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-fKs2QoML.js';
4
+ import { V as Video } from '../payload-types-CyaSGIFI.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-Coyx_VW8.cjs';
2
- import { C as Config } from './payload-types-fKs2QoML.cjs';
1
+ import { C as Collection } from './const-MzPYopC7.cjs';
2
+ import { C as Config } from './payload-types-CyaSGIFI.cjs';
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-B09gl0KV.js';
2
- import { C as Config } from './payload-types-fKs2QoML.js';
1
+ import { C as Collection } from './const-Dde6Z3er.js';
2
+ import { C as Config } from './payload-types-CyaSGIFI.js';
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-FMfp_EdX.cjs';
2
- import './const-Coyx_VW8.cjs';
3
- import './payload-types-fKs2QoML.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-D78o4MiB.cjs';
2
+ import './const-MzPYopC7.cjs';
3
+ import './payload-types-CyaSGIFI.cjs';
package/dist/webhook.d.ts CHANGED
@@ -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-DbotFj9m.js';
2
- import './const-B09gl0KV.js';
3
- import './payload-types-fKs2QoML.js';
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-cfGx5lXy.js';
2
+ import './const-Dde6Z3er.js';
3
+ import './payload-types-CyaSGIFI.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],