@01.software/sdk 0.2.7 → 0.2.9-dev.260305.4f1735b
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/README.md +11 -2
- package/dist/{auth-ZBsN9vPn.d.cts → auth-3qWmYUln.d.cts} +1 -1
- package/dist/{auth-D-_Ju7m5.d.ts → auth-BfGmV75P.d.ts} +1 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js.map +1 -1
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/index.cjs +68 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -21
- package/dist/index.d.ts +48 -21
- package/dist/index.js +68 -15
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-CRSz8jfP.d.cts → payload-types-Bpi16SHO.d.cts} +79 -79
- package/dist/{payload-types-CRSz8jfP.d.ts → payload-types-Bpi16SHO.d.ts} +79 -79
- package/dist/{webhook-C_DHB0Sw.d.ts → webhook-Bk-i0A59.d.ts} +1 -1
- package/dist/{webhook-Dn5o0LXq.d.cts → webhook-DMN-IPra.d.cts} +1 -1
- package/dist/webhook.d.cts +2 -2
- package/dist/webhook.d.ts +2 -2
- package/package.json +12 -3
|
@@ -43,13 +43,13 @@ interface Config {
|
|
|
43
43
|
'product-images': ProductImage;
|
|
44
44
|
orders: Order;
|
|
45
45
|
'order-products': OrderProduct;
|
|
46
|
+
transactions: Transaction;
|
|
47
|
+
fulfillments: Fulfillment;
|
|
48
|
+
'fulfillment-items': FulfillmentItem;
|
|
46
49
|
returns: Return;
|
|
47
50
|
'return-products': ReturnProduct;
|
|
48
51
|
exchanges: Exchange;
|
|
49
52
|
'exchange-products': ExchangeProduct;
|
|
50
|
-
fulfillments: Fulfillment;
|
|
51
|
-
'fulfillment-items': FulfillmentItem;
|
|
52
|
-
transactions: Transaction;
|
|
53
53
|
customers: Customer;
|
|
54
54
|
'customer-addresses': CustomerAddress;
|
|
55
55
|
'customer-groups': CustomerGroup;
|
|
@@ -93,15 +93,15 @@ interface Config {
|
|
|
93
93
|
exchanges: 'exchanges';
|
|
94
94
|
fulfillments: 'fulfillments';
|
|
95
95
|
};
|
|
96
|
+
fulfillments: {
|
|
97
|
+
items: 'fulfillment-items';
|
|
98
|
+
};
|
|
96
99
|
returns: {
|
|
97
100
|
returnProducts: 'return-products';
|
|
98
101
|
};
|
|
99
102
|
exchanges: {
|
|
100
103
|
exchangeProducts: 'exchange-products';
|
|
101
104
|
};
|
|
102
|
-
fulfillments: {
|
|
103
|
-
items: 'fulfillment-items';
|
|
104
|
-
};
|
|
105
105
|
customers: {
|
|
106
106
|
orders: 'orders';
|
|
107
107
|
addresses: 'customer-addresses';
|
|
@@ -142,13 +142,13 @@ interface Config {
|
|
|
142
142
|
'product-images': ProductImagesSelect<false> | ProductImagesSelect<true>;
|
|
143
143
|
orders: OrdersSelect<false> | OrdersSelect<true>;
|
|
144
144
|
'order-products': OrderProductsSelect<false> | OrderProductsSelect<true>;
|
|
145
|
+
transactions: TransactionsSelect<false> | TransactionsSelect<true>;
|
|
146
|
+
fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
|
|
147
|
+
'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
|
|
145
148
|
returns: ReturnsSelect<false> | ReturnsSelect<true>;
|
|
146
149
|
'return-products': ReturnProductsSelect<false> | ReturnProductsSelect<true>;
|
|
147
150
|
exchanges: ExchangesSelect<false> | ExchangesSelect<true>;
|
|
148
151
|
'exchange-products': ExchangeProductsSelect<false> | ExchangeProductsSelect<true>;
|
|
149
|
-
fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
|
|
150
|
-
'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
|
|
151
|
-
transactions: TransactionsSelect<false> | TransactionsSelect<true>;
|
|
152
152
|
customers: CustomersSelect<false> | CustomersSelect<true>;
|
|
153
153
|
'customer-addresses': CustomerAddressesSelect<false> | CustomerAddressesSelect<true>;
|
|
154
154
|
'customer-groups': CustomerGroupsSelect<false> | CustomerGroupsSelect<true>;
|
|
@@ -311,7 +311,7 @@ interface Tenant {
|
|
|
311
311
|
origin: string;
|
|
312
312
|
id?: string | null;
|
|
313
313
|
}[] | null;
|
|
314
|
-
features?: ('ecommerce' | 'playlists' | '
|
|
314
|
+
features?: ('ecommerce' | 'playlists' | 'forms' | 'posts' | 'documents')[] | null;
|
|
315
315
|
plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
|
|
316
316
|
clientKey: string;
|
|
317
317
|
secretKeys?: {
|
|
@@ -732,25 +732,25 @@ interface Subscription {
|
|
|
732
732
|
plan: 'starter' | 'basic' | 'pro';
|
|
733
733
|
billingCycle: 'monthly' | 'yearly';
|
|
734
734
|
/**
|
|
735
|
-
*
|
|
735
|
+
* Payment amount (KRW)
|
|
736
736
|
*/
|
|
737
737
|
amount: number;
|
|
738
738
|
status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
|
|
739
739
|
/**
|
|
740
|
-
*
|
|
740
|
+
* Toss billing key (AES-256-GCM encrypted)
|
|
741
741
|
*/
|
|
742
742
|
billingKey?: string | null;
|
|
743
743
|
/**
|
|
744
|
-
*
|
|
744
|
+
* Toss customer key (UUID)
|
|
745
745
|
*/
|
|
746
746
|
customerKey?: string | null;
|
|
747
747
|
/**
|
|
748
|
-
*
|
|
748
|
+
* Registered card info
|
|
749
749
|
*/
|
|
750
750
|
cardInfo?: {
|
|
751
751
|
issuerCode?: string | null;
|
|
752
752
|
/**
|
|
753
|
-
*
|
|
753
|
+
* Masked card number
|
|
754
754
|
*/
|
|
755
755
|
number?: string | null;
|
|
756
756
|
cardType?: string | null;
|
|
@@ -797,27 +797,27 @@ interface BillingHistory {
|
|
|
797
797
|
type: 'payment' | 'refund' | 'plan_change';
|
|
798
798
|
status: 'success' | 'failed' | 'refunded' | 'partial_refund';
|
|
799
799
|
/**
|
|
800
|
-
*
|
|
800
|
+
* Amount (KRW)
|
|
801
801
|
*/
|
|
802
802
|
amount: number;
|
|
803
803
|
/**
|
|
804
|
-
*
|
|
804
|
+
* Toss payment key
|
|
805
805
|
*/
|
|
806
806
|
paymentKey?: string | null;
|
|
807
807
|
/**
|
|
808
|
-
*
|
|
808
|
+
* Unique order number
|
|
809
809
|
*/
|
|
810
810
|
orderId: string;
|
|
811
811
|
orderName?: string | null;
|
|
812
812
|
/**
|
|
813
|
-
*
|
|
813
|
+
* Plan at time of payment
|
|
814
814
|
*/
|
|
815
815
|
plan?: string | null;
|
|
816
816
|
billingCycle?: ('monthly' | 'yearly') | null;
|
|
817
817
|
periodStart?: string | null;
|
|
818
818
|
periodEnd?: string | null;
|
|
819
819
|
/**
|
|
820
|
-
*
|
|
820
|
+
* Full Toss API response
|
|
821
821
|
*/
|
|
822
822
|
tossResponse?: {
|
|
823
823
|
[k: string]: unknown;
|
|
@@ -827,14 +827,14 @@ interface BillingHistory {
|
|
|
827
827
|
*/
|
|
828
828
|
polarOrderId?: string | null;
|
|
829
829
|
/**
|
|
830
|
-
* Polar API
|
|
830
|
+
* Full Polar API response
|
|
831
831
|
*/
|
|
832
832
|
polarResponse?: {
|
|
833
833
|
[k: string]: unknown;
|
|
834
834
|
} | unknown[] | string | number | boolean | null;
|
|
835
835
|
errorMessage?: string | null;
|
|
836
836
|
/**
|
|
837
|
-
*
|
|
837
|
+
* Original billing record for retry
|
|
838
838
|
*/
|
|
839
839
|
retryOf?: (string | null) | BillingHistory;
|
|
840
840
|
updatedAt: string;
|
|
@@ -1273,7 +1273,7 @@ interface ShippingPolicy {
|
|
|
1273
1273
|
_order?: string | null;
|
|
1274
1274
|
tenant?: (string | null) | Tenant;
|
|
1275
1275
|
/**
|
|
1276
|
-
* e.g.
|
|
1276
|
+
* e.g. Standard shipping, Large items
|
|
1277
1277
|
*/
|
|
1278
1278
|
title: string;
|
|
1279
1279
|
/**
|
|
@@ -1549,7 +1549,7 @@ interface OrderProduct {
|
|
|
1549
1549
|
*/
|
|
1550
1550
|
unitPrice: number;
|
|
1551
1551
|
/**
|
|
1552
|
-
* unitPrice
|
|
1552
|
+
* unitPrice × quantity
|
|
1553
1553
|
*/
|
|
1554
1554
|
totalPrice: number;
|
|
1555
1555
|
title?: string | null;
|
|
@@ -1772,7 +1772,7 @@ interface Discount {
|
|
|
1772
1772
|
*/
|
|
1773
1773
|
code: string;
|
|
1774
1774
|
/**
|
|
1775
|
-
* Internal name (e.g.
|
|
1775
|
+
* Internal name (e.g. New member 10% discount)
|
|
1776
1776
|
*/
|
|
1777
1777
|
title: string;
|
|
1778
1778
|
/**
|
|
@@ -2560,6 +2560,15 @@ interface PayloadLockedDocument {
|
|
|
2560
2560
|
} | null) | ({
|
|
2561
2561
|
relationTo: 'order-products';
|
|
2562
2562
|
value: string | OrderProduct;
|
|
2563
|
+
} | null) | ({
|
|
2564
|
+
relationTo: 'transactions';
|
|
2565
|
+
value: string | Transaction;
|
|
2566
|
+
} | null) | ({
|
|
2567
|
+
relationTo: 'fulfillments';
|
|
2568
|
+
value: string | Fulfillment;
|
|
2569
|
+
} | null) | ({
|
|
2570
|
+
relationTo: 'fulfillment-items';
|
|
2571
|
+
value: string | FulfillmentItem;
|
|
2563
2572
|
} | null) | ({
|
|
2564
2573
|
relationTo: 'returns';
|
|
2565
2574
|
value: string | Return;
|
|
@@ -2572,15 +2581,6 @@ interface PayloadLockedDocument {
|
|
|
2572
2581
|
} | null) | ({
|
|
2573
2582
|
relationTo: 'exchange-products';
|
|
2574
2583
|
value: string | ExchangeProduct;
|
|
2575
|
-
} | null) | ({
|
|
2576
|
-
relationTo: 'fulfillments';
|
|
2577
|
-
value: string | Fulfillment;
|
|
2578
|
-
} | null) | ({
|
|
2579
|
-
relationTo: 'fulfillment-items';
|
|
2580
|
-
value: string | FulfillmentItem;
|
|
2581
|
-
} | null) | ({
|
|
2582
|
-
relationTo: 'transactions';
|
|
2583
|
-
value: string | Transaction;
|
|
2584
2584
|
} | null) | ({
|
|
2585
2585
|
relationTo: 'customers';
|
|
2586
2586
|
value: string | Customer;
|
|
@@ -3412,6 +3412,50 @@ interface OrderProductsSelect<T extends boolean = true> {
|
|
|
3412
3412
|
updatedAt?: T;
|
|
3413
3413
|
createdAt?: T;
|
|
3414
3414
|
}
|
|
3415
|
+
/**
|
|
3416
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3417
|
+
* via the `definition` "transactions_select".
|
|
3418
|
+
*/
|
|
3419
|
+
interface TransactionsSelect<T extends boolean = true> {
|
|
3420
|
+
tenant?: T;
|
|
3421
|
+
status?: T;
|
|
3422
|
+
order?: T;
|
|
3423
|
+
paymentId?: T;
|
|
3424
|
+
paymentMethod?: T;
|
|
3425
|
+
receiptUrl?: T;
|
|
3426
|
+
totalAmount?: T;
|
|
3427
|
+
updatedAt?: T;
|
|
3428
|
+
createdAt?: T;
|
|
3429
|
+
}
|
|
3430
|
+
/**
|
|
3431
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3432
|
+
* via the `definition` "fulfillments_select".
|
|
3433
|
+
*/
|
|
3434
|
+
interface FulfillmentsSelect<T extends boolean = true> {
|
|
3435
|
+
tenant?: T;
|
|
3436
|
+
order?: T;
|
|
3437
|
+
status?: T;
|
|
3438
|
+
carrier?: T;
|
|
3439
|
+
trackingNumber?: T;
|
|
3440
|
+
shippedAt?: T;
|
|
3441
|
+
deliveredAt?: T;
|
|
3442
|
+
items?: T;
|
|
3443
|
+
metadata?: T;
|
|
3444
|
+
updatedAt?: T;
|
|
3445
|
+
createdAt?: T;
|
|
3446
|
+
}
|
|
3447
|
+
/**
|
|
3448
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3449
|
+
* via the `definition` "fulfillment-items_select".
|
|
3450
|
+
*/
|
|
3451
|
+
interface FulfillmentItemsSelect<T extends boolean = true> {
|
|
3452
|
+
tenant?: T;
|
|
3453
|
+
fulfillment?: T;
|
|
3454
|
+
orderProduct?: T;
|
|
3455
|
+
quantity?: T;
|
|
3456
|
+
updatedAt?: T;
|
|
3457
|
+
createdAt?: T;
|
|
3458
|
+
}
|
|
3415
3459
|
/**
|
|
3416
3460
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3417
3461
|
* via the `definition` "returns_select".
|
|
@@ -3479,50 +3523,6 @@ interface ExchangeProductsSelect<T extends boolean = true> {
|
|
|
3479
3523
|
updatedAt?: T;
|
|
3480
3524
|
createdAt?: T;
|
|
3481
3525
|
}
|
|
3482
|
-
/**
|
|
3483
|
-
* This interface was referenced by `Config`'s JSON-Schema
|
|
3484
|
-
* via the `definition` "fulfillments_select".
|
|
3485
|
-
*/
|
|
3486
|
-
interface FulfillmentsSelect<T extends boolean = true> {
|
|
3487
|
-
tenant?: T;
|
|
3488
|
-
order?: T;
|
|
3489
|
-
status?: T;
|
|
3490
|
-
carrier?: T;
|
|
3491
|
-
trackingNumber?: T;
|
|
3492
|
-
shippedAt?: T;
|
|
3493
|
-
deliveredAt?: T;
|
|
3494
|
-
items?: T;
|
|
3495
|
-
metadata?: T;
|
|
3496
|
-
updatedAt?: T;
|
|
3497
|
-
createdAt?: T;
|
|
3498
|
-
}
|
|
3499
|
-
/**
|
|
3500
|
-
* This interface was referenced by `Config`'s JSON-Schema
|
|
3501
|
-
* via the `definition` "fulfillment-items_select".
|
|
3502
|
-
*/
|
|
3503
|
-
interface FulfillmentItemsSelect<T extends boolean = true> {
|
|
3504
|
-
tenant?: T;
|
|
3505
|
-
fulfillment?: T;
|
|
3506
|
-
orderProduct?: T;
|
|
3507
|
-
quantity?: T;
|
|
3508
|
-
updatedAt?: T;
|
|
3509
|
-
createdAt?: T;
|
|
3510
|
-
}
|
|
3511
|
-
/**
|
|
3512
|
-
* This interface was referenced by `Config`'s JSON-Schema
|
|
3513
|
-
* via the `definition` "transactions_select".
|
|
3514
|
-
*/
|
|
3515
|
-
interface TransactionsSelect<T extends boolean = true> {
|
|
3516
|
-
tenant?: T;
|
|
3517
|
-
status?: T;
|
|
3518
|
-
order?: T;
|
|
3519
|
-
paymentId?: T;
|
|
3520
|
-
paymentMethod?: T;
|
|
3521
|
-
receiptUrl?: T;
|
|
3522
|
-
totalAmount?: T;
|
|
3523
|
-
updatedAt?: T;
|
|
3524
|
-
createdAt?: T;
|
|
3525
|
-
}
|
|
3526
3526
|
/**
|
|
3527
3527
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3528
3528
|
* via the `definition` "customers_select".
|
|
@@ -4281,4 +4281,4 @@ declare module 'payload' {
|
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
4283
|
|
|
4284
|
-
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, CollectionsWidget as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9,
|
|
4284
|
+
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, CollectionsWidget as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9, ExchangeProductsSelect 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, PostAuthorsSelect as aK, PostCategoriesSelect as aL, PostTagsSelect as aM, PostImagesSelect as aN, DocumentsSelect as aO, DocumentCategoriesSelect as aP, DocumentTypesSelect as aQ, DocumentImagesSelect as aR, PlaylistsSelect as aS, MusicsSelect as aT, PlaylistImagesSelect 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, ApiUsageSelect as ae, SubscriptionsSelect as af, BillingHistorySelect as ag, TenantLogosSelect as ah, TenantOgImagesSelect as ai, ProductsSelect as aj, ProductVariantsSelect as ak, ProductOptionsSelect as al, ProductCategoriesSelect as am, ProductTagsSelect as an, ProductCollectionsSelect as ao, BrandsSelect as ap, BrandLogosSelect as aq, ProductImagesSelect as ar, OrdersSelect as as, OrderProductsSelect as at, TransactionsSelect as au, FulfillmentsSelect as av, FulfillmentItemsSelect as aw, ReturnsSelect as ax, ReturnProductsSelect as ay, ExchangesSelect as az, Fulfillment as b, Auth as b0, 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 };
|
|
@@ -43,13 +43,13 @@ interface Config {
|
|
|
43
43
|
'product-images': ProductImage;
|
|
44
44
|
orders: Order;
|
|
45
45
|
'order-products': OrderProduct;
|
|
46
|
+
transactions: Transaction;
|
|
47
|
+
fulfillments: Fulfillment;
|
|
48
|
+
'fulfillment-items': FulfillmentItem;
|
|
46
49
|
returns: Return;
|
|
47
50
|
'return-products': ReturnProduct;
|
|
48
51
|
exchanges: Exchange;
|
|
49
52
|
'exchange-products': ExchangeProduct;
|
|
50
|
-
fulfillments: Fulfillment;
|
|
51
|
-
'fulfillment-items': FulfillmentItem;
|
|
52
|
-
transactions: Transaction;
|
|
53
53
|
customers: Customer;
|
|
54
54
|
'customer-addresses': CustomerAddress;
|
|
55
55
|
'customer-groups': CustomerGroup;
|
|
@@ -93,15 +93,15 @@ interface Config {
|
|
|
93
93
|
exchanges: 'exchanges';
|
|
94
94
|
fulfillments: 'fulfillments';
|
|
95
95
|
};
|
|
96
|
+
fulfillments: {
|
|
97
|
+
items: 'fulfillment-items';
|
|
98
|
+
};
|
|
96
99
|
returns: {
|
|
97
100
|
returnProducts: 'return-products';
|
|
98
101
|
};
|
|
99
102
|
exchanges: {
|
|
100
103
|
exchangeProducts: 'exchange-products';
|
|
101
104
|
};
|
|
102
|
-
fulfillments: {
|
|
103
|
-
items: 'fulfillment-items';
|
|
104
|
-
};
|
|
105
105
|
customers: {
|
|
106
106
|
orders: 'orders';
|
|
107
107
|
addresses: 'customer-addresses';
|
|
@@ -142,13 +142,13 @@ interface Config {
|
|
|
142
142
|
'product-images': ProductImagesSelect<false> | ProductImagesSelect<true>;
|
|
143
143
|
orders: OrdersSelect<false> | OrdersSelect<true>;
|
|
144
144
|
'order-products': OrderProductsSelect<false> | OrderProductsSelect<true>;
|
|
145
|
+
transactions: TransactionsSelect<false> | TransactionsSelect<true>;
|
|
146
|
+
fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
|
|
147
|
+
'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
|
|
145
148
|
returns: ReturnsSelect<false> | ReturnsSelect<true>;
|
|
146
149
|
'return-products': ReturnProductsSelect<false> | ReturnProductsSelect<true>;
|
|
147
150
|
exchanges: ExchangesSelect<false> | ExchangesSelect<true>;
|
|
148
151
|
'exchange-products': ExchangeProductsSelect<false> | ExchangeProductsSelect<true>;
|
|
149
|
-
fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
|
|
150
|
-
'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
|
|
151
|
-
transactions: TransactionsSelect<false> | TransactionsSelect<true>;
|
|
152
152
|
customers: CustomersSelect<false> | CustomersSelect<true>;
|
|
153
153
|
'customer-addresses': CustomerAddressesSelect<false> | CustomerAddressesSelect<true>;
|
|
154
154
|
'customer-groups': CustomerGroupsSelect<false> | CustomerGroupsSelect<true>;
|
|
@@ -311,7 +311,7 @@ interface Tenant {
|
|
|
311
311
|
origin: string;
|
|
312
312
|
id?: string | null;
|
|
313
313
|
}[] | null;
|
|
314
|
-
features?: ('ecommerce' | 'playlists' | '
|
|
314
|
+
features?: ('ecommerce' | 'playlists' | 'forms' | 'posts' | 'documents')[] | null;
|
|
315
315
|
plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
|
|
316
316
|
clientKey: string;
|
|
317
317
|
secretKeys?: {
|
|
@@ -732,25 +732,25 @@ interface Subscription {
|
|
|
732
732
|
plan: 'starter' | 'basic' | 'pro';
|
|
733
733
|
billingCycle: 'monthly' | 'yearly';
|
|
734
734
|
/**
|
|
735
|
-
*
|
|
735
|
+
* Payment amount (KRW)
|
|
736
736
|
*/
|
|
737
737
|
amount: number;
|
|
738
738
|
status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
|
|
739
739
|
/**
|
|
740
|
-
*
|
|
740
|
+
* Toss billing key (AES-256-GCM encrypted)
|
|
741
741
|
*/
|
|
742
742
|
billingKey?: string | null;
|
|
743
743
|
/**
|
|
744
|
-
*
|
|
744
|
+
* Toss customer key (UUID)
|
|
745
745
|
*/
|
|
746
746
|
customerKey?: string | null;
|
|
747
747
|
/**
|
|
748
|
-
*
|
|
748
|
+
* Registered card info
|
|
749
749
|
*/
|
|
750
750
|
cardInfo?: {
|
|
751
751
|
issuerCode?: string | null;
|
|
752
752
|
/**
|
|
753
|
-
*
|
|
753
|
+
* Masked card number
|
|
754
754
|
*/
|
|
755
755
|
number?: string | null;
|
|
756
756
|
cardType?: string | null;
|
|
@@ -797,27 +797,27 @@ interface BillingHistory {
|
|
|
797
797
|
type: 'payment' | 'refund' | 'plan_change';
|
|
798
798
|
status: 'success' | 'failed' | 'refunded' | 'partial_refund';
|
|
799
799
|
/**
|
|
800
|
-
*
|
|
800
|
+
* Amount (KRW)
|
|
801
801
|
*/
|
|
802
802
|
amount: number;
|
|
803
803
|
/**
|
|
804
|
-
*
|
|
804
|
+
* Toss payment key
|
|
805
805
|
*/
|
|
806
806
|
paymentKey?: string | null;
|
|
807
807
|
/**
|
|
808
|
-
*
|
|
808
|
+
* Unique order number
|
|
809
809
|
*/
|
|
810
810
|
orderId: string;
|
|
811
811
|
orderName?: string | null;
|
|
812
812
|
/**
|
|
813
|
-
*
|
|
813
|
+
* Plan at time of payment
|
|
814
814
|
*/
|
|
815
815
|
plan?: string | null;
|
|
816
816
|
billingCycle?: ('monthly' | 'yearly') | null;
|
|
817
817
|
periodStart?: string | null;
|
|
818
818
|
periodEnd?: string | null;
|
|
819
819
|
/**
|
|
820
|
-
*
|
|
820
|
+
* Full Toss API response
|
|
821
821
|
*/
|
|
822
822
|
tossResponse?: {
|
|
823
823
|
[k: string]: unknown;
|
|
@@ -827,14 +827,14 @@ interface BillingHistory {
|
|
|
827
827
|
*/
|
|
828
828
|
polarOrderId?: string | null;
|
|
829
829
|
/**
|
|
830
|
-
* Polar API
|
|
830
|
+
* Full Polar API response
|
|
831
831
|
*/
|
|
832
832
|
polarResponse?: {
|
|
833
833
|
[k: string]: unknown;
|
|
834
834
|
} | unknown[] | string | number | boolean | null;
|
|
835
835
|
errorMessage?: string | null;
|
|
836
836
|
/**
|
|
837
|
-
*
|
|
837
|
+
* Original billing record for retry
|
|
838
838
|
*/
|
|
839
839
|
retryOf?: (string | null) | BillingHistory;
|
|
840
840
|
updatedAt: string;
|
|
@@ -1273,7 +1273,7 @@ interface ShippingPolicy {
|
|
|
1273
1273
|
_order?: string | null;
|
|
1274
1274
|
tenant?: (string | null) | Tenant;
|
|
1275
1275
|
/**
|
|
1276
|
-
* e.g.
|
|
1276
|
+
* e.g. Standard shipping, Large items
|
|
1277
1277
|
*/
|
|
1278
1278
|
title: string;
|
|
1279
1279
|
/**
|
|
@@ -1549,7 +1549,7 @@ interface OrderProduct {
|
|
|
1549
1549
|
*/
|
|
1550
1550
|
unitPrice: number;
|
|
1551
1551
|
/**
|
|
1552
|
-
* unitPrice
|
|
1552
|
+
* unitPrice × quantity
|
|
1553
1553
|
*/
|
|
1554
1554
|
totalPrice: number;
|
|
1555
1555
|
title?: string | null;
|
|
@@ -1772,7 +1772,7 @@ interface Discount {
|
|
|
1772
1772
|
*/
|
|
1773
1773
|
code: string;
|
|
1774
1774
|
/**
|
|
1775
|
-
* Internal name (e.g.
|
|
1775
|
+
* Internal name (e.g. New member 10% discount)
|
|
1776
1776
|
*/
|
|
1777
1777
|
title: string;
|
|
1778
1778
|
/**
|
|
@@ -2560,6 +2560,15 @@ interface PayloadLockedDocument {
|
|
|
2560
2560
|
} | null) | ({
|
|
2561
2561
|
relationTo: 'order-products';
|
|
2562
2562
|
value: string | OrderProduct;
|
|
2563
|
+
} | null) | ({
|
|
2564
|
+
relationTo: 'transactions';
|
|
2565
|
+
value: string | Transaction;
|
|
2566
|
+
} | null) | ({
|
|
2567
|
+
relationTo: 'fulfillments';
|
|
2568
|
+
value: string | Fulfillment;
|
|
2569
|
+
} | null) | ({
|
|
2570
|
+
relationTo: 'fulfillment-items';
|
|
2571
|
+
value: string | FulfillmentItem;
|
|
2563
2572
|
} | null) | ({
|
|
2564
2573
|
relationTo: 'returns';
|
|
2565
2574
|
value: string | Return;
|
|
@@ -2572,15 +2581,6 @@ interface PayloadLockedDocument {
|
|
|
2572
2581
|
} | null) | ({
|
|
2573
2582
|
relationTo: 'exchange-products';
|
|
2574
2583
|
value: string | ExchangeProduct;
|
|
2575
|
-
} | null) | ({
|
|
2576
|
-
relationTo: 'fulfillments';
|
|
2577
|
-
value: string | Fulfillment;
|
|
2578
|
-
} | null) | ({
|
|
2579
|
-
relationTo: 'fulfillment-items';
|
|
2580
|
-
value: string | FulfillmentItem;
|
|
2581
|
-
} | null) | ({
|
|
2582
|
-
relationTo: 'transactions';
|
|
2583
|
-
value: string | Transaction;
|
|
2584
2584
|
} | null) | ({
|
|
2585
2585
|
relationTo: 'customers';
|
|
2586
2586
|
value: string | Customer;
|
|
@@ -3412,6 +3412,50 @@ interface OrderProductsSelect<T extends boolean = true> {
|
|
|
3412
3412
|
updatedAt?: T;
|
|
3413
3413
|
createdAt?: T;
|
|
3414
3414
|
}
|
|
3415
|
+
/**
|
|
3416
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3417
|
+
* via the `definition` "transactions_select".
|
|
3418
|
+
*/
|
|
3419
|
+
interface TransactionsSelect<T extends boolean = true> {
|
|
3420
|
+
tenant?: T;
|
|
3421
|
+
status?: T;
|
|
3422
|
+
order?: T;
|
|
3423
|
+
paymentId?: T;
|
|
3424
|
+
paymentMethod?: T;
|
|
3425
|
+
receiptUrl?: T;
|
|
3426
|
+
totalAmount?: T;
|
|
3427
|
+
updatedAt?: T;
|
|
3428
|
+
createdAt?: T;
|
|
3429
|
+
}
|
|
3430
|
+
/**
|
|
3431
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3432
|
+
* via the `definition` "fulfillments_select".
|
|
3433
|
+
*/
|
|
3434
|
+
interface FulfillmentsSelect<T extends boolean = true> {
|
|
3435
|
+
tenant?: T;
|
|
3436
|
+
order?: T;
|
|
3437
|
+
status?: T;
|
|
3438
|
+
carrier?: T;
|
|
3439
|
+
trackingNumber?: T;
|
|
3440
|
+
shippedAt?: T;
|
|
3441
|
+
deliveredAt?: T;
|
|
3442
|
+
items?: T;
|
|
3443
|
+
metadata?: T;
|
|
3444
|
+
updatedAt?: T;
|
|
3445
|
+
createdAt?: T;
|
|
3446
|
+
}
|
|
3447
|
+
/**
|
|
3448
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3449
|
+
* via the `definition` "fulfillment-items_select".
|
|
3450
|
+
*/
|
|
3451
|
+
interface FulfillmentItemsSelect<T extends boolean = true> {
|
|
3452
|
+
tenant?: T;
|
|
3453
|
+
fulfillment?: T;
|
|
3454
|
+
orderProduct?: T;
|
|
3455
|
+
quantity?: T;
|
|
3456
|
+
updatedAt?: T;
|
|
3457
|
+
createdAt?: T;
|
|
3458
|
+
}
|
|
3415
3459
|
/**
|
|
3416
3460
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3417
3461
|
* via the `definition` "returns_select".
|
|
@@ -3479,50 +3523,6 @@ interface ExchangeProductsSelect<T extends boolean = true> {
|
|
|
3479
3523
|
updatedAt?: T;
|
|
3480
3524
|
createdAt?: T;
|
|
3481
3525
|
}
|
|
3482
|
-
/**
|
|
3483
|
-
* This interface was referenced by `Config`'s JSON-Schema
|
|
3484
|
-
* via the `definition` "fulfillments_select".
|
|
3485
|
-
*/
|
|
3486
|
-
interface FulfillmentsSelect<T extends boolean = true> {
|
|
3487
|
-
tenant?: T;
|
|
3488
|
-
order?: T;
|
|
3489
|
-
status?: T;
|
|
3490
|
-
carrier?: T;
|
|
3491
|
-
trackingNumber?: T;
|
|
3492
|
-
shippedAt?: T;
|
|
3493
|
-
deliveredAt?: T;
|
|
3494
|
-
items?: T;
|
|
3495
|
-
metadata?: T;
|
|
3496
|
-
updatedAt?: T;
|
|
3497
|
-
createdAt?: T;
|
|
3498
|
-
}
|
|
3499
|
-
/**
|
|
3500
|
-
* This interface was referenced by `Config`'s JSON-Schema
|
|
3501
|
-
* via the `definition` "fulfillment-items_select".
|
|
3502
|
-
*/
|
|
3503
|
-
interface FulfillmentItemsSelect<T extends boolean = true> {
|
|
3504
|
-
tenant?: T;
|
|
3505
|
-
fulfillment?: T;
|
|
3506
|
-
orderProduct?: T;
|
|
3507
|
-
quantity?: T;
|
|
3508
|
-
updatedAt?: T;
|
|
3509
|
-
createdAt?: T;
|
|
3510
|
-
}
|
|
3511
|
-
/**
|
|
3512
|
-
* This interface was referenced by `Config`'s JSON-Schema
|
|
3513
|
-
* via the `definition` "transactions_select".
|
|
3514
|
-
*/
|
|
3515
|
-
interface TransactionsSelect<T extends boolean = true> {
|
|
3516
|
-
tenant?: T;
|
|
3517
|
-
status?: T;
|
|
3518
|
-
order?: T;
|
|
3519
|
-
paymentId?: T;
|
|
3520
|
-
paymentMethod?: T;
|
|
3521
|
-
receiptUrl?: T;
|
|
3522
|
-
totalAmount?: T;
|
|
3523
|
-
updatedAt?: T;
|
|
3524
|
-
createdAt?: T;
|
|
3525
|
-
}
|
|
3526
3526
|
/**
|
|
3527
3527
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3528
3528
|
* via the `definition` "customers_select".
|
|
@@ -4281,4 +4281,4 @@ declare module 'payload' {
|
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
4283
|
|
|
4284
|
-
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, CollectionsWidget as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9,
|
|
4284
|
+
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, CollectionsWidget as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9, ExchangeProductsSelect 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, PostAuthorsSelect as aK, PostCategoriesSelect as aL, PostTagsSelect as aM, PostImagesSelect as aN, DocumentsSelect as aO, DocumentCategoriesSelect as aP, DocumentTypesSelect as aQ, DocumentImagesSelect as aR, PlaylistsSelect as aS, MusicsSelect as aT, PlaylistImagesSelect 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, ApiUsageSelect as ae, SubscriptionsSelect as af, BillingHistorySelect as ag, TenantLogosSelect as ah, TenantOgImagesSelect as ai, ProductsSelect as aj, ProductVariantsSelect as ak, ProductOptionsSelect as al, ProductCategoriesSelect as am, ProductTagsSelect as an, ProductCollectionsSelect as ao, BrandsSelect as ap, BrandLogosSelect as aq, ProductImagesSelect as ar, OrdersSelect as as, OrderProductsSelect as at, TransactionsSelect as au, FulfillmentsSelect as av, FulfillmentItemsSelect as aw, ReturnsSelect as ax, ReturnProductsSelect as ay, ExchangesSelect as az, Fulfillment as b, Auth as b0, 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 };
|
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-DMN-IPra.cjs';
|
|
2
|
+
import './payload-types-Bpi16SHO.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-Bk-i0A59.js';
|
|
2
|
+
import './payload-types-Bpi16SHO.js';
|