@01.software/sdk 0.49.0 → 0.56.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 +257 -1
- package/MIGRATION.md +56 -0
- package/README.md +269 -56
- package/dist/client.cjs +608 -190
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +608 -190
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-DnDt6EQz.d.ts → collection-client-Bmr53saa.d.ts} +6 -4
- package/dist/{collection-client-XfGLPuTf.d.cts → collection-client-DxuBDso_.d.cts} +6 -4
- package/dist/{const-CBba4lDo.d.cts → const-BKUqg96Q.d.ts} +5 -5
- package/dist/{const-DCNV5Kq7.d.ts → const-Cv1DCsp6.d.cts} +5 -5
- package/dist/embedded-admin/server.cjs +306 -0
- package/dist/embedded-admin/server.cjs.map +1 -0
- package/dist/embedded-admin/server.d.cts +33 -0
- package/dist/embedded-admin/server.d.ts +33 -0
- package/dist/embedded-admin/server.js +288 -0
- package/dist/embedded-admin/server.js.map +1 -0
- package/dist/embedded-admin.cjs +400 -0
- package/dist/embedded-admin.cjs.map +1 -0
- package/dist/embedded-admin.d.cts +61 -0
- package/dist/embedded-admin.d.ts +61 -0
- package/dist/embedded-admin.js +377 -0
- package/dist/embedded-admin.js.map +1 -0
- package/dist/errors.cjs +1 -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 +1 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-DUuIqUS8.d.ts → index-CGsT4AQ8.d.cts} +89 -10
- package/dist/{index-CbKyoEzy.d.cts → index-DFHLLqYu.d.ts} +89 -10
- package/dist/index.cjs +752 -436
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -69
- package/dist/index.d.ts +12 -69
- package/dist/index.js +752 -436
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-MKbx5MuJ.d.cts → payload-types-Bk-duc5k.d.cts} +545 -141
- package/dist/{payload-types-MKbx5MuJ.d.ts → payload-types-Bk-duc5k.d.ts} +545 -141
- package/dist/query.cjs +108 -71
- 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 +108 -71
- 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 +502 -175
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.js +502 -175
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +1 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +1 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-1UeOk1Uy.d.cts → types-CEK8uTvU.d.ts} +287 -30
- package/dist/{types-BKr_2avj.d.cts → types-CNdpj2fI.d.cts} +2 -2
- package/dist/{types-L_nh-ED7.d.ts → types-D4mjGFj4.d.ts} +2 -2
- package/dist/{types-Du4s5anw.d.ts → types-Dhk5NX7Z.d.cts} +287 -30
- 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.cjs +135 -80
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +21 -5
- package/dist/webhook.d.ts +21 -5
- package/dist/webhook.js +135 -80
- package/dist/webhook.js.map +1 -1
- package/package.json +28 -6
|
@@ -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, k as Transaction, l as Fulfillment, R as Return } from './payload-types-
|
|
1
|
+
import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-BKUqg96Q.js';
|
|
2
|
+
import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-D4mjGFj4.js';
|
|
3
|
+
import { O as Order, k as Transaction, l as Fulfillment, R as Return } from './payload-types-Bk-duc5k.js';
|
|
4
4
|
|
|
5
5
|
declare const operationBrand: unique symbol;
|
|
6
6
|
type HttpOperation = {
|
|
@@ -9,27 +9,15 @@ type HttpOperation = {
|
|
|
9
9
|
readonly method: 'get' | 'post' | 'patch' | 'delete';
|
|
10
10
|
readonly path: `/${string}`;
|
|
11
11
|
readonly errorFamily?: 'commerce';
|
|
12
|
+
/**
|
|
13
|
+
* Canonical commerce reasons emitted by an otherwise legacy-compatible
|
|
14
|
+
* endpoint. Only these responses may be normalized and parsed as the strict
|
|
15
|
+
* commerce envelope; every other response retains its established shape.
|
|
16
|
+
*/
|
|
17
|
+
readonly typedCommerceErrorReasons?: readonly string[];
|
|
12
18
|
};
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
* Single source of truth for the commerce HTTP paths the SDK calls.
|
|
16
|
-
*
|
|
17
|
-
* Console exposes these as `slug + Endpoint.path` on collection configs; the SDK
|
|
18
|
-
* has to hardcode the joined `/api/<slug>/<path>` because it cannot import the
|
|
19
|
-
* Console at build time. To stop a Console path change from silently turning into
|
|
20
|
-
* a runtime 404, non-quarantined values are cross-checked against live Console
|
|
21
|
-
* endpoint registration by `apps/console/tests/unit/sdk/endpoint-parity.test.ts`.
|
|
22
|
-
* That test also records canonical Phase 1 operations whose route is absent or
|
|
23
|
-
* whose same-path legacy handler is not yet contract-compatible; registration
|
|
24
|
-
* alone must never be interpreted as transport parity.
|
|
25
|
-
*
|
|
26
|
-
* Keep this internal — it is the transport contract, not public SDK surface.
|
|
27
|
-
*/
|
|
28
|
-
type CanonicalCommerceEndpointDescriptor = {
|
|
29
|
-
readonly method: 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
30
|
-
readonly path: string;
|
|
31
|
-
};
|
|
32
|
-
type CommerceEndpointDescriptor = CanonicalCommerceEndpointDescriptor | HttpOperation;
|
|
20
|
+
type CommerceEndpointDescriptor = HttpOperation;
|
|
33
21
|
|
|
34
22
|
interface CustomerScopedApiOptions {
|
|
35
23
|
publishableKey?: string;
|
|
@@ -380,6 +368,7 @@ interface RequestOptions {
|
|
|
380
368
|
method?: 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
381
369
|
headers?: Record<string, string>;
|
|
382
370
|
errorFamily?: 'commerce';
|
|
371
|
+
typedCommerceErrorReasons?: readonly string[];
|
|
383
372
|
}
|
|
384
373
|
type EndpointRequestOptions = {
|
|
385
374
|
headers?: Record<string, string>;
|
|
@@ -816,6 +805,7 @@ type ReturnWithRefundParams = WithIdempotencyKey<{
|
|
|
816
805
|
initialShippingRefundOverrideNote?: string;
|
|
817
806
|
pgPaymentId: string;
|
|
818
807
|
paymentKey?: string;
|
|
808
|
+
/** Canonical trimmed receipt URL; the server rejects values over 2048 characters. */
|
|
819
809
|
refundReceiptUrl?: string;
|
|
820
810
|
}>;
|
|
821
811
|
type CreateFulfillmentParams = WithIdempotencyKey<{
|
|
@@ -1032,6 +1022,41 @@ interface CustomerAuthOptions {
|
|
|
1032
1022
|
*
|
|
1033
1023
|
* Handles SSR safely (no-op on server).
|
|
1034
1024
|
* When enabled, `token` and `onTokenChange` are ignored.
|
|
1025
|
+
*
|
|
1026
|
+
* Persisted browser sessions treat storage as the source of truth. The
|
|
1027
|
+
* canonical session is one versioned JSON record at `<key>:session`, so the
|
|
1028
|
+
* access/refresh pair is always written together and can never be read
|
|
1029
|
+
* half-updated. Every write re-reads that record first and carries forward
|
|
1030
|
+
* the field it does not change, which keeps a stale instance from carrying
|
|
1031
|
+
* its own outdated counterpart into the write. That merge is best-effort:
|
|
1032
|
+
* Web Storage has no compare-and-swap, so a commit landing between that read
|
|
1033
|
+
* and the write is lost by ordering.
|
|
1034
|
+
*
|
|
1035
|
+
* Refresh-token **rotation** is serialized across tabs and SDK instances that
|
|
1036
|
+
* share the key and API/tenant identity, through a Web Locks lease: the
|
|
1037
|
+
* rotation re-reads canonical state inside the lease and either rotates once
|
|
1038
|
+
* or adopts what another context already published, so a single-use refresh
|
|
1039
|
+
* token is not replayed. `getToken()` / `getRefreshToken()` re-read canonical
|
|
1040
|
+
* state before use, so another tab's rotation or logout is observed before
|
|
1041
|
+
* the next credential use.
|
|
1042
|
+
*
|
|
1043
|
+
* Limits worth knowing: Web Storage has no compare-and-swap and the
|
|
1044
|
+
* synchronous mutators (`logout`, `setToken`, `setRefreshToken`) cannot await
|
|
1045
|
+
* the lease, so they are not serialized against a rotation commit — those
|
|
1046
|
+
* races are last-writer-wins, and server-side revocation remains the
|
|
1047
|
+
* authority. Browsers without Web Locks and storage that denies access fall
|
|
1048
|
+
* back to a per-instance or memory-only session.
|
|
1049
|
+
*
|
|
1050
|
+
* `<key>` still holds the current access token as a single-value
|
|
1051
|
+
* compatibility publication for code that reads it directly, and an existing
|
|
1052
|
+
* pair under the older `<key>` / `<key>:refresh` layout is migrated on first
|
|
1053
|
+
* read, but only while `<key>:session` is absent — `logout()` writes a
|
|
1054
|
+
* cleared record even on empty storage, so an ended session is not migrated
|
|
1055
|
+
* back. The older refresh entry is retired before any newer access token is
|
|
1056
|
+
* mirrored, so those two are never published together; if that retirement
|
|
1057
|
+
* fails, the newer access token is not mirrored either. A context running an
|
|
1058
|
+
* SDK version that predates the record is outside the coordination
|
|
1059
|
+
* guarantee.
|
|
1035
1060
|
*/
|
|
1036
1061
|
persist?: boolean | string;
|
|
1037
1062
|
/** Initial token (e.g. from SSR cookie) */
|
|
@@ -1069,6 +1094,15 @@ declare class CustomerAuth {
|
|
|
1069
1094
|
private onTokenChange?;
|
|
1070
1095
|
private onRefreshTokenChange?;
|
|
1071
1096
|
private refreshPromise;
|
|
1097
|
+
/** Canonical record key; null unless persistence is active in a browser. */
|
|
1098
|
+
private persistRecordKey;
|
|
1099
|
+
/** Advisory single-value access mirror, plus the retired refresh mirror. */
|
|
1100
|
+
private persistMirrorKey;
|
|
1101
|
+
private persistMirrorRefreshKey;
|
|
1102
|
+
/** Cross-context refresh lock name; null when there is no shared storage. */
|
|
1103
|
+
private refreshLockName;
|
|
1104
|
+
/** Revision of the canonical record this instance last observed. */
|
|
1105
|
+
private sessionRev;
|
|
1072
1106
|
constructor(publishableKey: string, options?: CustomerAuthOptions, apiUrl?: string);
|
|
1073
1107
|
/**
|
|
1074
1108
|
* Register a new customer account
|
|
@@ -1081,8 +1115,83 @@ declare class CustomerAuth {
|
|
|
1081
1115
|
/**
|
|
1082
1116
|
* Refresh the current token. Uses a refresh token when available, otherwise
|
|
1083
1117
|
* falls back to the legacy bearer-token compatibility path.
|
|
1118
|
+
*
|
|
1119
|
+
* Refresh tokens are single-use, so a persisted session shared by several
|
|
1120
|
+
* tabs or SDK instances must rotate at most once: concurrent rotations of the
|
|
1121
|
+
* same token are replay from the server's point of view and revoke the whole
|
|
1122
|
+
* family. Persisted browser sessions therefore serialize rotation across
|
|
1123
|
+
* contexts and re-read the canonical persisted credentials inside the lock.
|
|
1084
1124
|
*/
|
|
1085
1125
|
refreshToken(): Promise<CustomerRefreshResponse>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Re-read the canonical persisted session. In persisted mode the shared
|
|
1128
|
+
* record — not this instance's memory — is the source of truth, so another
|
|
1129
|
+
* context's rotation, login, or logout is observed before the next credential
|
|
1130
|
+
* use. Change callbacks are deliberately not invoked: this is a read.
|
|
1131
|
+
*/
|
|
1132
|
+
private syncFromPersistedStorage;
|
|
1133
|
+
/** `null` when this instance does not persist. */
|
|
1134
|
+
private readCanonicalSession;
|
|
1135
|
+
/**
|
|
1136
|
+
* Publish a change to canonical storage.
|
|
1137
|
+
*
|
|
1138
|
+
* The canonical pair is re-read immediately before the single record write so
|
|
1139
|
+
* that a field this call does not change is taken from that read rather than
|
|
1140
|
+
* from this instance's possibly stale copy. That merge is BEST-EFFORT: it
|
|
1141
|
+
* removes the stale counterpart an instance would otherwise carry, but it is
|
|
1142
|
+
* not a compare-and-swap. Web Storage offers none, and the synchronous public
|
|
1143
|
+
* mutators cannot await the refresh lease, so a commit that lands between
|
|
1144
|
+
* this read and the store operation is lost by ordering — including the
|
|
1145
|
+
* counterpart just read, which is then republished stale. The window is one
|
|
1146
|
+
* store operation wide and the server remains authoritative; see
|
|
1147
|
+
* `CUST-AUTH-033` for the stated limit.
|
|
1148
|
+
*
|
|
1149
|
+
* Returns `false` only when `requireLiveSession` refused a write because the
|
|
1150
|
+
* canonical session had already been cleared.
|
|
1151
|
+
*/
|
|
1152
|
+
private commitPersistedSession;
|
|
1153
|
+
/**
|
|
1154
|
+
* Storage rejected a write or a read, so it is not a canonical store for this
|
|
1155
|
+
* instance. Fall back to the memory-only session and take no lease: there is
|
|
1156
|
+
* no shared state left to coordinate. Nothing is purged — the record commit
|
|
1157
|
+
* is atomic, so no inconsistent state was published, and another context's
|
|
1158
|
+
* valid session must not be destroyed by this instance's local failure.
|
|
1159
|
+
*/
|
|
1160
|
+
private disablePersistence;
|
|
1161
|
+
/**
|
|
1162
|
+
* Compare the canonical record with the fence this call captured before it
|
|
1163
|
+
* left. Every persisted decision — rotate, converge, or fail closed — goes
|
|
1164
|
+
* through this one comparison. The revision catches a logout, a fresh login,
|
|
1165
|
+
* or a manual setter even when token values coincide; the value comparison
|
|
1166
|
+
* additionally catches a mirror-only writer that cannot bump a revision.
|
|
1167
|
+
*/
|
|
1168
|
+
private classifyCanonicalState;
|
|
1169
|
+
/** The canonical persisted pair, as a refresh result. */
|
|
1170
|
+
private canonicalPair;
|
|
1171
|
+
/** Current credentials plus the revision they were observed at. */
|
|
1172
|
+
private currentFence;
|
|
1173
|
+
/**
|
|
1174
|
+
* Clear an access credential a 401 just proved unusable — but only while it
|
|
1175
|
+
* is still the canonical one. A rotation committed by another context while
|
|
1176
|
+
* the request was in flight is newer than this 401, so it must survive; the
|
|
1177
|
+
* instance adopts it instead. The refresh entry is never touched here: a
|
|
1178
|
+
* rejected access token says nothing about the refresh family.
|
|
1179
|
+
*/
|
|
1180
|
+
private invalidateAccessToken;
|
|
1181
|
+
/** Commit both credentials in one canonical write. */
|
|
1182
|
+
private setSession;
|
|
1183
|
+
/**
|
|
1184
|
+
* Serialize rotation against every other context sharing the same storage
|
|
1185
|
+
* key and API/tenant identity. Coordination is best-effort: when it is
|
|
1186
|
+
* unavailable or times out the rotation still happens, so server-side reuse
|
|
1187
|
+
* detection is never bypassed by a client that failed to coordinate.
|
|
1188
|
+
*/
|
|
1189
|
+
private rotateAcrossContexts;
|
|
1190
|
+
/**
|
|
1191
|
+
* Decide, against freshly re-read canonical state, whether this context still
|
|
1192
|
+
* owns the rotation.
|
|
1193
|
+
*/
|
|
1194
|
+
private rotateWithCanonicalState;
|
|
1086
1195
|
private _doRefreshToken;
|
|
1087
1196
|
/**
|
|
1088
1197
|
* Clear the stored token
|
|
@@ -1113,11 +1222,15 @@ declare class CustomerAuth {
|
|
|
1113
1222
|
*/
|
|
1114
1223
|
getMyOrders(options?: CustomerOrderListOptions): Promise<PayloadFindResponse<PublicOrder>>;
|
|
1115
1224
|
/**
|
|
1116
|
-
* Get the current token (or null if not authenticated)
|
|
1225
|
+
* Get the current token (or null if not authenticated).
|
|
1226
|
+
*
|
|
1227
|
+
* In persisted mode this re-reads shared storage first, so a rotation or
|
|
1228
|
+
* logout performed by another tab is observed before the token is used.
|
|
1117
1229
|
*/
|
|
1118
1230
|
getToken(): string | null;
|
|
1119
1231
|
/**
|
|
1120
|
-
* Get the current refresh token (or null if unavailable)
|
|
1232
|
+
* Get the current refresh token (or null if unavailable). Persisted mode
|
|
1233
|
+
* re-reads shared storage first, like {@link CustomerAuth.getToken}.
|
|
1121
1234
|
*/
|
|
1122
1235
|
getRefreshToken(): string | null;
|
|
1123
1236
|
/**
|
|
@@ -2359,6 +2472,16 @@ type RetrieveBrowserPaymentSessionParams = {
|
|
|
2359
2472
|
type RetrieveServerPaymentSessionParams = {
|
|
2360
2473
|
paymentSessionId: string;
|
|
2361
2474
|
};
|
|
2475
|
+
type PortOnePaymentSelector = {
|
|
2476
|
+
provider: 'portone';
|
|
2477
|
+
providerAccountKey: string;
|
|
2478
|
+
environment: 'test' | 'live';
|
|
2479
|
+
providerPaymentId: string;
|
|
2480
|
+
};
|
|
2481
|
+
type FindPortOnePaymentParams = PortOnePaymentSelector;
|
|
2482
|
+
type ReconcilePortOnePaymentParams = PortOnePaymentSelector & {
|
|
2483
|
+
idempotencyKey: string;
|
|
2484
|
+
};
|
|
2362
2485
|
type CancelBrowserPaymentSessionParams = RetrieveBrowserPaymentSessionParams & {
|
|
2363
2486
|
idempotencyKey: string;
|
|
2364
2487
|
};
|
|
@@ -2404,6 +2527,44 @@ type RetrievedCustomPaymentSession = {
|
|
|
2404
2527
|
money: Money;
|
|
2405
2528
|
orderId: string | null;
|
|
2406
2529
|
};
|
|
2530
|
+
type PortOnePaymentCurrentState = {
|
|
2531
|
+
paymentSession: {
|
|
2532
|
+
id: string;
|
|
2533
|
+
provider: 'portone';
|
|
2534
|
+
providerStatus: PaymentProviderStatus;
|
|
2535
|
+
finalizationStatus: 'not_ready' | 'pending' | 'committed';
|
|
2536
|
+
sessionRole: PaymentSessionRole;
|
|
2537
|
+
reconciliation: {
|
|
2538
|
+
status: 'none';
|
|
2539
|
+
} | {
|
|
2540
|
+
status: 'required';
|
|
2541
|
+
reasons: readonly PaymentReconciliationReason[];
|
|
2542
|
+
};
|
|
2543
|
+
};
|
|
2544
|
+
checkout: {
|
|
2545
|
+
id: string;
|
|
2546
|
+
};
|
|
2547
|
+
order: {
|
|
2548
|
+
id: string;
|
|
2549
|
+
orderNumber: string;
|
|
2550
|
+
} | null;
|
|
2551
|
+
money: Money;
|
|
2552
|
+
};
|
|
2553
|
+
type FindPortOnePaymentResult = {
|
|
2554
|
+
found: false;
|
|
2555
|
+
} | {
|
|
2556
|
+
found: true;
|
|
2557
|
+
current: PortOnePaymentCurrentState;
|
|
2558
|
+
};
|
|
2559
|
+
type PortOneReconciliationDisposition = 'applied' | 'observed' | 'recovered_after_ambiguous_result' | 'requires_attention';
|
|
2560
|
+
type ReconcilePortOnePaymentResult = {
|
|
2561
|
+
found: false;
|
|
2562
|
+
disposition: 'requires_attention';
|
|
2563
|
+
} | {
|
|
2564
|
+
found: true;
|
|
2565
|
+
disposition: PortOneReconciliationDisposition;
|
|
2566
|
+
current: PortOnePaymentCurrentState;
|
|
2567
|
+
};
|
|
2407
2568
|
type ConfirmCustomPaymentSessionParams = {
|
|
2408
2569
|
provider: string;
|
|
2409
2570
|
providerSessionId: string;
|
|
@@ -2453,6 +2614,10 @@ type PortOnePaymentNextAction = {
|
|
|
2453
2614
|
type PortOneSdkPaymentNextAction = {
|
|
2454
2615
|
type: 'portone_sdk';
|
|
2455
2616
|
version: 'v2';
|
|
2617
|
+
/** Standard V2 actions cannot release their Checkout payment slot. */
|
|
2618
|
+
cancelable: false;
|
|
2619
|
+
/** Retry only this exact action and payment ID; never start a sibling session. */
|
|
2620
|
+
retryPolicy: 'same_action_only';
|
|
2456
2621
|
storeId: string;
|
|
2457
2622
|
channelKey: string;
|
|
2458
2623
|
paymentId: string;
|
|
@@ -2634,6 +2799,12 @@ declare class PaymentSessionApi extends CustomerScopedApi {
|
|
|
2634
2799
|
cancelPortOne(params: CancelBrowserPaymentSessionParams | CancelServerPaymentSessionParams): Promise<PortOnePublicPaymentSession>;
|
|
2635
2800
|
confirm(params: ConfirmTossPaymentSessionParams): Promise<PublicPaymentSession>;
|
|
2636
2801
|
}
|
|
2802
|
+
/** Server-only facade over the managed PortOne local/convergence engine. */
|
|
2803
|
+
declare class PortOnePaymentReconciliationApi extends BaseApi {
|
|
2804
|
+
constructor(options: ServerApiOptions);
|
|
2805
|
+
find(params: FindPortOnePaymentParams): Promise<FindPortOnePaymentResult>;
|
|
2806
|
+
reconcile(params: ReconcilePortOnePaymentParams): Promise<ReconcilePortOnePaymentResult>;
|
|
2807
|
+
}
|
|
2637
2808
|
|
|
2638
2809
|
interface CommerceClientOptions {
|
|
2639
2810
|
publishableKey: string;
|
|
@@ -2846,6 +3017,8 @@ declare class ServerCommerceClient {
|
|
|
2846
3017
|
cancel: (params: CancelServerPaymentSessionParams) => Promise<PublicPaymentSession>;
|
|
2847
3018
|
cancelPortOne: (params: CancelServerPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
|
|
2848
3019
|
confirm: (params: ConfirmTossPaymentSessionParams) => Promise<PublicPaymentSession>;
|
|
3020
|
+
findPortOne: (params: FindPortOnePaymentParams) => Promise<FindPortOnePaymentResult>;
|
|
3021
|
+
reconcilePortOne: (params: ReconcilePortOnePaymentParams) => Promise<ReconcilePortOnePaymentResult>;
|
|
2849
3022
|
custom: {
|
|
2850
3023
|
create: (params: CreateCustomPaymentSessionParams) => Promise<CustomPaymentSession>;
|
|
2851
3024
|
retrieve: (params: RetrieveCustomPaymentSessionParams) => Promise<RetrievedCustomPaymentSession>;
|
|
@@ -2930,6 +3103,8 @@ interface EventsRangeEvent {
|
|
|
2930
3103
|
endsAt?: string | null;
|
|
2931
3104
|
timezone?: string | null;
|
|
2932
3105
|
isAllDay: boolean;
|
|
3106
|
+
allDayStartDate?: string | null;
|
|
3107
|
+
allDayEndDateExclusive?: string | null;
|
|
2933
3108
|
visibility?: string | null;
|
|
2934
3109
|
sourceType?: string | null;
|
|
2935
3110
|
registrationPolicy?: string | null;
|
|
@@ -2947,6 +3122,8 @@ interface EventsRangeOccurrence {
|
|
|
2947
3122
|
endsAt?: string | null;
|
|
2948
3123
|
timezone?: string | null;
|
|
2949
3124
|
isAllDay: boolean;
|
|
3125
|
+
allDayStartDate?: string | null;
|
|
3126
|
+
allDayEndDateExclusive?: string | null;
|
|
2950
3127
|
status?: string | null;
|
|
2951
3128
|
capacity?: number;
|
|
2952
3129
|
registrationCount?: number;
|
|
@@ -3233,6 +3410,8 @@ interface TenantIntrospectionClient {
|
|
|
3233
3410
|
collectionSchema: (collection: string) => Promise<CollectionSchemaResponse>;
|
|
3234
3411
|
featureProgress: (params: TenantFeatureProgressInput) => Promise<TenantFeatureProgressResponse>;
|
|
3235
3412
|
}
|
|
3413
|
+
/** Canonical tenant-context transport identity shared by SDK-backed callers. */
|
|
3414
|
+
declare const TENANT_CONTEXT_PATH = "/api/tenants/context";
|
|
3236
3415
|
declare class TenantIntrospectionApi extends RawBaseApi implements TenantIntrospectionClient {
|
|
3237
3416
|
constructor(options: TenantIntrospectionApiOptions);
|
|
3238
3417
|
context(params?: TenantContextInput): Promise<TenantContextResponse>;
|
|
@@ -3240,6 +3419,72 @@ declare class TenantIntrospectionApi extends RawBaseApi implements TenantIntrosp
|
|
|
3240
3419
|
featureProgress(params: TenantFeatureProgressInput): Promise<TenantFeatureProgressResponse>;
|
|
3241
3420
|
}
|
|
3242
3421
|
|
|
3422
|
+
type CustomerGroupManualSource = {
|
|
3423
|
+
type: 'manual';
|
|
3424
|
+
sourceId: string;
|
|
3425
|
+
grantedAt: string;
|
|
3426
|
+
revision: number;
|
|
3427
|
+
};
|
|
3428
|
+
type CustomerGroupMembershipSource = {
|
|
3429
|
+
type: 'membership';
|
|
3430
|
+
sourceId: string;
|
|
3431
|
+
planId: string;
|
|
3432
|
+
currentPeriodEnd: string;
|
|
3433
|
+
};
|
|
3434
|
+
type CustomerGroupMemberSource = CustomerGroupManualSource | CustomerGroupMembershipSource;
|
|
3435
|
+
type CustomerGroupMembershipState = {
|
|
3436
|
+
customerId: string;
|
|
3437
|
+
groupId: string;
|
|
3438
|
+
effective: boolean;
|
|
3439
|
+
evaluatedAt: string;
|
|
3440
|
+
sources: CustomerGroupMemberSource[];
|
|
3441
|
+
};
|
|
3442
|
+
type CustomerGroupMember = {
|
|
3443
|
+
customer: {
|
|
3444
|
+
id: string;
|
|
3445
|
+
email: string | null;
|
|
3446
|
+
name: string | null;
|
|
3447
|
+
};
|
|
3448
|
+
sources: CustomerGroupMemberSource[];
|
|
3449
|
+
};
|
|
3450
|
+
type ListCustomerGroupMembersParams = {
|
|
3451
|
+
groupId: string;
|
|
3452
|
+
page?: number;
|
|
3453
|
+
limit?: number;
|
|
3454
|
+
};
|
|
3455
|
+
type ListCustomerGroupMembersResponse = {
|
|
3456
|
+
groupId: string;
|
|
3457
|
+
evaluatedAt: string;
|
|
3458
|
+
members: CustomerGroupMember[];
|
|
3459
|
+
page: number;
|
|
3460
|
+
limit: number;
|
|
3461
|
+
totalDocs: number;
|
|
3462
|
+
totalPages: number;
|
|
3463
|
+
hasNextPage: boolean;
|
|
3464
|
+
nextPage: number | null;
|
|
3465
|
+
};
|
|
3466
|
+
type GrantCustomerGroupMemberParams = {
|
|
3467
|
+
groupId: string;
|
|
3468
|
+
customerId: string;
|
|
3469
|
+
reason?: string;
|
|
3470
|
+
};
|
|
3471
|
+
type RevokeCustomerGroupMemberParams = {
|
|
3472
|
+
groupId: string;
|
|
3473
|
+
customerId: string;
|
|
3474
|
+
};
|
|
3475
|
+
type CustomerGroupMemberCommandResponse = {
|
|
3476
|
+
changed: boolean;
|
|
3477
|
+
membership: CustomerGroupMembershipState;
|
|
3478
|
+
};
|
|
3479
|
+
type CustomerGroupApiOptions = ServerApiOptions;
|
|
3480
|
+
/** Server-only source-aware Customer Group membership API. */
|
|
3481
|
+
declare class CustomerGroupApi extends BaseApi {
|
|
3482
|
+
constructor(options: CustomerGroupApiOptions);
|
|
3483
|
+
listMembers(params: ListCustomerGroupMembersParams): Promise<ListCustomerGroupMembersResponse>;
|
|
3484
|
+
grantMember(params: GrantCustomerGroupMemberParams): Promise<CustomerGroupMemberCommandResponse>;
|
|
3485
|
+
revokeMember(params: RevokeCustomerGroupMemberParams): Promise<CustomerGroupMemberCommandResponse>;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3243
3488
|
/**
|
|
3244
3489
|
* SDK-local hand-declarations of the membership wire contract types.
|
|
3245
3490
|
*
|
|
@@ -3251,16 +3496,16 @@ declare class TenantIntrospectionApi extends RawBaseApi implements TenantIntrosp
|
|
|
3251
3496
|
type MembershipStatus = 'incomplete' | 'trialing' | 'active' | 'past_due' | 'cancelled' | 'expired';
|
|
3252
3497
|
/**
|
|
3253
3498
|
* Parameters for the subscribe endpoint (delegated charge model).
|
|
3254
|
-
*
|
|
3255
|
-
*
|
|
3256
|
-
*
|
|
3499
|
+
* A paid subscription prepares an immutable first charge. The tenant completes
|
|
3500
|
+
* that PSP payment with `firstCharge.idempotencyKey` and posts the existing
|
|
3501
|
+
* signed charge result before membership activation. Trial starts activate
|
|
3502
|
+
* immediately and do not include a first charge.
|
|
3257
3503
|
*/
|
|
3258
3504
|
type SubscribeMembershipParams = {
|
|
3259
3505
|
planId: string;
|
|
3260
3506
|
priceId: string;
|
|
3261
3507
|
/** Stable client-generated key used as the deduplication key for this subscription intent. */
|
|
3262
3508
|
subscribeIntentKey: string;
|
|
3263
|
-
pgPaymentId?: string;
|
|
3264
3509
|
/** Internal Console customer document id. */
|
|
3265
3510
|
customerId: string;
|
|
3266
3511
|
/** Delegated payment provider customer reference. */
|
|
@@ -3270,9 +3515,20 @@ type SubscribeMembershipParams = {
|
|
|
3270
3515
|
brand?: string;
|
|
3271
3516
|
};
|
|
3272
3517
|
};
|
|
3518
|
+
type PreparedFirstCharge = {
|
|
3519
|
+
idempotencyKey: string;
|
|
3520
|
+
amount: number;
|
|
3521
|
+
currency: string;
|
|
3522
|
+
periodStart: string;
|
|
3523
|
+
expiresAt: string;
|
|
3524
|
+
};
|
|
3273
3525
|
type SubscribeMembershipResponse = {
|
|
3274
3526
|
membershipId: string;
|
|
3275
|
-
status:
|
|
3527
|
+
status: 'trialing';
|
|
3528
|
+
} | {
|
|
3529
|
+
membershipId: string;
|
|
3530
|
+
status: 'incomplete';
|
|
3531
|
+
firstCharge: PreparedFirstCharge;
|
|
3276
3532
|
};
|
|
3277
3533
|
/**
|
|
3278
3534
|
* Parameters for cancelling a membership.
|
|
@@ -3526,6 +3782,7 @@ interface RootServerClient {
|
|
|
3526
3782
|
subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
|
|
3527
3783
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
3528
3784
|
};
|
|
3785
|
+
customerGroups: CustomerGroupApi;
|
|
3529
3786
|
/** Set on {@link createServerClient} return values; optional for structural mocks. */
|
|
3530
3787
|
events?: EventsClient;
|
|
3531
3788
|
community: CommunityClient & {
|
|
@@ -3554,4 +3811,4 @@ type DeepPartial<T> = {
|
|
|
3554
3811
|
};
|
|
3555
3812
|
type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
|
|
3556
3813
|
|
|
3557
|
-
export { type PublicAttribute as $, type AddItemParams as A, type CreatePaymentSessionParams as B, CommerceClient as C, type CreatePortOnePaymentSessionParams as D, EventsClient as E, type CustomerSnapshot as F, type DebugConfig as G, type DeepPartial as H, type ExtractArrayType as I, type MembershipStatus as J, type Money as K, type PayloadMutationResponse as L, MarketDiscovery as M, type PaymentFailureReason as N, type OpenCheckoutPaymentState as O, type PayloadFindResponse as P, type PaymentNextAction as Q, type PaymentProviderStatus as R, type PaymentReconciliationReason as S, type PaymentSessionRole as T, type PortOneHostedPaymentMethod as U, type PortOnePaymentNextAction as V, type PortOnePublicPaymentSession as W, type ProductUpsertInput as X, type ProductUpsertParams as Y, type ProductUpsertResponse as Z, type ProductUpsertVariantInput as _, CommunityClient as a, type CollectionSchemaResponse as a$, type PublicCaptureEvidence as a0, type PublicCart as a1, type PublicCartItem as a2, type PublicCartItemAdmission as a3, type PublicCartMarket as a4, type PublicCartReference as a5, type PublicCheckout as a6, type PublicCheckoutItem as a7, type PublicMediaAsset as a8, type PublicMediaSize as a9, type UpdateDiscountCodesParams as aA, type UpdateItemParams as aB, type VariantInput as aC, type Where as aD, RawBaseApi as aE, type ServerApiOptions as aF, ServerCommerceClient as aG, type TenantIntrospectionClient as aH, type SubscribeMembershipParams as aI, type SubscribeMembershipResponse as aJ, type BanCustomerParams as aK, type CommunityBan as aL, type UnbanCustomerParams as aM, type ClientServerConfig as aN, type RootServerClientWithEvents as aO, type CancelServerPaymentSessionParams as aP, CartApi as aQ, type CartApiOptions as aR, CheckoutApi as aS, type CheckoutApiOptions as aT, type CheckoutListItem as aU, type CheckoutQueryParams as aV, type CheckoutQueryResult as aW, type CheckoutStatus as aX, type CollectionCustomFieldDefinition as aY, type CollectionCustomFields as aZ, type CollectionFieldSchema as a_, type PublicOrder as aa, type PublicOrderAmounts as ab, type PublicOrderItem as ac, type PublicOrderReference as ad, type PublicPaymentSession as ae, type ReconciliationRequired as af, type RemoveItemParams as ag, type RetrieveBrowserPaymentSessionParams as ah, type RetrieveCartParams as ai, type RetrieveCheckoutParams as aj, type RetryConfig as ak, type RootClient as al, type RootCollectionClient as am, type RootReadOnlyQueryBuilder as an, type ShippingLine as ao, type Sort as ap, type SpentCheckoutPaymentState as aq, type StorefrontContentListOptions as ar, type StorefrontContentReference as as, type StorefrontGalleryItem as at, type StorefrontGalleryItemsListOptions as au, type StorefrontGalleryItemsSort as av, type StorefrontLink as aw, type StorefrontLinksListOptions as ax, type StorefrontLinksSort as ay, type UpdateCartAttributesParams as az, ContentClient as b, type CustomerLoginData as b$, type ConfirmCustomPaymentSessionOptions as b0, type ConfirmCustomPaymentSessionParams as b1, type ConfirmCustomPaymentSessionResponse as b2, type ConfirmTossPaymentSessionParams as b3, type CreateCustomPaymentSessionParams as b4, type CreateServerCheckoutParams as b5, type CreateServerCheckoutResult as b6, type CustomPaymentSession as b7, type CustomPaymentSessionProof as b8, type EventAdmissionAvailabilityParams as b9, type RetrieveServerCheckoutParams as bA, type RetrieveServerPaymentSessionParams as bB, type RetrievedCustomPaymentSession as bC, type RootServerClient as bD, type ServerCartMergeParams as bE, type ServerCartMineParams as bF, type ServerCheckout as bG, type TenantContextInput as bH, type TenantContextResponse as bI, type TenantCustomFieldType as bJ, type TenantFeatureProgressEvidenceValue as bK, type TenantFeatureProgressFeature as bL, type TenantFeatureProgressGroup as bM, type TenantFeatureProgressInput as bN, type TenantFeatureProgressItem as bO, type TenantFeatureProgressItemState as bP, type TenantFeatureProgressResponse as bQ, type TenantFeatureProgressSeverity as bR, type TenantFeatureProgressStatus as bS, type TenantFieldConfigState as bT, TenantIntrospectionApi as bU, type TenantIntrospectionApiOptions as bV, type ApiDeleteOptions as bW, type PublicReadQueryOptions as bX, CustomerAuth as bY, type CustomerProfile as bZ, type CustomerAuthResponse as b_, type EventAdmissionAvailabilityResponse as ba, type EventAdmissionAvailabilityType as bb, type EventAdmissionPricePresentment as bc, type EventGuestCancelParams as bd, type EventGuestRegistration as be, type EventGuestRegistrationResponse as bf, type EventRegistrationAnswerInput as bg, type EventRegistrationAttendeeInput as bh, type EventRegistrationPublic as bi, type EventRegistrationRegisterParams as bj, type EventRegistrationRegisterResponse as bk, type EventsCalendarItem as bl, type EventsClientOptions as bm, type EventsDateParam as bn, type EventsExternalSource as bo, type EventsLocation as bp, type EventsOccurrenceLocation as bq, type EventsRangeEvent as br, type EventsRangeOccurrence as bs, type EventsRangeParams as bt, type EventsRangeResponse as bu, type EventsTaxonomyItem as bv, ModerationApi as bw, PaymentSessionApi as bx, type PaymentSessionApiOptions as by, type RetrieveCustomPaymentSessionParams as bz, CustomerNamespace as c, MAX_CART_LINE_ADMISSIONS as c$, type CustomerRegisterResponse as c0, type CustomerRegisterData as c1, type CustomerRefreshResponse as c2, type UpdateProfileData as c3, type ProductListingPageParams as c4, type ProductListingPageBaseParams as c5, type ProductDetailParams as c6, type ProductDetailCatalogResult as c7, type ProductListingPageCatalogParams as c8, type ProductListingPageResult as c9, type CommunityComment as cA, type CommunityCommentListSort as cB, type CommunityPost as cC, type CommunityPostCategory as cD, type CommunityPostListSort as cE, type CommunityPostTag as cF, type CommunityPublicAuthorSnapshot as cG, type CommunityPublicMediaAsset as cH, type CommunityPublicReference as cI, type CompatibilityProductSelectionParamEvent as cJ, type CreateFulfillmentParams as cK, type CreateReturnParams as cL, type CustomerAuthOptions as cM, type CustomerAuthorizationUrlInput as cN, type CustomerAuthorizationUrlResult as cO, CustomerOAuth as cP, type CustomerOAuthCallbackResult as cQ, type CustomerOAuthConfig as cR, type CustomerOAuthTokenSet as cS, type CustomerOrderListOptions as cT, DiscountApi as cU, type DiscountApiOptions as cV, type DiscountErrorReasonCode as cW, type FeaturedImagePointerInput as cX, type GetOrderByPaymentIdParams as cY, type LegacyProductSelectionParamEvent as cZ, type ListingGroupsParams as c_, type ProductListingGroupsCatalogItem as ca, type ProductListingPageFullParams as cb, type ProductListingGroupsItem as cc, BaseApi as cd, type ProductDetail as ce, type ProductDetailCatalog as cf, type StockSnapshotResponse as cg, type ProductSelectionMediaSource as ch, type ProductDisplayMediaSource as ci, type ResolveProductSelectionMediaInput as cj, type ResolveProductSelectionMediaResult as ck, type ProductSelectionMediaPointer as cl, type RootClientWithEvents as cm, type BulkImportFulfillmentsParams as cn, type BulkImportFulfillmentsResponse as co, type CalculateShippingParams as cp, type CalculateShippingResult as cq, type CancelOrderParams as cr, type CancelOrderResponse as cs, type CancelReasonCode as ct, type CartDiscountCode as cu, type CartWarning as cv, type CartWarningCode as cw, type Comment as cx, type CommerceClientOptions as cy, type CommunityClientOptions as cz, type CustomerMembershipView as d, type ProductOptionShape as d$, type ManagedPaymentNextAction as d0, type ManagedPublicPaymentSession as d1, type MarketDTO as d2, type MediaValue as d3, type NormalizedOptionSwatch as d4, type NormalizedProductSelection as d5, OrderApi as d6, type OrderApiOptions as d7, type OrderByPaymentResult as d8, PRODUCT_PLP_FIND_OPTIONS as d9, type ProductListingCardOptions as dA, type ProductListingCardPriceRange as dB, type ProductListingCardRepresentativeVariant as dC, type ProductListingGroup as dD, type ProductListingGroupCatalogSummary as dE, type ProductListingGroupCatalogVariant as dF, type ProductListingGroupProjection as dG, type ProductListingGroupSummary as dH, type ProductListingGroupVariant as dI, type ProductListingGroupsCatalogProduct as dJ, type ProductListingGroupsCatalogResponse as dK, type ProductListingGroupsProduct as dL, type ProductListingGroupsResponse as dM, type ProductListingPageFilters as dN, type ProductListingPageSort as dO, type ProductListingProductShape as dP, type ProductListingSwatch as dQ, type ProductLocaleOption as dR, type ProductLocaleReadParams as dS, type ProductLocalizedText as dT, type ProductLocalizedValue as dU, type ProductMediaResolutionSource as dV, type ProductMoneyRange as dW, type ProductOptionMatrix as dX, type ProductOptionMatrixOption as dY, type ProductOptionMatrixValue as dZ, type ProductOptionMatrixVariant as d_, PRODUCT_UPSERT_READONLY_FIELD_REASON as da, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as db, type PrepareFulfillmentOrderParams as dc, type PrepareFulfillmentOrderResponse as dd, ProductApi as de, type ProductApiOptions as df, type ProductDetailBrand as dg, type ProductDetailCatalogVariant as dh, type ProductDetailCategory as di, type ProductDetailImage as dj, type ProductDetailImageMedia as dk, type ProductDetailMedia as dl, type ProductDetailOption as dm, type ProductDetailOptionValue as dn, type ProductDetailResult as dp, type ProductDetailTag as dq, type ProductDetailUnavailableReason as dr, type ProductDetailVariant as ds, type ProductDetailVariantOptionValue as dt, type ProductDetailVideo as du, type ProductFallbackLocaleOption as dv, type ProductHrefGroup as dw, type ProductHrefOptions as dx, type ProductHrefProduct as dy, type ProductListingCard as dz, type CancelMembershipParams as e, projectProductToListingShape as e$, type ProductOptionValueShape as e0, type ProductOptionValueSwatch as e1, type ProductOptionValueSwatchInput as e2, type ProductPriceRange as e3, type ProductSelectionAvailableSwatch as e4, type ProductSelectionAvailableValue as e5, type ProductSelectionByOptionValue as e6, ProductSelectionCodecError as e7, type ProductSelectionCodecOptions as e8, type ProductSelectionInput as e9, type StockCheckResponse as eA, type StockCheckResult as eB, type StockSnapshotItem as eC, type StockSnapshotParams as eD, type UpdateFulfillmentParams as eE, type UpdateOrderParams as eF, type UpdateReturnParams as eG, type ValidateDiscountParams as eH, type ValidateDiscountResult as eI, type WithIdempotencyKey as eJ, buildProductHref as eK, buildProductListingCard as eL, buildProductListingGroupProjection as eM, buildProductListingGroupsByOption as eN, buildProductOptionMatrix as eO, buildProductOptionMatrixFromDetail as eP, createProductSelectionCodec as eQ, getAvailableOptionValues as eR, getProductSelectionImages as eS, getSelectedValueByOptionId as eT, getVariantAvailableForSale as eU, getVariantAvailableStock as eV, isProductUpsertFieldValidationErrorBody as eW, normalizeProductSelection as eX, normalizeProductSelectionFromMatrix as eY, normalizeSelectedValueIds as eZ, parseProductSelection as e_, type ProductSelectionOptionValue as ea, type ProductSelectionResolution as eb, type ProductSelectionResolutionContext as ec, type ProductSelectionUrlEmit as ed, type ProductSelectionVariant$1 as ee, type ProductUpsertFieldValidationErrorBody as ef, type ProductUpsertFieldValidationErrorReason as eg, type ProductVariantShape as eh, type PublicCheckoutBase as ei, type RequestOptions as ej, type ResolveCancelRefundFailedResponse as ek, type ResolveCancelRefundOutcome as el, type ResolveCancelRefundParams as em, type ResolveCancelRefundResponse as en, type ResolveCancelRefundSucceededResponse as eo, type ResolveProductDisplayMediaInput as ep, type ResolveProductDisplayMediaResult as eq, type ResolvedCatalogPrice as er, type ReturnCancellationReasonCode as es, type ReturnItem as et, type ReturnReason as eu, type ReturnWithRefundItem as ev, type ReturnWithRefundParams as ew, ShippingApi as ex, type ShippingApiOptions as ey, type StockCheckParams as ez, type CancelMembershipResponse as f, resolveFeaturedImagePointer as f0, resolveProductDisplayMedia as f1, resolveProductSelection as f2, resolveProductSelectionFromMatrix as f3, resolveProductSelectionMedia as f4, resolveVariantForSelection as f5, selectNext as f6, selectedSwatchMediaItemId as f7, stringifyProductSelection as f8, toShopifyPriceRangeV2 as f9, type ClientState as g, type ClientConfig as h, type ApiQueryOptions as i, type CancelBrowserPaymentSessionParams as j, type CartMergeParams as k, type CartMergeResult as l, type CartMineResult as m, type CartMutationResult as n, type CheckoutAbandonedReason as o, type CheckoutAmounts as p, type CheckoutOrderReference as q, type CheckoutPaymentSessionRef as r, type CheckoutShippingAddress as s, type ClearCartParams as t, type ClientMetadata as u, type ContentClientOptions as v, type CreateCartParams as w, type CreateCartResult as x, type CreateCheckoutParams as y, type CreateCheckoutResult as z };
|
|
3814
|
+
export { type PublicAttribute as $, type AddItemParams as A, type CreatePaymentSessionParams as B, CommerceClient as C, type CreatePortOnePaymentSessionParams as D, EventsClient as E, type CustomerSnapshot as F, type DebugConfig as G, type DeepPartial as H, type ExtractArrayType as I, type MembershipStatus as J, type Money as K, type PayloadMutationResponse as L, MarketDiscovery as M, type PaymentFailureReason as N, type OpenCheckoutPaymentState as O, type PayloadFindResponse as P, type PaymentNextAction as Q, type PaymentProviderStatus as R, type PaymentReconciliationReason as S, type PaymentSessionRole as T, type PortOneHostedPaymentMethod as U, type PortOnePaymentNextAction as V, type PortOnePublicPaymentSession as W, type ProductUpsertInput as X, type ProductUpsertParams as Y, type ProductUpsertResponse as Z, type ProductUpsertVariantInput as _, CommunityClient as a, type CollectionFieldSchema as a$, type PublicCaptureEvidence as a0, type PublicCart as a1, type PublicCartItem as a2, type PublicCartItemAdmission as a3, type PublicCartMarket as a4, type PublicCartReference as a5, type PublicCheckout as a6, type PublicCheckoutItem as a7, type PublicMediaAsset as a8, type PublicMediaSize as a9, type UpdateDiscountCodesParams as aA, type UpdateItemParams as aB, type VariantInput as aC, type Where as aD, RawBaseApi as aE, type ServerApiOptions as aF, ServerCommerceClient as aG, type TenantIntrospectionClient as aH, type SubscribeMembershipParams as aI, type SubscribeMembershipResponse as aJ, CustomerGroupApi as aK, type BanCustomerParams as aL, type CommunityBan as aM, type UnbanCustomerParams as aN, type ClientServerConfig as aO, type RootServerClientWithEvents as aP, type CancelServerPaymentSessionParams as aQ, CartApi as aR, type CartApiOptions as aS, CheckoutApi as aT, type CheckoutApiOptions as aU, type CheckoutListItem as aV, type CheckoutQueryParams as aW, type CheckoutQueryResult as aX, type CheckoutStatus as aY, type CollectionCustomFieldDefinition as aZ, type CollectionCustomFields as a_, type PublicOrder as aa, type PublicOrderAmounts as ab, type PublicOrderItem as ac, type PublicOrderReference as ad, type PublicPaymentSession as ae, type ReconciliationRequired as af, type RemoveItemParams as ag, type RetrieveBrowserPaymentSessionParams as ah, type RetrieveCartParams as ai, type RetrieveCheckoutParams as aj, type RetryConfig as ak, type RootClient as al, type RootCollectionClient as am, type RootReadOnlyQueryBuilder as an, type ShippingLine as ao, type Sort as ap, type SpentCheckoutPaymentState as aq, type StorefrontContentListOptions as ar, type StorefrontContentReference as as, type StorefrontGalleryItem as at, type StorefrontGalleryItemsListOptions as au, type StorefrontGalleryItemsSort as av, type StorefrontLink as aw, type StorefrontLinksListOptions as ax, type StorefrontLinksSort as ay, type UpdateCartAttributesParams as az, ContentClient as b, TENANT_CONTEXT_PATH as b$, type CollectionSchemaResponse as b0, type ConfirmCustomPaymentSessionOptions as b1, type ConfirmCustomPaymentSessionParams as b2, type ConfirmCustomPaymentSessionResponse as b3, type ConfirmTossPaymentSessionParams as b4, type CreateCustomPaymentSessionParams as b5, type CreateServerCheckoutParams as b6, type CreateServerCheckoutResult as b7, type CustomPaymentSession as b8, type CustomPaymentSessionProof as b9, type EventsRangeOccurrence as bA, type EventsRangeParams as bB, type EventsRangeResponse as bC, type EventsTaxonomyItem as bD, type FindPortOnePaymentParams as bE, type FindPortOnePaymentResult as bF, type GrantCustomerGroupMemberParams as bG, type ListCustomerGroupMembersParams as bH, type ListCustomerGroupMembersResponse as bI, ModerationApi as bJ, PaymentSessionApi as bK, type PaymentSessionApiOptions as bL, type PortOnePaymentCurrentState as bM, PortOnePaymentReconciliationApi as bN, type PortOnePaymentSelector as bO, type PortOneReconciliationDisposition as bP, type ReconcilePortOnePaymentParams as bQ, type ReconcilePortOnePaymentResult as bR, type RetrieveCustomPaymentSessionParams as bS, type RetrieveServerCheckoutParams as bT, type RetrieveServerPaymentSessionParams as bU, type RetrievedCustomPaymentSession as bV, type RevokeCustomerGroupMemberParams as bW, type RootServerClient as bX, type ServerCartMergeParams as bY, type ServerCartMineParams as bZ, type ServerCheckout as b_, type CustomerGroupApiOptions as ba, type CustomerGroupManualSource as bb, type CustomerGroupMember as bc, type CustomerGroupMemberCommandResponse as bd, type CustomerGroupMemberSource as be, type CustomerGroupMembershipSource as bf, type CustomerGroupMembershipState as bg, type EventAdmissionAvailabilityParams as bh, type EventAdmissionAvailabilityResponse as bi, type EventAdmissionAvailabilityType as bj, type EventAdmissionPricePresentment as bk, type EventGuestCancelParams as bl, type EventGuestRegistration as bm, type EventGuestRegistrationResponse as bn, type EventRegistrationAnswerInput as bo, type EventRegistrationAttendeeInput as bp, type EventRegistrationPublic as bq, type EventRegistrationRegisterParams as br, type EventRegistrationRegisterResponse as bs, type EventsCalendarItem as bt, type EventsClientOptions as bu, type EventsDateParam as bv, type EventsExternalSource as bw, type EventsLocation as bx, type EventsOccurrenceLocation as by, type EventsRangeEvent as bz, CustomerNamespace as c, type CreateReturnParams as c$, type TenantContextInput as c0, type TenantContextResponse as c1, type TenantCustomFieldType as c2, type TenantFeatureProgressEvidenceValue as c3, type TenantFeatureProgressFeature as c4, type TenantFeatureProgressGroup as c5, type TenantFeatureProgressInput as c6, type TenantFeatureProgressItem as c7, type TenantFeatureProgressItemState as c8, type TenantFeatureProgressResponse as c9, type ProductDetailCatalog as cA, type StockSnapshotResponse as cB, type RootClientWithEvents as cC, type BulkImportFulfillmentsParams as cD, type BulkImportFulfillmentsResponse as cE, type CalculateShippingParams as cF, type CalculateShippingResult as cG, type CancelOrderParams as cH, type CancelOrderResponse as cI, type CancelReasonCode as cJ, type CartDiscountCode as cK, type CartWarning as cL, type CartWarningCode as cM, type Comment as cN, type CommerceClientOptions as cO, type CommunityClientOptions as cP, type CommunityComment as cQ, type CommunityCommentListSort as cR, type CommunityPost as cS, type CommunityPostCategory as cT, type CommunityPostListSort as cU, type CommunityPostTag as cV, type CommunityPublicAuthorSnapshot as cW, type CommunityPublicMediaAsset as cX, type CommunityPublicReference as cY, type CompatibilityProductSelectionParamEvent as cZ, type CreateFulfillmentParams as c_, type TenantFeatureProgressSeverity as ca, type TenantFeatureProgressStatus as cb, type TenantFieldConfigState as cc, TenantIntrospectionApi as cd, type TenantIntrospectionApiOptions as ce, type ApiDeleteOptions as cf, type PublicReadQueryOptions as cg, CustomerAuth as ch, type CustomerProfile as ci, type CustomerAuthResponse as cj, type CustomerLoginData as ck, type CustomerRegisterResponse as cl, type CustomerRegisterData as cm, type CustomerRefreshResponse as cn, type UpdateProfileData as co, type ProductListingPageParams as cp, type ProductListingPageBaseParams as cq, type ProductDetailParams as cr, type ProductDetailCatalogResult as cs, type ProductListingPageCatalogParams as ct, type ProductListingPageResult as cu, type ProductListingGroupsCatalogItem as cv, type ProductListingPageFullParams as cw, type ProductListingGroupsItem as cx, BaseApi as cy, type ProductDetail as cz, type CustomerMembershipView as d, type ProductListingGroupsCatalogResponse as d$, type CustomerAuthOptions as d0, type CustomerAuthorizationUrlInput as d1, type CustomerAuthorizationUrlResult as d2, CustomerOAuth as d3, type CustomerOAuthCallbackResult as d4, type CustomerOAuthConfig as d5, type CustomerOAuthTokenSet as d6, type CustomerOrderListOptions as d7, DiscountApi as d8, type DiscountApiOptions as d9, type ProductDetailImage as dA, type ProductDetailImageMedia as dB, type ProductDetailMedia as dC, type ProductDetailOption as dD, type ProductDetailOptionValue as dE, type ProductDetailResult as dF, type ProductDetailTag as dG, type ProductDetailUnavailableReason as dH, type ProductDetailVariant as dI, type ProductDetailVariantOptionValue as dJ, type ProductDetailVideo as dK, type ProductDisplayMediaSource as dL, type ProductFallbackLocaleOption as dM, type ProductHrefGroup as dN, type ProductHrefOptions as dO, type ProductHrefProduct as dP, type ProductListingCard as dQ, type ProductListingCardOptions as dR, type ProductListingCardPriceRange as dS, type ProductListingCardRepresentativeVariant as dT, type ProductListingGroup as dU, type ProductListingGroupCatalogSummary as dV, type ProductListingGroupCatalogVariant as dW, type ProductListingGroupProjection as dX, type ProductListingGroupSummary as dY, type ProductListingGroupVariant as dZ, type ProductListingGroupsCatalogProduct as d_, type DiscountErrorReasonCode as da, type FeaturedImagePointerInput as db, type GetOrderByPaymentIdParams as dc, type LegacyProductSelectionParamEvent as dd, type ListingGroupsParams as de, MAX_CART_LINE_ADMISSIONS as df, type ManagedPaymentNextAction as dg, type ManagedPublicPaymentSession as dh, type MarketDTO as di, type MediaValue as dj, type NormalizedOptionSwatch as dk, type NormalizedProductSelection as dl, OrderApi as dm, type OrderApiOptions as dn, type OrderByPaymentResult as dp, PRODUCT_PLP_FIND_OPTIONS as dq, PRODUCT_UPSERT_READONLY_FIELD_REASON as dr, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as ds, type PrepareFulfillmentOrderParams as dt, type PrepareFulfillmentOrderResponse as du, ProductApi as dv, type ProductApiOptions as dw, type ProductDetailBrand as dx, type ProductDetailCatalogVariant as dy, type ProductDetailCategory as dz, type CancelMembershipParams as e, type UpdateReturnParams as e$, type ProductListingGroupsProduct as e0, type ProductListingGroupsResponse as e1, type ProductListingPageFilters as e2, type ProductListingPageSort as e3, type ProductListingProductShape as e4, type ProductListingSwatch as e5, type ProductLocaleOption as e6, type ProductLocaleReadParams as e7, type ProductLocalizedText as e8, type ProductLocalizedValue as e9, type ProductVariantShape as eA, type PublicCheckoutBase as eB, type RequestOptions as eC, type ResolveCancelRefundFailedResponse as eD, type ResolveCancelRefundOutcome as eE, type ResolveCancelRefundParams as eF, type ResolveCancelRefundResponse as eG, type ResolveCancelRefundSucceededResponse as eH, type ResolveProductDisplayMediaInput as eI, type ResolveProductDisplayMediaResult as eJ, type ResolveProductSelectionMediaInput as eK, type ResolveProductSelectionMediaResult as eL, type ResolvedCatalogPrice as eM, type ReturnCancellationReasonCode as eN, type ReturnItem as eO, type ReturnReason as eP, type ReturnWithRefundItem as eQ, type ReturnWithRefundParams as eR, ShippingApi as eS, type ShippingApiOptions as eT, type StockCheckParams as eU, type StockCheckResponse as eV, type StockCheckResult as eW, type StockSnapshotItem as eX, type StockSnapshotParams as eY, type UpdateFulfillmentParams as eZ, type UpdateOrderParams as e_, type ProductMediaResolutionSource as ea, type ProductMoneyRange as eb, type ProductOptionMatrix as ec, type ProductOptionMatrixOption as ed, type ProductOptionMatrixValue as ee, type ProductOptionMatrixVariant as ef, type ProductOptionShape as eg, type ProductOptionValueShape as eh, type ProductOptionValueSwatch as ei, type ProductOptionValueSwatchInput as ej, type ProductPriceRange as ek, type ProductSelectionAvailableSwatch as el, type ProductSelectionAvailableValue as em, type ProductSelectionByOptionValue as en, ProductSelectionCodecError as eo, type ProductSelectionCodecOptions as ep, type ProductSelectionInput as eq, type ProductSelectionMediaPointer as er, type ProductSelectionMediaSource as es, type ProductSelectionOptionValue as et, type ProductSelectionResolution as eu, type ProductSelectionResolutionContext as ev, type ProductSelectionUrlEmit as ew, type ProductSelectionVariant$1 as ex, type ProductUpsertFieldValidationErrorBody as ey, type ProductUpsertFieldValidationErrorReason as ez, type CancelMembershipResponse as f, type ValidateDiscountParams as f0, type ValidateDiscountResult as f1, type WithIdempotencyKey as f2, buildProductHref as f3, buildProductListingCard as f4, buildProductListingGroupProjection as f5, buildProductListingGroupsByOption as f6, buildProductOptionMatrix as f7, buildProductOptionMatrixFromDetail as f8, createProductSelectionCodec as f9, getAvailableOptionValues as fa, getProductSelectionImages as fb, getSelectedValueByOptionId as fc, getVariantAvailableForSale as fd, getVariantAvailableStock as fe, isProductUpsertFieldValidationErrorBody as ff, normalizeProductSelection as fg, normalizeProductSelectionFromMatrix as fh, normalizeSelectedValueIds as fi, parseProductSelection as fj, projectProductToListingShape as fk, resolveFeaturedImagePointer as fl, resolveProductDisplayMedia as fm, resolveProductSelection as fn, resolveProductSelectionFromMatrix as fo, resolveProductSelectionMedia as fp, resolveVariantForSelection as fq, selectNext as fr, selectedSwatchMediaItemId as fs, stringifyProductSelection as ft, toShopifyPriceRangeV2 as fu, type ClientState as g, type ClientConfig as h, type ApiQueryOptions as i, type CancelBrowserPaymentSessionParams as j, type CartMergeParams as k, type CartMergeResult as l, type CartMineResult as m, type CartMutationResult as n, type CheckoutAbandonedReason as o, type CheckoutAmounts as p, type CheckoutOrderReference as q, type CheckoutPaymentSessionRef as r, type CheckoutShippingAddress as s, type ClearCartParams as t, type ClientMetadata as u, type ContentClientOptions as v, type CreateCartParams as w, type CreateCartResult as x, type CreateCheckoutParams as y, type CreateCheckoutResult as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Product, a as ProductVariant, M as Market, C as CustomerProfile, b as CustomerProfileStat, c as CustomerProfileList, d as ProductCollection, e as Config } from './payload-types-
|
|
2
|
-
import { C as Collection } from './const-
|
|
1
|
+
import { P as Product, a as ProductVariant, M as Market, C as CustomerProfile, b as CustomerProfileStat, c as CustomerProfileList, d as ProductCollection, e as Config } from './payload-types-Bk-duc5k.cjs';
|
|
2
|
+
import { C as Collection } from './const-Cv1DCsp6.cjs';
|
|
3
3
|
|
|
4
4
|
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
|
|
5
5
|
type PublicCustomerProfileListEntry = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Product, a as ProductVariant, M as Market, C as CustomerProfile, b as CustomerProfileStat, c as CustomerProfileList, d as ProductCollection, e as Config } from './payload-types-
|
|
2
|
-
import { C as Collection } from './const-
|
|
1
|
+
import { P as Product, a as ProductVariant, M as Market, C as CustomerProfile, b as CustomerProfileStat, c as CustomerProfileList, d as ProductCollection, e as Config } from './payload-types-Bk-duc5k.js';
|
|
2
|
+
import { C as Collection } from './const-BKUqg96Q.js';
|
|
3
3
|
|
|
4
4
|
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
|
|
5
5
|
type PublicCustomerProfileListEntry = {
|