@wix/ecom 1.0.644 → 1.0.645
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,41 +1078,49 @@ interface DiscountRulesQueryBuilder {
|
|
|
1078
1078
|
find: () => Promise<DiscountRulesQueryResult>;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
interface HttpClient {
|
|
1082
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1081
|
+
interface HttpClient$f {
|
|
1082
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$f<TResponse, TData>): Promise<HttpResponse$f<TResponse>>;
|
|
1083
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1083
1084
|
}
|
|
1084
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1085
|
-
type HttpResponse<T = any> = {
|
|
1085
|
+
type RequestOptionsFactory$f<TResponse = any, TData = any> = (context: any) => RequestOptions$f<TResponse, TData>;
|
|
1086
|
+
type HttpResponse$f<T = any> = {
|
|
1086
1087
|
data: T;
|
|
1087
1088
|
status: number;
|
|
1088
1089
|
statusText: string;
|
|
1089
1090
|
headers: any;
|
|
1090
1091
|
request?: any;
|
|
1091
1092
|
};
|
|
1092
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1093
|
+
type RequestOptions$f<_TResponse = any, Data = any> = {
|
|
1093
1094
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1094
1095
|
url: string;
|
|
1095
1096
|
data?: Data;
|
|
1096
1097
|
params?: URLSearchParams;
|
|
1097
|
-
} & APIMetadata;
|
|
1098
|
-
type APIMetadata = {
|
|
1098
|
+
} & APIMetadata$f;
|
|
1099
|
+
type APIMetadata$f = {
|
|
1099
1100
|
methodFqn?: string;
|
|
1100
1101
|
entityFqdn?: string;
|
|
1101
1102
|
packageName?: string;
|
|
1102
1103
|
};
|
|
1103
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1104
|
+
type EventDefinition$b<Payload = unknown, Type extends string = string> = {
|
|
1104
1105
|
__type: 'event-definition';
|
|
1105
1106
|
type: Type;
|
|
1106
1107
|
isDomainEvent?: boolean;
|
|
1107
|
-
transformations?: unknown;
|
|
1108
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1108
1109
|
__payload: Payload;
|
|
1109
1110
|
};
|
|
1110
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
1111
|
+
declare function EventDefinition$b<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$b<Payload, Type>;
|
|
1112
|
+
|
|
1113
|
+
declare global {
|
|
1114
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1115
|
+
interface SymbolConstructor {
|
|
1116
|
+
readonly observable: symbol;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1111
1119
|
|
|
1112
1120
|
declare const __metadata$f: {
|
|
1113
1121
|
PACKAGE_NAME: string;
|
|
1114
1122
|
};
|
|
1115
|
-
declare function createDiscountRule(httpClient: HttpClient): (discountRule: DiscountRule$5) => Promise<DiscountRule$5 & {
|
|
1123
|
+
declare function createDiscountRule(httpClient: HttpClient$f): (discountRule: DiscountRule$5) => Promise<DiscountRule$5 & {
|
|
1116
1124
|
trigger?: {
|
|
1117
1125
|
and?: {
|
|
1118
1126
|
triggers: (any | undefined)[];
|
|
@@ -1177,7 +1185,7 @@ declare function createDiscountRule(httpClient: HttpClient): (discountRule: Disc
|
|
|
1177
1185
|
status: Status$3;
|
|
1178
1186
|
usageCount: number;
|
|
1179
1187
|
}>;
|
|
1180
|
-
declare function getDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<DiscountRule$5 & {
|
|
1188
|
+
declare function getDiscountRule(httpClient: HttpClient$f): (discountRuleId: string) => Promise<DiscountRule$5 & {
|
|
1181
1189
|
trigger?: {
|
|
1182
1190
|
and?: {
|
|
1183
1191
|
triggers: (any | undefined)[];
|
|
@@ -1242,7 +1250,7 @@ declare function getDiscountRule(httpClient: HttpClient): (discountRuleId: strin
|
|
|
1242
1250
|
status: Status$3;
|
|
1243
1251
|
usageCount: number;
|
|
1244
1252
|
}>;
|
|
1245
|
-
declare function updateDiscountRule(httpClient: HttpClient): (_id: string | null, discountRule: UpdateDiscountRule) => Promise<DiscountRule$5 & {
|
|
1253
|
+
declare function updateDiscountRule(httpClient: HttpClient$f): (_id: string | null, discountRule: UpdateDiscountRule) => Promise<DiscountRule$5 & {
|
|
1246
1254
|
trigger?: {
|
|
1247
1255
|
and?: {
|
|
1248
1256
|
triggers: (any | undefined)[];
|
|
@@ -1307,11 +1315,11 @@ declare function updateDiscountRule(httpClient: HttpClient): (_id: string | null
|
|
|
1307
1315
|
status: Status$3;
|
|
1308
1316
|
usageCount: number;
|
|
1309
1317
|
}>;
|
|
1310
|
-
declare function deleteDiscountRule(httpClient: HttpClient): (discountRuleId: string) => Promise<void>;
|
|
1311
|
-
declare function queryDiscountRules(httpClient: HttpClient): () => DiscountRulesQueryBuilder;
|
|
1312
|
-
declare const onDiscountRuleCreated: EventDefinition<DiscountRuleCreatedEnvelope, "wix.ecom.discounts.v1.discount_rule_created">;
|
|
1313
|
-
declare const onDiscountRuleUpdated: EventDefinition<DiscountRuleUpdatedEnvelope, "wix.ecom.discounts.v1.discount_rule_updated">;
|
|
1314
|
-
declare const onDiscountRuleDeleted: EventDefinition<DiscountRuleDeletedEnvelope, "wix.ecom.discounts.v1.discount_rule_deleted">;
|
|
1318
|
+
declare function deleteDiscountRule(httpClient: HttpClient$f): (discountRuleId: string) => Promise<void>;
|
|
1319
|
+
declare function queryDiscountRules(httpClient: HttpClient$f): () => DiscountRulesQueryBuilder;
|
|
1320
|
+
declare const onDiscountRuleCreated: EventDefinition$b<DiscountRuleCreatedEnvelope, "wix.ecom.discounts.v1.discount_rule_created">;
|
|
1321
|
+
declare const onDiscountRuleUpdated: EventDefinition$b<DiscountRuleUpdatedEnvelope, "wix.ecom.discounts.v1.discount_rule_updated">;
|
|
1322
|
+
declare const onDiscountRuleDeleted: EventDefinition$b<DiscountRuleDeletedEnvelope, "wix.ecom.discounts.v1.discount_rule_deleted">;
|
|
1315
1323
|
|
|
1316
1324
|
type index_d$f_ActiveTimeInfo = ActiveTimeInfo;
|
|
1317
1325
|
type index_d$f_And = And;
|
|
@@ -1604,10 +1612,41 @@ interface ListInvoicesForMultipleOrdersResponseNonNullableFields {
|
|
|
1604
1612
|
}[];
|
|
1605
1613
|
}
|
|
1606
1614
|
|
|
1615
|
+
interface HttpClient$e {
|
|
1616
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$e<TResponse, TData>): Promise<HttpResponse$e<TResponse>>;
|
|
1617
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1618
|
+
}
|
|
1619
|
+
type RequestOptionsFactory$e<TResponse = any, TData = any> = (context: any) => RequestOptions$e<TResponse, TData>;
|
|
1620
|
+
type HttpResponse$e<T = any> = {
|
|
1621
|
+
data: T;
|
|
1622
|
+
status: number;
|
|
1623
|
+
statusText: string;
|
|
1624
|
+
headers: any;
|
|
1625
|
+
request?: any;
|
|
1626
|
+
};
|
|
1627
|
+
type RequestOptions$e<_TResponse = any, Data = any> = {
|
|
1628
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1629
|
+
url: string;
|
|
1630
|
+
data?: Data;
|
|
1631
|
+
params?: URLSearchParams;
|
|
1632
|
+
} & APIMetadata$e;
|
|
1633
|
+
type APIMetadata$e = {
|
|
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
|
+
|
|
1607
1646
|
declare const __metadata$e: {
|
|
1608
1647
|
PACKAGE_NAME: string;
|
|
1609
1648
|
};
|
|
1610
|
-
declare function listInvoicesForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListInvoicesForMultipleOrdersResponse$1 & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
|
|
1649
|
+
declare function listInvoicesForMultipleOrders(httpClient: HttpClient$e): (orderIds: string[]) => Promise<ListInvoicesForMultipleOrdersResponse$1 & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
|
|
1611
1650
|
|
|
1612
1651
|
type index_d$e_GenerateInvoiceWithNumberRequest = GenerateInvoiceWithNumberRequest;
|
|
1613
1652
|
type index_d$e_GenerateInvoiceWithNumberResponse = GenerateInvoiceWithNumberResponse;
|
|
@@ -1767,11 +1806,42 @@ interface GetRecommendationOptions {
|
|
|
1767
1806
|
minimumRecommendedItems?: number;
|
|
1768
1807
|
}
|
|
1769
1808
|
|
|
1809
|
+
interface HttpClient$d {
|
|
1810
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$d<TResponse, TData>): Promise<HttpResponse$d<TResponse>>;
|
|
1811
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1812
|
+
}
|
|
1813
|
+
type RequestOptionsFactory$d<TResponse = any, TData = any> = (context: any) => RequestOptions$d<TResponse, TData>;
|
|
1814
|
+
type HttpResponse$d<T = any> = {
|
|
1815
|
+
data: T;
|
|
1816
|
+
status: number;
|
|
1817
|
+
statusText: string;
|
|
1818
|
+
headers: any;
|
|
1819
|
+
request?: any;
|
|
1820
|
+
};
|
|
1821
|
+
type RequestOptions$d<_TResponse = any, Data = any> = {
|
|
1822
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1823
|
+
url: string;
|
|
1824
|
+
data?: Data;
|
|
1825
|
+
params?: URLSearchParams;
|
|
1826
|
+
} & APIMetadata$d;
|
|
1827
|
+
type APIMetadata$d = {
|
|
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
|
+
|
|
1770
1840
|
declare const __metadata$d: {
|
|
1771
1841
|
PACKAGE_NAME: string;
|
|
1772
1842
|
};
|
|
1773
|
-
declare function listAvailableAlgorithms(httpClient: HttpClient): () => Promise<ListAvailableAlgorithmsResponse & ListAvailableAlgorithmsResponseNonNullableFields>;
|
|
1774
|
-
declare function getRecommendation(httpClient: HttpClient): (algorithms: Algorithm[], options?: GetRecommendationOptions) => Promise<GetRecommendationResponse & GetRecommendationResponseNonNullableFields>;
|
|
1843
|
+
declare function listAvailableAlgorithms(httpClient: HttpClient$d): () => Promise<ListAvailableAlgorithmsResponse & ListAvailableAlgorithmsResponseNonNullableFields>;
|
|
1844
|
+
declare function getRecommendation(httpClient: HttpClient$d): (algorithms: Algorithm[], options?: GetRecommendationOptions) => Promise<GetRecommendationResponse & GetRecommendationResponseNonNullableFields>;
|
|
1775
1845
|
|
|
1776
1846
|
type index_d$d_Algorithm = Algorithm;
|
|
1777
1847
|
type index_d$d_AlgorithmConfig = AlgorithmConfig;
|
|
@@ -2470,10 +2540,49 @@ interface AbandonedCheckoutRecoveredEnvelope {
|
|
|
2470
2540
|
metadata: EventMetadata$a;
|
|
2471
2541
|
}
|
|
2472
2542
|
|
|
2543
|
+
interface HttpClient$c {
|
|
2544
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$c<TResponse, TData>): Promise<HttpResponse$c<TResponse>>;
|
|
2545
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2546
|
+
}
|
|
2547
|
+
type RequestOptionsFactory$c<TResponse = any, TData = any> = (context: any) => RequestOptions$c<TResponse, TData>;
|
|
2548
|
+
type HttpResponse$c<T = any> = {
|
|
2549
|
+
data: T;
|
|
2550
|
+
status: number;
|
|
2551
|
+
statusText: string;
|
|
2552
|
+
headers: any;
|
|
2553
|
+
request?: any;
|
|
2554
|
+
};
|
|
2555
|
+
type RequestOptions$c<_TResponse = any, Data = any> = {
|
|
2556
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2557
|
+
url: string;
|
|
2558
|
+
data?: Data;
|
|
2559
|
+
params?: URLSearchParams;
|
|
2560
|
+
} & APIMetadata$c;
|
|
2561
|
+
type APIMetadata$c = {
|
|
2562
|
+
methodFqn?: string;
|
|
2563
|
+
entityFqdn?: string;
|
|
2564
|
+
packageName?: string;
|
|
2565
|
+
};
|
|
2566
|
+
type EventDefinition$a<Payload = unknown, Type extends string = string> = {
|
|
2567
|
+
__type: 'event-definition';
|
|
2568
|
+
type: Type;
|
|
2569
|
+
isDomainEvent?: boolean;
|
|
2570
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2571
|
+
__payload: Payload;
|
|
2572
|
+
};
|
|
2573
|
+
declare function EventDefinition$a<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$a<Payload, Type>;
|
|
2574
|
+
|
|
2575
|
+
declare global {
|
|
2576
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2577
|
+
interface SymbolConstructor {
|
|
2578
|
+
readonly observable: symbol;
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2473
2582
|
declare const __metadata$c: {
|
|
2474
2583
|
PACKAGE_NAME: string;
|
|
2475
2584
|
};
|
|
2476
|
-
declare function getAbandonedCheckout(httpClient: HttpClient): (abandonedCheckoutId: string) => Promise<AbandonedCheckout & {
|
|
2585
|
+
declare function getAbandonedCheckout(httpClient: HttpClient$c): (abandonedCheckoutId: string) => Promise<AbandonedCheckout & {
|
|
2477
2586
|
_id: string;
|
|
2478
2587
|
status: Status$2;
|
|
2479
2588
|
buyerInfo?: {
|
|
@@ -2505,8 +2614,8 @@ declare function getAbandonedCheckout(httpClient: HttpClient): (abandonedCheckou
|
|
|
2505
2614
|
formattedConvertedAmount: string;
|
|
2506
2615
|
} | undefined;
|
|
2507
2616
|
}>;
|
|
2508
|
-
declare const onAbandonedCheckoutCreated: EventDefinition<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
2509
|
-
declare const onAbandonedCheckoutRecovered: EventDefinition<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2617
|
+
declare const onAbandonedCheckoutCreated: EventDefinition$a<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
2618
|
+
declare const onAbandonedCheckoutRecovered: EventDefinition$a<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2510
2619
|
|
|
2511
2620
|
type index_d$c_AbandonedCheckout = AbandonedCheckout;
|
|
2512
2621
|
type index_d$c_AbandonedCheckoutCreatedEnvelope = AbandonedCheckoutCreatedEnvelope;
|
|
@@ -3164,10 +3273,49 @@ interface ReportItemsBackInStockOptions {
|
|
|
3164
3273
|
extraAutomationTemplateParameters?: Record<string, string>;
|
|
3165
3274
|
}
|
|
3166
3275
|
|
|
3276
|
+
interface HttpClient$b {
|
|
3277
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$b<TResponse, TData>): Promise<HttpResponse$b<TResponse>>;
|
|
3278
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3279
|
+
}
|
|
3280
|
+
type RequestOptionsFactory$b<TResponse = any, TData = any> = (context: any) => RequestOptions$b<TResponse, TData>;
|
|
3281
|
+
type HttpResponse$b<T = any> = {
|
|
3282
|
+
data: T;
|
|
3283
|
+
status: number;
|
|
3284
|
+
statusText: string;
|
|
3285
|
+
headers: any;
|
|
3286
|
+
request?: any;
|
|
3287
|
+
};
|
|
3288
|
+
type RequestOptions$b<_TResponse = any, Data = any> = {
|
|
3289
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3290
|
+
url: string;
|
|
3291
|
+
data?: Data;
|
|
3292
|
+
params?: URLSearchParams;
|
|
3293
|
+
} & APIMetadata$b;
|
|
3294
|
+
type APIMetadata$b = {
|
|
3295
|
+
methodFqn?: string;
|
|
3296
|
+
entityFqdn?: string;
|
|
3297
|
+
packageName?: string;
|
|
3298
|
+
};
|
|
3299
|
+
type EventDefinition$9<Payload = unknown, Type extends string = string> = {
|
|
3300
|
+
__type: 'event-definition';
|
|
3301
|
+
type: Type;
|
|
3302
|
+
isDomainEvent?: boolean;
|
|
3303
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3304
|
+
__payload: Payload;
|
|
3305
|
+
};
|
|
3306
|
+
declare function EventDefinition$9<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$9<Payload, Type>;
|
|
3307
|
+
|
|
3308
|
+
declare global {
|
|
3309
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3310
|
+
interface SymbolConstructor {
|
|
3311
|
+
readonly observable: symbol;
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3167
3315
|
declare const __metadata$b: {
|
|
3168
3316
|
PACKAGE_NAME: string;
|
|
3169
3317
|
};
|
|
3170
|
-
declare function createBackInStockNotificationRequest(httpClient: HttpClient): (request: BackInStockNotificationRequest, itemDetails: BackInStockItemDetails) => Promise<BackInStockNotificationRequest & {
|
|
3318
|
+
declare function createBackInStockNotificationRequest(httpClient: HttpClient$b): (request: BackInStockNotificationRequest, itemDetails: BackInStockItemDetails) => Promise<BackInStockNotificationRequest & {
|
|
3171
3319
|
catalogReference?: {
|
|
3172
3320
|
catalogItemId: string;
|
|
3173
3321
|
appId: string;
|
|
@@ -3175,7 +3323,7 @@ declare function createBackInStockNotificationRequest(httpClient: HttpClient): (
|
|
|
3175
3323
|
email: string;
|
|
3176
3324
|
status: Status$1;
|
|
3177
3325
|
}>;
|
|
3178
|
-
declare function getBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<BackInStockNotificationRequest & {
|
|
3326
|
+
declare function getBackInStockNotificationRequest(httpClient: HttpClient$b): (_id: string) => Promise<BackInStockNotificationRequest & {
|
|
3179
3327
|
catalogReference?: {
|
|
3180
3328
|
catalogItemId: string;
|
|
3181
3329
|
appId: string;
|
|
@@ -3183,14 +3331,14 @@ declare function getBackInStockNotificationRequest(httpClient: HttpClient): (_id
|
|
|
3183
3331
|
email: string;
|
|
3184
3332
|
status: Status$1;
|
|
3185
3333
|
}>;
|
|
3186
|
-
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
3187
|
-
declare function markAsNotificationSent(httpClient: HttpClient): (_id: string) => Promise<MarkAsNotificationSentResponse & MarkAsNotificationSentResponseNonNullableFields>;
|
|
3188
|
-
declare function queryBackInStockNotificationRequests(httpClient: HttpClient): () => RequestsQueryBuilder;
|
|
3189
|
-
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient): (catalogReferences: CatalogReference$5[]) => Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse & GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields>;
|
|
3190
|
-
declare function reportItemsBackInStock(httpClient: HttpClient): (itemDetails: BackInStockItemDetails, options?: ReportItemsBackInStockOptions) => Promise<void>;
|
|
3191
|
-
declare const onBackInStockNotificationRequestCreated: EventDefinition<BackInStockNotificationRequestCreatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_created">;
|
|
3192
|
-
declare const onBackInStockNotificationRequestDeleted: EventDefinition<BackInStockNotificationRequestDeletedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_deleted">;
|
|
3193
|
-
declare const onBackInStockNotificationRequestUpdated: EventDefinition<BackInStockNotificationRequestUpdatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_updated">;
|
|
3334
|
+
declare function deleteBackInStockNotificationRequest(httpClient: HttpClient$b): (_id: string) => Promise<void>;
|
|
3335
|
+
declare function markAsNotificationSent(httpClient: HttpClient$b): (_id: string) => Promise<MarkAsNotificationSentResponse & MarkAsNotificationSentResponseNonNullableFields>;
|
|
3336
|
+
declare function queryBackInStockNotificationRequests(httpClient: HttpClient$b): () => RequestsQueryBuilder;
|
|
3337
|
+
declare function getBackInStockNotificationRequestsCountByCatalogReferences(httpClient: HttpClient$b): (catalogReferences: CatalogReference$5[]) => Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse & GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields>;
|
|
3338
|
+
declare function reportItemsBackInStock(httpClient: HttpClient$b): (itemDetails: BackInStockItemDetails, options?: ReportItemsBackInStockOptions) => Promise<void>;
|
|
3339
|
+
declare const onBackInStockNotificationRequestCreated: EventDefinition$9<BackInStockNotificationRequestCreatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_created">;
|
|
3340
|
+
declare const onBackInStockNotificationRequestDeleted: EventDefinition$9<BackInStockNotificationRequestDeletedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_deleted">;
|
|
3341
|
+
declare const onBackInStockNotificationRequestUpdated: EventDefinition$9<BackInStockNotificationRequestUpdatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_updated">;
|
|
3194
3342
|
|
|
3195
3343
|
type index_d$b_BackInStockItemDetails = BackInStockItemDetails;
|
|
3196
3344
|
type index_d$b_BackInStockNotificationRequest = BackInStockNotificationRequest;
|
|
@@ -3303,12 +3451,43 @@ interface GetSettingsResponseNonNullableFields {
|
|
|
3303
3451
|
};
|
|
3304
3452
|
}
|
|
3305
3453
|
|
|
3454
|
+
interface HttpClient$a {
|
|
3455
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$a<TResponse, TData>): Promise<HttpResponse$a<TResponse>>;
|
|
3456
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3457
|
+
}
|
|
3458
|
+
type RequestOptionsFactory$a<TResponse = any, TData = any> = (context: any) => RequestOptions$a<TResponse, TData>;
|
|
3459
|
+
type HttpResponse$a<T = any> = {
|
|
3460
|
+
data: T;
|
|
3461
|
+
status: number;
|
|
3462
|
+
statusText: string;
|
|
3463
|
+
headers: any;
|
|
3464
|
+
request?: any;
|
|
3465
|
+
};
|
|
3466
|
+
type RequestOptions$a<_TResponse = any, Data = any> = {
|
|
3467
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3468
|
+
url: string;
|
|
3469
|
+
data?: Data;
|
|
3470
|
+
params?: URLSearchParams;
|
|
3471
|
+
} & APIMetadata$a;
|
|
3472
|
+
type APIMetadata$a = {
|
|
3473
|
+
methodFqn?: string;
|
|
3474
|
+
entityFqdn?: string;
|
|
3475
|
+
packageName?: string;
|
|
3476
|
+
};
|
|
3477
|
+
|
|
3478
|
+
declare global {
|
|
3479
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3480
|
+
interface SymbolConstructor {
|
|
3481
|
+
readonly observable: symbol;
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3306
3485
|
declare const __metadata$a: {
|
|
3307
3486
|
PACKAGE_NAME: string;
|
|
3308
3487
|
};
|
|
3309
|
-
declare function startCollectingRequests(httpClient: HttpClient): (appId: string) => Promise<StartCollectingRequestsResponse & StartCollectingRequestsResponseNonNullableFields>;
|
|
3310
|
-
declare function stopCollectingRequests(httpClient: HttpClient): (appId: string) => Promise<StopCollectingRequestsResponse & StopCollectingRequestsResponseNonNullableFields>;
|
|
3311
|
-
declare function getSettings(httpClient: HttpClient): () => Promise<GetSettingsResponse & GetSettingsResponseNonNullableFields>;
|
|
3488
|
+
declare function startCollectingRequests(httpClient: HttpClient$a): (appId: string) => Promise<StartCollectingRequestsResponse & StartCollectingRequestsResponseNonNullableFields>;
|
|
3489
|
+
declare function stopCollectingRequests(httpClient: HttpClient$a): (appId: string) => Promise<StopCollectingRequestsResponse & StopCollectingRequestsResponseNonNullableFields>;
|
|
3490
|
+
declare function getSettings(httpClient: HttpClient$a): () => Promise<GetSettingsResponse & GetSettingsResponseNonNullableFields>;
|
|
3312
3491
|
|
|
3313
3492
|
type index_d$a_BackInStockCollectionState = BackInStockCollectionState;
|
|
3314
3493
|
type index_d$a_BackInStockSettings = BackInStockSettings;
|
|
@@ -6906,10 +7085,49 @@ interface EstimateTotalsOptions {
|
|
|
6906
7085
|
selectedMemberships?: SelectedMemberships$3;
|
|
6907
7086
|
}
|
|
6908
7087
|
|
|
7088
|
+
interface HttpClient$9 {
|
|
7089
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$9<TResponse, TData>): Promise<HttpResponse$9<TResponse>>;
|
|
7090
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
7091
|
+
}
|
|
7092
|
+
type RequestOptionsFactory$9<TResponse = any, TData = any> = (context: any) => RequestOptions$9<TResponse, TData>;
|
|
7093
|
+
type HttpResponse$9<T = any> = {
|
|
7094
|
+
data: T;
|
|
7095
|
+
status: number;
|
|
7096
|
+
statusText: string;
|
|
7097
|
+
headers: any;
|
|
7098
|
+
request?: any;
|
|
7099
|
+
};
|
|
7100
|
+
type RequestOptions$9<_TResponse = any, Data = any> = {
|
|
7101
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
7102
|
+
url: string;
|
|
7103
|
+
data?: Data;
|
|
7104
|
+
params?: URLSearchParams;
|
|
7105
|
+
} & APIMetadata$9;
|
|
7106
|
+
type APIMetadata$9 = {
|
|
7107
|
+
methodFqn?: string;
|
|
7108
|
+
entityFqdn?: string;
|
|
7109
|
+
packageName?: string;
|
|
7110
|
+
};
|
|
7111
|
+
type EventDefinition$8<Payload = unknown, Type extends string = string> = {
|
|
7112
|
+
__type: 'event-definition';
|
|
7113
|
+
type: Type;
|
|
7114
|
+
isDomainEvent?: boolean;
|
|
7115
|
+
transformations?: (envelope: unknown) => Payload;
|
|
7116
|
+
__payload: Payload;
|
|
7117
|
+
};
|
|
7118
|
+
declare function EventDefinition$8<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$8<Payload, Type>;
|
|
7119
|
+
|
|
7120
|
+
declare global {
|
|
7121
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
7122
|
+
interface SymbolConstructor {
|
|
7123
|
+
readonly observable: symbol;
|
|
7124
|
+
}
|
|
7125
|
+
}
|
|
7126
|
+
|
|
6909
7127
|
declare const __metadata$9: {
|
|
6910
7128
|
PACKAGE_NAME: string;
|
|
6911
7129
|
};
|
|
6912
|
-
declare function createCart(httpClient: HttpClient): (options?: CreateCartOptions) => Promise<Cart$1 & {
|
|
7130
|
+
declare function createCart(httpClient: HttpClient$9): (options?: CreateCartOptions) => Promise<Cart$1 & {
|
|
6913
7131
|
lineItems: {
|
|
6914
7132
|
quantity: number;
|
|
6915
7133
|
catalogReference?: {
|
|
@@ -7029,7 +7247,7 @@ declare function createCart(httpClient: HttpClient): (options?: CreateCartOption
|
|
|
7029
7247
|
code: string;
|
|
7030
7248
|
} | undefined;
|
|
7031
7249
|
}>;
|
|
7032
|
-
declare function updateCart(httpClient: HttpClient): (_id: string | null, options?: UpdateCartOptions) => Promise<Cart$1 & {
|
|
7250
|
+
declare function updateCart(httpClient: HttpClient$9): (_id: string | null, options?: UpdateCartOptions) => Promise<Cart$1 & {
|
|
7033
7251
|
lineItems: {
|
|
7034
7252
|
quantity: number;
|
|
7035
7253
|
catalogReference?: {
|
|
@@ -7149,7 +7367,7 @@ declare function updateCart(httpClient: HttpClient): (_id: string | null, option
|
|
|
7149
7367
|
code: string;
|
|
7150
7368
|
} | undefined;
|
|
7151
7369
|
}>;
|
|
7152
|
-
declare function getCart(httpClient: HttpClient): (_id: string) => Promise<Cart$1 & {
|
|
7370
|
+
declare function getCart(httpClient: HttpClient$9): (_id: string) => Promise<Cart$1 & {
|
|
7153
7371
|
lineItems: {
|
|
7154
7372
|
quantity: number;
|
|
7155
7373
|
catalogReference?: {
|
|
@@ -7269,16 +7487,16 @@ declare function getCart(httpClient: HttpClient): (_id: string) => Promise<Cart$
|
|
|
7269
7487
|
code: string;
|
|
7270
7488
|
} | undefined;
|
|
7271
7489
|
}>;
|
|
7272
|
-
declare function addToCart(httpClient: HttpClient): (_id: string, options?: AddToCartOptions) => Promise<AddToCartResponse$1 & AddToCartResponseNonNullableFields$1>;
|
|
7273
|
-
declare function removeLineItems$1(httpClient: HttpClient): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse$2 & RemoveLineItemsResponseNonNullableFields$2>;
|
|
7274
|
-
declare function createCheckout$1(httpClient: HttpClient): (_id: string, options?: CreateCheckoutOptions$1) => Promise<CreateCheckoutResponse$2 & CreateCheckoutResponseNonNullableFields$2>;
|
|
7275
|
-
declare function removeCoupon$1(httpClient: HttpClient): (_id: string) => Promise<RemoveCouponResponse$2 & RemoveCouponResponseNonNullableFields$2>;
|
|
7276
|
-
declare function updateLineItemsQuantity$1(httpClient: HttpClient): (_id: string, lineItems: LineItemQuantityUpdate$2[]) => Promise<UpdateLineItemsQuantityResponse$2 & UpdateLineItemsQuantityResponseNonNullableFields$2>;
|
|
7277
|
-
declare function estimateTotals(httpClient: HttpClient): (_id: string, options?: EstimateTotalsOptions) => Promise<EstimateTotalsResponse$1 & EstimateTotalsResponseNonNullableFields$1>;
|
|
7278
|
-
declare function deleteCart(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
7279
|
-
declare const onCartUpdated$1: EventDefinition<CartUpdatedEnvelope$1, "wix.ecom.v1.cart_updated">;
|
|
7280
|
-
declare const onCartDeleted$1: EventDefinition<CartDeletedEnvelope$1, "wix.ecom.v1.cart_deleted">;
|
|
7281
|
-
declare const onCartCreated$1: EventDefinition<CartCreatedEnvelope$1, "wix.ecom.v1.cart_created">;
|
|
7490
|
+
declare function addToCart(httpClient: HttpClient$9): (_id: string, options?: AddToCartOptions) => Promise<AddToCartResponse$1 & AddToCartResponseNonNullableFields$1>;
|
|
7491
|
+
declare function removeLineItems$1(httpClient: HttpClient$9): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse$2 & RemoveLineItemsResponseNonNullableFields$2>;
|
|
7492
|
+
declare function createCheckout$1(httpClient: HttpClient$9): (_id: string, options?: CreateCheckoutOptions$1) => Promise<CreateCheckoutResponse$2 & CreateCheckoutResponseNonNullableFields$2>;
|
|
7493
|
+
declare function removeCoupon$1(httpClient: HttpClient$9): (_id: string) => Promise<RemoveCouponResponse$2 & RemoveCouponResponseNonNullableFields$2>;
|
|
7494
|
+
declare function updateLineItemsQuantity$1(httpClient: HttpClient$9): (_id: string, lineItems: LineItemQuantityUpdate$2[]) => Promise<UpdateLineItemsQuantityResponse$2 & UpdateLineItemsQuantityResponseNonNullableFields$2>;
|
|
7495
|
+
declare function estimateTotals(httpClient: HttpClient$9): (_id: string, options?: EstimateTotalsOptions) => Promise<EstimateTotalsResponse$1 & EstimateTotalsResponseNonNullableFields$1>;
|
|
7496
|
+
declare function deleteCart(httpClient: HttpClient$9): (_id: string) => Promise<void>;
|
|
7497
|
+
declare const onCartUpdated$1: EventDefinition$8<CartUpdatedEnvelope$1, "wix.ecom.v1.cart_updated">;
|
|
7498
|
+
declare const onCartDeleted$1: EventDefinition$8<CartDeletedEnvelope$1, "wix.ecom.v1.cart_deleted">;
|
|
7499
|
+
declare const onCartCreated$1: EventDefinition$8<CartCreatedEnvelope$1, "wix.ecom.v1.cart_created">;
|
|
7282
7500
|
|
|
7283
7501
|
type index_d$9_AddToCartOptions = AddToCartOptions;
|
|
7284
7502
|
type index_d$9_CreateCartOptions = CreateCartOptions;
|
|
@@ -10783,10 +11001,49 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
10783
11001
|
selectedMemberships?: SelectedMemberships$2;
|
|
10784
11002
|
}
|
|
10785
11003
|
|
|
11004
|
+
interface HttpClient$8 {
|
|
11005
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$8<TResponse, TData>): Promise<HttpResponse$8<TResponse>>;
|
|
11006
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
11007
|
+
}
|
|
11008
|
+
type RequestOptionsFactory$8<TResponse = any, TData = any> = (context: any) => RequestOptions$8<TResponse, TData>;
|
|
11009
|
+
type HttpResponse$8<T = any> = {
|
|
11010
|
+
data: T;
|
|
11011
|
+
status: number;
|
|
11012
|
+
statusText: string;
|
|
11013
|
+
headers: any;
|
|
11014
|
+
request?: any;
|
|
11015
|
+
};
|
|
11016
|
+
type RequestOptions$8<_TResponse = any, Data = any> = {
|
|
11017
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
11018
|
+
url: string;
|
|
11019
|
+
data?: Data;
|
|
11020
|
+
params?: URLSearchParams;
|
|
11021
|
+
} & APIMetadata$8;
|
|
11022
|
+
type APIMetadata$8 = {
|
|
11023
|
+
methodFqn?: string;
|
|
11024
|
+
entityFqdn?: string;
|
|
11025
|
+
packageName?: string;
|
|
11026
|
+
};
|
|
11027
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
11028
|
+
__type: 'event-definition';
|
|
11029
|
+
type: Type;
|
|
11030
|
+
isDomainEvent?: boolean;
|
|
11031
|
+
transformations?: (envelope: unknown) => Payload;
|
|
11032
|
+
__payload: Payload;
|
|
11033
|
+
};
|
|
11034
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
11035
|
+
|
|
11036
|
+
declare global {
|
|
11037
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
11038
|
+
interface SymbolConstructor {
|
|
11039
|
+
readonly observable: symbol;
|
|
11040
|
+
}
|
|
11041
|
+
}
|
|
11042
|
+
|
|
10786
11043
|
declare const __metadata$8: {
|
|
10787
11044
|
PACKAGE_NAME: string;
|
|
10788
11045
|
};
|
|
10789
|
-
declare function getCurrentCart(httpClient: HttpClient): () => Promise<Cart & {
|
|
11046
|
+
declare function getCurrentCart(httpClient: HttpClient$8): () => Promise<Cart & {
|
|
10790
11047
|
lineItems: {
|
|
10791
11048
|
quantity: number;
|
|
10792
11049
|
catalogReference?: {
|
|
@@ -10906,7 +11163,7 @@ declare function getCurrentCart(httpClient: HttpClient): () => Promise<Cart & {
|
|
|
10906
11163
|
code: string;
|
|
10907
11164
|
} | undefined;
|
|
10908
11165
|
}>;
|
|
10909
|
-
declare function updateCurrentCart(httpClient: HttpClient): (options?: UpdateCurrentCartOptions) => Promise<Cart & {
|
|
11166
|
+
declare function updateCurrentCart(httpClient: HttpClient$8): (options?: UpdateCurrentCartOptions) => Promise<Cart & {
|
|
10910
11167
|
lineItems: {
|
|
10911
11168
|
quantity: number;
|
|
10912
11169
|
catalogReference?: {
|
|
@@ -11026,16 +11283,16 @@ declare function updateCurrentCart(httpClient: HttpClient): (options?: UpdateCur
|
|
|
11026
11283
|
code: string;
|
|
11027
11284
|
} | undefined;
|
|
11028
11285
|
}>;
|
|
11029
|
-
declare function addToCurrentCart(httpClient: HttpClient): (options?: AddToCurrentCartOptions) => Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
|
|
11030
|
-
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient): (lineItemIds: string[]) => Promise<RemoveLineItemsResponse$1 & RemoveLineItemsResponseNonNullableFields$1>;
|
|
11031
|
-
declare function createCheckoutFromCurrentCart(httpClient: HttpClient): (options?: CreateCheckoutFromCurrentCartOptions) => Promise<CreateCheckoutResponse$1 & CreateCheckoutResponseNonNullableFields$1>;
|
|
11032
|
-
declare function removeCouponFromCurrentCart(httpClient: HttpClient): () => Promise<RemoveCouponResponse$1 & RemoveCouponResponseNonNullableFields$1>;
|
|
11033
|
-
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient): (lineItems: LineItemQuantityUpdate$1[]) => Promise<UpdateLineItemsQuantityResponse$1 & UpdateLineItemsQuantityResponseNonNullableFields$1>;
|
|
11034
|
-
declare function estimateCurrentCartTotals(httpClient: HttpClient): (options?: EstimateCurrentCartTotalsOptions) => Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
|
|
11035
|
-
declare function deleteCurrentCart(httpClient: HttpClient): () => Promise<void>;
|
|
11036
|
-
declare const onCartUpdated: EventDefinition<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
11037
|
-
declare const onCartDeleted: EventDefinition<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
11038
|
-
declare const onCartCreated: EventDefinition<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
11286
|
+
declare function addToCurrentCart(httpClient: HttpClient$8): (options?: AddToCurrentCartOptions) => Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
|
|
11287
|
+
declare function removeLineItemsFromCurrentCart(httpClient: HttpClient$8): (lineItemIds: string[]) => Promise<RemoveLineItemsResponse$1 & RemoveLineItemsResponseNonNullableFields$1>;
|
|
11288
|
+
declare function createCheckoutFromCurrentCart(httpClient: HttpClient$8): (options?: CreateCheckoutFromCurrentCartOptions) => Promise<CreateCheckoutResponse$1 & CreateCheckoutResponseNonNullableFields$1>;
|
|
11289
|
+
declare function removeCouponFromCurrentCart(httpClient: HttpClient$8): () => Promise<RemoveCouponResponse$1 & RemoveCouponResponseNonNullableFields$1>;
|
|
11290
|
+
declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient$8): (lineItems: LineItemQuantityUpdate$1[]) => Promise<UpdateLineItemsQuantityResponse$1 & UpdateLineItemsQuantityResponseNonNullableFields$1>;
|
|
11291
|
+
declare function estimateCurrentCartTotals(httpClient: HttpClient$8): (options?: EstimateCurrentCartTotalsOptions) => Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
|
|
11292
|
+
declare function deleteCurrentCart(httpClient: HttpClient$8): () => Promise<void>;
|
|
11293
|
+
declare const onCartUpdated: EventDefinition$7<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
11294
|
+
declare const onCartDeleted: EventDefinition$7<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
11295
|
+
declare const onCartCreated: EventDefinition$7<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
11039
11296
|
|
|
11040
11297
|
type index_d$8_AddToCartRequest = AddToCartRequest;
|
|
11041
11298
|
type index_d$8_AddToCartResponse = AddToCartResponse;
|
|
@@ -19945,10 +20202,49 @@ interface AddToCheckoutOptions {
|
|
|
19945
20202
|
lineItems?: LineItem$3[];
|
|
19946
20203
|
}
|
|
19947
20204
|
|
|
20205
|
+
interface HttpClient$7 {
|
|
20206
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
20207
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
20208
|
+
}
|
|
20209
|
+
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
20210
|
+
type HttpResponse$7<T = any> = {
|
|
20211
|
+
data: T;
|
|
20212
|
+
status: number;
|
|
20213
|
+
statusText: string;
|
|
20214
|
+
headers: any;
|
|
20215
|
+
request?: any;
|
|
20216
|
+
};
|
|
20217
|
+
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
20218
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
20219
|
+
url: string;
|
|
20220
|
+
data?: Data;
|
|
20221
|
+
params?: URLSearchParams;
|
|
20222
|
+
} & APIMetadata$7;
|
|
20223
|
+
type APIMetadata$7 = {
|
|
20224
|
+
methodFqn?: string;
|
|
20225
|
+
entityFqdn?: string;
|
|
20226
|
+
packageName?: string;
|
|
20227
|
+
};
|
|
20228
|
+
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
20229
|
+
__type: 'event-definition';
|
|
20230
|
+
type: Type;
|
|
20231
|
+
isDomainEvent?: boolean;
|
|
20232
|
+
transformations?: (envelope: unknown) => Payload;
|
|
20233
|
+
__payload: Payload;
|
|
20234
|
+
};
|
|
20235
|
+
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
20236
|
+
|
|
20237
|
+
declare global {
|
|
20238
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
20239
|
+
interface SymbolConstructor {
|
|
20240
|
+
readonly observable: symbol;
|
|
20241
|
+
}
|
|
20242
|
+
}
|
|
20243
|
+
|
|
19948
20244
|
declare const __metadata$7: {
|
|
19949
20245
|
PACKAGE_NAME: string;
|
|
19950
20246
|
};
|
|
19951
|
-
declare function createCheckout(httpClient: HttpClient): (options?: CreateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20247
|
+
declare function createCheckout(httpClient: HttpClient$7): (options?: CreateCheckoutOptions) => Promise<Checkout$1 & {
|
|
19952
20248
|
lineItems: {
|
|
19953
20249
|
quantity: number;
|
|
19954
20250
|
catalogReference?: {
|
|
@@ -20650,9 +20946,9 @@ declare function createCheckout(httpClient: HttpClient): (options?: CreateChecko
|
|
|
20650
20946
|
disabledManualPayment: boolean;
|
|
20651
20947
|
} | undefined;
|
|
20652
20948
|
}>;
|
|
20653
|
-
declare function getCheckout(httpClient: HttpClient): (_id: string) => Promise<GetCheckoutResponse & GetCheckoutResponseNonNullableFields>;
|
|
20654
|
-
declare function getCheckoutUrl(httpClient: HttpClient): (_id: string) => Promise<GetCheckoutURLResponse & GetCheckoutURLResponseNonNullableFields>;
|
|
20655
|
-
declare function updateCheckout(httpClient: HttpClient): (_id: string | null, checkout: UpdateCheckout, options?: UpdateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20949
|
+
declare function getCheckout(httpClient: HttpClient$7): (_id: string) => Promise<GetCheckoutResponse & GetCheckoutResponseNonNullableFields>;
|
|
20950
|
+
declare function getCheckoutUrl(httpClient: HttpClient$7): (_id: string) => Promise<GetCheckoutURLResponse & GetCheckoutURLResponseNonNullableFields>;
|
|
20951
|
+
declare function updateCheckout(httpClient: HttpClient$7): (_id: string | null, checkout: UpdateCheckout, options?: UpdateCheckoutOptions) => Promise<Checkout$1 & {
|
|
20656
20952
|
lineItems: {
|
|
20657
20953
|
quantity: number;
|
|
20658
20954
|
catalogReference?: {
|
|
@@ -21354,17 +21650,17 @@ declare function updateCheckout(httpClient: HttpClient): (_id: string | null, ch
|
|
|
21354
21650
|
disabledManualPayment: boolean;
|
|
21355
21651
|
} | undefined;
|
|
21356
21652
|
}>;
|
|
21357
|
-
declare function removeCoupon(httpClient: HttpClient): (_id: string) => Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
|
|
21358
|
-
declare function removeGiftCard(httpClient: HttpClient): (_id: string) => Promise<RemoveGiftCardResponse & RemoveGiftCardResponseNonNullableFields>;
|
|
21359
|
-
declare function removeOverrideCheckoutUrl(httpClient: HttpClient): (_id: string) => Promise<RemoveOverrideCheckoutUrlResponse & RemoveOverrideCheckoutUrlResponseNonNullableFields>;
|
|
21360
|
-
declare function addToCheckout(httpClient: HttpClient): (_id: string, options?: AddToCheckoutOptions) => Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
|
|
21361
|
-
declare function removeLineItems(httpClient: HttpClient): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
|
|
21362
|
-
declare function createOrder$1(httpClient: HttpClient): (_id: string) => Promise<CreateOrderResponse$1 & CreateOrderResponseNonNullableFields$1>;
|
|
21363
|
-
declare function markCheckoutAsCompleted(httpClient: HttpClient): (_id: string) => Promise<void>;
|
|
21364
|
-
declare function updateLineItemsQuantity(httpClient: HttpClient): (_id: string, lineItems: LineItemQuantityUpdate[]) => Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
21365
|
-
declare const onCheckoutCreated: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
21366
|
-
declare const onCheckoutUpdated: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
21367
|
-
declare const onCheckoutCompleted: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
21653
|
+
declare function removeCoupon(httpClient: HttpClient$7): (_id: string) => Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
|
|
21654
|
+
declare function removeGiftCard(httpClient: HttpClient$7): (_id: string) => Promise<RemoveGiftCardResponse & RemoveGiftCardResponseNonNullableFields>;
|
|
21655
|
+
declare function removeOverrideCheckoutUrl(httpClient: HttpClient$7): (_id: string) => Promise<RemoveOverrideCheckoutUrlResponse & RemoveOverrideCheckoutUrlResponseNonNullableFields>;
|
|
21656
|
+
declare function addToCheckout(httpClient: HttpClient$7): (_id: string, options?: AddToCheckoutOptions) => Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
|
|
21657
|
+
declare function removeLineItems(httpClient: HttpClient$7): (_id: string, lineItemIds: string[]) => Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
|
|
21658
|
+
declare function createOrder$1(httpClient: HttpClient$7): (_id: string) => Promise<CreateOrderResponse$1 & CreateOrderResponseNonNullableFields$1>;
|
|
21659
|
+
declare function markCheckoutAsCompleted(httpClient: HttpClient$7): (_id: string) => Promise<void>;
|
|
21660
|
+
declare function updateLineItemsQuantity(httpClient: HttpClient$7): (_id: string, lineItems: LineItemQuantityUpdate[]) => Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
21661
|
+
declare const onCheckoutCreated: EventDefinition$6<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
21662
|
+
declare const onCheckoutUpdated: EventDefinition$6<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
21663
|
+
declare const onCheckoutCompleted: EventDefinition$6<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
21368
21664
|
|
|
21369
21665
|
type index_d$7_AddToCheckoutOptions = AddToCheckoutOptions;
|
|
21370
21666
|
type index_d$7_AddToCheckoutRequest = AddToCheckoutRequest;
|
|
@@ -21809,12 +22105,51 @@ interface CheckoutSettingsUpdatedEnvelope {
|
|
|
21809
22105
|
metadata: EventMetadata$5;
|
|
21810
22106
|
}
|
|
21811
22107
|
|
|
22108
|
+
interface HttpClient$6 {
|
|
22109
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
22110
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
22111
|
+
}
|
|
22112
|
+
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
22113
|
+
type HttpResponse$6<T = any> = {
|
|
22114
|
+
data: T;
|
|
22115
|
+
status: number;
|
|
22116
|
+
statusText: string;
|
|
22117
|
+
headers: any;
|
|
22118
|
+
request?: any;
|
|
22119
|
+
};
|
|
22120
|
+
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
22121
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
22122
|
+
url: string;
|
|
22123
|
+
data?: Data;
|
|
22124
|
+
params?: URLSearchParams;
|
|
22125
|
+
} & APIMetadata$6;
|
|
22126
|
+
type APIMetadata$6 = {
|
|
22127
|
+
methodFqn?: string;
|
|
22128
|
+
entityFqdn?: string;
|
|
22129
|
+
packageName?: string;
|
|
22130
|
+
};
|
|
22131
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
22132
|
+
__type: 'event-definition';
|
|
22133
|
+
type: Type;
|
|
22134
|
+
isDomainEvent?: boolean;
|
|
22135
|
+
transformations?: (envelope: unknown) => Payload;
|
|
22136
|
+
__payload: Payload;
|
|
22137
|
+
};
|
|
22138
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
22139
|
+
|
|
22140
|
+
declare global {
|
|
22141
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
22142
|
+
interface SymbolConstructor {
|
|
22143
|
+
readonly observable: symbol;
|
|
22144
|
+
}
|
|
22145
|
+
}
|
|
22146
|
+
|
|
21812
22147
|
declare const __metadata$6: {
|
|
21813
22148
|
PACKAGE_NAME: string;
|
|
21814
22149
|
};
|
|
21815
|
-
declare function getCheckoutSettings(httpClient: HttpClient): () => Promise<GetCheckoutSettingsResponse>;
|
|
21816
|
-
declare function updateCheckoutSettings(httpClient: HttpClient): (checkoutSettings: CheckoutSettings) => Promise<UpdateCheckoutSettingsResponse>;
|
|
21817
|
-
declare const onCheckoutSettingsUpdated: EventDefinition<CheckoutSettingsUpdatedEnvelope, "wix.ecom.v1.checkout_settings_updated">;
|
|
22150
|
+
declare function getCheckoutSettings(httpClient: HttpClient$6): () => Promise<GetCheckoutSettingsResponse>;
|
|
22151
|
+
declare function updateCheckoutSettings(httpClient: HttpClient$6): (checkoutSettings: CheckoutSettings) => Promise<UpdateCheckoutSettingsResponse>;
|
|
22152
|
+
declare const onCheckoutSettingsUpdated: EventDefinition$5<CheckoutSettingsUpdatedEnvelope, "wix.ecom.v1.checkout_settings_updated">;
|
|
21818
22153
|
|
|
21819
22154
|
type index_d$6_Alignment = Alignment;
|
|
21820
22155
|
declare const index_d$6_Alignment: typeof Alignment;
|
|
@@ -23993,10 +24328,49 @@ interface CheckoutTemplatesQueryBuilder {
|
|
|
23993
24328
|
find: () => Promise<CheckoutTemplatesQueryResult>;
|
|
23994
24329
|
}
|
|
23995
24330
|
|
|
24331
|
+
interface HttpClient$5 {
|
|
24332
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
24333
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
24334
|
+
}
|
|
24335
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
24336
|
+
type HttpResponse$5<T = any> = {
|
|
24337
|
+
data: T;
|
|
24338
|
+
status: number;
|
|
24339
|
+
statusText: string;
|
|
24340
|
+
headers: any;
|
|
24341
|
+
request?: any;
|
|
24342
|
+
};
|
|
24343
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
24344
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
24345
|
+
url: string;
|
|
24346
|
+
data?: Data;
|
|
24347
|
+
params?: URLSearchParams;
|
|
24348
|
+
} & APIMetadata$5;
|
|
24349
|
+
type APIMetadata$5 = {
|
|
24350
|
+
methodFqn?: string;
|
|
24351
|
+
entityFqdn?: string;
|
|
24352
|
+
packageName?: string;
|
|
24353
|
+
};
|
|
24354
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
24355
|
+
__type: 'event-definition';
|
|
24356
|
+
type: Type;
|
|
24357
|
+
isDomainEvent?: boolean;
|
|
24358
|
+
transformations?: (envelope: unknown) => Payload;
|
|
24359
|
+
__payload: Payload;
|
|
24360
|
+
};
|
|
24361
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
24362
|
+
|
|
24363
|
+
declare global {
|
|
24364
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
24365
|
+
interface SymbolConstructor {
|
|
24366
|
+
readonly observable: symbol;
|
|
24367
|
+
}
|
|
24368
|
+
}
|
|
24369
|
+
|
|
23996
24370
|
declare const __metadata$5: {
|
|
23997
24371
|
PACKAGE_NAME: string;
|
|
23998
24372
|
};
|
|
23999
|
-
declare function createCheckoutTemplate(httpClient: HttpClient): (checkoutTemplate: CheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24373
|
+
declare function createCheckoutTemplate(httpClient: HttpClient$5): (checkoutTemplate: CheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24000
24374
|
status: Status;
|
|
24001
24375
|
customization?: {
|
|
24002
24376
|
webClient?: {
|
|
@@ -24035,7 +24409,7 @@ declare function createCheckoutTemplate(httpClient: HttpClient): (checkoutTempla
|
|
|
24035
24409
|
} | undefined;
|
|
24036
24410
|
}[];
|
|
24037
24411
|
}>;
|
|
24038
|
-
declare function getCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
|
|
24412
|
+
declare function getCheckoutTemplate(httpClient: HttpClient$5): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
|
|
24039
24413
|
status: Status;
|
|
24040
24414
|
customization?: {
|
|
24041
24415
|
webClient?: {
|
|
@@ -24074,7 +24448,7 @@ declare function getCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateI
|
|
|
24074
24448
|
} | undefined;
|
|
24075
24449
|
}[];
|
|
24076
24450
|
}>;
|
|
24077
|
-
declare function updateCheckoutTemplate(httpClient: HttpClient): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24451
|
+
declare function updateCheckoutTemplate(httpClient: HttpClient$5): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
|
|
24078
24452
|
status: Status;
|
|
24079
24453
|
customization?: {
|
|
24080
24454
|
webClient?: {
|
|
@@ -24113,13 +24487,13 @@ declare function updateCheckoutTemplate(httpClient: HttpClient): (_id: string |
|
|
|
24113
24487
|
} | undefined;
|
|
24114
24488
|
}[];
|
|
24115
24489
|
}>;
|
|
24116
|
-
declare function deleteCheckoutTemplate(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<void>;
|
|
24117
|
-
declare function queryCheckoutTemplates(httpClient: HttpClient): () => CheckoutTemplatesQueryBuilder;
|
|
24118
|
-
declare function createCheckoutFromTemplate(httpClient: HttpClient): (checkoutTemplateId: string, siteId: string) => Promise<CreateCheckoutFromTemplateResponse & CreateCheckoutFromTemplateResponseNonNullableFields>;
|
|
24119
|
-
declare const onCheckoutTemplateCreated: EventDefinition<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
|
|
24120
|
-
declare const onCheckoutTemplateUpdated: EventDefinition<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
|
|
24121
|
-
declare const onCheckoutTemplateDeleted: EventDefinition<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
|
|
24122
|
-
declare const onCheckoutTemplateUsed: EventDefinition<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
|
|
24490
|
+
declare function deleteCheckoutTemplate(httpClient: HttpClient$5): (checkoutTemplateId: string) => Promise<void>;
|
|
24491
|
+
declare function queryCheckoutTemplates(httpClient: HttpClient$5): () => CheckoutTemplatesQueryBuilder;
|
|
24492
|
+
declare function createCheckoutFromTemplate(httpClient: HttpClient$5): (checkoutTemplateId: string, siteId: string) => Promise<CreateCheckoutFromTemplateResponse & CreateCheckoutFromTemplateResponseNonNullableFields>;
|
|
24493
|
+
declare const onCheckoutTemplateCreated: EventDefinition$4<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
|
|
24494
|
+
declare const onCheckoutTemplateUpdated: EventDefinition$4<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
|
|
24495
|
+
declare const onCheckoutTemplateDeleted: EventDefinition$4<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
|
|
24496
|
+
declare const onCheckoutTemplateUsed: EventDefinition$4<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
|
|
24123
24497
|
|
|
24124
24498
|
type index_d$5_AggregatedTaxBreakdown = AggregatedTaxBreakdown;
|
|
24125
24499
|
type index_d$5_AutoTaxFallbackCalculationDetails = AutoTaxFallbackCalculationDetails;
|
|
@@ -24784,13 +25158,52 @@ interface DeleteFulfillmentIdentifiers {
|
|
|
24784
25158
|
orderId: string;
|
|
24785
25159
|
}
|
|
24786
25160
|
|
|
25161
|
+
interface HttpClient$4 {
|
|
25162
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
25163
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
25164
|
+
}
|
|
25165
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
25166
|
+
type HttpResponse$4<T = any> = {
|
|
25167
|
+
data: T;
|
|
25168
|
+
status: number;
|
|
25169
|
+
statusText: string;
|
|
25170
|
+
headers: any;
|
|
25171
|
+
request?: any;
|
|
25172
|
+
};
|
|
25173
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
25174
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
25175
|
+
url: string;
|
|
25176
|
+
data?: Data;
|
|
25177
|
+
params?: URLSearchParams;
|
|
25178
|
+
} & APIMetadata$4;
|
|
25179
|
+
type APIMetadata$4 = {
|
|
25180
|
+
methodFqn?: string;
|
|
25181
|
+
entityFqdn?: string;
|
|
25182
|
+
packageName?: string;
|
|
25183
|
+
};
|
|
25184
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
25185
|
+
__type: 'event-definition';
|
|
25186
|
+
type: Type;
|
|
25187
|
+
isDomainEvent?: boolean;
|
|
25188
|
+
transformations?: (envelope: unknown) => Payload;
|
|
25189
|
+
__payload: Payload;
|
|
25190
|
+
};
|
|
25191
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
25192
|
+
|
|
25193
|
+
declare global {
|
|
25194
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
25195
|
+
interface SymbolConstructor {
|
|
25196
|
+
readonly observable: symbol;
|
|
25197
|
+
}
|
|
25198
|
+
}
|
|
25199
|
+
|
|
24787
25200
|
declare const __metadata$4: {
|
|
24788
25201
|
PACKAGE_NAME: string;
|
|
24789
25202
|
};
|
|
24790
|
-
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListFulfillmentsForSingleOrderResponse & ListFulfillmentsForSingleOrderResponseNonNullableFields>;
|
|
24791
|
-
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListFulfillmentsForMultipleOrdersResponse & ListFulfillmentsForMultipleOrdersResponseNonNullableFields>;
|
|
24792
|
-
declare function createFulfillment(httpClient: HttpClient): (orderId: string, fulfillment: Fulfillment$1) => Promise<CreateFulfillmentResponse & CreateFulfillmentResponseNonNullableFields>;
|
|
24793
|
-
declare function updateFulfillment(httpClient: HttpClient): (identifiers: UpdateFulfillmentIdentifiers, options?: UpdateFulfillmentOptions) => Promise<OrderWithFulfillments & {
|
|
25203
|
+
declare function listFulfillmentsForSingleOrder(httpClient: HttpClient$4): (orderId: string) => Promise<ListFulfillmentsForSingleOrderResponse & ListFulfillmentsForSingleOrderResponseNonNullableFields>;
|
|
25204
|
+
declare function listFulfillmentsForMultipleOrders(httpClient: HttpClient$4): (orderIds: string[]) => Promise<ListFulfillmentsForMultipleOrdersResponse & ListFulfillmentsForMultipleOrdersResponseNonNullableFields>;
|
|
25205
|
+
declare function createFulfillment(httpClient: HttpClient$4): (orderId: string, fulfillment: Fulfillment$1) => Promise<CreateFulfillmentResponse & CreateFulfillmentResponseNonNullableFields>;
|
|
25206
|
+
declare function updateFulfillment(httpClient: HttpClient$4): (identifiers: UpdateFulfillmentIdentifiers, options?: UpdateFulfillmentOptions) => Promise<OrderWithFulfillments & {
|
|
24794
25207
|
orderId: string;
|
|
24795
25208
|
fulfillments: {
|
|
24796
25209
|
lineItems: {
|
|
@@ -24798,9 +25211,9 @@ declare function updateFulfillment(httpClient: HttpClient): (identifiers: Update
|
|
|
24798
25211
|
}[];
|
|
24799
25212
|
}[];
|
|
24800
25213
|
}>;
|
|
24801
|
-
declare function deleteFulfillment(httpClient: HttpClient): (identifiers: DeleteFulfillmentIdentifiers) => Promise<DeleteFulfillmentResponse & DeleteFulfillmentResponseNonNullableFields>;
|
|
24802
|
-
declare function bulkCreateFulfillments(httpClient: HttpClient): (ordersWithFulfillments: BulkCreateOrderWithFulfillments[]) => Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
24803
|
-
declare const onFulfillmentsUpdated: EventDefinition<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
25214
|
+
declare function deleteFulfillment(httpClient: HttpClient$4): (identifiers: DeleteFulfillmentIdentifiers) => Promise<DeleteFulfillmentResponse & DeleteFulfillmentResponseNonNullableFields>;
|
|
25215
|
+
declare function bulkCreateFulfillments(httpClient: HttpClient$4): (ordersWithFulfillments: BulkCreateOrderWithFulfillments[]) => Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
25216
|
+
declare const onFulfillmentsUpdated: EventDefinition$3<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
24804
25217
|
|
|
24805
25218
|
type index_d$4_BulkCreateFulfillmentRequest = BulkCreateFulfillmentRequest;
|
|
24806
25219
|
type index_d$4_BulkCreateFulfillmentResponse = BulkCreateFulfillmentResponse;
|
|
@@ -30944,10 +31357,49 @@ interface CancelOrderOptions {
|
|
|
30944
31357
|
restockAllItems?: boolean;
|
|
30945
31358
|
}
|
|
30946
31359
|
|
|
31360
|
+
interface HttpClient$3 {
|
|
31361
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
31362
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
31363
|
+
}
|
|
31364
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
31365
|
+
type HttpResponse$3<T = any> = {
|
|
31366
|
+
data: T;
|
|
31367
|
+
status: number;
|
|
31368
|
+
statusText: string;
|
|
31369
|
+
headers: any;
|
|
31370
|
+
request?: any;
|
|
31371
|
+
};
|
|
31372
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
31373
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
31374
|
+
url: string;
|
|
31375
|
+
data?: Data;
|
|
31376
|
+
params?: URLSearchParams;
|
|
31377
|
+
} & APIMetadata$3;
|
|
31378
|
+
type APIMetadata$3 = {
|
|
31379
|
+
methodFqn?: string;
|
|
31380
|
+
entityFqdn?: string;
|
|
31381
|
+
packageName?: string;
|
|
31382
|
+
};
|
|
31383
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
31384
|
+
__type: 'event-definition';
|
|
31385
|
+
type: Type;
|
|
31386
|
+
isDomainEvent?: boolean;
|
|
31387
|
+
transformations?: (envelope: unknown) => Payload;
|
|
31388
|
+
__payload: Payload;
|
|
31389
|
+
};
|
|
31390
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
31391
|
+
|
|
31392
|
+
declare global {
|
|
31393
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
31394
|
+
interface SymbolConstructor {
|
|
31395
|
+
readonly observable: symbol;
|
|
31396
|
+
}
|
|
31397
|
+
}
|
|
31398
|
+
|
|
30947
31399
|
declare const __metadata$3: {
|
|
30948
31400
|
PACKAGE_NAME: string;
|
|
30949
31401
|
};
|
|
30950
|
-
declare function getOrder(httpClient: HttpClient): (_id: string) => Promise<Order$1 & {
|
|
31402
|
+
declare function getOrder(httpClient: HttpClient$3): (_id: string) => Promise<Order$1 & {
|
|
30951
31403
|
number: string;
|
|
30952
31404
|
lineItems: {
|
|
30953
31405
|
_id: string;
|
|
@@ -31274,8 +31726,8 @@ declare function getOrder(httpClient: HttpClient): (_id: string) => Promise<Orde
|
|
|
31274
31726
|
} | undefined;
|
|
31275
31727
|
} | undefined;
|
|
31276
31728
|
}>;
|
|
31277
|
-
declare function searchOrders(httpClient: HttpClient): (options?: SearchOrdersOptions) => Promise<SearchOrdersResponse & SearchOrdersResponseNonNullableFields>;
|
|
31278
|
-
declare function createOrder(httpClient: HttpClient): (order: Order$1) => Promise<Order$1 & {
|
|
31729
|
+
declare function searchOrders(httpClient: HttpClient$3): (options?: SearchOrdersOptions) => Promise<SearchOrdersResponse & SearchOrdersResponseNonNullableFields>;
|
|
31730
|
+
declare function createOrder(httpClient: HttpClient$3): (order: Order$1) => Promise<Order$1 & {
|
|
31279
31731
|
number: string;
|
|
31280
31732
|
lineItems: {
|
|
31281
31733
|
_id: string;
|
|
@@ -31602,7 +32054,7 @@ declare function createOrder(httpClient: HttpClient): (order: Order$1) => Promis
|
|
|
31602
32054
|
} | undefined;
|
|
31603
32055
|
} | undefined;
|
|
31604
32056
|
}>;
|
|
31605
|
-
declare function updateOrder(httpClient: HttpClient): (_id: string | null, order: UpdateOrder) => Promise<Order$1 & {
|
|
32057
|
+
declare function updateOrder(httpClient: HttpClient$3): (_id: string | null, order: UpdateOrder) => Promise<Order$1 & {
|
|
31606
32058
|
number: string;
|
|
31607
32059
|
lineItems: {
|
|
31608
32060
|
_id: string;
|
|
@@ -31929,12 +32381,12 @@ declare function updateOrder(httpClient: HttpClient): (_id: string | null, order
|
|
|
31929
32381
|
} | undefined;
|
|
31930
32382
|
} | undefined;
|
|
31931
32383
|
}>;
|
|
31932
|
-
declare function cancelOrder(httpClient: HttpClient): (_id: string, options?: CancelOrderOptions) => Promise<CancelOrderResponse & CancelOrderResponseNonNullableFields>;
|
|
31933
|
-
declare const onOrderPaymentStatusUpdated: EventDefinition<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
31934
|
-
declare const onOrderUpdated: EventDefinition<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
31935
|
-
declare const onOrderCreated: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
31936
|
-
declare const onOrderCanceled: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
31937
|
-
declare const onOrderApproved: EventDefinition<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
32384
|
+
declare function cancelOrder(httpClient: HttpClient$3): (_id: string, options?: CancelOrderOptions) => Promise<CancelOrderResponse & CancelOrderResponseNonNullableFields>;
|
|
32385
|
+
declare const onOrderPaymentStatusUpdated: EventDefinition$2<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
32386
|
+
declare const onOrderUpdated: EventDefinition$2<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
32387
|
+
declare const onOrderCreated: EventDefinition$2<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
32388
|
+
declare const onOrderCanceled: EventDefinition$2<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
32389
|
+
declare const onOrderApproved: EventDefinition$2<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
31938
32390
|
|
|
31939
32391
|
type index_d$3_ActivityContentOneOf = ActivityContentOneOf;
|
|
31940
32392
|
type index_d$3_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -34215,15 +34667,54 @@ interface BulkUpdatePaymentStatusesOptions {
|
|
|
34215
34667
|
status?: TransactionStatus;
|
|
34216
34668
|
}
|
|
34217
34669
|
|
|
34670
|
+
interface HttpClient$2 {
|
|
34671
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
34672
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
34673
|
+
}
|
|
34674
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
34675
|
+
type HttpResponse$2<T = any> = {
|
|
34676
|
+
data: T;
|
|
34677
|
+
status: number;
|
|
34678
|
+
statusText: string;
|
|
34679
|
+
headers: any;
|
|
34680
|
+
request?: any;
|
|
34681
|
+
};
|
|
34682
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
34683
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
34684
|
+
url: string;
|
|
34685
|
+
data?: Data;
|
|
34686
|
+
params?: URLSearchParams;
|
|
34687
|
+
} & APIMetadata$2;
|
|
34688
|
+
type APIMetadata$2 = {
|
|
34689
|
+
methodFqn?: string;
|
|
34690
|
+
entityFqdn?: string;
|
|
34691
|
+
packageName?: string;
|
|
34692
|
+
};
|
|
34693
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
34694
|
+
__type: 'event-definition';
|
|
34695
|
+
type: Type;
|
|
34696
|
+
isDomainEvent?: boolean;
|
|
34697
|
+
transformations?: (envelope: unknown) => Payload;
|
|
34698
|
+
__payload: Payload;
|
|
34699
|
+
};
|
|
34700
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
34701
|
+
|
|
34702
|
+
declare global {
|
|
34703
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
34704
|
+
interface SymbolConstructor {
|
|
34705
|
+
readonly observable: symbol;
|
|
34706
|
+
}
|
|
34707
|
+
}
|
|
34708
|
+
|
|
34218
34709
|
declare const __metadata$2: {
|
|
34219
34710
|
PACKAGE_NAME: string;
|
|
34220
34711
|
};
|
|
34221
|
-
declare function listTransactionsForSingleOrder(httpClient: HttpClient): (orderId: string) => Promise<ListTransactionsForSingleOrderResponse & ListTransactionsForSingleOrderResponseNonNullableFields>;
|
|
34222
|
-
declare function listTransactionsForMultipleOrders(httpClient: HttpClient): (orderIds: string[]) => Promise<ListTransactionsForMultipleOrdersResponse & ListTransactionsForMultipleOrdersResponseNonNullableFields>;
|
|
34223
|
-
declare function addPayments(httpClient: HttpClient): (orderId: string, payments: Payment[]) => Promise<AddPaymentsResponse & AddPaymentsResponseNonNullableFields>;
|
|
34224
|
-
declare function updatePaymentStatus(httpClient: HttpClient): (identifiers: UpdatePaymentStatusIdentifiers, options?: UpdatePaymentStatusOptions) => Promise<UpdatePaymentStatusResponse & UpdatePaymentStatusResponseNonNullableFields>;
|
|
34225
|
-
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient): (paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions) => Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
34226
|
-
declare const onOrderTransactionsUpdated: EventDefinition<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
34712
|
+
declare function listTransactionsForSingleOrder(httpClient: HttpClient$2): (orderId: string) => Promise<ListTransactionsForSingleOrderResponse & ListTransactionsForSingleOrderResponseNonNullableFields>;
|
|
34713
|
+
declare function listTransactionsForMultipleOrders(httpClient: HttpClient$2): (orderIds: string[]) => Promise<ListTransactionsForMultipleOrdersResponse & ListTransactionsForMultipleOrdersResponseNonNullableFields>;
|
|
34714
|
+
declare function addPayments(httpClient: HttpClient$2): (orderId: string, payments: Payment[]) => Promise<AddPaymentsResponse & AddPaymentsResponseNonNullableFields>;
|
|
34715
|
+
declare function updatePaymentStatus(httpClient: HttpClient$2): (identifiers: UpdatePaymentStatusIdentifiers, options?: UpdatePaymentStatusOptions) => Promise<UpdatePaymentStatusResponse & UpdatePaymentStatusResponseNonNullableFields>;
|
|
34716
|
+
declare function bulkUpdatePaymentStatuses(httpClient: HttpClient$2): (paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions) => Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
34717
|
+
declare const onOrderTransactionsUpdated: EventDefinition$1<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
34227
34718
|
|
|
34228
34719
|
type index_d$2_Activity = Activity;
|
|
34229
34720
|
type index_d$2_ActivityType = ActivityType;
|
|
@@ -34624,11 +35115,50 @@ interface OrdersSettingsUpdatedEnvelope {
|
|
|
34624
35115
|
metadata: EventMetadata;
|
|
34625
35116
|
}
|
|
34626
35117
|
|
|
35118
|
+
interface HttpClient$1 {
|
|
35119
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
35120
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
35121
|
+
}
|
|
35122
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
35123
|
+
type HttpResponse$1<T = any> = {
|
|
35124
|
+
data: T;
|
|
35125
|
+
status: number;
|
|
35126
|
+
statusText: string;
|
|
35127
|
+
headers: any;
|
|
35128
|
+
request?: any;
|
|
35129
|
+
};
|
|
35130
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
35131
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
35132
|
+
url: string;
|
|
35133
|
+
data?: Data;
|
|
35134
|
+
params?: URLSearchParams;
|
|
35135
|
+
} & APIMetadata$1;
|
|
35136
|
+
type APIMetadata$1 = {
|
|
35137
|
+
methodFqn?: string;
|
|
35138
|
+
entityFqdn?: string;
|
|
35139
|
+
packageName?: string;
|
|
35140
|
+
};
|
|
35141
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
35142
|
+
__type: 'event-definition';
|
|
35143
|
+
type: Type;
|
|
35144
|
+
isDomainEvent?: boolean;
|
|
35145
|
+
transformations?: (envelope: unknown) => Payload;
|
|
35146
|
+
__payload: Payload;
|
|
35147
|
+
};
|
|
35148
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35149
|
+
|
|
35150
|
+
declare global {
|
|
35151
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
35152
|
+
interface SymbolConstructor {
|
|
35153
|
+
readonly observable: symbol;
|
|
35154
|
+
}
|
|
35155
|
+
}
|
|
35156
|
+
|
|
34627
35157
|
declare const __metadata$1: {
|
|
34628
35158
|
PACKAGE_NAME: string;
|
|
34629
35159
|
};
|
|
34630
|
-
declare function getOrdersSettings(httpClient: HttpClient): () => Promise<GetOrdersSettingsResponse & GetOrdersSettingsResponseNonNullableFields>;
|
|
34631
|
-
declare function updateOrdersSettings(httpClient: HttpClient): (ordersSettings: OrdersSettings) => Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
35160
|
+
declare function getOrdersSettings(httpClient: HttpClient$1): () => Promise<GetOrdersSettingsResponse & GetOrdersSettingsResponseNonNullableFields>;
|
|
35161
|
+
declare function updateOrdersSettings(httpClient: HttpClient$1): (ordersSettings: OrdersSettings) => Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
34632
35162
|
declare const onOrdersSettingsUpdated: EventDefinition<OrdersSettingsUpdatedEnvelope, "wix.ecom.v1.orders_settings_updated">;
|
|
34633
35163
|
|
|
34634
35164
|
type index_d$1_ActionEvent = ActionEvent;
|
|
@@ -34740,6 +35270,37 @@ interface GetConversionRateIdentifiers {
|
|
|
34740
35270
|
to: string;
|
|
34741
35271
|
}
|
|
34742
35272
|
|
|
35273
|
+
interface HttpClient {
|
|
35274
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
35275
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
35276
|
+
}
|
|
35277
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
35278
|
+
type HttpResponse<T = any> = {
|
|
35279
|
+
data: T;
|
|
35280
|
+
status: number;
|
|
35281
|
+
statusText: string;
|
|
35282
|
+
headers: any;
|
|
35283
|
+
request?: any;
|
|
35284
|
+
};
|
|
35285
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
35286
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
35287
|
+
url: string;
|
|
35288
|
+
data?: Data;
|
|
35289
|
+
params?: URLSearchParams;
|
|
35290
|
+
} & APIMetadata;
|
|
35291
|
+
type APIMetadata = {
|
|
35292
|
+
methodFqn?: string;
|
|
35293
|
+
entityFqdn?: string;
|
|
35294
|
+
packageName?: string;
|
|
35295
|
+
};
|
|
35296
|
+
|
|
35297
|
+
declare global {
|
|
35298
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
35299
|
+
interface SymbolConstructor {
|
|
35300
|
+
readonly observable: symbol;
|
|
35301
|
+
}
|
|
35302
|
+
}
|
|
35303
|
+
|
|
34743
35304
|
declare const __metadata: {
|
|
34744
35305
|
PACKAGE_NAME: string;
|
|
34745
35306
|
};
|