@wix/ecom 1.0.656 → 1.0.657
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,37 @@ 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: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1084
1084
|
}
|
|
1085
|
-
type RequestOptionsFactory
|
|
1086
|
-
type HttpResponse
|
|
1085
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1086
|
+
type HttpResponse<T = any> = {
|
|
1087
1087
|
data: T;
|
|
1088
1088
|
status: number;
|
|
1089
1089
|
statusText: string;
|
|
1090
1090
|
headers: any;
|
|
1091
1091
|
request?: any;
|
|
1092
1092
|
};
|
|
1093
|
-
type RequestOptions
|
|
1093
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1094
1094
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1095
1095
|
url: string;
|
|
1096
1096
|
data?: Data;
|
|
1097
1097
|
params?: URLSearchParams;
|
|
1098
|
-
} & APIMetadata
|
|
1099
|
-
type APIMetadata
|
|
1098
|
+
} & APIMetadata;
|
|
1099
|
+
type APIMetadata = {
|
|
1100
1100
|
methodFqn?: string;
|
|
1101
1101
|
entityFqdn?: string;
|
|
1102
1102
|
packageName?: string;
|
|
1103
1103
|
};
|
|
1104
|
-
type EventDefinition
|
|
1104
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1105
1105
|
__type: 'event-definition';
|
|
1106
1106
|
type: Type;
|
|
1107
1107
|
isDomainEvent?: boolean;
|
|
1108
1108
|
transformations?: (envelope: unknown) => Payload;
|
|
1109
1109
|
__payload: Payload;
|
|
1110
1110
|
};
|
|
1111
|
-
declare function EventDefinition
|
|
1111
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1112
1112
|
|
|
1113
1113
|
declare global {
|
|
1114
1114
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1120,7 +1120,7 @@ declare global {
|
|
|
1120
1120
|
declare const __metadata$g: {
|
|
1121
1121
|
PACKAGE_NAME: string;
|
|
1122
1122
|
};
|
|
1123
|
-
declare function createDiscountRule(httpClient: HttpClient
|
|
1123
|
+
declare function createDiscountRule(httpClient: HttpClient): (discountRule: DiscountRule$5) => Promise<DiscountRule$5 & {
|
|
1124
1124
|
trigger?: {
|
|
1125
1125
|
and?: {
|
|
1126
1126
|
triggers: (any | undefined)[];
|
|
@@ -1185,7 +1185,7 @@ declare function createDiscountRule(httpClient: HttpClient$g): (discountRule: Di
|
|
|
1185
1185
|
status: Status$3;
|
|
1186
1186
|
usageCount: number;
|
|
1187
1187
|
}>;
|
|
1188
|
-
declare function getDiscountRule(httpClient: HttpClient
|
|
1188
|
+
declare function getDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<DiscountRule$5 & {
|
|
1189
1189
|
trigger?: {
|
|
1190
1190
|
and?: {
|
|
1191
1191
|
triggers: (any | undefined)[];
|
|
@@ -1250,7 +1250,7 @@ declare function getDiscountRule(httpClient: HttpClient$g): (discountRuleId: str
|
|
|
1250
1250
|
status: Status$3;
|
|
1251
1251
|
usageCount: number;
|
|
1252
1252
|
}>;
|
|
1253
|
-
declare function updateDiscountRule(httpClient: HttpClient
|
|
1253
|
+
declare function updateDiscountRule(httpClient: HttpClient): (_id: string | null, discountRule: UpdateDiscountRule) => Promise<DiscountRule$5 & {
|
|
1254
1254
|
trigger?: {
|
|
1255
1255
|
and?: {
|
|
1256
1256
|
triggers: (any | undefined)[];
|
|
@@ -1315,11 +1315,11 @@ declare function updateDiscountRule(httpClient: HttpClient$g): (_id: string | nu
|
|
|
1315
1315
|
status: Status$3;
|
|
1316
1316
|
usageCount: number;
|
|
1317
1317
|
}>;
|
|
1318
|
-
declare function deleteDiscountRule(httpClient: HttpClient
|
|
1319
|
-
declare function queryDiscountRules(httpClient: HttpClient
|
|
1320
|
-
declare const onDiscountRuleCreated: EventDefinition
|
|
1321
|
-
declare const onDiscountRuleUpdated: EventDefinition
|
|
1322
|
-
declare const onDiscountRuleDeleted: EventDefinition
|
|
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">;
|
|
1323
1323
|
|
|
1324
1324
|
type index_d$g_ActiveTimeInfo = ActiveTimeInfo;
|
|
1325
1325
|
type index_d$g_And = And;
|
|
@@ -1612,41 +1612,10 @@ interface ListInvoicesForMultipleOrdersResponseNonNullableFields {
|
|
|
1612
1612
|
}[];
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
|
-
interface HttpClient$f {
|
|
1616
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$f<TResponse, TData>): Promise<HttpResponse$f<TResponse>>;
|
|
1617
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1618
|
-
}
|
|
1619
|
-
type RequestOptionsFactory$f<TResponse = any, TData = any> = (context: any) => RequestOptions$f<TResponse, TData>;
|
|
1620
|
-
type HttpResponse$f<T = any> = {
|
|
1621
|
-
data: T;
|
|
1622
|
-
status: number;
|
|
1623
|
-
statusText: string;
|
|
1624
|
-
headers: any;
|
|
1625
|
-
request?: any;
|
|
1626
|
-
};
|
|
1627
|
-
type RequestOptions$f<_TResponse = any, Data = any> = {
|
|
1628
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1629
|
-
url: string;
|
|
1630
|
-
data?: Data;
|
|
1631
|
-
params?: URLSearchParams;
|
|
1632
|
-
} & APIMetadata$f;
|
|
1633
|
-
type APIMetadata$f = {
|
|
1634
|
-
methodFqn?: string;
|
|
1635
|
-
entityFqdn?: string;
|
|
1636
|
-
packageName?: string;
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
|
-
declare global {
|
|
1640
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1641
|
-
interface SymbolConstructor {
|
|
1642
|
-
readonly observable: symbol;
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
1615
|
declare const __metadata$f: {
|
|
1647
1616
|
PACKAGE_NAME: string;
|
|
1648
1617
|
};
|
|
1649
|
-
declare function listInvoicesForMultipleOrders(httpClient: HttpClient
|
|
1618
|
+
declare function listInvoicesForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListInvoicesForMultipleOrdersResponse$1 & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
|
|
1650
1619
|
|
|
1651
1620
|
type index_d$f_GenerateInvoiceWithNumberRequest = GenerateInvoiceWithNumberRequest;
|
|
1652
1621
|
type index_d$f_GenerateInvoiceWithNumberResponse = GenerateInvoiceWithNumberResponse;
|
|
@@ -1806,42 +1775,11 @@ interface GetRecommendationOptions {
|
|
|
1806
1775
|
minimumRecommendedItems?: number;
|
|
1807
1776
|
}
|
|
1808
1777
|
|
|
1809
|
-
interface HttpClient$e {
|
|
1810
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$e<TResponse, TData>): Promise<HttpResponse$e<TResponse>>;
|
|
1811
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1812
|
-
}
|
|
1813
|
-
type RequestOptionsFactory$e<TResponse = any, TData = any> = (context: any) => RequestOptions$e<TResponse, TData>;
|
|
1814
|
-
type HttpResponse$e<T = any> = {
|
|
1815
|
-
data: T;
|
|
1816
|
-
status: number;
|
|
1817
|
-
statusText: string;
|
|
1818
|
-
headers: any;
|
|
1819
|
-
request?: any;
|
|
1820
|
-
};
|
|
1821
|
-
type RequestOptions$e<_TResponse = any, Data = any> = {
|
|
1822
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1823
|
-
url: string;
|
|
1824
|
-
data?: Data;
|
|
1825
|
-
params?: URLSearchParams;
|
|
1826
|
-
} & APIMetadata$e;
|
|
1827
|
-
type APIMetadata$e = {
|
|
1828
|
-
methodFqn?: string;
|
|
1829
|
-
entityFqdn?: string;
|
|
1830
|
-
packageName?: string;
|
|
1831
|
-
};
|
|
1832
|
-
|
|
1833
|
-
declare global {
|
|
1834
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1835
|
-
interface SymbolConstructor {
|
|
1836
|
-
readonly observable: symbol;
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
1778
|
declare const __metadata$e: {
|
|
1841
1779
|
PACKAGE_NAME: string;
|
|
1842
1780
|
};
|
|
1843
|
-
declare function listAvailableAlgorithms(httpClient: HttpClient
|
|
1844
|
-
declare function getRecommendation(httpClient: HttpClient
|
|
1781
|
+
declare function listAvailableAlgorithms(httpClient: HttpClient): () => Promise<ListAvailableAlgorithmsResponse & ListAvailableAlgorithmsResponseNonNullableFields>;
|
|
1782
|
+
declare function getRecommendation(httpClient: HttpClient): (algorithms: Algorithm[], options?: GetRecommendationOptions) => Promise<GetRecommendationResponse & GetRecommendationResponseNonNullableFields>;
|
|
1845
1783
|
|
|
1846
1784
|
type index_d$e_Algorithm = Algorithm;
|
|
1847
1785
|
type index_d$e_AlgorithmConfig = AlgorithmConfig;
|
|
@@ -2543,49 +2481,10 @@ interface AbandonedCheckoutRecoveredEnvelope {
|
|
|
2543
2481
|
metadata: EventMetadata$b;
|
|
2544
2482
|
}
|
|
2545
2483
|
|
|
2546
|
-
interface HttpClient$d {
|
|
2547
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$d<TResponse, TData>): Promise<HttpResponse$d<TResponse>>;
|
|
2548
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2549
|
-
}
|
|
2550
|
-
type RequestOptionsFactory$d<TResponse = any, TData = any> = (context: any) => RequestOptions$d<TResponse, TData>;
|
|
2551
|
-
type HttpResponse$d<T = any> = {
|
|
2552
|
-
data: T;
|
|
2553
|
-
status: number;
|
|
2554
|
-
statusText: string;
|
|
2555
|
-
headers: any;
|
|
2556
|
-
request?: any;
|
|
2557
|
-
};
|
|
2558
|
-
type RequestOptions$d<_TResponse = any, Data = any> = {
|
|
2559
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2560
|
-
url: string;
|
|
2561
|
-
data?: Data;
|
|
2562
|
-
params?: URLSearchParams;
|
|
2563
|
-
} & APIMetadata$d;
|
|
2564
|
-
type APIMetadata$d = {
|
|
2565
|
-
methodFqn?: string;
|
|
2566
|
-
entityFqdn?: string;
|
|
2567
|
-
packageName?: string;
|
|
2568
|
-
};
|
|
2569
|
-
type EventDefinition$b<Payload = unknown, Type extends string = string> = {
|
|
2570
|
-
__type: 'event-definition';
|
|
2571
|
-
type: Type;
|
|
2572
|
-
isDomainEvent?: boolean;
|
|
2573
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2574
|
-
__payload: Payload;
|
|
2575
|
-
};
|
|
2576
|
-
declare function EventDefinition$b<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$b<Payload, Type>;
|
|
2577
|
-
|
|
2578
|
-
declare global {
|
|
2579
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2580
|
-
interface SymbolConstructor {
|
|
2581
|
-
readonly observable: symbol;
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
2484
|
declare const __metadata$d: {
|
|
2586
2485
|
PACKAGE_NAME: string;
|
|
2587
2486
|
};
|
|
2588
|
-
declare function getAbandonedCheckout(httpClient: HttpClient
|
|
2487
|
+
declare function getAbandonedCheckout(httpClient: HttpClient): (abandonedCheckoutId: string) => Promise<AbandonedCheckout & {
|
|
2589
2488
|
_id: string;
|
|
2590
2489
|
status: Status$2;
|
|
2591
2490
|
buyerInfo?: {
|
|
@@ -2617,8 +2516,8 @@ declare function getAbandonedCheckout(httpClient: HttpClient$d): (abandonedCheck
|
|
|
2617
2516
|
formattedConvertedAmount: string;
|
|
2618
2517
|
} | undefined;
|
|
2619
2518
|
}>;
|
|
2620
|
-
declare const onAbandonedCheckoutCreated: EventDefinition
|
|
2621
|
-
declare const onAbandonedCheckoutRecovered: EventDefinition
|
|
2519
|
+
declare const onAbandonedCheckoutCreated: EventDefinition<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
2520
|
+
declare const onAbandonedCheckoutRecovered: EventDefinition<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2622
2521
|
|
|
2623
2522
|
type index_d$d_AbandonedCheckout = AbandonedCheckout;
|
|
2624
2523
|
type index_d$d_AbandonedCheckoutCreatedEnvelope = AbandonedCheckoutCreatedEnvelope;
|
|
@@ -3276,49 +3175,10 @@ interface ReportItemsBackInStockOptions {
|
|
|
3276
3175
|
extraAutomationTemplateParameters?: Record<string, string>;
|
|
3277
3176
|
}
|
|
3278
3177
|
|
|
3279
|
-
interface HttpClient$c {
|
|
3280
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$c<TResponse, TData>): Promise<HttpResponse$c<TResponse>>;
|
|
3281
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3282
|
-
}
|
|
3283
|
-
type RequestOptionsFactory$c<TResponse = any, TData = any> = (context: any) => RequestOptions$c<TResponse, TData>;
|
|
3284
|
-
type HttpResponse$c<T = any> = {
|
|
3285
|
-
data: T;
|
|
3286
|
-
status: number;
|
|
3287
|
-
statusText: string;
|
|
3288
|
-
headers: any;
|
|
3289
|
-
request?: any;
|
|
3290
|
-
};
|
|
3291
|
-
type RequestOptions$c<_TResponse = any, Data = any> = {
|
|
3292
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3293
|
-
url: string;
|
|
3294
|
-
data?: Data;
|
|
3295
|
-
params?: URLSearchParams;
|
|
3296
|
-
} & APIMetadata$c;
|
|
3297
|
-
type APIMetadata$c = {
|
|
3298
|
-
methodFqn?: string;
|
|
3299
|
-
entityFqdn?: string;
|
|
3300
|
-
packageName?: string;
|
|
3301
|
-
};
|
|
3302
|
-
type EventDefinition$a<Payload = unknown, Type extends string = string> = {
|
|
3303
|
-
__type: 'event-definition';
|
|
3304
|
-
type: Type;
|
|
3305
|
-
isDomainEvent?: boolean;
|
|
3306
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3307
|
-
__payload: Payload;
|
|
3308
|
-
};
|
|
3309
|
-
declare function EventDefinition$a<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$a<Payload, Type>;
|
|
3310
|
-
|
|
3311
|
-
declare global {
|
|
3312
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3313
|
-
interface SymbolConstructor {
|
|
3314
|
-
readonly observable: symbol;
|
|
3315
|
-
}
|
|
3316
|
-
}
|
|
3317
|
-
|
|
3318
3178
|
declare const __metadata$c: {
|
|
3319
3179
|
PACKAGE_NAME: string;
|
|
3320
3180
|
};
|
|
3321
|
-
declare function createBackInStockNotificationRequest(httpClient: HttpClient
|
|
3181
|
+
declare function createBackInStockNotificationRequest(httpClient: HttpClient): (request: BackInStockNotificationRequest, itemDetails: BackInStockItemDetails) => Promise<BackInStockNotificationRequest & {
|
|
3322
3182
|
catalogReference?: {
|
|
3323
3183
|
catalogItemId: string;
|
|
3324
3184
|
appId: string;
|
|
@@ -3326,7 +3186,7 @@ declare function createBackInStockNotificationRequest(httpClient: HttpClient$c):
|
|
|
3326
3186
|
email: string;
|
|
3327
3187
|
status: Status$1;
|
|
3328
3188
|
}>;
|
|
3329
|
-
declare function getBackInStockNotificationRequest(httpClient: HttpClient
|
|
3189
|
+
declare function getBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<BackInStockNotificationRequest & {
|
|
3330
3190
|
catalogReference?: {
|
|
3331
3191
|
catalogItemId: string;
|
|
3332
3192
|
appId: string;
|
|
@@ -3334,14 +3194,14 @@ declare function getBackInStockNotificationRequest(httpClient: HttpClient$c): (_
|
|
|
3334
3194
|
email: string;
|
|
3335
3195
|
status: Status$1;
|
|
3336
3196
|
}>;
|
|
3337
|
-
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient
|
|
3338
|
-
declare function markAsNotificationSent(httpClient: HttpClient
|
|
3339
|
-
declare function queryBackInStockNotificationRequests(httpClient: HttpClient
|
|
3340
|
-
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient
|
|
3341
|
-
declare function reportItemsBackInStock(httpClient: HttpClient
|
|
3342
|
-
declare const onBackInStockNotificationRequestCreated: EventDefinition
|
|
3343
|
-
declare const onBackInStockNotificationRequestDeleted: EventDefinition
|
|
3344
|
-
declare const onBackInStockNotificationRequestUpdated: EventDefinition
|
|
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">;
|
|
3345
3205
|
|
|
3346
3206
|
type index_d$c_BackInStockItemDetails = BackInStockItemDetails;
|
|
3347
3207
|
type index_d$c_BackInStockNotificationRequest = BackInStockNotificationRequest;
|
|
@@ -3454,43 +3314,12 @@ interface GetSettingsResponseNonNullableFields {
|
|
|
3454
3314
|
};
|
|
3455
3315
|
}
|
|
3456
3316
|
|
|
3457
|
-
interface HttpClient$b {
|
|
3458
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$b<TResponse, TData>): Promise<HttpResponse$b<TResponse>>;
|
|
3459
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3460
|
-
}
|
|
3461
|
-
type RequestOptionsFactory$b<TResponse = any, TData = any> = (context: any) => RequestOptions$b<TResponse, TData>;
|
|
3462
|
-
type HttpResponse$b<T = any> = {
|
|
3463
|
-
data: T;
|
|
3464
|
-
status: number;
|
|
3465
|
-
statusText: string;
|
|
3466
|
-
headers: any;
|
|
3467
|
-
request?: any;
|
|
3468
|
-
};
|
|
3469
|
-
type RequestOptions$b<_TResponse = any, Data = any> = {
|
|
3470
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3471
|
-
url: string;
|
|
3472
|
-
data?: Data;
|
|
3473
|
-
params?: URLSearchParams;
|
|
3474
|
-
} & APIMetadata$b;
|
|
3475
|
-
type APIMetadata$b = {
|
|
3476
|
-
methodFqn?: string;
|
|
3477
|
-
entityFqdn?: string;
|
|
3478
|
-
packageName?: string;
|
|
3479
|
-
};
|
|
3480
|
-
|
|
3481
|
-
declare global {
|
|
3482
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3483
|
-
interface SymbolConstructor {
|
|
3484
|
-
readonly observable: symbol;
|
|
3485
|
-
}
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
3317
|
declare const __metadata$b: {
|
|
3489
3318
|
PACKAGE_NAME: string;
|
|
3490
3319
|
};
|
|
3491
|
-
declare function startCollectingRequests(httpClient: HttpClient
|
|
3492
|
-
declare function stopCollectingRequests(httpClient: HttpClient
|
|
3493
|
-
declare function getSettings(httpClient: HttpClient
|
|
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>;
|
|
3494
3323
|
|
|
3495
3324
|
type index_d$b_BackInStockCollectionState = BackInStockCollectionState;
|
|
3496
3325
|
type index_d$b_BackInStockSettings = BackInStockSettings;
|
|
@@ -7088,49 +6917,10 @@ interface EstimateTotalsOptions {
|
|
|
7088
6917
|
selectedMemberships?: SelectedMemberships$3;
|
|
7089
6918
|
}
|
|
7090
6919
|
|
|
7091
|
-
interface HttpClient$a {
|
|
7092
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$a<TResponse, TData>): Promise<HttpResponse$a<TResponse>>;
|
|
7093
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
7094
|
-
}
|
|
7095
|
-
type RequestOptionsFactory$a<TResponse = any, TData = any> = (context: any) => RequestOptions$a<TResponse, TData>;
|
|
7096
|
-
type HttpResponse$a<T = any> = {
|
|
7097
|
-
data: T;
|
|
7098
|
-
status: number;
|
|
7099
|
-
statusText: string;
|
|
7100
|
-
headers: any;
|
|
7101
|
-
request?: any;
|
|
7102
|
-
};
|
|
7103
|
-
type RequestOptions$a<_TResponse = any, Data = any> = {
|
|
7104
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
7105
|
-
url: string;
|
|
7106
|
-
data?: Data;
|
|
7107
|
-
params?: URLSearchParams;
|
|
7108
|
-
} & APIMetadata$a;
|
|
7109
|
-
type APIMetadata$a = {
|
|
7110
|
-
methodFqn?: string;
|
|
7111
|
-
entityFqdn?: string;
|
|
7112
|
-
packageName?: string;
|
|
7113
|
-
};
|
|
7114
|
-
type EventDefinition$9<Payload = unknown, Type extends string = string> = {
|
|
7115
|
-
__type: 'event-definition';
|
|
7116
|
-
type: Type;
|
|
7117
|
-
isDomainEvent?: boolean;
|
|
7118
|
-
transformations?: (envelope: unknown) => Payload;
|
|
7119
|
-
__payload: Payload;
|
|
7120
|
-
};
|
|
7121
|
-
declare function EventDefinition$9<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$9<Payload, Type>;
|
|
7122
|
-
|
|
7123
|
-
declare global {
|
|
7124
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
7125
|
-
interface SymbolConstructor {
|
|
7126
|
-
readonly observable: symbol;
|
|
7127
|
-
}
|
|
7128
|
-
}
|
|
7129
|
-
|
|
7130
6920
|
declare const __metadata$a: {
|
|
7131
6921
|
PACKAGE_NAME: string;
|
|
7132
6922
|
};
|
|
7133
|
-
declare function createCart(httpClient: HttpClient
|
|
6923
|
+
declare function createCart(httpClient: HttpClient): (options?: CreateCartOptions) => Promise<Cart$1 & {
|
|
7134
6924
|
lineItems: {
|
|
7135
6925
|
quantity: number;
|
|
7136
6926
|
catalogReference?: {
|
|
@@ -7250,7 +7040,7 @@ declare function createCart(httpClient: HttpClient$a): (options?: CreateCartOpti
|
|
|
7250
7040
|
code: string;
|
|
7251
7041
|
} | undefined;
|
|
7252
7042
|
}>;
|
|
7253
|
-
declare function updateCart(httpClient: HttpClient
|
|
7043
|
+
declare function updateCart(httpClient: HttpClient): (_id: string | null, options?: UpdateCartOptions) => Promise<Cart$1 & {
|
|
7254
7044
|
lineItems: {
|
|
7255
7045
|
quantity: number;
|
|
7256
7046
|
catalogReference?: {
|
|
@@ -7370,7 +7160,7 @@ declare function updateCart(httpClient: HttpClient$a): (_id: string | null, opti
|
|
|
7370
7160
|
code: string;
|
|
7371
7161
|
} | undefined;
|
|
7372
7162
|
}>;
|
|
7373
|
-
declare function getCart(httpClient: HttpClient
|
|
7163
|
+
declare function getCart(httpClient: HttpClient): (_id: string) => Promise<Cart$1 & {
|
|
7374
7164
|
lineItems: {
|
|
7375
7165
|
quantity: number;
|
|
7376
7166
|
catalogReference?: {
|
|
@@ -7490,16 +7280,16 @@ declare function getCart(httpClient: HttpClient$a): (_id: string) => Promise<Car
|
|
|
7490
7280
|
code: string;
|
|
7491
7281
|
} | undefined;
|
|
7492
7282
|
}>;
|
|
7493
|
-
declare function addToCart(httpClient: HttpClient
|
|
7494
|
-
declare function removeLineItems$1(httpClient: HttpClient
|
|
7495
|
-
declare function createCheckout$1(httpClient: HttpClient
|
|
7496
|
-
declare function removeCoupon$1(httpClient: HttpClient
|
|
7497
|
-
declare function updateLineItemsQuantity$1(httpClient: HttpClient
|
|
7498
|
-
declare function estimateTotals(httpClient: HttpClient
|
|
7499
|
-
declare function deleteCart(httpClient: HttpClient
|
|
7500
|
-
declare const onCartUpdated$1: EventDefinition
|
|
7501
|
-
declare const onCartDeleted$1: EventDefinition
|
|
7502
|
-
declare const onCartCreated$1: EventDefinition
|
|
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">;
|
|
7503
7293
|
|
|
7504
7294
|
type index_d$a_AddToCartOptions = AddToCartOptions;
|
|
7505
7295
|
type index_d$a_CreateCartOptions = CreateCartOptions;
|
|
@@ -11004,49 +10794,10 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
11004
10794
|
selectedMemberships?: SelectedMemberships$2;
|
|
11005
10795
|
}
|
|
11006
10796
|
|
|
11007
|
-
interface HttpClient$9 {
|
|
11008
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$9<TResponse, TData>): Promise<HttpResponse$9<TResponse>>;
|
|
11009
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
11010
|
-
}
|
|
11011
|
-
type RequestOptionsFactory$9<TResponse = any, TData = any> = (context: any) => RequestOptions$9<TResponse, TData>;
|
|
11012
|
-
type HttpResponse$9<T = any> = {
|
|
11013
|
-
data: T;
|
|
11014
|
-
status: number;
|
|
11015
|
-
statusText: string;
|
|
11016
|
-
headers: any;
|
|
11017
|
-
request?: any;
|
|
11018
|
-
};
|
|
11019
|
-
type RequestOptions$9<_TResponse = any, Data = any> = {
|
|
11020
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
11021
|
-
url: string;
|
|
11022
|
-
data?: Data;
|
|
11023
|
-
params?: URLSearchParams;
|
|
11024
|
-
} & APIMetadata$9;
|
|
11025
|
-
type APIMetadata$9 = {
|
|
11026
|
-
methodFqn?: string;
|
|
11027
|
-
entityFqdn?: string;
|
|
11028
|
-
packageName?: string;
|
|
11029
|
-
};
|
|
11030
|
-
type EventDefinition$8<Payload = unknown, Type extends string = string> = {
|
|
11031
|
-
__type: 'event-definition';
|
|
11032
|
-
type: Type;
|
|
11033
|
-
isDomainEvent?: boolean;
|
|
11034
|
-
transformations?: (envelope: unknown) => Payload;
|
|
11035
|
-
__payload: Payload;
|
|
11036
|
-
};
|
|
11037
|
-
declare function EventDefinition$8<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$8<Payload, Type>;
|
|
11038
|
-
|
|
11039
|
-
declare global {
|
|
11040
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
11041
|
-
interface SymbolConstructor {
|
|
11042
|
-
readonly observable: symbol;
|
|
11043
|
-
}
|
|
11044
|
-
}
|
|
11045
|
-
|
|
11046
10797
|
declare const __metadata$9: {
|
|
11047
10798
|
PACKAGE_NAME: string;
|
|
11048
10799
|
};
|
|
11049
|
-
declare function getCurrentCart(httpClient: HttpClient
|
|
10800
|
+
declare function getCurrentCart(httpClient: HttpClient): () => Promise<Cart & {
|
|
11050
10801
|
lineItems: {
|
|
11051
10802
|
quantity: number;
|
|
11052
10803
|
catalogReference?: {
|
|
@@ -11166,7 +10917,7 @@ declare function getCurrentCart(httpClient: HttpClient$9): () => Promise<Cart &
|
|
|
11166
10917
|
code: string;
|
|
11167
10918
|
} | undefined;
|
|
11168
10919
|
}>;
|
|
11169
|
-
declare function updateCurrentCart(httpClient: HttpClient
|
|
10920
|
+
declare function updateCurrentCart(httpClient: HttpClient): (options?: UpdateCurrentCartOptions) => Promise<Cart & {
|
|
11170
10921
|
lineItems: {
|
|
11171
10922
|
quantity: number;
|
|
11172
10923
|
catalogReference?: {
|
|
@@ -11286,16 +11037,16 @@ declare function updateCurrentCart(httpClient: HttpClient$9): (options?: UpdateC
|
|
|
11286
11037
|
code: string;
|
|
11287
11038
|
} | undefined;
|
|
11288
11039
|
}>;
|
|
11289
|
-
declare function addToCurrentCart(httpClient: HttpClient
|
|
11290
|
-
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient
|
|
11291
|
-
declare function createCheckoutFromCurrentCart(httpClient: HttpClient
|
|
11292
|
-
declare function removeCouponFromCurrentCart(httpClient: HttpClient
|
|
11293
|
-
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient
|
|
11294
|
-
declare function estimateCurrentCartTotals(httpClient: HttpClient
|
|
11295
|
-
declare function deleteCurrentCart(httpClient: HttpClient
|
|
11296
|
-
declare const onCartUpdated: EventDefinition
|
|
11297
|
-
declare const onCartDeleted: EventDefinition
|
|
11298
|
-
declare const onCartCreated: EventDefinition
|
|
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">;
|
|
11299
11050
|
|
|
11300
11051
|
type index_d$9_AddToCartRequest = AddToCartRequest;
|
|
11301
11052
|
type index_d$9_AddToCartResponse = AddToCartResponse;
|
|
@@ -20205,49 +19956,10 @@ interface AddToCheckoutOptions {
|
|
|
20205
19956
|
lineItems?: LineItem$3[];
|
|
20206
19957
|
}
|
|
20207
19958
|
|
|
20208
|
-
interface HttpClient$8 {
|
|
20209
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
20210
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
20211
|
-
}
|
|
20212
|
-
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
20213
|
-
type HttpResponse$8<T = any> = {
|
|
20214
|
-
data: T;
|
|
20215
|
-
status: number;
|
|
20216
|
-
statusText: string;
|
|
20217
|
-
headers: any;
|
|
20218
|
-
request?: any;
|
|
20219
|
-
};
|
|
20220
|
-
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
20221
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
20222
|
-
url: string;
|
|
20223
|
-
data?: Data;
|
|
20224
|
-
params?: URLSearchParams;
|
|
20225
|
-
} & APIMetadata$8;
|
|
20226
|
-
type APIMetadata$8 = {
|
|
20227
|
-
methodFqn?: string;
|
|
20228
|
-
entityFqdn?: string;
|
|
20229
|
-
packageName?: string;
|
|
20230
|
-
};
|
|
20231
|
-
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
20232
|
-
__type: 'event-definition';
|
|
20233
|
-
type: Type;
|
|
20234
|
-
isDomainEvent?: boolean;
|
|
20235
|
-
transformations?: (envelope: unknown) => Payload;
|
|
20236
|
-
__payload: Payload;
|
|
20237
|
-
};
|
|
20238
|
-
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
20239
|
-
|
|
20240
|
-
declare global {
|
|
20241
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
20242
|
-
interface SymbolConstructor {
|
|
20243
|
-
readonly observable: symbol;
|
|
20244
|
-
}
|
|
20245
|
-
}
|
|
20246
|
-
|
|
20247
19959
|
declare const __metadata$8: {
|
|
20248
19960
|
PACKAGE_NAME: string;
|
|
20249
19961
|
};
|
|
20250
|
-
declare function createCheckout(httpClient: HttpClient
|
|
19962
|
+
declare function createCheckout(httpClient: HttpClient): (options?: CreateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20251
19963
|
lineItems: {
|
|
20252
19964
|
quantity: number;
|
|
20253
19965
|
catalogReference?: {
|
|
@@ -20949,9 +20661,9 @@ declare function createCheckout(httpClient: HttpClient$8): (options?: CreateChec
|
|
|
20949
20661
|
disabledManualPayment: boolean;
|
|
20950
20662
|
} | undefined;
|
|
20951
20663
|
}>;
|
|
20952
|
-
declare function getCheckout(httpClient: HttpClient
|
|
20953
|
-
declare function getCheckoutUrl(httpClient: HttpClient
|
|
20954
|
-
declare function updateCheckout(httpClient: HttpClient
|
|
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 & {
|
|
20955
20667
|
lineItems: {
|
|
20956
20668
|
quantity: number;
|
|
20957
20669
|
catalogReference?: {
|
|
@@ -21653,17 +21365,17 @@ declare function updateCheckout(httpClient: HttpClient$8): (_id: string | null,
|
|
|
21653
21365
|
disabledManualPayment: boolean;
|
|
21654
21366
|
} | undefined;
|
|
21655
21367
|
}>;
|
|
21656
|
-
declare function removeCoupon(httpClient: HttpClient
|
|
21657
|
-
declare function removeGiftCard(httpClient: HttpClient
|
|
21658
|
-
declare function removeOverrideCheckoutUrl(httpClient: HttpClient
|
|
21659
|
-
declare function addToCheckout(httpClient: HttpClient
|
|
21660
|
-
declare function removeLineItems(httpClient: HttpClient
|
|
21661
|
-
declare function createOrder$1(httpClient: HttpClient
|
|
21662
|
-
declare function markCheckoutAsCompleted(httpClient: HttpClient
|
|
21663
|
-
declare function updateLineItemsQuantity(httpClient: HttpClient
|
|
21664
|
-
declare const onCheckoutCreated: EventDefinition
|
|
21665
|
-
declare const onCheckoutUpdated: EventDefinition
|
|
21666
|
-
declare const onCheckoutCompleted: EventDefinition
|
|
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">;
|
|
21667
21379
|
|
|
21668
21380
|
type index_d$8_AddToCheckoutOptions = AddToCheckoutOptions;
|
|
21669
21381
|
type index_d$8_AddToCheckoutRequest = AddToCheckoutRequest;
|
|
@@ -22117,51 +21829,12 @@ interface CheckoutSettingsUpdatedEnvelope {
|
|
|
22117
21829
|
metadata: EventMetadata$6;
|
|
22118
21830
|
}
|
|
22119
21831
|
|
|
22120
|
-
interface HttpClient$7 {
|
|
22121
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
22122
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
22123
|
-
}
|
|
22124
|
-
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
22125
|
-
type HttpResponse$7<T = any> = {
|
|
22126
|
-
data: T;
|
|
22127
|
-
status: number;
|
|
22128
|
-
statusText: string;
|
|
22129
|
-
headers: any;
|
|
22130
|
-
request?: any;
|
|
22131
|
-
};
|
|
22132
|
-
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
22133
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
22134
|
-
url: string;
|
|
22135
|
-
data?: Data;
|
|
22136
|
-
params?: URLSearchParams;
|
|
22137
|
-
} & APIMetadata$7;
|
|
22138
|
-
type APIMetadata$7 = {
|
|
22139
|
-
methodFqn?: string;
|
|
22140
|
-
entityFqdn?: string;
|
|
22141
|
-
packageName?: string;
|
|
22142
|
-
};
|
|
22143
|
-
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
22144
|
-
__type: 'event-definition';
|
|
22145
|
-
type: Type;
|
|
22146
|
-
isDomainEvent?: boolean;
|
|
22147
|
-
transformations?: (envelope: unknown) => Payload;
|
|
22148
|
-
__payload: Payload;
|
|
22149
|
-
};
|
|
22150
|
-
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
22151
|
-
|
|
22152
|
-
declare global {
|
|
22153
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
22154
|
-
interface SymbolConstructor {
|
|
22155
|
-
readonly observable: symbol;
|
|
22156
|
-
}
|
|
22157
|
-
}
|
|
22158
|
-
|
|
22159
21832
|
declare const __metadata$7: {
|
|
22160
21833
|
PACKAGE_NAME: string;
|
|
22161
21834
|
};
|
|
22162
|
-
declare function getCheckoutSettings(httpClient: HttpClient
|
|
22163
|
-
declare function updateCheckoutSettings(httpClient: HttpClient
|
|
22164
|
-
declare const onCheckoutSettingsUpdated: EventDefinition
|
|
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">;
|
|
22165
21838
|
|
|
22166
21839
|
type index_d$7_Alignment = Alignment;
|
|
22167
21840
|
declare const index_d$7_Alignment: typeof Alignment;
|
|
@@ -24342,49 +24015,10 @@ interface CheckoutTemplatesQueryBuilder {
|
|
|
24342
24015
|
find: () => Promise<CheckoutTemplatesQueryResult>;
|
|
24343
24016
|
}
|
|
24344
24017
|
|
|
24345
|
-
interface HttpClient$6 {
|
|
24346
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
24347
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
24348
|
-
}
|
|
24349
|
-
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
24350
|
-
type HttpResponse$6<T = any> = {
|
|
24351
|
-
data: T;
|
|
24352
|
-
status: number;
|
|
24353
|
-
statusText: string;
|
|
24354
|
-
headers: any;
|
|
24355
|
-
request?: any;
|
|
24356
|
-
};
|
|
24357
|
-
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
24358
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
24359
|
-
url: string;
|
|
24360
|
-
data?: Data;
|
|
24361
|
-
params?: URLSearchParams;
|
|
24362
|
-
} & APIMetadata$6;
|
|
24363
|
-
type APIMetadata$6 = {
|
|
24364
|
-
methodFqn?: string;
|
|
24365
|
-
entityFqdn?: string;
|
|
24366
|
-
packageName?: string;
|
|
24367
|
-
};
|
|
24368
|
-
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
24369
|
-
__type: 'event-definition';
|
|
24370
|
-
type: Type;
|
|
24371
|
-
isDomainEvent?: boolean;
|
|
24372
|
-
transformations?: (envelope: unknown) => Payload;
|
|
24373
|
-
__payload: Payload;
|
|
24374
|
-
};
|
|
24375
|
-
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
24376
|
-
|
|
24377
|
-
declare global {
|
|
24378
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
24379
|
-
interface SymbolConstructor {
|
|
24380
|
-
readonly observable: symbol;
|
|
24381
|
-
}
|
|
24382
|
-
}
|
|
24383
|
-
|
|
24384
24018
|
declare const __metadata$6: {
|
|
24385
24019
|
PACKAGE_NAME: string;
|
|
24386
24020
|
};
|
|
24387
|
-
declare function createCheckoutTemplate(httpClient: HttpClient
|
|
24021
|
+
declare function createCheckoutTemplate(httpClient: HttpClient): (checkoutTemplate: CheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24388
24022
|
status: Status;
|
|
24389
24023
|
customization?: {
|
|
24390
24024
|
webClient?: {
|
|
@@ -24423,7 +24057,7 @@ declare function createCheckoutTemplate(httpClient: HttpClient$6): (checkoutTemp
|
|
|
24423
24057
|
} | undefined;
|
|
24424
24058
|
}[];
|
|
24425
24059
|
}>;
|
|
24426
|
-
declare function getCheckoutTemplate(httpClient: HttpClient
|
|
24060
|
+
declare function getCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
|
|
24427
24061
|
status: Status;
|
|
24428
24062
|
customization?: {
|
|
24429
24063
|
webClient?: {
|
|
@@ -24462,7 +24096,7 @@ declare function getCheckoutTemplate(httpClient: HttpClient$6): (checkoutTemplat
|
|
|
24462
24096
|
} | undefined;
|
|
24463
24097
|
}[];
|
|
24464
24098
|
}>;
|
|
24465
|
-
declare function updateCheckoutTemplate(httpClient: HttpClient
|
|
24099
|
+
declare function updateCheckoutTemplate(httpClient: HttpClient): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24466
24100
|
status: Status;
|
|
24467
24101
|
customization?: {
|
|
24468
24102
|
webClient?: {
|
|
@@ -24501,13 +24135,13 @@ declare function updateCheckoutTemplate(httpClient: HttpClient$6): (_id: string
|
|
|
24501
24135
|
} | undefined;
|
|
24502
24136
|
}[];
|
|
24503
24137
|
}>;
|
|
24504
|
-
declare function deleteCheckoutTemplate(httpClient: HttpClient
|
|
24505
|
-
declare function queryCheckoutTemplates(httpClient: HttpClient
|
|
24506
|
-
declare function createCheckoutFromTemplate(httpClient: HttpClient
|
|
24507
|
-
declare const onCheckoutTemplateCreated: EventDefinition
|
|
24508
|
-
declare const onCheckoutTemplateUpdated: EventDefinition
|
|
24509
|
-
declare const onCheckoutTemplateDeleted: EventDefinition
|
|
24510
|
-
declare const onCheckoutTemplateUsed: EventDefinition
|
|
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">;
|
|
24511
24145
|
|
|
24512
24146
|
type index_d$6_AggregatedTaxBreakdown = AggregatedTaxBreakdown;
|
|
24513
24147
|
type index_d$6_AutoTaxFallbackCalculationDetails = AutoTaxFallbackCalculationDetails;
|
|
@@ -25936,49 +25570,10 @@ interface UpdateExtendedFieldsOptions {
|
|
|
25936
25570
|
namespaceData: Record<string, any> | null;
|
|
25937
25571
|
}
|
|
25938
25572
|
|
|
25939
|
-
interface HttpClient$5 {
|
|
25940
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
25941
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
25942
|
-
}
|
|
25943
|
-
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
25944
|
-
type HttpResponse$5<T = any> = {
|
|
25945
|
-
data: T;
|
|
25946
|
-
status: number;
|
|
25947
|
-
statusText: string;
|
|
25948
|
-
headers: any;
|
|
25949
|
-
request?: any;
|
|
25950
|
-
};
|
|
25951
|
-
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
25952
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
25953
|
-
url: string;
|
|
25954
|
-
data?: Data;
|
|
25955
|
-
params?: URLSearchParams;
|
|
25956
|
-
} & APIMetadata$5;
|
|
25957
|
-
type APIMetadata$5 = {
|
|
25958
|
-
methodFqn?: string;
|
|
25959
|
-
entityFqdn?: string;
|
|
25960
|
-
packageName?: string;
|
|
25961
|
-
};
|
|
25962
|
-
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
25963
|
-
__type: 'event-definition';
|
|
25964
|
-
type: Type;
|
|
25965
|
-
isDomainEvent?: boolean;
|
|
25966
|
-
transformations?: (envelope: unknown) => Payload;
|
|
25967
|
-
__payload: Payload;
|
|
25968
|
-
};
|
|
25969
|
-
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
25970
|
-
|
|
25971
|
-
declare global {
|
|
25972
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
25973
|
-
interface SymbolConstructor {
|
|
25974
|
-
readonly observable: symbol;
|
|
25975
|
-
}
|
|
25976
|
-
}
|
|
25977
|
-
|
|
25978
25573
|
declare const __metadata$5: {
|
|
25979
25574
|
PACKAGE_NAME: string;
|
|
25980
25575
|
};
|
|
25981
|
-
declare function createDeliveryProfile(httpClient: HttpClient
|
|
25576
|
+
declare function createDeliveryProfile(httpClient: HttpClient): (deliveryProfile: DeliveryProfile) => Promise<DeliveryProfile & {
|
|
25982
25577
|
deliveryRegions: {
|
|
25983
25578
|
deliveryCarriers: {
|
|
25984
25579
|
appId: string;
|
|
@@ -25993,7 +25588,7 @@ declare function createDeliveryProfile(httpClient: HttpClient$5): (deliveryProfi
|
|
|
25993
25588
|
}[];
|
|
25994
25589
|
}[];
|
|
25995
25590
|
}>;
|
|
25996
|
-
declare function getDeliveryProfile(httpClient: HttpClient
|
|
25591
|
+
declare function getDeliveryProfile(httpClient: HttpClient): (deliveryProfileId: string) => Promise<DeliveryProfile & {
|
|
25997
25592
|
deliveryRegions: {
|
|
25998
25593
|
deliveryCarriers: {
|
|
25999
25594
|
appId: string;
|
|
@@ -26008,7 +25603,7 @@ declare function getDeliveryProfile(httpClient: HttpClient$5): (deliveryProfileI
|
|
|
26008
25603
|
}[];
|
|
26009
25604
|
}[];
|
|
26010
25605
|
}>;
|
|
26011
|
-
declare function updateDeliveryProfile(httpClient: HttpClient
|
|
25606
|
+
declare function updateDeliveryProfile(httpClient: HttpClient): (_id: string | null, deliveryProfile: UpdateDeliveryProfile) => Promise<DeliveryProfile & {
|
|
26012
25607
|
deliveryRegions: {
|
|
26013
25608
|
deliveryCarriers: {
|
|
26014
25609
|
appId: string;
|
|
@@ -26023,23 +25618,23 @@ declare function updateDeliveryProfile(httpClient: HttpClient$5): (_id: string |
|
|
|
26023
25618
|
}[];
|
|
26024
25619
|
}[];
|
|
26025
25620
|
}>;
|
|
26026
|
-
declare function deleteDeliveryProfile(httpClient: HttpClient
|
|
26027
|
-
declare function queryDeliveryProfiles(httpClient: HttpClient
|
|
26028
|
-
declare function addDeliveryRegion(httpClient: HttpClient
|
|
26029
|
-
declare function updateDeliveryRegion(httpClient: HttpClient
|
|
26030
|
-
declare function removeDeliveryRegion(httpClient: HttpClient
|
|
26031
|
-
declare function addDeliveryCarrier(httpClient: HttpClient
|
|
26032
|
-
declare function removeDeliveryCarrier(httpClient: HttpClient
|
|
26033
|
-
declare function updateDeliveryCarrier(httpClient: HttpClient
|
|
26034
|
-
declare function listDeliveryCarrierDetails(httpClient: HttpClient
|
|
26035
|
-
declare function listDeliveryCarriers(httpClient: HttpClient
|
|
26036
|
-
declare function updateExtendedFields(httpClient: HttpClient
|
|
26037
|
-
declare const onDeliveryProfileCreated: EventDefinition
|
|
26038
|
-
declare const onDeliveryProfileDeliveryRegionAdded: EventDefinition
|
|
26039
|
-
declare const onDeliveryProfileUpdated: EventDefinition
|
|
26040
|
-
declare const onDeliveryProfileDeleted: EventDefinition
|
|
26041
|
-
declare const onDeliveryProfileDeliveryRegionRemoved: EventDefinition
|
|
26042
|
-
declare const onDeliveryProfileDeliveryRegionUpdated: EventDefinition
|
|
25621
|
+
declare function deleteDeliveryProfile(httpClient: HttpClient): (deliveryProfileId: string) => Promise<void>;
|
|
25622
|
+
declare function queryDeliveryProfiles(httpClient: HttpClient): () => DeliveryProfilesQueryBuilder;
|
|
25623
|
+
declare function addDeliveryRegion(httpClient: HttpClient): (deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions) => Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
|
|
25624
|
+
declare function updateDeliveryRegion(httpClient: HttpClient): (identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions) => Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
|
|
25625
|
+
declare function removeDeliveryRegion(httpClient: HttpClient): (identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions) => Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
25626
|
+
declare function addDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options: AddDeliveryCarrierOptions) => Promise<AddDeliveryCarrierResponse & AddDeliveryCarrierResponseNonNullableFields>;
|
|
25627
|
+
declare function removeDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options: RemoveDeliveryCarrierOptions) => Promise<RemoveDeliveryCarrierResponse & RemoveDeliveryCarrierResponseNonNullableFields>;
|
|
25628
|
+
declare function updateDeliveryCarrier(httpClient: HttpClient): (deliveryRegionId: string, options?: UpdateDeliveryCarrierOptions) => Promise<UpdateDeliveryCarrierResponse & UpdateDeliveryCarrierResponseNonNullableFields>;
|
|
25629
|
+
declare function listDeliveryCarrierDetails(httpClient: HttpClient): () => Promise<ListDeliveryCarrierDetailsResponse & ListDeliveryCarrierDetailsResponseNonNullableFields>;
|
|
25630
|
+
declare function listDeliveryCarriers(httpClient: HttpClient): (deliveryProfileId: string, options?: ListDeliveryCarriersOptions) => Promise<ListDeliveryCarriersResponse & ListDeliveryCarriersResponseNonNullableFields>;
|
|
25631
|
+
declare function updateExtendedFields(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
25632
|
+
declare const onDeliveryProfileCreated: EventDefinition<DeliveryProfileCreatedEnvelope, "wix.ecom.v1.delivery_profile_created">;
|
|
25633
|
+
declare const onDeliveryProfileDeliveryRegionAdded: EventDefinition<DeliveryProfileDeliveryRegionAddedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_added">;
|
|
25634
|
+
declare const onDeliveryProfileUpdated: EventDefinition<DeliveryProfileUpdatedEnvelope, "wix.ecom.v1.delivery_profile_updated">;
|
|
25635
|
+
declare const onDeliveryProfileDeleted: EventDefinition<DeliveryProfileDeletedEnvelope, "wix.ecom.v1.delivery_profile_deleted">;
|
|
25636
|
+
declare const onDeliveryProfileDeliveryRegionRemoved: EventDefinition<DeliveryProfileDeliveryRegionRemovedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_removed">;
|
|
25637
|
+
declare const onDeliveryProfileDeliveryRegionUpdated: EventDefinition<DeliveryProfileDeliveryRegionUpdatedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_updated">;
|
|
26043
25638
|
|
|
26044
25639
|
type index_d$5_AddDeliveryCarrierOptions = AddDeliveryCarrierOptions;
|
|
26045
25640
|
type index_d$5_AddDeliveryCarrierRequest = AddDeliveryCarrierRequest;
|
|
@@ -26722,52 +26317,13 @@ interface DeleteFulfillmentIdentifiers {
|
|
|
26722
26317
|
orderId: string;
|
|
26723
26318
|
}
|
|
26724
26319
|
|
|
26725
|
-
interface HttpClient$4 {
|
|
26726
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
26727
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
26728
|
-
}
|
|
26729
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
26730
|
-
type HttpResponse$4<T = any> = {
|
|
26731
|
-
data: T;
|
|
26732
|
-
status: number;
|
|
26733
|
-
statusText: string;
|
|
26734
|
-
headers: any;
|
|
26735
|
-
request?: any;
|
|
26736
|
-
};
|
|
26737
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
26738
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
26739
|
-
url: string;
|
|
26740
|
-
data?: Data;
|
|
26741
|
-
params?: URLSearchParams;
|
|
26742
|
-
} & APIMetadata$4;
|
|
26743
|
-
type APIMetadata$4 = {
|
|
26744
|
-
methodFqn?: string;
|
|
26745
|
-
entityFqdn?: string;
|
|
26746
|
-
packageName?: string;
|
|
26747
|
-
};
|
|
26748
|
-
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
26749
|
-
__type: 'event-definition';
|
|
26750
|
-
type: Type;
|
|
26751
|
-
isDomainEvent?: boolean;
|
|
26752
|
-
transformations?: (envelope: unknown) => Payload;
|
|
26753
|
-
__payload: Payload;
|
|
26754
|
-
};
|
|
26755
|
-
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
26756
|
-
|
|
26757
|
-
declare global {
|
|
26758
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
26759
|
-
interface SymbolConstructor {
|
|
26760
|
-
readonly observable: symbol;
|
|
26761
|
-
}
|
|
26762
|
-
}
|
|
26763
|
-
|
|
26764
26320
|
declare const __metadata$4: {
|
|
26765
26321
|
PACKAGE_NAME: string;
|
|
26766
26322
|
};
|
|
26767
|
-
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient
|
|
26768
|
-
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient
|
|
26769
|
-
declare function createFulfillment(httpClient: HttpClient
|
|
26770
|
-
declare function updateFulfillment(httpClient: HttpClient
|
|
26323
|
+
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListFulfillmentsForSingleOrderResponse & ListFulfillmentsForSingleOrderResponseNonNullableFields>;
|
|
26324
|
+
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListFulfillmentsForMultipleOrdersResponse & ListFulfillmentsForMultipleOrdersResponseNonNullableFields>;
|
|
26325
|
+
declare function createFulfillment(httpClient: HttpClient): (orderId: string, fulfillment: Fulfillment$1) => Promise<CreateFulfillmentResponse & CreateFulfillmentResponseNonNullableFields>;
|
|
26326
|
+
declare function updateFulfillment(httpClient: HttpClient): (identifiers: UpdateFulfillmentIdentifiers, options?: UpdateFulfillmentOptions) => Promise<OrderWithFulfillments & {
|
|
26771
26327
|
orderId: string;
|
|
26772
26328
|
fulfillments: {
|
|
26773
26329
|
lineItems: {
|
|
@@ -26775,9 +26331,9 @@ declare function updateFulfillment(httpClient: HttpClient$4): (identifiers: Upda
|
|
|
26775
26331
|
}[];
|
|
26776
26332
|
}[];
|
|
26777
26333
|
}>;
|
|
26778
|
-
declare function deleteFulfillment(httpClient: HttpClient
|
|
26779
|
-
declare function bulkCreateFulfillments(httpClient: HttpClient
|
|
26780
|
-
declare const onFulfillmentsUpdated: EventDefinition
|
|
26334
|
+
declare function deleteFulfillment(httpClient: HttpClient): (identifiers: DeleteFulfillmentIdentifiers) => Promise<DeleteFulfillmentResponse & DeleteFulfillmentResponseNonNullableFields>;
|
|
26335
|
+
declare function bulkCreateFulfillments(httpClient: HttpClient): (ordersWithFulfillments: BulkCreateOrderWithFulfillments[]) => Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
26336
|
+
declare const onFulfillmentsUpdated: EventDefinition<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
26781
26337
|
|
|
26782
26338
|
type index_d$4_BulkCreateFulfillmentRequest = BulkCreateFulfillmentRequest;
|
|
26783
26339
|
type index_d$4_BulkCreateFulfillmentResponse = BulkCreateFulfillmentResponse;
|
|
@@ -32931,50 +32487,11 @@ interface CancelOrderOptions {
|
|
|
32931
32487
|
restockAllItems?: boolean;
|
|
32932
32488
|
}
|
|
32933
32489
|
|
|
32934
|
-
interface HttpClient$3 {
|
|
32935
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
32936
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
32937
|
-
}
|
|
32938
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
32939
|
-
type HttpResponse$3<T = any> = {
|
|
32940
|
-
data: T;
|
|
32941
|
-
status: number;
|
|
32942
|
-
statusText: string;
|
|
32943
|
-
headers: any;
|
|
32944
|
-
request?: any;
|
|
32945
|
-
};
|
|
32946
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
32947
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
32948
|
-
url: string;
|
|
32949
|
-
data?: Data;
|
|
32950
|
-
params?: URLSearchParams;
|
|
32951
|
-
} & APIMetadata$3;
|
|
32952
|
-
type APIMetadata$3 = {
|
|
32953
|
-
methodFqn?: string;
|
|
32954
|
-
entityFqdn?: string;
|
|
32955
|
-
packageName?: string;
|
|
32956
|
-
};
|
|
32957
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
32958
|
-
__type: 'event-definition';
|
|
32959
|
-
type: Type;
|
|
32960
|
-
isDomainEvent?: boolean;
|
|
32961
|
-
transformations?: (envelope: unknown) => Payload;
|
|
32962
|
-
__payload: Payload;
|
|
32963
|
-
};
|
|
32964
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
32965
|
-
|
|
32966
|
-
declare global {
|
|
32967
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
32968
|
-
interface SymbolConstructor {
|
|
32969
|
-
readonly observable: symbol;
|
|
32970
|
-
}
|
|
32971
|
-
}
|
|
32972
|
-
|
|
32973
32490
|
declare const __metadata$3: {
|
|
32974
32491
|
PACKAGE_NAME: string;
|
|
32975
32492
|
};
|
|
32976
|
-
declare function getPaymentCollectabilityStatus(httpClient: HttpClient
|
|
32977
|
-
declare function getOrder(httpClient: HttpClient
|
|
32493
|
+
declare function getPaymentCollectabilityStatus(httpClient: HttpClient): (ecomOrderId: string) => Promise<GetPaymentCollectabilityStatusResponse & GetPaymentCollectabilityStatusResponseNonNullableFields>;
|
|
32494
|
+
declare function getOrder(httpClient: HttpClient): (_id: string) => Promise<Order$1 & {
|
|
32978
32495
|
number: string;
|
|
32979
32496
|
lineItems: {
|
|
32980
32497
|
_id: string;
|
|
@@ -33301,8 +32818,8 @@ declare function getOrder(httpClient: HttpClient$3): (_id: string) => Promise<Or
|
|
|
33301
32818
|
} | undefined;
|
|
33302
32819
|
} | undefined;
|
|
33303
32820
|
}>;
|
|
33304
|
-
declare function searchOrders(httpClient: HttpClient
|
|
33305
|
-
declare function createOrder(httpClient: HttpClient
|
|
32821
|
+
declare function searchOrders(httpClient: HttpClient): (options?: SearchOrdersOptions) => Promise<SearchOrdersResponse & SearchOrdersResponseNonNullableFields>;
|
|
32822
|
+
declare function createOrder(httpClient: HttpClient): (order: Order$1) => Promise<Order$1 & {
|
|
33306
32823
|
number: string;
|
|
33307
32824
|
lineItems: {
|
|
33308
32825
|
_id: string;
|
|
@@ -33629,7 +33146,7 @@ declare function createOrder(httpClient: HttpClient$3): (order: Order$1) => Prom
|
|
|
33629
33146
|
} | undefined;
|
|
33630
33147
|
} | undefined;
|
|
33631
33148
|
}>;
|
|
33632
|
-
declare function updateOrder(httpClient: HttpClient
|
|
33149
|
+
declare function updateOrder(httpClient: HttpClient): (_id: string | null, order: UpdateOrder) => Promise<Order$1 & {
|
|
33633
33150
|
number: string;
|
|
33634
33151
|
lineItems: {
|
|
33635
33152
|
_id: string;
|
|
@@ -33956,12 +33473,12 @@ declare function updateOrder(httpClient: HttpClient$3): (_id: string | null, ord
|
|
|
33956
33473
|
} | undefined;
|
|
33957
33474
|
} | undefined;
|
|
33958
33475
|
}>;
|
|
33959
|
-
declare function cancelOrder(httpClient: HttpClient
|
|
33960
|
-
declare const onOrderPaymentStatusUpdated: EventDefinition
|
|
33961
|
-
declare const onOrderUpdated: EventDefinition
|
|
33962
|
-
declare const onOrderCreated: EventDefinition
|
|
33963
|
-
declare const onOrderCanceled: EventDefinition
|
|
33964
|
-
declare const onOrderApproved: EventDefinition
|
|
33476
|
+
declare function cancelOrder(httpClient: HttpClient): (_id: string, options?: CancelOrderOptions) => Promise<CancelOrderResponse & CancelOrderResponseNonNullableFields>;
|
|
33477
|
+
declare const onOrderPaymentStatusUpdated: EventDefinition<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
33478
|
+
declare const onOrderUpdated: EventDefinition<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
33479
|
+
declare const onOrderCreated: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
33480
|
+
declare const onOrderCanceled: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
33481
|
+
declare const onOrderApproved: EventDefinition<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
33965
33482
|
|
|
33966
33483
|
type index_d$3_ActivityContentOneOf = ActivityContentOneOf;
|
|
33967
33484
|
type index_d$3_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -36247,54 +35764,15 @@ interface BulkUpdatePaymentStatusesOptions {
|
|
|
36247
35764
|
status?: TransactionStatus;
|
|
36248
35765
|
}
|
|
36249
35766
|
|
|
36250
|
-
interface HttpClient$2 {
|
|
36251
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
36252
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
36253
|
-
}
|
|
36254
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
36255
|
-
type HttpResponse$2<T = any> = {
|
|
36256
|
-
data: T;
|
|
36257
|
-
status: number;
|
|
36258
|
-
statusText: string;
|
|
36259
|
-
headers: any;
|
|
36260
|
-
request?: any;
|
|
36261
|
-
};
|
|
36262
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
36263
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
36264
|
-
url: string;
|
|
36265
|
-
data?: Data;
|
|
36266
|
-
params?: URLSearchParams;
|
|
36267
|
-
} & APIMetadata$2;
|
|
36268
|
-
type APIMetadata$2 = {
|
|
36269
|
-
methodFqn?: string;
|
|
36270
|
-
entityFqdn?: string;
|
|
36271
|
-
packageName?: string;
|
|
36272
|
-
};
|
|
36273
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
36274
|
-
__type: 'event-definition';
|
|
36275
|
-
type: Type;
|
|
36276
|
-
isDomainEvent?: boolean;
|
|
36277
|
-
transformations?: (envelope: unknown) => Payload;
|
|
36278
|
-
__payload: Payload;
|
|
36279
|
-
};
|
|
36280
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
36281
|
-
|
|
36282
|
-
declare global {
|
|
36283
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
36284
|
-
interface SymbolConstructor {
|
|
36285
|
-
readonly observable: symbol;
|
|
36286
|
-
}
|
|
36287
|
-
}
|
|
36288
|
-
|
|
36289
35767
|
declare const __metadata$2: {
|
|
36290
35768
|
PACKAGE_NAME: string;
|
|
36291
35769
|
};
|
|
36292
|
-
declare function listTransactionsForSingleOrder(httpClient: HttpClient
|
|
36293
|
-
declare function listTransactionsForMultipleOrders(httpClient: HttpClient
|
|
36294
|
-
declare function addPayments(httpClient: HttpClient
|
|
36295
|
-
declare function updatePaymentStatus(httpClient: HttpClient
|
|
36296
|
-
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient
|
|
36297
|
-
declare const onOrderTransactionsUpdated: EventDefinition
|
|
35770
|
+
declare function listTransactionsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListTransactionsForSingleOrderResponse & ListTransactionsForSingleOrderResponseNonNullableFields>;
|
|
35771
|
+
declare function listTransactionsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListTransactionsForMultipleOrdersResponse & ListTransactionsForMultipleOrdersResponseNonNullableFields>;
|
|
35772
|
+
declare function addPayments(httpClient: HttpClient): (orderId: string, payments: Payment[]) => Promise<AddPaymentsResponse & AddPaymentsResponseNonNullableFields>;
|
|
35773
|
+
declare function updatePaymentStatus(httpClient: HttpClient): (identifiers: UpdatePaymentStatusIdentifiers, options?: UpdatePaymentStatusOptions) => Promise<UpdatePaymentStatusResponse & UpdatePaymentStatusResponseNonNullableFields>;
|
|
35774
|
+
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient): (paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions) => Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
35775
|
+
declare const onOrderTransactionsUpdated: EventDefinition<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
36298
35776
|
|
|
36299
35777
|
type index_d$2_Activity = Activity;
|
|
36300
35778
|
type index_d$2_ActivityType = ActivityType;
|
|
@@ -36704,50 +36182,11 @@ interface OrdersSettingsUpdatedEnvelope {
|
|
|
36704
36182
|
metadata: EventMetadata;
|
|
36705
36183
|
}
|
|
36706
36184
|
|
|
36707
|
-
interface HttpClient$1 {
|
|
36708
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
36709
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
36710
|
-
}
|
|
36711
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
36712
|
-
type HttpResponse$1<T = any> = {
|
|
36713
|
-
data: T;
|
|
36714
|
-
status: number;
|
|
36715
|
-
statusText: string;
|
|
36716
|
-
headers: any;
|
|
36717
|
-
request?: any;
|
|
36718
|
-
};
|
|
36719
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
36720
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
36721
|
-
url: string;
|
|
36722
|
-
data?: Data;
|
|
36723
|
-
params?: URLSearchParams;
|
|
36724
|
-
} & APIMetadata$1;
|
|
36725
|
-
type APIMetadata$1 = {
|
|
36726
|
-
methodFqn?: string;
|
|
36727
|
-
entityFqdn?: string;
|
|
36728
|
-
packageName?: string;
|
|
36729
|
-
};
|
|
36730
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
36731
|
-
__type: 'event-definition';
|
|
36732
|
-
type: Type;
|
|
36733
|
-
isDomainEvent?: boolean;
|
|
36734
|
-
transformations?: (envelope: unknown) => Payload;
|
|
36735
|
-
__payload: Payload;
|
|
36736
|
-
};
|
|
36737
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
36738
|
-
|
|
36739
|
-
declare global {
|
|
36740
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
36741
|
-
interface SymbolConstructor {
|
|
36742
|
-
readonly observable: symbol;
|
|
36743
|
-
}
|
|
36744
|
-
}
|
|
36745
|
-
|
|
36746
36185
|
declare const __metadata$1: {
|
|
36747
36186
|
PACKAGE_NAME: string;
|
|
36748
36187
|
};
|
|
36749
|
-
declare function getOrdersSettings(httpClient: HttpClient
|
|
36750
|
-
declare function updateOrdersSettings(httpClient: HttpClient
|
|
36188
|
+
declare function getOrdersSettings(httpClient: HttpClient): () => Promise<GetOrdersSettingsResponse & GetOrdersSettingsResponseNonNullableFields>;
|
|
36189
|
+
declare function updateOrdersSettings(httpClient: HttpClient): (ordersSettings: OrdersSettings) => Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
36751
36190
|
declare const onOrdersSettingsUpdated: EventDefinition<OrdersSettingsUpdatedEnvelope, "wix.ecom.v1.orders_settings_updated">;
|
|
36752
36191
|
|
|
36753
36192
|
type index_d$1_ActionEvent = ActionEvent;
|
|
@@ -36862,37 +36301,6 @@ interface GetConversionRateIdentifiers {
|
|
|
36862
36301
|
to: string;
|
|
36863
36302
|
}
|
|
36864
36303
|
|
|
36865
|
-
interface HttpClient {
|
|
36866
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
36867
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
36868
|
-
}
|
|
36869
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
36870
|
-
type HttpResponse<T = any> = {
|
|
36871
|
-
data: T;
|
|
36872
|
-
status: number;
|
|
36873
|
-
statusText: string;
|
|
36874
|
-
headers: any;
|
|
36875
|
-
request?: any;
|
|
36876
|
-
};
|
|
36877
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
36878
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
36879
|
-
url: string;
|
|
36880
|
-
data?: Data;
|
|
36881
|
-
params?: URLSearchParams;
|
|
36882
|
-
} & APIMetadata;
|
|
36883
|
-
type APIMetadata = {
|
|
36884
|
-
methodFqn?: string;
|
|
36885
|
-
entityFqdn?: string;
|
|
36886
|
-
packageName?: string;
|
|
36887
|
-
};
|
|
36888
|
-
|
|
36889
|
-
declare global {
|
|
36890
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
36891
|
-
interface SymbolConstructor {
|
|
36892
|
-
readonly observable: symbol;
|
|
36893
|
-
}
|
|
36894
|
-
}
|
|
36895
|
-
|
|
36896
36304
|
declare const __metadata: {
|
|
36897
36305
|
PACKAGE_NAME: string;
|
|
36898
36306
|
};
|