@01.software/sdk 0.1.2 → 0.1.4
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-AVOXtnYN.d.cts → auth-BUG7f-rJ.d.cts} +1 -1
- package/dist/{auth-c2UWJjPa.d.ts → auth-BetnGy2v.d.ts} +1 -1
- package/dist/auth.d.cts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -33
- package/dist/index.d.ts +33 -33
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DFzDtXGO.d.cts → payload-types-BjyFdz5j.d.cts} +205 -1
- package/dist/{payload-types-DFzDtXGO.d.ts → payload-types-BjyFdz5j.d.ts} +205 -1
- package/dist/{webhook-CGpSMkNA.d.ts → webhook-BbT5xP-e.d.cts} +7 -12
- package/dist/{webhook-DJCQSO6S.d.cts → webhook-Cgywcim7.d.ts} +7 -12
- package/dist/webhook.d.cts +2 -2
- package/dist/webhook.d.ts +2 -2
- package/package.json +3 -3
|
@@ -29,6 +29,8 @@ interface Config {
|
|
|
29
29
|
'tenant-logos': TenantLogo;
|
|
30
30
|
'tenant-og-images': TenantOgImage;
|
|
31
31
|
'api-usage': ApiUsage;
|
|
32
|
+
subscriptions: Subscription;
|
|
33
|
+
'billing-history': BillingHistory;
|
|
32
34
|
products: Product;
|
|
33
35
|
'product-variants': ProductVariant;
|
|
34
36
|
'product-options': ProductOption;
|
|
@@ -95,6 +97,8 @@ interface Config {
|
|
|
95
97
|
'tenant-logos': TenantLogosSelect<false> | TenantLogosSelect<true>;
|
|
96
98
|
'tenant-og-images': TenantOgImagesSelect<false> | TenantOgImagesSelect<true>;
|
|
97
99
|
'api-usage': ApiUsageSelect<false> | ApiUsageSelect<true>;
|
|
100
|
+
subscriptions: SubscriptionsSelect<false> | SubscriptionsSelect<true>;
|
|
101
|
+
'billing-history': BillingHistorySelect<false> | BillingHistorySelect<true>;
|
|
98
102
|
products: ProductsSelect<false> | ProductsSelect<true>;
|
|
99
103
|
'product-variants': ProductVariantsSelect<false> | ProductVariantsSelect<true>;
|
|
100
104
|
'product-options': ProductOptionsSelect<false> | ProductOptionsSelect<true>;
|
|
@@ -650,6 +654,126 @@ interface ApiUsage {
|
|
|
650
654
|
updatedAt: string;
|
|
651
655
|
createdAt: string;
|
|
652
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
659
|
+
* via the `definition` "subscriptions".
|
|
660
|
+
*/
|
|
661
|
+
interface Subscription {
|
|
662
|
+
id: number;
|
|
663
|
+
provider: 'toss' | 'polar';
|
|
664
|
+
currency: 'KRW' | 'USD';
|
|
665
|
+
tenant: number | Tenant;
|
|
666
|
+
plan: 'starter' | 'basic' | 'pro';
|
|
667
|
+
billingCycle: 'monthly' | 'yearly';
|
|
668
|
+
/**
|
|
669
|
+
* 결제 금액 (KRW)
|
|
670
|
+
*/
|
|
671
|
+
amount: number;
|
|
672
|
+
status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
|
|
673
|
+
/**
|
|
674
|
+
* 토스 빌링키 (AES-256-GCM 암호화)
|
|
675
|
+
*/
|
|
676
|
+
billingKey?: string | null;
|
|
677
|
+
/**
|
|
678
|
+
* 토스 고객키 (UUID)
|
|
679
|
+
*/
|
|
680
|
+
customerKey?: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* 등록된 카드 정보
|
|
683
|
+
*/
|
|
684
|
+
cardInfo?: {
|
|
685
|
+
issuerCode?: string | null;
|
|
686
|
+
/**
|
|
687
|
+
* 마스킹된 카드번호
|
|
688
|
+
*/
|
|
689
|
+
number?: string | null;
|
|
690
|
+
cardType?: string | null;
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* Polar subscription ID
|
|
694
|
+
*/
|
|
695
|
+
polarSubscriptionId?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* Polar customer ID
|
|
698
|
+
*/
|
|
699
|
+
polarCustomerId?: string | null;
|
|
700
|
+
/**
|
|
701
|
+
* Polar product ID
|
|
702
|
+
*/
|
|
703
|
+
polarProductId?: string | null;
|
|
704
|
+
currentPeriodStart?: string | null;
|
|
705
|
+
currentPeriodEnd?: string | null;
|
|
706
|
+
nextBillingDate?: string | null;
|
|
707
|
+
cancelAtPeriodEnd?: boolean | null;
|
|
708
|
+
canceledAt?: string | null;
|
|
709
|
+
cancelReason?: string | null;
|
|
710
|
+
retryCount?: number | null;
|
|
711
|
+
graceDeadline?: string | null;
|
|
712
|
+
lastPaymentError?: string | null;
|
|
713
|
+
pendingPlanChange?: {
|
|
714
|
+
targetPlan?: ('starter' | 'basic' | 'pro') | null;
|
|
715
|
+
targetAmount?: number | null;
|
|
716
|
+
effectiveDate?: string | null;
|
|
717
|
+
};
|
|
718
|
+
updatedAt: string;
|
|
719
|
+
createdAt: string;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
723
|
+
* via the `definition` "billing-history".
|
|
724
|
+
*/
|
|
725
|
+
interface BillingHistory {
|
|
726
|
+
id: number;
|
|
727
|
+
provider: 'toss' | 'polar';
|
|
728
|
+
currency: 'KRW' | 'USD';
|
|
729
|
+
tenant: number | Tenant;
|
|
730
|
+
subscription?: (number | null) | Subscription;
|
|
731
|
+
type: 'payment' | 'refund' | 'plan_change';
|
|
732
|
+
status: 'success' | 'failed' | 'refunded' | 'partial_refund';
|
|
733
|
+
/**
|
|
734
|
+
* 금액 (KRW)
|
|
735
|
+
*/
|
|
736
|
+
amount: number;
|
|
737
|
+
/**
|
|
738
|
+
* 토스 결제키
|
|
739
|
+
*/
|
|
740
|
+
paymentKey?: string | null;
|
|
741
|
+
/**
|
|
742
|
+
* 고유 주문번호
|
|
743
|
+
*/
|
|
744
|
+
orderId: string;
|
|
745
|
+
orderName?: string | null;
|
|
746
|
+
/**
|
|
747
|
+
* 결제 시점 플랜
|
|
748
|
+
*/
|
|
749
|
+
plan?: string | null;
|
|
750
|
+
billingCycle?: ('monthly' | 'yearly') | null;
|
|
751
|
+
periodStart?: string | null;
|
|
752
|
+
periodEnd?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* 토스 API 전체 응답
|
|
755
|
+
*/
|
|
756
|
+
tossResponse?: {
|
|
757
|
+
[k: string]: unknown;
|
|
758
|
+
} | unknown[] | string | number | boolean | null;
|
|
759
|
+
/**
|
|
760
|
+
* Polar order ID
|
|
761
|
+
*/
|
|
762
|
+
polarOrderId?: string | null;
|
|
763
|
+
/**
|
|
764
|
+
* Polar API 전체 응답
|
|
765
|
+
*/
|
|
766
|
+
polarResponse?: {
|
|
767
|
+
[k: string]: unknown;
|
|
768
|
+
} | unknown[] | string | number | boolean | null;
|
|
769
|
+
errorMessage?: string | null;
|
|
770
|
+
/**
|
|
771
|
+
* 재시도 원본 결제 내역
|
|
772
|
+
*/
|
|
773
|
+
retryOf?: (number | null) | BillingHistory;
|
|
774
|
+
updatedAt: string;
|
|
775
|
+
createdAt: string;
|
|
776
|
+
}
|
|
653
777
|
/**
|
|
654
778
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
655
779
|
* via the `definition` "products".
|
|
@@ -792,6 +916,7 @@ interface ProductTag {
|
|
|
792
916
|
generateSlug?: boolean | null;
|
|
793
917
|
slug?: string | null;
|
|
794
918
|
description?: string | null;
|
|
919
|
+
image?: (number | null) | ProductImage;
|
|
795
920
|
updatedAt: string;
|
|
796
921
|
createdAt: string;
|
|
797
922
|
}
|
|
@@ -1141,6 +1266,7 @@ interface PostCategory {
|
|
|
1141
1266
|
generateSlug?: boolean | null;
|
|
1142
1267
|
slug?: string | null;
|
|
1143
1268
|
description?: string | null;
|
|
1269
|
+
image?: (number | null) | PostImage;
|
|
1144
1270
|
parent?: (number | null) | PostCategory;
|
|
1145
1271
|
updatedAt: string;
|
|
1146
1272
|
createdAt: string;
|
|
@@ -1160,6 +1286,7 @@ interface PostTag {
|
|
|
1160
1286
|
generateSlug?: boolean | null;
|
|
1161
1287
|
slug?: string | null;
|
|
1162
1288
|
description?: string | null;
|
|
1289
|
+
image?: (number | null) | PostImage;
|
|
1163
1290
|
updatedAt: string;
|
|
1164
1291
|
createdAt: string;
|
|
1165
1292
|
}
|
|
@@ -1241,6 +1368,7 @@ interface DocumentCategory {
|
|
|
1241
1368
|
generateSlug?: boolean | null;
|
|
1242
1369
|
slug?: string | null;
|
|
1243
1370
|
description?: string | null;
|
|
1371
|
+
image?: (number | null) | DocumentImage;
|
|
1244
1372
|
updatedAt: string;
|
|
1245
1373
|
createdAt: string;
|
|
1246
1374
|
}
|
|
@@ -1684,6 +1812,12 @@ interface PayloadLockedDocument {
|
|
|
1684
1812
|
} | null) | ({
|
|
1685
1813
|
relationTo: 'api-usage';
|
|
1686
1814
|
value: number | ApiUsage;
|
|
1815
|
+
} | null) | ({
|
|
1816
|
+
relationTo: 'subscriptions';
|
|
1817
|
+
value: number | Subscription;
|
|
1818
|
+
} | null) | ({
|
|
1819
|
+
relationTo: 'billing-history';
|
|
1820
|
+
value: number | BillingHistory;
|
|
1687
1821
|
} | null) | ({
|
|
1688
1822
|
relationTo: 'products';
|
|
1689
1823
|
value: number | Product;
|
|
@@ -2038,6 +2172,72 @@ interface ApiUsageSelect<T extends boolean = true> {
|
|
|
2038
2172
|
updatedAt?: T;
|
|
2039
2173
|
createdAt?: T;
|
|
2040
2174
|
}
|
|
2175
|
+
/**
|
|
2176
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2177
|
+
* via the `definition` "subscriptions_select".
|
|
2178
|
+
*/
|
|
2179
|
+
interface SubscriptionsSelect<T extends boolean = true> {
|
|
2180
|
+
provider?: T;
|
|
2181
|
+
currency?: T;
|
|
2182
|
+
tenant?: T;
|
|
2183
|
+
plan?: T;
|
|
2184
|
+
billingCycle?: T;
|
|
2185
|
+
amount?: T;
|
|
2186
|
+
status?: T;
|
|
2187
|
+
billingKey?: T;
|
|
2188
|
+
customerKey?: T;
|
|
2189
|
+
cardInfo?: T | {
|
|
2190
|
+
issuerCode?: T;
|
|
2191
|
+
number?: T;
|
|
2192
|
+
cardType?: T;
|
|
2193
|
+
};
|
|
2194
|
+
polarSubscriptionId?: T;
|
|
2195
|
+
polarCustomerId?: T;
|
|
2196
|
+
polarProductId?: T;
|
|
2197
|
+
currentPeriodStart?: T;
|
|
2198
|
+
currentPeriodEnd?: T;
|
|
2199
|
+
nextBillingDate?: T;
|
|
2200
|
+
cancelAtPeriodEnd?: T;
|
|
2201
|
+
canceledAt?: T;
|
|
2202
|
+
cancelReason?: T;
|
|
2203
|
+
retryCount?: T;
|
|
2204
|
+
graceDeadline?: T;
|
|
2205
|
+
lastPaymentError?: T;
|
|
2206
|
+
pendingPlanChange?: T | {
|
|
2207
|
+
targetPlan?: T;
|
|
2208
|
+
targetAmount?: T;
|
|
2209
|
+
effectiveDate?: T;
|
|
2210
|
+
};
|
|
2211
|
+
updatedAt?: T;
|
|
2212
|
+
createdAt?: T;
|
|
2213
|
+
}
|
|
2214
|
+
/**
|
|
2215
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2216
|
+
* via the `definition` "billing-history_select".
|
|
2217
|
+
*/
|
|
2218
|
+
interface BillingHistorySelect<T extends boolean = true> {
|
|
2219
|
+
provider?: T;
|
|
2220
|
+
currency?: T;
|
|
2221
|
+
tenant?: T;
|
|
2222
|
+
subscription?: T;
|
|
2223
|
+
type?: T;
|
|
2224
|
+
status?: T;
|
|
2225
|
+
amount?: T;
|
|
2226
|
+
paymentKey?: T;
|
|
2227
|
+
orderId?: T;
|
|
2228
|
+
orderName?: T;
|
|
2229
|
+
plan?: T;
|
|
2230
|
+
billingCycle?: T;
|
|
2231
|
+
periodStart?: T;
|
|
2232
|
+
periodEnd?: T;
|
|
2233
|
+
tossResponse?: T;
|
|
2234
|
+
polarOrderId?: T;
|
|
2235
|
+
polarResponse?: T;
|
|
2236
|
+
errorMessage?: T;
|
|
2237
|
+
retryOf?: T;
|
|
2238
|
+
updatedAt?: T;
|
|
2239
|
+
createdAt?: T;
|
|
2240
|
+
}
|
|
2041
2241
|
/**
|
|
2042
2242
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
2043
2243
|
* via the `definition` "products_select".
|
|
@@ -2127,6 +2327,7 @@ interface ProductTagsSelect<T extends boolean = true> {
|
|
|
2127
2327
|
generateSlug?: T;
|
|
2128
2328
|
slug?: T;
|
|
2129
2329
|
description?: T;
|
|
2330
|
+
image?: T;
|
|
2130
2331
|
updatedAt?: T;
|
|
2131
2332
|
createdAt?: T;
|
|
2132
2333
|
}
|
|
@@ -2411,6 +2612,7 @@ interface PostCategoriesSelect<T extends boolean = true> {
|
|
|
2411
2612
|
generateSlug?: T;
|
|
2412
2613
|
slug?: T;
|
|
2413
2614
|
description?: T;
|
|
2615
|
+
image?: T;
|
|
2414
2616
|
parent?: T;
|
|
2415
2617
|
updatedAt?: T;
|
|
2416
2618
|
createdAt?: T;
|
|
@@ -2426,6 +2628,7 @@ interface PostTagsSelect<T extends boolean = true> {
|
|
|
2426
2628
|
generateSlug?: T;
|
|
2427
2629
|
slug?: T;
|
|
2428
2630
|
description?: T;
|
|
2631
|
+
image?: T;
|
|
2429
2632
|
updatedAt?: T;
|
|
2430
2633
|
createdAt?: T;
|
|
2431
2634
|
}
|
|
@@ -2530,6 +2733,7 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
|
|
|
2530
2733
|
generateSlug?: T;
|
|
2531
2734
|
slug?: T;
|
|
2532
2735
|
description?: T;
|
|
2736
|
+
image?: T;
|
|
2533
2737
|
updatedAt?: T;
|
|
2534
2738
|
createdAt?: T;
|
|
2535
2739
|
}
|
|
@@ -2901,4 +3105,4 @@ declare module 'payload' {
|
|
|
2901
3105
|
}
|
|
2902
3106
|
}
|
|
2903
3107
|
|
|
2904
|
-
export type {
|
|
3108
|
+
export type { TenantsSelect as $, Audience as A, BrandLogo as B, Config as C, Document as D, EmailLog as E, PlaylistImage as F, Music as G, Gallery as H, IframeBlock as I, GalleryImage as J, Form as K, FormSubmission as L, Media as M, PayloadKv as N, Order as O, ProductOption as P, PayloadLockedDocument as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PayloadPreference as V, PayloadMigration as W, UsersSelect as X, MediaSelect as Y, AudiencesSelect as Z, EmailLogsSelect as _, OrderProduct as a, TenantMetadataSelect as a0, TenantLogosSelect as a1, TenantOgImagesSelect as a2, ApiUsageSelect as a3, SubscriptionsSelect as a4, BillingHistorySelect as a5, ProductsSelect as a6, ProductVariantsSelect as a7, ProductOptionsSelect as a8, ProductCategoriesSelect as a9, PayloadPreferencesSelect as aA, PayloadMigrationsSelect as aB, Auth as aC, ProductTagsSelect as aa, ProductImagesSelect as ab, BrandsSelect as ac, BrandLogosSelect as ad, OrdersSelect as ae, OrderProductsSelect as af, ReturnsSelect as ag, ReturnProductsSelect as ah, TransactionsSelect as ai, PostsSelect as aj, PostCategoriesSelect as ak, PostTagsSelect as al, PostImagesSelect as am, AuthorsSelect as an, DocumentsSelect as ao, DocumentCategoriesSelect as ap, DocumentImagesSelect as aq, PlaylistsSelect as ar, PlaylistImagesSelect as as, MusicsSelect as at, GalleriesSelect as au, GalleryImagesSelect as av, FormsSelect as aw, FormSubmissionsSelect as ax, PayloadKvSelect as ay, PayloadLockedDocumentsSelect as az, PlayerBlock as b, CodeBlock as c, User as d, Tenant as e, TenantMetadatum as f, TenantOgImage as g, TenantLogo as h, ApiUsage as i, Subscription as j, BillingHistory as k, Product as l, ProductImage as m, ProductCategory as n, ProductTag as o, Brand as p, ProductVariant as q, ReturnProduct as r, Post as s, PostImage as t, Author as u, PostCategory as v, PostTag as w, DocumentCategory as x, DocumentImage as y, Playlist as z };
|
|
@@ -29,6 +29,8 @@ interface Config {
|
|
|
29
29
|
'tenant-logos': TenantLogo;
|
|
30
30
|
'tenant-og-images': TenantOgImage;
|
|
31
31
|
'api-usage': ApiUsage;
|
|
32
|
+
subscriptions: Subscription;
|
|
33
|
+
'billing-history': BillingHistory;
|
|
32
34
|
products: Product;
|
|
33
35
|
'product-variants': ProductVariant;
|
|
34
36
|
'product-options': ProductOption;
|
|
@@ -95,6 +97,8 @@ interface Config {
|
|
|
95
97
|
'tenant-logos': TenantLogosSelect<false> | TenantLogosSelect<true>;
|
|
96
98
|
'tenant-og-images': TenantOgImagesSelect<false> | TenantOgImagesSelect<true>;
|
|
97
99
|
'api-usage': ApiUsageSelect<false> | ApiUsageSelect<true>;
|
|
100
|
+
subscriptions: SubscriptionsSelect<false> | SubscriptionsSelect<true>;
|
|
101
|
+
'billing-history': BillingHistorySelect<false> | BillingHistorySelect<true>;
|
|
98
102
|
products: ProductsSelect<false> | ProductsSelect<true>;
|
|
99
103
|
'product-variants': ProductVariantsSelect<false> | ProductVariantsSelect<true>;
|
|
100
104
|
'product-options': ProductOptionsSelect<false> | ProductOptionsSelect<true>;
|
|
@@ -650,6 +654,126 @@ interface ApiUsage {
|
|
|
650
654
|
updatedAt: string;
|
|
651
655
|
createdAt: string;
|
|
652
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
659
|
+
* via the `definition` "subscriptions".
|
|
660
|
+
*/
|
|
661
|
+
interface Subscription {
|
|
662
|
+
id: number;
|
|
663
|
+
provider: 'toss' | 'polar';
|
|
664
|
+
currency: 'KRW' | 'USD';
|
|
665
|
+
tenant: number | Tenant;
|
|
666
|
+
plan: 'starter' | 'basic' | 'pro';
|
|
667
|
+
billingCycle: 'monthly' | 'yearly';
|
|
668
|
+
/**
|
|
669
|
+
* 결제 금액 (KRW)
|
|
670
|
+
*/
|
|
671
|
+
amount: number;
|
|
672
|
+
status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
|
|
673
|
+
/**
|
|
674
|
+
* 토스 빌링키 (AES-256-GCM 암호화)
|
|
675
|
+
*/
|
|
676
|
+
billingKey?: string | null;
|
|
677
|
+
/**
|
|
678
|
+
* 토스 고객키 (UUID)
|
|
679
|
+
*/
|
|
680
|
+
customerKey?: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* 등록된 카드 정보
|
|
683
|
+
*/
|
|
684
|
+
cardInfo?: {
|
|
685
|
+
issuerCode?: string | null;
|
|
686
|
+
/**
|
|
687
|
+
* 마스킹된 카드번호
|
|
688
|
+
*/
|
|
689
|
+
number?: string | null;
|
|
690
|
+
cardType?: string | null;
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* Polar subscription ID
|
|
694
|
+
*/
|
|
695
|
+
polarSubscriptionId?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* Polar customer ID
|
|
698
|
+
*/
|
|
699
|
+
polarCustomerId?: string | null;
|
|
700
|
+
/**
|
|
701
|
+
* Polar product ID
|
|
702
|
+
*/
|
|
703
|
+
polarProductId?: string | null;
|
|
704
|
+
currentPeriodStart?: string | null;
|
|
705
|
+
currentPeriodEnd?: string | null;
|
|
706
|
+
nextBillingDate?: string | null;
|
|
707
|
+
cancelAtPeriodEnd?: boolean | null;
|
|
708
|
+
canceledAt?: string | null;
|
|
709
|
+
cancelReason?: string | null;
|
|
710
|
+
retryCount?: number | null;
|
|
711
|
+
graceDeadline?: string | null;
|
|
712
|
+
lastPaymentError?: string | null;
|
|
713
|
+
pendingPlanChange?: {
|
|
714
|
+
targetPlan?: ('starter' | 'basic' | 'pro') | null;
|
|
715
|
+
targetAmount?: number | null;
|
|
716
|
+
effectiveDate?: string | null;
|
|
717
|
+
};
|
|
718
|
+
updatedAt: string;
|
|
719
|
+
createdAt: string;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
723
|
+
* via the `definition` "billing-history".
|
|
724
|
+
*/
|
|
725
|
+
interface BillingHistory {
|
|
726
|
+
id: number;
|
|
727
|
+
provider: 'toss' | 'polar';
|
|
728
|
+
currency: 'KRW' | 'USD';
|
|
729
|
+
tenant: number | Tenant;
|
|
730
|
+
subscription?: (number | null) | Subscription;
|
|
731
|
+
type: 'payment' | 'refund' | 'plan_change';
|
|
732
|
+
status: 'success' | 'failed' | 'refunded' | 'partial_refund';
|
|
733
|
+
/**
|
|
734
|
+
* 금액 (KRW)
|
|
735
|
+
*/
|
|
736
|
+
amount: number;
|
|
737
|
+
/**
|
|
738
|
+
* 토스 결제키
|
|
739
|
+
*/
|
|
740
|
+
paymentKey?: string | null;
|
|
741
|
+
/**
|
|
742
|
+
* 고유 주문번호
|
|
743
|
+
*/
|
|
744
|
+
orderId: string;
|
|
745
|
+
orderName?: string | null;
|
|
746
|
+
/**
|
|
747
|
+
* 결제 시점 플랜
|
|
748
|
+
*/
|
|
749
|
+
plan?: string | null;
|
|
750
|
+
billingCycle?: ('monthly' | 'yearly') | null;
|
|
751
|
+
periodStart?: string | null;
|
|
752
|
+
periodEnd?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* 토스 API 전체 응답
|
|
755
|
+
*/
|
|
756
|
+
tossResponse?: {
|
|
757
|
+
[k: string]: unknown;
|
|
758
|
+
} | unknown[] | string | number | boolean | null;
|
|
759
|
+
/**
|
|
760
|
+
* Polar order ID
|
|
761
|
+
*/
|
|
762
|
+
polarOrderId?: string | null;
|
|
763
|
+
/**
|
|
764
|
+
* Polar API 전체 응답
|
|
765
|
+
*/
|
|
766
|
+
polarResponse?: {
|
|
767
|
+
[k: string]: unknown;
|
|
768
|
+
} | unknown[] | string | number | boolean | null;
|
|
769
|
+
errorMessage?: string | null;
|
|
770
|
+
/**
|
|
771
|
+
* 재시도 원본 결제 내역
|
|
772
|
+
*/
|
|
773
|
+
retryOf?: (number | null) | BillingHistory;
|
|
774
|
+
updatedAt: string;
|
|
775
|
+
createdAt: string;
|
|
776
|
+
}
|
|
653
777
|
/**
|
|
654
778
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
655
779
|
* via the `definition` "products".
|
|
@@ -792,6 +916,7 @@ interface ProductTag {
|
|
|
792
916
|
generateSlug?: boolean | null;
|
|
793
917
|
slug?: string | null;
|
|
794
918
|
description?: string | null;
|
|
919
|
+
image?: (number | null) | ProductImage;
|
|
795
920
|
updatedAt: string;
|
|
796
921
|
createdAt: string;
|
|
797
922
|
}
|
|
@@ -1141,6 +1266,7 @@ interface PostCategory {
|
|
|
1141
1266
|
generateSlug?: boolean | null;
|
|
1142
1267
|
slug?: string | null;
|
|
1143
1268
|
description?: string | null;
|
|
1269
|
+
image?: (number | null) | PostImage;
|
|
1144
1270
|
parent?: (number | null) | PostCategory;
|
|
1145
1271
|
updatedAt: string;
|
|
1146
1272
|
createdAt: string;
|
|
@@ -1160,6 +1286,7 @@ interface PostTag {
|
|
|
1160
1286
|
generateSlug?: boolean | null;
|
|
1161
1287
|
slug?: string | null;
|
|
1162
1288
|
description?: string | null;
|
|
1289
|
+
image?: (number | null) | PostImage;
|
|
1163
1290
|
updatedAt: string;
|
|
1164
1291
|
createdAt: string;
|
|
1165
1292
|
}
|
|
@@ -1241,6 +1368,7 @@ interface DocumentCategory {
|
|
|
1241
1368
|
generateSlug?: boolean | null;
|
|
1242
1369
|
slug?: string | null;
|
|
1243
1370
|
description?: string | null;
|
|
1371
|
+
image?: (number | null) | DocumentImage;
|
|
1244
1372
|
updatedAt: string;
|
|
1245
1373
|
createdAt: string;
|
|
1246
1374
|
}
|
|
@@ -1684,6 +1812,12 @@ interface PayloadLockedDocument {
|
|
|
1684
1812
|
} | null) | ({
|
|
1685
1813
|
relationTo: 'api-usage';
|
|
1686
1814
|
value: number | ApiUsage;
|
|
1815
|
+
} | null) | ({
|
|
1816
|
+
relationTo: 'subscriptions';
|
|
1817
|
+
value: number | Subscription;
|
|
1818
|
+
} | null) | ({
|
|
1819
|
+
relationTo: 'billing-history';
|
|
1820
|
+
value: number | BillingHistory;
|
|
1687
1821
|
} | null) | ({
|
|
1688
1822
|
relationTo: 'products';
|
|
1689
1823
|
value: number | Product;
|
|
@@ -2038,6 +2172,72 @@ interface ApiUsageSelect<T extends boolean = true> {
|
|
|
2038
2172
|
updatedAt?: T;
|
|
2039
2173
|
createdAt?: T;
|
|
2040
2174
|
}
|
|
2175
|
+
/**
|
|
2176
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2177
|
+
* via the `definition` "subscriptions_select".
|
|
2178
|
+
*/
|
|
2179
|
+
interface SubscriptionsSelect<T extends boolean = true> {
|
|
2180
|
+
provider?: T;
|
|
2181
|
+
currency?: T;
|
|
2182
|
+
tenant?: T;
|
|
2183
|
+
plan?: T;
|
|
2184
|
+
billingCycle?: T;
|
|
2185
|
+
amount?: T;
|
|
2186
|
+
status?: T;
|
|
2187
|
+
billingKey?: T;
|
|
2188
|
+
customerKey?: T;
|
|
2189
|
+
cardInfo?: T | {
|
|
2190
|
+
issuerCode?: T;
|
|
2191
|
+
number?: T;
|
|
2192
|
+
cardType?: T;
|
|
2193
|
+
};
|
|
2194
|
+
polarSubscriptionId?: T;
|
|
2195
|
+
polarCustomerId?: T;
|
|
2196
|
+
polarProductId?: T;
|
|
2197
|
+
currentPeriodStart?: T;
|
|
2198
|
+
currentPeriodEnd?: T;
|
|
2199
|
+
nextBillingDate?: T;
|
|
2200
|
+
cancelAtPeriodEnd?: T;
|
|
2201
|
+
canceledAt?: T;
|
|
2202
|
+
cancelReason?: T;
|
|
2203
|
+
retryCount?: T;
|
|
2204
|
+
graceDeadline?: T;
|
|
2205
|
+
lastPaymentError?: T;
|
|
2206
|
+
pendingPlanChange?: T | {
|
|
2207
|
+
targetPlan?: T;
|
|
2208
|
+
targetAmount?: T;
|
|
2209
|
+
effectiveDate?: T;
|
|
2210
|
+
};
|
|
2211
|
+
updatedAt?: T;
|
|
2212
|
+
createdAt?: T;
|
|
2213
|
+
}
|
|
2214
|
+
/**
|
|
2215
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
2216
|
+
* via the `definition` "billing-history_select".
|
|
2217
|
+
*/
|
|
2218
|
+
interface BillingHistorySelect<T extends boolean = true> {
|
|
2219
|
+
provider?: T;
|
|
2220
|
+
currency?: T;
|
|
2221
|
+
tenant?: T;
|
|
2222
|
+
subscription?: T;
|
|
2223
|
+
type?: T;
|
|
2224
|
+
status?: T;
|
|
2225
|
+
amount?: T;
|
|
2226
|
+
paymentKey?: T;
|
|
2227
|
+
orderId?: T;
|
|
2228
|
+
orderName?: T;
|
|
2229
|
+
plan?: T;
|
|
2230
|
+
billingCycle?: T;
|
|
2231
|
+
periodStart?: T;
|
|
2232
|
+
periodEnd?: T;
|
|
2233
|
+
tossResponse?: T;
|
|
2234
|
+
polarOrderId?: T;
|
|
2235
|
+
polarResponse?: T;
|
|
2236
|
+
errorMessage?: T;
|
|
2237
|
+
retryOf?: T;
|
|
2238
|
+
updatedAt?: T;
|
|
2239
|
+
createdAt?: T;
|
|
2240
|
+
}
|
|
2041
2241
|
/**
|
|
2042
2242
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
2043
2243
|
* via the `definition` "products_select".
|
|
@@ -2127,6 +2327,7 @@ interface ProductTagsSelect<T extends boolean = true> {
|
|
|
2127
2327
|
generateSlug?: T;
|
|
2128
2328
|
slug?: T;
|
|
2129
2329
|
description?: T;
|
|
2330
|
+
image?: T;
|
|
2130
2331
|
updatedAt?: T;
|
|
2131
2332
|
createdAt?: T;
|
|
2132
2333
|
}
|
|
@@ -2411,6 +2612,7 @@ interface PostCategoriesSelect<T extends boolean = true> {
|
|
|
2411
2612
|
generateSlug?: T;
|
|
2412
2613
|
slug?: T;
|
|
2413
2614
|
description?: T;
|
|
2615
|
+
image?: T;
|
|
2414
2616
|
parent?: T;
|
|
2415
2617
|
updatedAt?: T;
|
|
2416
2618
|
createdAt?: T;
|
|
@@ -2426,6 +2628,7 @@ interface PostTagsSelect<T extends boolean = true> {
|
|
|
2426
2628
|
generateSlug?: T;
|
|
2427
2629
|
slug?: T;
|
|
2428
2630
|
description?: T;
|
|
2631
|
+
image?: T;
|
|
2429
2632
|
updatedAt?: T;
|
|
2430
2633
|
createdAt?: T;
|
|
2431
2634
|
}
|
|
@@ -2530,6 +2733,7 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
|
|
|
2530
2733
|
generateSlug?: T;
|
|
2531
2734
|
slug?: T;
|
|
2532
2735
|
description?: T;
|
|
2736
|
+
image?: T;
|
|
2533
2737
|
updatedAt?: T;
|
|
2534
2738
|
createdAt?: T;
|
|
2535
2739
|
}
|
|
@@ -2901,4 +3105,4 @@ declare module 'payload' {
|
|
|
2901
3105
|
}
|
|
2902
3106
|
}
|
|
2903
3107
|
|
|
2904
|
-
export type {
|
|
3108
|
+
export type { TenantsSelect as $, Audience as A, BrandLogo as B, Config as C, Document as D, EmailLog as E, PlaylistImage as F, Music as G, Gallery as H, IframeBlock as I, GalleryImage as J, Form as K, FormSubmission as L, Media as M, PayloadKv as N, Order as O, ProductOption as P, PayloadLockedDocument as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PayloadPreference as V, PayloadMigration as W, UsersSelect as X, MediaSelect as Y, AudiencesSelect as Z, EmailLogsSelect as _, OrderProduct as a, TenantMetadataSelect as a0, TenantLogosSelect as a1, TenantOgImagesSelect as a2, ApiUsageSelect as a3, SubscriptionsSelect as a4, BillingHistorySelect as a5, ProductsSelect as a6, ProductVariantsSelect as a7, ProductOptionsSelect as a8, ProductCategoriesSelect as a9, PayloadPreferencesSelect as aA, PayloadMigrationsSelect as aB, Auth as aC, ProductTagsSelect as aa, ProductImagesSelect as ab, BrandsSelect as ac, BrandLogosSelect as ad, OrdersSelect as ae, OrderProductsSelect as af, ReturnsSelect as ag, ReturnProductsSelect as ah, TransactionsSelect as ai, PostsSelect as aj, PostCategoriesSelect as ak, PostTagsSelect as al, PostImagesSelect as am, AuthorsSelect as an, DocumentsSelect as ao, DocumentCategoriesSelect as ap, DocumentImagesSelect as aq, PlaylistsSelect as ar, PlaylistImagesSelect as as, MusicsSelect as at, GalleriesSelect as au, GalleryImagesSelect as av, FormsSelect as aw, FormSubmissionsSelect as ax, PayloadKvSelect as ay, PayloadLockedDocumentsSelect as az, PlayerBlock as b, CodeBlock as c, User as d, Tenant as e, TenantMetadatum as f, TenantOgImage as g, TenantLogo as h, ApiUsage as i, Subscription as j, BillingHistory as k, Product as l, ProductImage as m, ProductCategory as n, ProductTag as o, Brand as p, ProductVariant as q, ReturnProduct as r, Post as s, PostImage as t, Author as u, PostCategory as v, PostTag as w, DocumentCategory as x, DocumentImage as y, Playlist as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config } from './payload-types-
|
|
1
|
+
import { C as Config } from './payload-types-BjyFdz5j.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Collection type derived from Payload Config.
|
|
@@ -6,20 +6,15 @@ import { C as Config } from './payload-types-DFzDtXGO.js';
|
|
|
6
6
|
*/
|
|
7
7
|
type Collection = keyof Config['collections'];
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Array of all public collection names for runtime use (e.g., Zod enum validation).
|
|
10
|
+
* This is the single source of truth for which collections are publicly accessible via SDK.
|
|
10
11
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
type InternalCollection = (typeof INTERNAL_COLLECTIONS)[number];
|
|
12
|
+
declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "transactions", "documents", "document-categories", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "galleries", "gallery-images", "forms", "form-submissions", "media"];
|
|
13
13
|
/**
|
|
14
14
|
* Public collections available for SDK access.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
type PublicCollection = Exclude<Collection, InternalCollection>;
|
|
18
|
-
/**
|
|
19
|
-
* Array of all public collection names for runtime use (e.g., Zod enum validation).
|
|
20
|
-
* This is derived from Config to ensure type safety.
|
|
15
|
+
* Derived from the COLLECTIONS array (single source of truth).
|
|
21
16
|
*/
|
|
22
|
-
|
|
17
|
+
type PublicCollection = (typeof COLLECTIONS)[number];
|
|
23
18
|
|
|
24
19
|
type CollectionType<T extends Collection> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
|
|
25
20
|
|
|
@@ -37,4 +32,4 @@ declare function isValidWebhookEvent(data: unknown): data is WebhookEvent;
|
|
|
37
32
|
declare function handleWebhook<T extends Collection = Collection>(request: Request, handler: WebhookHandler<T>, options?: WebhookOptions): Promise<Response>;
|
|
38
33
|
declare function createTypedWebhookHandler<T extends Collection>(collection: T, handler: (event: WebhookEvent<T>) => Promise<void> | void): WebhookHandler<T>;
|
|
39
34
|
|
|
40
|
-
export { type
|
|
35
|
+
export { type CollectionType as C, type PublicCollection as P, type WebhookOperation as W, type Collection as a, COLLECTIONS as b, type WebhookEvent as c, type WebhookHandler as d, type WebhookOptions as e, createTypedWebhookHandler as f, handleWebhook as h, isValidWebhookEvent as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config } from './payload-types-
|
|
1
|
+
import { C as Config } from './payload-types-BjyFdz5j.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Collection type derived from Payload Config.
|
|
@@ -6,20 +6,15 @@ import { C as Config } from './payload-types-DFzDtXGO.cjs';
|
|
|
6
6
|
*/
|
|
7
7
|
type Collection = keyof Config['collections'];
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Array of all public collection names for runtime use (e.g., Zod enum validation).
|
|
10
|
+
* This is the single source of truth for which collections are publicly accessible via SDK.
|
|
10
11
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
type InternalCollection = (typeof INTERNAL_COLLECTIONS)[number];
|
|
12
|
+
declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "transactions", "documents", "document-categories", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "galleries", "gallery-images", "forms", "form-submissions", "media"];
|
|
13
13
|
/**
|
|
14
14
|
* Public collections available for SDK access.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
type PublicCollection = Exclude<Collection, InternalCollection>;
|
|
18
|
-
/**
|
|
19
|
-
* Array of all public collection names for runtime use (e.g., Zod enum validation).
|
|
20
|
-
* This is derived from Config to ensure type safety.
|
|
15
|
+
* Derived from the COLLECTIONS array (single source of truth).
|
|
21
16
|
*/
|
|
22
|
-
|
|
17
|
+
type PublicCollection = (typeof COLLECTIONS)[number];
|
|
23
18
|
|
|
24
19
|
type CollectionType<T extends Collection> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
|
|
25
20
|
|
|
@@ -37,4 +32,4 @@ declare function isValidWebhookEvent(data: unknown): data is WebhookEvent;
|
|
|
37
32
|
declare function handleWebhook<T extends Collection = Collection>(request: Request, handler: WebhookHandler<T>, options?: WebhookOptions): Promise<Response>;
|
|
38
33
|
declare function createTypedWebhookHandler<T extends Collection>(collection: T, handler: (event: WebhookEvent<T>) => Promise<void> | void): WebhookHandler<T>;
|
|
39
34
|
|
|
40
|
-
export { type
|
|
35
|
+
export { type CollectionType as C, type PublicCollection as P, type WebhookOperation as W, type Collection as a, COLLECTIONS as b, type WebhookEvent as c, type WebhookHandler as d, type WebhookOptions as e, createTypedWebhookHandler as f, handleWebhook as h, isValidWebhookEvent as i };
|