@01.software/sdk 0.2.0 → 0.2.2

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.
@@ -1,5 +1,5 @@
1
1
  import { Metadata } from 'next';
2
- import { M as Media } from './payload-types-BWJZhklJ.cjs';
2
+ import { M as Media } from './payload-types-DPdUroGM.cjs';
3
3
 
4
4
  interface MetaField {
5
5
  title?: string | null;
@@ -1,5 +1,5 @@
1
1
  import { Metadata } from 'next';
2
- import { M as Media } from './payload-types-BWJZhklJ.js';
2
+ import { M as Media } from './payload-types-DPdUroGM.js';
3
3
 
4
4
  interface MetaField {
5
5
  title?: string | null;
@@ -65,6 +65,7 @@ interface Config {
65
65
  authors: Author;
66
66
  documents: Document;
67
67
  'document-categories': DocumentCategory;
68
+ 'document-types': DocumentType;
68
69
  'document-images': DocumentImage;
69
70
  playlists: Playlist;
70
71
  'playlist-images': PlaylistImage;
@@ -163,6 +164,7 @@ interface Config {
163
164
  authors: AuthorsSelect<false> | AuthorsSelect<true>;
164
165
  documents: DocumentsSelect<false> | DocumentsSelect<true>;
165
166
  'document-categories': DocumentCategoriesSelect<false> | DocumentCategoriesSelect<true>;
167
+ 'document-types': DocumentTypesSelect<false> | DocumentTypesSelect<true>;
166
168
  'document-images': DocumentImagesSelect<false> | DocumentImagesSelect<true>;
167
169
  playlists: PlaylistsSelect<false> | PlaylistsSelect<true>;
168
170
  'playlist-images': PlaylistImagesSelect<false> | PlaylistImagesSelect<true>;
@@ -315,13 +317,24 @@ interface Tenant {
315
317
  id?: string | null;
316
318
  }[] | null;
317
319
  /**
318
- * The URL to send webhooks to.
320
+ * Webhook endpoints to notify on data changes.
319
321
  */
320
- webhookUrl?: string | null;
321
- /**
322
- * HMAC-SHA256 secret for webhook signature verification. Sent as x-webhook-signature header.
323
- */
324
- webhookSecret?: string | null;
322
+ webhooks?: {
323
+ /**
324
+ * e.g. Main Server, Analytics
325
+ */
326
+ name?: string | null;
327
+ /**
328
+ * The URL to send webhooks to. Must be HTTPS.
329
+ */
330
+ url: string;
331
+ /**
332
+ * HMAC-SHA256 secret for webhook signature verification. Sent as x-webhook-signature header.
333
+ */
334
+ secret?: string | null;
335
+ enabled?: boolean | null;
336
+ id?: string | null;
337
+ }[] | null;
325
338
  updatedAt: string;
326
339
  createdAt: string;
327
340
  }
@@ -1356,8 +1369,21 @@ interface Customer {
1356
1369
  phone?: string | null;
1357
1370
  hashedPassword?: string | null;
1358
1371
  salt?: string | null;
1372
+ authProvider?: ('local' | 'google' | 'apple' | 'kakao' | 'naver') | null;
1373
+ /**
1374
+ * External provider user ID
1375
+ */
1376
+ socialId?: string | null;
1359
1377
  isGuest?: boolean | null;
1360
1378
  isVerified?: boolean | null;
1379
+ /**
1380
+ * Marketing email consent
1381
+ */
1382
+ marketingConsent?: boolean | null;
1383
+ /**
1384
+ * Date marketing consent was given
1385
+ */
1386
+ consentedAt?: string | null;
1361
1387
  verificationToken?: string | null;
1362
1388
  resetPasswordToken?: string | null;
1363
1389
  resetPasswordExpiry?: string | null;
@@ -1737,11 +1763,26 @@ interface Discount {
1737
1763
  * Internal description for admin reference
1738
1764
  */
1739
1765
  description?: string | null;
1740
- type: 'percentage' | 'fixed_amount' | 'free_shipping';
1766
+ type: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
1741
1767
  /**
1742
1768
  * Discount rate (%) or fixed amount
1743
1769
  */
1744
- value: number;
1770
+ value?: number | null;
1771
+ /**
1772
+ * Tiered discount rules (applied by order amount range)
1773
+ */
1774
+ tiers?: {
1775
+ /**
1776
+ * Minimum order amount for this tier
1777
+ */
1778
+ minAmount: number;
1779
+ discountType: 'percentage' | 'fixed_amount';
1780
+ /**
1781
+ * Discount rate (%) or fixed amount
1782
+ */
1783
+ value: number;
1784
+ id?: string | null;
1785
+ }[] | null;
1745
1786
  /**
1746
1787
  * Minimum order amount to apply
1747
1788
  */
@@ -2017,7 +2058,7 @@ interface Document {
2017
2058
  */
2018
2059
  generateSlug?: boolean | null;
2019
2060
  slug?: string | null;
2020
- type: 'terms_of_service' | 'privacy_policy' | 'guide' | 'notice' | 'legal_notice' | 'refund_policy' | 'other';
2061
+ type?: (number | null) | DocumentType;
2021
2062
  /**
2022
2063
  * Document version (e.g. 1.0, 1.1, 2.0)
2023
2064
  */
@@ -2044,9 +2085,9 @@ interface Document {
2044
2085
  }
2045
2086
  /**
2046
2087
  * This interface was referenced by `Config`'s JSON-Schema
2047
- * via the `definition` "document-categories".
2088
+ * via the `definition` "document-types".
2048
2089
  */
2049
- interface DocumentCategory {
2090
+ interface DocumentType {
2050
2091
  id: number;
2051
2092
  _order?: string | null;
2052
2093
  tenant?: (number | null) | Tenant;
@@ -2058,7 +2099,6 @@ interface DocumentCategory {
2058
2099
  slug?: string | null;
2059
2100
  description?: string | null;
2060
2101
  image?: (number | null) | DocumentImage;
2061
- parent?: (number | null) | DocumentCategory;
2062
2102
  color?: string | null;
2063
2103
  updatedAt: string;
2064
2104
  createdAt: string;
@@ -2119,6 +2159,27 @@ interface DocumentImage {
2119
2159
  };
2120
2160
  };
2121
2161
  }
2162
+ /**
2163
+ * This interface was referenced by `Config`'s JSON-Schema
2164
+ * via the `definition` "document-categories".
2165
+ */
2166
+ interface DocumentCategory {
2167
+ id: number;
2168
+ _order?: string | null;
2169
+ tenant?: (number | null) | Tenant;
2170
+ title: string;
2171
+ /**
2172
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
2173
+ */
2174
+ generateSlug?: boolean | null;
2175
+ slug?: string | null;
2176
+ description?: string | null;
2177
+ image?: (number | null) | DocumentImage;
2178
+ parent?: (number | null) | DocumentCategory;
2179
+ color?: string | null;
2180
+ updatedAt: string;
2181
+ createdAt: string;
2182
+ }
2122
2183
  /**
2123
2184
  * This interface was referenced by `Config`'s JSON-Schema
2124
2185
  * via the `definition` "playlists".
@@ -2576,6 +2637,9 @@ interface PayloadLockedDocument {
2576
2637
  } | null) | ({
2577
2638
  relationTo: 'document-categories';
2578
2639
  value: number | DocumentCategory;
2640
+ } | null) | ({
2641
+ relationTo: 'document-types';
2642
+ value: number | DocumentType;
2579
2643
  } | null) | ({
2580
2644
  relationTo: 'document-images';
2581
2645
  value: number | DocumentImage;
@@ -2739,8 +2803,13 @@ interface TenantsSelect<T extends boolean = true> {
2739
2803
  value?: T;
2740
2804
  id?: T;
2741
2805
  };
2742
- webhookUrl?: T;
2743
- webhookSecret?: T;
2806
+ webhooks?: T | {
2807
+ name?: T;
2808
+ url?: T;
2809
+ secret?: T;
2810
+ enabled?: T;
2811
+ id?: T;
2812
+ };
2744
2813
  updatedAt?: T;
2745
2814
  createdAt?: T;
2746
2815
  }
@@ -3473,8 +3542,12 @@ interface CustomersSelect<T extends boolean = true> {
3473
3542
  phone?: T;
3474
3543
  hashedPassword?: T;
3475
3544
  salt?: T;
3545
+ authProvider?: T;
3546
+ socialId?: T;
3476
3547
  isGuest?: T;
3477
3548
  isVerified?: T;
3549
+ marketingConsent?: T;
3550
+ consentedAt?: T;
3478
3551
  verificationToken?: T;
3479
3552
  resetPasswordToken?: T;
3480
3553
  resetPasswordExpiry?: T;
@@ -3633,6 +3706,12 @@ interface DiscountsSelect<T extends boolean = true> {
3633
3706
  description?: T;
3634
3707
  type?: T;
3635
3708
  value?: T;
3709
+ tiers?: T | {
3710
+ minAmount?: T;
3711
+ discountType?: T;
3712
+ value?: T;
3713
+ id?: T;
3714
+ };
3636
3715
  minOrderAmount?: T;
3637
3716
  maxDiscountAmount?: T;
3638
3717
  startsAt?: T;
@@ -3851,6 +3930,22 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
3851
3930
  updatedAt?: T;
3852
3931
  createdAt?: T;
3853
3932
  }
3933
+ /**
3934
+ * This interface was referenced by `Config`'s JSON-Schema
3935
+ * via the `definition` "document-types_select".
3936
+ */
3937
+ interface DocumentTypesSelect<T extends boolean = true> {
3938
+ _order?: T;
3939
+ tenant?: T;
3940
+ title?: T;
3941
+ generateSlug?: T;
3942
+ slug?: T;
3943
+ description?: T;
3944
+ image?: T;
3945
+ color?: T;
3946
+ updatedAt?: T;
3947
+ createdAt?: T;
3948
+ }
3854
3949
  /**
3855
3950
  * This interface was referenced by `Config`'s JSON-Schema
3856
3951
  * via the `definition` "document-images_select".
@@ -4179,4 +4274,4 @@ declare module 'payload' {
4179
4274
  }
4180
4275
  }
4181
4276
 
4182
- export type { Music as $, Audience as A, BrandLogo as B, CartItem as C, Exchange as D, EmailLog as E, Fulfillment as F, ExchangeProduct as G, FulfillmentItem as H, IframeBlock as I, Cart as J, Discount as K, Post as L, Media as M, PostImage as N, Order as O, ProductOption as P, Author as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PostCategory as V, PostTag as W, Document as X, DocumentCategory as Y, DocumentImage as Z, Playlist as _, OrderProduct as a, PlaylistImage as a0, Form as a1, FormSubmission as a2, PayloadKv as a3, PayloadLockedDocument as a4, PayloadPreference as a5, PayloadMigration as a6, UsersSelect as a7, MediaSelect as a8, AudiencesSelect as a9, CustomersSelect as aA, CustomerAddressesSelect as aB, CustomerGroupsSelect as aC, CustomerGroupImagesSelect as aD, CartsSelect as aE, CartItemsSelect as aF, DiscountsSelect as aG, ShippingPoliciesSelect as aH, PostsSelect as aI, PostCategoriesSelect as aJ, PostTagsSelect as aK, PostImagesSelect as aL, AuthorsSelect as aM, DocumentsSelect as aN, DocumentCategoriesSelect as aO, DocumentImagesSelect as aP, PlaylistsSelect as aQ, PlaylistImagesSelect as aR, MusicsSelect as aS, FormsSelect as aT, FormSubmissionsSelect as aU, PayloadKvSelect as aV, PayloadLockedDocumentsSelect as aW, PayloadPreferencesSelect as aX, PayloadMigrationsSelect as aY, Auth as aZ, EmailLogsSelect as aa, TenantsSelect as ab, TenantMetadataSelect as ac, TenantLogosSelect as ad, TenantOgImagesSelect as ae, ApiUsageSelect as af, SubscriptionsSelect as ag, BillingHistorySelect as ah, ProductsSelect as ai, ProductVariantsSelect as aj, ProductOptionsSelect as ak, ProductCategoriesSelect as al, ProductTagsSelect as am, ProductImagesSelect as an, ProductCollectionsSelect as ao, BrandsSelect as ap, BrandLogosSelect as aq, OrdersSelect as ar, OrderProductsSelect as as, ReturnsSelect as at, ReturnProductsSelect as au, ExchangesSelect as av, ExchangeProductsSelect as aw, FulfillmentsSelect as ax, FulfillmentItemsSelect as ay, TransactionsSelect as az, Config as b, CustomerAuthOperations as c, PlayerBlock as d, CodeBlock as e, User as f, Tenant as g, TenantMetadatum as h, TenantOgImage as i, TenantLogo as j, ApiUsage as k, Subscription as l, BillingHistory as m, Product as n, ProductImage as o, ProductVariant as p, ProductCategory as q, ProductTag as r, ProductCollection as s, Brand as t, ShippingPolicy as u, Customer as v, CustomerGroup as w, CustomerGroupImage as x, CustomerAddress as y, ReturnProduct as z };
4277
+ export type { DocumentCategory as $, Audience as A, BrandLogo as B, CartItem as C, ReturnProduct as D, EmailLog as E, Form as F, Exchange as G, ExchangeProduct as H, IframeBlock as I, FulfillmentItem as J, Cart as K, Discount as L, Media as M, Post as N, Order as O, ProductOption as P, PostImage as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Author as V, PostCategory as W, PostTag as X, Document as Y, DocumentType as Z, DocumentImage as _, OrderProduct as a, Auth as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9, TransactionsSelect as aA, CustomersSelect as aB, CustomerAddressesSelect as aC, CustomerGroupsSelect as aD, CustomerGroupImagesSelect as aE, CartsSelect as aF, CartItemsSelect as aG, DiscountsSelect as aH, ShippingPoliciesSelect as aI, PostsSelect as aJ, PostCategoriesSelect as aK, PostTagsSelect as aL, PostImagesSelect as aM, AuthorsSelect as aN, DocumentsSelect as aO, DocumentCategoriesSelect as aP, DocumentTypesSelect as aQ, DocumentImagesSelect as aR, PlaylistsSelect as aS, PlaylistImagesSelect as aT, MusicsSelect as aU, FormsSelect as aV, FormSubmissionsSelect as aW, PayloadKvSelect as aX, PayloadLockedDocumentsSelect as aY, PayloadPreferencesSelect as aZ, PayloadMigrationsSelect as a_, AudiencesSelect as aa, EmailLogsSelect as ab, TenantsSelect as ac, TenantMetadataSelect as ad, TenantLogosSelect as ae, TenantOgImagesSelect as af, ApiUsageSelect as ag, SubscriptionsSelect as ah, BillingHistorySelect as ai, ProductsSelect as aj, ProductVariantsSelect as ak, ProductOptionsSelect as al, ProductCategoriesSelect as am, ProductTagsSelect as an, ProductImagesSelect as ao, ProductCollectionsSelect as ap, BrandsSelect as aq, BrandLogosSelect as ar, OrdersSelect as as, OrderProductsSelect as at, ReturnsSelect as au, ReturnProductsSelect as av, ExchangesSelect as aw, ExchangeProductsSelect as ax, FulfillmentsSelect as ay, FulfillmentItemsSelect as az, Fulfillment as b, Config as c, CustomerAuthOperations as d, PlayerBlock as e, CodeBlock as f, User as g, Tenant as h, TenantMetadatum as i, TenantOgImage as j, TenantLogo as k, ApiUsage as l, Subscription as m, BillingHistory as n, Product as o, ProductImage as p, ProductVariant as q, ProductCategory as r, ProductTag as s, ProductCollection as t, Brand as u, ShippingPolicy as v, Customer as w, CustomerGroup as x, CustomerGroupImage as y, CustomerAddress as z };
@@ -65,6 +65,7 @@ interface Config {
65
65
  authors: Author;
66
66
  documents: Document;
67
67
  'document-categories': DocumentCategory;
68
+ 'document-types': DocumentType;
68
69
  'document-images': DocumentImage;
69
70
  playlists: Playlist;
70
71
  'playlist-images': PlaylistImage;
@@ -163,6 +164,7 @@ interface Config {
163
164
  authors: AuthorsSelect<false> | AuthorsSelect<true>;
164
165
  documents: DocumentsSelect<false> | DocumentsSelect<true>;
165
166
  'document-categories': DocumentCategoriesSelect<false> | DocumentCategoriesSelect<true>;
167
+ 'document-types': DocumentTypesSelect<false> | DocumentTypesSelect<true>;
166
168
  'document-images': DocumentImagesSelect<false> | DocumentImagesSelect<true>;
167
169
  playlists: PlaylistsSelect<false> | PlaylistsSelect<true>;
168
170
  'playlist-images': PlaylistImagesSelect<false> | PlaylistImagesSelect<true>;
@@ -315,13 +317,24 @@ interface Tenant {
315
317
  id?: string | null;
316
318
  }[] | null;
317
319
  /**
318
- * The URL to send webhooks to.
320
+ * Webhook endpoints to notify on data changes.
319
321
  */
320
- webhookUrl?: string | null;
321
- /**
322
- * HMAC-SHA256 secret for webhook signature verification. Sent as x-webhook-signature header.
323
- */
324
- webhookSecret?: string | null;
322
+ webhooks?: {
323
+ /**
324
+ * e.g. Main Server, Analytics
325
+ */
326
+ name?: string | null;
327
+ /**
328
+ * The URL to send webhooks to. Must be HTTPS.
329
+ */
330
+ url: string;
331
+ /**
332
+ * HMAC-SHA256 secret for webhook signature verification. Sent as x-webhook-signature header.
333
+ */
334
+ secret?: string | null;
335
+ enabled?: boolean | null;
336
+ id?: string | null;
337
+ }[] | null;
325
338
  updatedAt: string;
326
339
  createdAt: string;
327
340
  }
@@ -1356,8 +1369,21 @@ interface Customer {
1356
1369
  phone?: string | null;
1357
1370
  hashedPassword?: string | null;
1358
1371
  salt?: string | null;
1372
+ authProvider?: ('local' | 'google' | 'apple' | 'kakao' | 'naver') | null;
1373
+ /**
1374
+ * External provider user ID
1375
+ */
1376
+ socialId?: string | null;
1359
1377
  isGuest?: boolean | null;
1360
1378
  isVerified?: boolean | null;
1379
+ /**
1380
+ * Marketing email consent
1381
+ */
1382
+ marketingConsent?: boolean | null;
1383
+ /**
1384
+ * Date marketing consent was given
1385
+ */
1386
+ consentedAt?: string | null;
1361
1387
  verificationToken?: string | null;
1362
1388
  resetPasswordToken?: string | null;
1363
1389
  resetPasswordExpiry?: string | null;
@@ -1737,11 +1763,26 @@ interface Discount {
1737
1763
  * Internal description for admin reference
1738
1764
  */
1739
1765
  description?: string | null;
1740
- type: 'percentage' | 'fixed_amount' | 'free_shipping';
1766
+ type: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
1741
1767
  /**
1742
1768
  * Discount rate (%) or fixed amount
1743
1769
  */
1744
- value: number;
1770
+ value?: number | null;
1771
+ /**
1772
+ * Tiered discount rules (applied by order amount range)
1773
+ */
1774
+ tiers?: {
1775
+ /**
1776
+ * Minimum order amount for this tier
1777
+ */
1778
+ minAmount: number;
1779
+ discountType: 'percentage' | 'fixed_amount';
1780
+ /**
1781
+ * Discount rate (%) or fixed amount
1782
+ */
1783
+ value: number;
1784
+ id?: string | null;
1785
+ }[] | null;
1745
1786
  /**
1746
1787
  * Minimum order amount to apply
1747
1788
  */
@@ -2017,7 +2058,7 @@ interface Document {
2017
2058
  */
2018
2059
  generateSlug?: boolean | null;
2019
2060
  slug?: string | null;
2020
- type: 'terms_of_service' | 'privacy_policy' | 'guide' | 'notice' | 'legal_notice' | 'refund_policy' | 'other';
2061
+ type?: (number | null) | DocumentType;
2021
2062
  /**
2022
2063
  * Document version (e.g. 1.0, 1.1, 2.0)
2023
2064
  */
@@ -2044,9 +2085,9 @@ interface Document {
2044
2085
  }
2045
2086
  /**
2046
2087
  * This interface was referenced by `Config`'s JSON-Schema
2047
- * via the `definition` "document-categories".
2088
+ * via the `definition` "document-types".
2048
2089
  */
2049
- interface DocumentCategory {
2090
+ interface DocumentType {
2050
2091
  id: number;
2051
2092
  _order?: string | null;
2052
2093
  tenant?: (number | null) | Tenant;
@@ -2058,7 +2099,6 @@ interface DocumentCategory {
2058
2099
  slug?: string | null;
2059
2100
  description?: string | null;
2060
2101
  image?: (number | null) | DocumentImage;
2061
- parent?: (number | null) | DocumentCategory;
2062
2102
  color?: string | null;
2063
2103
  updatedAt: string;
2064
2104
  createdAt: string;
@@ -2119,6 +2159,27 @@ interface DocumentImage {
2119
2159
  };
2120
2160
  };
2121
2161
  }
2162
+ /**
2163
+ * This interface was referenced by `Config`'s JSON-Schema
2164
+ * via the `definition` "document-categories".
2165
+ */
2166
+ interface DocumentCategory {
2167
+ id: number;
2168
+ _order?: string | null;
2169
+ tenant?: (number | null) | Tenant;
2170
+ title: string;
2171
+ /**
2172
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
2173
+ */
2174
+ generateSlug?: boolean | null;
2175
+ slug?: string | null;
2176
+ description?: string | null;
2177
+ image?: (number | null) | DocumentImage;
2178
+ parent?: (number | null) | DocumentCategory;
2179
+ color?: string | null;
2180
+ updatedAt: string;
2181
+ createdAt: string;
2182
+ }
2122
2183
  /**
2123
2184
  * This interface was referenced by `Config`'s JSON-Schema
2124
2185
  * via the `definition` "playlists".
@@ -2576,6 +2637,9 @@ interface PayloadLockedDocument {
2576
2637
  } | null) | ({
2577
2638
  relationTo: 'document-categories';
2578
2639
  value: number | DocumentCategory;
2640
+ } | null) | ({
2641
+ relationTo: 'document-types';
2642
+ value: number | DocumentType;
2579
2643
  } | null) | ({
2580
2644
  relationTo: 'document-images';
2581
2645
  value: number | DocumentImage;
@@ -2739,8 +2803,13 @@ interface TenantsSelect<T extends boolean = true> {
2739
2803
  value?: T;
2740
2804
  id?: T;
2741
2805
  };
2742
- webhookUrl?: T;
2743
- webhookSecret?: T;
2806
+ webhooks?: T | {
2807
+ name?: T;
2808
+ url?: T;
2809
+ secret?: T;
2810
+ enabled?: T;
2811
+ id?: T;
2812
+ };
2744
2813
  updatedAt?: T;
2745
2814
  createdAt?: T;
2746
2815
  }
@@ -3473,8 +3542,12 @@ interface CustomersSelect<T extends boolean = true> {
3473
3542
  phone?: T;
3474
3543
  hashedPassword?: T;
3475
3544
  salt?: T;
3545
+ authProvider?: T;
3546
+ socialId?: T;
3476
3547
  isGuest?: T;
3477
3548
  isVerified?: T;
3549
+ marketingConsent?: T;
3550
+ consentedAt?: T;
3478
3551
  verificationToken?: T;
3479
3552
  resetPasswordToken?: T;
3480
3553
  resetPasswordExpiry?: T;
@@ -3633,6 +3706,12 @@ interface DiscountsSelect<T extends boolean = true> {
3633
3706
  description?: T;
3634
3707
  type?: T;
3635
3708
  value?: T;
3709
+ tiers?: T | {
3710
+ minAmount?: T;
3711
+ discountType?: T;
3712
+ value?: T;
3713
+ id?: T;
3714
+ };
3636
3715
  minOrderAmount?: T;
3637
3716
  maxDiscountAmount?: T;
3638
3717
  startsAt?: T;
@@ -3851,6 +3930,22 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
3851
3930
  updatedAt?: T;
3852
3931
  createdAt?: T;
3853
3932
  }
3933
+ /**
3934
+ * This interface was referenced by `Config`'s JSON-Schema
3935
+ * via the `definition` "document-types_select".
3936
+ */
3937
+ interface DocumentTypesSelect<T extends boolean = true> {
3938
+ _order?: T;
3939
+ tenant?: T;
3940
+ title?: T;
3941
+ generateSlug?: T;
3942
+ slug?: T;
3943
+ description?: T;
3944
+ image?: T;
3945
+ color?: T;
3946
+ updatedAt?: T;
3947
+ createdAt?: T;
3948
+ }
3854
3949
  /**
3855
3950
  * This interface was referenced by `Config`'s JSON-Schema
3856
3951
  * via the `definition` "document-images_select".
@@ -4179,4 +4274,4 @@ declare module 'payload' {
4179
4274
  }
4180
4275
  }
4181
4276
 
4182
- export type { Music as $, Audience as A, BrandLogo as B, CartItem as C, Exchange as D, EmailLog as E, Fulfillment as F, ExchangeProduct as G, FulfillmentItem as H, IframeBlock as I, Cart as J, Discount as K, Post as L, Media as M, PostImage as N, Order as O, ProductOption as P, Author as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PostCategory as V, PostTag as W, Document as X, DocumentCategory as Y, DocumentImage as Z, Playlist as _, OrderProduct as a, PlaylistImage as a0, Form as a1, FormSubmission as a2, PayloadKv as a3, PayloadLockedDocument as a4, PayloadPreference as a5, PayloadMigration as a6, UsersSelect as a7, MediaSelect as a8, AudiencesSelect as a9, CustomersSelect as aA, CustomerAddressesSelect as aB, CustomerGroupsSelect as aC, CustomerGroupImagesSelect as aD, CartsSelect as aE, CartItemsSelect as aF, DiscountsSelect as aG, ShippingPoliciesSelect as aH, PostsSelect as aI, PostCategoriesSelect as aJ, PostTagsSelect as aK, PostImagesSelect as aL, AuthorsSelect as aM, DocumentsSelect as aN, DocumentCategoriesSelect as aO, DocumentImagesSelect as aP, PlaylistsSelect as aQ, PlaylistImagesSelect as aR, MusicsSelect as aS, FormsSelect as aT, FormSubmissionsSelect as aU, PayloadKvSelect as aV, PayloadLockedDocumentsSelect as aW, PayloadPreferencesSelect as aX, PayloadMigrationsSelect as aY, Auth as aZ, EmailLogsSelect as aa, TenantsSelect as ab, TenantMetadataSelect as ac, TenantLogosSelect as ad, TenantOgImagesSelect as ae, ApiUsageSelect as af, SubscriptionsSelect as ag, BillingHistorySelect as ah, ProductsSelect as ai, ProductVariantsSelect as aj, ProductOptionsSelect as ak, ProductCategoriesSelect as al, ProductTagsSelect as am, ProductImagesSelect as an, ProductCollectionsSelect as ao, BrandsSelect as ap, BrandLogosSelect as aq, OrdersSelect as ar, OrderProductsSelect as as, ReturnsSelect as at, ReturnProductsSelect as au, ExchangesSelect as av, ExchangeProductsSelect as aw, FulfillmentsSelect as ax, FulfillmentItemsSelect as ay, TransactionsSelect as az, Config as b, CustomerAuthOperations as c, PlayerBlock as d, CodeBlock as e, User as f, Tenant as g, TenantMetadatum as h, TenantOgImage as i, TenantLogo as j, ApiUsage as k, Subscription as l, BillingHistory as m, Product as n, ProductImage as o, ProductVariant as p, ProductCategory as q, ProductTag as r, ProductCollection as s, Brand as t, ShippingPolicy as u, Customer as v, CustomerGroup as w, CustomerGroupImage as x, CustomerAddress as y, ReturnProduct as z };
4277
+ export type { DocumentCategory as $, Audience as A, BrandLogo as B, CartItem as C, ReturnProduct as D, EmailLog as E, Form as F, Exchange as G, ExchangeProduct as H, IframeBlock as I, FulfillmentItem as J, Cart as K, Discount as L, Media as M, Post as N, Order as O, ProductOption as P, PostImage as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Author as V, PostCategory as W, PostTag as X, Document as Y, DocumentType as Z, DocumentImage as _, OrderProduct as a, Auth as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9, TransactionsSelect as aA, CustomersSelect as aB, CustomerAddressesSelect as aC, CustomerGroupsSelect as aD, CustomerGroupImagesSelect as aE, CartsSelect as aF, CartItemsSelect as aG, DiscountsSelect as aH, ShippingPoliciesSelect as aI, PostsSelect as aJ, PostCategoriesSelect as aK, PostTagsSelect as aL, PostImagesSelect as aM, AuthorsSelect as aN, DocumentsSelect as aO, DocumentCategoriesSelect as aP, DocumentTypesSelect as aQ, DocumentImagesSelect as aR, PlaylistsSelect as aS, PlaylistImagesSelect as aT, MusicsSelect as aU, FormsSelect as aV, FormSubmissionsSelect as aW, PayloadKvSelect as aX, PayloadLockedDocumentsSelect as aY, PayloadPreferencesSelect as aZ, PayloadMigrationsSelect as a_, AudiencesSelect as aa, EmailLogsSelect as ab, TenantsSelect as ac, TenantMetadataSelect as ad, TenantLogosSelect as ae, TenantOgImagesSelect as af, ApiUsageSelect as ag, SubscriptionsSelect as ah, BillingHistorySelect as ai, ProductsSelect as aj, ProductVariantsSelect as ak, ProductOptionsSelect as al, ProductCategoriesSelect as am, ProductTagsSelect as an, ProductImagesSelect as ao, ProductCollectionsSelect as ap, BrandsSelect as aq, BrandLogosSelect as ar, OrdersSelect as as, OrderProductsSelect as at, ReturnsSelect as au, ReturnProductsSelect as av, ExchangesSelect as aw, ExchangeProductsSelect as ax, FulfillmentsSelect as ay, FulfillmentItemsSelect as az, Fulfillment as b, Config as c, CustomerAuthOperations as d, PlayerBlock as e, CodeBlock as f, User as g, Tenant as h, TenantMetadatum as i, TenantOgImage as j, TenantLogo as k, ApiUsage as l, Subscription as m, BillingHistory as n, Product as o, ProductImage as p, ProductVariant as q, ProductCategory as r, ProductTag as s, ProductCollection as t, Brand as u, ShippingPolicy as v, Customer as w, CustomerGroup as x, CustomerGroupImage as y, CustomerAddress as z };
@@ -1,4 +1,4 @@
1
- import { b as Config } from './payload-types-BWJZhklJ.cjs';
1
+ import { c as Config } from './payload-types-DPdUroGM.cjs';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -9,7 +9,7 @@ type Collection = keyof Config['collections'];
9
9
  * Array of all public collection names for runtime use (e.g., Zod enum validation).
10
10
  * This is the single source of truth for which collections are publicly accessible via SDK.
11
11
  */
12
- declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "forms", "form-submissions", "media"];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "forms", "form-submissions", "media"];
13
13
  /**
14
14
  * Public collections available for SDK access.
15
15
  * Derived from the COLLECTIONS array (single source of truth).
@@ -1,4 +1,4 @@
1
- import { b as Config } from './payload-types-BWJZhklJ.js';
1
+ import { c as Config } from './payload-types-DPdUroGM.js';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -9,7 +9,7 @@ type Collection = keyof Config['collections'];
9
9
  * Array of all public collection names for runtime use (e.g., Zod enum validation).
10
10
  * This is the single source of truth for which collections are publicly accessible via SDK.
11
11
  */
12
- declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "forms", "form-submissions", "media"];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "forms", "form-submissions", "media"];
13
13
  /**
14
14
  * Public collections available for SDK access.
15
15
  * Derived from the COLLECTIONS array (single source of truth).
@@ -1,2 +1,2 @@
1
- export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DMxUpnQD.cjs';
2
- import './payload-types-BWJZhklJ.cjs';
1
+ export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-4iCoQzsv.cjs';
2
+ import './payload-types-DPdUroGM.cjs';
package/dist/webhook.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-CcdyGpCb.js';
2
- import './payload-types-BWJZhklJ.js';
1
+ export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DRpqvA6W.js';
2
+ import './payload-types-DPdUroGM.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],
@@ -80,8 +80,8 @@
80
80
  "shadcn": "^3.6.3",
81
81
  "tsup": "^8.3.7",
82
82
  "vitest": "^3.2.3",
83
- "@repo/typescript-config": "0.0.0",
84
- "@repo/eslint-config": "0.0.0"
83
+ "@repo/eslint-config": "0.0.0",
84
+ "@repo/typescript-config": "0.0.0"
85
85
  },
86
86
  "dependencies": {
87
87
  "@payloadcms/richtext-lexical": "3.77.0",