@01.software/sdk 0.2.0 → 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.
- package/dist/{auth-BC0CWHt_.d.ts → auth-DHZs286d.d.ts} +1 -1
- package/dist/{auth-BE80zCjC.d.cts → auth-E6a6eSB4.d.cts} +1 -1
- package/dist/auth.d.cts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/components.cjs +692 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +6 -28
- package/dist/components.d.ts +6 -28
- package/dist/components.js +694 -3
- package/dist/components.js.map +1 -1
- package/dist/index-4y8p5Pjy.d.ts +174 -0
- package/dist/index-BIkaO8Go.d.cts +174 -0
- package/dist/index.cjs +662 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -45
- package/dist/index.d.ts +8 -45
- package/dist/index.js +664 -2
- package/dist/index.js.map +1 -1
- package/dist/metadata.d.cts +1 -1
- package/dist/metadata.d.ts +1 -1
- package/dist/{payload-types-BWJZhklJ.d.cts → payload-types-CmDse9mQ.d.cts} +110 -15
- package/dist/{payload-types-BWJZhklJ.d.ts → payload-types-CmDse9mQ.d.ts} +110 -15
- package/dist/{webhook-DMxUpnQD.d.cts → webhook-BpQ3M57n.d.cts} +2 -2
- package/dist/{webhook-CcdyGpCb.d.ts → webhook-DNIikEHk.d.ts} +2 -2
- package/dist/webhook.d.cts +2 -2
- package/dist/webhook.d.ts +2 -2
- package/package.json +19 -18
package/dist/metadata.d.cts
CHANGED
package/dist/metadata.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
320
|
+
* Webhook endpoints to notify on data changes.
|
|
319
321
|
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
|
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
|
|
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-
|
|
2088
|
+
* via the `definition` "document-types".
|
|
2048
2089
|
*/
|
|
2049
|
-
interface
|
|
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
|
-
|
|
2743
|
-
|
|
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 {
|
|
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 };
|
|
@@ -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
|
-
*
|
|
320
|
+
* Webhook endpoints to notify on data changes.
|
|
319
321
|
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
|
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
|
|
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-
|
|
2088
|
+
* via the `definition` "document-types".
|
|
2048
2089
|
*/
|
|
2049
|
-
interface
|
|
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
|
-
|
|
2743
|
-
|
|
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 {
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Config } from './payload-types-
|
|
1
|
+
import { b as Config } from './payload-types-CmDse9mQ.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-
|
|
1
|
+
import { b as Config } from './payload-types-CmDse9mQ.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).
|
package/dist/webhook.d.cts
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-
|
|
2
|
-
import './payload-types-
|
|
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-BpQ3M57n.cjs';
|
|
2
|
+
import './payload-types-CmDse9mQ.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-
|
|
2
|
-
import './payload-types-
|
|
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-DNIikEHk.js';
|
|
2
|
+
import './payload-types-CmDse9mQ.js';
|
package/package.json
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@01.software/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "01.software SDK",
|
|
5
5
|
"author": "<office@01.works>",
|
|
6
6
|
"keywords": [],
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "tsup --watch",
|
|
9
|
+
"clean": "rimraf ./dist ./coverage",
|
|
10
|
+
"lint": "eslint ./src",
|
|
11
|
+
"test": "vitest",
|
|
12
|
+
"test:watch": "vitest --watch",
|
|
13
|
+
"test:publish": "publint --strict && attw --pack --ignore-rules no-resolution",
|
|
14
|
+
"build": "tsup",
|
|
15
|
+
"prepublishOnly": "pnpm run build && publint --strict",
|
|
16
|
+
"version:dev": "node ../../scripts/update-version.js",
|
|
17
|
+
"publish:dev": "pnpm run version:dev && pnpm publish --no-git-checks --access public --tag dev",
|
|
18
|
+
"version:prod": "pnpm version patch --no-git-tag-version",
|
|
19
|
+
"publish:prod": "pnpm run test:publish && pnpm run build && pnpm publish --no-git-checks --access public"
|
|
20
|
+
},
|
|
7
21
|
"type": "module",
|
|
8
22
|
"main": "./dist/index.cjs",
|
|
9
23
|
"module": "./dist/index.js",
|
|
@@ -67,6 +81,8 @@
|
|
|
67
81
|
],
|
|
68
82
|
"devDependencies": {
|
|
69
83
|
"@arethetypeswrong/cli": "^0.17.3",
|
|
84
|
+
"@repo/eslint-config": "workspace:*",
|
|
85
|
+
"@repo/typescript-config": "workspace:*",
|
|
70
86
|
"@tanstack/react-query": "5.90.16",
|
|
71
87
|
"@types/node": "^22.15.3",
|
|
72
88
|
"@types/react": "19.2.3",
|
|
@@ -79,9 +95,7 @@
|
|
|
79
95
|
"rimraf": "^6.0.2",
|
|
80
96
|
"shadcn": "^3.6.3",
|
|
81
97
|
"tsup": "^8.3.7",
|
|
82
|
-
"vitest": "^3.2.3"
|
|
83
|
-
"@repo/typescript-config": "0.0.0",
|
|
84
|
-
"@repo/eslint-config": "0.0.0"
|
|
98
|
+
"vitest": "^3.2.3"
|
|
85
99
|
},
|
|
86
100
|
"dependencies": {
|
|
87
101
|
"@payloadcms/richtext-lexical": "3.77.0",
|
|
@@ -94,18 +108,5 @@
|
|
|
94
108
|
"next": ">=14",
|
|
95
109
|
"react": ">=18",
|
|
96
110
|
"react-dom": ">=18"
|
|
97
|
-
},
|
|
98
|
-
"scripts": {
|
|
99
|
-
"dev": "tsup --watch",
|
|
100
|
-
"clean": "rimraf ./dist ./coverage",
|
|
101
|
-
"lint": "eslint ./src",
|
|
102
|
-
"test": "vitest",
|
|
103
|
-
"test:watch": "vitest --watch",
|
|
104
|
-
"test:publish": "publint --strict && attw --pack --ignore-rules no-resolution",
|
|
105
|
-
"build": "tsup",
|
|
106
|
-
"version:dev": "node ../../scripts/update-version.js",
|
|
107
|
-
"publish:dev": "pnpm run version:dev && pnpm publish --no-git-checks --access public --tag dev",
|
|
108
|
-
"version:prod": "pnpm version patch --no-git-tag-version",
|
|
109
|
-
"publish:prod": "pnpm run test:publish && pnpm run build && pnpm publish --no-git-checks --access public"
|
|
110
111
|
}
|
|
111
|
-
}
|
|
112
|
+
}
|