@wix/ecom 1.0.660 → 1.0.662
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.
|
@@ -1078,37 +1078,38 @@ interface DiscountRulesQueryBuilder {
|
|
|
1078
1078
|
find: () => Promise<DiscountRulesQueryResult>;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
interface HttpClient {
|
|
1082
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1083
|
-
fetchWithAuth:
|
|
1081
|
+
interface HttpClient$h {
|
|
1082
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$h<TResponse, TData>): Promise<HttpResponse$h<TResponse>>;
|
|
1083
|
+
fetchWithAuth: typeof fetch;
|
|
1084
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1084
1085
|
}
|
|
1085
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1086
|
-
type HttpResponse<T = any> = {
|
|
1086
|
+
type RequestOptionsFactory$h<TResponse = any, TData = any> = (context: any) => RequestOptions$h<TResponse, TData>;
|
|
1087
|
+
type HttpResponse$h<T = any> = {
|
|
1087
1088
|
data: T;
|
|
1088
1089
|
status: number;
|
|
1089
1090
|
statusText: string;
|
|
1090
1091
|
headers: any;
|
|
1091
1092
|
request?: any;
|
|
1092
1093
|
};
|
|
1093
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1094
|
+
type RequestOptions$h<_TResponse = any, Data = any> = {
|
|
1094
1095
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1095
1096
|
url: string;
|
|
1096
1097
|
data?: Data;
|
|
1097
1098
|
params?: URLSearchParams;
|
|
1098
|
-
} & APIMetadata;
|
|
1099
|
-
type APIMetadata = {
|
|
1099
|
+
} & APIMetadata$h;
|
|
1100
|
+
type APIMetadata$h = {
|
|
1100
1101
|
methodFqn?: string;
|
|
1101
1102
|
entityFqdn?: string;
|
|
1102
1103
|
packageName?: string;
|
|
1103
1104
|
};
|
|
1104
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1105
|
+
type EventDefinition$d<Payload = unknown, Type extends string = string> = {
|
|
1105
1106
|
__type: 'event-definition';
|
|
1106
1107
|
type: Type;
|
|
1107
1108
|
isDomainEvent?: boolean;
|
|
1108
1109
|
transformations?: (envelope: unknown) => Payload;
|
|
1109
1110
|
__payload: Payload;
|
|
1110
1111
|
};
|
|
1111
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1112
|
+
declare function EventDefinition$d<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$d<Payload, Type>;
|
|
1112
1113
|
|
|
1113
1114
|
declare global {
|
|
1114
1115
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1120,7 +1121,7 @@ declare global {
|
|
|
1120
1121
|
declare const __metadata$h: {
|
|
1121
1122
|
PACKAGE_NAME: string;
|
|
1122
1123
|
};
|
|
1123
|
-
declare function createDiscountRule(httpClient: HttpClient): (discountRule: DiscountRule$5) => Promise<DiscountRule$5 & {
|
|
1124
|
+
declare function createDiscountRule(httpClient: HttpClient$h): (discountRule: DiscountRule$5) => Promise<DiscountRule$5 & {
|
|
1124
1125
|
trigger?: {
|
|
1125
1126
|
and?: {
|
|
1126
1127
|
triggers: (any | undefined)[];
|
|
@@ -1185,7 +1186,7 @@ declare function createDiscountRule(httpClient: HttpClient): (discountRule: Disc
|
|
|
1185
1186
|
status: Status$3;
|
|
1186
1187
|
usageCount: number;
|
|
1187
1188
|
}>;
|
|
1188
|
-
declare function getDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<DiscountRule$5 & {
|
|
1189
|
+
declare function getDiscountRule(httpClient: HttpClient$h): (discountRuleId: string) => Promise<DiscountRule$5 & {
|
|
1189
1190
|
trigger?: {
|
|
1190
1191
|
and?: {
|
|
1191
1192
|
triggers: (any | undefined)[];
|
|
@@ -1250,7 +1251,7 @@ declare function getDiscountRule(httpClient: HttpClient): (discountRuleId: strin
|
|
|
1250
1251
|
status: Status$3;
|
|
1251
1252
|
usageCount: number;
|
|
1252
1253
|
}>;
|
|
1253
|
-
declare function updateDiscountRule(httpClient: HttpClient): (_id: string | null, discountRule: UpdateDiscountRule) => Promise<DiscountRule$5 & {
|
|
1254
|
+
declare function updateDiscountRule(httpClient: HttpClient$h): (_id: string | null, discountRule: UpdateDiscountRule) => Promise<DiscountRule$5 & {
|
|
1254
1255
|
trigger?: {
|
|
1255
1256
|
and?: {
|
|
1256
1257
|
triggers: (any | undefined)[];
|
|
@@ -1315,11 +1316,11 @@ declare function updateDiscountRule(httpClient: HttpClient): (_id: string | null
|
|
|
1315
1316
|
status: Status$3;
|
|
1316
1317
|
usageCount: number;
|
|
1317
1318
|
}>;
|
|
1318
|
-
declare function deleteDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<void>;
|
|
1319
|
-
declare function queryDiscountRules(httpClient: HttpClient): () => DiscountRulesQueryBuilder;
|
|
1320
|
-
declare const onDiscountRuleCreated: EventDefinition<DiscountRuleCreatedEnvelope, "wix.ecom.discounts.v1.discount_rule_created">;
|
|
1321
|
-
declare const onDiscountRuleUpdated: EventDefinition<DiscountRuleUpdatedEnvelope, "wix.ecom.discounts.v1.discount_rule_updated">;
|
|
1322
|
-
declare const onDiscountRuleDeleted: EventDefinition<DiscountRuleDeletedEnvelope, "wix.ecom.discounts.v1.discount_rule_deleted">;
|
|
1319
|
+
declare function deleteDiscountRule(httpClient: HttpClient$h): (discountRuleId: string) => Promise<void>;
|
|
1320
|
+
declare function queryDiscountRules(httpClient: HttpClient$h): () => DiscountRulesQueryBuilder;
|
|
1321
|
+
declare const onDiscountRuleCreated: EventDefinition$d<DiscountRuleCreatedEnvelope, "wix.ecom.discounts.v1.discount_rule_created">;
|
|
1322
|
+
declare const onDiscountRuleUpdated: EventDefinition$d<DiscountRuleUpdatedEnvelope, "wix.ecom.discounts.v1.discount_rule_updated">;
|
|
1323
|
+
declare const onDiscountRuleDeleted: EventDefinition$d<DiscountRuleDeletedEnvelope, "wix.ecom.discounts.v1.discount_rule_deleted">;
|
|
1323
1324
|
|
|
1324
1325
|
type index_d$h_ActiveTimeInfo = ActiveTimeInfo;
|
|
1325
1326
|
type index_d$h_And = And;
|
|
@@ -1612,10 +1613,42 @@ interface ListInvoicesForMultipleOrdersResponseNonNullableFields {
|
|
|
1612
1613
|
}[];
|
|
1613
1614
|
}
|
|
1614
1615
|
|
|
1616
|
+
interface HttpClient$g {
|
|
1617
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$g<TResponse, TData>): Promise<HttpResponse$g<TResponse>>;
|
|
1618
|
+
fetchWithAuth: typeof fetch;
|
|
1619
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1620
|
+
}
|
|
1621
|
+
type RequestOptionsFactory$g<TResponse = any, TData = any> = (context: any) => RequestOptions$g<TResponse, TData>;
|
|
1622
|
+
type HttpResponse$g<T = any> = {
|
|
1623
|
+
data: T;
|
|
1624
|
+
status: number;
|
|
1625
|
+
statusText: string;
|
|
1626
|
+
headers: any;
|
|
1627
|
+
request?: any;
|
|
1628
|
+
};
|
|
1629
|
+
type RequestOptions$g<_TResponse = any, Data = any> = {
|
|
1630
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1631
|
+
url: string;
|
|
1632
|
+
data?: Data;
|
|
1633
|
+
params?: URLSearchParams;
|
|
1634
|
+
} & APIMetadata$g;
|
|
1635
|
+
type APIMetadata$g = {
|
|
1636
|
+
methodFqn?: string;
|
|
1637
|
+
entityFqdn?: string;
|
|
1638
|
+
packageName?: string;
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1641
|
+
declare global {
|
|
1642
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1643
|
+
interface SymbolConstructor {
|
|
1644
|
+
readonly observable: symbol;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1615
1648
|
declare const __metadata$g: {
|
|
1616
1649
|
PACKAGE_NAME: string;
|
|
1617
1650
|
};
|
|
1618
|
-
declare function listInvoicesForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListInvoicesForMultipleOrdersResponse$1 & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
|
|
1651
|
+
declare function listInvoicesForMultipleOrders(httpClient: HttpClient$g): (orderIds: string[]) => Promise<ListInvoicesForMultipleOrdersResponse$1 & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
|
|
1619
1652
|
|
|
1620
1653
|
type index_d$g_GenerateInvoiceWithNumberRequest = GenerateInvoiceWithNumberRequest;
|
|
1621
1654
|
type index_d$g_GenerateInvoiceWithNumberResponse = GenerateInvoiceWithNumberResponse;
|
|
@@ -1775,11 +1808,43 @@ interface GetRecommendationOptions {
|
|
|
1775
1808
|
minimumRecommendedItems?: number;
|
|
1776
1809
|
}
|
|
1777
1810
|
|
|
1811
|
+
interface HttpClient$f {
|
|
1812
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$f<TResponse, TData>): Promise<HttpResponse$f<TResponse>>;
|
|
1813
|
+
fetchWithAuth: typeof fetch;
|
|
1814
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1815
|
+
}
|
|
1816
|
+
type RequestOptionsFactory$f<TResponse = any, TData = any> = (context: any) => RequestOptions$f<TResponse, TData>;
|
|
1817
|
+
type HttpResponse$f<T = any> = {
|
|
1818
|
+
data: T;
|
|
1819
|
+
status: number;
|
|
1820
|
+
statusText: string;
|
|
1821
|
+
headers: any;
|
|
1822
|
+
request?: any;
|
|
1823
|
+
};
|
|
1824
|
+
type RequestOptions$f<_TResponse = any, Data = any> = {
|
|
1825
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1826
|
+
url: string;
|
|
1827
|
+
data?: Data;
|
|
1828
|
+
params?: URLSearchParams;
|
|
1829
|
+
} & APIMetadata$f;
|
|
1830
|
+
type APIMetadata$f = {
|
|
1831
|
+
methodFqn?: string;
|
|
1832
|
+
entityFqdn?: string;
|
|
1833
|
+
packageName?: string;
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
declare global {
|
|
1837
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1838
|
+
interface SymbolConstructor {
|
|
1839
|
+
readonly observable: symbol;
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1778
1843
|
declare const __metadata$f: {
|
|
1779
1844
|
PACKAGE_NAME: string;
|
|
1780
1845
|
};
|
|
1781
|
-
declare function listAvailableAlgorithms(httpClient: HttpClient): () => Promise<ListAvailableAlgorithmsResponse & ListAvailableAlgorithmsResponseNonNullableFields>;
|
|
1782
|
-
declare function getRecommendation(httpClient: HttpClient): (algorithms: Algorithm[], options?: GetRecommendationOptions) => Promise<GetRecommendationResponse & GetRecommendationResponseNonNullableFields>;
|
|
1846
|
+
declare function listAvailableAlgorithms(httpClient: HttpClient$f): () => Promise<ListAvailableAlgorithmsResponse & ListAvailableAlgorithmsResponseNonNullableFields>;
|
|
1847
|
+
declare function getRecommendation(httpClient: HttpClient$f): (algorithms: Algorithm[], options?: GetRecommendationOptions) => Promise<GetRecommendationResponse & GetRecommendationResponseNonNullableFields>;
|
|
1783
1848
|
|
|
1784
1849
|
type index_d$f_Algorithm = Algorithm;
|
|
1785
1850
|
type index_d$f_AlgorithmConfig = AlgorithmConfig;
|
|
@@ -2481,10 +2546,50 @@ interface AbandonedCheckoutRecoveredEnvelope {
|
|
|
2481
2546
|
metadata: EventMetadata$c;
|
|
2482
2547
|
}
|
|
2483
2548
|
|
|
2549
|
+
interface HttpClient$e {
|
|
2550
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$e<TResponse, TData>): Promise<HttpResponse$e<TResponse>>;
|
|
2551
|
+
fetchWithAuth: typeof fetch;
|
|
2552
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2553
|
+
}
|
|
2554
|
+
type RequestOptionsFactory$e<TResponse = any, TData = any> = (context: any) => RequestOptions$e<TResponse, TData>;
|
|
2555
|
+
type HttpResponse$e<T = any> = {
|
|
2556
|
+
data: T;
|
|
2557
|
+
status: number;
|
|
2558
|
+
statusText: string;
|
|
2559
|
+
headers: any;
|
|
2560
|
+
request?: any;
|
|
2561
|
+
};
|
|
2562
|
+
type RequestOptions$e<_TResponse = any, Data = any> = {
|
|
2563
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2564
|
+
url: string;
|
|
2565
|
+
data?: Data;
|
|
2566
|
+
params?: URLSearchParams;
|
|
2567
|
+
} & APIMetadata$e;
|
|
2568
|
+
type APIMetadata$e = {
|
|
2569
|
+
methodFqn?: string;
|
|
2570
|
+
entityFqdn?: string;
|
|
2571
|
+
packageName?: string;
|
|
2572
|
+
};
|
|
2573
|
+
type EventDefinition$c<Payload = unknown, Type extends string = string> = {
|
|
2574
|
+
__type: 'event-definition';
|
|
2575
|
+
type: Type;
|
|
2576
|
+
isDomainEvent?: boolean;
|
|
2577
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2578
|
+
__payload: Payload;
|
|
2579
|
+
};
|
|
2580
|
+
declare function EventDefinition$c<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$c<Payload, Type>;
|
|
2581
|
+
|
|
2582
|
+
declare global {
|
|
2583
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2584
|
+
interface SymbolConstructor {
|
|
2585
|
+
readonly observable: symbol;
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2484
2589
|
declare const __metadata$e: {
|
|
2485
2590
|
PACKAGE_NAME: string;
|
|
2486
2591
|
};
|
|
2487
|
-
declare function getAbandonedCheckout(httpClient: HttpClient): (abandonedCheckoutId: string) => Promise<AbandonedCheckout & {
|
|
2592
|
+
declare function getAbandonedCheckout(httpClient: HttpClient$e): (abandonedCheckoutId: string) => Promise<AbandonedCheckout & {
|
|
2488
2593
|
_id: string;
|
|
2489
2594
|
status: Status$2;
|
|
2490
2595
|
buyerInfo?: {
|
|
@@ -2516,8 +2621,8 @@ declare function getAbandonedCheckout(httpClient: HttpClient): (abandonedCheckou
|
|
|
2516
2621
|
formattedConvertedAmount: string;
|
|
2517
2622
|
} | undefined;
|
|
2518
2623
|
}>;
|
|
2519
|
-
declare const onAbandonedCheckoutCreated: EventDefinition<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
2520
|
-
declare const onAbandonedCheckoutRecovered: EventDefinition<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2624
|
+
declare const onAbandonedCheckoutCreated: EventDefinition$c<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
2625
|
+
declare const onAbandonedCheckoutRecovered: EventDefinition$c<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2521
2626
|
|
|
2522
2627
|
type index_d$e_AbandonedCheckout = AbandonedCheckout;
|
|
2523
2628
|
type index_d$e_AbandonedCheckoutCreatedEnvelope = AbandonedCheckoutCreatedEnvelope;
|
|
@@ -3175,10 +3280,50 @@ interface ReportItemsBackInStockOptions {
|
|
|
3175
3280
|
extraAutomationTemplateParameters?: Record<string, string>;
|
|
3176
3281
|
}
|
|
3177
3282
|
|
|
3283
|
+
interface HttpClient$d {
|
|
3284
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$d<TResponse, TData>): Promise<HttpResponse$d<TResponse>>;
|
|
3285
|
+
fetchWithAuth: typeof fetch;
|
|
3286
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3287
|
+
}
|
|
3288
|
+
type RequestOptionsFactory$d<TResponse = any, TData = any> = (context: any) => RequestOptions$d<TResponse, TData>;
|
|
3289
|
+
type HttpResponse$d<T = any> = {
|
|
3290
|
+
data: T;
|
|
3291
|
+
status: number;
|
|
3292
|
+
statusText: string;
|
|
3293
|
+
headers: any;
|
|
3294
|
+
request?: any;
|
|
3295
|
+
};
|
|
3296
|
+
type RequestOptions$d<_TResponse = any, Data = any> = {
|
|
3297
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3298
|
+
url: string;
|
|
3299
|
+
data?: Data;
|
|
3300
|
+
params?: URLSearchParams;
|
|
3301
|
+
} & APIMetadata$d;
|
|
3302
|
+
type APIMetadata$d = {
|
|
3303
|
+
methodFqn?: string;
|
|
3304
|
+
entityFqdn?: string;
|
|
3305
|
+
packageName?: string;
|
|
3306
|
+
};
|
|
3307
|
+
type EventDefinition$b<Payload = unknown, Type extends string = string> = {
|
|
3308
|
+
__type: 'event-definition';
|
|
3309
|
+
type: Type;
|
|
3310
|
+
isDomainEvent?: boolean;
|
|
3311
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3312
|
+
__payload: Payload;
|
|
3313
|
+
};
|
|
3314
|
+
declare function EventDefinition$b<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$b<Payload, Type>;
|
|
3315
|
+
|
|
3316
|
+
declare global {
|
|
3317
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3318
|
+
interface SymbolConstructor {
|
|
3319
|
+
readonly observable: symbol;
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3178
3323
|
declare const __metadata$d: {
|
|
3179
3324
|
PACKAGE_NAME: string;
|
|
3180
3325
|
};
|
|
3181
|
-
declare function createBackInStockNotificationRequest(httpClient: HttpClient): (request: BackInStockNotificationRequest, itemDetails: BackInStockItemDetails) => Promise<BackInStockNotificationRequest & {
|
|
3326
|
+
declare function createBackInStockNotificationRequest(httpClient: HttpClient$d): (request: BackInStockNotificationRequest, itemDetails: BackInStockItemDetails) => Promise<BackInStockNotificationRequest & {
|
|
3182
3327
|
catalogReference?: {
|
|
3183
3328
|
catalogItemId: string;
|
|
3184
3329
|
appId: string;
|
|
@@ -3186,7 +3331,7 @@ declare function createBackInStockNotificationRequest(httpClient: HttpClient): (
|
|
|
3186
3331
|
email: string;
|
|
3187
3332
|
status: Status$1;
|
|
3188
3333
|
}>;
|
|
3189
|
-
declare function getBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<BackInStockNotificationRequest & {
|
|
3334
|
+
declare function getBackInStockNotificationRequest(httpClient: HttpClient$d): (_id: string) => Promise<BackInStockNotificationRequest & {
|
|
3190
3335
|
catalogReference?: {
|
|
3191
3336
|
catalogItemId: string;
|
|
3192
3337
|
appId: string;
|
|
@@ -3194,14 +3339,14 @@ declare function getBackInStockNotificationRequest(httpClient: HttpClient): (_id
|
|
|
3194
3339
|
email: string;
|
|
3195
3340
|
status: Status$1;
|
|
3196
3341
|
}>;
|
|
3197
|
-
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
3198
|
-
declare function markAsNotificationSent(httpClient: HttpClient): (_id: string) => Promise<MarkAsNotificationSentResponse & MarkAsNotificationSentResponseNonNullableFields>;
|
|
3199
|
-
declare function queryBackInStockNotificationRequests(httpClient: HttpClient): () => RequestsQueryBuilder;
|
|
3200
|
-
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient): (catalogReferences: CatalogReference$5[]) => Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse & GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields>;
|
|
3201
|
-
declare function reportItemsBackInStock(httpClient: HttpClient): (itemDetails: BackInStockItemDetails, options?: ReportItemsBackInStockOptions) => Promise<void>;
|
|
3202
|
-
declare const onBackInStockNotificationRequestCreated: EventDefinition<BackInStockNotificationRequestCreatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_created">;
|
|
3203
|
-
declare const onBackInStockNotificationRequestDeleted: EventDefinition<BackInStockNotificationRequestDeletedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_deleted">;
|
|
3204
|
-
declare const onBackInStockNotificationRequestUpdated: EventDefinition<BackInStockNotificationRequestUpdatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_updated">;
|
|
3342
|
+
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient$d): (_id: string) => Promise<void>;
|
|
3343
|
+
declare function markAsNotificationSent(httpClient: HttpClient$d): (_id: string) => Promise<MarkAsNotificationSentResponse & MarkAsNotificationSentResponseNonNullableFields>;
|
|
3344
|
+
declare function queryBackInStockNotificationRequests(httpClient: HttpClient$d): () => RequestsQueryBuilder;
|
|
3345
|
+
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient$d): (catalogReferences: CatalogReference$5[]) => Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse & GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields>;
|
|
3346
|
+
declare function reportItemsBackInStock(httpClient: HttpClient$d): (itemDetails: BackInStockItemDetails, options?: ReportItemsBackInStockOptions) => Promise<void>;
|
|
3347
|
+
declare const onBackInStockNotificationRequestCreated: EventDefinition$b<BackInStockNotificationRequestCreatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_created">;
|
|
3348
|
+
declare const onBackInStockNotificationRequestDeleted: EventDefinition$b<BackInStockNotificationRequestDeletedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_deleted">;
|
|
3349
|
+
declare const onBackInStockNotificationRequestUpdated: EventDefinition$b<BackInStockNotificationRequestUpdatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_updated">;
|
|
3205
3350
|
|
|
3206
3351
|
type index_d$d_BackInStockItemDetails = BackInStockItemDetails;
|
|
3207
3352
|
type index_d$d_BackInStockNotificationRequest = BackInStockNotificationRequest;
|
|
@@ -3314,12 +3459,44 @@ interface GetSettingsResponseNonNullableFields {
|
|
|
3314
3459
|
};
|
|
3315
3460
|
}
|
|
3316
3461
|
|
|
3462
|
+
interface HttpClient$c {
|
|
3463
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$c<TResponse, TData>): Promise<HttpResponse$c<TResponse>>;
|
|
3464
|
+
fetchWithAuth: typeof fetch;
|
|
3465
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3466
|
+
}
|
|
3467
|
+
type RequestOptionsFactory$c<TResponse = any, TData = any> = (context: any) => RequestOptions$c<TResponse, TData>;
|
|
3468
|
+
type HttpResponse$c<T = any> = {
|
|
3469
|
+
data: T;
|
|
3470
|
+
status: number;
|
|
3471
|
+
statusText: string;
|
|
3472
|
+
headers: any;
|
|
3473
|
+
request?: any;
|
|
3474
|
+
};
|
|
3475
|
+
type RequestOptions$c<_TResponse = any, Data = any> = {
|
|
3476
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3477
|
+
url: string;
|
|
3478
|
+
data?: Data;
|
|
3479
|
+
params?: URLSearchParams;
|
|
3480
|
+
} & APIMetadata$c;
|
|
3481
|
+
type APIMetadata$c = {
|
|
3482
|
+
methodFqn?: string;
|
|
3483
|
+
entityFqdn?: string;
|
|
3484
|
+
packageName?: string;
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
declare global {
|
|
3488
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3489
|
+
interface SymbolConstructor {
|
|
3490
|
+
readonly observable: symbol;
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3317
3494
|
declare const __metadata$c: {
|
|
3318
3495
|
PACKAGE_NAME: string;
|
|
3319
3496
|
};
|
|
3320
|
-
declare function startCollectingRequests(httpClient: HttpClient): (appId: string) => Promise<StartCollectingRequestsResponse & StartCollectingRequestsResponseNonNullableFields>;
|
|
3321
|
-
declare function stopCollectingRequests(httpClient: HttpClient): (appId: string) => Promise<StopCollectingRequestsResponse & StopCollectingRequestsResponseNonNullableFields>;
|
|
3322
|
-
declare function getSettings(httpClient: HttpClient): () => Promise<GetSettingsResponse & GetSettingsResponseNonNullableFields>;
|
|
3497
|
+
declare function startCollectingRequests(httpClient: HttpClient$c): (appId: string) => Promise<StartCollectingRequestsResponse & StartCollectingRequestsResponseNonNullableFields>;
|
|
3498
|
+
declare function stopCollectingRequests(httpClient: HttpClient$c): (appId: string) => Promise<StopCollectingRequestsResponse & StopCollectingRequestsResponseNonNullableFields>;
|
|
3499
|
+
declare function getSettings(httpClient: HttpClient$c): () => Promise<GetSettingsResponse & GetSettingsResponseNonNullableFields>;
|
|
3323
3500
|
|
|
3324
3501
|
type index_d$c_BackInStockCollectionState = BackInStockCollectionState;
|
|
3325
3502
|
type index_d$c_BackInStockSettings = BackInStockSettings;
|
|
@@ -6917,10 +7094,50 @@ interface EstimateTotalsOptions {
|
|
|
6917
7094
|
selectedMemberships?: SelectedMemberships$3;
|
|
6918
7095
|
}
|
|
6919
7096
|
|
|
7097
|
+
interface HttpClient$b {
|
|
7098
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$b<TResponse, TData>): Promise<HttpResponse$b<TResponse>>;
|
|
7099
|
+
fetchWithAuth: typeof fetch;
|
|
7100
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
7101
|
+
}
|
|
7102
|
+
type RequestOptionsFactory$b<TResponse = any, TData = any> = (context: any) => RequestOptions$b<TResponse, TData>;
|
|
7103
|
+
type HttpResponse$b<T = any> = {
|
|
7104
|
+
data: T;
|
|
7105
|
+
status: number;
|
|
7106
|
+
statusText: string;
|
|
7107
|
+
headers: any;
|
|
7108
|
+
request?: any;
|
|
7109
|
+
};
|
|
7110
|
+
type RequestOptions$b<_TResponse = any, Data = any> = {
|
|
7111
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
7112
|
+
url: string;
|
|
7113
|
+
data?: Data;
|
|
7114
|
+
params?: URLSearchParams;
|
|
7115
|
+
} & APIMetadata$b;
|
|
7116
|
+
type APIMetadata$b = {
|
|
7117
|
+
methodFqn?: string;
|
|
7118
|
+
entityFqdn?: string;
|
|
7119
|
+
packageName?: string;
|
|
7120
|
+
};
|
|
7121
|
+
type EventDefinition$a<Payload = unknown, Type extends string = string> = {
|
|
7122
|
+
__type: 'event-definition';
|
|
7123
|
+
type: Type;
|
|
7124
|
+
isDomainEvent?: boolean;
|
|
7125
|
+
transformations?: (envelope: unknown) => Payload;
|
|
7126
|
+
__payload: Payload;
|
|
7127
|
+
};
|
|
7128
|
+
declare function EventDefinition$a<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$a<Payload, Type>;
|
|
7129
|
+
|
|
7130
|
+
declare global {
|
|
7131
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
7132
|
+
interface SymbolConstructor {
|
|
7133
|
+
readonly observable: symbol;
|
|
7134
|
+
}
|
|
7135
|
+
}
|
|
7136
|
+
|
|
6920
7137
|
declare const __metadata$b: {
|
|
6921
7138
|
PACKAGE_NAME: string;
|
|
6922
7139
|
};
|
|
6923
|
-
declare function createCart(httpClient: HttpClient): (options?: CreateCartOptions) => Promise<Cart$1 & {
|
|
7140
|
+
declare function createCart(httpClient: HttpClient$b): (options?: CreateCartOptions) => Promise<Cart$1 & {
|
|
6924
7141
|
lineItems: {
|
|
6925
7142
|
quantity: number;
|
|
6926
7143
|
catalogReference?: {
|
|
@@ -7040,7 +7257,7 @@ declare function createCart(httpClient: HttpClient): (options?: CreateCartOption
|
|
|
7040
7257
|
code: string;
|
|
7041
7258
|
} | undefined;
|
|
7042
7259
|
}>;
|
|
7043
|
-
declare function updateCart(httpClient: HttpClient): (_id: string | null, options?: UpdateCartOptions) => Promise<Cart$1 & {
|
|
7260
|
+
declare function updateCart(httpClient: HttpClient$b): (_id: string | null, options?: UpdateCartOptions) => Promise<Cart$1 & {
|
|
7044
7261
|
lineItems: {
|
|
7045
7262
|
quantity: number;
|
|
7046
7263
|
catalogReference?: {
|
|
@@ -7160,7 +7377,7 @@ declare function updateCart(httpClient: HttpClient): (_id: string | null, option
|
|
|
7160
7377
|
code: string;
|
|
7161
7378
|
} | undefined;
|
|
7162
7379
|
}>;
|
|
7163
|
-
declare function getCart(httpClient: HttpClient): (_id: string) => Promise<Cart$1 & {
|
|
7380
|
+
declare function getCart(httpClient: HttpClient$b): (_id: string) => Promise<Cart$1 & {
|
|
7164
7381
|
lineItems: {
|
|
7165
7382
|
quantity: number;
|
|
7166
7383
|
catalogReference?: {
|
|
@@ -7280,16 +7497,16 @@ declare function getCart(httpClient: HttpClient): (_id: string) => Promise<Cart$
|
|
|
7280
7497
|
code: string;
|
|
7281
7498
|
} | undefined;
|
|
7282
7499
|
}>;
|
|
7283
|
-
declare function addToCart(httpClient: HttpClient): (_id: string, options?: AddToCartOptions) => Promise<AddToCartResponse$1 & AddToCartResponseNonNullableFields$1>;
|
|
7284
|
-
declare function removeLineItems$1(httpClient: HttpClient): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse$2 & RemoveLineItemsResponseNonNullableFields$2>;
|
|
7285
|
-
declare function createCheckout$1(httpClient: HttpClient): (_id: string, options?: CreateCheckoutOptions$1) => Promise<CreateCheckoutResponse$2 & CreateCheckoutResponseNonNullableFields$2>;
|
|
7286
|
-
declare function removeCoupon$1(httpClient: HttpClient): (_id: string) => Promise<RemoveCouponResponse$2 & RemoveCouponResponseNonNullableFields$2>;
|
|
7287
|
-
declare function updateLineItemsQuantity$1(httpClient: HttpClient): (_id: string, lineItems: LineItemQuantityUpdate$2[]) => Promise<UpdateLineItemsQuantityResponse$2 & UpdateLineItemsQuantityResponseNonNullableFields$2>;
|
|
7288
|
-
declare function estimateTotals(httpClient: HttpClient): (_id: string, options?: EstimateTotalsOptions) => Promise<EstimateTotalsResponse$1 & EstimateTotalsResponseNonNullableFields$1>;
|
|
7289
|
-
declare function deleteCart(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
7290
|
-
declare const onCartUpdated$1: EventDefinition<CartUpdatedEnvelope$1, "wix.ecom.v1.cart_updated">;
|
|
7291
|
-
declare const onCartDeleted$1: EventDefinition<CartDeletedEnvelope$1, "wix.ecom.v1.cart_deleted">;
|
|
7292
|
-
declare const onCartCreated$1: EventDefinition<CartCreatedEnvelope$1, "wix.ecom.v1.cart_created">;
|
|
7500
|
+
declare function addToCart(httpClient: HttpClient$b): (_id: string, options?: AddToCartOptions) => Promise<AddToCartResponse$1 & AddToCartResponseNonNullableFields$1>;
|
|
7501
|
+
declare function removeLineItems$1(httpClient: HttpClient$b): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse$2 & RemoveLineItemsResponseNonNullableFields$2>;
|
|
7502
|
+
declare function createCheckout$1(httpClient: HttpClient$b): (_id: string, options?: CreateCheckoutOptions$1) => Promise<CreateCheckoutResponse$2 & CreateCheckoutResponseNonNullableFields$2>;
|
|
7503
|
+
declare function removeCoupon$1(httpClient: HttpClient$b): (_id: string) => Promise<RemoveCouponResponse$2 & RemoveCouponResponseNonNullableFields$2>;
|
|
7504
|
+
declare function updateLineItemsQuantity$1(httpClient: HttpClient$b): (_id: string, lineItems: LineItemQuantityUpdate$2[]) => Promise<UpdateLineItemsQuantityResponse$2 & UpdateLineItemsQuantityResponseNonNullableFields$2>;
|
|
7505
|
+
declare function estimateTotals(httpClient: HttpClient$b): (_id: string, options?: EstimateTotalsOptions) => Promise<EstimateTotalsResponse$1 & EstimateTotalsResponseNonNullableFields$1>;
|
|
7506
|
+
declare function deleteCart(httpClient: HttpClient$b): (_id: string) => Promise<void>;
|
|
7507
|
+
declare const onCartUpdated$1: EventDefinition$a<CartUpdatedEnvelope$1, "wix.ecom.v1.cart_updated">;
|
|
7508
|
+
declare const onCartDeleted$1: EventDefinition$a<CartDeletedEnvelope$1, "wix.ecom.v1.cart_deleted">;
|
|
7509
|
+
declare const onCartCreated$1: EventDefinition$a<CartCreatedEnvelope$1, "wix.ecom.v1.cart_created">;
|
|
7293
7510
|
|
|
7294
7511
|
type index_d$b_AddToCartOptions = AddToCartOptions;
|
|
7295
7512
|
type index_d$b_CreateCartOptions = CreateCartOptions;
|
|
@@ -10794,10 +11011,50 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
10794
11011
|
selectedMemberships?: SelectedMemberships$2;
|
|
10795
11012
|
}
|
|
10796
11013
|
|
|
11014
|
+
interface HttpClient$a {
|
|
11015
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$a<TResponse, TData>): Promise<HttpResponse$a<TResponse>>;
|
|
11016
|
+
fetchWithAuth: typeof fetch;
|
|
11017
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
11018
|
+
}
|
|
11019
|
+
type RequestOptionsFactory$a<TResponse = any, TData = any> = (context: any) => RequestOptions$a<TResponse, TData>;
|
|
11020
|
+
type HttpResponse$a<T = any> = {
|
|
11021
|
+
data: T;
|
|
11022
|
+
status: number;
|
|
11023
|
+
statusText: string;
|
|
11024
|
+
headers: any;
|
|
11025
|
+
request?: any;
|
|
11026
|
+
};
|
|
11027
|
+
type RequestOptions$a<_TResponse = any, Data = any> = {
|
|
11028
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
11029
|
+
url: string;
|
|
11030
|
+
data?: Data;
|
|
11031
|
+
params?: URLSearchParams;
|
|
11032
|
+
} & APIMetadata$a;
|
|
11033
|
+
type APIMetadata$a = {
|
|
11034
|
+
methodFqn?: string;
|
|
11035
|
+
entityFqdn?: string;
|
|
11036
|
+
packageName?: string;
|
|
11037
|
+
};
|
|
11038
|
+
type EventDefinition$9<Payload = unknown, Type extends string = string> = {
|
|
11039
|
+
__type: 'event-definition';
|
|
11040
|
+
type: Type;
|
|
11041
|
+
isDomainEvent?: boolean;
|
|
11042
|
+
transformations?: (envelope: unknown) => Payload;
|
|
11043
|
+
__payload: Payload;
|
|
11044
|
+
};
|
|
11045
|
+
declare function EventDefinition$9<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$9<Payload, Type>;
|
|
11046
|
+
|
|
11047
|
+
declare global {
|
|
11048
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
11049
|
+
interface SymbolConstructor {
|
|
11050
|
+
readonly observable: symbol;
|
|
11051
|
+
}
|
|
11052
|
+
}
|
|
11053
|
+
|
|
10797
11054
|
declare const __metadata$a: {
|
|
10798
11055
|
PACKAGE_NAME: string;
|
|
10799
11056
|
};
|
|
10800
|
-
declare function getCurrentCart(httpClient: HttpClient): () => Promise<Cart & {
|
|
11057
|
+
declare function getCurrentCart(httpClient: HttpClient$a): () => Promise<Cart & {
|
|
10801
11058
|
lineItems: {
|
|
10802
11059
|
quantity: number;
|
|
10803
11060
|
catalogReference?: {
|
|
@@ -10917,7 +11174,7 @@ declare function getCurrentCart(httpClient: HttpClient): () => Promise<Cart & {
|
|
|
10917
11174
|
code: string;
|
|
10918
11175
|
} | undefined;
|
|
10919
11176
|
}>;
|
|
10920
|
-
declare function updateCurrentCart(httpClient: HttpClient): (options?: UpdateCurrentCartOptions) => Promise<Cart & {
|
|
11177
|
+
declare function updateCurrentCart(httpClient: HttpClient$a): (options?: UpdateCurrentCartOptions) => Promise<Cart & {
|
|
10921
11178
|
lineItems: {
|
|
10922
11179
|
quantity: number;
|
|
10923
11180
|
catalogReference?: {
|
|
@@ -11037,16 +11294,16 @@ declare function updateCurrentCart(httpClient: HttpClient): (options?: UpdateCur
|
|
|
11037
11294
|
code: string;
|
|
11038
11295
|
} | undefined;
|
|
11039
11296
|
}>;
|
|
11040
|
-
declare function addToCurrentCart(httpClient: HttpClient): (options?: AddToCurrentCartOptions) => Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
|
|
11041
|
-
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient): (lineItemIds: string[]) => Promise<RemoveLineItemsResponse$1 & RemoveLineItemsResponseNonNullableFields$1>;
|
|
11042
|
-
declare function createCheckoutFromCurrentCart(httpClient: HttpClient): (options?: CreateCheckoutFromCurrentCartOptions) => Promise<CreateCheckoutResponse$1 & CreateCheckoutResponseNonNullableFields$1>;
|
|
11043
|
-
declare function removeCouponFromCurrentCart(httpClient: HttpClient): () => Promise<RemoveCouponResponse$1 & RemoveCouponResponseNonNullableFields$1>;
|
|
11044
|
-
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient): (lineItems: LineItemQuantityUpdate$1[]) => Promise<UpdateLineItemsQuantityResponse$1 & UpdateLineItemsQuantityResponseNonNullableFields$1>;
|
|
11045
|
-
declare function estimateCurrentCartTotals(httpClient: HttpClient): (options?: EstimateCurrentCartTotalsOptions) => Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
|
|
11046
|
-
declare function deleteCurrentCart(httpClient: HttpClient): () => Promise<void>;
|
|
11047
|
-
declare const onCartUpdated: EventDefinition<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
11048
|
-
declare const onCartDeleted: EventDefinition<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
11049
|
-
declare const onCartCreated: EventDefinition<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
11297
|
+
declare function addToCurrentCart(httpClient: HttpClient$a): (options?: AddToCurrentCartOptions) => Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
|
|
11298
|
+
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient$a): (lineItemIds: string[]) => Promise<RemoveLineItemsResponse$1 & RemoveLineItemsResponseNonNullableFields$1>;
|
|
11299
|
+
declare function createCheckoutFromCurrentCart(httpClient: HttpClient$a): (options?: CreateCheckoutFromCurrentCartOptions) => Promise<CreateCheckoutResponse$1 & CreateCheckoutResponseNonNullableFields$1>;
|
|
11300
|
+
declare function removeCouponFromCurrentCart(httpClient: HttpClient$a): () => Promise<RemoveCouponResponse$1 & RemoveCouponResponseNonNullableFields$1>;
|
|
11301
|
+
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient$a): (lineItems: LineItemQuantityUpdate$1[]) => Promise<UpdateLineItemsQuantityResponse$1 & UpdateLineItemsQuantityResponseNonNullableFields$1>;
|
|
11302
|
+
declare function estimateCurrentCartTotals(httpClient: HttpClient$a): (options?: EstimateCurrentCartTotalsOptions) => Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
|
|
11303
|
+
declare function deleteCurrentCart(httpClient: HttpClient$a): () => Promise<void>;
|
|
11304
|
+
declare const onCartUpdated: EventDefinition$9<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
11305
|
+
declare const onCartDeleted: EventDefinition$9<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
11306
|
+
declare const onCartCreated: EventDefinition$9<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
11050
11307
|
|
|
11051
11308
|
type index_d$a_AddToCartRequest = AddToCartRequest;
|
|
11052
11309
|
type index_d$a_AddToCartResponse = AddToCartResponse;
|
|
@@ -19956,10 +20213,50 @@ interface AddToCheckoutOptions {
|
|
|
19956
20213
|
lineItems?: LineItem$3[];
|
|
19957
20214
|
}
|
|
19958
20215
|
|
|
20216
|
+
interface HttpClient$9 {
|
|
20217
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$9<TResponse, TData>): Promise<HttpResponse$9<TResponse>>;
|
|
20218
|
+
fetchWithAuth: typeof fetch;
|
|
20219
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
20220
|
+
}
|
|
20221
|
+
type RequestOptionsFactory$9<TResponse = any, TData = any> = (context: any) => RequestOptions$9<TResponse, TData>;
|
|
20222
|
+
type HttpResponse$9<T = any> = {
|
|
20223
|
+
data: T;
|
|
20224
|
+
status: number;
|
|
20225
|
+
statusText: string;
|
|
20226
|
+
headers: any;
|
|
20227
|
+
request?: any;
|
|
20228
|
+
};
|
|
20229
|
+
type RequestOptions$9<_TResponse = any, Data = any> = {
|
|
20230
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
20231
|
+
url: string;
|
|
20232
|
+
data?: Data;
|
|
20233
|
+
params?: URLSearchParams;
|
|
20234
|
+
} & APIMetadata$9;
|
|
20235
|
+
type APIMetadata$9 = {
|
|
20236
|
+
methodFqn?: string;
|
|
20237
|
+
entityFqdn?: string;
|
|
20238
|
+
packageName?: string;
|
|
20239
|
+
};
|
|
20240
|
+
type EventDefinition$8<Payload = unknown, Type extends string = string> = {
|
|
20241
|
+
__type: 'event-definition';
|
|
20242
|
+
type: Type;
|
|
20243
|
+
isDomainEvent?: boolean;
|
|
20244
|
+
transformations?: (envelope: unknown) => Payload;
|
|
20245
|
+
__payload: Payload;
|
|
20246
|
+
};
|
|
20247
|
+
declare function EventDefinition$8<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$8<Payload, Type>;
|
|
20248
|
+
|
|
20249
|
+
declare global {
|
|
20250
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
20251
|
+
interface SymbolConstructor {
|
|
20252
|
+
readonly observable: symbol;
|
|
20253
|
+
}
|
|
20254
|
+
}
|
|
20255
|
+
|
|
19959
20256
|
declare const __metadata$9: {
|
|
19960
20257
|
PACKAGE_NAME: string;
|
|
19961
20258
|
};
|
|
19962
|
-
declare function createCheckout(httpClient: HttpClient): (options?: CreateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20259
|
+
declare function createCheckout(httpClient: HttpClient$9): (options?: CreateCheckoutOptions) => Promise<Checkout$1 & {
|
|
19963
20260
|
lineItems: {
|
|
19964
20261
|
quantity: number;
|
|
19965
20262
|
catalogReference?: {
|
|
@@ -20661,9 +20958,9 @@ declare function createCheckout(httpClient: HttpClient): (options?: CreateChecko
|
|
|
20661
20958
|
disabledManualPayment: boolean;
|
|
20662
20959
|
} | undefined;
|
|
20663
20960
|
}>;
|
|
20664
|
-
declare function getCheckout(httpClient: HttpClient): (_id: string) => Promise<GetCheckoutResponse & GetCheckoutResponseNonNullableFields>;
|
|
20665
|
-
declare function getCheckoutUrl(httpClient: HttpClient): (_id: string) => Promise<GetCheckoutURLResponse & GetCheckoutURLResponseNonNullableFields>;
|
|
20666
|
-
declare function updateCheckout(httpClient: HttpClient): (_id: string | null, checkout: UpdateCheckout, options?: UpdateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20961
|
+
declare function getCheckout(httpClient: HttpClient$9): (_id: string) => Promise<GetCheckoutResponse & GetCheckoutResponseNonNullableFields>;
|
|
20962
|
+
declare function getCheckoutUrl(httpClient: HttpClient$9): (_id: string) => Promise<GetCheckoutURLResponse & GetCheckoutURLResponseNonNullableFields>;
|
|
20963
|
+
declare function updateCheckout(httpClient: HttpClient$9): (_id: string | null, checkout: UpdateCheckout, options?: UpdateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20667
20964
|
lineItems: {
|
|
20668
20965
|
quantity: number;
|
|
20669
20966
|
catalogReference?: {
|
|
@@ -21365,17 +21662,17 @@ declare function updateCheckout(httpClient: HttpClient): (_id: string | null, ch
|
|
|
21365
21662
|
disabledManualPayment: boolean;
|
|
21366
21663
|
} | undefined;
|
|
21367
21664
|
}>;
|
|
21368
|
-
declare function removeCoupon(httpClient: HttpClient): (_id: string) => Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
|
|
21369
|
-
declare function removeGiftCard(httpClient: HttpClient): (_id: string) => Promise<RemoveGiftCardResponse & RemoveGiftCardResponseNonNullableFields>;
|
|
21370
|
-
declare function removeOverrideCheckoutUrl(httpClient: HttpClient): (_id: string) => Promise<RemoveOverrideCheckoutUrlResponse & RemoveOverrideCheckoutUrlResponseNonNullableFields>;
|
|
21371
|
-
declare function addToCheckout(httpClient: HttpClient): (_id: string, options?: AddToCheckoutOptions) => Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
|
|
21372
|
-
declare function removeLineItems(httpClient: HttpClient): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
|
|
21373
|
-
declare function createOrder$1(httpClient: HttpClient): (_id: string) => Promise<CreateOrderResponse$1 & CreateOrderResponseNonNullableFields$1>;
|
|
21374
|
-
declare function markCheckoutAsCompleted(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
21375
|
-
declare function updateLineItemsQuantity(httpClient: HttpClient): (_id: string, lineItems: LineItemQuantityUpdate[]) => Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
21376
|
-
declare const onCheckoutCreated: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
21377
|
-
declare const onCheckoutUpdated: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
21378
|
-
declare const onCheckoutCompleted: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
21665
|
+
declare function removeCoupon(httpClient: HttpClient$9): (_id: string) => Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
|
|
21666
|
+
declare function removeGiftCard(httpClient: HttpClient$9): (_id: string) => Promise<RemoveGiftCardResponse & RemoveGiftCardResponseNonNullableFields>;
|
|
21667
|
+
declare function removeOverrideCheckoutUrl(httpClient: HttpClient$9): (_id: string) => Promise<RemoveOverrideCheckoutUrlResponse & RemoveOverrideCheckoutUrlResponseNonNullableFields>;
|
|
21668
|
+
declare function addToCheckout(httpClient: HttpClient$9): (_id: string, options?: AddToCheckoutOptions) => Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
|
|
21669
|
+
declare function removeLineItems(httpClient: HttpClient$9): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
|
|
21670
|
+
declare function createOrder$1(httpClient: HttpClient$9): (_id: string) => Promise<CreateOrderResponse$1 & CreateOrderResponseNonNullableFields$1>;
|
|
21671
|
+
declare function markCheckoutAsCompleted(httpClient: HttpClient$9): (_id: string) => Promise<void>;
|
|
21672
|
+
declare function updateLineItemsQuantity(httpClient: HttpClient$9): (_id: string, lineItems: LineItemQuantityUpdate[]) => Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
21673
|
+
declare const onCheckoutCreated: EventDefinition$8<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
21674
|
+
declare const onCheckoutUpdated: EventDefinition$8<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
21675
|
+
declare const onCheckoutCompleted: EventDefinition$8<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
21379
21676
|
|
|
21380
21677
|
type index_d$9_AddToCheckoutOptions = AddToCheckoutOptions;
|
|
21381
21678
|
type index_d$9_AddToCheckoutRequest = AddToCheckoutRequest;
|
|
@@ -21829,12 +22126,52 @@ interface CheckoutSettingsUpdatedEnvelope {
|
|
|
21829
22126
|
metadata: EventMetadata$7;
|
|
21830
22127
|
}
|
|
21831
22128
|
|
|
22129
|
+
interface HttpClient$8 {
|
|
22130
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
22131
|
+
fetchWithAuth: typeof fetch;
|
|
22132
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
22133
|
+
}
|
|
22134
|
+
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
22135
|
+
type HttpResponse$8<T = any> = {
|
|
22136
|
+
data: T;
|
|
22137
|
+
status: number;
|
|
22138
|
+
statusText: string;
|
|
22139
|
+
headers: any;
|
|
22140
|
+
request?: any;
|
|
22141
|
+
};
|
|
22142
|
+
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
22143
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
22144
|
+
url: string;
|
|
22145
|
+
data?: Data;
|
|
22146
|
+
params?: URLSearchParams;
|
|
22147
|
+
} & APIMetadata$8;
|
|
22148
|
+
type APIMetadata$8 = {
|
|
22149
|
+
methodFqn?: string;
|
|
22150
|
+
entityFqdn?: string;
|
|
22151
|
+
packageName?: string;
|
|
22152
|
+
};
|
|
22153
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
22154
|
+
__type: 'event-definition';
|
|
22155
|
+
type: Type;
|
|
22156
|
+
isDomainEvent?: boolean;
|
|
22157
|
+
transformations?: (envelope: unknown) => Payload;
|
|
22158
|
+
__payload: Payload;
|
|
22159
|
+
};
|
|
22160
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
22161
|
+
|
|
22162
|
+
declare global {
|
|
22163
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
22164
|
+
interface SymbolConstructor {
|
|
22165
|
+
readonly observable: symbol;
|
|
22166
|
+
}
|
|
22167
|
+
}
|
|
22168
|
+
|
|
21832
22169
|
declare const __metadata$8: {
|
|
21833
22170
|
PACKAGE_NAME: string;
|
|
21834
22171
|
};
|
|
21835
|
-
declare function getCheckoutSettings(httpClient: HttpClient): () => Promise<GetCheckoutSettingsResponse>;
|
|
21836
|
-
declare function updateCheckoutSettings(httpClient: HttpClient): (checkoutSettings: CheckoutSettings) => Promise<UpdateCheckoutSettingsResponse>;
|
|
21837
|
-
declare const onCheckoutSettingsUpdated: EventDefinition<CheckoutSettingsUpdatedEnvelope, "wix.ecom.v1.checkout_settings_updated">;
|
|
22172
|
+
declare function getCheckoutSettings(httpClient: HttpClient$8): () => Promise<GetCheckoutSettingsResponse>;
|
|
22173
|
+
declare function updateCheckoutSettings(httpClient: HttpClient$8): (checkoutSettings: CheckoutSettings) => Promise<UpdateCheckoutSettingsResponse>;
|
|
22174
|
+
declare const onCheckoutSettingsUpdated: EventDefinition$7<CheckoutSettingsUpdatedEnvelope, "wix.ecom.v1.checkout_settings_updated">;
|
|
21838
22175
|
|
|
21839
22176
|
type index_d$8_Alignment = Alignment;
|
|
21840
22177
|
declare const index_d$8_Alignment: typeof Alignment;
|
|
@@ -24015,10 +24352,50 @@ interface CheckoutTemplatesQueryBuilder {
|
|
|
24015
24352
|
find: () => Promise<CheckoutTemplatesQueryResult>;
|
|
24016
24353
|
}
|
|
24017
24354
|
|
|
24355
|
+
interface HttpClient$7 {
|
|
24356
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
24357
|
+
fetchWithAuth: typeof fetch;
|
|
24358
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
24359
|
+
}
|
|
24360
|
+
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
24361
|
+
type HttpResponse$7<T = any> = {
|
|
24362
|
+
data: T;
|
|
24363
|
+
status: number;
|
|
24364
|
+
statusText: string;
|
|
24365
|
+
headers: any;
|
|
24366
|
+
request?: any;
|
|
24367
|
+
};
|
|
24368
|
+
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
24369
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
24370
|
+
url: string;
|
|
24371
|
+
data?: Data;
|
|
24372
|
+
params?: URLSearchParams;
|
|
24373
|
+
} & APIMetadata$7;
|
|
24374
|
+
type APIMetadata$7 = {
|
|
24375
|
+
methodFqn?: string;
|
|
24376
|
+
entityFqdn?: string;
|
|
24377
|
+
packageName?: string;
|
|
24378
|
+
};
|
|
24379
|
+
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
24380
|
+
__type: 'event-definition';
|
|
24381
|
+
type: Type;
|
|
24382
|
+
isDomainEvent?: boolean;
|
|
24383
|
+
transformations?: (envelope: unknown) => Payload;
|
|
24384
|
+
__payload: Payload;
|
|
24385
|
+
};
|
|
24386
|
+
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
24387
|
+
|
|
24388
|
+
declare global {
|
|
24389
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
24390
|
+
interface SymbolConstructor {
|
|
24391
|
+
readonly observable: symbol;
|
|
24392
|
+
}
|
|
24393
|
+
}
|
|
24394
|
+
|
|
24018
24395
|
declare const __metadata$7: {
|
|
24019
24396
|
PACKAGE_NAME: string;
|
|
24020
24397
|
};
|
|
24021
|
-
declare function createCheckoutTemplate(httpClient: HttpClient): (checkoutTemplate: CheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24398
|
+
declare function createCheckoutTemplate(httpClient: HttpClient$7): (checkoutTemplate: CheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24022
24399
|
status: Status;
|
|
24023
24400
|
customization?: {
|
|
24024
24401
|
webClient?: {
|
|
@@ -24057,7 +24434,7 @@ declare function createCheckoutTemplate(httpClient: HttpClient): (checkoutTempla
|
|
|
24057
24434
|
} | undefined;
|
|
24058
24435
|
}[];
|
|
24059
24436
|
}>;
|
|
24060
|
-
declare function getCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
|
|
24437
|
+
declare function getCheckoutTemplate(httpClient: HttpClient$7): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
|
|
24061
24438
|
status: Status;
|
|
24062
24439
|
customization?: {
|
|
24063
24440
|
webClient?: {
|
|
@@ -24096,7 +24473,7 @@ declare function getCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateI
|
|
|
24096
24473
|
} | undefined;
|
|
24097
24474
|
}[];
|
|
24098
24475
|
}>;
|
|
24099
|
-
declare function updateCheckoutTemplate(httpClient: HttpClient): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24476
|
+
declare function updateCheckoutTemplate(httpClient: HttpClient$7): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24100
24477
|
status: Status;
|
|
24101
24478
|
customization?: {
|
|
24102
24479
|
webClient?: {
|
|
@@ -24135,13 +24512,13 @@ declare function updateCheckoutTemplate(httpClient: HttpClient): (_id: string |
|
|
|
24135
24512
|
} | undefined;
|
|
24136
24513
|
}[];
|
|
24137
24514
|
}>;
|
|
24138
|
-
declare function deleteCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<void>;
|
|
24139
|
-
declare function queryCheckoutTemplates(httpClient: HttpClient): () => CheckoutTemplatesQueryBuilder;
|
|
24140
|
-
declare function createCheckoutFromTemplate(httpClient: HttpClient): (checkoutTemplateId: string, siteId: string) => Promise<CreateCheckoutFromTemplateResponse & CreateCheckoutFromTemplateResponseNonNullableFields>;
|
|
24141
|
-
declare const onCheckoutTemplateCreated: EventDefinition<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
|
|
24142
|
-
declare const onCheckoutTemplateUpdated: EventDefinition<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
|
|
24143
|
-
declare const onCheckoutTemplateDeleted: EventDefinition<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
|
|
24144
|
-
declare const onCheckoutTemplateUsed: EventDefinition<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
|
|
24515
|
+
declare function deleteCheckoutTemplate(httpClient: HttpClient$7): (checkoutTemplateId: string) => Promise<void>;
|
|
24516
|
+
declare function queryCheckoutTemplates(httpClient: HttpClient$7): () => CheckoutTemplatesQueryBuilder;
|
|
24517
|
+
declare function createCheckoutFromTemplate(httpClient: HttpClient$7): (checkoutTemplateId: string, siteId: string) => Promise<CreateCheckoutFromTemplateResponse & CreateCheckoutFromTemplateResponseNonNullableFields>;
|
|
24518
|
+
declare const onCheckoutTemplateCreated: EventDefinition$6<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
|
|
24519
|
+
declare const onCheckoutTemplateUpdated: EventDefinition$6<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
|
|
24520
|
+
declare const onCheckoutTemplateDeleted: EventDefinition$6<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
|
|
24521
|
+
declare const onCheckoutTemplateUsed: EventDefinition$6<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
|
|
24145
24522
|
|
|
24146
24523
|
type index_d$7_AggregatedTaxBreakdown = AggregatedTaxBreakdown;
|
|
24147
24524
|
type index_d$7_AutoTaxFallbackCalculationDetails = AutoTaxFallbackCalculationDetails;
|
|
@@ -25571,10 +25948,50 @@ interface UpdateExtendedFieldsOptions$1 {
|
|
|
25571
25948
|
namespaceData: Record<string, any> | null;
|
|
25572
25949
|
}
|
|
25573
25950
|
|
|
25951
|
+
interface HttpClient$6 {
|
|
25952
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
25953
|
+
fetchWithAuth: typeof fetch;
|
|
25954
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
25955
|
+
}
|
|
25956
|
+
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
25957
|
+
type HttpResponse$6<T = any> = {
|
|
25958
|
+
data: T;
|
|
25959
|
+
status: number;
|
|
25960
|
+
statusText: string;
|
|
25961
|
+
headers: any;
|
|
25962
|
+
request?: any;
|
|
25963
|
+
};
|
|
25964
|
+
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
25965
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
25966
|
+
url: string;
|
|
25967
|
+
data?: Data;
|
|
25968
|
+
params?: URLSearchParams;
|
|
25969
|
+
} & APIMetadata$6;
|
|
25970
|
+
type APIMetadata$6 = {
|
|
25971
|
+
methodFqn?: string;
|
|
25972
|
+
entityFqdn?: string;
|
|
25973
|
+
packageName?: string;
|
|
25974
|
+
};
|
|
25975
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
25976
|
+
__type: 'event-definition';
|
|
25977
|
+
type: Type;
|
|
25978
|
+
isDomainEvent?: boolean;
|
|
25979
|
+
transformations?: (envelope: unknown) => Payload;
|
|
25980
|
+
__payload: Payload;
|
|
25981
|
+
};
|
|
25982
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
25983
|
+
|
|
25984
|
+
declare global {
|
|
25985
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
25986
|
+
interface SymbolConstructor {
|
|
25987
|
+
readonly observable: symbol;
|
|
25988
|
+
}
|
|
25989
|
+
}
|
|
25990
|
+
|
|
25574
25991
|
declare const __metadata$6: {
|
|
25575
25992
|
PACKAGE_NAME: string;
|
|
25576
25993
|
};
|
|
25577
|
-
declare function createDeliveryProfile(httpClient: HttpClient): (deliveryProfile: DeliveryProfile) => Promise<DeliveryProfile & {
|
|
25994
|
+
declare function createDeliveryProfile(httpClient: HttpClient$6): (deliveryProfile: DeliveryProfile) => Promise<DeliveryProfile & {
|
|
25578
25995
|
deliveryRegions: {
|
|
25579
25996
|
deliveryCarriers: {
|
|
25580
25997
|
appId: string;
|
|
@@ -25589,7 +26006,7 @@ declare function createDeliveryProfile(httpClient: HttpClient): (deliveryProfile
|
|
|
25589
26006
|
}[];
|
|
25590
26007
|
}[];
|
|
25591
26008
|
}>;
|
|
25592
|
-
declare function getDeliveryProfile(httpClient: HttpClient): (deliveryProfileId: string) => Promise<DeliveryProfile & {
|
|
26009
|
+
declare function getDeliveryProfile(httpClient: HttpClient$6): (deliveryProfileId: string) => Promise<DeliveryProfile & {
|
|
25593
26010
|
deliveryRegions: {
|
|
25594
26011
|
deliveryCarriers: {
|
|
25595
26012
|
appId: string;
|
|
@@ -25604,7 +26021,7 @@ declare function getDeliveryProfile(httpClient: HttpClient): (deliveryProfileId:
|
|
|
25604
26021
|
}[];
|
|
25605
26022
|
}[];
|
|
25606
26023
|
}>;
|
|
25607
|
-
declare function updateDeliveryProfile(httpClient: HttpClient): (_id: string | null, deliveryProfile: UpdateDeliveryProfile) => Promise<DeliveryProfile & {
|
|
26024
|
+
declare function updateDeliveryProfile(httpClient: HttpClient$6): (_id: string | null, deliveryProfile: UpdateDeliveryProfile) => Promise<DeliveryProfile & {
|
|
25608
26025
|
deliveryRegions: {
|
|
25609
26026
|
deliveryCarriers: {
|
|
25610
26027
|
appId: string;
|
|
@@ -25619,23 +26036,23 @@ declare function updateDeliveryProfile(httpClient: HttpClient): (_id: string | n
|
|
|
25619
26036
|
}[];
|
|
25620
26037
|
}[];
|
|
25621
26038
|
}>;
|
|
25622
|
-
declare function deleteDeliveryProfile(httpClient: HttpClient): (deliveryProfileId: string) => Promise<void>;
|
|
25623
|
-
declare function queryDeliveryProfiles(httpClient: HttpClient): () => DeliveryProfilesQueryBuilder;
|
|
25624
|
-
declare function addDeliveryRegion(httpClient: HttpClient): (deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions) => Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
|
|
25625
|
-
declare function updateDeliveryRegion(httpClient: HttpClient): (identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions) => Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
|
|
25626
|
-
declare function removeDeliveryRegion(httpClient: HttpClient): (identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions) => Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
25627
|
-
declare function addDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options: AddDeliveryCarrierOptions) => Promise<AddDeliveryCarrierResponse & AddDeliveryCarrierResponseNonNullableFields>;
|
|
25628
|
-
declare function removeDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options: RemoveDeliveryCarrierOptions) => Promise<RemoveDeliveryCarrierResponse & RemoveDeliveryCarrierResponseNonNullableFields>;
|
|
25629
|
-
declare function updateDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options?: UpdateDeliveryCarrierOptions) => Promise<UpdateDeliveryCarrierResponse & UpdateDeliveryCarrierResponseNonNullableFields>;
|
|
25630
|
-
declare function listDeliveryCarrierDetails(httpClient: HttpClient): () => Promise<ListDeliveryCarrierDetailsResponse & ListDeliveryCarrierDetailsResponseNonNullableFields>;
|
|
25631
|
-
declare function listDeliveryCarriers(httpClient: HttpClient): (deliveryProfileId: string, options?: ListDeliveryCarriersOptions) => Promise<ListDeliveryCarriersResponse & ListDeliveryCarriersResponseNonNullableFields>;
|
|
25632
|
-
declare function updateExtendedFields$1(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions$1) => Promise<UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
25633
|
-
declare const onDeliveryProfileCreated: EventDefinition<DeliveryProfileCreatedEnvelope, "wix.ecom.v1.delivery_profile_created">;
|
|
25634
|
-
declare const onDeliveryProfileDeliveryRegionAdded: EventDefinition<DeliveryProfileDeliveryRegionAddedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_added">;
|
|
25635
|
-
declare const onDeliveryProfileUpdated: EventDefinition<DeliveryProfileUpdatedEnvelope, "wix.ecom.v1.delivery_profile_updated">;
|
|
25636
|
-
declare const onDeliveryProfileDeleted: EventDefinition<DeliveryProfileDeletedEnvelope, "wix.ecom.v1.delivery_profile_deleted">;
|
|
25637
|
-
declare const onDeliveryProfileDeliveryRegionRemoved: EventDefinition<DeliveryProfileDeliveryRegionRemovedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_removed">;
|
|
25638
|
-
declare const onDeliveryProfileDeliveryRegionUpdated: EventDefinition<DeliveryProfileDeliveryRegionUpdatedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_updated">;
|
|
26039
|
+
declare function deleteDeliveryProfile(httpClient: HttpClient$6): (deliveryProfileId: string) => Promise<void>;
|
|
26040
|
+
declare function queryDeliveryProfiles(httpClient: HttpClient$6): () => DeliveryProfilesQueryBuilder;
|
|
26041
|
+
declare function addDeliveryRegion(httpClient: HttpClient$6): (deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions) => Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
|
|
26042
|
+
declare function updateDeliveryRegion(httpClient: HttpClient$6): (identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions) => Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
|
|
26043
|
+
declare function removeDeliveryRegion(httpClient: HttpClient$6): (identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions) => Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
26044
|
+
declare function addDeliveryCarrier(httpClient: HttpClient$6): (deliveryRegionId: string, options: AddDeliveryCarrierOptions) => Promise<AddDeliveryCarrierResponse & AddDeliveryCarrierResponseNonNullableFields>;
|
|
26045
|
+
declare function removeDeliveryCarrier(httpClient: HttpClient$6): (deliveryRegionId: string, options: RemoveDeliveryCarrierOptions) => Promise<RemoveDeliveryCarrierResponse & RemoveDeliveryCarrierResponseNonNullableFields>;
|
|
26046
|
+
declare function updateDeliveryCarrier(httpClient: HttpClient$6): (deliveryRegionId: string, options?: UpdateDeliveryCarrierOptions) => Promise<UpdateDeliveryCarrierResponse & UpdateDeliveryCarrierResponseNonNullableFields>;
|
|
26047
|
+
declare function listDeliveryCarrierDetails(httpClient: HttpClient$6): () => Promise<ListDeliveryCarrierDetailsResponse & ListDeliveryCarrierDetailsResponseNonNullableFields>;
|
|
26048
|
+
declare function listDeliveryCarriers(httpClient: HttpClient$6): (deliveryProfileId: string, options?: ListDeliveryCarriersOptions) => Promise<ListDeliveryCarriersResponse & ListDeliveryCarriersResponseNonNullableFields>;
|
|
26049
|
+
declare function updateExtendedFields$1(httpClient: HttpClient$6): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions$1) => Promise<UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
26050
|
+
declare const onDeliveryProfileCreated: EventDefinition$5<DeliveryProfileCreatedEnvelope, "wix.ecom.v1.delivery_profile_created">;
|
|
26051
|
+
declare const onDeliveryProfileDeliveryRegionAdded: EventDefinition$5<DeliveryProfileDeliveryRegionAddedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_added">;
|
|
26052
|
+
declare const onDeliveryProfileUpdated: EventDefinition$5<DeliveryProfileUpdatedEnvelope, "wix.ecom.v1.delivery_profile_updated">;
|
|
26053
|
+
declare const onDeliveryProfileDeleted: EventDefinition$5<DeliveryProfileDeletedEnvelope, "wix.ecom.v1.delivery_profile_deleted">;
|
|
26054
|
+
declare const onDeliveryProfileDeliveryRegionRemoved: EventDefinition$5<DeliveryProfileDeliveryRegionRemovedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_removed">;
|
|
26055
|
+
declare const onDeliveryProfileDeliveryRegionUpdated: EventDefinition$5<DeliveryProfileDeliveryRegionUpdatedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_updated">;
|
|
25639
26056
|
|
|
25640
26057
|
type index_d$6_AddDeliveryCarrierOptions = AddDeliveryCarrierOptions;
|
|
25641
26058
|
type index_d$6_AddDeliveryCarrierRequest = AddDeliveryCarrierRequest;
|
|
@@ -26311,13 +26728,53 @@ interface DeleteFulfillmentIdentifiers {
|
|
|
26311
26728
|
orderId: string;
|
|
26312
26729
|
}
|
|
26313
26730
|
|
|
26731
|
+
interface HttpClient$5 {
|
|
26732
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
26733
|
+
fetchWithAuth: typeof fetch;
|
|
26734
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
26735
|
+
}
|
|
26736
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
26737
|
+
type HttpResponse$5<T = any> = {
|
|
26738
|
+
data: T;
|
|
26739
|
+
status: number;
|
|
26740
|
+
statusText: string;
|
|
26741
|
+
headers: any;
|
|
26742
|
+
request?: any;
|
|
26743
|
+
};
|
|
26744
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
26745
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
26746
|
+
url: string;
|
|
26747
|
+
data?: Data;
|
|
26748
|
+
params?: URLSearchParams;
|
|
26749
|
+
} & APIMetadata$5;
|
|
26750
|
+
type APIMetadata$5 = {
|
|
26751
|
+
methodFqn?: string;
|
|
26752
|
+
entityFqdn?: string;
|
|
26753
|
+
packageName?: string;
|
|
26754
|
+
};
|
|
26755
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
26756
|
+
__type: 'event-definition';
|
|
26757
|
+
type: Type;
|
|
26758
|
+
isDomainEvent?: boolean;
|
|
26759
|
+
transformations?: (envelope: unknown) => Payload;
|
|
26760
|
+
__payload: Payload;
|
|
26761
|
+
};
|
|
26762
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
26763
|
+
|
|
26764
|
+
declare global {
|
|
26765
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
26766
|
+
interface SymbolConstructor {
|
|
26767
|
+
readonly observable: symbol;
|
|
26768
|
+
}
|
|
26769
|
+
}
|
|
26770
|
+
|
|
26314
26771
|
declare const __metadata$5: {
|
|
26315
26772
|
PACKAGE_NAME: string;
|
|
26316
26773
|
};
|
|
26317
|
-
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListFulfillmentsForSingleOrderResponse & ListFulfillmentsForSingleOrderResponseNonNullableFields>;
|
|
26318
|
-
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListFulfillmentsForMultipleOrdersResponse & ListFulfillmentsForMultipleOrdersResponseNonNullableFields>;
|
|
26319
|
-
declare function createFulfillment(httpClient: HttpClient): (orderId: string, fulfillment: Fulfillment$1) => Promise<CreateFulfillmentResponse & CreateFulfillmentResponseNonNullableFields>;
|
|
26320
|
-
declare function updateFulfillment(httpClient: HttpClient): (identifiers: UpdateFulfillmentIdentifiers, options?: UpdateFulfillmentOptions) => Promise<OrderWithFulfillments & {
|
|
26774
|
+
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient$5): (orderId: string) => Promise<ListFulfillmentsForSingleOrderResponse & ListFulfillmentsForSingleOrderResponseNonNullableFields>;
|
|
26775
|
+
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient$5): (orderIds: string[]) => Promise<ListFulfillmentsForMultipleOrdersResponse & ListFulfillmentsForMultipleOrdersResponseNonNullableFields>;
|
|
26776
|
+
declare function createFulfillment(httpClient: HttpClient$5): (orderId: string, fulfillment: Fulfillment$1) => Promise<CreateFulfillmentResponse & CreateFulfillmentResponseNonNullableFields>;
|
|
26777
|
+
declare function updateFulfillment(httpClient: HttpClient$5): (identifiers: UpdateFulfillmentIdentifiers, options?: UpdateFulfillmentOptions) => Promise<OrderWithFulfillments & {
|
|
26321
26778
|
orderId: string;
|
|
26322
26779
|
fulfillments: {
|
|
26323
26780
|
lineItems: {
|
|
@@ -26325,9 +26782,9 @@ declare function updateFulfillment(httpClient: HttpClient): (identifiers: Update
|
|
|
26325
26782
|
}[];
|
|
26326
26783
|
}[];
|
|
26327
26784
|
}>;
|
|
26328
|
-
declare function deleteFulfillment(httpClient: HttpClient): (identifiers: DeleteFulfillmentIdentifiers) => Promise<DeleteFulfillmentResponse & DeleteFulfillmentResponseNonNullableFields>;
|
|
26329
|
-
declare function bulkCreateFulfillments(httpClient: HttpClient): (ordersWithFulfillments: BulkCreateOrderWithFulfillments[]) => Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
26330
|
-
declare const onFulfillmentsUpdated: EventDefinition<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
26785
|
+
declare function deleteFulfillment(httpClient: HttpClient$5): (identifiers: DeleteFulfillmentIdentifiers) => Promise<DeleteFulfillmentResponse & DeleteFulfillmentResponseNonNullableFields>;
|
|
26786
|
+
declare function bulkCreateFulfillments(httpClient: HttpClient$5): (ordersWithFulfillments: BulkCreateOrderWithFulfillments[]) => Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
26787
|
+
declare const onFulfillmentsUpdated: EventDefinition$4<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
26331
26788
|
|
|
26332
26789
|
type index_d$5_BulkCreateFulfillmentRequest = BulkCreateFulfillmentRequest;
|
|
26333
26790
|
type index_d$5_BulkCreateFulfillmentResponse = BulkCreateFulfillmentResponse;
|
|
@@ -32481,11 +32938,51 @@ interface CancelOrderOptions {
|
|
|
32481
32938
|
restockAllItems?: boolean;
|
|
32482
32939
|
}
|
|
32483
32940
|
|
|
32941
|
+
interface HttpClient$4 {
|
|
32942
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
32943
|
+
fetchWithAuth: typeof fetch;
|
|
32944
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
32945
|
+
}
|
|
32946
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
32947
|
+
type HttpResponse$4<T = any> = {
|
|
32948
|
+
data: T;
|
|
32949
|
+
status: number;
|
|
32950
|
+
statusText: string;
|
|
32951
|
+
headers: any;
|
|
32952
|
+
request?: any;
|
|
32953
|
+
};
|
|
32954
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
32955
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
32956
|
+
url: string;
|
|
32957
|
+
data?: Data;
|
|
32958
|
+
params?: URLSearchParams;
|
|
32959
|
+
} & APIMetadata$4;
|
|
32960
|
+
type APIMetadata$4 = {
|
|
32961
|
+
methodFqn?: string;
|
|
32962
|
+
entityFqdn?: string;
|
|
32963
|
+
packageName?: string;
|
|
32964
|
+
};
|
|
32965
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
32966
|
+
__type: 'event-definition';
|
|
32967
|
+
type: Type;
|
|
32968
|
+
isDomainEvent?: boolean;
|
|
32969
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32970
|
+
__payload: Payload;
|
|
32971
|
+
};
|
|
32972
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
32973
|
+
|
|
32974
|
+
declare global {
|
|
32975
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
32976
|
+
interface SymbolConstructor {
|
|
32977
|
+
readonly observable: symbol;
|
|
32978
|
+
}
|
|
32979
|
+
}
|
|
32980
|
+
|
|
32484
32981
|
declare const __metadata$4: {
|
|
32485
32982
|
PACKAGE_NAME: string;
|
|
32486
32983
|
};
|
|
32487
|
-
declare function getPaymentCollectabilityStatus(httpClient: HttpClient): (ecomOrderId: string) => Promise<GetPaymentCollectabilityStatusResponse & GetPaymentCollectabilityStatusResponseNonNullableFields>;
|
|
32488
|
-
declare function getOrder(httpClient: HttpClient): (_id: string) => Promise<Order$1 & {
|
|
32984
|
+
declare function getPaymentCollectabilityStatus(httpClient: HttpClient$4): (ecomOrderId: string) => Promise<GetPaymentCollectabilityStatusResponse & GetPaymentCollectabilityStatusResponseNonNullableFields>;
|
|
32985
|
+
declare function getOrder(httpClient: HttpClient$4): (_id: string) => Promise<Order$1 & {
|
|
32489
32986
|
number: string;
|
|
32490
32987
|
lineItems: {
|
|
32491
32988
|
_id: string;
|
|
@@ -32812,8 +33309,8 @@ declare function getOrder(httpClient: HttpClient): (_id: string) => Promise<Orde
|
|
|
32812
33309
|
} | undefined;
|
|
32813
33310
|
} | undefined;
|
|
32814
33311
|
}>;
|
|
32815
|
-
declare function searchOrders(httpClient: HttpClient): (options?: SearchOrdersOptions) => Promise<SearchOrdersResponse & SearchOrdersResponseNonNullableFields>;
|
|
32816
|
-
declare function createOrder(httpClient: HttpClient): (order: Order$1) => Promise<Order$1 & {
|
|
33312
|
+
declare function searchOrders(httpClient: HttpClient$4): (options?: SearchOrdersOptions) => Promise<SearchOrdersResponse & SearchOrdersResponseNonNullableFields>;
|
|
33313
|
+
declare function createOrder(httpClient: HttpClient$4): (order: Order$1) => Promise<Order$1 & {
|
|
32817
33314
|
number: string;
|
|
32818
33315
|
lineItems: {
|
|
32819
33316
|
_id: string;
|
|
@@ -33140,7 +33637,7 @@ declare function createOrder(httpClient: HttpClient): (order: Order$1) => Promis
|
|
|
33140
33637
|
} | undefined;
|
|
33141
33638
|
} | undefined;
|
|
33142
33639
|
}>;
|
|
33143
|
-
declare function updateOrder(httpClient: HttpClient): (_id: string | null, order: UpdateOrder) => Promise<Order$1 & {
|
|
33640
|
+
declare function updateOrder(httpClient: HttpClient$4): (_id: string | null, order: UpdateOrder) => Promise<Order$1 & {
|
|
33144
33641
|
number: string;
|
|
33145
33642
|
lineItems: {
|
|
33146
33643
|
_id: string;
|
|
@@ -33467,12 +33964,12 @@ declare function updateOrder(httpClient: HttpClient): (_id: string | null, order
|
|
|
33467
33964
|
} | undefined;
|
|
33468
33965
|
} | undefined;
|
|
33469
33966
|
}>;
|
|
33470
|
-
declare function cancelOrder(httpClient: HttpClient): (_id: string, options?: CancelOrderOptions) => Promise<CancelOrderResponse & CancelOrderResponseNonNullableFields>;
|
|
33471
|
-
declare const onOrderPaymentStatusUpdated: EventDefinition<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
33472
|
-
declare const onOrderUpdated: EventDefinition<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
33473
|
-
declare const onOrderCreated: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
33474
|
-
declare const onOrderCanceled: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
33475
|
-
declare const onOrderApproved: EventDefinition<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
33967
|
+
declare function cancelOrder(httpClient: HttpClient$4): (_id: string, options?: CancelOrderOptions) => Promise<CancelOrderResponse & CancelOrderResponseNonNullableFields>;
|
|
33968
|
+
declare const onOrderPaymentStatusUpdated: EventDefinition$3<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
33969
|
+
declare const onOrderUpdated: EventDefinition$3<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
33970
|
+
declare const onOrderCreated: EventDefinition$3<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
33971
|
+
declare const onOrderCanceled: EventDefinition$3<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
33972
|
+
declare const onOrderApproved: EventDefinition$3<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
33476
33973
|
|
|
33477
33974
|
type index_d$4_ActivityContentOneOf = ActivityContentOneOf;
|
|
33478
33975
|
type index_d$4_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -35754,15 +36251,55 @@ interface BulkUpdatePaymentStatusesOptions {
|
|
|
35754
36251
|
status?: TransactionStatus;
|
|
35755
36252
|
}
|
|
35756
36253
|
|
|
36254
|
+
interface HttpClient$3 {
|
|
36255
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
36256
|
+
fetchWithAuth: typeof fetch;
|
|
36257
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
36258
|
+
}
|
|
36259
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
36260
|
+
type HttpResponse$3<T = any> = {
|
|
36261
|
+
data: T;
|
|
36262
|
+
status: number;
|
|
36263
|
+
statusText: string;
|
|
36264
|
+
headers: any;
|
|
36265
|
+
request?: any;
|
|
36266
|
+
};
|
|
36267
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
36268
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
36269
|
+
url: string;
|
|
36270
|
+
data?: Data;
|
|
36271
|
+
params?: URLSearchParams;
|
|
36272
|
+
} & APIMetadata$3;
|
|
36273
|
+
type APIMetadata$3 = {
|
|
36274
|
+
methodFqn?: string;
|
|
36275
|
+
entityFqdn?: string;
|
|
36276
|
+
packageName?: string;
|
|
36277
|
+
};
|
|
36278
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
36279
|
+
__type: 'event-definition';
|
|
36280
|
+
type: Type;
|
|
36281
|
+
isDomainEvent?: boolean;
|
|
36282
|
+
transformations?: (envelope: unknown) => Payload;
|
|
36283
|
+
__payload: Payload;
|
|
36284
|
+
};
|
|
36285
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
36286
|
+
|
|
36287
|
+
declare global {
|
|
36288
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
36289
|
+
interface SymbolConstructor {
|
|
36290
|
+
readonly observable: symbol;
|
|
36291
|
+
}
|
|
36292
|
+
}
|
|
36293
|
+
|
|
35757
36294
|
declare const __metadata$3: {
|
|
35758
36295
|
PACKAGE_NAME: string;
|
|
35759
36296
|
};
|
|
35760
|
-
declare function listTransactionsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListTransactionsForSingleOrderResponse & ListTransactionsForSingleOrderResponseNonNullableFields>;
|
|
35761
|
-
declare function listTransactionsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListTransactionsForMultipleOrdersResponse & ListTransactionsForMultipleOrdersResponseNonNullableFields>;
|
|
35762
|
-
declare function addPayments(httpClient: HttpClient): (orderId: string, payments: Payment[]) => Promise<AddPaymentsResponse & AddPaymentsResponseNonNullableFields>;
|
|
35763
|
-
declare function updatePaymentStatus(httpClient: HttpClient): (identifiers: UpdatePaymentStatusIdentifiers, options?: UpdatePaymentStatusOptions) => Promise<UpdatePaymentStatusResponse & UpdatePaymentStatusResponseNonNullableFields>;
|
|
35764
|
-
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient): (paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions) => Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
35765
|
-
declare const onOrderTransactionsUpdated: EventDefinition<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
36297
|
+
declare function listTransactionsForSingleOrder(httpClient: HttpClient$3): (orderId: string) => Promise<ListTransactionsForSingleOrderResponse & ListTransactionsForSingleOrderResponseNonNullableFields>;
|
|
36298
|
+
declare function listTransactionsForMultipleOrders(httpClient: HttpClient$3): (orderIds: string[]) => Promise<ListTransactionsForMultipleOrdersResponse & ListTransactionsForMultipleOrdersResponseNonNullableFields>;
|
|
36299
|
+
declare function addPayments(httpClient: HttpClient$3): (orderId: string, payments: Payment[]) => Promise<AddPaymentsResponse & AddPaymentsResponseNonNullableFields>;
|
|
36300
|
+
declare function updatePaymentStatus(httpClient: HttpClient$3): (identifiers: UpdatePaymentStatusIdentifiers, options?: UpdatePaymentStatusOptions) => Promise<UpdatePaymentStatusResponse & UpdatePaymentStatusResponseNonNullableFields>;
|
|
36301
|
+
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient$3): (paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions) => Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
36302
|
+
declare const onOrderTransactionsUpdated: EventDefinition$2<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
35766
36303
|
|
|
35767
36304
|
type index_d$3_Activity = Activity;
|
|
35768
36305
|
type index_d$3_ActivityType = ActivityType;
|
|
@@ -36165,12 +36702,52 @@ interface OrdersSettingsUpdatedEnvelope {
|
|
|
36165
36702
|
metadata: EventMetadata$1;
|
|
36166
36703
|
}
|
|
36167
36704
|
|
|
36705
|
+
interface HttpClient$2 {
|
|
36706
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
36707
|
+
fetchWithAuth: typeof fetch;
|
|
36708
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
36709
|
+
}
|
|
36710
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
36711
|
+
type HttpResponse$2<T = any> = {
|
|
36712
|
+
data: T;
|
|
36713
|
+
status: number;
|
|
36714
|
+
statusText: string;
|
|
36715
|
+
headers: any;
|
|
36716
|
+
request?: any;
|
|
36717
|
+
};
|
|
36718
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
36719
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
36720
|
+
url: string;
|
|
36721
|
+
data?: Data;
|
|
36722
|
+
params?: URLSearchParams;
|
|
36723
|
+
} & APIMetadata$2;
|
|
36724
|
+
type APIMetadata$2 = {
|
|
36725
|
+
methodFqn?: string;
|
|
36726
|
+
entityFqdn?: string;
|
|
36727
|
+
packageName?: string;
|
|
36728
|
+
};
|
|
36729
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
36730
|
+
__type: 'event-definition';
|
|
36731
|
+
type: Type;
|
|
36732
|
+
isDomainEvent?: boolean;
|
|
36733
|
+
transformations?: (envelope: unknown) => Payload;
|
|
36734
|
+
__payload: Payload;
|
|
36735
|
+
};
|
|
36736
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
36737
|
+
|
|
36738
|
+
declare global {
|
|
36739
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
36740
|
+
interface SymbolConstructor {
|
|
36741
|
+
readonly observable: symbol;
|
|
36742
|
+
}
|
|
36743
|
+
}
|
|
36744
|
+
|
|
36168
36745
|
declare const __metadata$2: {
|
|
36169
36746
|
PACKAGE_NAME: string;
|
|
36170
36747
|
};
|
|
36171
|
-
declare function getOrdersSettings(httpClient: HttpClient): () => Promise<GetOrdersSettingsResponse & GetOrdersSettingsResponseNonNullableFields>;
|
|
36172
|
-
declare function updateOrdersSettings(httpClient: HttpClient): (ordersSettings: OrdersSettings) => Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
36173
|
-
declare const onOrdersSettingsUpdated: EventDefinition<OrdersSettingsUpdatedEnvelope, "wix.ecom.v1.orders_settings_updated">;
|
|
36748
|
+
declare function getOrdersSettings(httpClient: HttpClient$2): () => Promise<GetOrdersSettingsResponse & GetOrdersSettingsResponseNonNullableFields>;
|
|
36749
|
+
declare function updateOrdersSettings(httpClient: HttpClient$2): (ordersSettings: OrdersSettings) => Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
36750
|
+
declare const onOrdersSettingsUpdated: EventDefinition$1<OrdersSettingsUpdatedEnvelope, "wix.ecom.v1.orders_settings_updated">;
|
|
36174
36751
|
|
|
36175
36752
|
type index_d$2_DeleteOrdersSettingsRequest = DeleteOrdersSettingsRequest;
|
|
36176
36753
|
type index_d$2_DeleteOrdersSettingsResponse = DeleteOrdersSettingsResponse;
|
|
@@ -36895,10 +37472,50 @@ interface UpdateExtendedFieldsOptions {
|
|
|
36895
37472
|
namespaceData: Record<string, any> | null;
|
|
36896
37473
|
}
|
|
36897
37474
|
|
|
37475
|
+
interface HttpClient$1 {
|
|
37476
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
37477
|
+
fetchWithAuth: typeof fetch;
|
|
37478
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
37479
|
+
}
|
|
37480
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
37481
|
+
type HttpResponse$1<T = any> = {
|
|
37482
|
+
data: T;
|
|
37483
|
+
status: number;
|
|
37484
|
+
statusText: string;
|
|
37485
|
+
headers: any;
|
|
37486
|
+
request?: any;
|
|
37487
|
+
};
|
|
37488
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
37489
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
37490
|
+
url: string;
|
|
37491
|
+
data?: Data;
|
|
37492
|
+
params?: URLSearchParams;
|
|
37493
|
+
} & APIMetadata$1;
|
|
37494
|
+
type APIMetadata$1 = {
|
|
37495
|
+
methodFqn?: string;
|
|
37496
|
+
entityFqdn?: string;
|
|
37497
|
+
packageName?: string;
|
|
37498
|
+
};
|
|
37499
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
37500
|
+
__type: 'event-definition';
|
|
37501
|
+
type: Type;
|
|
37502
|
+
isDomainEvent?: boolean;
|
|
37503
|
+
transformations?: (envelope: unknown) => Payload;
|
|
37504
|
+
__payload: Payload;
|
|
37505
|
+
};
|
|
37506
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
37507
|
+
|
|
37508
|
+
declare global {
|
|
37509
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
37510
|
+
interface SymbolConstructor {
|
|
37511
|
+
readonly observable: symbol;
|
|
37512
|
+
}
|
|
37513
|
+
}
|
|
37514
|
+
|
|
36898
37515
|
declare const __metadata$1: {
|
|
36899
37516
|
PACKAGE_NAME: string;
|
|
36900
37517
|
};
|
|
36901
|
-
declare function createShippoConfiguration(httpClient: HttpClient): (shippoConfiguration: ShippoConfiguration, options?: CreateShippoConfigurationOptions) => Promise<ShippoConfiguration & {
|
|
37518
|
+
declare function createShippoConfiguration(httpClient: HttpClient$1): (shippoConfiguration: ShippoConfiguration, options?: CreateShippoConfigurationOptions) => Promise<ShippoConfiguration & {
|
|
36902
37519
|
domesticServices: {
|
|
36903
37520
|
service: DomesticService;
|
|
36904
37521
|
serviceSettings?: {
|
|
@@ -36926,7 +37543,7 @@ declare function createShippoConfiguration(httpClient: HttpClient): (shippoConfi
|
|
|
36926
37543
|
} | undefined;
|
|
36927
37544
|
} | undefined;
|
|
36928
37545
|
}>;
|
|
36929
|
-
declare function getShippoConfiguration(httpClient: HttpClient): (shippoConfigurationId: string) => Promise<ShippoConfiguration & {
|
|
37546
|
+
declare function getShippoConfiguration(httpClient: HttpClient$1): (shippoConfigurationId: string) => Promise<ShippoConfiguration & {
|
|
36930
37547
|
domesticServices: {
|
|
36931
37548
|
service: DomesticService;
|
|
36932
37549
|
serviceSettings?: {
|
|
@@ -36954,7 +37571,7 @@ declare function getShippoConfiguration(httpClient: HttpClient): (shippoConfigur
|
|
|
36954
37571
|
} | undefined;
|
|
36955
37572
|
} | undefined;
|
|
36956
37573
|
}>;
|
|
36957
|
-
declare function updateShippoConfiguration(httpClient: HttpClient): (_id: string | null, shippoConfiguration: UpdateShippoConfiguration) => Promise<ShippoConfiguration & {
|
|
37574
|
+
declare function updateShippoConfiguration(httpClient: HttpClient$1): (_id: string | null, shippoConfiguration: UpdateShippoConfiguration) => Promise<ShippoConfiguration & {
|
|
36958
37575
|
domesticServices: {
|
|
36959
37576
|
service: DomesticService;
|
|
36960
37577
|
serviceSettings?: {
|
|
@@ -36982,9 +37599,9 @@ declare function updateShippoConfiguration(httpClient: HttpClient): (_id: string
|
|
|
36982
37599
|
} | undefined;
|
|
36983
37600
|
} | undefined;
|
|
36984
37601
|
}>;
|
|
36985
|
-
declare function deleteShippoConfiguration(httpClient: HttpClient): (shippoConfigurationId: string) => Promise<void>;
|
|
36986
|
-
declare function queryShippoConfigurations(httpClient: HttpClient): () => ShippoConfigurationsQueryBuilder;
|
|
36987
|
-
declare function updateExtendedFields(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
37602
|
+
declare function deleteShippoConfiguration(httpClient: HttpClient$1): (shippoConfigurationId: string) => Promise<void>;
|
|
37603
|
+
declare function queryShippoConfigurations(httpClient: HttpClient$1): () => ShippoConfigurationsQueryBuilder;
|
|
37604
|
+
declare function updateExtendedFields(httpClient: HttpClient$1): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
36988
37605
|
declare const onShippoConfigurationCreated: EventDefinition<ShippoConfigurationCreatedEnvelope, "wix.ecom.v1.shippo_configuration_created">;
|
|
36989
37606
|
declare const onShippoConfigurationUpdated: EventDefinition<ShippoConfigurationUpdatedEnvelope, "wix.ecom.v1.shippo_configuration_updated">;
|
|
36990
37607
|
declare const onShippoConfigurationDeleted: EventDefinition<ShippoConfigurationDeletedEnvelope, "wix.ecom.v1.shippo_configuration_deleted">;
|
|
@@ -37146,6 +37763,38 @@ interface GetConversionRateIdentifiers {
|
|
|
37146
37763
|
to: string;
|
|
37147
37764
|
}
|
|
37148
37765
|
|
|
37766
|
+
interface HttpClient {
|
|
37767
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
37768
|
+
fetchWithAuth: typeof fetch;
|
|
37769
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
37770
|
+
}
|
|
37771
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
37772
|
+
type HttpResponse<T = any> = {
|
|
37773
|
+
data: T;
|
|
37774
|
+
status: number;
|
|
37775
|
+
statusText: string;
|
|
37776
|
+
headers: any;
|
|
37777
|
+
request?: any;
|
|
37778
|
+
};
|
|
37779
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
37780
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
37781
|
+
url: string;
|
|
37782
|
+
data?: Data;
|
|
37783
|
+
params?: URLSearchParams;
|
|
37784
|
+
} & APIMetadata;
|
|
37785
|
+
type APIMetadata = {
|
|
37786
|
+
methodFqn?: string;
|
|
37787
|
+
entityFqdn?: string;
|
|
37788
|
+
packageName?: string;
|
|
37789
|
+
};
|
|
37790
|
+
|
|
37791
|
+
declare global {
|
|
37792
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
37793
|
+
interface SymbolConstructor {
|
|
37794
|
+
readonly observable: symbol;
|
|
37795
|
+
}
|
|
37796
|
+
}
|
|
37797
|
+
|
|
37149
37798
|
declare const __metadata: {
|
|
37150
37799
|
PACKAGE_NAME: string;
|
|
37151
37800
|
};
|