@01.software/sdk 0.73.1 → 0.75.0
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 +75 -0
- package/README.md +109 -4
- package/dist/client.cjs +59 -14
- 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 +59 -14
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BH4dIZ6c.d.cts → collection-client-BNC6tUdK.d.cts} +3 -4
- package/dist/{collection-client-lLAl3xCZ.d.ts → collection-client-CNkBMUHj.d.ts} +3 -4
- package/dist/collection-documents-Bl0AF0m0.d.cts +5486 -0
- package/dist/collection-documents-Bl0AF0m0.d.ts +5486 -0
- package/dist/{const-CCvoknRY.d.ts → const-CcOT0taO.d.cts} +1 -3
- package/dist/{const-BS2EaIp4.d.cts → const-CcOT0taO.d.ts} +1 -3
- package/dist/{index-DVqNpmsc.d.ts → index-CQsJvMCN.d.ts} +2 -3
- package/dist/{index-CHdrzJ8-.d.cts → index-CfxkqaY9.d.cts} +2 -3
- package/dist/index.cjs +60 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +60 -14
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +16 -1
- 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 +16 -1
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +1 -2
- package/dist/realtime.d.ts +1 -2
- package/dist/server.cjs +50 -11
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +50 -11
- package/dist/server.js.map +1 -1
- package/dist/{types-lbzbJSZh.d.ts → types-Btxz6NVi.d.ts} +161 -31
- package/dist/types-CQw4HXky.d.ts +151 -0
- package/dist/{types-Chwgg4CQ.d.cts → types-DMwRdJ-4.d.cts} +161 -31
- package/dist/types-Jr4xTiGs.d.cts +151 -0
- package/dist/ui/form.cjs.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/video.cjs.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/ui/video.js.map +1 -1
- package/dist/webhook.d.cts +7 -5
- package/dist/webhook.d.ts +7 -5
- package/package.json +1 -1
- package/dist/payload-types-PXkmefhZ.d.cts +0 -14027
- package/dist/payload-types-PXkmefhZ.d.ts +0 -14027
- package/dist/types-CQRsG6sA.d.ts +0 -53
- package/dist/types-CyMz0Kzc.d.cts +0 -53
|
@@ -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 {
|
|
1
|
+
import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-CcOT0taO.js';
|
|
2
|
+
import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-CQw4HXky.js';
|
|
3
|
+
import { a6 as Order, aj as Transaction, a9 as Return } from './collection-documents-Bl0AF0m0.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"];
|
|
@@ -950,6 +950,10 @@ type CancelOrderUnpaidCommittedResponseFields = {
|
|
|
950
950
|
refundedAmount: 0;
|
|
951
951
|
providerRefunded: false;
|
|
952
952
|
};
|
|
953
|
+
type CancelOrderCreditOnlyCommittedResponseFields = {
|
|
954
|
+
refundedAmount: number;
|
|
955
|
+
providerRefunded: false;
|
|
956
|
+
};
|
|
953
957
|
type CancelOrderPaidCommittedResponseFields = {
|
|
954
958
|
transactionId: string;
|
|
955
959
|
refundedAmount: 0;
|
|
@@ -974,7 +978,13 @@ type CancelOrderUnpaidCommittedResponse = CancelOrderResponseBase & CancelOrderU
|
|
|
974
978
|
status: 'canceled';
|
|
975
979
|
cancelCommitted: true;
|
|
976
980
|
};
|
|
977
|
-
|
|
981
|
+
/** Order paid entirely with customer credit: the credit is restored in the
|
|
982
|
+
* cancel commit, `refundedAmount` is the restored amount, and no PG refund runs. */
|
|
983
|
+
type CancelOrderCreditOnlyCommittedResponse = CancelOrderResponseBase & CancelOrderCreditOnlyCommittedResponseFields & {
|
|
984
|
+
status: 'canceled';
|
|
985
|
+
cancelCommitted: true;
|
|
986
|
+
};
|
|
987
|
+
type CancelOrderCommittedResponse = CancelOrderPaidCommittedResponse | CancelOrderUnpaidCommittedResponse | CancelOrderCreditOnlyCommittedResponse;
|
|
978
988
|
type CancelOrderAlreadyCanceledResponse = CancelOrderResponseBase & CancelOrderAlreadyCanceledResponseFields & {
|
|
979
989
|
status: 'canceled';
|
|
980
990
|
cancelCommitted: false;
|
|
@@ -1059,9 +1069,12 @@ type ReturnWithRefundItem = {
|
|
|
1059
1069
|
};
|
|
1060
1070
|
type ReturnWithRefundParams = WithIdempotencyKey<{
|
|
1061
1071
|
orderNumber: string;
|
|
1072
|
+
/** Complete an approved Return for this order using its persisted items, amounts, fees and reason. */
|
|
1073
|
+
existingReturnId?: string;
|
|
1062
1074
|
reason?: ReturnReason;
|
|
1063
1075
|
reasonDetail?: string;
|
|
1064
1076
|
returnItems: ReturnWithRefundItem[];
|
|
1077
|
+
/** Line refund after return shipping/restocking fees; initial shipping refund is added separately. */
|
|
1065
1078
|
refundAmount: number;
|
|
1066
1079
|
returnShippingFee?: number;
|
|
1067
1080
|
initialShippingRefundAmount?: number;
|
|
@@ -1074,6 +1087,47 @@ type ReturnWithRefundParams = WithIdempotencyKey<{
|
|
|
1074
1087
|
/** Canonical trimmed receipt URL; the server rejects values over 2048 characters. */
|
|
1075
1088
|
refundReceiptUrl?: string;
|
|
1076
1089
|
}>;
|
|
1090
|
+
/** Shipment mutation receipt. Relationships are IDs; raw document extensions are excluded. */
|
|
1091
|
+
type FulfillmentMutationResponse = {
|
|
1092
|
+
id: string;
|
|
1093
|
+
tenant?: string | null;
|
|
1094
|
+
order: string;
|
|
1095
|
+
fulfillmentOrder: string | null;
|
|
1096
|
+
status: 'pending' | 'packed' | 'shipped' | 'delivered' | 'canceled' | 'failed';
|
|
1097
|
+
carrier?: string | null;
|
|
1098
|
+
trackingNumber?: string | null;
|
|
1099
|
+
trackingUrl?: string | null;
|
|
1100
|
+
packedAt?: string | null;
|
|
1101
|
+
shippedAt?: string | null;
|
|
1102
|
+
deliveredAt?: string | null;
|
|
1103
|
+
createdAt: string;
|
|
1104
|
+
updatedAt: string;
|
|
1105
|
+
};
|
|
1106
|
+
/** Bounded completion receipt; full Return/Transaction documents require separate reads. */
|
|
1107
|
+
type ReturnWithRefundResponse = {
|
|
1108
|
+
return: {
|
|
1109
|
+
id: string;
|
|
1110
|
+
status: 'completed';
|
|
1111
|
+
refundAmount: number;
|
|
1112
|
+
returnShippingFee: number;
|
|
1113
|
+
initialShippingRefundAmount: number;
|
|
1114
|
+
completedAt: string;
|
|
1115
|
+
};
|
|
1116
|
+
notificationWarning?: string;
|
|
1117
|
+
} & ({
|
|
1118
|
+
transaction: {
|
|
1119
|
+
id: string;
|
|
1120
|
+
type: 'refund';
|
|
1121
|
+
kind: 'refund';
|
|
1122
|
+
status: 'refunded';
|
|
1123
|
+
amount: number;
|
|
1124
|
+
providerEventId: string | null;
|
|
1125
|
+
};
|
|
1126
|
+
refundSeq: number;
|
|
1127
|
+
} | {
|
|
1128
|
+
transaction: null;
|
|
1129
|
+
refundSeq: null;
|
|
1130
|
+
});
|
|
1077
1131
|
type CreateFulfillmentParams = WithIdempotencyKey<{
|
|
1078
1132
|
orderNumber: string;
|
|
1079
1133
|
fulfillmentOrderId?: string | number;
|
|
@@ -1151,14 +1205,23 @@ declare class OrderApi extends BaseApi {
|
|
|
1151
1205
|
getByPaymentId(params: GetOrderByPaymentIdParams): Promise<OrderByPaymentResult>;
|
|
1152
1206
|
cancelOrder(params: CancelOrderParams): Promise<CancelOrderResponse>;
|
|
1153
1207
|
resolveCancelRefund(params: ResolveCancelRefundParams): Promise<ResolveCancelRefundResponse>;
|
|
1154
|
-
|
|
1208
|
+
/**
|
|
1209
|
+
* Creates a shipment from an in-progress fulfillment order.
|
|
1210
|
+
* Call `prepareFulfillmentOrder` for the same orderNumber first; payment alone
|
|
1211
|
+
* does not prepare the fulfillment order. This method does not prepare it
|
|
1212
|
+
* automatically and returns HTTP 400 `not_fulfillable` when none is in progress.
|
|
1213
|
+
*/
|
|
1214
|
+
createFulfillment(params: CreateFulfillmentParams): Promise<FulfillmentMutationResponse>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Moves a paid order's open fulfillment orders to in_progress.
|
|
1217
|
+
* Call this before `createFulfillment` for the same orderNumber: shipment
|
|
1218
|
+
* creation requires an in-progress fulfillment order. Preparation does not
|
|
1219
|
+
* require carrier or tracking information.
|
|
1220
|
+
*/
|
|
1155
1221
|
prepareFulfillmentOrder(params: PrepareFulfillmentOrderParams): Promise<PrepareFulfillmentOrderResponse>;
|
|
1156
|
-
updateFulfillment(params: UpdateFulfillmentParams): Promise<
|
|
1222
|
+
updateFulfillment(params: UpdateFulfillmentParams): Promise<FulfillmentMutationResponse>;
|
|
1157
1223
|
bulkImportFulfillments(params: BulkImportFulfillmentsParams): Promise<BulkImportFulfillmentsResponse>;
|
|
1158
|
-
returnWithRefund(params: ReturnWithRefundParams): Promise<
|
|
1159
|
-
return: Return;
|
|
1160
|
-
transaction: Transaction | null;
|
|
1161
|
-
}>;
|
|
1224
|
+
returnWithRefund(params: ReturnWithRefundParams): Promise<ReturnWithRefundResponse>;
|
|
1162
1225
|
createReturn(params: CreateReturnParams): Promise<Return>;
|
|
1163
1226
|
updateReturn(params: UpdateReturnParams): Promise<Return>;
|
|
1164
1227
|
}
|
|
@@ -1340,6 +1403,17 @@ interface CustomerAuthOptions {
|
|
|
1340
1403
|
interface CustomerWithdrawalResult {
|
|
1341
1404
|
withdrawnAt: string;
|
|
1342
1405
|
}
|
|
1406
|
+
/** Reauthenticate only the requested withdrawal; never starts a login session. */
|
|
1407
|
+
type CustomerWithdrawalRequest = {
|
|
1408
|
+
currentPassword: string;
|
|
1409
|
+
} | {
|
|
1410
|
+
emailCode: string;
|
|
1411
|
+
};
|
|
1412
|
+
type CustomerWithdrawalCodeResult = {
|
|
1413
|
+
message: string;
|
|
1414
|
+
};
|
|
1415
|
+
/** Code-issuance 409 reasons; common HTTP/auth errors also apply. */
|
|
1416
|
+
type CustomerWithdrawalCodeReauthenticationReason = 'password_reauthentication_required' | 'withdrawal_session_refresh_required';
|
|
1343
1417
|
|
|
1344
1418
|
type CustomerOrderListOptions = {
|
|
1345
1419
|
page?: number;
|
|
@@ -1474,8 +1548,10 @@ declare class CustomerAuth {
|
|
|
1474
1548
|
* revocation fails. A legacy access-only session has no refresh family here.
|
|
1475
1549
|
*/
|
|
1476
1550
|
logoutAsync(): Promise<void>;
|
|
1477
|
-
/**
|
|
1478
|
-
|
|
1551
|
+
/** Send a withdrawal-only code to the current passwordless customer's stored email. */
|
|
1552
|
+
requestWithdrawalCode(): Promise<CustomerWithdrawalCodeResult>;
|
|
1553
|
+
/** Archive the current account and clear this client's credentials on success. */
|
|
1554
|
+
withdraw(proof: string | CustomerWithdrawalRequest): Promise<CustomerWithdrawalResult>;
|
|
1479
1555
|
/**
|
|
1480
1556
|
* Get the current authenticated customer's profile
|
|
1481
1557
|
*/
|
|
@@ -3350,16 +3426,13 @@ declare class ServerCommerceClient {
|
|
|
3350
3426
|
getByPaymentId: (params: GetOrderByPaymentIdParams) => Promise<OrderByPaymentResult>;
|
|
3351
3427
|
cancelOrder: (params: CancelOrderParams) => Promise<CancelOrderResponse>;
|
|
3352
3428
|
resolveCancelRefund: (params: ResolveCancelRefundParams) => Promise<ResolveCancelRefundResponse>;
|
|
3353
|
-
createFulfillment: (params: CreateFulfillmentParams) => Promise<
|
|
3429
|
+
createFulfillment: (params: CreateFulfillmentParams) => Promise<FulfillmentMutationResponse>;
|
|
3354
3430
|
prepareFulfillmentOrder: (params: PrepareFulfillmentOrderParams) => Promise<PrepareFulfillmentOrderResponse>;
|
|
3355
|
-
updateFulfillment: (params: UpdateFulfillmentParams) => Promise<
|
|
3431
|
+
updateFulfillment: (params: UpdateFulfillmentParams) => Promise<FulfillmentMutationResponse>;
|
|
3356
3432
|
bulkImportFulfillments: (params: BulkImportFulfillmentsParams) => Promise<BulkImportFulfillmentsResponse>;
|
|
3357
3433
|
createReturn: (params: CreateReturnParams) => Promise<Return>;
|
|
3358
3434
|
updateReturn: (params: UpdateReturnParams) => Promise<Return>;
|
|
3359
|
-
returnWithRefund: (params: ReturnWithRefundParams) => Promise<
|
|
3360
|
-
return: Return;
|
|
3361
|
-
transaction: Transaction | null;
|
|
3362
|
-
}>;
|
|
3435
|
+
returnWithRefund: (params: ReturnWithRefundParams) => Promise<ReturnWithRefundResponse>;
|
|
3363
3436
|
};
|
|
3364
3437
|
readonly checkouts: {
|
|
3365
3438
|
create: (params: CreateServerCheckoutParams) => Promise<CreateServerCheckoutResult>;
|
|
@@ -3549,7 +3622,30 @@ interface EventRegistrationRegisterParams {
|
|
|
3549
3622
|
quantity?: number;
|
|
3550
3623
|
attendee?: EventRegistrationAttendeeInput;
|
|
3551
3624
|
answers?: EventRegistrationAnswerInput[];
|
|
3625
|
+
/** Required only when the event enables email verification. */
|
|
3626
|
+
emailVerification?: {
|
|
3627
|
+
requestId: string;
|
|
3628
|
+
code: string;
|
|
3629
|
+
};
|
|
3630
|
+
}
|
|
3631
|
+
interface EventRegistrationEmailVerificationRequest {
|
|
3632
|
+
event: string;
|
|
3633
|
+
occurrence: string;
|
|
3634
|
+
quantity?: number;
|
|
3635
|
+
attendee: {
|
|
3636
|
+
name?: string;
|
|
3637
|
+
email: string;
|
|
3638
|
+
phone?: string;
|
|
3639
|
+
};
|
|
3640
|
+
answers?: EventRegistrationAnswerInput[];
|
|
3552
3641
|
}
|
|
3642
|
+
type EventRegistrationEmailVerificationResponse = {
|
|
3643
|
+
verificationRequired: false;
|
|
3644
|
+
} | {
|
|
3645
|
+
verificationRequired: true;
|
|
3646
|
+
requestId: string;
|
|
3647
|
+
expiresAt: string;
|
|
3648
|
+
};
|
|
3553
3649
|
interface EventRegistrationPublic {
|
|
3554
3650
|
id?: string | number;
|
|
3555
3651
|
event?: unknown;
|
|
@@ -3626,6 +3722,7 @@ declare class EventsClient {
|
|
|
3626
3722
|
getAdmissionAvailability(params: EventAdmissionAvailabilityParams): Promise<EventAdmissionAvailabilityResponse>;
|
|
3627
3723
|
listMyRegistrations(params?: EventMyRegistrationsParams): Promise<EventMyRegistrationsResponse>;
|
|
3628
3724
|
register(params: EventRegistrationRegisterParams): Promise<EventRegistrationRegisterResponse>;
|
|
3725
|
+
requestRegistrationEmailVerification(params: EventRegistrationEmailVerificationRequest): Promise<EventRegistrationEmailVerificationResponse>;
|
|
3629
3726
|
getGuestRegistration(token: string): Promise<EventGuestRegistrationResponse>;
|
|
3630
3727
|
cancelGuestRegistration(token: string, params?: EventGuestCancelParams): Promise<EventGuestRegistrationResponse>;
|
|
3631
3728
|
private execute;
|
|
@@ -3715,9 +3812,15 @@ interface TenantContextResponse {
|
|
|
3715
3812
|
webhookConfigured: boolean;
|
|
3716
3813
|
};
|
|
3717
3814
|
}
|
|
3718
|
-
type TenantFeatureProgressFeature = 'ecommerce';
|
|
3719
|
-
|
|
3720
|
-
|
|
3815
|
+
type TenantFeatureProgressFeature = 'ecommerce' | 'customers' | 'community' | 'membership' | 'events';
|
|
3816
|
+
/**
|
|
3817
|
+
* Feature progress request. The default stays `'ecommerce'` so code written
|
|
3818
|
+
* against the ecommerce-only SDK keeps its response type; pass
|
|
3819
|
+
* `TenantFeatureProgressInput<TenantFeatureProgressFeature>` to accept any
|
|
3820
|
+
* supported feature.
|
|
3821
|
+
*/
|
|
3822
|
+
interface TenantFeatureProgressInput<F extends TenantFeatureProgressFeature = 'ecommerce'> {
|
|
3823
|
+
feature: F;
|
|
3721
3824
|
includeEvidence?: boolean;
|
|
3722
3825
|
}
|
|
3723
3826
|
type TenantFeatureProgressStatus = 'ready' | 'attention' | 'blocked';
|
|
@@ -3738,9 +3841,8 @@ interface TenantFeatureProgressGroup {
|
|
|
3738
3841
|
summary?: string;
|
|
3739
3842
|
items: TenantFeatureProgressItem[];
|
|
3740
3843
|
}
|
|
3741
|
-
interface
|
|
3844
|
+
interface TenantFeatureProgressResponseBase {
|
|
3742
3845
|
schemaVersion: 1;
|
|
3743
|
-
feature: TenantFeatureProgressFeature;
|
|
3744
3846
|
status: TenantFeatureProgressStatus;
|
|
3745
3847
|
generatedAt: string;
|
|
3746
3848
|
tenant: {
|
|
@@ -3753,9 +3855,6 @@ interface TenantFeatureProgressResponse {
|
|
|
3753
3855
|
planBlocked: string[];
|
|
3754
3856
|
closureAdded: string[];
|
|
3755
3857
|
};
|
|
3756
|
-
config: {
|
|
3757
|
-
fulfillmentMode: 'shipping' | 'none';
|
|
3758
|
-
};
|
|
3759
3858
|
summary: {
|
|
3760
3859
|
complete: number;
|
|
3761
3860
|
total: number;
|
|
@@ -3765,6 +3864,36 @@ interface TenantFeatureProgressResponse {
|
|
|
3765
3864
|
};
|
|
3766
3865
|
groups: TenantFeatureProgressGroup[];
|
|
3767
3866
|
}
|
|
3867
|
+
/**
|
|
3868
|
+
* Ecommerce feature progress response. The name is kept for source
|
|
3869
|
+
* compatibility with SDKs that only supported `ecommerce`; use
|
|
3870
|
+
* `TenantFeatureProgressResponseUnion` for a value of any supported feature.
|
|
3871
|
+
*/
|
|
3872
|
+
interface TenantFeatureProgressResponse extends TenantFeatureProgressResponseBase {
|
|
3873
|
+
feature: 'ecommerce';
|
|
3874
|
+
config: {
|
|
3875
|
+
fulfillmentMode: 'shipping' | 'none';
|
|
3876
|
+
};
|
|
3877
|
+
}
|
|
3878
|
+
type TenantEcommerceFeatureProgressResponse = TenantFeatureProgressResponse;
|
|
3879
|
+
interface TenantCustomersFeatureProgressResponse extends TenantFeatureProgressResponseBase {
|
|
3880
|
+
feature: 'customers';
|
|
3881
|
+
}
|
|
3882
|
+
interface TenantCommunityFeatureProgressResponse extends TenantFeatureProgressResponseBase {
|
|
3883
|
+
feature: 'community';
|
|
3884
|
+
}
|
|
3885
|
+
interface TenantMembershipFeatureProgressResponse extends TenantFeatureProgressResponseBase {
|
|
3886
|
+
feature: 'membership';
|
|
3887
|
+
}
|
|
3888
|
+
interface TenantEventsFeatureProgressResponse extends TenantFeatureProgressResponseBase {
|
|
3889
|
+
feature: 'events';
|
|
3890
|
+
}
|
|
3891
|
+
/** Progress response for any supported feature; narrow on `feature` before reading `config`. */
|
|
3892
|
+
type TenantFeatureProgressResponseUnion = TenantEcommerceFeatureProgressResponse | TenantCustomersFeatureProgressResponse | TenantCommunityFeatureProgressResponse | TenantMembershipFeatureProgressResponse | TenantEventsFeatureProgressResponse;
|
|
3893
|
+
/** Response branch for one feature, e.g. `TenantFeatureProgressResponseFor<'community'>`. */
|
|
3894
|
+
type TenantFeatureProgressResponseFor<F extends TenantFeatureProgressFeature> = Extract<TenantFeatureProgressResponseUnion, {
|
|
3895
|
+
feature: F;
|
|
3896
|
+
}>;
|
|
3768
3897
|
interface CollectionFieldSchema {
|
|
3769
3898
|
name: string;
|
|
3770
3899
|
path: string;
|
|
@@ -3817,7 +3946,7 @@ interface CollectionSchemaResponse {
|
|
|
3817
3946
|
interface TenantIntrospectionClient {
|
|
3818
3947
|
context: (params?: TenantContextInput) => Promise<TenantContextResponse>;
|
|
3819
3948
|
collectionSchema: (collection: string) => Promise<CollectionSchemaResponse>;
|
|
3820
|
-
featureProgress: (params: TenantFeatureProgressInput) => Promise<
|
|
3949
|
+
featureProgress: <F extends TenantFeatureProgressFeature>(params: TenantFeatureProgressInput<F>) => Promise<TenantFeatureProgressResponseFor<F>>;
|
|
3821
3950
|
}
|
|
3822
3951
|
/** Canonical tenant-context transport identity shared by SDK-backed callers. */
|
|
3823
3952
|
declare const TENANT_CONTEXT_PATH = "/api/tenants/context";
|
|
@@ -3825,7 +3954,7 @@ declare class TenantIntrospectionApi extends RawBaseApi implements TenantIntrosp
|
|
|
3825
3954
|
constructor(options: TenantIntrospectionApiOptions);
|
|
3826
3955
|
context(params?: TenantContextInput): Promise<TenantContextResponse>;
|
|
3827
3956
|
collectionSchema(collection: string): Promise<CollectionSchemaResponse>;
|
|
3828
|
-
featureProgress(params: TenantFeatureProgressInput): Promise<
|
|
3957
|
+
featureProgress<F extends TenantFeatureProgressFeature>(params: TenantFeatureProgressInput<F>): Promise<TenantFeatureProgressResponseFor<F>>;
|
|
3829
3958
|
}
|
|
3830
3959
|
|
|
3831
3960
|
type CustomerGroupManualSource = {
|
|
@@ -4417,7 +4546,7 @@ interface RootClient {
|
|
|
4417
4546
|
getConfig(): ClientConfig;
|
|
4418
4547
|
}
|
|
4419
4548
|
/** Publishable-key event helpers usable without a customer session. */
|
|
4420
|
-
type ServerEventsClient = Pick<EventsClient, 'getRange' | 'getAdmissionAvailability' | 'register' | 'getGuestRegistration' | 'cancelGuestRegistration'>;
|
|
4549
|
+
type ServerEventsClient = Pick<EventsClient, 'getRange' | 'getAdmissionAvailability' | 'register' | 'requestRegistrationEmailVerification' | 'getGuestRegistration' | 'cancelGuestRegistration'>;
|
|
4421
4550
|
interface RootServerClient {
|
|
4422
4551
|
commerce: ServerCommerceClient;
|
|
4423
4552
|
tenant: TenantIntrospectionClient;
|
|
@@ -4436,7 +4565,7 @@ interface RootServerClient {
|
|
|
4436
4565
|
credits: CreditsApi;
|
|
4437
4566
|
/** Set on {@link createServerClient} return values; optional for structural mocks. */
|
|
4438
4567
|
events?: ServerEventsClient;
|
|
4439
|
-
/** Quota-aware VOD admission. */
|
|
4568
|
+
/** Quota-aware VOD admission. Set on {@link createServerClient} return values; optional for structural mocks. */
|
|
4440
4569
|
video?: VideoPlaybackClient;
|
|
4441
4570
|
community: CommunityClient & {
|
|
4442
4571
|
moderation: {
|
|
@@ -4458,10 +4587,11 @@ type RootClientWithEvents = RootClient & {
|
|
|
4458
4587
|
};
|
|
4459
4588
|
type RootServerClientWithEvents = RootServerClient & {
|
|
4460
4589
|
events: ServerEventsClient;
|
|
4590
|
+
video: VideoPlaybackClient;
|
|
4461
4591
|
};
|
|
4462
4592
|
type DeepPartial<T> = {
|
|
4463
4593
|
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
4464
4594
|
};
|
|
4465
4595
|
type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
|
|
4466
4596
|
|
|
4467
|
-
export { type ClearCartParams as $, type AddItemParams as A, type BillingCustodyParams as B, type CancelMembershipParams as C, type CartApiOptions as D, type EndSubscribeIntentParams as E, type CartMergeResult as F, type CartMineResult as G, type CartMutationResult as H, InstallationCredentialsApi as I, type CheckoutAbandonedReason as J, type CheckoutAmounts as K, CheckoutApi as L, MarketDiscovery as M, type CheckoutApiOptions as N, type CheckoutListItem as O, type CheckoutOrderReference as P, type CheckoutPaymentSessionRef as Q, RawBaseApi as R, type ServerApiOptions as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, VideoPlaybackClient as V, type CheckoutQueryParams as W, type CheckoutQueryResult as X, type CheckoutShippingAddress as Y, type CheckoutStatus as Z, type ClaimExternalEffectParams as _, ServerCommerceClient as a, type ExternalCustomerLinkListResponse as a$, type CollectionCustomFieldDefinition as a0, type CollectionCustomFields as a1, type CollectionFieldSchema as a2, type CollectionSchemaResponse as a3, type ConfirmCustomPaymentSessionOptions as a4, type ConfirmCustomPaymentSessionParams as a5, type ConfirmCustomPaymentSessionResponse as a6, type ConfirmTossPaymentSessionParams as a7, type ConnectExternalCustomerLinkParams as a8, type CreateCartParams as a9, type EventAdmissionAvailabilityResponse as aA, type EventAdmissionAvailabilityType as aB, type EventAdmissionPricePresentment as aC, type EventGuestCancelParams as aD, type EventGuestRegistration as aE, type EventGuestRegistrationResponse as aF, type EventMyRegistration as aG, type EventMyRegistrationsParams as aH, type EventMyRegistrationsResponse as aI, type EventRegistrationAnswerInput as aJ, type EventRegistrationAttendeeInput as aK, type EventRegistrationPublic as aL, type EventRegistrationRegisterParams as aM, type EventRegistrationRegisterResponse as aN, type EventsCalendarItem as aO, EventsClient as aP, type EventsClientOptions as aQ, type EventsDateParam as aR, type EventsExternalSource as aS, type EventsLocation as aT, type EventsOccurrenceLocation as aU, type EventsRangeEvent as aV, type EventsRangeOccurrence as aW, type EventsRangeParams as aX, type EventsRangeResponse as aY, type EventsTaxonomyItem as aZ, type ExternalCustomerLink as a_, type CreateCartResult as aa, type CreateCustomPaymentSessionParams as ab, type CreateInstallationCredentialParams as ac, type CreatePaymentSessionParams as ad, type CreatePortOnePaymentSessionParams as ae, type CreateServerCheckoutParams as af, type CreateServerCheckoutResult as ag, type CreateServerPaymentSessionParams as ah, type CreateServerPortOnePaymentSessionParams as ai, type CustomPaymentSession as aj, type CustomPaymentSessionProof as ak, type CustomerBenefitVoucher as al, type CustomerCreditAccountResponse as am, type CustomerCreditBalances as an, type CustomerCreditGrant as ao, type CustomerGroupApiOptions as ap, type CustomerGroupManualSource as aq, type CustomerGroupMember as ar, type CustomerGroupMemberCommandResponse as as, type CustomerGroupMemberSource as at, type CustomerGroupMembershipSource as au, type CustomerGroupMembershipState as av, type CustomerMembershipView as aw, type CustomerSnapshot as ax, type DisposeInstallationCredentialParams as ay, type EventAdmissionAvailabilityParams as az, type SubscribeMembershipParams as b, type PublicCheckout as b$, type ExternalCustomerPreviousState as b0, type ExternalEffectClaimErrorReason as b1, type ExternalEffectClaimSnapshot as b2, type ExternalEffectClaimState as b3, type ExternalEffectLeaseParams as b4, type ExternalEffectLocator as b5, type FindPortOnePaymentParams as b6, type FindPortOnePaymentResult as b7, type GetBenefitVoucherRequest as b8, type GetCustomerCreditAccountRequest as b9, type PaymentFailureReason as bA, type PaymentNextAction as bB, type PaymentProviderStatus as bC, type PaymentReconciliationReason as bD, PaymentSessionApi as bE, type PaymentSessionApiOptions as bF, type PaymentSessionRole as bG, type PortOneHostedPaymentMethod as bH, type PortOnePaymentCurrentState as bI, type PortOnePaymentNextAction as bJ, PortOnePaymentReconciliationApi as bK, type PortOnePaymentSelector as bL, type PortOnePublicPaymentSession as bM, type PortOneReconciliationDisposition as bN, type ProductGraphRevisionParams as bO, type ProductGraphRevisionResponse as bP, type ProductUpsertInput as bQ, type ProductUpsertParams as bR, type ProductUpsertResponse as bS, type ProductUpsertVariantInput as bT, type PublicAttribute as bU, type PublicCaptureEvidence as bV, type PublicCart as bW, type PublicCartItem as bX, type PublicCartItemAdmission as bY, type PublicCartMarket as bZ, type PublicCartReference as b_, type GetCustomerCreditGrantRequest as ba, type GetExternalCustomerLinkParams as bb, type GetExternalEffectClaimParams as bc, type GrantCustomerCreditRequest as bd, type GrantCustomerGroupMemberParams as be, type InstallationCredentialIdentity as bf, type InstallationCredentialSnapshot as bg, type IssueBenefitVoucherRequest as bh, type IssueBenefitVoucherResponse as bi, type ListBenefitVouchersRequest as bj, type ListBenefitVouchersResponse as bk, type ListCustomerGroupMembersParams as bl, type ListCustomerGroupMembersResponse as bm, type ListExternalCustomerLinksParams as bn, type ListMyBenefitVouchersRequest as bo, type ListMyBenefitVouchersResponse as bp, type MembershipStatus as bq, ModerationApi as br, type Money as bs, type MutateBenefitVoucherResponse as bt, type MutateExternalCustomerLinkParams as bu, type MyCustomerCreditHistoryRequest as bv, type MyCustomerCreditHistoryResponse as bw, type MyCustomerCreditsRequest as bx, type MyCustomerCreditsResponse as by, type OpenCheckoutPaymentState as bz, type SubscribeMembershipResponse as c, parseMyCustomerCreditHistory as c$, type PublicCheckoutItem as c0, type PublicMediaAsset as c1, type PublicMediaSize as c2, type PublicOrder as c3, type PublicOrderAmounts as c4, type PublicOrderItem as c5, type PublicOrderReference as c6, type PublicPaymentSession as c7, type ReconcilePortOnePaymentParams as c8, type ReconcilePortOnePaymentResult as c9, type TenantCustomFieldType as cA, type TenantFeatureProgressEvidenceValue as cB, type TenantFeatureProgressFeature as cC, type TenantFeatureProgressGroup as cD, type TenantFeatureProgressInput as cE, type TenantFeatureProgressItem as cF, type TenantFeatureProgressItemState as cG, type TenantFeatureProgressResponse as cH, type TenantFeatureProgressSeverity as cI, type TenantFeatureProgressStatus as cJ, type TenantFieldConfigState as cK, TenantIntrospectionApi as cL, type TenantIntrospectionApiOptions as cM, type UpdateCartAttributesParams as cN, type UpdateDiscountCodesParams as cO, type UpdateItemParams as cP, type VariantInput as cQ, type VariantPricesUpdateInput as cR, type VariantPricesUpdateParams as cS, type VariantPricesUpdateResponse as cT, type VoidBenefitVoucherRequest as cU, getExternalEffectClaimErrorReason as cV, invalidBenefitVoucherResponse as cW, parseBenefitVoucher as cX, parseBenefitVoucherList as cY, parseCustomerCreditAccount as cZ, parseCustomerCreditGrant as c_, type ReconciliationRequired as ca, type RecordExternalEffectRecoveryParams as cb, type RedeemBenefitVoucherRequest as cc, type RemoveItemParams as cd, type ReplaceInstallationCredentialParams as ce, type ReportExternalEffectParams as cf, type RetrieveCartParams as cg, type RetrieveCheckoutParams as ch, type RetrieveCustomPaymentSessionParams as ci, type RetrieveServerCheckoutParams as cj, type RetrieveServerPaymentSessionParams as ck, type RetrievedCustomPaymentSession as cl, type RevokeCustomerCreditRequest as cm, type RevokeCustomerCreditResponse as cn, type RevokeCustomerGroupMemberParams as co, type RootServerClient as cp, type ServerAddItemParams as cq, type ServerCartMergeParams as cr, type ServerCartMineParams as cs, type ServerCheckout as ct, type ServerUpdateItemParams as cu, type ShippingLine as cv, type SpentCheckoutPaymentState as cw, TENANT_CONTEXT_PATH as cx, type TenantContextInput as cy, type TenantContextResponse as cz, type EndSubscribeIntentResponse as d, type BillingCustodyWireRequest as d$, parseMyCustomerCredits as d0, parseRevokeCustomerCredit as d1, CustomerScopedApi as d2, CustomerCreditsApi as d3, CommerceClient as d4, ContentClient as d5, CustomerNamespace as d6, type ClientConfig as d7, type ApiQueryOptions as d8, type CancelBrowserPaymentSessionParams as d9, type ApiDocumentWriteOptions as dA, type ApiWriteOptions 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 dO, type ProductDetailCatalogResult as dP, type ProductListingPageCatalogParams as dQ, type ProductListingPageResult as dR, type ProductListingGroupsCatalogItem as dS, type ProductListingPageFullParams as dT, type ProductListingGroupsItem as dU, BaseApi as dV, type ProductDetail as dW, type ProductDetailCatalog as dX, type StockSnapshotResponse as dY, type RootClientWithEvents as dZ, type BillingCustodyContextWireRequest as d_, type CartMergeParams as da, type ClientMetadata as db, type ContentClientOptions as dc, type CreateCheckoutParams as dd, type CreateCheckoutResult as de, type DebugConfig as df, type DeepPartial as dg, type ExtractArrayType as dh, type PayloadFindResponse as di, type PayloadMutationResponse as dj, type RetrieveBrowserPaymentSessionParams as dk, type RetryConfig as dl, type RootClient as dm, type RootCollectionClient as dn, type RootReadOnlyQueryBuilder as dp, type Sort as dq, type StorefrontContentListOptions as dr, type StorefrontContentReference as ds, type StorefrontGalleryItem as dt, type StorefrontGalleryItemsListOptions as du, type StorefrontGalleryItemsSort as dv, type StorefrontLink as dw, type StorefrontLinksListOptions as dx, type StorefrontLinksSort as dy, type Where as dz, type CancelMembershipResponse as e, type ProductDetailCatalogVariant as e$, type BulkImportFulfillmentsParams as e0, type BulkImportFulfillmentsResponse as e1, type CalculateShippingParams as e2, type CalculateShippingResult as e3, type CancelOrderManagedAlreadyCanceledResponse as e4, type CancelOrderManagedCommittedResponse as e5, type CancelOrderParams as e6, type CancelOrderResponse as e7, type CancelReasonCode as e8, type CartDiscountCode as e9, type CustomerWithdrawalResult as eA, DiscountApi as eB, type DiscountApiOptions as eC, type DiscountErrorReasonCode as eD, type FeaturedImagePointerInput as eE, type GetOrderByPaymentIdParams as eF, type LegacyProductSelectionParamEvent as eG, type ListingGroupsParams as eH, MAX_CART_LINE_ADMISSIONS as eI, type ManagedCancelRefundOutcome as eJ, type ManagedPaymentNextAction as eK, type ManagedPublicPaymentSession as eL, type MarketDTO as eM, type MediaValue as eN, type NormalizedOptionSwatch as eO, type NormalizedProductSelection as eP, OrderApi as eQ, type OrderApiOptions as eR, type OrderByPaymentResult as eS, PRODUCT_PLP_FIND_OPTIONS as eT, PRODUCT_UPSERT_READONLY_FIELD_REASON as eU, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as eV, type PrepareFulfillmentOrderParams as eW, type PrepareFulfillmentOrderResponse as eX, ProductApi as eY, type ProductApiOptions as eZ, type ProductDetailBrand as e_, type CartWarning as ea, type CartWarningCode as eb, type CheckoutFunding as ec, type Comment as ed, type CommerceClientOptions as ee, type CommunityClientOptions as ef, type CommunityComment as eg, type CommunityCommentListSort as eh, type CommunityPost as ei, type CommunityPostCategory as ej, type CommunityPostListSort as ek, type CommunityPostTag as el, type CommunityPublicAuthorSnapshot as em, type CommunityPublicMediaAsset as en, type CommunityPublicReference as eo, type CompatibilityProductSelectionParamEvent as ep, type CreateFulfillmentParams as eq, type CreateReturnParams as er, type CustomerAuthOptions as es, type CustomerAuthorizationUrlInput as et, type CustomerAuthorizationUrlResult as eu, CustomerOAuth as ev, type CustomerOAuthCallbackResult as ew, type CustomerOAuthConfig as ex, type CustomerOAuthTokenSet as ey, type CustomerOrderListOptions as ez, type BillingCustodyResponse as f, type ProductUpsertFieldValidationErrorBody as f$, type ProductDetailCategory as f0, type ProductDetailImage as f1, type ProductDetailImageMedia as f2, type ProductDetailMedia as f3, type ProductDetailOption as f4, type ProductDetailOptionValue as f5, type ProductDetailResult as f6, type ProductDetailTag as f7, type ProductDetailUnavailableReason as f8, type ProductDetailVariant as f9, type ProductLocaleReadParams as fA, type ProductLocalizedText as fB, type ProductLocalizedValue as fC, type ProductMediaResolutionSource as fD, type ProductMoneyRange as fE, type ProductOptionMatrix as fF, type ProductOptionMatrixOption as fG, type ProductOptionMatrixValue as fH, type ProductOptionMatrixVariant as fI, type ProductOptionShape as fJ, type ProductOptionValueShape as fK, type ProductOptionValueSwatch as fL, type ProductOptionValueSwatchInput as fM, type ProductPriceRange as fN, type ProductSelectionAvailableSwatch as fO, type ProductSelectionAvailableValue as fP, type ProductSelectionByOptionValue as fQ, ProductSelectionCodecError as fR, type ProductSelectionCodecOptions as fS, type ProductSelectionInput as fT, type ProductSelectionMediaPointer as fU, type ProductSelectionMediaSource as fV, type ProductSelectionOptionValue as fW, type ProductSelectionResolution as fX, type ProductSelectionResolutionContext as fY, type ProductSelectionUrlEmit as fZ, type ProductSelectionVariant$1 as f_, type ProductDetailVariantOptionValue as fa, type ProductDetailVideo as fb, type ProductDisplayMediaSource as fc, type ProductFallbackLocaleOption as fd, type ProductHrefGroup as fe, type ProductHrefOptions as ff, type ProductHrefProduct as fg, type ProductListingCard as fh, type ProductListingCardOptions as fi, type ProductListingCardPriceRange as fj, type ProductListingCardRepresentativeVariant as fk, type ProductListingGroup as fl, type ProductListingGroupCatalogSummary as fm, type ProductListingGroupCatalogVariant as fn, type ProductListingGroupProjection as fo, type ProductListingGroupSummary as fp, type ProductListingGroupVariant as fq, type ProductListingGroupsCatalogProduct as fr, type ProductListingGroupsCatalogResponse as fs, type ProductListingGroupsProduct as ft, type ProductListingGroupsResponse as fu, type ProductListingPageFilters as fv, type ProductListingPageSort as fw, type ProductListingProductShape as fx, type ProductListingSwatch as fy, type ProductLocaleOption as fz, type BillingCustodyContextParams as g, type ProductUpsertFieldValidationErrorReason as g0, type ProductVariantShape as g1, type PublicCheckoutBase as g2, type RequestOptions as g3, type ResolveCancelRefundFailedResponse as g4, type ResolveCancelRefundOutcome as g5, type ResolveCancelRefundParams as g6, type ResolveCancelRefundResponse as g7, type ResolveCancelRefundSucceededResponse as g8, type ResolveProductDisplayMediaInput as g9, buildProductListingGroupsByOption as gA, buildProductOptionMatrix as gB, buildProductOptionMatrixFromDetail as gC, createProductSelectionCodec as gD, getAvailableOptionValues as gE, getProductSelectionImages as gF, getSelectedValueByOptionId as gG, getVariantAvailableForSale as gH, getVariantAvailableStock as gI, isProductUpsertFieldValidationErrorBody as gJ, normalizeProductSelection as gK, normalizeProductSelectionFromMatrix as gL, normalizeSelectedValueIds as gM, parseProductSelection as gN, projectProductToListingShape as gO, resolveFeaturedImagePointer as gP, resolveProductDisplayMedia as gQ, resolveProductSelection as gR, resolveProductSelectionFromMatrix as gS, resolveProductSelectionMedia as gT, resolveVariantForSelection as gU, selectNext as gV, selectedSwatchMediaItemId as gW, stringifyProductSelection as gX, toShopifyPriceRangeV2 as gY, type ResolveProductDisplayMediaResult as ga, type ResolveProductSelectionMediaInput as gb, type ResolveProductSelectionMediaResult as gc, type ResolvedCatalogPrice as gd, type ReturnCancellationReasonCode as ge, type ReturnItem as gf, type ReturnReason as gg, type ReturnWithRefundItem as gh, type ReturnWithRefundParams as gi, ShippingApi as gj, type ShippingApiOptions as gk, type StockCheckParams as gl, type StockCheckResponse as gm, type StockCheckResult as gn, type StockSnapshotItem as go, type StockSnapshotParams as gp, type UpdateFulfillmentParams as gq, type UpdateOrderParams as gr, type UpdateReturnParams as gs, type ValidateDiscountParams as gt, type ValidateDiscountResult as gu, type VideoPlaybackResponse as gv, type WithIdempotencyKey as gw, buildProductHref as gx, buildProductListingCard as gy, buildProductListingGroupProjection as gz, type BillingCustodyContextResponse as h, CustomerGroupApi as i, ExternalEffectClaimsApi as j, ExternalCustomerLinksApi as k, BenefitVouchersApi as l, CreditsApi as m, CommunityClient as n, type BanCustomerParams as o, type CommunityBan as p, type ClientState as q, type ClientServerConfig as r, type RootServerClientWithEvents as s, BENEFIT_VOUCHER_ERROR_REASONS as t, BENEFIT_VOUCHER_VOID_REASONS as u, type BenefitVoucher as v, type BenefitVoucherErrorReason as w, type CancelServerPaymentSessionParams as x, type CaptureExternalCustomerPreviousStateParams as y, CartApi as z };
|
|
4597
|
+
export { type ClearCartParams as $, type AddItemParams as A, type BillingCustodyParams as B, type CancelMembershipParams as C, type CartApiOptions as D, type EndSubscribeIntentParams as E, type CartMergeResult as F, type CartMineResult as G, type CartMutationResult as H, InstallationCredentialsApi as I, type CheckoutAbandonedReason as J, type CheckoutAmounts as K, CheckoutApi as L, MarketDiscovery as M, type CheckoutApiOptions as N, type CheckoutListItem as O, type CheckoutOrderReference as P, type CheckoutPaymentSessionRef as Q, RawBaseApi as R, type ServerApiOptions as S, type TenantIntrospectionClient as T, type UnbanCustomerParams as U, VideoPlaybackClient as V, type CheckoutQueryParams as W, type CheckoutQueryResult as X, type CheckoutShippingAddress as Y, type CheckoutStatus as Z, type ClaimExternalEffectParams as _, ServerCommerceClient as a, type ExternalCustomerLinkListResponse as a$, type CollectionCustomFieldDefinition as a0, type CollectionCustomFields as a1, type CollectionFieldSchema as a2, type CollectionSchemaResponse as a3, type ConfirmCustomPaymentSessionOptions as a4, type ConfirmCustomPaymentSessionParams as a5, type ConfirmCustomPaymentSessionResponse as a6, type ConfirmTossPaymentSessionParams as a7, type ConnectExternalCustomerLinkParams as a8, type CreateCartParams as a9, type EventAdmissionAvailabilityResponse as aA, type EventAdmissionAvailabilityType as aB, type EventAdmissionPricePresentment as aC, type EventGuestCancelParams as aD, type EventGuestRegistration as aE, type EventGuestRegistrationResponse as aF, type EventMyRegistration as aG, type EventMyRegistrationsParams as aH, type EventMyRegistrationsResponse as aI, type EventRegistrationAnswerInput as aJ, type EventRegistrationAttendeeInput as aK, type EventRegistrationPublic as aL, type EventRegistrationRegisterParams as aM, type EventRegistrationRegisterResponse as aN, type EventsCalendarItem as aO, EventsClient as aP, type EventsClientOptions as aQ, type EventsDateParam as aR, type EventsExternalSource as aS, type EventsLocation as aT, type EventsOccurrenceLocation as aU, type EventsRangeEvent as aV, type EventsRangeOccurrence as aW, type EventsRangeParams as aX, type EventsRangeResponse as aY, type EventsTaxonomyItem as aZ, type ExternalCustomerLink as a_, type CreateCartResult as aa, type CreateCustomPaymentSessionParams as ab, type CreateInstallationCredentialParams as ac, type CreatePaymentSessionParams as ad, type CreatePortOnePaymentSessionParams as ae, type CreateServerCheckoutParams as af, type CreateServerCheckoutResult as ag, type CreateServerPaymentSessionParams as ah, type CreateServerPortOnePaymentSessionParams as ai, type CustomPaymentSession as aj, type CustomPaymentSessionProof as ak, type CustomerBenefitVoucher as al, type CustomerCreditAccountResponse as am, type CustomerCreditBalances as an, type CustomerCreditGrant as ao, type CustomerGroupApiOptions as ap, type CustomerGroupManualSource as aq, type CustomerGroupMember as ar, type CustomerGroupMemberCommandResponse as as, type CustomerGroupMemberSource as at, type CustomerGroupMembershipSource as au, type CustomerGroupMembershipState as av, type CustomerMembershipView as aw, type CustomerSnapshot as ax, type DisposeInstallationCredentialParams as ay, type EventAdmissionAvailabilityParams as az, type SubscribeMembershipParams as b, type PublicCheckout as b$, type ExternalCustomerPreviousState as b0, type ExternalEffectClaimErrorReason as b1, type ExternalEffectClaimSnapshot as b2, type ExternalEffectClaimState as b3, type ExternalEffectLeaseParams as b4, type ExternalEffectLocator as b5, type FindPortOnePaymentParams as b6, type FindPortOnePaymentResult as b7, type GetBenefitVoucherRequest as b8, type GetCustomerCreditAccountRequest as b9, type PaymentFailureReason as bA, type PaymentNextAction as bB, type PaymentProviderStatus as bC, type PaymentReconciliationReason as bD, PaymentSessionApi as bE, type PaymentSessionApiOptions as bF, type PaymentSessionRole as bG, type PortOneHostedPaymentMethod as bH, type PortOnePaymentCurrentState as bI, type PortOnePaymentNextAction as bJ, PortOnePaymentReconciliationApi as bK, type PortOnePaymentSelector as bL, type PortOnePublicPaymentSession as bM, type PortOneReconciliationDisposition as bN, type ProductGraphRevisionParams as bO, type ProductGraphRevisionResponse as bP, type ProductUpsertInput as bQ, type ProductUpsertParams as bR, type ProductUpsertResponse as bS, type ProductUpsertVariantInput as bT, type PublicAttribute as bU, type PublicCaptureEvidence as bV, type PublicCart as bW, type PublicCartItem as bX, type PublicCartItemAdmission as bY, type PublicCartMarket as bZ, type PublicCartReference as b_, type GetCustomerCreditGrantRequest as ba, type GetExternalCustomerLinkParams as bb, type GetExternalEffectClaimParams as bc, type GrantCustomerCreditRequest as bd, type GrantCustomerGroupMemberParams as be, type InstallationCredentialIdentity as bf, type InstallationCredentialSnapshot as bg, type IssueBenefitVoucherRequest as bh, type IssueBenefitVoucherResponse as bi, type ListBenefitVouchersRequest as bj, type ListBenefitVouchersResponse as bk, type ListCustomerGroupMembersParams as bl, type ListCustomerGroupMembersResponse as bm, type ListExternalCustomerLinksParams as bn, type ListMyBenefitVouchersRequest as bo, type ListMyBenefitVouchersResponse as bp, type MembershipStatus as bq, ModerationApi as br, type Money as bs, type MutateBenefitVoucherResponse as bt, type MutateExternalCustomerLinkParams as bu, type MyCustomerCreditHistoryRequest as bv, type MyCustomerCreditHistoryResponse as bw, type MyCustomerCreditsRequest as bx, type MyCustomerCreditsResponse as by, type OpenCheckoutPaymentState as bz, type SubscribeMembershipResponse as c, type VoidBenefitVoucherRequest as c$, type PublicCheckoutItem as c0, type PublicMediaAsset as c1, type PublicMediaSize as c2, type PublicOrder as c3, type PublicOrderAmounts as c4, type PublicOrderItem as c5, type PublicOrderReference as c6, type PublicPaymentSession as c7, type ReconcilePortOnePaymentParams as c8, type ReconcilePortOnePaymentResult as c9, type TenantContextResponse as cA, type TenantCustomFieldType as cB, type TenantCustomersFeatureProgressResponse as cC, type TenantEcommerceFeatureProgressResponse as cD, type TenantEventsFeatureProgressResponse as cE, type TenantFeatureProgressEvidenceValue as cF, type TenantFeatureProgressFeature as cG, type TenantFeatureProgressGroup as cH, type TenantFeatureProgressInput as cI, type TenantFeatureProgressItem as cJ, type TenantFeatureProgressItemState as cK, type TenantFeatureProgressResponse as cL, type TenantFeatureProgressResponseFor as cM, type TenantFeatureProgressResponseUnion as cN, type TenantFeatureProgressSeverity as cO, type TenantFeatureProgressStatus as cP, type TenantFieldConfigState as cQ, TenantIntrospectionApi as cR, type TenantIntrospectionApiOptions as cS, type TenantMembershipFeatureProgressResponse as cT, type UpdateCartAttributesParams as cU, type UpdateDiscountCodesParams as cV, type UpdateItemParams as cW, type VariantInput as cX, type VariantPricesUpdateInput as cY, type VariantPricesUpdateParams as cZ, type VariantPricesUpdateResponse as c_, type ReconciliationRequired as ca, type RecordExternalEffectRecoveryParams as cb, type RedeemBenefitVoucherRequest as cc, type RemoveItemParams as cd, type ReplaceInstallationCredentialParams as ce, type ReportExternalEffectParams as cf, type RetrieveCartParams as cg, type RetrieveCheckoutParams as ch, type RetrieveCustomPaymentSessionParams as ci, type RetrieveServerCheckoutParams as cj, type RetrieveServerPaymentSessionParams as ck, type RetrievedCustomPaymentSession as cl, type RevokeCustomerCreditRequest as cm, type RevokeCustomerCreditResponse as cn, type RevokeCustomerGroupMemberParams as co, type RootServerClient as cp, type ServerAddItemParams as cq, type ServerCartMergeParams as cr, type ServerCartMineParams as cs, type ServerCheckout as ct, type ServerUpdateItemParams as cu, type ShippingLine as cv, type SpentCheckoutPaymentState as cw, TENANT_CONTEXT_PATH as cx, type TenantCommunityFeatureProgressResponse as cy, type TenantContextInput as cz, type EndSubscribeIntentResponse as d, type ProductListingGroupsItem as d$, getExternalEffectClaimErrorReason as d0, invalidBenefitVoucherResponse as d1, parseBenefitVoucher as d2, parseBenefitVoucherList as d3, parseCustomerCreditAccount as d4, parseCustomerCreditGrant as d5, parseMyCustomerCreditHistory as d6, parseMyCustomerCredits as d7, parseRevokeCustomerCredit as d8, CustomerScopedApi as d9, type StorefrontGalleryItem as dA, type StorefrontGalleryItemsListOptions as dB, type StorefrontGalleryItemsSort as dC, type StorefrontLink as dD, type StorefrontLinksListOptions as dE, type StorefrontLinksSort as dF, type Where as dG, type ApiDocumentWriteOptions as dH, type ApiWriteOptions as dI, type ApiDeleteOptions as dJ, type PublicReadQueryOptions as dK, CustomerAuth as dL, type CustomerProfile as dM, type CustomerAuthResponse as dN, type CustomerLoginData as dO, type CustomerRegisterResponse as dP, type CustomerRegisterData as dQ, type CustomerRefreshResponse as dR, type UpdateProfileData as dS, type ProductListingPageParams as dT, type ProductListingPageBaseParams as dU, type ProductDetailParams as dV, type ProductDetailCatalogResult as dW, type ProductListingPageCatalogParams as dX, type ProductListingPageResult as dY, type ProductListingGroupsCatalogItem as dZ, type ProductListingPageFullParams as d_, CustomerCreditsApi as da, CommerceClient as db, ContentClient as dc, CustomerNamespace as dd, type ClientConfig as de, type ApiQueryOptions as df, type CancelBrowserPaymentSessionParams as dg, type CartMergeParams as dh, type ClientMetadata as di, type ContentClientOptions as dj, type CreateCheckoutParams as dk, type CreateCheckoutResult as dl, type DebugConfig as dm, type DeepPartial as dn, type ExtractArrayType as dp, type PayloadFindResponse as dq, type PayloadMutationResponse as dr, type RetrieveBrowserPaymentSessionParams as ds, type RetryConfig as dt, type RootClient as du, type RootCollectionClient as dv, type RootReadOnlyQueryBuilder as dw, type Sort as dx, type StorefrontContentListOptions as dy, type StorefrontContentReference as dz, type CancelMembershipResponse as e, type MediaValue as e$, BaseApi as e0, type ProductDetail as e1, type ProductDetailCatalog as e2, type StockSnapshotResponse as e3, type RootClientWithEvents as e4, type BillingCustodyContextWireRequest as e5, type BillingCustodyWireRequest as e6, type BulkImportFulfillmentsParams as e7, type BulkImportFulfillmentsResponse as e8, type CalculateShippingParams as e9, type CustomerAuthOptions as eA, type CustomerAuthorizationUrlInput as eB, type CustomerAuthorizationUrlResult as eC, CustomerOAuth as eD, type CustomerOAuthCallbackResult as eE, type CustomerOAuthConfig as eF, type CustomerOAuthTokenSet as eG, type CustomerOrderListOptions as eH, type CustomerWithdrawalCodeReauthenticationReason as eI, type CustomerWithdrawalCodeResult as eJ, type CustomerWithdrawalRequest as eK, type CustomerWithdrawalResult as eL, DiscountApi as eM, type DiscountApiOptions as eN, type DiscountErrorReasonCode as eO, type EventRegistrationEmailVerificationRequest as eP, type EventRegistrationEmailVerificationResponse as eQ, type FeaturedImagePointerInput as eR, type FulfillmentMutationResponse as eS, type GetOrderByPaymentIdParams as eT, type LegacyProductSelectionParamEvent as eU, type ListingGroupsParams as eV, MAX_CART_LINE_ADMISSIONS as eW, type ManagedCancelRefundOutcome as eX, type ManagedPaymentNextAction as eY, type ManagedPublicPaymentSession as eZ, type MarketDTO as e_, type CalculateShippingResult as ea, type CancelOrderCreditOnlyCommittedResponse as eb, type CancelOrderManagedAlreadyCanceledResponse as ec, type CancelOrderManagedCommittedResponse as ed, type CancelOrderParams as ee, type CancelOrderResponse as ef, type CancelReasonCode as eg, type CartDiscountCode as eh, type CartWarning as ei, type CartWarningCode as ej, type CheckoutFunding as ek, type Comment as el, type CommerceClientOptions as em, type CommunityClientOptions as en, type CommunityComment as eo, type CommunityCommentListSort as ep, type CommunityPost as eq, type CommunityPostCategory as er, type CommunityPostListSort as es, type CommunityPostTag as et, type CommunityPublicAuthorSnapshot as eu, type CommunityPublicMediaAsset as ev, type CommunityPublicReference as ew, type CompatibilityProductSelectionParamEvent as ex, type CreateFulfillmentParams as ey, type CreateReturnParams as ez, type BillingCustodyResponse as f, type ProductPriceRange as f$, type NormalizedOptionSwatch as f0, type NormalizedProductSelection as f1, OrderApi as f2, type OrderApiOptions as f3, type OrderByPaymentResult as f4, PRODUCT_PLP_FIND_OPTIONS as f5, PRODUCT_UPSERT_READONLY_FIELD_REASON as f6, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as f7, type PrepareFulfillmentOrderParams as f8, type PrepareFulfillmentOrderResponse as f9, type ProductListingGroupCatalogSummary as fA, type ProductListingGroupCatalogVariant as fB, type ProductListingGroupProjection as fC, type ProductListingGroupSummary as fD, type ProductListingGroupVariant as fE, type ProductListingGroupsCatalogProduct as fF, type ProductListingGroupsCatalogResponse as fG, type ProductListingGroupsProduct as fH, type ProductListingGroupsResponse as fI, type ProductListingPageFilters as fJ, type ProductListingPageSort as fK, type ProductListingProductShape as fL, type ProductListingSwatch as fM, type ProductLocaleOption as fN, type ProductLocaleReadParams as fO, type ProductLocalizedText as fP, type ProductLocalizedValue as fQ, type ProductMediaResolutionSource as fR, type ProductMoneyRange as fS, type ProductOptionMatrix as fT, type ProductOptionMatrixOption as fU, type ProductOptionMatrixValue as fV, type ProductOptionMatrixVariant as fW, type ProductOptionShape as fX, type ProductOptionValueShape as fY, type ProductOptionValueSwatch as fZ, type ProductOptionValueSwatchInput as f_, ProductApi as fa, type ProductApiOptions as fb, type ProductDetailBrand as fc, type ProductDetailCatalogVariant as fd, type ProductDetailCategory as fe, type ProductDetailImage as ff, type ProductDetailImageMedia as fg, type ProductDetailMedia as fh, type ProductDetailOption as fi, type ProductDetailOptionValue as fj, type ProductDetailResult as fk, type ProductDetailTag as fl, type ProductDetailUnavailableReason as fm, type ProductDetailVariant as fn, type ProductDetailVariantOptionValue as fo, type ProductDetailVideo as fp, type ProductDisplayMediaSource as fq, type ProductFallbackLocaleOption as fr, type ProductHrefGroup as fs, type ProductHrefOptions as ft, type ProductHrefProduct as fu, type ProductListingCard as fv, type ProductListingCardOptions as fw, type ProductListingCardPriceRange as fx, type ProductListingCardRepresentativeVariant as fy, type ProductListingGroup as fz, type BillingCustodyContextParams as g, normalizeSelectedValueIds as g$, type ProductSelectionAvailableSwatch as g0, type ProductSelectionAvailableValue as g1, type ProductSelectionByOptionValue as g2, ProductSelectionCodecError as g3, type ProductSelectionCodecOptions as g4, type ProductSelectionInput as g5, type ProductSelectionMediaPointer as g6, type ProductSelectionMediaSource as g7, type ProductSelectionOptionValue as g8, type ProductSelectionResolution as g9, type StockCheckParams as gA, type StockCheckResponse as gB, type StockCheckResult as gC, type StockSnapshotItem as gD, type StockSnapshotParams as gE, type UpdateFulfillmentParams as gF, type UpdateOrderParams as gG, type UpdateReturnParams as gH, type ValidateDiscountParams as gI, type ValidateDiscountResult as gJ, type VideoPlaybackResponse as gK, type WithIdempotencyKey as gL, buildProductHref as gM, buildProductListingCard as gN, buildProductListingGroupProjection as gO, buildProductListingGroupsByOption as gP, buildProductOptionMatrix as gQ, buildProductOptionMatrixFromDetail as gR, createProductSelectionCodec as gS, getAvailableOptionValues as gT, getProductSelectionImages as gU, getSelectedValueByOptionId as gV, getVariantAvailableForSale as gW, getVariantAvailableStock as gX, isProductUpsertFieldValidationErrorBody as gY, normalizeProductSelection as gZ, normalizeProductSelectionFromMatrix as g_, type ProductSelectionResolutionContext as ga, type ProductSelectionUrlEmit as gb, type ProductSelectionVariant$1 as gc, type ProductUpsertFieldValidationErrorBody as gd, type ProductUpsertFieldValidationErrorReason as ge, type ProductVariantShape as gf, type PublicCheckoutBase as gg, type RequestOptions as gh, type ResolveCancelRefundFailedResponse as gi, type ResolveCancelRefundOutcome as gj, type ResolveCancelRefundParams as gk, type ResolveCancelRefundResponse as gl, type ResolveCancelRefundSucceededResponse as gm, type ResolveProductDisplayMediaInput as gn, type ResolveProductDisplayMediaResult as go, type ResolveProductSelectionMediaInput as gp, type ResolveProductSelectionMediaResult as gq, type ResolvedCatalogPrice as gr, type ReturnCancellationReasonCode as gs, type ReturnItem as gt, type ReturnReason as gu, type ReturnWithRefundItem as gv, type ReturnWithRefundParams as gw, type ReturnWithRefundResponse as gx, ShippingApi as gy, type ShippingApiOptions as gz, type BillingCustodyContextResponse as h, parseProductSelection as h0, projectProductToListingShape as h1, resolveFeaturedImagePointer as h2, resolveProductDisplayMedia as h3, resolveProductSelection as h4, resolveProductSelectionFromMatrix as h5, resolveProductSelectionMedia as h6, resolveVariantForSelection as h7, selectNext as h8, selectedSwatchMediaItemId as h9, stringifyProductSelection as ha, toShopifyPriceRangeV2 as hb, CustomerGroupApi as i, ExternalEffectClaimsApi as j, ExternalCustomerLinksApi as k, BenefitVouchersApi as l, CreditsApi as m, CommunityClient as n, type BanCustomerParams as o, type CommunityBan as p, type ClientState as q, type ClientServerConfig as r, type RootServerClientWithEvents as s, BENEFIT_VOUCHER_ERROR_REASONS as t, BENEFIT_VOUCHER_VOID_REASONS as u, type BenefitVoucher as v, type BenefitVoucherErrorReason as w, type CancelServerPaymentSessionParams as x, type CaptureExternalCustomerPreviousStateParams as y, CartApi as z };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { T as TenantMetadatum, P as Product, a as ProductVariant, b as ProductOption, c as ProductOptionValue, d as ProductCategory, e as ProductTag, f as ProductCollection, M as Market, B as Brand, C as CustomerProfile, g as CustomerProfileStat, S as ShippingPolicy, h as ShippingZone, D as Document, i as DocumentCategory, j as DocumentType, A as Article, k as ArticleAuthor, l as ArticleCategory, m as ArticleTag, n as Playlist, o as PlaylistCategory, p as PlaylistTag, q as Track, r as TrackCategory, s as TrackTag, G as Gallery, t as GalleryCategory, u as GalleryTag, v as GalleryItem, L as Link, w as LinkCategory, x as LinkTag, y as Canvase, z as CanvasNodeType, E as CanvasEdgeType, H as CanvasCategory, I as CanvasTag, J as VideoCategory, K as VideoTag, F as Form, R as ReactionType, N as PostCategory, O as PostTag, Q as CustomerProfileList, U as EventCalendar, X as Event, Y as EventCategory, Z as EventOccurrence, _ as EventTag, $ as MembershipPlan, a0 as MembershipPlanPrice, a1 as CustomerMembership, a2 as Tenant, a3 as TenantLogo, a4 as BrandLogo, a5 as Image, V as Video, a6 as Order, a7 as OrderTag, a8 as OrderItem, a9 as Return, aa as ReturnItem, ab as Refund, ac as RefundLineItem, ad as OrderEditSession, ae as OrderStagedChange, af as FulfillmentOrder, ag as FulfillmentOrderItem, ah as Fulfillment, ai as FulfillmentItem, aj as Transaction, ak as Customer, al as CustomerAddress, am as FormSubmission, an as Cart, ao as CartItem, ap as Checkout, aq as CheckoutItem, ar as Discount, as as DraftOrder, at as DraftOrderItem, au as Post, av as Comment, aw as Reaction, ax as Bookmark, ay as LiveStream, az as CanvasNode, aA as CanvasEdge, aB as CustomerGroup, aC as Report, aD as CommunityBan, aE as OrderExportProfile, aF as MembershipCharge } from './collection-documents-Bl0AF0m0.js';
|
|
2
|
+
import { C as Collection } from './const-CcOT0taO.js';
|
|
3
|
+
|
|
4
|
+
interface PublicCollectionMap {
|
|
5
|
+
'tenant-metadata': TenantMetadatum;
|
|
6
|
+
products: Product;
|
|
7
|
+
'product-variants': ProductVariant;
|
|
8
|
+
'product-options': ProductOption;
|
|
9
|
+
'product-option-values': ProductOptionValue;
|
|
10
|
+
'product-categories': ProductCategory;
|
|
11
|
+
'product-tags': ProductTag;
|
|
12
|
+
'product-collections': ProductCollection;
|
|
13
|
+
markets: Market;
|
|
14
|
+
brands: Brand;
|
|
15
|
+
'customer-profiles': CustomerProfile;
|
|
16
|
+
'customer-profile-stats': CustomerProfileStat;
|
|
17
|
+
'shipping-policies': ShippingPolicy;
|
|
18
|
+
'shipping-zones': ShippingZone;
|
|
19
|
+
documents: Document;
|
|
20
|
+
'document-categories': DocumentCategory;
|
|
21
|
+
'document-types': DocumentType;
|
|
22
|
+
articles: Article;
|
|
23
|
+
'article-authors': ArticleAuthor;
|
|
24
|
+
'article-categories': ArticleCategory;
|
|
25
|
+
'article-tags': ArticleTag;
|
|
26
|
+
playlists: Playlist;
|
|
27
|
+
'playlist-categories': PlaylistCategory;
|
|
28
|
+
'playlist-tags': PlaylistTag;
|
|
29
|
+
tracks: Track;
|
|
30
|
+
'track-categories': TrackCategory;
|
|
31
|
+
'track-tags': TrackTag;
|
|
32
|
+
galleries: Gallery;
|
|
33
|
+
'gallery-categories': GalleryCategory;
|
|
34
|
+
'gallery-tags': GalleryTag;
|
|
35
|
+
'gallery-items': GalleryItem;
|
|
36
|
+
links: Link;
|
|
37
|
+
'link-categories': LinkCategory;
|
|
38
|
+
'link-tags': LinkTag;
|
|
39
|
+
canvases: Canvase;
|
|
40
|
+
'canvas-node-types': CanvasNodeType;
|
|
41
|
+
'canvas-edge-types': CanvasEdgeType;
|
|
42
|
+
'canvas-categories': CanvasCategory;
|
|
43
|
+
'canvas-tags': CanvasTag;
|
|
44
|
+
'video-categories': VideoCategory;
|
|
45
|
+
'video-tags': VideoTag;
|
|
46
|
+
forms: Form;
|
|
47
|
+
'reaction-types': ReactionType;
|
|
48
|
+
'post-categories': PostCategory;
|
|
49
|
+
'post-tags': PostTag;
|
|
50
|
+
'customer-profile-lists': CustomerProfileList;
|
|
51
|
+
'event-calendars': EventCalendar;
|
|
52
|
+
events: Event;
|
|
53
|
+
'event-categories': EventCategory;
|
|
54
|
+
'event-occurrences': EventOccurrence;
|
|
55
|
+
'event-tags': EventTag;
|
|
56
|
+
'membership-plans': MembershipPlan;
|
|
57
|
+
'membership-plan-prices': MembershipPlanPrice;
|
|
58
|
+
'customer-memberships': CustomerMembership;
|
|
59
|
+
tenants: Tenant;
|
|
60
|
+
'tenant-logos': TenantLogo;
|
|
61
|
+
'brand-logos': BrandLogo;
|
|
62
|
+
images: Image;
|
|
63
|
+
videos: Video;
|
|
64
|
+
orders: Order;
|
|
65
|
+
'order-tags': OrderTag;
|
|
66
|
+
'order-items': OrderItem;
|
|
67
|
+
returns: Return;
|
|
68
|
+
'return-items': ReturnItem;
|
|
69
|
+
refunds: Refund;
|
|
70
|
+
'refund-line-items': RefundLineItem;
|
|
71
|
+
'order-edit-sessions': OrderEditSession;
|
|
72
|
+
'order-staged-changes': OrderStagedChange;
|
|
73
|
+
'fulfillment-orders': FulfillmentOrder;
|
|
74
|
+
'fulfillment-order-items': FulfillmentOrderItem;
|
|
75
|
+
fulfillments: Fulfillment;
|
|
76
|
+
'fulfillment-items': FulfillmentItem;
|
|
77
|
+
transactions: Transaction;
|
|
78
|
+
customers: Customer;
|
|
79
|
+
'customer-addresses': CustomerAddress;
|
|
80
|
+
'form-submissions': FormSubmission;
|
|
81
|
+
carts: Cart;
|
|
82
|
+
'cart-items': CartItem;
|
|
83
|
+
checkouts: Checkout;
|
|
84
|
+
'checkout-items': CheckoutItem;
|
|
85
|
+
discounts: Discount;
|
|
86
|
+
'draft-orders': DraftOrder;
|
|
87
|
+
'draft-order-items': DraftOrderItem;
|
|
88
|
+
posts: Post;
|
|
89
|
+
comments: Comment;
|
|
90
|
+
reactions: Reaction;
|
|
91
|
+
bookmarks: Bookmark;
|
|
92
|
+
'live-streams': LiveStream;
|
|
93
|
+
'canvas-nodes': CanvasNode;
|
|
94
|
+
'canvas-edges': CanvasEdge;
|
|
95
|
+
'customer-groups': CustomerGroup;
|
|
96
|
+
reports: Report;
|
|
97
|
+
'community-bans': CommunityBan;
|
|
98
|
+
'order-export-profiles': OrderExportProfile;
|
|
99
|
+
'membership-charges': MembershipCharge;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata' | 'recordCreatedAt'>;
|
|
103
|
+
type PublicCustomerProfileListEntry = {
|
|
104
|
+
profile: PublicCustomerProfile;
|
|
105
|
+
rank: number;
|
|
106
|
+
label?: string | null;
|
|
107
|
+
caption?: string | null;
|
|
108
|
+
score?: number | null;
|
|
109
|
+
badgeColor?: string | null;
|
|
110
|
+
badgeImage?: CustomerProfileList['entries'] extends Array<infer Entry> ? Entry extends {
|
|
111
|
+
badgeImage?: infer Image;
|
|
112
|
+
} ? Image : unknown : unknown;
|
|
113
|
+
publicMetadata?: unknown;
|
|
114
|
+
};
|
|
115
|
+
type PublicCustomerProfileList = Omit<CustomerProfileList, 'tenant' | 'visibility' | 'metadata' | 'entries'> & {
|
|
116
|
+
entries?: PublicCustomerProfileListEntry[] | null;
|
|
117
|
+
};
|
|
118
|
+
type PublicCustomerProfileStats = Omit<CustomerProfileStat, 'tenant' | 'profile' | 'recordCreatedAt'> & {
|
|
119
|
+
profile: string | PublicCustomerProfile;
|
|
120
|
+
};
|
|
121
|
+
type PublicMarket = Omit<Market, 'fxRateFromShopCurrency' | 'priceAdjustmentType' | 'priceAdjustmentValue' | 'roundingRule' | 'metadata'>;
|
|
122
|
+
type PublicProductVariant = Omit<ProductVariant, 'marketPrices' | 'product'> & {
|
|
123
|
+
product: string | PublicProduct;
|
|
124
|
+
};
|
|
125
|
+
type PublicProduct = Omit<Product, 'collectionItems' | 'variants' | 'markets'> & {
|
|
126
|
+
variants?: {
|
|
127
|
+
docs?: (string | PublicProductVariant)[];
|
|
128
|
+
hasNextPage?: boolean;
|
|
129
|
+
totalDocs?: number;
|
|
130
|
+
};
|
|
131
|
+
markets?: (string | PublicMarket)[] | null;
|
|
132
|
+
};
|
|
133
|
+
type PublicProductCollection = Omit<ProductCollection, 'items'>;
|
|
134
|
+
type PublicRefund = Omit<Refund, 'fundingCheckout' | 'creditAmount' | 'providerAmount'>;
|
|
135
|
+
type PublicRefundLineItem = Omit<RefundLineItem, 'refund'> & {
|
|
136
|
+
refund: string | PublicRefund;
|
|
137
|
+
};
|
|
138
|
+
type PublicCollectionOverrides = {
|
|
139
|
+
'customer-profiles': PublicCustomerProfile;
|
|
140
|
+
'customer-profile-stats': PublicCustomerProfileStats;
|
|
141
|
+
'customer-profile-lists': PublicCustomerProfileList;
|
|
142
|
+
products: PublicProduct;
|
|
143
|
+
'product-variants': PublicProductVariant;
|
|
144
|
+
'product-collections': PublicProductCollection;
|
|
145
|
+
markets: PublicMarket;
|
|
146
|
+
refunds: PublicRefund;
|
|
147
|
+
'refund-line-items': PublicRefundLineItem;
|
|
148
|
+
};
|
|
149
|
+
type CollectionType<T extends Collection> = T extends keyof PublicCollectionOverrides ? PublicCollectionOverrides[T] : T extends keyof PublicCollectionMap ? PublicCollectionMap[T] : never;
|
|
150
|
+
|
|
151
|
+
export type { CollectionType as C, PublicMarket as P, PublicProduct as a, PublicProductCollection as b, PublicProductVariant as c };
|