@01.software/sdk 0.2.9-dev.260305.35fd2d4 → 0.2.9-dev.260306.4e16dd4

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.
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, C as CartItem, P as ProductOption } from './payload-types-BFAXKjly.js';
2
- export { k as ApiUsage, ag as ApiUsageSelect, A as Audience, ac as AudiencesSelect, b4 as Auth, m as BillingHistory, ai as BillingHistorySelect, u as Brand, B as BrandLogo, as as BrandLogosSelect, ar as BrandsSelect, K as Cart, aI as CartItemsSelect, aH as CartsSelect, f as CodeBlock, b3 as CollectionsWidget, c as Config, w as Customer, z as CustomerAddress, aE as CustomerAddressesSelect, d as CustomerAuthOperations, x as CustomerGroup, y as CustomerGroupImage, aG as CustomerGroupImagesSelect, aF as CustomerGroupsSelect, aD as CustomersSelect, L as Discount, aJ as DiscountsSelect, Y as Document, aR as DocumentCategoriesSelect, $ as DocumentCategory, _ as DocumentImage, aT as DocumentImagesSelect, Z as DocumentType, aS as DocumentTypesSelect, aQ as DocumentsSelect, E as EmailLog, ad as EmailLogsSelect, G as Exchange, H as ExchangeProduct, aC as ExchangeProductsSelect, aB as ExchangesSelect, a3 as Flow, a4 as FlowImage, aY as FlowImagesSelect, aX as FlowsSelect, F as Form, a5 as FormSubmission, a_ as FormSubmissionsSelect, aZ as FormsSelect, J as FulfillmentItem, ay as FulfillmentItemsSelect, ax as FulfillmentsSelect, I as IframeBlock, M as Media, ab as MediaSelect, a1 as Music, aV as MusicsSelect, av as OrderProductsSelect, au as OrdersSelect, a6 as PayloadKv, a$ as PayloadKvSelect, a7 as PayloadLockedDocument, b0 as PayloadLockedDocumentsSelect, a9 as PayloadMigration, b2 as PayloadMigrationsSelect, a8 as PayloadPreference, b1 as PayloadPreferencesSelect, e as PlayerBlock, a0 as Playlist, a2 as PlaylistImage, aW as PlaylistImagesSelect, aU as PlaylistsSelect, N as Post, V as PostAuthor, aM as PostAuthorsSelect, aN as PostCategoriesSelect, W as PostCategory, Q as PostImage, aP as PostImagesSelect, X as PostTag, aO as PostTagsSelect, aL as PostsSelect, o as Product, ao as ProductCategoriesSelect, r as ProductCategory, t as ProductCollection, aq as ProductCollectionsSelect, p as ProductImage, at as ProductImagesSelect, an as ProductOptionsSelect, s as ProductTag, ap as ProductTagsSelect, q as ProductVariant, am as ProductVariantsSelect, al as ProductsSelect, D as ReturnProduct, aA as ReturnProductsSelect, az as ReturnsSelect, aK as ShippingPoliciesSelect, v as ShippingPolicy, l as Subscription, ah as SubscriptionsSelect, S as SupportedTimezones, h as Tenant, n as TenantLogo, aj as TenantLogosSelect, af as TenantMetadataSelect, i as TenantMetadatum, j as TenantOgImage, ak as TenantOgImagesSelect, ae as TenantsSelect, aw as TransactionsSelect, g as User, U as UserAuthOperations, aa as UsersSelect } from './payload-types-BFAXKjly.js';
3
- import { F as FetchOptions, A as ApiQueryOptions, P as PayloadFindResponse, a as PayloadMutationResponse, C as ClientBrowserConfig, b as ClientState, c as ClientServerConfig } from './auth-Gb34eOkR.js';
4
- export { t as API_URLS, f as ApiError, y as ApiQueryReactOptions, w as ClientMetadata, g as ConfigError, d as DebugConfig, D as DeepPartial, s as Environment, e as ErrorLogger, E as ExtractArrayType, J as JwtPayload, N as NetworkError, x as PaginationMeta, R as RetryConfig, S as SDKError, T as TimeoutError, U as UsageLimitError, V as ValidationError, q as createApiKey, o as createServerToken, p as decodeServerToken, k as isApiError, l as isConfigError, h as isNetworkError, i as isSDKError, m as isTimeoutError, n as isUsageLimitError, j as isValidationError, r as parseApiKey, u as resolveApiUrl, v as verifyServerToken } from './auth-Gb34eOkR.js';
1
+ import { O as Order, a as OrderProduct, T as Transaction, b as Fulfillment, R as Return, C as CartItem, P as ProductOption } from './payload-types-p9NaGmQA.js';
2
+ export { k as ApiUsage, ag as ApiUsageSelect, A as Audience, ac as AudiencesSelect, b4 as Auth, m as BillingHistory, ai as BillingHistorySelect, u as Brand, B as BrandLogo, as as BrandLogosSelect, ar as BrandsSelect, K as Cart, aI as CartItemsSelect, aH as CartsSelect, f as CodeBlock, b3 as CollectionsWidget, c as Config, w as Customer, z as CustomerAddress, aE as CustomerAddressesSelect, d as CustomerAuthOperations, x as CustomerGroup, y as CustomerGroupImage, aG as CustomerGroupImagesSelect, aF as CustomerGroupsSelect, aD as CustomersSelect, L as Discount, aJ as DiscountsSelect, Y as Document, aR as DocumentCategoriesSelect, $ as DocumentCategory, _ as DocumentImage, aT as DocumentImagesSelect, Z as DocumentType, aS as DocumentTypesSelect, aQ as DocumentsSelect, E as EmailLog, ad as EmailLogsSelect, H as Exchange, J as ExchangeProduct, aC as ExchangeProductsSelect, aB as ExchangesSelect, a3 as Flow, a4 as FlowImage, aY as FlowImagesSelect, aX as FlowsSelect, F as Form, a5 as FormSubmission, a_ as FormSubmissionsSelect, aZ as FormsSelect, D as FulfillmentItem, ay as FulfillmentItemsSelect, ax as FulfillmentsSelect, I as IframeBlock, M as Media, ab as MediaSelect, a1 as Music, aV as MusicsSelect, av as OrderProductsSelect, au as OrdersSelect, a6 as PayloadKv, a$ as PayloadKvSelect, a7 as PayloadLockedDocument, b0 as PayloadLockedDocumentsSelect, a9 as PayloadMigration, b2 as PayloadMigrationsSelect, a8 as PayloadPreference, b1 as PayloadPreferencesSelect, e as PlayerBlock, a0 as Playlist, a2 as PlaylistImage, aW as PlaylistImagesSelect, aU as PlaylistsSelect, N as Post, V as PostAuthor, aM as PostAuthorsSelect, aN as PostCategoriesSelect, W as PostCategory, Q as PostImage, aP as PostImagesSelect, X as PostTag, aO as PostTagsSelect, aL as PostsSelect, o as Product, ao as ProductCategoriesSelect, r as ProductCategory, t as ProductCollection, aq as ProductCollectionsSelect, p as ProductImage, at as ProductImagesSelect, an as ProductOptionsSelect, s as ProductTag, ap as ProductTagsSelect, q as ProductVariant, am as ProductVariantsSelect, al as ProductsSelect, G as ReturnProduct, aA as ReturnProductsSelect, az as ReturnsSelect, aK as ShippingPoliciesSelect, v as ShippingPolicy, l as Subscription, ah as SubscriptionsSelect, S as SupportedTimezones, h as Tenant, n as TenantLogo, aj as TenantLogosSelect, af as TenantMetadataSelect, i as TenantMetadatum, j as TenantOgImage, ak as TenantOgImagesSelect, ae as TenantsSelect, aw as TransactionsSelect, g as User, U as UserAuthOperations, aa as UsersSelect } from './payload-types-p9NaGmQA.js';
3
+ import { F as FetchOptions, A as ApiQueryOptions, P as PayloadFindResponse, a as PayloadMutationResponse, C as ClientBrowserConfig, b as ClientState, c as ClientServerConfig } from './auth-D_6MQo4x.js';
4
+ export { t as API_URLS, f as ApiError, y as ApiQueryReactOptions, w as ClientMetadata, g as ConfigError, d as DebugConfig, D as DeepPartial, s as Environment, e as ErrorLogger, E as ExtractArrayType, J as JwtPayload, N as NetworkError, x as PaginationMeta, R as RetryConfig, S as SDKError, T as TimeoutError, U as UsageLimitError, V as ValidationError, q as createApiKey, o as createServerToken, p as decodeServerToken, k as isApiError, l as isConfigError, h as isNetworkError, i as isSDKError, m as isTimeoutError, n as isUsageLimitError, j as isValidationError, r as parseApiKey, u as resolveApiUrl, v as verifyServerToken } from './auth-D_6MQo4x.js';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
6
  import { QueryClient } from '@tanstack/react-query';
