@wix/ecom 1.0.662 → 1.0.663
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,38 +1078,38 @@ interface DiscountRulesQueryBuilder {
|
|
|
1078
1078
|
find: () => Promise<DiscountRulesQueryResult>;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
interface HttpClient
|
|
1082
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
1081
|
+
interface HttpClient {
|
|
1082
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1083
1083
|
fetchWithAuth: typeof fetch;
|
|
1084
1084
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1085
1085
|
}
|
|
1086
|
-
type RequestOptionsFactory
|
|
1087
|
-
type HttpResponse
|
|
1086
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1087
|
+
type HttpResponse<T = any> = {
|
|
1088
1088
|
data: T;
|
|
1089
1089
|
status: number;
|
|
1090
1090
|
statusText: string;
|
|
1091
1091
|
headers: any;
|
|
1092
1092
|
request?: any;
|
|
1093
1093
|
};
|
|
1094
|
-
type RequestOptions
|
|
1094
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1095
1095
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1096
1096
|
url: string;
|
|
1097
1097
|
data?: Data;
|
|
1098
1098
|
params?: URLSearchParams;
|
|
1099
|
-
} & APIMetadata
|
|
1100
|
-
type APIMetadata
|
|
1099
|
+
} & APIMetadata;
|
|
1100
|
+
type APIMetadata = {
|
|
1101
1101
|
methodFqn?: string;
|
|
1102
1102
|
entityFqdn?: string;
|
|
1103
1103
|
packageName?: string;
|
|
1104
1104
|
};
|
|
1105
|
-
type EventDefinition
|
|
1105
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1106
1106
|
__type: 'event-definition';
|
|
1107
1107
|
type: Type;
|
|
1108
1108
|
isDomainEvent?: boolean;
|
|
1109
1109
|
transformations?: (envelope: unknown) => Payload;
|
|
1110
1110
|
__payload: Payload;
|
|
1111
1111
|
};
|
|
1112
|
-
declare function EventDefinition
|
|
1112
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1113
1113
|
|
|
1114
1114
|
declare global {
|
|
1115
1115
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1121,7 +1121,7 @@ declare global {
|
|
|
1121
1121
|
declare const __metadata$h: {
|
|
1122
1122
|
PACKAGE_NAME: string;
|
|
1123
1123
|
};
|
|
1124
|
-
declare function createDiscountRule(httpClient: HttpClient
|
|
1124
|
+
declare function createDiscountRule(httpClient: HttpClient): (discountRule: DiscountRule$5) => Promise<DiscountRule$5 & {
|
|
1125
1125
|
trigger?: {
|
|
1126
1126
|
and?: {
|
|
1127
1127
|
triggers: (any | undefined)[];
|
|
@@ -1186,7 +1186,7 @@ declare function createDiscountRule(httpClient: HttpClient$h): (discountRule: Di
|
|
|
1186
1186
|
status: Status$3;
|
|
1187
1187
|
usageCount: number;
|
|
1188
1188
|
}>;
|
|
1189
|
-
declare function getDiscountRule(httpClient: HttpClient
|
|
1189
|
+
declare function getDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<DiscountRule$5 & {
|
|
1190
1190
|
trigger?: {
|
|
1191
1191
|
and?: {
|
|
1192
1192
|
triggers: (any | undefined)[];
|
|
@@ -1251,7 +1251,7 @@ declare function getDiscountRule(httpClient: HttpClient$h): (discountRuleId: str
|
|
|
1251
1251
|
status: Status$3;
|
|
1252
1252
|
usageCount: number;
|
|
1253
1253
|
}>;
|
|
1254
|
-
declare function updateDiscountRule(httpClient: HttpClient
|
|
1254
|
+
declare function updateDiscountRule(httpClient: HttpClient): (_id: string | null, discountRule: UpdateDiscountRule) => Promise<DiscountRule$5 & {
|
|
1255
1255
|
trigger?: {
|
|
1256
1256
|
and?: {
|
|
1257
1257
|
triggers: (any | undefined)[];
|
|
@@ -1316,11 +1316,11 @@ declare function updateDiscountRule(httpClient: HttpClient$h): (_id: string | nu
|
|
|
1316
1316
|
status: Status$3;
|
|
1317
1317
|
usageCount: number;
|
|
1318
1318
|
}>;
|
|
1319
|
-
declare function deleteDiscountRule(httpClient: HttpClient
|
|
1320
|
-
declare function queryDiscountRules(httpClient: HttpClient
|
|
1321
|
-
declare const onDiscountRuleCreated: EventDefinition
|
|
1322
|
-
declare const onDiscountRuleUpdated: EventDefinition
|
|
1323
|
-
declare const onDiscountRuleDeleted: EventDefinition
|
|
1319
|
+
declare function deleteDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<void>;
|
|
1320
|
+
declare function queryDiscountRules(httpClient: HttpClient): () => DiscountRulesQueryBuilder;
|
|
1321
|
+
declare const onDiscountRuleCreated: EventDefinition<DiscountRuleCreatedEnvelope, "wix.ecom.discounts.v1.discount_rule_created">;
|
|
1322
|
+
declare const onDiscountRuleUpdated: EventDefinition<DiscountRuleUpdatedEnvelope, "wix.ecom.discounts.v1.discount_rule_updated">;
|
|
1323
|
+
declare const onDiscountRuleDeleted: EventDefinition<DiscountRuleDeletedEnvelope, "wix.ecom.discounts.v1.discount_rule_deleted">;
|
|
1324
1324
|
|
|
1325
1325
|
type index_d$h_ActiveTimeInfo = ActiveTimeInfo;
|
|
1326
1326
|
type index_d$h_And = And;
|
|
@@ -1613,42 +1613,10 @@ interface ListInvoicesForMultipleOrdersResponseNonNullableFields {
|
|
|
1613
1613
|
}[];
|
|
1614
1614
|
}
|
|
1615
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
|
-
|
|
1648
1616
|
declare const __metadata$g: {
|
|
1649
1617
|
PACKAGE_NAME: string;
|
|
1650
1618
|
};
|
|
1651
|
-
declare function listInvoicesForMultipleOrders(httpClient: HttpClient
|
|
1619
|
+
declare function listInvoicesForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListInvoicesForMultipleOrdersResponse$1 & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
|
|
1652
1620
|
|
|
1653
1621
|
type index_d$g_GenerateInvoiceWithNumberRequest = GenerateInvoiceWithNumberRequest;
|
|
1654
1622
|
type index_d$g_GenerateInvoiceWithNumberResponse = GenerateInvoiceWithNumberResponse;
|
|
@@ -1808,43 +1776,11 @@ interface GetRecommendationOptions {
|
|
|
1808
1776
|
minimumRecommendedItems?: number;
|
|
1809
1777
|
}
|
|
1810
1778
|
|
|
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
|
-
|
|
1843
1779
|
declare const __metadata$f: {
|
|
1844
1780
|
PACKAGE_NAME: string;
|
|
1845
1781
|
};
|
|
1846
|
-
declare function listAvailableAlgorithms(httpClient: HttpClient
|
|
1847
|
-
declare function getRecommendation(httpClient: HttpClient
|
|
1782
|
+
declare function listAvailableAlgorithms(httpClient: HttpClient): () => Promise<ListAvailableAlgorithmsResponse & ListAvailableAlgorithmsResponseNonNullableFields>;
|
|
1783
|
+
declare function getRecommendation(httpClient: HttpClient): (algorithms: Algorithm[], options?: GetRecommendationOptions) => Promise<GetRecommendationResponse & GetRecommendationResponseNonNullableFields>;
|
|
1848
1784
|
|
|
1849
1785
|
type index_d$f_Algorithm = Algorithm;
|
|
1850
1786
|
type index_d$f_AlgorithmConfig = AlgorithmConfig;
|
|
@@ -2546,50 +2482,10 @@ interface AbandonedCheckoutRecoveredEnvelope {
|
|
|
2546
2482
|
metadata: EventMetadata$c;
|
|
2547
2483
|
}
|
|
2548
2484
|
|
|
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
|
-
|
|
2589
2485
|
declare const __metadata$e: {
|
|
2590
2486
|
PACKAGE_NAME: string;
|
|
2591
2487
|
};
|
|
2592
|
-
declare function getAbandonedCheckout(httpClient: HttpClient
|
|
2488
|
+
declare function getAbandonedCheckout(httpClient: HttpClient): (abandonedCheckoutId: string) => Promise<AbandonedCheckout & {
|
|
2593
2489
|
_id: string;
|
|
2594
2490
|
status: Status$2;
|
|
2595
2491
|
buyerInfo?: {
|
|
@@ -2621,8 +2517,8 @@ declare function getAbandonedCheckout(httpClient: HttpClient$e): (abandonedCheck
|
|
|
2621
2517
|
formattedConvertedAmount: string;
|
|
2622
2518
|
} | undefined;
|
|
2623
2519
|
}>;
|
|
2624
|
-
declare const onAbandonedCheckoutCreated: EventDefinition
|
|
2625
|
-
declare const onAbandonedCheckoutRecovered: EventDefinition
|
|
2520
|
+
declare const onAbandonedCheckoutCreated: EventDefinition<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
2521
|
+
declare const onAbandonedCheckoutRecovered: EventDefinition<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2626
2522
|
|
|
2627
2523
|
type index_d$e_AbandonedCheckout = AbandonedCheckout;
|
|
2628
2524
|
type index_d$e_AbandonedCheckoutCreatedEnvelope = AbandonedCheckoutCreatedEnvelope;
|
|
@@ -3280,50 +3176,10 @@ interface ReportItemsBackInStockOptions {
|
|
|
3280
3176
|
extraAutomationTemplateParameters?: Record<string, string>;
|
|
3281
3177
|
}
|
|
3282
3178
|
|
|
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
|
-
|
|
3323
3179
|
declare const __metadata$d: {
|
|
3324
3180
|
PACKAGE_NAME: string;
|
|
3325
3181
|
};
|
|
3326
|
-
declare function createBackInStockNotificationRequest(httpClient: HttpClient
|
|
3182
|
+
declare function createBackInStockNotificationRequest(httpClient: HttpClient): (request: BackInStockNotificationRequest, itemDetails: BackInStockItemDetails) => Promise<BackInStockNotificationRequest & {
|
|
3327
3183
|
catalogReference?: {
|
|
3328
3184
|
catalogItemId: string;
|
|
3329
3185
|
appId: string;
|
|
@@ -3331,7 +3187,7 @@ declare function createBackInStockNotificationRequest(httpClient: HttpClient$d):
|
|
|
3331
3187
|
email: string;
|
|
3332
3188
|
status: Status$1;
|
|
3333
3189
|
}>;
|
|
3334
|
-
declare function getBackInStockNotificationRequest(httpClient: HttpClient
|
|
3190
|
+
declare function getBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<BackInStockNotificationRequest & {
|
|
3335
3191
|
catalogReference?: {
|
|
3336
3192
|
catalogItemId: string;
|
|
3337
3193
|
appId: string;
|
|
@@ -3339,14 +3195,14 @@ declare function getBackInStockNotificationRequest(httpClient: HttpClient$d): (_
|
|
|
3339
3195
|
email: string;
|
|
3340
3196
|
status: Status$1;
|
|
3341
3197
|
}>;
|
|
3342
|
-
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient
|
|
3343
|
-
declare function markAsNotificationSent(httpClient: HttpClient
|
|
3344
|
-
declare function queryBackInStockNotificationRequests(httpClient: HttpClient
|
|
3345
|
-
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient
|
|
3346
|
-
declare function reportItemsBackInStock(httpClient: HttpClient
|
|
3347
|
-
declare const onBackInStockNotificationRequestCreated: EventDefinition
|
|
3348
|
-
declare const onBackInStockNotificationRequestDeleted: EventDefinition
|
|
3349
|
-
declare const onBackInStockNotificationRequestUpdated: EventDefinition
|
|
3198
|
+
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
3199
|
+
declare function markAsNotificationSent(httpClient: HttpClient): (_id: string) => Promise<MarkAsNotificationSentResponse & MarkAsNotificationSentResponseNonNullableFields>;
|
|
3200
|
+
declare function queryBackInStockNotificationRequests(httpClient: HttpClient): () => RequestsQueryBuilder;
|
|
3201
|
+
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient): (catalogReferences: CatalogReference$5[]) => Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse & GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields>;
|
|
3202
|
+
declare function reportItemsBackInStock(httpClient: HttpClient): (itemDetails: BackInStockItemDetails, options?: ReportItemsBackInStockOptions) => Promise<void>;
|
|
3203
|
+
declare const onBackInStockNotificationRequestCreated: EventDefinition<BackInStockNotificationRequestCreatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_created">;
|
|
3204
|
+
declare const onBackInStockNotificationRequestDeleted: EventDefinition<BackInStockNotificationRequestDeletedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_deleted">;
|
|
3205
|
+
declare const onBackInStockNotificationRequestUpdated: EventDefinition<BackInStockNotificationRequestUpdatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_updated">;
|
|
3350
3206
|
|
|
3351
3207
|
type index_d$d_BackInStockItemDetails = BackInStockItemDetails;
|
|
3352
3208
|
type index_d$d_BackInStockNotificationRequest = BackInStockNotificationRequest;
|
|
@@ -3459,44 +3315,12 @@ interface GetSettingsResponseNonNullableFields {
|
|
|
3459
3315
|
};
|
|
3460
3316
|
}
|
|
3461
3317
|
|
|
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
|
-
|
|
3494
3318
|
declare const __metadata$c: {
|
|
3495
3319
|
PACKAGE_NAME: string;
|
|
3496
3320
|
};
|
|
3497
|
-
declare function startCollectingRequests(httpClient: HttpClient
|
|
3498
|
-
declare function stopCollectingRequests(httpClient: HttpClient
|
|
3499
|
-
declare function getSettings(httpClient: HttpClient
|
|
3321
|
+
declare function startCollectingRequests(httpClient: HttpClient): (appId: string) => Promise<StartCollectingRequestsResponse & StartCollectingRequestsResponseNonNullableFields>;
|
|
3322
|
+
declare function stopCollectingRequests(httpClient: HttpClient): (appId: string) => Promise<StopCollectingRequestsResponse & StopCollectingRequestsResponseNonNullableFields>;
|
|
3323
|
+
declare function getSettings(httpClient: HttpClient): () => Promise<GetSettingsResponse & GetSettingsResponseNonNullableFields>;
|
|
3500
3324
|
|
|
3501
3325
|
type index_d$c_BackInStockCollectionState = BackInStockCollectionState;
|
|
3502
3326
|
type index_d$c_BackInStockSettings = BackInStockSettings;
|
|
@@ -7094,50 +6918,10 @@ interface EstimateTotalsOptions {
|
|
|
7094
6918
|
selectedMemberships?: SelectedMemberships$3;
|
|
7095
6919
|
}
|
|
7096
6920
|
|
|
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
|
-
|
|
7137
6921
|
declare const __metadata$b: {
|
|
7138
6922
|
PACKAGE_NAME: string;
|
|
7139
6923
|
};
|
|
7140
|
-
declare function createCart(httpClient: HttpClient
|
|
6924
|
+
declare function createCart(httpClient: HttpClient): (options?: CreateCartOptions) => Promise<Cart$1 & {
|
|
7141
6925
|
lineItems: {
|
|
7142
6926
|
quantity: number;
|
|
7143
6927
|
catalogReference?: {
|
|
@@ -7257,7 +7041,7 @@ declare function createCart(httpClient: HttpClient$b): (options?: CreateCartOpti
|
|
|
7257
7041
|
code: string;
|
|
7258
7042
|
} | undefined;
|
|
7259
7043
|
}>;
|
|
7260
|
-
declare function updateCart(httpClient: HttpClient
|
|
7044
|
+
declare function updateCart(httpClient: HttpClient): (_id: string | null, options?: UpdateCartOptions) => Promise<Cart$1 & {
|
|
7261
7045
|
lineItems: {
|
|
7262
7046
|
quantity: number;
|
|
7263
7047
|
catalogReference?: {
|
|
@@ -7377,7 +7161,7 @@ declare function updateCart(httpClient: HttpClient$b): (_id: string | null, opti
|
|
|
7377
7161
|
code: string;
|
|
7378
7162
|
} | undefined;
|
|
7379
7163
|
}>;
|
|
7380
|
-
declare function getCart(httpClient: HttpClient
|
|
7164
|
+
declare function getCart(httpClient: HttpClient): (_id: string) => Promise<Cart$1 & {
|
|
7381
7165
|
lineItems: {
|
|
7382
7166
|
quantity: number;
|
|
7383
7167
|
catalogReference?: {
|
|
@@ -7497,16 +7281,16 @@ declare function getCart(httpClient: HttpClient$b): (_id: string) => Promise<Car
|
|
|
7497
7281
|
code: string;
|
|
7498
7282
|
} | undefined;
|
|
7499
7283
|
}>;
|
|
7500
|
-
declare function addToCart(httpClient: HttpClient
|
|
7501
|
-
declare function removeLineItems$1(httpClient: HttpClient
|
|
7502
|
-
declare function createCheckout$1(httpClient: HttpClient
|
|
7503
|
-
declare function removeCoupon$1(httpClient: HttpClient
|
|
7504
|
-
declare function updateLineItemsQuantity$1(httpClient: HttpClient
|
|
7505
|
-
declare function estimateTotals(httpClient: HttpClient
|
|
7506
|
-
declare function deleteCart(httpClient: HttpClient
|
|
7507
|
-
declare const onCartUpdated$1: EventDefinition
|
|
7508
|
-
declare const onCartDeleted$1: EventDefinition
|
|
7509
|
-
declare const onCartCreated$1: EventDefinition
|
|
7284
|
+
declare function addToCart(httpClient: HttpClient): (_id: string, options?: AddToCartOptions) => Promise<AddToCartResponse$1 & AddToCartResponseNonNullableFields$1>;
|
|
7285
|
+
declare function removeLineItems$1(httpClient: HttpClient): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse$2 & RemoveLineItemsResponseNonNullableFields$2>;
|
|
7286
|
+
declare function createCheckout$1(httpClient: HttpClient): (_id: string, options?: CreateCheckoutOptions$1) => Promise<CreateCheckoutResponse$2 & CreateCheckoutResponseNonNullableFields$2>;
|
|
7287
|
+
declare function removeCoupon$1(httpClient: HttpClient): (_id: string) => Promise<RemoveCouponResponse$2 & RemoveCouponResponseNonNullableFields$2>;
|
|
7288
|
+
declare function updateLineItemsQuantity$1(httpClient: HttpClient): (_id: string, lineItems: LineItemQuantityUpdate$2[]) => Promise<UpdateLineItemsQuantityResponse$2 & UpdateLineItemsQuantityResponseNonNullableFields$2>;
|
|
7289
|
+
declare function estimateTotals(httpClient: HttpClient): (_id: string, options?: EstimateTotalsOptions) => Promise<EstimateTotalsResponse$1 & EstimateTotalsResponseNonNullableFields$1>;
|
|
7290
|
+
declare function deleteCart(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
7291
|
+
declare const onCartUpdated$1: EventDefinition<CartUpdatedEnvelope$1, "wix.ecom.v1.cart_updated">;
|
|
7292
|
+
declare const onCartDeleted$1: EventDefinition<CartDeletedEnvelope$1, "wix.ecom.v1.cart_deleted">;
|
|
7293
|
+
declare const onCartCreated$1: EventDefinition<CartCreatedEnvelope$1, "wix.ecom.v1.cart_created">;
|
|
7510
7294
|
|
|
7511
7295
|
type index_d$b_AddToCartOptions = AddToCartOptions;
|
|
7512
7296
|
type index_d$b_CreateCartOptions = CreateCartOptions;
|
|
@@ -11011,50 +10795,10 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
11011
10795
|
selectedMemberships?: SelectedMemberships$2;
|
|
11012
10796
|
}
|
|
11013
10797
|
|
|
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
|
-
|
|
11054
10798
|
declare const __metadata$a: {
|
|
11055
10799
|
PACKAGE_NAME: string;
|
|
11056
10800
|
};
|
|
11057
|
-
declare function getCurrentCart(httpClient: HttpClient
|
|
10801
|
+
declare function getCurrentCart(httpClient: HttpClient): () => Promise<Cart & {
|
|
11058
10802
|
lineItems: {
|
|
11059
10803
|
quantity: number;
|
|
11060
10804
|
catalogReference?: {
|
|
@@ -11174,7 +10918,7 @@ declare function getCurrentCart(httpClient: HttpClient$a): () => Promise<Cart &
|
|
|
11174
10918
|
code: string;
|
|
11175
10919
|
} | undefined;
|
|
11176
10920
|
}>;
|
|
11177
|
-
declare function updateCurrentCart(httpClient: HttpClient
|
|
10921
|
+
declare function updateCurrentCart(httpClient: HttpClient): (options?: UpdateCurrentCartOptions) => Promise<Cart & {
|
|
11178
10922
|
lineItems: {
|
|
11179
10923
|
quantity: number;
|
|
11180
10924
|
catalogReference?: {
|
|
@@ -11294,16 +11038,16 @@ declare function updateCurrentCart(httpClient: HttpClient$a): (options?: UpdateC
|
|
|
11294
11038
|
code: string;
|
|
11295
11039
|
} | undefined;
|
|
11296
11040
|
}>;
|
|
11297
|
-
declare function addToCurrentCart(httpClient: HttpClient
|
|
11298
|
-
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient
|
|
11299
|
-
declare function createCheckoutFromCurrentCart(httpClient: HttpClient
|
|
11300
|
-
declare function removeCouponFromCurrentCart(httpClient: HttpClient
|
|
11301
|
-
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient
|
|
11302
|
-
declare function estimateCurrentCartTotals(httpClient: HttpClient
|
|
11303
|
-
declare function deleteCurrentCart(httpClient: HttpClient
|
|
11304
|
-
declare const onCartUpdated: EventDefinition
|
|
11305
|
-
declare const onCartDeleted: EventDefinition
|
|
11306
|
-
declare const onCartCreated: EventDefinition
|
|
11041
|
+
declare function addToCurrentCart(httpClient: HttpClient): (options?: AddToCurrentCartOptions) => Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
|
|
11042
|
+
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient): (lineItemIds: string[]) => Promise<RemoveLineItemsResponse$1 & RemoveLineItemsResponseNonNullableFields$1>;
|
|
11043
|
+
declare function createCheckoutFromCurrentCart(httpClient: HttpClient): (options?: CreateCheckoutFromCurrentCartOptions) => Promise<CreateCheckoutResponse$1 & CreateCheckoutResponseNonNullableFields$1>;
|
|
11044
|
+
declare function removeCouponFromCurrentCart(httpClient: HttpClient): () => Promise<RemoveCouponResponse$1 & RemoveCouponResponseNonNullableFields$1>;
|
|
11045
|
+
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient): (lineItems: LineItemQuantityUpdate$1[]) => Promise<UpdateLineItemsQuantityResponse$1 & UpdateLineItemsQuantityResponseNonNullableFields$1>;
|
|
11046
|
+
declare function estimateCurrentCartTotals(httpClient: HttpClient): (options?: EstimateCurrentCartTotalsOptions) => Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
|
|
11047
|
+
declare function deleteCurrentCart(httpClient: HttpClient): () => Promise<void>;
|
|
11048
|
+
declare const onCartUpdated: EventDefinition<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
11049
|
+
declare const onCartDeleted: EventDefinition<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
11050
|
+
declare const onCartCreated: EventDefinition<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
11307
11051
|
|
|
11308
11052
|
type index_d$a_AddToCartRequest = AddToCartRequest;
|
|
11309
11053
|
type index_d$a_AddToCartResponse = AddToCartResponse;
|
|
@@ -20213,50 +19957,10 @@ interface AddToCheckoutOptions {
|
|
|
20213
19957
|
lineItems?: LineItem$3[];
|
|
20214
19958
|
}
|
|
20215
19959
|
|
|
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
|
-
|
|
20256
19960
|
declare const __metadata$9: {
|
|
20257
19961
|
PACKAGE_NAME: string;
|
|
20258
19962
|
};
|
|
20259
|
-
declare function createCheckout(httpClient: HttpClient
|
|
19963
|
+
declare function createCheckout(httpClient: HttpClient): (options?: CreateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20260
19964
|
lineItems: {
|
|
20261
19965
|
quantity: number;
|
|
20262
19966
|
catalogReference?: {
|
|
@@ -20958,9 +20662,9 @@ declare function createCheckout(httpClient: HttpClient$9): (options?: CreateChec
|
|
|
20958
20662
|
disabledManualPayment: boolean;
|
|
20959
20663
|
} | undefined;
|
|
20960
20664
|
}>;
|
|
20961
|
-
declare function getCheckout(httpClient: HttpClient
|
|
20962
|
-
declare function getCheckoutUrl(httpClient: HttpClient
|
|
20963
|
-
declare function updateCheckout(httpClient: HttpClient
|
|
20665
|
+
declare function getCheckout(httpClient: HttpClient): (_id: string) => Promise<GetCheckoutResponse & GetCheckoutResponseNonNullableFields>;
|
|
20666
|
+
declare function getCheckoutUrl(httpClient: HttpClient): (_id: string) => Promise<GetCheckoutURLResponse & GetCheckoutURLResponseNonNullableFields>;
|
|
20667
|
+
declare function updateCheckout(httpClient: HttpClient): (_id: string | null, checkout: UpdateCheckout, options?: UpdateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20964
20668
|
lineItems: {
|
|
20965
20669
|
quantity: number;
|
|
20966
20670
|
catalogReference?: {
|
|
@@ -21662,17 +21366,17 @@ declare function updateCheckout(httpClient: HttpClient$9): (_id: string | null,
|
|
|
21662
21366
|
disabledManualPayment: boolean;
|
|
21663
21367
|
} | undefined;
|
|
21664
21368
|
}>;
|
|
21665
|
-
declare function removeCoupon(httpClient: HttpClient
|
|
21666
|
-
declare function removeGiftCard(httpClient: HttpClient
|
|
21667
|
-
declare function removeOverrideCheckoutUrl(httpClient: HttpClient
|
|
21668
|
-
declare function addToCheckout(httpClient: HttpClient
|
|
21669
|
-
declare function removeLineItems(httpClient: HttpClient
|
|
21670
|
-
declare function createOrder$1(httpClient: HttpClient
|
|
21671
|
-
declare function markCheckoutAsCompleted(httpClient: HttpClient
|
|
21672
|
-
declare function updateLineItemsQuantity(httpClient: HttpClient
|
|
21673
|
-
declare const onCheckoutCreated: EventDefinition
|
|
21674
|
-
declare const onCheckoutUpdated: EventDefinition
|
|
21675
|
-
declare const onCheckoutCompleted: EventDefinition
|
|
21369
|
+
declare function removeCoupon(httpClient: HttpClient): (_id: string) => Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
|
|
21370
|
+
declare function removeGiftCard(httpClient: HttpClient): (_id: string) => Promise<RemoveGiftCardResponse & RemoveGiftCardResponseNonNullableFields>;
|
|
21371
|
+
declare function removeOverrideCheckoutUrl(httpClient: HttpClient): (_id: string) => Promise<RemoveOverrideCheckoutUrlResponse & RemoveOverrideCheckoutUrlResponseNonNullableFields>;
|
|
21372
|
+
declare function addToCheckout(httpClient: HttpClient): (_id: string, options?: AddToCheckoutOptions) => Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
|
|
21373
|
+
declare function removeLineItems(httpClient: HttpClient): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
|
|
21374
|
+
declare function createOrder$1(httpClient: HttpClient): (_id: string) => Promise<CreateOrderResponse$1 & CreateOrderResponseNonNullableFields$1>;
|
|
21375
|
+
declare function markCheckoutAsCompleted(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
21376
|
+
declare function updateLineItemsQuantity(httpClient: HttpClient): (_id: string, lineItems: LineItemQuantityUpdate[]) => Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
21377
|
+
declare const onCheckoutCreated: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
21378
|
+
declare const onCheckoutUpdated: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
21379
|
+
declare const onCheckoutCompleted: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
21676
21380
|
|
|
21677
21381
|
type index_d$9_AddToCheckoutOptions = AddToCheckoutOptions;
|
|
21678
21382
|
type index_d$9_AddToCheckoutRequest = AddToCheckoutRequest;
|
|
@@ -22126,52 +21830,12 @@ interface CheckoutSettingsUpdatedEnvelope {
|
|
|
22126
21830
|
metadata: EventMetadata$7;
|
|
22127
21831
|
}
|
|
22128
21832
|
|
|
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
|
-
|
|
22169
21833
|
declare const __metadata$8: {
|
|
22170
21834
|
PACKAGE_NAME: string;
|
|
22171
21835
|
};
|
|
22172
|
-
declare function getCheckoutSettings(httpClient: HttpClient
|
|
22173
|
-
declare function updateCheckoutSettings(httpClient: HttpClient
|
|
22174
|
-
declare const onCheckoutSettingsUpdated: EventDefinition
|
|
21836
|
+
declare function getCheckoutSettings(httpClient: HttpClient): () => Promise<GetCheckoutSettingsResponse>;
|
|
21837
|
+
declare function updateCheckoutSettings(httpClient: HttpClient): (checkoutSettings: CheckoutSettings) => Promise<UpdateCheckoutSettingsResponse>;
|
|
21838
|
+
declare const onCheckoutSettingsUpdated: EventDefinition<CheckoutSettingsUpdatedEnvelope, "wix.ecom.v1.checkout_settings_updated">;
|
|
22175
21839
|
|
|
22176
21840
|
type index_d$8_Alignment = Alignment;
|
|
22177
21841
|
declare const index_d$8_Alignment: typeof Alignment;
|
|
@@ -24352,50 +24016,10 @@ interface CheckoutTemplatesQueryBuilder {
|
|
|
24352
24016
|
find: () => Promise<CheckoutTemplatesQueryResult>;
|
|
24353
24017
|
}
|
|
24354
24018
|
|
|
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
|
-
|
|
24395
24019
|
declare const __metadata$7: {
|
|
24396
24020
|
PACKAGE_NAME: string;
|
|
24397
24021
|
};
|
|
24398
|
-
declare function createCheckoutTemplate(httpClient: HttpClient
|
|
24022
|
+
declare function createCheckoutTemplate(httpClient: HttpClient): (checkoutTemplate: CheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24399
24023
|
status: Status;
|
|
24400
24024
|
customization?: {
|
|
24401
24025
|
webClient?: {
|
|
@@ -24434,7 +24058,7 @@ declare function createCheckoutTemplate(httpClient: HttpClient$7): (checkoutTemp
|
|
|
24434
24058
|
} | undefined;
|
|
24435
24059
|
}[];
|
|
24436
24060
|
}>;
|
|
24437
|
-
declare function getCheckoutTemplate(httpClient: HttpClient
|
|
24061
|
+
declare function getCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
|
|
24438
24062
|
status: Status;
|
|
24439
24063
|
customization?: {
|
|
24440
24064
|
webClient?: {
|
|
@@ -24473,7 +24097,7 @@ declare function getCheckoutTemplate(httpClient: HttpClient$7): (checkoutTemplat
|
|
|
24473
24097
|
} | undefined;
|
|
24474
24098
|
}[];
|
|
24475
24099
|
}>;
|
|
24476
|
-
declare function updateCheckoutTemplate(httpClient: HttpClient
|
|
24100
|
+
declare function updateCheckoutTemplate(httpClient: HttpClient): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24477
24101
|
status: Status;
|
|
24478
24102
|
customization?: {
|
|
24479
24103
|
webClient?: {
|
|
@@ -24512,13 +24136,13 @@ declare function updateCheckoutTemplate(httpClient: HttpClient$7): (_id: string
|
|
|
24512
24136
|
} | undefined;
|
|
24513
24137
|
}[];
|
|
24514
24138
|
}>;
|
|
24515
|
-
declare function deleteCheckoutTemplate(httpClient: HttpClient
|
|
24516
|
-
declare function queryCheckoutTemplates(httpClient: HttpClient
|
|
24517
|
-
declare function createCheckoutFromTemplate(httpClient: HttpClient
|
|
24518
|
-
declare const onCheckoutTemplateCreated: EventDefinition
|
|
24519
|
-
declare const onCheckoutTemplateUpdated: EventDefinition
|
|
24520
|
-
declare const onCheckoutTemplateDeleted: EventDefinition
|
|
24521
|
-
declare const onCheckoutTemplateUsed: EventDefinition
|
|
24139
|
+
declare function deleteCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<void>;
|
|
24140
|
+
declare function queryCheckoutTemplates(httpClient: HttpClient): () => CheckoutTemplatesQueryBuilder;
|
|
24141
|
+
declare function createCheckoutFromTemplate(httpClient: HttpClient): (checkoutTemplateId: string, siteId: string) => Promise<CreateCheckoutFromTemplateResponse & CreateCheckoutFromTemplateResponseNonNullableFields>;
|
|
24142
|
+
declare const onCheckoutTemplateCreated: EventDefinition<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
|
|
24143
|
+
declare const onCheckoutTemplateUpdated: EventDefinition<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
|
|
24144
|
+
declare const onCheckoutTemplateDeleted: EventDefinition<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
|
|
24145
|
+
declare const onCheckoutTemplateUsed: EventDefinition<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
|
|
24522
24146
|
|
|
24523
24147
|
type index_d$7_AggregatedTaxBreakdown = AggregatedTaxBreakdown;
|
|
24524
24148
|
type index_d$7_AutoTaxFallbackCalculationDetails = AutoTaxFallbackCalculationDetails;
|
|
@@ -25948,50 +25572,10 @@ interface UpdateExtendedFieldsOptions$1 {
|
|
|
25948
25572
|
namespaceData: Record<string, any> | null;
|
|
25949
25573
|
}
|
|
25950
25574
|
|
|
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
|
-
|
|
25991
25575
|
declare const __metadata$6: {
|
|
25992
25576
|
PACKAGE_NAME: string;
|
|
25993
25577
|
};
|
|
25994
|
-
declare function createDeliveryProfile(httpClient: HttpClient
|
|
25578
|
+
declare function createDeliveryProfile(httpClient: HttpClient): (deliveryProfile: DeliveryProfile) => Promise<DeliveryProfile & {
|
|
25995
25579
|
deliveryRegions: {
|
|
25996
25580
|
deliveryCarriers: {
|
|
25997
25581
|
appId: string;
|
|
@@ -26006,7 +25590,7 @@ declare function createDeliveryProfile(httpClient: HttpClient$6): (deliveryProfi
|
|
|
26006
25590
|
}[];
|
|
26007
25591
|
}[];
|
|
26008
25592
|
}>;
|
|
26009
|
-
declare function getDeliveryProfile(httpClient: HttpClient
|
|
25593
|
+
declare function getDeliveryProfile(httpClient: HttpClient): (deliveryProfileId: string) => Promise<DeliveryProfile & {
|
|
26010
25594
|
deliveryRegions: {
|
|
26011
25595
|
deliveryCarriers: {
|
|
26012
25596
|
appId: string;
|
|
@@ -26021,7 +25605,7 @@ declare function getDeliveryProfile(httpClient: HttpClient$6): (deliveryProfileI
|
|
|
26021
25605
|
}[];
|
|
26022
25606
|
}[];
|
|
26023
25607
|
}>;
|
|
26024
|
-
declare function updateDeliveryProfile(httpClient: HttpClient
|
|
25608
|
+
declare function updateDeliveryProfile(httpClient: HttpClient): (_id: string | null, deliveryProfile: UpdateDeliveryProfile) => Promise<DeliveryProfile & {
|
|
26025
25609
|
deliveryRegions: {
|
|
26026
25610
|
deliveryCarriers: {
|
|
26027
25611
|
appId: string;
|
|
@@ -26036,23 +25620,23 @@ declare function updateDeliveryProfile(httpClient: HttpClient$6): (_id: string |
|
|
|
26036
25620
|
}[];
|
|
26037
25621
|
}[];
|
|
26038
25622
|
}>;
|
|
26039
|
-
declare function deleteDeliveryProfile(httpClient: HttpClient
|
|
26040
|
-
declare function queryDeliveryProfiles(httpClient: HttpClient
|
|
26041
|
-
declare function addDeliveryRegion(httpClient: HttpClient
|
|
26042
|
-
declare function updateDeliveryRegion(httpClient: HttpClient
|
|
26043
|
-
declare function removeDeliveryRegion(httpClient: HttpClient
|
|
26044
|
-
declare function addDeliveryCarrier(httpClient: HttpClient
|
|
26045
|
-
declare function removeDeliveryCarrier(httpClient: HttpClient
|
|
26046
|
-
declare function updateDeliveryCarrier(httpClient: HttpClient
|
|
26047
|
-
declare function listDeliveryCarrierDetails(httpClient: HttpClient
|
|
26048
|
-
declare function listDeliveryCarriers(httpClient: HttpClient
|
|
26049
|
-
declare function updateExtendedFields$1(httpClient: HttpClient
|
|
26050
|
-
declare const onDeliveryProfileCreated: EventDefinition
|
|
26051
|
-
declare const onDeliveryProfileDeliveryRegionAdded: EventDefinition
|
|
26052
|
-
declare const onDeliveryProfileUpdated: EventDefinition
|
|
26053
|
-
declare const onDeliveryProfileDeleted: EventDefinition
|
|
26054
|
-
declare const onDeliveryProfileDeliveryRegionRemoved: EventDefinition
|
|
26055
|
-
declare const onDeliveryProfileDeliveryRegionUpdated: EventDefinition
|
|
25623
|
+
declare function deleteDeliveryProfile(httpClient: HttpClient): (deliveryProfileId: string) => Promise<void>;
|
|
25624
|
+
declare function queryDeliveryProfiles(httpClient: HttpClient): () => DeliveryProfilesQueryBuilder;
|
|
25625
|
+
declare function addDeliveryRegion(httpClient: HttpClient): (deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions) => Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
|
|
25626
|
+
declare function updateDeliveryRegion(httpClient: HttpClient): (identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions) => Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
|
|
25627
|
+
declare function removeDeliveryRegion(httpClient: HttpClient): (identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions) => Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
25628
|
+
declare function addDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options: AddDeliveryCarrierOptions) => Promise<AddDeliveryCarrierResponse & AddDeliveryCarrierResponseNonNullableFields>;
|
|
25629
|
+
declare function removeDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options: RemoveDeliveryCarrierOptions) => Promise<RemoveDeliveryCarrierResponse & RemoveDeliveryCarrierResponseNonNullableFields>;
|
|
25630
|
+
declare function updateDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options?: UpdateDeliveryCarrierOptions) => Promise<UpdateDeliveryCarrierResponse & UpdateDeliveryCarrierResponseNonNullableFields>;
|
|
25631
|
+
declare function listDeliveryCarrierDetails(httpClient: HttpClient): () => Promise<ListDeliveryCarrierDetailsResponse & ListDeliveryCarrierDetailsResponseNonNullableFields>;
|
|
25632
|
+
declare function listDeliveryCarriers(httpClient: HttpClient): (deliveryProfileId: string, options?: ListDeliveryCarriersOptions) => Promise<ListDeliveryCarriersResponse & ListDeliveryCarriersResponseNonNullableFields>;
|
|
25633
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions$1) => Promise<UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
25634
|
+
declare const onDeliveryProfileCreated: EventDefinition<DeliveryProfileCreatedEnvelope, "wix.ecom.v1.delivery_profile_created">;
|
|
25635
|
+
declare const onDeliveryProfileDeliveryRegionAdded: EventDefinition<DeliveryProfileDeliveryRegionAddedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_added">;
|
|
25636
|
+
declare const onDeliveryProfileUpdated: EventDefinition<DeliveryProfileUpdatedEnvelope, "wix.ecom.v1.delivery_profile_updated">;
|
|
25637
|
+
declare const onDeliveryProfileDeleted: EventDefinition<DeliveryProfileDeletedEnvelope, "wix.ecom.v1.delivery_profile_deleted">;
|
|
25638
|
+
declare const onDeliveryProfileDeliveryRegionRemoved: EventDefinition<DeliveryProfileDeliveryRegionRemovedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_removed">;
|
|
25639
|
+
declare const onDeliveryProfileDeliveryRegionUpdated: EventDefinition<DeliveryProfileDeliveryRegionUpdatedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_updated">;
|
|
26056
25640
|
|
|
26057
25641
|
type index_d$6_AddDeliveryCarrierOptions = AddDeliveryCarrierOptions;
|
|
26058
25642
|
type index_d$6_AddDeliveryCarrierRequest = AddDeliveryCarrierRequest;
|
|
@@ -26728,53 +26312,13 @@ interface DeleteFulfillmentIdentifiers {
|
|
|
26728
26312
|
orderId: string;
|
|
26729
26313
|
}
|
|
26730
26314
|
|
|
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
|
-
|
|
26771
26315
|
declare const __metadata$5: {
|
|
26772
26316
|
PACKAGE_NAME: string;
|
|
26773
26317
|
};
|
|
26774
|
-
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient
|
|
26775
|
-
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient
|
|
26776
|
-
declare function createFulfillment(httpClient: HttpClient
|
|
26777
|
-
declare function updateFulfillment(httpClient: HttpClient
|
|
26318
|
+
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListFulfillmentsForSingleOrderResponse & ListFulfillmentsForSingleOrderResponseNonNullableFields>;
|
|
26319
|
+
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListFulfillmentsForMultipleOrdersResponse & ListFulfillmentsForMultipleOrdersResponseNonNullableFields>;
|
|
26320
|
+
declare function createFulfillment(httpClient: HttpClient): (orderId: string, fulfillment: Fulfillment$1) => Promise<CreateFulfillmentResponse & CreateFulfillmentResponseNonNullableFields>;
|
|
26321
|
+
declare function updateFulfillment(httpClient: HttpClient): (identifiers: UpdateFulfillmentIdentifiers, options?: UpdateFulfillmentOptions) => Promise<OrderWithFulfillments & {
|
|
26778
26322
|
orderId: string;
|
|
26779
26323
|
fulfillments: {
|
|
26780
26324
|
lineItems: {
|
|
@@ -26782,9 +26326,9 @@ declare function updateFulfillment(httpClient: HttpClient$5): (identifiers: Upda
|
|
|
26782
26326
|
}[];
|
|
26783
26327
|
}[];
|
|
26784
26328
|
}>;
|
|
26785
|
-
declare function deleteFulfillment(httpClient: HttpClient
|
|
26786
|
-
declare function bulkCreateFulfillments(httpClient: HttpClient
|
|
26787
|
-
declare const onFulfillmentsUpdated: EventDefinition
|
|
26329
|
+
declare function deleteFulfillment(httpClient: HttpClient): (identifiers: DeleteFulfillmentIdentifiers) => Promise<DeleteFulfillmentResponse & DeleteFulfillmentResponseNonNullableFields>;
|
|
26330
|
+
declare function bulkCreateFulfillments(httpClient: HttpClient): (ordersWithFulfillments: BulkCreateOrderWithFulfillments[]) => Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
26331
|
+
declare const onFulfillmentsUpdated: EventDefinition<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
26788
26332
|
|
|
26789
26333
|
type index_d$5_BulkCreateFulfillmentRequest = BulkCreateFulfillmentRequest;
|
|
26790
26334
|
type index_d$5_BulkCreateFulfillmentResponse = BulkCreateFulfillmentResponse;
|
|
@@ -32938,51 +32482,11 @@ interface CancelOrderOptions {
|
|
|
32938
32482
|
restockAllItems?: boolean;
|
|
32939
32483
|
}
|
|
32940
32484
|
|
|
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
|
-
|
|
32981
32485
|
declare const __metadata$4: {
|
|
32982
32486
|
PACKAGE_NAME: string;
|
|
32983
32487
|
};
|
|
32984
|
-
declare function getPaymentCollectabilityStatus(httpClient: HttpClient
|
|
32985
|
-
declare function getOrder(httpClient: HttpClient
|
|
32488
|
+
declare function getPaymentCollectabilityStatus(httpClient: HttpClient): (ecomOrderId: string) => Promise<GetPaymentCollectabilityStatusResponse & GetPaymentCollectabilityStatusResponseNonNullableFields>;
|
|
32489
|
+
declare function getOrder(httpClient: HttpClient): (_id: string) => Promise<Order$1 & {
|
|
32986
32490
|
number: string;
|
|
32987
32491
|
lineItems: {
|
|
32988
32492
|
_id: string;
|
|
@@ -33309,8 +32813,8 @@ declare function getOrder(httpClient: HttpClient$4): (_id: string) => Promise<Or
|
|
|
33309
32813
|
} | undefined;
|
|
33310
32814
|
} | undefined;
|
|
33311
32815
|
}>;
|
|
33312
|
-
declare function searchOrders(httpClient: HttpClient
|
|
33313
|
-
declare function createOrder(httpClient: HttpClient
|
|
32816
|
+
declare function searchOrders(httpClient: HttpClient): (options?: SearchOrdersOptions) => Promise<SearchOrdersResponse & SearchOrdersResponseNonNullableFields>;
|
|
32817
|
+
declare function createOrder(httpClient: HttpClient): (order: Order$1) => Promise<Order$1 & {
|
|
33314
32818
|
number: string;
|
|
33315
32819
|
lineItems: {
|
|
33316
32820
|
_id: string;
|
|
@@ -33637,7 +33141,7 @@ declare function createOrder(httpClient: HttpClient$4): (order: Order$1) => Prom
|
|
|
33637
33141
|
} | undefined;
|
|
33638
33142
|
} | undefined;
|
|
33639
33143
|
}>;
|
|
33640
|
-
declare function updateOrder(httpClient: HttpClient
|
|
33144
|
+
declare function updateOrder(httpClient: HttpClient): (_id: string | null, order: UpdateOrder) => Promise<Order$1 & {
|
|
33641
33145
|
number: string;
|
|
33642
33146
|
lineItems: {
|
|
33643
33147
|
_id: string;
|
|
@@ -33964,12 +33468,12 @@ declare function updateOrder(httpClient: HttpClient$4): (_id: string | null, ord
|
|
|
33964
33468
|
} | undefined;
|
|
33965
33469
|
} | undefined;
|
|
33966
33470
|
}>;
|
|
33967
|
-
declare function cancelOrder(httpClient: HttpClient
|
|
33968
|
-
declare const onOrderPaymentStatusUpdated: EventDefinition
|
|
33969
|
-
declare const onOrderUpdated: EventDefinition
|
|
33970
|
-
declare const onOrderCreated: EventDefinition
|
|
33971
|
-
declare const onOrderCanceled: EventDefinition
|
|
33972
|
-
declare const onOrderApproved: EventDefinition
|
|
33471
|
+
declare function cancelOrder(httpClient: HttpClient): (_id: string, options?: CancelOrderOptions) => Promise<CancelOrderResponse & CancelOrderResponseNonNullableFields>;
|
|
33472
|
+
declare const onOrderPaymentStatusUpdated: EventDefinition<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
33473
|
+
declare const onOrderUpdated: EventDefinition<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
33474
|
+
declare const onOrderCreated: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
33475
|
+
declare const onOrderCanceled: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
33476
|
+
declare const onOrderApproved: EventDefinition<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
33973
33477
|
|
|
33974
33478
|
type index_d$4_ActivityContentOneOf = ActivityContentOneOf;
|
|
33975
33479
|
type index_d$4_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -36251,55 +35755,15 @@ interface BulkUpdatePaymentStatusesOptions {
|
|
|
36251
35755
|
status?: TransactionStatus;
|
|
36252
35756
|
}
|
|
36253
35757
|
|
|
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
|
-
|
|
36294
35758
|
declare const __metadata$3: {
|
|
36295
35759
|
PACKAGE_NAME: string;
|
|
36296
35760
|
};
|
|
36297
|
-
declare function listTransactionsForSingleOrder(httpClient: HttpClient
|
|
36298
|
-
declare function listTransactionsForMultipleOrders(httpClient: HttpClient
|
|
36299
|
-
declare function addPayments(httpClient: HttpClient
|
|
36300
|
-
declare function updatePaymentStatus(httpClient: HttpClient
|
|
36301
|
-
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient
|
|
36302
|
-
declare const onOrderTransactionsUpdated: EventDefinition
|
|
35761
|
+
declare function listTransactionsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListTransactionsForSingleOrderResponse & ListTransactionsForSingleOrderResponseNonNullableFields>;
|
|
35762
|
+
declare function listTransactionsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListTransactionsForMultipleOrdersResponse & ListTransactionsForMultipleOrdersResponseNonNullableFields>;
|
|
35763
|
+
declare function addPayments(httpClient: HttpClient): (orderId: string, payments: Payment[]) => Promise<AddPaymentsResponse & AddPaymentsResponseNonNullableFields>;
|
|
35764
|
+
declare function updatePaymentStatus(httpClient: HttpClient): (identifiers: UpdatePaymentStatusIdentifiers, options?: UpdatePaymentStatusOptions) => Promise<UpdatePaymentStatusResponse & UpdatePaymentStatusResponseNonNullableFields>;
|
|
35765
|
+
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient): (paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions) => Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
35766
|
+
declare const onOrderTransactionsUpdated: EventDefinition<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
36303
35767
|
|
|
36304
35768
|
type index_d$3_Activity = Activity;
|
|
36305
35769
|
type index_d$3_ActivityType = ActivityType;
|
|
@@ -36702,52 +36166,12 @@ interface OrdersSettingsUpdatedEnvelope {
|
|
|
36702
36166
|
metadata: EventMetadata$1;
|
|
36703
36167
|
}
|
|
36704
36168
|
|
|
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
|
-
|
|
36745
36169
|
declare const __metadata$2: {
|
|
36746
36170
|
PACKAGE_NAME: string;
|
|
36747
36171
|
};
|
|
36748
|
-
declare function getOrdersSettings(httpClient: HttpClient
|
|
36749
|
-
declare function updateOrdersSettings(httpClient: HttpClient
|
|
36750
|
-
declare const onOrdersSettingsUpdated: EventDefinition
|
|
36172
|
+
declare function getOrdersSettings(httpClient: HttpClient): () => Promise<GetOrdersSettingsResponse & GetOrdersSettingsResponseNonNullableFields>;
|
|
36173
|
+
declare function updateOrdersSettings(httpClient: HttpClient): (ordersSettings: OrdersSettings) => Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
36174
|
+
declare const onOrdersSettingsUpdated: EventDefinition<OrdersSettingsUpdatedEnvelope, "wix.ecom.v1.orders_settings_updated">;
|
|
36751
36175
|
|
|
36752
36176
|
type index_d$2_DeleteOrdersSettingsRequest = DeleteOrdersSettingsRequest;
|
|
36753
36177
|
type index_d$2_DeleteOrdersSettingsResponse = DeleteOrdersSettingsResponse;
|
|
@@ -37472,50 +36896,10 @@ interface UpdateExtendedFieldsOptions {
|
|
|
37472
36896
|
namespaceData: Record<string, any> | null;
|
|
37473
36897
|
}
|
|
37474
36898
|
|
|
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
|
-
|
|
37515
36899
|
declare const __metadata$1: {
|
|
37516
36900
|
PACKAGE_NAME: string;
|
|
37517
36901
|
};
|
|
37518
|
-
declare function createShippoConfiguration(httpClient: HttpClient
|
|
36902
|
+
declare function createShippoConfiguration(httpClient: HttpClient): (shippoConfiguration: ShippoConfiguration, options?: CreateShippoConfigurationOptions) => Promise<ShippoConfiguration & {
|
|
37519
36903
|
domesticServices: {
|
|
37520
36904
|
service: DomesticService;
|
|
37521
36905
|
serviceSettings?: {
|
|
@@ -37543,7 +36927,7 @@ declare function createShippoConfiguration(httpClient: HttpClient$1): (shippoCon
|
|
|
37543
36927
|
} | undefined;
|
|
37544
36928
|
} | undefined;
|
|
37545
36929
|
}>;
|
|
37546
|
-
declare function getShippoConfiguration(httpClient: HttpClient
|
|
36930
|
+
declare function getShippoConfiguration(httpClient: HttpClient): (shippoConfigurationId: string) => Promise<ShippoConfiguration & {
|
|
37547
36931
|
domesticServices: {
|
|
37548
36932
|
service: DomesticService;
|
|
37549
36933
|
serviceSettings?: {
|
|
@@ -37571,7 +36955,7 @@ declare function getShippoConfiguration(httpClient: HttpClient$1): (shippoConfig
|
|
|
37571
36955
|
} | undefined;
|
|
37572
36956
|
} | undefined;
|
|
37573
36957
|
}>;
|
|
37574
|
-
declare function updateShippoConfiguration(httpClient: HttpClient
|
|
36958
|
+
declare function updateShippoConfiguration(httpClient: HttpClient): (_id: string | null, shippoConfiguration: UpdateShippoConfiguration) => Promise<ShippoConfiguration & {
|
|
37575
36959
|
domesticServices: {
|
|
37576
36960
|
service: DomesticService;
|
|
37577
36961
|
serviceSettings?: {
|
|
@@ -37599,9 +36983,9 @@ declare function updateShippoConfiguration(httpClient: HttpClient$1): (_id: stri
|
|
|
37599
36983
|
} | undefined;
|
|
37600
36984
|
} | undefined;
|
|
37601
36985
|
}>;
|
|
37602
|
-
declare function deleteShippoConfiguration(httpClient: HttpClient
|
|
37603
|
-
declare function queryShippoConfigurations(httpClient: HttpClient
|
|
37604
|
-
declare function updateExtendedFields(httpClient: HttpClient
|
|
36986
|
+
declare function deleteShippoConfiguration(httpClient: HttpClient): (shippoConfigurationId: string) => Promise<void>;
|
|
36987
|
+
declare function queryShippoConfigurations(httpClient: HttpClient): () => ShippoConfigurationsQueryBuilder;
|
|
36988
|
+
declare function updateExtendedFields(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
37605
36989
|
declare const onShippoConfigurationCreated: EventDefinition<ShippoConfigurationCreatedEnvelope, "wix.ecom.v1.shippo_configuration_created">;
|
|
37606
36990
|
declare const onShippoConfigurationUpdated: EventDefinition<ShippoConfigurationUpdatedEnvelope, "wix.ecom.v1.shippo_configuration_updated">;
|
|
37607
36991
|
declare const onShippoConfigurationDeleted: EventDefinition<ShippoConfigurationDeletedEnvelope, "wix.ecom.v1.shippo_configuration_deleted">;
|
|
@@ -37763,38 +37147,6 @@ interface GetConversionRateIdentifiers {
|
|
|
37763
37147
|
to: string;
|
|
37764
37148
|
}
|
|
37765
37149
|
|
|
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
|
-
|
|
37798
37150
|
declare const __metadata: {
|
|
37799
37151
|
PACKAGE_NAME: string;
|
|
37800
37152
|
};
|