@01.software/sdk 0.70.1 → 0.72.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/CHANGELOG.md +143 -0
- package/MIGRATION.md +28 -0
- package/README.md +253 -11
- package/dist/client.cjs +396 -26
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +7 -6
- package/dist/client.d.ts +7 -6
- package/dist/client.js +396 -26
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BHLStm1K.d.cts → collection-client-B3CnqMDQ.d.cts} +14 -18
- package/dist/{collection-client-B1FSJ24_.d.ts → collection-client-uOgS_1bC.d.ts} +14 -18
- package/dist/{const-ty8u0TDI.d.ts → const-BJBK7jBl.d.ts} +1 -1
- package/dist/{const-BfQfV-rr.d.cts → const-_ZfJjRQG.d.cts} +1 -1
- package/dist/embedded-admin/server.cjs +117 -2
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.d.cts +30 -2
- package/dist/embedded-admin/server.d.ts +30 -2
- package/dist/embedded-admin/server.js +117 -2
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +135 -7
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.d.cts +35 -2
- package/dist/embedded-admin.d.ts +35 -2
- package/dist/embedded-admin.js +135 -7
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.cjs +2 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +3 -3
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +2 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-DnKgjPGM.d.ts → index-CBaP4q8r.d.ts} +3 -3
- package/dist/{index-CX6si6YC.d.cts → index-CI_LFWiG.d.cts} +3 -3
- package/dist/index.cjs +396 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -9
- package/dist/index.d.ts +24 -9
- package/dist/index.js +396 -26
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DTAaWKrp.d.cts → payload-types-BRg8Yary.d.cts} +262 -177
- package/dist/{payload-types-DTAaWKrp.d.ts → payload-types-BRg8Yary.d.ts} +262 -177
- package/dist/query.cjs +20 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +20 -0
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +459 -46
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +10 -8
- package/dist/server.d.ts +10 -8
- package/dist/server.js +459 -46
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +2 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +2 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-DdlhpNVv.d.ts → types-Cmnxxvuv.d.ts} +238 -21
- package/dist/{types-Bzgf4mTo.d.cts → types-CnkJQUez.d.cts} +238 -21
- package/dist/{types-DX8Z44yQ.d.ts → types-DLjSqL0P.d.ts} +2 -2
- package/dist/{types-CpSiyJud.d.cts → types-FyklqLAk.d.cts} +2 -2
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +2 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-
|
|
2
|
-
import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-
|
|
3
|
-
import { O as Order, l as Transaction, m as Fulfillment, n as Return } from './payload-types-
|
|
1
|
+
import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-BJBK7jBl.js';
|
|
2
|
+
import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-DLjSqL0P.js';
|
|
3
|
+
import { O as Order, l as Transaction, m as Fulfillment, n as Return } from './payload-types-BRg8Yary.js';
|
|
4
4
|
import { SDKError } from './errors.js';
|
|
5
5
|
|
|
6
6
|
declare const BENEFIT_VOUCHER_VOID_REASONS: readonly ["issued_in_error", "benefit_revoked", "customer_request", "other"];
|
|
@@ -157,6 +157,102 @@ declare class BenefitVouchersApi extends BaseApi {
|
|
|
157
157
|
voidVoucher(input: VoidBenefitVoucherRequest): Promise<MutateBenefitVoucherResponse>;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
/** Non-negative integer KRW, encoded without loss of aggregate precision. */
|
|
161
|
+
type CustomerCreditBalances = {
|
|
162
|
+
available: string;
|
|
163
|
+
held: string;
|
|
164
|
+
spent: string;
|
|
165
|
+
expired: string;
|
|
166
|
+
revoked: string;
|
|
167
|
+
};
|
|
168
|
+
type GetCustomerCreditGrantRequest = {
|
|
169
|
+
sourceNamespace: string;
|
|
170
|
+
sourceRef: string;
|
|
171
|
+
};
|
|
172
|
+
type GrantCustomerCreditRequest = GetCustomerCreditGrantRequest & {
|
|
173
|
+
customerId: string;
|
|
174
|
+
templateId: string;
|
|
175
|
+
amount?: number;
|
|
176
|
+
};
|
|
177
|
+
type RevokeCustomerCreditRequest = GetCustomerCreditGrantRequest;
|
|
178
|
+
type CustomerCreditGrant = GetCustomerCreditGrantRequest & {
|
|
179
|
+
id: string;
|
|
180
|
+
customerId: string;
|
|
181
|
+
templateId: string;
|
|
182
|
+
templateVersion: number;
|
|
183
|
+
mode: 'fixed' | 'bounded';
|
|
184
|
+
maximum: string;
|
|
185
|
+
amount: string;
|
|
186
|
+
currency: 'KRW';
|
|
187
|
+
validityDays: number;
|
|
188
|
+
grantedAt: string;
|
|
189
|
+
expiresAt: string;
|
|
190
|
+
};
|
|
191
|
+
type RevokeCustomerCreditResponse = {
|
|
192
|
+
revoked: string;
|
|
193
|
+
pending: string;
|
|
194
|
+
spent: string;
|
|
195
|
+
};
|
|
196
|
+
type MyCustomerCreditsRequest = {
|
|
197
|
+
page?: number;
|
|
198
|
+
};
|
|
199
|
+
type MyCustomerCreditHistoryRequest = MyCustomerCreditsRequest;
|
|
200
|
+
type MyCustomerCreditsResponse = {
|
|
201
|
+
currency: 'KRW';
|
|
202
|
+
evaluatedAt: string;
|
|
203
|
+
granted: string;
|
|
204
|
+
balances: CustomerCreditBalances;
|
|
205
|
+
buckets: {
|
|
206
|
+
id: string;
|
|
207
|
+
grantId: string;
|
|
208
|
+
kind: 'original' | 'grace';
|
|
209
|
+
grantedAt: string;
|
|
210
|
+
expiresAt: string;
|
|
211
|
+
isRevoked: boolean;
|
|
212
|
+
balances: CustomerCreditBalances;
|
|
213
|
+
}[];
|
|
214
|
+
page: number;
|
|
215
|
+
hasNextPage: boolean;
|
|
216
|
+
};
|
|
217
|
+
type MyCustomerCreditHistoryResponse = {
|
|
218
|
+
currency: 'KRW';
|
|
219
|
+
evaluatedAt: string;
|
|
220
|
+
entries: {
|
|
221
|
+
id: string;
|
|
222
|
+
grantId: string;
|
|
223
|
+
kind: 'grant' | 'reserve' | 'consume' | 'release' | 'restore' | 'expire' | 'revoke';
|
|
224
|
+
amount: string;
|
|
225
|
+
fromState: keyof CustomerCreditBalances | null;
|
|
226
|
+
toState: keyof CustomerCreditBalances | null;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
}[];
|
|
229
|
+
page: number;
|
|
230
|
+
hasNextPage: boolean;
|
|
231
|
+
};
|
|
232
|
+
type GetCustomerCreditAccountRequest = {
|
|
233
|
+
customerId: string;
|
|
234
|
+
page?: number;
|
|
235
|
+
};
|
|
236
|
+
type CustomerCreditAccountResponse = {
|
|
237
|
+
summary: MyCustomerCreditsResponse;
|
|
238
|
+
history: MyCustomerCreditHistoryResponse;
|
|
239
|
+
};
|
|
240
|
+
declare function parseCustomerCreditAccount(value: unknown): CustomerCreditAccountResponse;
|
|
241
|
+
declare function parseCustomerCreditGrant(value: unknown): CustomerCreditGrant;
|
|
242
|
+
declare function parseRevokeCustomerCredit(value: unknown): RevokeCustomerCreditResponse;
|
|
243
|
+
declare function parseMyCustomerCredits(value: unknown): MyCustomerCreditsResponse;
|
|
244
|
+
declare function parseMyCustomerCreditHistory(value: unknown): MyCustomerCreditHistoryResponse;
|
|
245
|
+
|
|
246
|
+
/** Tenant-server authority. Use the same source identity after an uncertain
|
|
247
|
+
* result; commands never retry automatically. */
|
|
248
|
+
declare class CreditsApi extends BaseApi {
|
|
249
|
+
constructor(options: ServerApiOptions);
|
|
250
|
+
grant(input: GrantCustomerCreditRequest): Promise<CustomerCreditGrant>;
|
|
251
|
+
getGrant(input: GetCustomerCreditGrantRequest): Promise<CustomerCreditGrant>;
|
|
252
|
+
getAccount(input: GetCustomerCreditAccountRequest): Promise<CustomerCreditAccountResponse>;
|
|
253
|
+
revoke(input: RevokeCustomerCreditRequest): Promise<RevokeCustomerCreditResponse>;
|
|
254
|
+
}
|
|
255
|
+
|
|
160
256
|
interface CustomerScopedApiOptions {
|
|
161
257
|
publishableKey?: string;
|
|
162
258
|
secretKey?: string;
|
|
@@ -190,6 +286,12 @@ declare class RawCustomerScopedApi {
|
|
|
190
286
|
protected request<T>(endpoint: string, options: CustomerScopedRequestOptions): Promise<T>;
|
|
191
287
|
}
|
|
192
288
|
|
|
289
|
+
/** Customer JWT + publishable key; no customer/tenant selector is accepted. */
|
|
290
|
+
declare class CustomerCreditsApi extends CustomerScopedApi {
|
|
291
|
+
mine(params?: MyCustomerCreditsRequest): Promise<MyCustomerCreditsResponse>;
|
|
292
|
+
history(params?: MyCustomerCreditHistoryRequest): Promise<MyCustomerCreditHistoryResponse>;
|
|
293
|
+
}
|
|
294
|
+
|
|
193
295
|
type RawCommunityPost = CollectionType<'posts'>;
|
|
194
296
|
type RawCommunityComment = CollectionType<'comments'>;
|
|
195
297
|
type RawCommunityReaction = CollectionType<'reactions'>;
|
|
@@ -655,7 +757,7 @@ type PublicCartItem = {
|
|
|
655
757
|
estimatedLineTotalMinor: number;
|
|
656
758
|
requiresShipping: boolean;
|
|
657
759
|
};
|
|
658
|
-
type
|
|
760
|
+
type PublicCartBase = {
|
|
659
761
|
id: string;
|
|
660
762
|
status: 'active' | 'completed' | 'abandoned';
|
|
661
763
|
revision: number;
|
|
@@ -671,6 +773,18 @@ type PublicCart = {
|
|
|
671
773
|
createdAt: string;
|
|
672
774
|
updatedAt: string;
|
|
673
775
|
};
|
|
776
|
+
type PublicCartPickupResponse = PublicCartBase & {
|
|
777
|
+
deliveryMethod: 'shipping' | 'pickup';
|
|
778
|
+
shippingMinor: number;
|
|
779
|
+
totalMinor: number;
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* Released response or the complete ADR 0125 cutover response; no fields are
|
|
783
|
+
* synthesized. Narrow with `'deliveryMethod' in value` to read the new fields.
|
|
784
|
+
*/
|
|
785
|
+
type PublicCart = PublicCartBase | {
|
|
786
|
+
[K in keyof PublicCartPickupResponse]: PublicCartPickupResponse[K];
|
|
787
|
+
};
|
|
674
788
|
type CartMutationResult = {
|
|
675
789
|
cart: PublicCart;
|
|
676
790
|
warnings: CartWarning[];
|
|
@@ -752,7 +866,7 @@ type PublicOrderAmounts = {
|
|
|
752
866
|
refundedMinor: number;
|
|
753
867
|
currentTotalMinor: number;
|
|
754
868
|
};
|
|
755
|
-
type
|
|
869
|
+
type PublicOrderBase = {
|
|
756
870
|
id: string;
|
|
757
871
|
orderNumber: string;
|
|
758
872
|
amounts: PublicOrderAmounts;
|
|
@@ -783,6 +897,22 @@ type PublicOrder = {
|
|
|
783
897
|
createdAt: string;
|
|
784
898
|
updatedAt: string;
|
|
785
899
|
};
|
|
900
|
+
type PublicOrderPickupResponse = PublicOrderBase & {
|
|
901
|
+
deliveryMethod: 'shipping' | 'pickup';
|
|
902
|
+
pickup: {
|
|
903
|
+
status: 'pending' | 'ready_for_pickup' | 'picked_up' | 'canceled';
|
|
904
|
+
readyAt: string | null;
|
|
905
|
+
pickedUpAt: string | null;
|
|
906
|
+
} | null;
|
|
907
|
+
source: 'web' | 'app' | 'manual' | 'api' | 'import' | 'in_person';
|
|
908
|
+
};
|
|
909
|
+
/**
|
|
910
|
+
* Released response or the complete ADR 0125 cutover response; no fields are
|
|
911
|
+
* synthesized. Narrow with `'deliveryMethod' in value` to read the new fields.
|
|
912
|
+
*/
|
|
913
|
+
type PublicOrder = PublicOrderBase | {
|
|
914
|
+
[K in keyof PublicOrderPickupResponse]: PublicOrderPickupResponse[K];
|
|
915
|
+
};
|
|
786
916
|
type ReturnReason = 'change_of_mind' | 'defective' | 'wrong_delivery' | 'damaged' | 'size_too_large' | 'size_too_small' | 'color' | 'style' | 'not_as_described' | 'wrong_item' | 'unknown' | 'other';
|
|
787
917
|
type ReturnRejectionReason = 'window_expired' | 'used_or_damaged' | 'non_returnable' | 'other';
|
|
788
918
|
type ReturnCancellationReasonCode = 'items_not_received' | 'customer_withdrew' | 'merchant_decision' | 'other';
|
|
@@ -855,7 +985,30 @@ type CancelOrderAlreadyCanceledRefundPendingResponse = CancelOrderResponseBase &
|
|
|
855
985
|
cancelCommitted: false;
|
|
856
986
|
alreadyCanceled: true;
|
|
857
987
|
};
|
|
858
|
-
|
|
988
|
+
/**
|
|
989
|
+
* Durable outcome of a Console-owned refund for a registered managed Toss
|
|
990
|
+
* capture (ADR 0073). Mutation retries read or resume the same refund; they
|
|
991
|
+
* never authorize a storefront/BFF provider refund.
|
|
992
|
+
*/
|
|
993
|
+
type ManagedCancelRefundOutcome = 'completed' | 'convergence_pending' | 'operator_required';
|
|
994
|
+
type CancelOrderManagedRefundResponseFields = {
|
|
995
|
+
transactionId: string;
|
|
996
|
+
refundedAmount: number;
|
|
997
|
+
providerRefunded: boolean;
|
|
998
|
+
managedRefund: {
|
|
999
|
+
outcome: ManagedCancelRefundOutcome;
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
type CancelOrderManagedCommittedResponse = CancelOrderResponseBase & CancelOrderManagedRefundResponseFields & {
|
|
1003
|
+
status: 'canceled';
|
|
1004
|
+
cancelCommitted: true;
|
|
1005
|
+
};
|
|
1006
|
+
type CancelOrderManagedAlreadyCanceledResponse = CancelOrderResponseBase & CancelOrderManagedRefundResponseFields & {
|
|
1007
|
+
status: 'canceled';
|
|
1008
|
+
cancelCommitted: false;
|
|
1009
|
+
alreadyCanceled: true;
|
|
1010
|
+
};
|
|
1011
|
+
type CancelOrderResponse = CancelOrderCommittedResponse | CancelOrderAlreadyCanceledResponse | CancelOrderAlreadyCanceledRefundPendingResponse | CancelOrderManagedCommittedResponse | CancelOrderManagedAlreadyCanceledResponse;
|
|
859
1012
|
type CancelOrderParams = {
|
|
860
1013
|
orderNumber: string;
|
|
861
1014
|
reasonCode?: CancelReasonCode;
|
|
@@ -913,7 +1066,10 @@ type ReturnWithRefundParams = WithIdempotencyKey<{
|
|
|
913
1066
|
returnShippingFee?: number;
|
|
914
1067
|
initialShippingRefundAmount?: number;
|
|
915
1068
|
initialShippingRefundOverrideNote?: string;
|
|
916
|
-
|
|
1069
|
+
/** Omit only for an original full-credit Order (frozen provider_payable=0).
|
|
1070
|
+
* Mixed Orders still require capture identity for a credit-only remainder.
|
|
1071
|
+
* Explicit blank values are invalid. Full-credit Orders reject either ID. */
|
|
1072
|
+
pgPaymentId?: string;
|
|
917
1073
|
paymentKey?: string;
|
|
918
1074
|
/** Canonical trimmed receipt URL; the server rejects values over 2048 characters. */
|
|
919
1075
|
refundReceiptUrl?: string;
|
|
@@ -2469,7 +2625,11 @@ type CheckoutAmounts = {
|
|
|
2469
2625
|
};
|
|
2470
2626
|
type CheckoutPaymentSessionRef = {
|
|
2471
2627
|
id: string;
|
|
2472
|
-
|
|
2628
|
+
/**
|
|
2629
|
+
* Closed managed-provider vocabulary. `'stripe'` is accepted ahead of the
|
|
2630
|
+
* server and is not emitted until Stripe becomes available.
|
|
2631
|
+
*/
|
|
2632
|
+
provider: 'toss' | 'portone' | 'stripe';
|
|
2473
2633
|
providerStatus: 'requires_payment_method' | 'requires_action' | 'requires_confirmation' | 'initializing' | 'processing' | 'authorized' | 'canceling' | 'unknown' | 'captured' | 'failed' | 'canceled';
|
|
2474
2634
|
};
|
|
2475
2635
|
type OpenCheckoutPaymentState = {
|
|
@@ -2478,7 +2638,14 @@ type OpenCheckoutPaymentState = {
|
|
|
2478
2638
|
type SpentCheckoutPaymentState = {
|
|
2479
2639
|
activePaymentSession: null;
|
|
2480
2640
|
};
|
|
2641
|
+
type CheckoutFunding = {
|
|
2642
|
+
creditAmount: number;
|
|
2643
|
+
providerPayableAmount: number;
|
|
2644
|
+
};
|
|
2481
2645
|
type PublicCheckoutBase = {
|
|
2646
|
+
/** Frozen purchase split. Absence means legacy/unknown server support,
|
|
2647
|
+
* never creditAmount=0. Refunds do not rewrite these original amounts. */
|
|
2648
|
+
funding?: CheckoutFunding;
|
|
2482
2649
|
id: string;
|
|
2483
2650
|
amounts: CheckoutAmounts;
|
|
2484
2651
|
items: PublicCheckoutItem[];
|
|
@@ -2494,7 +2661,14 @@ type CheckoutOrderReference = {
|
|
|
2494
2661
|
orderNumber: string;
|
|
2495
2662
|
};
|
|
2496
2663
|
type CheckoutAbandonedReason = 'expired' | 'customer' | 'operator';
|
|
2497
|
-
|
|
2664
|
+
/**
|
|
2665
|
+
* Released response or the complete ADR 0125 cutover response; no fields are
|
|
2666
|
+
* synthesized. Narrow with `'deliveryMethod' in value` to read the new fields.
|
|
2667
|
+
*/
|
|
2668
|
+
type PublicCheckout = (PublicCheckoutBase | (PublicCheckoutBase & {
|
|
2669
|
+
deliveryMethod: 'shipping' | 'pickup';
|
|
2670
|
+
source: 'web' | 'in_person';
|
|
2671
|
+
})) & ({
|
|
2498
2672
|
status: 'open';
|
|
2499
2673
|
paymentState: OpenCheckoutPaymentState;
|
|
2500
2674
|
order: null;
|
|
@@ -2540,6 +2714,8 @@ type RetrieveServerCheckoutParams = {
|
|
|
2540
2714
|
checkoutId: string;
|
|
2541
2715
|
};
|
|
2542
2716
|
type CreateCheckoutParams = {
|
|
2717
|
+
/** Exact positive integer KRW request. Never clamped or silently retried without credit. */
|
|
2718
|
+
creditAmount?: number;
|
|
2543
2719
|
cartToken: string;
|
|
2544
2720
|
customer: CustomerSnapshot;
|
|
2545
2721
|
shippingAddress?: CheckoutShippingAddress;
|
|
@@ -2581,6 +2757,8 @@ declare class CheckoutApi extends CustomerScopedApi {
|
|
|
2581
2757
|
private serverCheckout;
|
|
2582
2758
|
private createResult;
|
|
2583
2759
|
private createServerResult;
|
|
2760
|
+
private assertCreditInput;
|
|
2761
|
+
private assertRequestedCredit;
|
|
2584
2762
|
create(params: CreateCheckoutParams): Promise<CreateCheckoutResult>;
|
|
2585
2763
|
createServer(params: CreateServerCheckoutParams): Promise<CreateServerCheckoutResult>;
|
|
2586
2764
|
retrieve(params: RetrieveCheckoutParams): Promise<PublicCheckout>;
|
|
@@ -2786,6 +2964,18 @@ type PortOneSdkPaymentNextAction = {
|
|
|
2786
2964
|
payMethod: PortOneStandardPaymentMethod;
|
|
2787
2965
|
redirectUrl: string;
|
|
2788
2966
|
};
|
|
2967
|
+
/**
|
|
2968
|
+
* Accept-only Stripe Payment Element action. Not exported from a package entry
|
|
2969
|
+
* until a Stripe PaymentSession method exists; the parser validates it so a
|
|
2970
|
+
* provider mismatch can report the actual provider.
|
|
2971
|
+
*/
|
|
2972
|
+
type StripePaymentNextAction = {
|
|
2973
|
+
type: 'stripe_payment_element';
|
|
2974
|
+
/** PaymentIntent client secret for Stripe.js; never capture evidence. */
|
|
2975
|
+
clientSecret: string;
|
|
2976
|
+
publishableKey: string;
|
|
2977
|
+
returnUrl: string;
|
|
2978
|
+
};
|
|
2789
2979
|
/** Existing Toss action surface retained for source compatibility. */
|
|
2790
2980
|
type PaymentNextAction = TossPaymentNextAction;
|
|
2791
2981
|
type ManagedPaymentNextAction = TossPaymentNextAction | PortOnePaymentNextAction | PortOneSdkPaymentNextAction;
|
|
@@ -2808,7 +2998,7 @@ type PublicPaymentSessionBase = {
|
|
|
2808
2998
|
expiresAt: string | null;
|
|
2809
2999
|
sessionRole: PaymentSessionRole;
|
|
2810
3000
|
};
|
|
2811
|
-
type PublicPaymentSessionState<Action extends ManagedPaymentNextAction> = ({
|
|
3001
|
+
type PublicPaymentSessionState<Action extends ManagedPaymentNextAction | StripePaymentNextAction> = ({
|
|
2812
3002
|
providerStatus: 'requires_payment_method' | 'requires_action';
|
|
2813
3003
|
finalizationStatus: 'not_ready';
|
|
2814
3004
|
reconciliation: {
|
|
@@ -3871,7 +4061,13 @@ type MembershipStatus = 'incomplete' | 'trialing' | 'active' | 'past_due' | 'can
|
|
|
3871
4061
|
* A paid subscription prepares an immutable first charge. The tenant completes
|
|
3872
4062
|
* that PSP payment with `firstCharge.idempotencyKey` and posts the existing
|
|
3873
4063
|
* signed charge result before membership activation. Trial starts activate
|
|
3874
|
-
* immediately and do not include a first charge.
|
|
4064
|
+
* immediately and do not include a first charge. Trial receipt is once per
|
|
4065
|
+
* tenant/customer/plan, including retained started legacy rows with no snapshot.
|
|
4066
|
+
* Prior recipients receive paid preparation: the tenant must display its Money
|
|
4067
|
+
* and periodStart and obtain consent before PSP execution. Existing payload/live
|
|
4068
|
+
* duplicate checks run first. Unfinished trial replays that pass those checks
|
|
4069
|
+
* conflict without writes once another intent has received the trial; completed
|
|
4070
|
+
* trial replays retain their result and snapshots never change.
|
|
3875
4071
|
*/
|
|
3876
4072
|
type SubscribeMembershipParams = {
|
|
3877
4073
|
planId: string;
|
|
@@ -3902,6 +4098,16 @@ type SubscribeMembershipResponse = {
|
|
|
3902
4098
|
status: 'incomplete';
|
|
3903
4099
|
firstCharge: PreparedFirstCharge;
|
|
3904
4100
|
};
|
|
4101
|
+
/** Ending an unprepared intent never cancels an existing membership. */
|
|
4102
|
+
type EndSubscribeIntentParams = {
|
|
4103
|
+
customerId: string;
|
|
4104
|
+
subscribeIntentKey: string;
|
|
4105
|
+
};
|
|
4106
|
+
type EndSubscribeIntentResponse = {
|
|
4107
|
+
status: 'ended';
|
|
4108
|
+
} | {
|
|
4109
|
+
status: 'existing';
|
|
4110
|
+
};
|
|
3905
4111
|
/**
|
|
3906
4112
|
* Parameters for cancelling a membership.
|
|
3907
4113
|
* Default (omit `immediate` or pass `false`) sets `cancelAtPeriodEnd`; benefits
|
|
@@ -4113,6 +4319,20 @@ interface ApiQueryOptions {
|
|
|
4113
4319
|
fallbackLocale?: FallbackLocaleOption;
|
|
4114
4320
|
}
|
|
4115
4321
|
type ApiDeleteOptions = Pick<ApiQueryOptions, 'trash'>;
|
|
4322
|
+
/**
|
|
4323
|
+
* Options for collection writes (`create`, `update`, `updateMany`).
|
|
4324
|
+
* `locale` selects the content locale the localized fields are written in and
|
|
4325
|
+
* is sent as the `locale` query parameter. It must be enabled for the tenant;
|
|
4326
|
+
* when omitted the request is unchanged and the server writes the platform
|
|
4327
|
+
* default locale (`en`), which a tenant without `en` enabled rejects with
|
|
4328
|
+
* `400` reason `content_locale_not_enabled`.
|
|
4329
|
+
*/
|
|
4330
|
+
type ApiWriteOptions = Pick<ApiQueryOptions, 'locale'>;
|
|
4331
|
+
/** Single-document write options; `file` switches to a multipart upload. */
|
|
4332
|
+
type ApiDocumentWriteOptions = ApiWriteOptions & {
|
|
4333
|
+
file?: File | Blob;
|
|
4334
|
+
filename?: string;
|
|
4335
|
+
};
|
|
4116
4336
|
type PublicReadQueryOptions = Omit<ApiQueryOptions, 'depth' | 'joins' | 'populate'> & {
|
|
4117
4337
|
/**
|
|
4118
4338
|
* Publishable collection reads stay unpopulated. Use shaped commerce/community
|
|
@@ -4146,15 +4366,9 @@ interface RootQueryLookup<T extends Collection, Options extends ApiQueryOptions
|
|
|
4146
4366
|
}
|
|
4147
4367
|
type RootReadOnlyQueryBuilder<T extends PublicCollection> = RootQueryLookup<T, PublicReadQueryOptions>;
|
|
4148
4368
|
interface RootServerQueryBuilder<T extends ServerCollection> extends RootQueryLookup<T> {
|
|
4149
|
-
create(data: Partial<CollectionType<T>>, options?:
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
}): Promise<PayloadMutationResponse<CollectionType<T>>>;
|
|
4153
|
-
update(id: string, data: Partial<CollectionType<T>>, options?: {
|
|
4154
|
-
file?: File | Blob;
|
|
4155
|
-
filename?: string;
|
|
4156
|
-
}): Promise<PayloadMutationResponse<CollectionType<T>>>;
|
|
4157
|
-
updateMany(where: ApiQueryOptions['where'], data: Partial<CollectionType<T>>): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
4369
|
+
create(data: Partial<CollectionType<T>>, options?: ApiDocumentWriteOptions): Promise<PayloadMutationResponse<CollectionType<T>>>;
|
|
4370
|
+
update(id: string, data: Partial<CollectionType<T>>, options?: ApiDocumentWriteOptions): Promise<PayloadMutationResponse<CollectionType<T>>>;
|
|
4371
|
+
updateMany(where: ApiQueryOptions['where'], data: Partial<CollectionType<T>>, options?: ApiWriteOptions): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
4158
4372
|
remove(id: string, options?: ApiDeleteOptions): Promise<CollectionType<T>>;
|
|
4159
4373
|
removeMany(where: ApiQueryOptions['where']): Promise<PayloadFindResponse<CollectionType<T>>>;
|
|
4160
4374
|
}
|
|
@@ -4165,6 +4379,7 @@ interface RootServerCollectionClient {
|
|
|
4165
4379
|
from<T extends ServerCollection>(collection: T): RootServerQueryBuilder<T>;
|
|
4166
4380
|
}
|
|
4167
4381
|
interface RootClient {
|
|
4382
|
+
credits: Pick<CustomerCreditsApi, 'mine' | 'history'>;
|
|
4168
4383
|
benefitVouchers: {
|
|
4169
4384
|
listMine(params?: ListMyBenefitVouchersRequest): Promise<ListMyBenefitVouchersResponse>;
|
|
4170
4385
|
};
|
|
@@ -4192,6 +4407,7 @@ interface RootServerClient {
|
|
|
4192
4407
|
tenant: TenantIntrospectionClient;
|
|
4193
4408
|
memberships: {
|
|
4194
4409
|
subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
|
|
4410
|
+
endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
|
|
4195
4411
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
4196
4412
|
billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
|
|
4197
4413
|
};
|
|
@@ -4200,6 +4416,7 @@ interface RootServerClient {
|
|
|
4200
4416
|
installationCredentials: InstallationCredentialsApi;
|
|
4201
4417
|
externalCustomerLinks: ExternalCustomerLinksApi;
|
|
4202
4418
|
benefitVouchers: BenefitVouchersApi;
|
|
4419
|
+
credits: CreditsApi;
|
|
4203
4420
|
/** Set on {@link createServerClient} return values; optional for structural mocks. */
|
|
4204
4421
|
events?: ServerEventsClient;
|
|
4205
4422
|
/** Quota-aware VOD admission. */
|
|
@@ -4230,4 +4447,4 @@ type DeepPartial<T> = {
|
|
|
4230
4447
|
};
|
|
4231
4448
|
type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
|
|
4232
4449
|
|
|
4233
|
-
export { type ConfirmCustomPaymentSessionOptions as $, type AddItemParams as A, type BillingCustodyParams as B, type CancelMembershipParams as C, type CheckoutAmounts as D, ExternalEffectClaimsApi as E, CheckoutApi as F, type CheckoutApiOptions as G, type CheckoutListItem as H, InstallationCredentialsApi as I, type CheckoutOrderReference as J, type CheckoutPaymentSessionRef as K, type CheckoutQueryParams as L, MarketDiscovery as M, type CheckoutQueryResult as N, type CheckoutShippingAddress as O, type CheckoutStatus as P, type ClaimExternalEffectParams as Q, RawBaseApi as R, type ServerApiOptions as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, VideoPlaybackClient as V, type ClearCartParams as W, type CollectionCustomFieldDefinition as X, type CollectionCustomFields as Y, type CollectionFieldSchema as Z, type CollectionSchemaResponse as _, ServerCommerceClient as a, type FindPortOnePaymentResult as a$, type ConfirmCustomPaymentSessionParams as a0, type ConfirmCustomPaymentSessionResponse as a1, type ConfirmTossPaymentSessionParams as a2, type ConnectExternalCustomerLinkParams as a3, type CreateCartParams as a4, type CreateCartResult as a5, type CreateCustomPaymentSessionParams as a6, type CreateInstallationCredentialParams as a7, type CreatePaymentSessionParams as a8, type CreatePortOnePaymentSessionParams as a9, type EventMyRegistrationsResponse as aA, type EventRegistrationAnswerInput as aB, type EventRegistrationAttendeeInput as aC, type EventRegistrationPublic as aD, type EventRegistrationRegisterParams as aE, type EventRegistrationRegisterResponse as aF, type EventsCalendarItem as aG, EventsClient as aH, type EventsClientOptions as aI, type EventsDateParam as aJ, type EventsExternalSource as aK, type EventsLocation as aL, type EventsOccurrenceLocation as aM, type EventsRangeEvent as aN, type EventsRangeOccurrence as aO, type EventsRangeParams as aP, type EventsRangeResponse as aQ, type EventsTaxonomyItem as aR, type ExternalCustomerLink as aS, type ExternalCustomerLinkListResponse as aT, type ExternalCustomerPreviousState as aU, type ExternalEffectClaimErrorReason as aV, type ExternalEffectClaimSnapshot as aW, type ExternalEffectClaimState as aX, type ExternalEffectLeaseParams as aY, type ExternalEffectLocator as aZ, type FindPortOnePaymentParams as a_, type CreateServerCheckoutParams as aa, type CreateServerCheckoutResult as ab, type CreateServerPaymentSessionParams as ac, type CreateServerPortOnePaymentSessionParams as ad, type CustomPaymentSession as ae, type CustomPaymentSessionProof as af, type CustomerBenefitVoucher as ag, type CustomerGroupApiOptions as ah, type CustomerGroupManualSource as ai, type CustomerGroupMember as aj, type CustomerGroupMemberCommandResponse as ak, type CustomerGroupMemberSource as al, type CustomerGroupMembershipSource as am, type CustomerGroupMembershipState as an, type CustomerMembershipView as ao, type CustomerSnapshot as ap, type DisposeInstallationCredentialParams as aq, type EventAdmissionAvailabilityParams as ar, type EventAdmissionAvailabilityResponse as as, type EventAdmissionAvailabilityType as at, type EventAdmissionPricePresentment as au, type EventGuestCancelParams as av, type EventGuestRegistration as aw, type EventGuestRegistrationResponse as ax, type EventMyRegistration as ay, type EventMyRegistrationsParams as az, type SubscribeMembershipParams as b, type ReplaceInstallationCredentialParams as b$, type GetBenefitVoucherRequest as b0, type GetExternalCustomerLinkParams as b1, type GetExternalEffectClaimParams as b2, type GrantCustomerGroupMemberParams as b3, type InstallationCredentialIdentity as b4, type InstallationCredentialSnapshot as b5, type IssueBenefitVoucherRequest as b6, type IssueBenefitVoucherResponse as b7, type ListBenefitVouchersRequest as b8, type ListBenefitVouchersResponse as b9, type ProductGraphRevisionResponse as bA, type ProductUpsertInput as bB, type ProductUpsertParams as bC, type ProductUpsertResponse as bD, type ProductUpsertVariantInput as bE, type PublicAttribute as bF, type PublicCaptureEvidence as bG, type PublicCart as bH, type PublicCartItem as bI, type PublicCartItemAdmission as bJ, type PublicCartMarket as bK, type PublicCartReference as bL, type PublicCheckout as bM, type PublicCheckoutItem as bN, type PublicMediaAsset as bO, type PublicMediaSize as bP, type PublicOrder as bQ, type PublicOrderAmounts as bR, type PublicOrderItem as bS, type PublicOrderReference as bT, type PublicPaymentSession as bU, type ReconcilePortOnePaymentParams as bV, type ReconcilePortOnePaymentResult as bW, type ReconciliationRequired as bX, type RecordExternalEffectRecoveryParams as bY, type RedeemBenefitVoucherRequest as bZ, type RemoveItemParams as b_, type ListCustomerGroupMembersParams as ba, type ListCustomerGroupMembersResponse as bb, type ListExternalCustomerLinksParams as bc, type ListMyBenefitVouchersRequest as bd, type ListMyBenefitVouchersResponse as be, type MembershipStatus as bf, ModerationApi as bg, type Money as bh, type MutateBenefitVoucherResponse as bi, type MutateExternalCustomerLinkParams as bj, type OpenCheckoutPaymentState as bk, type PaymentFailureReason as bl, type PaymentNextAction as bm, type PaymentProviderStatus as bn, type PaymentReconciliationReason as bo, PaymentSessionApi as bp, type PaymentSessionApiOptions as bq, type PaymentSessionRole as br, type PortOneHostedPaymentMethod as bs, type PortOnePaymentCurrentState as bt, type PortOnePaymentNextAction as bu, PortOnePaymentReconciliationApi as bv, type PortOnePaymentSelector as bw, type PortOnePublicPaymentSession as bx, type PortOneReconciliationDisposition as by, type ProductGraphRevisionParams as bz, type SubscribeMembershipResponse as c, type RootClient as c$, type ReportExternalEffectParams as c0, type RetrieveCartParams as c1, type RetrieveCheckoutParams as c2, type RetrieveCustomPaymentSessionParams as c3, type RetrieveServerCheckoutParams as c4, type RetrieveServerPaymentSessionParams as c5, type RetrievedCustomPaymentSession as c6, type RevokeCustomerGroupMemberParams as c7, type RootServerClient as c8, type ServerAddItemParams as c9, type VariantPricesUpdateInput as cA, type VariantPricesUpdateParams as cB, type VariantPricesUpdateResponse as cC, type VoidBenefitVoucherRequest as cD, getExternalEffectClaimErrorReason as cE, invalidBenefitVoucherResponse as cF, parseBenefitVoucher as cG, parseBenefitVoucherList as cH, CustomerScopedApi as cI, CommerceClient as cJ, ContentClient as cK, CustomerNamespace as cL, type ClientConfig as cM, type ApiQueryOptions as cN, type CancelBrowserPaymentSessionParams as cO, type CartMergeParams as cP, type ClientMetadata as cQ, type ContentClientOptions as cR, type CreateCheckoutParams as cS, type CreateCheckoutResult as cT, type DebugConfig as cU, type DeepPartial as cV, type ExtractArrayType as cW, type PayloadFindResponse as cX, type PayloadMutationResponse as cY, type RetrieveBrowserPaymentSessionParams as cZ, type RetryConfig as c_, type ServerCartMergeParams as ca, type ServerCartMineParams as cb, type ServerCheckout as cc, type ServerUpdateItemParams as cd, type ShippingLine as ce, type SpentCheckoutPaymentState as cf, TENANT_CONTEXT_PATH as cg, type TenantContextInput as ch, type TenantContextResponse as ci, type TenantCustomFieldType as cj, type TenantFeatureProgressEvidenceValue as ck, type TenantFeatureProgressFeature as cl, type TenantFeatureProgressGroup as cm, type TenantFeatureProgressInput as cn, type TenantFeatureProgressItem as co, type TenantFeatureProgressItemState as cp, type TenantFeatureProgressResponse as cq, type TenantFeatureProgressSeverity as cr, type TenantFeatureProgressStatus as cs, type TenantFieldConfigState as ct, TenantIntrospectionApi as cu, type TenantIntrospectionApiOptions as cv, type UpdateCartAttributesParams as cw, type UpdateDiscountCodesParams as cx, type UpdateItemParams as cy, type VariantInput as cz, type CancelMembershipResponse as d, type CustomerAuthOptions as d$, type RootCollectionClient as d0, type RootReadOnlyQueryBuilder as d1, type Sort as d2, type StorefrontContentListOptions as d3, type StorefrontContentReference as d4, type StorefrontGalleryItem as d5, type StorefrontGalleryItemsListOptions as d6, type StorefrontGalleryItemsSort as d7, type StorefrontLink as d8, type StorefrontLinksListOptions as d9, type RootClientWithEvents as dA, type BillingCustodyWireRequest as dB, type BulkImportFulfillmentsParams as dC, type BulkImportFulfillmentsResponse as dD, type CalculateShippingParams as dE, type CalculateShippingResult as dF, type CancelOrderParams as dG, type CancelOrderResponse as dH, type CancelReasonCode as dI, type CartDiscountCode as dJ, type CartWarning as dK, type CartWarningCode as dL, type Comment as dM, type CommerceClientOptions as dN, type CommunityClientOptions as dO, type CommunityComment as dP, type CommunityCommentListSort as dQ, type CommunityPost as dR, type CommunityPostCategory as dS, type CommunityPostListSort as dT, type CommunityPostTag as dU, type CommunityPublicAuthorSnapshot as dV, type CommunityPublicMediaAsset as dW, type CommunityPublicReference as dX, type CompatibilityProductSelectionParamEvent as dY, type CreateFulfillmentParams as dZ, type CreateReturnParams as d_, type StorefrontLinksSort as da, type Where as db, type ApiDeleteOptions as dc, type PublicReadQueryOptions as dd, CustomerAuth as de, type CustomerProfile as df, type CustomerAuthResponse as dg, type CustomerLoginData as dh, type CustomerRegisterResponse as di, type CustomerRegisterData as dj, type CustomerRefreshResponse as dk, type UpdateProfileData as dl, type ProductListingPageParams as dm, type ProductListingPageBaseParams as dn, type ProductDetailParams as dp, type ProductDetailCatalogResult as dq, type ProductListingPageCatalogParams as dr, type ProductListingPageResult as ds, type ProductListingGroupsCatalogItem as dt, type ProductListingPageFullParams as du, type ProductListingGroupsItem as dv, BaseApi as dw, type ProductDetail as dx, type ProductDetailCatalog as dy, type StockSnapshotResponse as dz, type BillingCustodyResponse as e, type ProductListingGroupsProduct as e$, type CustomerAuthorizationUrlInput as e0, type CustomerAuthorizationUrlResult as e1, CustomerOAuth as e2, type CustomerOAuthCallbackResult as e3, type CustomerOAuthConfig as e4, type CustomerOAuthTokenSet as e5, type CustomerOrderListOptions as e6, type CustomerWithdrawalResult as e7, DiscountApi as e8, type DiscountApiOptions as e9, type ProductDetailImageMedia as eA, type ProductDetailMedia as eB, type ProductDetailOption as eC, type ProductDetailOptionValue as eD, type ProductDetailResult as eE, type ProductDetailTag as eF, type ProductDetailUnavailableReason as eG, type ProductDetailVariant as eH, type ProductDetailVariantOptionValue as eI, type ProductDetailVideo as eJ, type ProductDisplayMediaSource as eK, type ProductFallbackLocaleOption as eL, type ProductHrefGroup as eM, type ProductHrefOptions as eN, type ProductHrefProduct as eO, type ProductListingCard as eP, type ProductListingCardOptions as eQ, type ProductListingCardPriceRange as eR, type ProductListingCardRepresentativeVariant as eS, type ProductListingGroup as eT, type ProductListingGroupCatalogSummary as eU, type ProductListingGroupCatalogVariant as eV, type ProductListingGroupProjection as eW, type ProductListingGroupSummary as eX, type ProductListingGroupVariant as eY, type ProductListingGroupsCatalogProduct as eZ, type ProductListingGroupsCatalogResponse as e_, type DiscountErrorReasonCode as ea, type FeaturedImagePointerInput as eb, type GetOrderByPaymentIdParams as ec, type LegacyProductSelectionParamEvent as ed, type ListingGroupsParams as ee, MAX_CART_LINE_ADMISSIONS as ef, type ManagedPaymentNextAction as eg, type ManagedPublicPaymentSession as eh, type MarketDTO as ei, type MediaValue as ej, type NormalizedOptionSwatch as ek, type NormalizedProductSelection as el, OrderApi as em, type OrderApiOptions as en, type OrderByPaymentResult as eo, PRODUCT_PLP_FIND_OPTIONS as ep, PRODUCT_UPSERT_READONLY_FIELD_REASON as eq, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as er, type PrepareFulfillmentOrderParams as es, type PrepareFulfillmentOrderResponse as et, ProductApi as eu, type ProductApiOptions as ev, type ProductDetailBrand as ew, type ProductDetailCatalogVariant as ex, type ProductDetailCategory as ey, type ProductDetailImage as ez, CustomerGroupApi as f, type ValidateDiscountParams as f$, type ProductListingGroupsResponse as f0, type ProductListingPageFilters as f1, type ProductListingPageSort as f2, type ProductListingProductShape as f3, type ProductListingSwatch as f4, type ProductLocaleOption as f5, type ProductLocaleReadParams as f6, type ProductLocalizedText as f7, type ProductLocalizedValue as f8, type ProductMediaResolutionSource as f9, type PublicCheckoutBase as fA, type RequestOptions as fB, type ResolveCancelRefundFailedResponse as fC, type ResolveCancelRefundOutcome as fD, type ResolveCancelRefundParams as fE, type ResolveCancelRefundResponse as fF, type ResolveCancelRefundSucceededResponse as fG, type ResolveProductDisplayMediaInput as fH, type ResolveProductDisplayMediaResult as fI, type ResolveProductSelectionMediaInput as fJ, type ResolveProductSelectionMediaResult as fK, type ResolvedCatalogPrice as fL, type ReturnCancellationReasonCode as fM, type ReturnItem as fN, type ReturnReason as fO, type ReturnWithRefundItem as fP, type ReturnWithRefundParams as fQ, ShippingApi as fR, type ShippingApiOptions as fS, type StockCheckParams as fT, type StockCheckResponse as fU, type StockCheckResult as fV, type StockSnapshotItem as fW, type StockSnapshotParams as fX, type UpdateFulfillmentParams as fY, type UpdateOrderParams as fZ, type UpdateReturnParams as f_, type ProductMoneyRange as fa, type ProductOptionMatrix as fb, type ProductOptionMatrixOption as fc, type ProductOptionMatrixValue as fd, type ProductOptionMatrixVariant as fe, type ProductOptionShape as ff, type ProductOptionValueShape as fg, type ProductOptionValueSwatch as fh, type ProductOptionValueSwatchInput as fi, type ProductPriceRange as fj, type ProductSelectionAvailableSwatch as fk, type ProductSelectionAvailableValue as fl, type ProductSelectionByOptionValue as fm, ProductSelectionCodecError as fn, type ProductSelectionCodecOptions as fo, type ProductSelectionInput as fp, type ProductSelectionMediaPointer as fq, type ProductSelectionMediaSource as fr, type ProductSelectionOptionValue as fs, type ProductSelectionResolution as ft, type ProductSelectionResolutionContext as fu, type ProductSelectionUrlEmit as fv, type ProductSelectionVariant$1 as fw, type ProductUpsertFieldValidationErrorBody as fx, type ProductUpsertFieldValidationErrorReason as fy, type ProductVariantShape as fz, ExternalCustomerLinksApi as g, type ValidateDiscountResult as g0, type VideoPlaybackResponse as g1, type WithIdempotencyKey as g2, buildProductHref as g3, buildProductListingCard as g4, buildProductListingGroupProjection as g5, buildProductListingGroupsByOption as g6, buildProductOptionMatrix as g7, buildProductOptionMatrixFromDetail as g8, createProductSelectionCodec as g9, getAvailableOptionValues as ga, getProductSelectionImages as gb, getSelectedValueByOptionId as gc, getVariantAvailableForSale as gd, getVariantAvailableStock as ge, isProductUpsertFieldValidationErrorBody as gf, normalizeProductSelection as gg, normalizeProductSelectionFromMatrix as gh, normalizeSelectedValueIds as gi, parseProductSelection as gj, projectProductToListingShape as gk, resolveFeaturedImagePointer as gl, resolveProductDisplayMedia as gm, resolveProductSelection as gn, resolveProductSelectionFromMatrix as go, resolveProductSelectionMedia as gp, resolveVariantForSelection as gq, selectNext as gr, selectedSwatchMediaItemId as gs, stringifyProductSelection as gt, toShopifyPriceRangeV2 as gu, BenefitVouchersApi as h, CommunityClient as i, type BanCustomerParams as j, type CommunityBan as k, type ClientState as l, type ClientServerConfig as m, type RootServerClientWithEvents as n, BENEFIT_VOUCHER_ERROR_REASONS as o, BENEFIT_VOUCHER_VOID_REASONS as p, type BenefitVoucher as q, type BenefitVoucherErrorReason as r, type CancelServerPaymentSessionParams as s, type CaptureExternalCustomerPreviousStateParams as t, CartApi as u, type CartApiOptions as v, type CartMergeResult as w, type CartMineResult as x, type CartMutationResult as y, type CheckoutAbandonedReason as z };
|
|
4450
|
+
export { type CollectionCustomFields as $, type AddItemParams as A, type BillingCustodyParams as B, type CancelMembershipParams as C, type CartMineResult as D, type EndSubscribeIntentParams as E, type CartMutationResult as F, type CheckoutAbandonedReason as G, type CheckoutAmounts as H, InstallationCredentialsApi as I, CheckoutApi as J, type CheckoutApiOptions as K, type CheckoutListItem as L, MarketDiscovery as M, type CheckoutOrderReference as N, type CheckoutPaymentSessionRef as O, type CheckoutQueryParams as P, type CheckoutQueryResult as Q, RawBaseApi as R, type ServerApiOptions as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, VideoPlaybackClient as V, type CheckoutShippingAddress as W, type CheckoutStatus as X, type ClaimExternalEffectParams as Y, type ClearCartParams as Z, type CollectionCustomFieldDefinition as _, ServerCommerceClient as a, type ExternalEffectClaimErrorReason as a$, type CollectionFieldSchema as a0, type CollectionSchemaResponse as a1, type ConfirmCustomPaymentSessionOptions as a2, type ConfirmCustomPaymentSessionParams as a3, type ConfirmCustomPaymentSessionResponse as a4, type ConfirmTossPaymentSessionParams as a5, type ConnectExternalCustomerLinkParams as a6, type CreateCartParams as a7, type CreateCartResult as a8, type CreateCustomPaymentSessionParams as a9, type EventAdmissionPricePresentment as aA, type EventGuestCancelParams as aB, type EventGuestRegistration as aC, type EventGuestRegistrationResponse as aD, type EventMyRegistration as aE, type EventMyRegistrationsParams as aF, type EventMyRegistrationsResponse as aG, type EventRegistrationAnswerInput as aH, type EventRegistrationAttendeeInput as aI, type EventRegistrationPublic as aJ, type EventRegistrationRegisterParams as aK, type EventRegistrationRegisterResponse as aL, type EventsCalendarItem as aM, EventsClient as aN, type EventsClientOptions as aO, type EventsDateParam as aP, type EventsExternalSource as aQ, type EventsLocation as aR, type EventsOccurrenceLocation as aS, type EventsRangeEvent as aT, type EventsRangeOccurrence as aU, type EventsRangeParams as aV, type EventsRangeResponse as aW, type EventsTaxonomyItem as aX, type ExternalCustomerLink as aY, type ExternalCustomerLinkListResponse as aZ, type ExternalCustomerPreviousState as a_, type CreateInstallationCredentialParams as aa, type CreatePaymentSessionParams as ab, type CreatePortOnePaymentSessionParams as ac, type CreateServerCheckoutParams as ad, type CreateServerCheckoutResult as ae, type CreateServerPaymentSessionParams as af, type CreateServerPortOnePaymentSessionParams as ag, type CustomPaymentSession as ah, type CustomPaymentSessionProof as ai, type CustomerBenefitVoucher as aj, type CustomerCreditAccountResponse as ak, type CustomerCreditBalances as al, type CustomerCreditGrant as am, type CustomerGroupApiOptions as an, type CustomerGroupManualSource as ao, type CustomerGroupMember as ap, type CustomerGroupMemberCommandResponse as aq, type CustomerGroupMemberSource as ar, type CustomerGroupMembershipSource as as, type CustomerGroupMembershipState as at, type CustomerMembershipView as au, type CustomerSnapshot as av, type DisposeInstallationCredentialParams as aw, type EventAdmissionAvailabilityParams as ax, type EventAdmissionAvailabilityResponse as ay, type EventAdmissionAvailabilityType as az, type SubscribeMembershipParams as b, type PublicMediaAsset as b$, type ExternalEffectClaimSnapshot as b0, type ExternalEffectClaimState as b1, type ExternalEffectLeaseParams as b2, type ExternalEffectLocator as b3, type FindPortOnePaymentParams as b4, type FindPortOnePaymentResult as b5, type GetBenefitVoucherRequest as b6, type GetCustomerCreditAccountRequest as b7, type GetCustomerCreditGrantRequest as b8, type GetExternalCustomerLinkParams as b9, type PaymentProviderStatus as bA, type PaymentReconciliationReason as bB, PaymentSessionApi as bC, type PaymentSessionApiOptions as bD, type PaymentSessionRole as bE, type PortOneHostedPaymentMethod as bF, type PortOnePaymentCurrentState as bG, type PortOnePaymentNextAction as bH, PortOnePaymentReconciliationApi as bI, type PortOnePaymentSelector as bJ, type PortOnePublicPaymentSession as bK, type PortOneReconciliationDisposition as bL, type ProductGraphRevisionParams as bM, type ProductGraphRevisionResponse as bN, type ProductUpsertInput as bO, type ProductUpsertParams as bP, type ProductUpsertResponse as bQ, type ProductUpsertVariantInput as bR, type PublicAttribute as bS, type PublicCaptureEvidence as bT, type PublicCart as bU, type PublicCartItem as bV, type PublicCartItemAdmission as bW, type PublicCartMarket as bX, type PublicCartReference as bY, type PublicCheckout as bZ, type PublicCheckoutItem as b_, type GetExternalEffectClaimParams as ba, type GrantCustomerCreditRequest as bb, type GrantCustomerGroupMemberParams as bc, type InstallationCredentialIdentity as bd, type InstallationCredentialSnapshot as be, type IssueBenefitVoucherRequest as bf, type IssueBenefitVoucherResponse as bg, type ListBenefitVouchersRequest as bh, type ListBenefitVouchersResponse as bi, type ListCustomerGroupMembersParams as bj, type ListCustomerGroupMembersResponse as bk, type ListExternalCustomerLinksParams as bl, type ListMyBenefitVouchersRequest as bm, type ListMyBenefitVouchersResponse as bn, type MembershipStatus as bo, ModerationApi as bp, type Money as bq, type MutateBenefitVoucherResponse as br, type MutateExternalCustomerLinkParams as bs, type MyCustomerCreditHistoryRequest as bt, type MyCustomerCreditHistoryResponse as bu, type MyCustomerCreditsRequest as bv, type MyCustomerCreditsResponse as bw, type OpenCheckoutPaymentState as bx, type PaymentFailureReason as by, type PaymentNextAction as bz, type SubscribeMembershipResponse as c, parseRevokeCustomerCredit as c$, type PublicMediaSize as c0, type PublicOrder as c1, type PublicOrderAmounts as c2, type PublicOrderItem as c3, type PublicOrderReference as c4, type PublicPaymentSession as c5, type ReconcilePortOnePaymentParams as c6, type ReconcilePortOnePaymentResult as c7, type ReconciliationRequired as c8, type RecordExternalEffectRecoveryParams as c9, type TenantFeatureProgressFeature as cA, type TenantFeatureProgressGroup as cB, type TenantFeatureProgressInput as cC, type TenantFeatureProgressItem as cD, type TenantFeatureProgressItemState as cE, type TenantFeatureProgressResponse as cF, type TenantFeatureProgressSeverity as cG, type TenantFeatureProgressStatus as cH, type TenantFieldConfigState as cI, TenantIntrospectionApi as cJ, type TenantIntrospectionApiOptions as cK, type UpdateCartAttributesParams as cL, type UpdateDiscountCodesParams as cM, type UpdateItemParams as cN, type VariantInput as cO, type VariantPricesUpdateInput as cP, type VariantPricesUpdateParams as cQ, type VariantPricesUpdateResponse as cR, type VoidBenefitVoucherRequest as cS, getExternalEffectClaimErrorReason as cT, invalidBenefitVoucherResponse as cU, parseBenefitVoucher as cV, parseBenefitVoucherList as cW, parseCustomerCreditAccount as cX, parseCustomerCreditGrant as cY, parseMyCustomerCreditHistory as cZ, parseMyCustomerCredits as c_, type RedeemBenefitVoucherRequest as ca, type RemoveItemParams as cb, type ReplaceInstallationCredentialParams as cc, type ReportExternalEffectParams as cd, type RetrieveCartParams as ce, type RetrieveCheckoutParams as cf, type RetrieveCustomPaymentSessionParams as cg, type RetrieveServerCheckoutParams as ch, type RetrieveServerPaymentSessionParams as ci, type RetrievedCustomPaymentSession as cj, type RevokeCustomerCreditRequest as ck, type RevokeCustomerCreditResponse as cl, type RevokeCustomerGroupMemberParams as cm, type RootServerClient as cn, type ServerAddItemParams as co, type ServerCartMergeParams as cp, type ServerCartMineParams as cq, type ServerCheckout as cr, type ServerUpdateItemParams as cs, type ShippingLine as ct, type SpentCheckoutPaymentState as cu, TENANT_CONTEXT_PATH as cv, type TenantContextInput as cw, type TenantContextResponse as cx, type TenantCustomFieldType as cy, type TenantFeatureProgressEvidenceValue as cz, type EndSubscribeIntentResponse as d, type CalculateShippingParams as d$, CustomerScopedApi as d0, CustomerCreditsApi as d1, CommerceClient as d2, ContentClient as d3, CustomerNamespace as d4, type ClientConfig as d5, type ApiQueryOptions as d6, type CancelBrowserPaymentSessionParams as d7, type CartMergeParams as d8, type ClientMetadata as d9, type ApiDeleteOptions as dA, type PublicReadQueryOptions as dB, CustomerAuth as dC, type CustomerProfile as dD, type CustomerAuthResponse as dE, type CustomerLoginData as dF, type CustomerRegisterResponse as dG, type CustomerRegisterData as dH, type CustomerRefreshResponse as dI, type UpdateProfileData as dJ, type ProductListingPageParams as dK, type ProductListingPageBaseParams as dL, type ProductDetailParams as dM, type ProductDetailCatalogResult as dN, type ProductListingPageCatalogParams as dO, type ProductListingPageResult as dP, type ProductListingGroupsCatalogItem as dQ, type ProductListingPageFullParams as dR, type ProductListingGroupsItem as dS, BaseApi as dT, type ProductDetail as dU, type ProductDetailCatalog as dV, type StockSnapshotResponse as dW, type RootClientWithEvents as dX, type BillingCustodyWireRequest as dY, type BulkImportFulfillmentsParams as dZ, type BulkImportFulfillmentsResponse as d_, type ContentClientOptions as da, type CreateCheckoutParams as db, type CreateCheckoutResult as dc, type DebugConfig as dd, type DeepPartial as de, type ExtractArrayType as df, type PayloadFindResponse as dg, type PayloadMutationResponse as dh, type RetrieveBrowserPaymentSessionParams as di, type RetryConfig as dj, type RootClient as dk, type RootCollectionClient as dl, type RootReadOnlyQueryBuilder as dm, type Sort as dn, type StorefrontContentListOptions as dp, type StorefrontContentReference as dq, type StorefrontGalleryItem as dr, type StorefrontGalleryItemsListOptions as ds, type StorefrontGalleryItemsSort as dt, type StorefrontLink as du, type StorefrontLinksListOptions as dv, type StorefrontLinksSort as dw, type Where as dx, type ApiDocumentWriteOptions as dy, type ApiWriteOptions as dz, type CancelMembershipResponse as e, type ProductDetailImageMedia as e$, type CalculateShippingResult as e0, type CancelOrderManagedAlreadyCanceledResponse as e1, type CancelOrderManagedCommittedResponse as e2, type CancelOrderParams as e3, type CancelOrderResponse as e4, type CancelReasonCode as e5, type CartDiscountCode as e6, type CartWarning as e7, type CartWarningCode as e8, type CheckoutFunding as e9, type DiscountErrorReasonCode as eA, type FeaturedImagePointerInput as eB, type GetOrderByPaymentIdParams as eC, type LegacyProductSelectionParamEvent as eD, type ListingGroupsParams as eE, MAX_CART_LINE_ADMISSIONS as eF, type ManagedCancelRefundOutcome as eG, type ManagedPaymentNextAction as eH, type ManagedPublicPaymentSession as eI, type MarketDTO as eJ, type MediaValue as eK, type NormalizedOptionSwatch as eL, type NormalizedProductSelection as eM, OrderApi as eN, type OrderApiOptions as eO, type OrderByPaymentResult as eP, PRODUCT_PLP_FIND_OPTIONS as eQ, PRODUCT_UPSERT_READONLY_FIELD_REASON as eR, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as eS, type PrepareFulfillmentOrderParams as eT, type PrepareFulfillmentOrderResponse as eU, ProductApi as eV, type ProductApiOptions as eW, type ProductDetailBrand as eX, type ProductDetailCatalogVariant as eY, type ProductDetailCategory as eZ, type ProductDetailImage as e_, type Comment as ea, type CommerceClientOptions as eb, type CommunityClientOptions as ec, type CommunityComment as ed, type CommunityCommentListSort as ee, type CommunityPost as ef, type CommunityPostCategory as eg, type CommunityPostListSort as eh, type CommunityPostTag as ei, type CommunityPublicAuthorSnapshot as ej, type CommunityPublicMediaAsset as ek, type CommunityPublicReference as el, type CompatibilityProductSelectionParamEvent as em, type CreateFulfillmentParams as en, type CreateReturnParams as eo, type CustomerAuthOptions as ep, type CustomerAuthorizationUrlInput as eq, type CustomerAuthorizationUrlResult as er, CustomerOAuth as es, type CustomerOAuthCallbackResult as et, type CustomerOAuthConfig as eu, type CustomerOAuthTokenSet as ev, type CustomerOrderListOptions as ew, type CustomerWithdrawalResult as ex, DiscountApi as ey, type DiscountApiOptions as ez, type BillingCustodyResponse as f, type PublicCheckoutBase as f$, type ProductDetailMedia as f0, type ProductDetailOption as f1, type ProductDetailOptionValue as f2, type ProductDetailResult as f3, type ProductDetailTag as f4, type ProductDetailUnavailableReason as f5, type ProductDetailVariant as f6, type ProductDetailVariantOptionValue as f7, type ProductDetailVideo as f8, type ProductDisplayMediaSource as f9, type ProductMediaResolutionSource as fA, type ProductMoneyRange as fB, type ProductOptionMatrix as fC, type ProductOptionMatrixOption as fD, type ProductOptionMatrixValue as fE, type ProductOptionMatrixVariant as fF, type ProductOptionShape as fG, type ProductOptionValueShape as fH, type ProductOptionValueSwatch as fI, type ProductOptionValueSwatchInput as fJ, type ProductPriceRange as fK, type ProductSelectionAvailableSwatch as fL, type ProductSelectionAvailableValue as fM, type ProductSelectionByOptionValue as fN, ProductSelectionCodecError as fO, type ProductSelectionCodecOptions as fP, type ProductSelectionInput as fQ, type ProductSelectionMediaPointer as fR, type ProductSelectionMediaSource as fS, type ProductSelectionOptionValue as fT, type ProductSelectionResolution as fU, type ProductSelectionResolutionContext as fV, type ProductSelectionUrlEmit as fW, type ProductSelectionVariant$1 as fX, type ProductUpsertFieldValidationErrorBody as fY, type ProductUpsertFieldValidationErrorReason as fZ, type ProductVariantShape as f_, type ProductFallbackLocaleOption as fa, type ProductHrefGroup as fb, type ProductHrefOptions as fc, type ProductHrefProduct as fd, type ProductListingCard as fe, type ProductListingCardOptions as ff, type ProductListingCardPriceRange as fg, type ProductListingCardRepresentativeVariant as fh, type ProductListingGroup as fi, type ProductListingGroupCatalogSummary as fj, type ProductListingGroupCatalogVariant as fk, type ProductListingGroupProjection as fl, type ProductListingGroupSummary as fm, type ProductListingGroupVariant as fn, type ProductListingGroupsCatalogProduct as fo, type ProductListingGroupsCatalogResponse as fp, type ProductListingGroupsProduct as fq, type ProductListingGroupsResponse as fr, type ProductListingPageFilters as fs, type ProductListingPageSort as ft, type ProductListingProductShape as fu, type ProductListingSwatch as fv, type ProductLocaleOption as fw, type ProductLocaleReadParams as fx, type ProductLocalizedText as fy, type ProductLocalizedValue as fz, CustomerGroupApi as g, type RequestOptions as g0, type ResolveCancelRefundFailedResponse as g1, type ResolveCancelRefundOutcome as g2, type ResolveCancelRefundParams as g3, type ResolveCancelRefundResponse as g4, type ResolveCancelRefundSucceededResponse as g5, type ResolveProductDisplayMediaInput as g6, type ResolveProductDisplayMediaResult as g7, type ResolveProductSelectionMediaInput as g8, type ResolveProductSelectionMediaResult as g9, createProductSelectionCodec as gA, getAvailableOptionValues as gB, getProductSelectionImages as gC, getSelectedValueByOptionId as gD, getVariantAvailableForSale as gE, getVariantAvailableStock as gF, isProductUpsertFieldValidationErrorBody as gG, normalizeProductSelection as gH, normalizeProductSelectionFromMatrix as gI, normalizeSelectedValueIds as gJ, parseProductSelection as gK, projectProductToListingShape as gL, resolveFeaturedImagePointer as gM, resolveProductDisplayMedia as gN, resolveProductSelection as gO, resolveProductSelectionFromMatrix as gP, resolveProductSelectionMedia as gQ, resolveVariantForSelection as gR, selectNext as gS, selectedSwatchMediaItemId as gT, stringifyProductSelection as gU, toShopifyPriceRangeV2 as gV, type ResolvedCatalogPrice as ga, type ReturnCancellationReasonCode as gb, type ReturnItem as gc, type ReturnReason as gd, type ReturnWithRefundItem as ge, type ReturnWithRefundParams as gf, ShippingApi as gg, type ShippingApiOptions as gh, type StockCheckParams as gi, type StockCheckResponse as gj, type StockCheckResult as gk, type StockSnapshotItem as gl, type StockSnapshotParams as gm, type UpdateFulfillmentParams as gn, type UpdateOrderParams as go, type UpdateReturnParams as gp, type ValidateDiscountParams as gq, type ValidateDiscountResult as gr, type VideoPlaybackResponse as gs, type WithIdempotencyKey as gt, buildProductHref as gu, buildProductListingCard as gv, buildProductListingGroupProjection as gw, buildProductListingGroupsByOption as gx, buildProductOptionMatrix as gy, buildProductOptionMatrixFromDetail as gz, ExternalEffectClaimsApi as h, ExternalCustomerLinksApi as i, BenefitVouchersApi as j, CreditsApi as k, CommunityClient as l, type BanCustomerParams as m, type CommunityBan as n, type ClientState as o, type ClientServerConfig as p, type RootServerClientWithEvents as q, BENEFIT_VOUCHER_ERROR_REASONS as r, BENEFIT_VOUCHER_VOID_REASONS as s, type BenefitVoucher as t, type BenefitVoucherErrorReason as u, type CancelServerPaymentSessionParams as v, type CaptureExternalCustomerPreviousStateParams as w, CartApi as x, type CartApiOptions as y, type CartMergeResult as z };
|