7
- import { P as PublicCollection, C as CollectionType } from './webhook-Ct6PD0Ys.js';
8
- export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-Ct6PD0Ys.js';
7
+ import { P as PublicCollection, C as CollectionType } from './webhook-CjgnfIo6.js';
8
+ export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-CjgnfIo6.js';
9
9
  import { Metadata } from 'next';
10
10
  export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.js';
11
11
  import 'payload';
@@ -91,9 +91,9 @@ interface Config {
91
91
  orders: {
92
92
  products: 'order-products';
93
93
  transactions: 'transactions';
94
+ fulfillments: 'fulfillments';
94
95
  returns: 'returns';
95
96
  exchanges: 'exchanges';
96
- fulfillments: 'fulfillments';
97
97
  };
98
98
  fulfillments: {
99
99
  items: 'fulfillment-items';
@@ -308,6 +308,8 @@ interface User {
308
308
  interface Tenant {
309
309
  id: string;
310
310
  name: string;
311
+ plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
312
+ features?: ('ecommerce' | 'playlists' | 'forms' | 'posts' | 'documents' | 'flows')[] | null;
311
313
  /**
312
314
  * Allowed CORS origins for browser SDK requests. Empty = all origins allowed.
313
315
  */
@@ -315,8 +317,6 @@ interface Tenant {
315
317
  origin: string;
316
318
  id?: string | null;
317
319
  }[] | null;
318
- features?: ('ecommerce' | 'playlists' | 'forms' | 'posts' | 'documents' | 'flows')[] | null;
319
- plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
320
320
  clientKey: string;
321
321
  secretKeys?: {
322
322
  name: string;
@@ -944,21 +944,6 @@ interface Product {
944
944
  subtitle?: string | null;
945
945
  thumbnail?: (string | null) | ProductImage;
946
946
  images?: (string | ProductImage)[] | null;
947
- description?: {
948
- root: {
949
- type: string;
950
- children: {
951
- type: any;
952
- version: number;
953
- [k: string]: unknown;
954
- }[];
955
- direction: ('ltr' | 'rtl') | null;
956
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
957
- indent: number;
958
- version: number;
959
- };
960
- [k: string]: unknown;
961
- } | null;
962
947
  price: number;
963
948
  /**
964
949
  * Original price before discount
@@ -974,6 +959,21 @@ interface Product {
974
959
  hasNextPage?: boolean;
975
960
  totalDocs?: number;
976
961
  };
962
+ description?: {
963
+ root: {
964
+ type: string;
965
+ children: {
966
+ type: any;
967
+ version: number;
968
+ [k: string]: unknown;
969
+ }[];
970
+ direction: ('ltr' | 'rtl') | null;
971
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
972
+ indent: number;
973
+ version: number;
974
+ };
975
+ [k: string]: unknown;
976
+ } | null;
977
977
  /**
978
978
  * When enabled, the slug will auto-generate from the title field on save and autosave.
979
979
  */
@@ -1318,6 +1318,13 @@ interface Order {
1318
1318
  tenant?: (string | null) | Tenant;
1319
1319
  orderNumber: string;
1320
1320
  status: 'pending' | 'paid' | 'failed' | 'canceled' | 'preparing' | 'shipped' | 'delivered' | 'confirmed' | 'return_requested' | 'return_processing' | 'returned';
1321
+ totalAmount?: number | null;
1322
+ discountCode?: string | null;
1323
+ discountAmount?: number | null;
1324
+ /**
1325
+ * Internal notes (not visible to customers)
1326
+ */
1327
+ notes?: string | null;
1321
1328
  customer?: (string | null) | Customer;
1322
1329
  /**
1323
1330
  * Customer info at the time of order
@@ -1327,16 +1334,6 @@ interface Order {
1327
1334
  email?: string | null;
1328
1335
  phone?: string | null;
1329
1336
  };
1330
- totalAmount?: number | null;
1331
- discountCode?: string | null;
1332
- discountAmount?: number | null;
1333
- /**
1334
- * Internal notes (not visible to customers)
1335
- */
1336
- notes?: string | null;
1337
- metadata?: {
1338
- [k: string]: unknown;
1339
- } | unknown[] | string | number | boolean | null;
1340
1337
  shippingAddress?: {
1341
1338
  recipientName?: string | null;
1342
1339
  phone?: string | null;
@@ -1355,6 +1352,11 @@ interface Order {
1355
1352
  hasNextPage?: boolean;
1356
1353
  totalDocs?: number;
1357
1354
  };
1355
+ fulfillments?: {
1356
+ docs?: (string | Fulfillment)[];
1357
+ hasNextPage?: boolean;
1358
+ totalDocs?: number;
1359
+ };
1358
1360
  returns?: {
1359
1361
  docs?: (string | Return)[];
1360
1362
  hasNextPage?: boolean;
@@ -1365,11 +1367,9 @@ interface Order {
1365
1367
  hasNextPage?: boolean;
1366
1368
  totalDocs?: number;
1367
1369
  };
1368
- fulfillments?: {
1369
- docs?: (string | Fulfillment)[];
1370
- hasNextPage?: boolean;
1371
- totalDocs?: number;
1372
- };
1370
+ metadata?: {
1371
+ [k: string]: unknown;
1372
+ } | unknown[] | string | number | boolean | null;
1373
1373
  updatedAt: string;
1374
1374
  createdAt: string;
1375
1375
  }
@@ -1385,36 +1385,15 @@ interface Customer {
1385
1385
  name: string;
1386
1386
  email?: string | null;
1387
1387
  phone?: string | null;
1388
- hashedPassword?: string | null;
1389
- salt?: string | null;
1390
- authProvider?: ('local' | 'google' | 'apple' | 'kakao' | 'naver') | null;
1388
+ groups?: (string | CustomerGroup)[] | null;
1391
1389
  /**
1392
1390
  * External provider user ID
1393
1391
  */
1394
1392
  socialId?: string | null;
1395
- isGuest?: boolean | null;
1396
- isVerified?: boolean | null;
1397
- /**
1398
- * Marketing email consent
1399
- */
1400
- marketingConsent?: boolean | null;
1401
- /**
1402
- * Date marketing consent was given
1403
- */
1404
- consentedAt?: string | null;
1405
- verificationToken?: string | null;
1406
- resetPasswordToken?: string | null;
1407
- resetPasswordExpiry?: string | null;
1408
- loginAttempts?: number | null;
1409
- lockedUntil?: string | null;
1410
1393
  /**
1411
1394
  * Internal notes (not visible to customers)
1412
1395
  */
1413
1396
  note?: string | null;
1414
- metadata?: {
1415
- [k: string]: unknown;
1416
- } | unknown[] | string | number | boolean | null;
1417
- groups?: (string | CustomerGroup)[] | null;
1418
1397
  orders?: {
1419
1398
  docs?: (string | Order)[];
1420
1399
  hasNextPage?: boolean;
@@ -1425,6 +1404,27 @@ interface Customer {
1425
1404
  hasNextPage?: boolean;
1426
1405
  totalDocs?: number;
1427
1406
  };
1407
+ hashedPassword?: string | null;
1408
+ salt?: string | null;
1409
+ verificationToken?: string | null;
1410
+ resetPasswordToken?: string | null;
1411
+ resetPasswordExpiry?: string | null;
1412
+ loginAttempts?: number | null;
1413
+ lockedUntil?: string | null;
1414
+ authProvider?: ('local' | 'google' | 'apple' | 'kakao' | 'naver') | null;
1415
+ isGuest?: boolean | null;
1416
+ isVerified?: boolean | null;
1417
+ /**
1418
+ * Marketing email consent
1419
+ */
1420
+ marketingConsent?: boolean | null;
1421
+ /**
1422
+ * Date marketing consent was given
1423
+ */
1424
+ consentedAt?: string | null;
1425
+ metadata?: {
1426
+ [k: string]: unknown;
1427
+ } | unknown[] | string | number | boolean | null;
1428
1428
  updatedAt: string;
1429
1429
  createdAt: string;
1430
1430
  collection: 'customers';
@@ -1576,6 +1576,46 @@ interface Transaction {
1576
1576
  updatedAt: string;
1577
1577
  createdAt: string;
1578
1578
  }
1579
+ /**
1580
+ * This interface was referenced by `Config`'s JSON-Schema
1581
+ * via the `definition` "fulfillments".
1582
+ */
1583
+ interface Fulfillment {
1584
+ id: string;
1585
+ tenant?: (string | null) | Tenant;
1586
+ order: string | Order;
1587
+ status: 'pending' | 'packed' | 'shipped' | 'delivered' | 'failed';
1588
+ /**
1589
+ * Shipping carrier name (e.g. CJ Logistics, FedEx, UPS)
1590
+ */
1591
+ carrier?: string | null;
1592
+ trackingNumber?: string | null;
1593
+ shippedAt?: string | null;
1594
+ deliveredAt?: string | null;
1595
+ items?: {
1596
+ docs?: (string | FulfillmentItem)[];
1597
+ hasNextPage?: boolean;
1598
+ totalDocs?: number;
1599
+ };
1600
+ metadata?: {
1601
+ [k: string]: unknown;
1602
+ } | unknown[] | string | number | boolean | null;
1603
+ updatedAt: string;
1604
+ createdAt: string;
1605
+ }
1606
+ /**
1607
+ * This interface was referenced by `Config`'s JSON-Schema
1608
+ * via the `definition` "fulfillment-items".
1609
+ */
1610
+ interface FulfillmentItem {
1611
+ id: string;
1612
+ tenant?: (string | null) | Tenant;
1613
+ fulfillment: string | Fulfillment;
1614
+ orderProduct: string | OrderProduct;
1615
+ quantity: number;
1616
+ updatedAt: string;
1617
+ createdAt: string;
1618
+ }
1579
1619
  /**
1580
1620
  * This interface was referenced by `Config`'s JSON-Schema
1581
1621
  * via the `definition` "returns".
@@ -1667,46 +1707,6 @@ interface ExchangeProduct {
1667
1707
  updatedAt: string;
1668
1708
  createdAt: string;
1669
1709
  }
1670
- /**
1671
- * This interface was referenced by `Config`'s JSON-Schema
1672
- * via the `definition` "fulfillments".
1673
- */
1674
- interface Fulfillment {
1675
- id: string;
1676
- tenant?: (string | null) | Tenant;
1677
- order: string | Order;
1678
- status: 'pending' | 'packed' | 'shipped' | 'delivered' | 'failed';
1679
- /**
1680
- * Shipping carrier name (e.g. CJ Logistics, FedEx, UPS)
1681
- */
1682
- carrier?: string | null;
1683
- trackingNumber?: string | null;
1684
- shippedAt?: string | null;
1685
- deliveredAt?: string | null;
1686
- items?: {
1687
- docs?: (string | FulfillmentItem)[];
1688
- hasNextPage?: boolean;
1689
- totalDocs?: number;
1690
- };
1691
- metadata?: {
1692
- [k: string]: unknown;
1693
- } | unknown[] | string | number | boolean | null;
1694
- updatedAt: string;
1695
- createdAt: string;
1696
- }
1697
- /**
1698
- * This interface was referenced by `Config`'s JSON-Schema
1699
- * via the `definition` "fulfillment-items".
1700
- */
1701
- interface FulfillmentItem {
1702
- id: string;
1703
- tenant?: (string | null) | Tenant;
1704
- fulfillment: string | Fulfillment;
1705
- orderProduct: string | OrderProduct;
1706
- quantity: number;
1707
- updatedAt: string;
1708
- createdAt: string;
1709
- }
1710
1710
  /**
1711
1711
  * This interface was referenced by `Config`'s JSON-Schema
1712
1712
  * via the `definition` "carts".
@@ -1783,7 +1783,6 @@ interface Discount {
1783
1783
  * Internal description for admin reference
1784
1784
  */
1785
1785
  description?: string | null;
1786
- type: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
1787
1786
  /**
1788
1787
  * Discount rate (%) or fixed amount
1789
1788
  */
@@ -1814,23 +1813,24 @@ interface Discount {
1814
1813
  startsAt?: string | null;
1815
1814
  endsAt?: string | null;
1816
1815
  /**
1817
- * Total usage limit (empty = unlimited)
1816
+ * Leave empty to apply to all products
1818
1817
  */
1819
- usageLimit?: number | null;
1820
- usageCount?: number | null;
1818
+ applicableProducts?: (string | Product)[] | null;
1821
1819
  /**
1822
- * Usage limit per customer (empty = unlimited)
1820
+ * Leave empty to apply to all categories
1823
1821
  */
1824
- perCustomerLimit?: number | null;
1822
+ applicableCategories?: (string | ProductCategory)[] | null;
1823
+ type: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
1825
1824
  isActive?: boolean | null;
1826
1825
  /**
1827
- * Leave empty to apply to all products
1826
+ * Total usage limit (empty = unlimited)
1828
1827
  */
1829
- applicableProducts?: (string | Product)[] | null;
1828
+ usageLimit?: number | null;
1829
+ usageCount?: number | null;
1830
1830
  /**
1831
- * Leave empty to apply to all categories
1831
+ * Usage limit per customer (empty = unlimited)
1832
1832
  */
1833
- applicableCategories?: (string | ProductCategory)[] | null;
1833
+ perCustomerLimit?: number | null;
1834
1834
  metadata?: {
1835
1835
  [k: string]: unknown;
1836
1836
  } | unknown[] | string | number | boolean | null;
@@ -2872,12 +2872,12 @@ interface EmailLogsSelect<T extends boolean = true> {
2872
2872
  */
2873
2873
  interface TenantsSelect<T extends boolean = true> {
2874
2874
  name?: T;
2875
+ plan?: T;
2876
+ features?: T;
2875
2877
  cors?: T | {
2876
2878
  origin?: T;
2877
2879
  id?: T;
2878
2880
  };
2879
- features?: T;
2880
- plan?: T;
2881
2881
  clientKey?: T;
2882
2882
  secretKeys?: T | {
2883
2883
  name?: T;
@@ -3169,11 +3169,11 @@ interface ProductsSelect<T extends boolean = true> {
3169
3169
  subtitle?: T;
3170
3170
  thumbnail?: T;
3171
3171
  images?: T;
3172
- description?: T;
3173
3172
  price?: T;
3174
3173
  compareAtPrice?: T;
3175
3174
  variants?: T;
3176
3175
  options?: T;
3176
+ description?: T;
3177
3177
  generateSlug?: T;
3178
3178
  slug?: T;
3179
3179
  sku?: T;
@@ -3459,17 +3459,16 @@ interface OrdersSelect<T extends boolean = true> {
3459
3459
  tenant?: T;
3460
3460
  orderNumber?: T;
3461
3461
  status?: T;
3462
+ totalAmount?: T;
3463
+ discountCode?: T;
3464
+ discountAmount?: T;
3465
+ notes?: T;
3462
3466
  customer?: T;
3463
3467
  customerSnapshot?: T | {
3464
3468
  name?: T;
3465
3469
  email?: T;
3466
3470
  phone?: T;
3467
3471
  };
3468
- totalAmount?: T;
3469
- discountCode?: T;
3470
- discountAmount?: T;
3471
- notes?: T;
3472
- metadata?: T;
3473
3472
  shippingAddress?: T | {
3474
3473
  recipientName?: T;
3475
3474
  phone?: T;
@@ -3480,9 +3479,10 @@ interface OrdersSelect<T extends boolean = true> {
3480
3479
  };
3481
3480
  products?: T;
3482
3481
  transactions?: T;
3482
+ fulfillments?: T;
3483
3483
  returns?: T;
3484
3484
  exchanges?: T;
3485
- fulfillments?: T;
3485
+ metadata?: T;
3486
3486
  updatedAt?: T;
3487
3487
  createdAt?: T;
3488
3488
  }
@@ -3625,24 +3625,24 @@ interface CustomersSelect<T extends boolean = true> {
3625
3625
  name?: T;
3626
3626
  email?: T;
3627
3627
  phone?: T;
3628
+ groups?: T;
3629
+ socialId?: T;
3630
+ note?: T;
3631
+ orders?: T;
3632
+ addresses?: T;
3628
3633
  hashedPassword?: T;
3629
3634
  salt?: T;
3630
- authProvider?: T;
3631
- socialId?: T;
3632
- isGuest?: T;
3633
- isVerified?: T;
3634
- marketingConsent?: T;
3635
- consentedAt?: T;
3636
3635
  verificationToken?: T;
3637
3636
  resetPasswordToken?: T;
3638
3637
  resetPasswordExpiry?: T;
3639
3638
  loginAttempts?: T;
3640
3639
  lockedUntil?: T;
3641
- note?: T;
3640
+ authProvider?: T;
3641
+ isGuest?: T;
3642
+ isVerified?: T;
3643
+ marketingConsent?: T;
3644
+ consentedAt?: T;
3642
3645
  metadata?: T;
3643
- groups?: T;
3644
- orders?: T;
3645
- addresses?: T;
3646
3646
  updatedAt?: T;
3647
3647
  createdAt?: T;
3648
3648
  }
@@ -3791,7 +3791,6 @@ interface DiscountsSelect<T extends boolean = true> {
3791
3791
  code?: T;
3792
3792
  title?: T;
3793
3793
  description?: T;
3794
- type?: T;
3795
3794
  value?: T;
3796
3795
  tiers?: T | {
3797
3796
  minAmount?: T;
@@ -3803,12 +3802,13 @@ interface DiscountsSelect<T extends boolean = true> {
3803
3802
  maxDiscountAmount?: T;
3804
3803
  startsAt?: T;
3805
3804
  endsAt?: T;
3805
+ applicableProducts?: T;
3806
+ applicableCategories?: T;
3807
+ type?: T;
3808
+ isActive?: T;
3806
3809
  usageLimit?: T;
3807
3810
  usageCount?: T;
3808
3811
  perCustomerLimit?: T;
3809
- isActive?: T;
3810
- applicableProducts?: T;
3811
- applicableCategories?: T;
3812
3812
  metadata?: T;
3813
3813
  updatedAt?: T;
3814
3814
  createdAt?: T;
@@ -4444,4 +4444,4 @@ declare module 'payload' {
4444
4444
  }
4445
4445
  }
4446
4446
 
4447
- 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, PostAuthor as V, PostCategory as W, PostTag as X, Document as Y, DocumentType as Z, DocumentImage as _, OrderProduct as a, PayloadKvSelect as a$, Playlist as a0, Music as a1, PlaylistImage as a2, Flow as a3, FlowImage as a4, FormSubmission as a5, PayloadKv as a6, PayloadLockedDocument as a7, PayloadPreference as a8, PayloadMigration as a9, ReturnProductsSelect as aA, ExchangesSelect as aB, ExchangeProductsSelect as aC, CustomersSelect as aD, CustomerAddressesSelect as aE, CustomerGroupsSelect as aF, CustomerGroupImagesSelect as aG, CartsSelect as aH, CartItemsSelect as aI, DiscountsSelect as aJ, ShippingPoliciesSelect as aK, PostsSelect as aL, PostAuthorsSelect as aM, PostCategoriesSelect as aN, PostTagsSelect as aO, PostImagesSelect as aP, DocumentsSelect as aQ, DocumentCategoriesSelect as aR, DocumentTypesSelect as aS, DocumentImagesSelect as aT, PlaylistsSelect as aU, MusicsSelect as aV, PlaylistImagesSelect as aW, FlowsSelect as aX, FlowImagesSelect as aY, FormsSelect as aZ, FormSubmissionsSelect as a_, UsersSelect as aa, MediaSelect as ab, AudiencesSelect as ac, EmailLogsSelect as ad, TenantsSelect as ae, TenantMetadataSelect as af, ApiUsageSelect as ag, SubscriptionsSelect as ah, BillingHistorySelect as ai, TenantLogosSelect as aj, TenantOgImagesSelect as ak, ProductsSelect as al, ProductVariantsSelect as am, ProductOptionsSelect as an, ProductCategoriesSelect as ao, ProductTagsSelect as ap, ProductCollectionsSelect as aq, BrandsSelect as ar, BrandLogosSelect as as, ProductImagesSelect as at, OrdersSelect as au, OrderProductsSelect as av, TransactionsSelect as aw, FulfillmentsSelect as ax, FulfillmentItemsSelect as ay, ReturnsSelect as az, Fulfillment as b, PayloadLockedDocumentsSelect as b0, PayloadPreferencesSelect as b1, PayloadMigrationsSelect as b2, CollectionsWidget as b3, Auth as b4, Config as c, CustomerAuthOperations as d, PlayerBlock as e, CodeBlock as f, User as g, Tenant as h, TenantMetadatum as i, TenantOgImage as j, ApiUsage as k, Subscription as l, BillingHistory as m, TenantLogo 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 };
4447
+ export type { DocumentCategory as $, Audience as A, BrandLogo as B, CartItem as C, FulfillmentItem as D, EmailLog as E, Form as F, ReturnProduct as G, Exchange as H, IframeBlock as I, ExchangeProduct 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, PostAuthor as V, PostCategory as W, PostTag as X, Document as Y, DocumentType as Z, DocumentImage as _, OrderProduct as a, PayloadKvSelect as a$, Playlist as a0, Music as a1, PlaylistImage as a2, Flow as a3, FlowImage as a4, FormSubmission as a5, PayloadKv as a6, PayloadLockedDocument as a7, PayloadPreference as a8, PayloadMigration as a9, ReturnProductsSelect as aA, ExchangesSelect as aB, ExchangeProductsSelect as aC, CustomersSelect as aD, CustomerAddressesSelect as aE, CustomerGroupsSelect as aF, CustomerGroupImagesSelect as aG, CartsSelect as aH, CartItemsSelect as aI, DiscountsSelect as aJ, ShippingPoliciesSelect as aK, PostsSelect as aL, PostAuthorsSelect as aM, PostCategoriesSelect as aN, PostTagsSelect as aO, PostImagesSelect as aP, DocumentsSelect as aQ, DocumentCategoriesSelect as aR, DocumentTypesSelect as aS, DocumentImagesSelect as aT, PlaylistsSelect as aU, MusicsSelect as aV, PlaylistImagesSelect as aW, FlowsSelect as aX, FlowImagesSelect as aY, FormsSelect as aZ, FormSubmissionsSelect as a_, UsersSelect as aa, MediaSelect as ab, AudiencesSelect as ac, EmailLogsSelect as ad, TenantsSelect as ae, TenantMetadataSelect as af, ApiUsageSelect as ag, SubscriptionsSelect as ah, BillingHistorySelect as ai, TenantLogosSelect as aj, TenantOgImagesSelect as ak, ProductsSelect as al, ProductVariantsSelect as am, ProductOptionsSelect as an, ProductCategoriesSelect as ao, ProductTagsSelect as ap, ProductCollectionsSelect as aq, BrandsSelect as ar, BrandLogosSelect as as, ProductImagesSelect as at, OrdersSelect as au, OrderProductsSelect as av, TransactionsSelect as aw, FulfillmentsSelect as ax, FulfillmentItemsSelect as ay, ReturnsSelect as az, Fulfillment as b, PayloadLockedDocumentsSelect as b0, PayloadPreferencesSelect as b1, PayloadMigrationsSelect as b2, CollectionsWidget as b3, Auth as b4, Config as c, CustomerAuthOperations as d, PlayerBlock as e, CodeBlock as f, User as g, Tenant as h, TenantMetadatum as i, TenantOgImage as j, ApiUsage as k, Subscription as l, BillingHistory as m, TenantLogo 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 };