@01.software/sdk 0.1.9 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,7 @@ interface Config {
38
38
  'product-categories': ProductCategory;
39
39
  'product-tags': ProductTag;
40
40
  'product-images': ProductImage;
41
+ 'product-collections': ProductCollection;
41
42
  brands: Brand;
42
43
  'brand-logos': BrandLogo;
43
44
  orders: Order;
@@ -64,12 +65,11 @@ interface Config {
64
65
  authors: Author;
65
66
  documents: Document;
66
67
  'document-categories': DocumentCategory;
68
+ 'document-types': DocumentType;
67
69
  'document-images': DocumentImage;
68
70
  playlists: Playlist;
69
71
  'playlist-images': PlaylistImage;
70
72
  musics: Music;
71
- galleries: Gallery;
72
- 'gallery-images': GalleryImage;
73
73
  forms: Form;
74
74
  'form-submissions': FormSubmission;
75
75
  'payload-kv': PayloadKv;
@@ -81,6 +81,7 @@ interface Config {
81
81
  products: {
82
82
  variants: 'product-variants';
83
83
  options: 'product-options';
84
+ collections: 'product-collections';
84
85
  };
85
86
  'product-variants': {
86
87
  productOptions: 'product-options';
@@ -136,6 +137,7 @@ interface Config {
136
137
  'product-categories': ProductCategoriesSelect<false> | ProductCategoriesSelect<true>;
137
138
  'product-tags': ProductTagsSelect<false> | ProductTagsSelect<true>;
138
139
  'product-images': ProductImagesSelect<false> | ProductImagesSelect<true>;
140
+ 'product-collections': ProductCollectionsSelect<false> | ProductCollectionsSelect<true>;
139
141
  brands: BrandsSelect<false> | BrandsSelect<true>;
140
142
  'brand-logos': BrandLogosSelect<false> | BrandLogosSelect<true>;
141
143
  orders: OrdersSelect<false> | OrdersSelect<true>;
@@ -162,12 +164,11 @@ interface Config {
162
164
  authors: AuthorsSelect<false> | AuthorsSelect<true>;
163
165
  documents: DocumentsSelect<false> | DocumentsSelect<true>;
164
166
  'document-categories': DocumentCategoriesSelect<false> | DocumentCategoriesSelect<true>;
167
+ 'document-types': DocumentTypesSelect<false> | DocumentTypesSelect<true>;
165
168
  'document-images': DocumentImagesSelect<false> | DocumentImagesSelect<true>;
166
169
  playlists: PlaylistsSelect<false> | PlaylistsSelect<true>;
167
170
  'playlist-images': PlaylistImagesSelect<false> | PlaylistImagesSelect<true>;
168
171
  musics: MusicsSelect<false> | MusicsSelect<true>;
169
- galleries: GalleriesSelect<false> | GalleriesSelect<true>;
170
- 'gallery-images': GalleryImagesSelect<false> | GalleryImagesSelect<true>;
171
172
  forms: FormsSelect<false> | FormsSelect<true>;
172
173
  'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
173
174
  'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
@@ -307,7 +308,7 @@ interface Tenant {
307
308
  origin: string;
308
309
  id?: string | null;
309
310
  }[] | null;
310
- features?: ('ecommerce' | 'playlists' | 'links' | 'forms' | 'galleries' | 'posts' | 'documents')[] | null;
311
+ features?: ('ecommerce' | 'playlists' | 'links' | 'forms' | 'posts' | 'documents')[] | null;
311
312
  plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
312
313
  clientKey: string;
313
314
  secretKeys?: {
@@ -316,9 +317,24 @@ interface Tenant {
316
317
  id?: string | null;
317
318
  }[] | null;
318
319
  /**
319
- * The URL to send webhooks to.
320
+ * Webhook endpoints to notify on data changes.
320
321
  */
321
- webhookUrl?: 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;
322
338
  updatedAt: string;
323
339
  createdAt: string;
324
340
  }
@@ -977,6 +993,11 @@ interface Product {
977
993
  isSoldOut?: boolean | null;
978
994
  categories?: (number | ProductCategory)[] | null;
979
995
  tags?: (number | ProductTag)[] | null;
996
+ collections?: {
997
+ docs?: (number | ProductCollection)[];
998
+ hasNextPage?: boolean;
999
+ totalDocs?: number;
1000
+ };
980
1001
  brand?: (number | null) | Brand;
981
1002
  shippingPolicy?: (number | null) | ShippingPolicy;
982
1003
  metadata?: {
@@ -1015,7 +1036,15 @@ interface ProductImage {
1015
1036
  focalX?: number | null;
1016
1037
  focalY?: number | null;
1017
1038
  sizes?: {
1018
- '512'?: {
1039
+ '384'?: {
1040
+ url?: string | null;
1041
+ width?: number | null;
1042
+ height?: number | null;
1043
+ mimeType?: string | null;
1044
+ filesize?: number | null;
1045
+ filename?: string | null;
1046
+ };
1047
+ '768'?: {
1019
1048
  url?: string | null;
1020
1049
  width?: number | null;
1021
1050
  height?: number | null;
@@ -1023,7 +1052,7 @@ interface ProductImage {
1023
1052
  filesize?: number | null;
1024
1053
  filename?: string | null;
1025
1054
  };
1026
- '1024'?: {
1055
+ '1536'?: {
1027
1056
  url?: string | null;
1028
1057
  width?: number | null;
1029
1058
  height?: number | null;
@@ -1099,6 +1128,9 @@ interface ProductOption {
1099
1128
  * Price adjustment (add/subtract from base price)
1100
1129
  */
1101
1130
  priceAdjustment?: number | null;
1131
+ metadata?: {
1132
+ [k: string]: unknown;
1133
+ } | unknown[] | string | number | boolean | null;
1102
1134
  updatedAt: string;
1103
1135
  createdAt: string;
1104
1136
  }
@@ -1144,6 +1176,46 @@ interface ProductTag {
1144
1176
  updatedAt: string;
1145
1177
  createdAt: string;
1146
1178
  }
1179
+ /**
1180
+ * This interface was referenced by `Config`'s JSON-Schema
1181
+ * via the `definition` "product-collections".
1182
+ */
1183
+ interface ProductCollection {
1184
+ id: number;
1185
+ _order?: string | null;
1186
+ tenant?: (number | null) | Tenant;
1187
+ title: string;
1188
+ thumbnail?: (number | null) | ProductImage;
1189
+ images?: (number | ProductImage)[] | null;
1190
+ description?: {
1191
+ root: {
1192
+ type: string;
1193
+ children: {
1194
+ type: any;
1195
+ version: number;
1196
+ [k: string]: unknown;
1197
+ }[];
1198
+ direction: ('ltr' | 'rtl') | null;
1199
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1200
+ indent: number;
1201
+ version: number;
1202
+ };
1203
+ [k: string]: unknown;
1204
+ } | null;
1205
+ products?: (number | Product)[] | null;
1206
+ /**
1207
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
1208
+ */
1209
+ generateSlug?: boolean | null;
1210
+ slug?: string | null;
1211
+ status?: ('draft' | 'published' | 'archived') | null;
1212
+ sortOrder?: ('manual' | 'alphabetical' | 'price-asc' | 'price-desc' | 'newest') | null;
1213
+ metadata?: {
1214
+ [k: string]: unknown;
1215
+ } | unknown[] | string | number | boolean | null;
1216
+ updatedAt: string;
1217
+ createdAt: string;
1218
+ }
1147
1219
  /**
1148
1220
  * This interface was referenced by `Config`'s JSON-Schema
1149
1221
  * via the `definition` "brands".
@@ -1175,6 +1247,9 @@ interface Brand {
1175
1247
  * Brand official website URL
1176
1248
  */
1177
1249
  website?: string | null;
1250
+ metadata?: {
1251
+ [k: string]: unknown;
1252
+ } | unknown[] | string | number | boolean | null;
1178
1253
  updatedAt: string;
1179
1254
  createdAt: string;
1180
1255
  }
@@ -1206,7 +1281,15 @@ interface ShippingPolicy {
1206
1281
  * Extra fee for remote islands
1207
1282
  */
1208
1283
  islandExtraFee?: number | null;
1284
+ /**
1285
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
1286
+ */
1287
+ generateSlug?: boolean | null;
1288
+ slug?: string | null;
1209
1289
  isDefault?: boolean | null;
1290
+ metadata?: {
1291
+ [k: string]: unknown;
1292
+ } | unknown[] | string | number | boolean | null;
1210
1293
  updatedAt: string;
1211
1294
  createdAt: string;
1212
1295
  }
@@ -1235,6 +1318,9 @@ interface Order {
1235
1318
  * Internal notes (not visible to customers)
1236
1319
  */
1237
1320
  notes?: string | null;
1321
+ metadata?: {
1322
+ [k: string]: unknown;
1323
+ } | unknown[] | string | number | boolean | null;
1238
1324
  shippingAddress?: {
1239
1325
  recipientName?: string | null;
1240
1326
  phone?: string | null;
@@ -1283,8 +1369,21 @@ interface Customer {
1283
1369
  phone?: string | null;
1284
1370
  hashedPassword?: string | null;
1285
1371
  salt?: string | null;
1372
+ authProvider?: ('local' | 'google' | 'apple' | 'kakao' | 'naver') | null;
1373
+ /**
1374
+ * External provider user ID
1375
+ */
1376
+ socialId?: string | null;
1286
1377
  isGuest?: boolean | null;
1287
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;
1288
1387
  verificationToken?: string | null;
1289
1388
  resetPasswordToken?: string | null;
1290
1389
  resetPasswordExpiry?: string | null;
@@ -1370,7 +1469,15 @@ interface CustomerGroupImage {
1370
1469
  focalX?: number | null;
1371
1470
  focalY?: number | null;
1372
1471
  sizes?: {
1373
- '512'?: {
1472
+ '384'?: {
1473
+ url?: string | null;
1474
+ width?: number | null;
1475
+ height?: number | null;
1476
+ mimeType?: string | null;
1477
+ filesize?: number | null;
1478
+ filename?: string | null;
1479
+ };
1480
+ '768'?: {
1374
1481
  url?: string | null;
1375
1482
  width?: number | null;
1376
1483
  height?: number | null;
@@ -1378,7 +1485,7 @@ interface CustomerGroupImage {
1378
1485
  filesize?: number | null;
1379
1486
  filename?: string | null;
1380
1487
  };
1381
- '1024'?: {
1488
+ '1536'?: {
1382
1489
  url?: string | null;
1383
1490
  width?: number | null;
1384
1491
  height?: number | null;
@@ -1550,7 +1657,10 @@ interface Fulfillment {
1550
1657
  tenant?: (number | null) | Tenant;
1551
1658
  order: number | Order;
1552
1659
  status: 'pending' | 'packed' | 'shipped' | 'delivered' | 'failed';
1553
- carrier?: ('cj' | 'hanjin' | 'lotte' | 'epost' | 'logen' | 'other') | null;
1660
+ /**
1661
+ * Shipping carrier name (e.g. CJ Logistics, FedEx, UPS)
1662
+ */
1663
+ carrier?: string | null;
1554
1664
  trackingNumber?: string | null;
1555
1665
  shippedAt?: string | null;
1556
1666
  deliveredAt?: string | null;
@@ -1559,6 +1669,9 @@ interface Fulfillment {
1559
1669
  hasNextPage?: boolean;
1560
1670
  totalDocs?: number;
1561
1671
  };
1672
+ metadata?: {
1673
+ [k: string]: unknown;
1674
+ } | unknown[] | string | number | boolean | null;
1562
1675
  updatedAt: string;
1563
1676
  createdAt: string;
1564
1677
  }
@@ -1603,6 +1716,9 @@ interface Cart {
1603
1716
  totalDocs?: number;
1604
1717
  };
1605
1718
  expiresAt?: string | null;
1719
+ metadata?: {
1720
+ [k: string]: unknown;
1721
+ } | unknown[] | string | number | boolean | null;
1606
1722
  updatedAt: string;
1607
1723
  createdAt: string;
1608
1724
  }
@@ -1622,6 +1738,9 @@ interface CartItem {
1622
1738
  * Price at the time of adding to cart
1623
1739
  */
1624
1740
  unitPrice: number;
1741
+ metadata?: {
1742
+ [k: string]: unknown;
1743
+ } | unknown[] | string | number | boolean | null;
1625
1744
  updatedAt: string;
1626
1745
  createdAt: string;
1627
1746
  }
@@ -1640,11 +1759,30 @@ interface Discount {
1640
1759
  * Internal name (e.g. 신규가입 10% 할인)
1641
1760
  */
1642
1761
  title: string;
1643
- type: 'percentage' | 'fixed_amount' | 'free_shipping';
1762
+ /**
1763
+ * Internal description for admin reference
1764
+ */
1765
+ description?: string | null;
1766
+ type: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
1644
1767
  /**
1645
1768
  * Discount rate (%) or fixed amount
1646
1769
  */
1647
- 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;
1648
1786
  /**
1649
1787
  * Minimum order amount to apply
1650
1788
  */
@@ -1673,6 +1811,9 @@ interface Discount {
1673
1811
  * Leave empty to apply to all categories
1674
1812
  */
1675
1813
  applicableCategories?: (number | ProductCategory)[] | null;
1814
+ metadata?: {
1815
+ [k: string]: unknown;
1816
+ } | unknown[] | string | number | boolean | null;
1676
1817
  updatedAt: string;
1677
1818
  createdAt: string;
1678
1819
  }
@@ -1720,6 +1861,7 @@ interface Post {
1720
1861
  image?: (number | null) | Media;
1721
1862
  };
1722
1863
  thumbnail?: (number | null) | PostImage;
1864
+ images?: (number | PostImage)[] | null;
1723
1865
  /**
1724
1866
  * When enabled, the slug will auto-generate from the title field on save and autosave.
1725
1867
  */
@@ -1729,6 +1871,9 @@ interface Post {
1729
1871
  publishedAt?: string | null;
1730
1872
  categories?: (number | PostCategory)[] | null;
1731
1873
  tags?: (number | PostTag)[] | null;
1874
+ metadata?: {
1875
+ [k: string]: unknown;
1876
+ } | unknown[] | string | number | boolean | null;
1732
1877
  updatedAt: string;
1733
1878
  createdAt: string;
1734
1879
  _status?: ('draft' | 'published') | null;
@@ -1763,7 +1908,15 @@ interface PostImage {
1763
1908
  focalX?: number | null;
1764
1909
  focalY?: number | null;
1765
1910
  sizes?: {
1766
- '512'?: {
1911
+ '384'?: {
1912
+ url?: string | null;
1913
+ width?: number | null;
1914
+ height?: number | null;
1915
+ mimeType?: string | null;
1916
+ filesize?: number | null;
1917
+ filename?: string | null;
1918
+ };
1919
+ '768'?: {
1767
1920
  url?: string | null;
1768
1921
  width?: number | null;
1769
1922
  height?: number | null;
@@ -1771,7 +1924,7 @@ interface PostImage {
1771
1924
  filesize?: number | null;
1772
1925
  filename?: string | null;
1773
1926
  };
1774
- '1024'?: {
1927
+ '1536'?: {
1775
1928
  url?: string | null;
1776
1929
  width?: number | null;
1777
1930
  height?: number | null;
@@ -1802,6 +1955,9 @@ interface Author {
1802
1955
  hasNextPage?: boolean;
1803
1956
  totalDocs?: number;
1804
1957
  };
1958
+ metadata?: {
1959
+ [k: string]: unknown;
1960
+ } | unknown[] | string | number | boolean | null;
1805
1961
  updatedAt: string;
1806
1962
  createdAt: string;
1807
1963
  }
@@ -1902,7 +2058,7 @@ interface Document {
1902
2058
  */
1903
2059
  generateSlug?: boolean | null;
1904
2060
  slug?: string | null;
1905
- type: 'terms_of_service' | 'privacy_policy' | 'guide' | 'notice' | 'legal_notice' | 'refund_policy' | 'other';
2061
+ type?: (number | null) | DocumentType;
1906
2062
  /**
1907
2063
  * Document version (e.g. 1.0, 1.1, 2.0)
1908
2064
  */
@@ -1920,15 +2076,18 @@ interface Document {
1920
2076
  * Document that requires user agreement
1921
2077
  */
1922
2078
  isRequired?: boolean | null;
2079
+ metadata?: {
2080
+ [k: string]: unknown;
2081
+ } | unknown[] | string | number | boolean | null;
1923
2082
  updatedAt: string;
1924
2083
  createdAt: string;
1925
2084
  _status?: ('draft' | 'published') | null;
1926
2085
  }
1927
2086
  /**
1928
2087
  * This interface was referenced by `Config`'s JSON-Schema
1929
- * via the `definition` "document-categories".
2088
+ * via the `definition` "document-types".
1930
2089
  */
1931
- interface DocumentCategory {
2090
+ interface DocumentType {
1932
2091
  id: number;
1933
2092
  _order?: string | null;
1934
2093
  tenant?: (number | null) | Tenant;
@@ -1940,7 +2099,6 @@ interface DocumentCategory {
1940
2099
  slug?: string | null;
1941
2100
  description?: string | null;
1942
2101
  image?: (number | null) | DocumentImage;
1943
- parent?: (number | null) | DocumentCategory;
1944
2102
  color?: string | null;
1945
2103
  updatedAt: string;
1946
2104
  createdAt: string;
@@ -1975,7 +2133,7 @@ interface DocumentImage {
1975
2133
  focalX?: number | null;
1976
2134
  focalY?: number | null;
1977
2135
  sizes?: {
1978
- '512'?: {
2136
+ '384'?: {
1979
2137
  url?: string | null;
1980
2138
  width?: number | null;
1981
2139
  height?: number | null;
@@ -1983,7 +2141,15 @@ interface DocumentImage {
1983
2141
  filesize?: number | null;
1984
2142
  filename?: string | null;
1985
2143
  };
1986
- '1024'?: {
2144
+ '768'?: {
2145
+ url?: string | null;
2146
+ width?: number | null;
2147
+ height?: number | null;
2148
+ mimeType?: string | null;
2149
+ filesize?: number | null;
2150
+ filename?: string | null;
2151
+ };
2152
+ '1536'?: {
1987
2153
  url?: string | null;
1988
2154
  width?: number | null;
1989
2155
  height?: number | null;
@@ -1993,6 +2159,27 @@ interface DocumentImage {
1993
2159
  };
1994
2160
  };
1995
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
+ }
1996
2183
  /**
1997
2184
  * This interface was referenced by `Config`'s JSON-Schema
1998
2185
  * via the `definition` "playlists".
@@ -2027,6 +2214,9 @@ interface Playlist {
2027
2214
  */
2028
2215
  generateSlug?: boolean | null;
2029
2216
  slug?: string | null;
2217
+ metadata?: {
2218
+ [k: string]: unknown;
2219
+ } | unknown[] | string | number | boolean | null;
2030
2220
  updatedAt: string;
2031
2221
  createdAt: string;
2032
2222
  }
@@ -2052,6 +2242,9 @@ interface Music {
2052
2242
  * Duration in seconds (auto-filled from YouTube)
2053
2243
  */
2054
2244
  duration?: number | null;
2245
+ metadata?: {
2246
+ [k: string]: unknown;
2247
+ } | unknown[] | string | number | boolean | null;
2055
2248
  isValid?: boolean | null;
2056
2249
  updatedAt: string;
2057
2250
  createdAt: string;
@@ -2086,7 +2279,7 @@ interface PlaylistImage {
2086
2279
  focalX?: number | null;
2087
2280
  focalY?: number | null;
2088
2281
  sizes?: {
2089
- '512'?: {
2282
+ '384'?: {
2090
2283
  url?: string | null;
2091
2284
  width?: number | null;
2092
2285
  height?: number | null;
@@ -2094,7 +2287,7 @@ interface PlaylistImage {
2094
2287
  filesize?: number | null;
2095
2288
  filename?: string | null;
2096
2289
  };
2097
- '1024'?: {
2290
+ '768'?: {
2098
2291
  url?: string | null;
2099
2292
  width?: number | null;
2100
2293
  height?: number | null;
@@ -2102,81 +2295,7 @@ interface PlaylistImage {
2102
2295
  filesize?: number | null;
2103
2296
  filename?: string | null;
2104
2297
  };
2105
- };
2106
- }
2107
- /**
2108
- * This interface was referenced by `Config`'s JSON-Schema
2109
- * via the `definition` "galleries".
2110
- */
2111
- interface Gallery {
2112
- id: number;
2113
- _order?: string | null;
2114
- tenant?: (number | null) | Tenant;
2115
- title: string;
2116
- description?: string | null;
2117
- images: (number | GalleryImage)[];
2118
- meta?: {
2119
- /**
2120
- * 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
2121
- */
2122
- title?: string | null;
2123
- /**
2124
- * 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
2125
- */
2126
- description?: string | null;
2127
- /**
2128
- * SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
2129
- */
2130
- image?: (number | null) | Media;
2131
- };
2132
- thumbnail?: (number | null) | GalleryImage;
2133
- /**
2134
- * When enabled, the slug will auto-generate from the title field on save and autosave.
2135
- */
2136
- generateSlug?: boolean | null;
2137
- slug?: string | null;
2138
- updatedAt: string;
2139
- createdAt: string;
2140
- }
2141
- /**
2142
- * This interface was referenced by `Config`'s JSON-Schema
2143
- * via the `definition` "gallery-images".
2144
- */
2145
- interface GalleryImage {
2146
- id: number;
2147
- tenant?: (number | null) | Tenant;
2148
- alt?: string | null;
2149
- lqip?: string | null;
2150
- palette?: {
2151
- vibrant?: string | null;
2152
- muted?: string | null;
2153
- darkVibrant?: string | null;
2154
- darkMuted?: string | null;
2155
- lightVibrant?: string | null;
2156
- lightMuted?: string | null;
2157
- };
2158
- prefix?: string | null;
2159
- updatedAt: string;
2160
- createdAt: string;
2161
- url?: string | null;
2162
- thumbnailURL?: string | null;
2163
- filename?: string | null;
2164
- mimeType?: string | null;
2165
- filesize?: number | null;
2166
- width?: number | null;
2167
- height?: number | null;
2168
- focalX?: number | null;
2169
- focalY?: number | null;
2170
- sizes?: {
2171
- '512'?: {
2172
- url?: string | null;
2173
- width?: number | null;
2174
- height?: number | null;
2175
- mimeType?: string | null;
2176
- filesize?: number | null;
2177
- filename?: string | null;
2178
- };
2179
- '1024'?: {
2298
+ '1536'?: {
2180
2299
  url?: string | null;
2181
2300
  width?: number | null;
2182
2301
  height?: number | null;
@@ -2437,6 +2556,9 @@ interface PayloadLockedDocument {
2437
2556
  } | null) | ({
2438
2557
  relationTo: 'product-images';
2439
2558
  value: number | ProductImage;
2559
+ } | null) | ({
2560
+ relationTo: 'product-collections';
2561
+ value: number | ProductCollection;
2440
2562
  } | null) | ({
2441
2563
  relationTo: 'brands';
2442
2564
  value: number | Brand;
@@ -2515,6 +2637,9 @@ interface PayloadLockedDocument {
2515
2637
  } | null) | ({
2516
2638
  relationTo: 'document-categories';
2517
2639
  value: number | DocumentCategory;
2640
+ } | null) | ({
2641
+ relationTo: 'document-types';
2642
+ value: number | DocumentType;
2518
2643
  } | null) | ({
2519
2644
  relationTo: 'document-images';
2520
2645
  value: number | DocumentImage;
@@ -2527,12 +2652,6 @@ interface PayloadLockedDocument {
2527
2652
  } | null) | ({
2528
2653
  relationTo: 'musics';
2529
2654
  value: number | Music;
2530
- } | null) | ({
2531
- relationTo: 'galleries';
2532
- value: number | Gallery;
2533
- } | null) | ({
2534
- relationTo: 'gallery-images';
2535
- value: number | GalleryImage;
2536
2655
  } | null) | ({
2537
2656
  relationTo: 'forms';
2538
2657
  value: number | Form;
@@ -2684,7 +2803,13 @@ interface TenantsSelect<T extends boolean = true> {
2684
2803
  value?: T;
2685
2804
  id?: T;
2686
2805
  };
2687
- webhookUrl?: T;
2806
+ webhooks?: T | {
2807
+ name?: T;
2808
+ url?: T;
2809
+ secret?: T;
2810
+ enabled?: T;
2811
+ id?: T;
2812
+ };
2688
2813
  updatedAt?: T;
2689
2814
  createdAt?: T;
2690
2815
  }
@@ -2980,6 +3105,7 @@ interface ProductsSelect<T extends boolean = true> {
2980
3105
  isSoldOut?: T;
2981
3106
  categories?: T;
2982
3107
  tags?: T;
3108
+ collections?: T;
2983
3109
  brand?: T;
2984
3110
  shippingPolicy?: T;
2985
3111
  metadata?: T;
@@ -3023,6 +3149,7 @@ interface ProductOptionsSelect<T extends boolean = true> {
3023
3149
  stock?: T;
3024
3150
  reservedStock?: T;
3025
3151
  priceAdjustment?: T;
3152
+ metadata?: T;
3026
3153
  updatedAt?: T;
3027
3154
  createdAt?: T;
3028
3155
  }
@@ -3089,7 +3216,15 @@ interface ProductImagesSelect<T extends boolean = true> {
3089
3216
  focalX?: T;
3090
3217
  focalY?: T;
3091
3218
  sizes?: T | {
3092
- '512'?: T | {
3219
+ '384'?: T | {
3220
+ url?: T;
3221
+ width?: T;
3222
+ height?: T;
3223
+ mimeType?: T;
3224
+ filesize?: T;
3225
+ filename?: T;
3226
+ };
3227
+ '768'?: T | {
3093
3228
  url?: T;
3094
3229
  width?: T;
3095
3230
  height?: T;
@@ -3097,7 +3232,7 @@ interface ProductImagesSelect<T extends boolean = true> {
3097
3232
  filesize?: T;
3098
3233
  filename?: T;
3099
3234
  };
3100
- '1024'?: T | {
3235
+ '1536'?: T | {
3101
3236
  url?: T;
3102
3237
  width?: T;
3103
3238
  height?: T;
@@ -3107,6 +3242,26 @@ interface ProductImagesSelect<T extends boolean = true> {
3107
3242
  };
3108
3243
  };
3109
3244
  }
3245
+ /**
3246
+ * This interface was referenced by `Config`'s JSON-Schema
3247
+ * via the `definition` "product-collections_select".
3248
+ */
3249
+ interface ProductCollectionsSelect<T extends boolean = true> {
3250
+ _order?: T;
3251
+ tenant?: T;
3252
+ title?: T;
3253
+ thumbnail?: T;
3254
+ images?: T;
3255
+ description?: T;
3256
+ products?: T;
3257
+ generateSlug?: T;
3258
+ slug?: T;
3259
+ status?: T;
3260
+ sortOrder?: T;
3261
+ metadata?: T;
3262
+ updatedAt?: T;
3263
+ createdAt?: T;
3264
+ }
3110
3265
  /**
3111
3266
  * This interface was referenced by `Config`'s JSON-Schema
3112
3267
  * via the `definition` "brands_select".
@@ -3122,6 +3277,7 @@ interface BrandsSelect<T extends boolean = true> {
3122
3277
  logomark?: T;
3123
3278
  description?: T;
3124
3279
  website?: T;
3280
+ metadata?: T;
3125
3281
  updatedAt?: T;
3126
3282
  createdAt?: T;
3127
3283
  }
@@ -3230,6 +3386,7 @@ interface OrdersSelect<T extends boolean = true> {
3230
3386
  discountCode?: T;
3231
3387
  discountAmount?: T;
3232
3388
  notes?: T;
3389
+ metadata?: T;
3233
3390
  shippingAddress?: T | {
3234
3391
  recipientName?: T;
3235
3392
  phone?: T;
@@ -3343,6 +3500,7 @@ interface FulfillmentsSelect<T extends boolean = true> {
3343
3500
  shippedAt?: T;
3344
3501
  deliveredAt?: T;
3345
3502
  items?: T;
3503
+ metadata?: T;
3346
3504
  updatedAt?: T;
3347
3505
  createdAt?: T;
3348
3506
  }
@@ -3384,8 +3542,12 @@ interface CustomersSelect<T extends boolean = true> {
3384
3542
  phone?: T;
3385
3543
  hashedPassword?: T;
3386
3544
  salt?: T;
3545
+ authProvider?: T;
3546
+ socialId?: T;
3387
3547
  isGuest?: T;
3388
3548
  isVerified?: T;
3549
+ marketingConsent?: T;
3550
+ consentedAt?: T;
3389
3551
  verificationToken?: T;
3390
3552
  resetPasswordToken?: T;
3391
3553
  resetPasswordExpiry?: T;
@@ -3464,7 +3626,7 @@ interface CustomerGroupImagesSelect<T extends boolean = true> {
3464
3626
  focalX?: T;
3465
3627
  focalY?: T;
3466
3628
  sizes?: T | {
3467
- '512'?: T | {
3629
+ '384'?: T | {
3468
3630
  url?: T;
3469
3631
  width?: T;
3470
3632
  height?: T;
@@ -3472,7 +3634,15 @@ interface CustomerGroupImagesSelect<T extends boolean = true> {
3472
3634
  filesize?: T;
3473
3635
  filename?: T;
3474
3636
  };
3475
- '1024'?: T | {
3637
+ '768'?: T | {
3638
+ url?: T;
3639
+ width?: T;
3640
+ height?: T;
3641
+ mimeType?: T;
3642
+ filesize?: T;
3643
+ filename?: T;
3644
+ };
3645
+ '1536'?: T | {
3476
3646
  url?: T;
3477
3647
  width?: T;
3478
3648
  height?: T;
@@ -3505,6 +3675,7 @@ interface CartsSelect<T extends boolean = true> {
3505
3675
  totalAmount?: T;
3506
3676
  items?: T;
3507
3677
  expiresAt?: T;
3678
+ metadata?: T;
3508
3679
  updatedAt?: T;
3509
3680
  createdAt?: T;
3510
3681
  }
@@ -3520,6 +3691,7 @@ interface CartItemsSelect<T extends boolean = true> {
3520
3691
  option?: T;
3521
3692
  quantity?: T;
3522
3693
  unitPrice?: T;
3694
+ metadata?: T;
3523
3695
  updatedAt?: T;
3524
3696
  createdAt?: T;
3525
3697
  }
@@ -3531,8 +3703,15 @@ interface DiscountsSelect<T extends boolean = true> {
3531
3703
  tenant?: T;
3532
3704
  code?: T;
3533
3705
  title?: T;
3706
+ description?: T;
3534
3707
  type?: T;
3535
3708
  value?: T;
3709
+ tiers?: T | {
3710
+ minAmount?: T;
3711
+ discountType?: T;
3712
+ value?: T;
3713
+ id?: T;
3714
+ };
3536
3715
  minOrderAmount?: T;
3537
3716
  maxDiscountAmount?: T;
3538
3717
  startsAt?: T;
@@ -3543,6 +3722,7 @@ interface DiscountsSelect<T extends boolean = true> {
3543
3722
  isActive?: T;
3544
3723
  applicableProducts?: T;
3545
3724
  applicableCategories?: T;
3725
+ metadata?: T;
3546
3726
  updatedAt?: T;
3547
3727
  createdAt?: T;
3548
3728
  }
@@ -3558,7 +3738,10 @@ interface ShippingPoliciesSelect<T extends boolean = true> {
3558
3738
  freeShippingThreshold?: T;
3559
3739
  jejuExtraFee?: T;
3560
3740
  islandExtraFee?: T;
3741
+ generateSlug?: T;
3742
+ slug?: T;
3561
3743
  isDefault?: T;
3744
+ metadata?: T;
3562
3745
  updatedAt?: T;
3563
3746
  createdAt?: T;
3564
3747
  }
@@ -3579,12 +3762,14 @@ interface PostsSelect<T extends boolean = true> {
3579
3762
  image?: T;
3580
3763
  };
3581
3764
  thumbnail?: T;
3765
+ images?: T;
3582
3766
  generateSlug?: T;
3583
3767
  slug?: T;
3584
3768
  author?: T;
3585
3769
  publishedAt?: T;
3586
3770
  categories?: T;
3587
3771
  tags?: T;
3772
+ metadata?: T;
3588
3773
  updatedAt?: T;
3589
3774
  createdAt?: T;
3590
3775
  _status?: T;
@@ -3652,7 +3837,7 @@ interface PostImagesSelect<T extends boolean = true> {
3652
3837
  focalX?: T;
3653
3838
  focalY?: T;
3654
3839
  sizes?: T | {
3655
- '512'?: T | {
3840
+ '384'?: T | {
3656
3841
  url?: T;
3657
3842
  width?: T;
3658
3843
  height?: T;
@@ -3660,7 +3845,15 @@ interface PostImagesSelect<T extends boolean = true> {
3660
3845
  filesize?: T;
3661
3846
  filename?: T;
3662
3847
  };
3663
- '1024'?: T | {
3848
+ '768'?: T | {
3849
+ url?: T;
3850
+ width?: T;
3851
+ height?: T;
3852
+ mimeType?: T;
3853
+ filesize?: T;
3854
+ filename?: T;
3855
+ };
3856
+ '1536'?: T | {
3664
3857
  url?: T;
3665
3858
  width?: T;
3666
3859
  height?: T;
@@ -3683,6 +3876,7 @@ interface AuthorsSelect<T extends boolean = true> {
3683
3876
  avatar?: T;
3684
3877
  bio?: T;
3685
3878
  posts?: T;
3879
+ metadata?: T;
3686
3880
  updatedAt?: T;
3687
3881
  createdAt?: T;
3688
3882
  }
@@ -3714,6 +3908,7 @@ interface DocumentsSelect<T extends boolean = true> {
3714
3908
  expiryDate?: T;
3715
3909
  category?: T;
3716
3910
  isRequired?: T;
3911
+ metadata?: T;
3717
3912
  updatedAt?: T;
3718
3913
  createdAt?: T;
3719
3914
  _status?: T;
@@ -3735,6 +3930,22 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
3735
3930
  updatedAt?: T;
3736
3931
  createdAt?: T;
3737
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
+ }
3738
3949
  /**
3739
3950
  * This interface was referenced by `Config`'s JSON-Schema
3740
3951
  * via the `definition` "document-images_select".
@@ -3764,7 +3975,15 @@ interface DocumentImagesSelect<T extends boolean = true> {
3764
3975
  focalX?: T;
3765
3976
  focalY?: T;
3766
3977
  sizes?: T | {
3767
- '512'?: T | {
3978
+ '384'?: T | {
3979
+ url?: T;
3980
+ width?: T;
3981
+ height?: T;
3982
+ mimeType?: T;
3983
+ filesize?: T;
3984
+ filename?: T;
3985
+ };
3986
+ '768'?: T | {
3768
3987
  url?: T;
3769
3988
  width?: T;
3770
3989
  height?: T;
@@ -3772,7 +3991,7 @@ interface DocumentImagesSelect<T extends boolean = true> {
3772
3991
  filesize?: T;
3773
3992
  filename?: T;
3774
3993
  };
3775
- '1024'?: T | {
3994
+ '1536'?: T | {
3776
3995
  url?: T;
3777
3996
  width?: T;
3778
3997
  height?: T;
@@ -3799,6 +4018,7 @@ interface PlaylistsSelect<T extends boolean = true> {
3799
4018
  image?: T;
3800
4019
  generateSlug?: T;
3801
4020
  slug?: T;
4021
+ metadata?: T;
3802
4022
  updatedAt?: T;
3803
4023
  createdAt?: T;
3804
4024
  }
@@ -3831,7 +4051,7 @@ interface PlaylistImagesSelect<T extends boolean = true> {
3831
4051
  focalX?: T;
3832
4052
  focalY?: T;
3833
4053
  sizes?: T | {
3834
- '512'?: T | {
4054
+ '384'?: T | {
3835
4055
  url?: T;
3836
4056
  width?: T;
3837
4057
  height?: T;
@@ -3839,7 +4059,15 @@ interface PlaylistImagesSelect<T extends boolean = true> {
3839
4059
  filesize?: T;
3840
4060
  filename?: T;
3841
4061
  };
3842
- '1024'?: T | {
4062
+ '768'?: T | {
4063
+ url?: T;
4064
+ width?: T;
4065
+ height?: T;
4066
+ mimeType?: T;
4067
+ filesize?: T;
4068
+ filename?: T;
4069
+ };
4070
+ '1536'?: T | {
3843
4071
  url?: T;
3844
4072
  width?: T;
3845
4073
  height?: T;
@@ -3861,78 +4089,11 @@ interface MusicsSelect<T extends boolean = true> {
3861
4089
  title?: T;
3862
4090
  artist?: T;
3863
4091
  duration?: T;
4092
+ metadata?: T;
3864
4093
  isValid?: T;
3865
4094
  updatedAt?: T;
3866
4095
  createdAt?: T;
3867
4096
  }
3868
- /**
3869
- * This interface was referenced by `Config`'s JSON-Schema
3870
- * via the `definition` "galleries_select".
3871
- */
3872
- interface GalleriesSelect<T extends boolean = true> {
3873
- _order?: T;
3874
- tenant?: T;
3875
- title?: T;
3876
- description?: T;
3877
- images?: T;
3878
- meta?: T | {
3879
- title?: T;
3880
- description?: T;
3881
- image?: T;
3882
- };
3883
- thumbnail?: T;
3884
- generateSlug?: T;
3885
- slug?: T;
3886
- updatedAt?: T;
3887
- createdAt?: T;
3888
- }
3889
- /**
3890
- * This interface was referenced by `Config`'s JSON-Schema
3891
- * via the `definition` "gallery-images_select".
3892
- */
3893
- interface GalleryImagesSelect<T extends boolean = true> {
3894
- tenant?: T;
3895
- alt?: T;
3896
- lqip?: T;
3897
- palette?: T | {
3898
- vibrant?: T;
3899
- muted?: T;
3900
- darkVibrant?: T;
3901
- darkMuted?: T;
3902
- lightVibrant?: T;
3903
- lightMuted?: T;
3904
- };
3905
- prefix?: T;
3906
- updatedAt?: T;
3907
- createdAt?: T;
3908
- url?: T;
3909
- thumbnailURL?: T;
3910
- filename?: T;
3911
- mimeType?: T;
3912
- filesize?: T;
3913
- width?: T;
3914
- height?: T;
3915
- focalX?: T;
3916
- focalY?: T;
3917
- sizes?: T | {
3918
- '512'?: T | {
3919
- url?: T;
3920
- width?: T;
3921
- height?: T;
3922
- mimeType?: T;
3923
- filesize?: T;
3924
- filename?: T;
3925
- };
3926
- '1024'?: T | {
3927
- url?: T;
3928
- width?: T;
3929
- height?: T;
3930
- mimeType?: T;
3931
- filesize?: T;
3932
- filename?: T;
3933
- };
3934
- };
3935
- }
3936
4097
  /**
3937
4098
  * This interface was referenced by `Config`'s JSON-Schema
3938
4099
  * via the `definition` "forms_select".
@@ -4113,4 +4274,4 @@ declare module 'payload' {
4113
4274
  }
4114
4275
  }
4115
4276
 
4116
- export type { PlaylistImage as $, Audience as A, BrandLogo as B, CartItem as C, ExchangeProduct as D, EmailLog as E, Fulfillment as F, FulfillmentItem as G, Cart as H, IframeBlock as I, Discount as J, Post as K, PostImage as L, Media as M, Author as N, Order as O, ProductOption as P, PostCategory as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PostTag as V, Document as W, DocumentCategory as X, DocumentImage as Y, Playlist as Z, Music as _, OrderProduct as a, Auth as a$, Gallery as a0, GalleryImage as a1, Form as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect 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, GalleriesSelect as aT, GalleryImagesSelect 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, 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, Brand as s, ShippingPolicy as t, Customer as u, CustomerGroup as v, CustomerGroupImage as w, CustomerAddress as x, ReturnProduct as y, Exchange as z };
4277
+ export type { Playlist 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, DocumentType as Y, DocumentImage as Z, DocumentCategory as _, OrderProduct as a, Auth as a$, Music as a0, PlaylistImage as a1, Form 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, 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 };