@wix/ecom 1.0.656 → 1.0.658
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.
|
@@ -571,7 +571,7 @@ interface DomainEventBodyOneOf$d {
|
|
|
571
571
|
interface EntityCreatedEvent$d {
|
|
572
572
|
entity?: string;
|
|
573
573
|
}
|
|
574
|
-
interface UndeleteInfo$
|
|
574
|
+
interface UndeleteInfo$5 {
|
|
575
575
|
deletedDate?: Date;
|
|
576
576
|
}
|
|
577
577
|
interface EntityUpdatedEvent$d {
|
|
@@ -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;
|
|
@@ -1381,7 +1381,7 @@ declare const index_d$g_onDiscountRuleUpdated: typeof onDiscountRuleUpdated;
|
|
|
1381
1381
|
declare const index_d$g_queryDiscountRules: typeof queryDiscountRules;
|
|
1382
1382
|
declare const index_d$g_updateDiscountRule: typeof updateDiscountRule;
|
|
1383
1383
|
declare namespace index_d$g {
|
|
1384
|
-
export { type ActionEvent$d as ActionEvent, type index_d$g_ActiveTimeInfo as ActiveTimeInfo, type index_d$g_And as And, type AppliedDiscount$5 as AppliedDiscount, type index_d$g_AppliedDiscountRule as AppliedDiscountRule, index_d$g_AppliedSubjectType as AppliedSubjectType, type BaseEventMetadata$c as BaseEventMetadata, type index_d$g_BuyXGetYInfo as BuyXGetYInfo, type index_d$g_CatalogItemFilter as CatalogItemFilter, type CatalogReference$7 as CatalogReference, type index_d$g_CreateDiscountRuleRequest as CreateDiscountRuleRequest, type index_d$g_CreateDiscountRuleResponse as CreateDiscountRuleResponse, type index_d$g_CreateDiscountRuleResponseNonNullableFields as CreateDiscountRuleResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type Cursors$6 as Cursors, type index_d$g_Custom as Custom, type index_d$g_CustomFilter as CustomFilter, type index_d$g_CustomerBuy as CustomerBuy, type index_d$g_CustomerBuyConditionOneOf as CustomerBuyConditionOneOf, type index_d$g_CustomerGet as CustomerGet, type index_d$g_DeleteDiscountRuleRequest as DeleteDiscountRuleRequest, type index_d$g_DeleteDiscountRuleResponse as DeleteDiscountRuleResponse, type Discount$3 as Discount, type index_d$g_DiscountDiscountOneOf as DiscountDiscountOneOf, type DiscountRule$5 as DiscountRule, type index_d$g_DiscountRuleCreatedEnvelope as DiscountRuleCreatedEnvelope, type index_d$g_DiscountRuleDeletedEnvelope as DiscountRuleDeletedEnvelope, type DiscountRuleName$5 as DiscountRuleName, type index_d$g_DiscountRuleUpdatedEnvelope as DiscountRuleUpdatedEnvelope, type index_d$g_DiscountRuleUsageLimitReached as DiscountRuleUsageLimitReached, type index_d$g_DiscountRulesQueryBuilder as DiscountRulesQueryBuilder, type index_d$g_DiscountRulesQueryResult as DiscountRulesQueryResult, type index_d$g_DiscountSettings as DiscountSettings, type index_d$g_DiscountTrigger as DiscountTrigger, type index_d$g_DiscountTriggerTriggerOneOf as DiscountTriggerTriggerOneOf, DiscountType$5 as DiscountType, type index_d$g_Discounts as Discounts, type DomainEvent$d as DomainEvent, type DomainEventBodyOneOf$d as DomainEventBodyOneOf, type Empty$9 as Empty, type EntityCreatedEvent$d as EntityCreatedEvent, type EntityDeletedEvent$d as EntityDeletedEvent, type EntityUpdatedEvent$d as EntityUpdatedEvent, type EventMetadata$c as EventMetadata, type ExtendedFields$6 as ExtendedFields, type index_d$g_GetAppliedDiscountsRequest as GetAppliedDiscountsRequest, type index_d$g_GetAppliedDiscountsResponse as GetAppliedDiscountsResponse, type index_d$g_GetDiscountRuleRequest as GetDiscountRuleRequest, type index_d$g_GetDiscountRuleResponse as GetDiscountRuleResponse, type index_d$g_GetDiscountRuleResponseNonNullableFields as GetDiscountRuleResponseNonNullableFields, type IdentificationData$d as IdentificationData, type IdentificationDataIdOneOf$d as IdentificationDataIdOneOf, type index_d$g_ItemQuantityRange as ItemQuantityRange, type LineItem$6 as LineItem, type MessageEnvelope$d as MessageEnvelope, type MultiCurrencyPrice$5 as MultiCurrencyPrice, type index_d$g_Or as Or, type PlatformPaging$2 as PlatformPaging, type PlatformPagingMetadata$2 as PlatformPagingMetadata, type PlatformQuery$2 as PlatformQuery, type PlatformQueryPagingMethodOneOf$2 as PlatformQueryPagingMethodOneOf, type index_d$g_QueryDiscountRulesRequest as QueryDiscountRulesRequest, type index_d$g_QueryDiscountRulesResponse as QueryDiscountRulesResponse, type index_d$g_QueryDiscountRulesResponseNonNullableFields as QueryDiscountRulesResponseNonNullableFields, type Scope$4 as Scope, type index_d$g_ScopeScopeItemsOneOf as ScopeScopeItemsOneOf, index_d$g_ScopeType as ScopeType, SortOrder$6 as SortOrder, type Sorting$6 as Sorting, type index_d$g_SpecificItemsInfo as SpecificItemsInfo, Status$3 as Status, type index_d$g_SubtotalRange as SubtotalRange, index_d$g_TriggerType as TriggerType, index_d$g_Type as Type, type UndeleteInfo$
|
|
1384
|
+
export { type ActionEvent$d as ActionEvent, type index_d$g_ActiveTimeInfo as ActiveTimeInfo, type index_d$g_And as And, type AppliedDiscount$5 as AppliedDiscount, type index_d$g_AppliedDiscountRule as AppliedDiscountRule, index_d$g_AppliedSubjectType as AppliedSubjectType, type BaseEventMetadata$c as BaseEventMetadata, type index_d$g_BuyXGetYInfo as BuyXGetYInfo, type index_d$g_CatalogItemFilter as CatalogItemFilter, type CatalogReference$7 as CatalogReference, type index_d$g_CreateDiscountRuleRequest as CreateDiscountRuleRequest, type index_d$g_CreateDiscountRuleResponse as CreateDiscountRuleResponse, type index_d$g_CreateDiscountRuleResponseNonNullableFields as CreateDiscountRuleResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type Cursors$6 as Cursors, type index_d$g_Custom as Custom, type index_d$g_CustomFilter as CustomFilter, type index_d$g_CustomerBuy as CustomerBuy, type index_d$g_CustomerBuyConditionOneOf as CustomerBuyConditionOneOf, type index_d$g_CustomerGet as CustomerGet, type index_d$g_DeleteDiscountRuleRequest as DeleteDiscountRuleRequest, type index_d$g_DeleteDiscountRuleResponse as DeleteDiscountRuleResponse, type Discount$3 as Discount, type index_d$g_DiscountDiscountOneOf as DiscountDiscountOneOf, type DiscountRule$5 as DiscountRule, type index_d$g_DiscountRuleCreatedEnvelope as DiscountRuleCreatedEnvelope, type index_d$g_DiscountRuleDeletedEnvelope as DiscountRuleDeletedEnvelope, type DiscountRuleName$5 as DiscountRuleName, type index_d$g_DiscountRuleUpdatedEnvelope as DiscountRuleUpdatedEnvelope, type index_d$g_DiscountRuleUsageLimitReached as DiscountRuleUsageLimitReached, type index_d$g_DiscountRulesQueryBuilder as DiscountRulesQueryBuilder, type index_d$g_DiscountRulesQueryResult as DiscountRulesQueryResult, type index_d$g_DiscountSettings as DiscountSettings, type index_d$g_DiscountTrigger as DiscountTrigger, type index_d$g_DiscountTriggerTriggerOneOf as DiscountTriggerTriggerOneOf, DiscountType$5 as DiscountType, type index_d$g_Discounts as Discounts, type DomainEvent$d as DomainEvent, type DomainEventBodyOneOf$d as DomainEventBodyOneOf, type Empty$9 as Empty, type EntityCreatedEvent$d as EntityCreatedEvent, type EntityDeletedEvent$d as EntityDeletedEvent, type EntityUpdatedEvent$d as EntityUpdatedEvent, type EventMetadata$c as EventMetadata, type ExtendedFields$6 as ExtendedFields, type index_d$g_GetAppliedDiscountsRequest as GetAppliedDiscountsRequest, type index_d$g_GetAppliedDiscountsResponse as GetAppliedDiscountsResponse, type index_d$g_GetDiscountRuleRequest as GetDiscountRuleRequest, type index_d$g_GetDiscountRuleResponse as GetDiscountRuleResponse, type index_d$g_GetDiscountRuleResponseNonNullableFields as GetDiscountRuleResponseNonNullableFields, type IdentificationData$d as IdentificationData, type IdentificationDataIdOneOf$d as IdentificationDataIdOneOf, type index_d$g_ItemQuantityRange as ItemQuantityRange, type LineItem$6 as LineItem, type MessageEnvelope$d as MessageEnvelope, type MultiCurrencyPrice$5 as MultiCurrencyPrice, type index_d$g_Or as Or, type PlatformPaging$2 as PlatformPaging, type PlatformPagingMetadata$2 as PlatformPagingMetadata, type PlatformQuery$2 as PlatformQuery, type PlatformQueryPagingMethodOneOf$2 as PlatformQueryPagingMethodOneOf, type index_d$g_QueryDiscountRulesRequest as QueryDiscountRulesRequest, type index_d$g_QueryDiscountRulesResponse as QueryDiscountRulesResponse, type index_d$g_QueryDiscountRulesResponseNonNullableFields as QueryDiscountRulesResponseNonNullableFields, type Scope$4 as Scope, type index_d$g_ScopeScopeItemsOneOf as ScopeScopeItemsOneOf, index_d$g_ScopeType as ScopeType, SortOrder$6 as SortOrder, type Sorting$6 as Sorting, type index_d$g_SpecificItemsInfo as SpecificItemsInfo, Status$3 as Status, type index_d$g_SubtotalRange as SubtotalRange, index_d$g_TriggerType as TriggerType, index_d$g_Type as Type, type UndeleteInfo$5 as UndeleteInfo, type index_d$g_UpdateDiscountRule as UpdateDiscountRule, type index_d$g_UpdateDiscountRuleRequest as UpdateDiscountRuleRequest, type index_d$g_UpdateDiscountRuleResponse as UpdateDiscountRuleResponse, type index_d$g_UpdateDiscountRuleResponseNonNullableFields as UpdateDiscountRuleResponseNonNullableFields, WebhookIdentityType$d as WebhookIdentityType, __metadata$g as __metadata, index_d$g_createDiscountRule as createDiscountRule, index_d$g_deleteDiscountRule as deleteDiscountRule, index_d$g_getDiscountRule as getDiscountRule, index_d$g_onDiscountRuleCreated as onDiscountRuleCreated, index_d$g_onDiscountRuleDeleted as onDiscountRuleDeleted, index_d$g_onDiscountRuleUpdated as onDiscountRuleUpdated, index_d$g_queryDiscountRules as queryDiscountRules, index_d$g_updateDiscountRule as updateDiscountRule };
|
|
1385
1385
|
}
|
|
1386
1386
|
|
|
1387
1387
|
interface Invoice {
|
|
@@ -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;
|
|
@@ -2390,7 +2328,7 @@ interface DomainEventBodyOneOf$b {
|
|
|
2390
2328
|
interface EntityCreatedEvent$b {
|
|
2391
2329
|
entity?: string;
|
|
2392
2330
|
}
|
|
2393
|
-
interface RestoreInfo$
|
|
2331
|
+
interface RestoreInfo$5 {
|
|
2394
2332
|
deletedDate?: Date;
|
|
2395
2333
|
}
|
|
2396
2334
|
interface EntityUpdatedEvent$b {
|
|
@@ -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;
|
|
@@ -2661,7 +2560,7 @@ declare const index_d$d_getAbandonedCheckout: typeof getAbandonedCheckout;
|
|
|
2661
2560
|
declare const index_d$d_onAbandonedCheckoutCreated: typeof onAbandonedCheckoutCreated;
|
|
2662
2561
|
declare const index_d$d_onAbandonedCheckoutRecovered: typeof onAbandonedCheckoutRecovered;
|
|
2663
2562
|
declare namespace index_d$d {
|
|
2664
|
-
export { type index_d$d_AbandonedCheckout as AbandonedCheckout, type index_d$d_AbandonedCheckoutCreatedEnvelope as AbandonedCheckoutCreatedEnvelope, type index_d$d_AbandonedCheckoutRecovered as AbandonedCheckoutRecovered, type index_d$d_AbandonedCheckoutRecoveredEnvelope as AbandonedCheckoutRecoveredEnvelope, type ActionEvent$b as ActionEvent, type Activity$2 as Activity, ActivityType$2 as ActivityType, type index_d$d_AddAbandonedCheckoutActivityRequest as AddAbandonedCheckoutActivityRequest, type index_d$d_AddAbandonedCheckoutActivityResponse as AddAbandonedCheckoutActivityResponse, type BaseEventMetadata$b as BaseEventMetadata, type BuyerInfo$7 as BuyerInfo, type Cancel$1 as Cancel, type index_d$d_CartAbandonedEvent as CartAbandonedEvent, type index_d$d_CartRecoveredEvent as CartRecoveredEvent, type index_d$d_CommonCursorPaging as CommonCursorPaging, type index_d$d_CommonCursors as CommonCursors, type index_d$d_CommonPaging as CommonPaging, type index_d$d_CommonPagingMetadataV2 as CommonPagingMetadataV2, index_d$d_CommonSortOrder as CommonSortOrder, type index_d$d_CommonSorting as CommonSorting, type Complete$1 as Complete, type CursorPaging$5 as CursorPaging, type Cursors$5 as Cursors, type DomainEvent$b as DomainEvent, type DomainEventBodyOneOf$b as DomainEventBodyOneOf, type Empty$7 as Empty, type EntityCreatedEvent$b as EntityCreatedEvent, type EntityDeletedEvent$b as EntityDeletedEvent, type EntityUpdatedEvent$b as EntityUpdatedEvent, type EventMetadata$b as EventMetadata, type FullAddressContactDetails$5 as FullAddressContactDetails, type index_d$d_GetAbandonedCheckoutRequest as GetAbandonedCheckoutRequest, type index_d$d_GetAbandonedCheckoutResponse as GetAbandonedCheckoutResponse, type index_d$d_GetAbandonedCheckoutResponseNonNullableFields as GetAbandonedCheckoutResponseNonNullableFields, type HeadersEntry$1 as HeadersEntry, type IdentificationData$b as IdentificationData, type IdentificationDataIdOneOf$b as IdentificationDataIdOneOf, index_d$d_Identity as Identity, type MessageEnvelope$b as MessageEnvelope, index_d$d_Mode as Mode, type MultiCurrencyPrice$4 as MultiCurrencyPrice, type index_d$d_Paging as Paging, type index_d$d_PagingMetadataV2 as PagingMetadataV2, type index_d$d_QueryAbandonedCheckoutsRequest as QueryAbandonedCheckoutsRequest, type index_d$d_QueryAbandonedCheckoutsResponse as QueryAbandonedCheckoutsResponse, type index_d$d_QueryV2 as QueryV2, type index_d$d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RawHttpResponse$1 as RawHttpResponse, type index_d$d_RedirectToCheckoutRequest as RedirectToCheckoutRequest, type index_d$d_RemoveAbandonedCheckoutRequest as RemoveAbandonedCheckoutRequest, type index_d$d_RemoveAbandonedCheckoutResponse as RemoveAbandonedCheckoutResponse, type Reschedule$1 as Reschedule, type RestoreInfo$
|
|
2563
|
+
export { type index_d$d_AbandonedCheckout as AbandonedCheckout, type index_d$d_AbandonedCheckoutCreatedEnvelope as AbandonedCheckoutCreatedEnvelope, type index_d$d_AbandonedCheckoutRecovered as AbandonedCheckoutRecovered, type index_d$d_AbandonedCheckoutRecoveredEnvelope as AbandonedCheckoutRecoveredEnvelope, type ActionEvent$b as ActionEvent, type Activity$2 as Activity, ActivityType$2 as ActivityType, type index_d$d_AddAbandonedCheckoutActivityRequest as AddAbandonedCheckoutActivityRequest, type index_d$d_AddAbandonedCheckoutActivityResponse as AddAbandonedCheckoutActivityResponse, type BaseEventMetadata$b as BaseEventMetadata, type BuyerInfo$7 as BuyerInfo, type Cancel$1 as Cancel, type index_d$d_CartAbandonedEvent as CartAbandonedEvent, type index_d$d_CartRecoveredEvent as CartRecoveredEvent, type index_d$d_CommonCursorPaging as CommonCursorPaging, type index_d$d_CommonCursors as CommonCursors, type index_d$d_CommonPaging as CommonPaging, type index_d$d_CommonPagingMetadataV2 as CommonPagingMetadataV2, index_d$d_CommonSortOrder as CommonSortOrder, type index_d$d_CommonSorting as CommonSorting, type Complete$1 as Complete, type CursorPaging$5 as CursorPaging, type Cursors$5 as Cursors, type DomainEvent$b as DomainEvent, type DomainEventBodyOneOf$b as DomainEventBodyOneOf, type Empty$7 as Empty, type EntityCreatedEvent$b as EntityCreatedEvent, type EntityDeletedEvent$b as EntityDeletedEvent, type EntityUpdatedEvent$b as EntityUpdatedEvent, type EventMetadata$b as EventMetadata, type FullAddressContactDetails$5 as FullAddressContactDetails, type index_d$d_GetAbandonedCheckoutRequest as GetAbandonedCheckoutRequest, type index_d$d_GetAbandonedCheckoutResponse as GetAbandonedCheckoutResponse, type index_d$d_GetAbandonedCheckoutResponseNonNullableFields as GetAbandonedCheckoutResponseNonNullableFields, type HeadersEntry$1 as HeadersEntry, type IdentificationData$b as IdentificationData, type IdentificationDataIdOneOf$b as IdentificationDataIdOneOf, index_d$d_Identity as Identity, type MessageEnvelope$b as MessageEnvelope, index_d$d_Mode as Mode, type MultiCurrencyPrice$4 as MultiCurrencyPrice, type index_d$d_Paging as Paging, type index_d$d_PagingMetadataV2 as PagingMetadataV2, type index_d$d_QueryAbandonedCheckoutsRequest as QueryAbandonedCheckoutsRequest, type index_d$d_QueryAbandonedCheckoutsResponse as QueryAbandonedCheckoutsResponse, type index_d$d_QueryV2 as QueryV2, type index_d$d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RawHttpResponse$1 as RawHttpResponse, type index_d$d_RedirectToCheckoutRequest as RedirectToCheckoutRequest, type index_d$d_RemoveAbandonedCheckoutRequest as RemoveAbandonedCheckoutRequest, type index_d$d_RemoveAbandonedCheckoutResponse as RemoveAbandonedCheckoutResponse, type Reschedule$1 as Reschedule, type RestoreInfo$5 as RestoreInfo, type index_d$d_Search as Search, type index_d$d_SearchAbandonedCheckoutsRequest as SearchAbandonedCheckoutsRequest, type index_d$d_SearchAbandonedCheckoutsResponse as SearchAbandonedCheckoutsResponse, type index_d$d_SearchDetails as SearchDetails, type index_d$d_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, Status$2 as Status, type Task$1 as Task, type TaskAction$1 as TaskAction, type TaskActionActionOneOf$1 as TaskActionActionOneOf, type TaskKey$1 as TaskKey, type Totals$2 as Totals, type V1BuyerInfo$1 as V1BuyerInfo, type index_d$d_V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOf, type VatId$6 as VatId, VatType$6 as VatType, WebhookIdentityType$b as WebhookIdentityType, __metadata$d as __metadata, index_d$d_getAbandonedCheckout as getAbandonedCheckout, index_d$d_onAbandonedCheckoutCreated as onAbandonedCheckoutCreated, index_d$d_onAbandonedCheckoutRecovered as onAbandonedCheckoutRecovered };
|
|
2665
2564
|
}
|
|
2666
2565
|
|
|
2667
2566
|
/**
|
|
@@ -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;
|
|
@@ -5062,7 +4891,7 @@ interface DomainEventBodyOneOf$9 {
|
|
|
5062
4891
|
interface EntityCreatedEvent$9 {
|
|
5063
4892
|
entity?: string;
|
|
5064
4893
|
}
|
|
5065
|
-
interface UndeleteInfo$
|
|
4894
|
+
interface UndeleteInfo$4 {
|
|
5066
4895
|
deletedDate?: Date;
|
|
5067
4896
|
}
|
|
5068
4897
|
interface EntityUpdatedEvent$9 {
|
|
@@ -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;
|
|
@@ -7512,7 +7302,7 @@ declare const index_d$a_estimateTotals: typeof estimateTotals;
|
|
|
7512
7302
|
declare const index_d$a_getCart: typeof getCart;
|
|
7513
7303
|
declare const index_d$a_updateCart: typeof updateCart;
|
|
7514
7304
|
declare namespace index_d$a {
|
|
7515
|
-
export { type ActionEvent$9 as ActionEvent, type index_d$a_AddToCartOptions as AddToCartOptions, type AddToCartRequest$1 as AddToCartRequest, type AddToCartResponse$1 as AddToCartResponse, type AddToCartResponseNonNullableFields$1 as AddToCartResponseNonNullableFields, type AddToCurrentCartAndEstimateTotalsRequest$1 as AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartRequest$1 as AddToCurrentCartRequest, type AdditionalFee$4 as AdditionalFee, type Address$5 as Address, type AddressLocation$4 as AddressLocation, type AddressWithContact$4 as AddressWithContact, type AggregatedTaxBreakdown$3 as AggregatedTaxBreakdown, type ApplicationError$7 as ApplicationError, type AppliedDiscount$4 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$4 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$3 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$9 as BaseEventMetadata, type BuyerInfo$6 as BuyerInfo, type BuyerInfoIdOneOf$4 as BuyerInfoIdOneOf, type CalculatedLineItem$1 as CalculatedLineItem, type CalculationErrors$3 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$3 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$3 as CarrierError, type CarrierErrors$3 as CarrierErrors, type CarrierServiceOption$3 as CarrierServiceOption, type Cart$1 as Cart, type CartCreatedEnvelope$1 as CartCreatedEnvelope, type CartDeletedEnvelope$1 as CartDeletedEnvelope, type CartDiscount$1 as CartDiscount, type CartDiscountDiscountSourceOneOf$1 as CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope$1 as CartUpdatedEnvelope, type CatalogOverrideFields$3 as CatalogOverrideFields, type CatalogReference$4 as CatalogReference, ChannelType$5 as ChannelType, ChargeType$4 as ChargeType, type Color$4 as Color, type Coupon$4 as Coupon, type index_d$a_CreateCartOptions as CreateCartOptions, type CreateCartRequest$1 as CreateCartRequest, type CreateCartResponse$1 as CreateCartResponse, type CreateCartResponseNonNullableFields$1 as CreateCartResponseNonNullableFields, type CreateCheckoutFromCurrentCartRequest$1 as CreateCheckoutFromCurrentCartRequest, type CreateCheckoutOptions$1 as CreateCheckoutOptions, type CreateCheckoutRequest$2 as CreateCheckoutRequest, type CreateCheckoutResponse$2 as CreateCheckoutResponse, type CreateCheckoutResponseNonNullableFields$2 as CreateCheckoutResponseNonNullableFields, type CustomLineItem$3 as CustomLineItem, type DeleteCartRequest$1 as DeleteCartRequest, type DeleteCartResponse$1 as DeleteCartResponse, type DeleteCurrentCartRequest$1 as DeleteCurrentCartRequest, type DeliveryLogistics$4 as DeliveryLogistics, type DeliveryTimeSlot$4 as DeliveryTimeSlot, type Description$3 as Description, type DescriptionLine$4 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$4 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$4 as DescriptionLineName, DescriptionLineType$4 as DescriptionLineType, type DescriptionLineValueOneOf$4 as DescriptionLineValueOneOf, type Details$4 as Details, type DetailsKindOneOf$4 as DetailsKindOneOf, type DiscountRule$4 as DiscountRule, type DiscountRuleName$4 as DiscountRuleName, DiscountType$4 as DiscountType, type DomainEvent$9 as DomainEvent, type DomainEventBodyOneOf$9 as DomainEventBodyOneOf, type Empty$5 as Empty, type EntityCreatedEvent$9 as EntityCreatedEvent, type EntityDeletedEvent$9 as EntityDeletedEvent, type EntityUpdatedEvent$9 as EntityUpdatedEvent, type EstimateCurrentCartTotalsRequest$1 as EstimateCurrentCartTotalsRequest, type index_d$a_EstimateTotalsOptions as EstimateTotalsOptions, type EstimateTotalsRequest$1 as EstimateTotalsRequest, type EstimateTotalsResponse$1 as EstimateTotalsResponse, type EstimateTotalsResponseNonNullableFields$1 as EstimateTotalsResponseNonNullableFields, type EventMetadata$9 as EventMetadata, type ExtendedFields$5 as ExtendedFields, FallbackReason$3 as FallbackReason, type FieldViolation$4 as FieldViolation, FileType$3 as FileType, type FullAddressContactDetails$4 as FullAddressContactDetails, type GetCartByCheckoutIdRequest$1 as GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse$1 as GetCartByCheckoutIdResponse, type GetCartRequest$1 as GetCartRequest, type GetCartResponse$1 as GetCartResponse, type GetCartResponseNonNullableFields$1 as GetCartResponseNonNullableFields, type GetCurrentCartRequest$1 as GetCurrentCartRequest, type GetCurrentCartResponse$1 as GetCurrentCartResponse, type GetCurrentCartResponseNonNullableFields$1 as GetCurrentCartResponseNonNullableFields, type GiftCard$4 as GiftCard, type Group$3 as Group, type HostSelectedMembership$1 as HostSelectedMembership, type IdentificationData$9 as IdentificationData, type IdentificationDataIdOneOf$9 as IdentificationDataIdOneOf, type InvalidMembership$3 as InvalidMembership, type ItemAvailabilityInfo$3 as ItemAvailabilityInfo, ItemAvailabilityStatus$3 as ItemAvailabilityStatus, type ItemTaxFullDetails$4 as ItemTaxFullDetails, type ItemType$4 as ItemType, ItemTypeItemType$4 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$4 as ItemTypeItemTypeDataOneOf, JurisdictionType$4 as JurisdictionType, type LineItem$5 as LineItem, type LineItemDiscount$4 as LineItemDiscount, type LineItemPricesData$1 as LineItemPricesData, type LineItemQuantityUpdate$2 as LineItemQuantityUpdate, ManualCalculationReason$3 as ManualCalculationReason, type Membership$3 as Membership, type MembershipName$5 as MembershipName, type MembershipOptions$3 as MembershipOptions, type MembershipPaymentCredits$3 as MembershipPaymentCredits, type MerchantDiscount$4 as MerchantDiscount, type MerchantDiscountInput$2 as MerchantDiscountInput, type MessageEnvelope$9 as MessageEnvelope, type MultiCurrencyPrice$3 as MultiCurrencyPrice, NameInLineItem$3 as NameInLineItem, NameInOther$3 as NameInOther, type Other$3 as Other, type OtherCharge$3 as OtherCharge, PaymentOptionType$4 as PaymentOptionType, type PhysicalProperties$4 as PhysicalProperties, type PickupDetails$5 as PickupDetails, PickupMethod$4 as PickupMethod, type PlainTextValue$4 as PlainTextValue, type PriceDescription$4 as PriceDescription, type PriceSummary$4 as PriceSummary, type ProductName$4 as ProductName, RateType$3 as RateType, type RemoveCouponFromCurrentCartRequest$1 as RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest$2 as RemoveCouponRequest, type RemoveCouponResponse$2 as RemoveCouponResponse, type RemoveCouponResponseNonNullableFields$2 as RemoveCouponResponseNonNullableFields, type RemoveLineItemsFromCurrentCartRequest$1 as RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest$2 as RemoveLineItemsRequest, type RemoveLineItemsResponse$2 as RemoveLineItemsResponse, type RemoveLineItemsResponseNonNullableFields$2 as RemoveLineItemsResponseNonNullableFields, RuleType$4 as RuleType, type Scope$3 as Scope, type SecuredMedia$3 as SecuredMedia, type SelectedCarrierServiceOption$3 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$3 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$3 as SelectedCarrierServiceOptionPrices, type SelectedMembership$3 as SelectedMembership, type SelectedMemberships$3 as SelectedMemberships, type SelectedShippingOption$1 as SelectedShippingOption, type ServiceProperties$4 as ServiceProperties, Severity$3 as Severity, type ShippingInformation$2 as ShippingInformation, type ShippingOption$3 as ShippingOption, type ShippingPrice$4 as ShippingPrice, type ShippingRegion$4 as ShippingRegion, type StreetAddress$4 as StreetAddress, SubscriptionFrequency$5 as SubscriptionFrequency, type SubscriptionOptionInfo$4 as SubscriptionOptionInfo, type SubscriptionSettings$5 as SubscriptionSettings, type SystemError$4 as SystemError, type Target$3 as Target, type TargetLineItem$3 as TargetLineItem, type TargetTargetTypeOneOf$3 as TargetTargetTypeOneOf, type TaxBreakdown$3 as TaxBreakdown, type TaxCalculationDetails$3 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$3 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$3 as TaxRateBreakdown, type TaxSummary$4 as TaxSummary, type Title$3 as Title, type UndeleteInfo$
|
|
7305
|
+
export { type ActionEvent$9 as ActionEvent, type index_d$a_AddToCartOptions as AddToCartOptions, type AddToCartRequest$1 as AddToCartRequest, type AddToCartResponse$1 as AddToCartResponse, type AddToCartResponseNonNullableFields$1 as AddToCartResponseNonNullableFields, type AddToCurrentCartAndEstimateTotalsRequest$1 as AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartRequest$1 as AddToCurrentCartRequest, type AdditionalFee$4 as AdditionalFee, type Address$5 as Address, type AddressLocation$4 as AddressLocation, type AddressWithContact$4 as AddressWithContact, type AggregatedTaxBreakdown$3 as AggregatedTaxBreakdown, type ApplicationError$7 as ApplicationError, type AppliedDiscount$4 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$4 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$3 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$9 as BaseEventMetadata, type BuyerInfo$6 as BuyerInfo, type BuyerInfoIdOneOf$4 as BuyerInfoIdOneOf, type CalculatedLineItem$1 as CalculatedLineItem, type CalculationErrors$3 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$3 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$3 as CarrierError, type CarrierErrors$3 as CarrierErrors, type CarrierServiceOption$3 as CarrierServiceOption, type Cart$1 as Cart, type CartCreatedEnvelope$1 as CartCreatedEnvelope, type CartDeletedEnvelope$1 as CartDeletedEnvelope, type CartDiscount$1 as CartDiscount, type CartDiscountDiscountSourceOneOf$1 as CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope$1 as CartUpdatedEnvelope, type CatalogOverrideFields$3 as CatalogOverrideFields, type CatalogReference$4 as CatalogReference, ChannelType$5 as ChannelType, ChargeType$4 as ChargeType, type Color$4 as Color, type Coupon$4 as Coupon, type index_d$a_CreateCartOptions as CreateCartOptions, type CreateCartRequest$1 as CreateCartRequest, type CreateCartResponse$1 as CreateCartResponse, type CreateCartResponseNonNullableFields$1 as CreateCartResponseNonNullableFields, type CreateCheckoutFromCurrentCartRequest$1 as CreateCheckoutFromCurrentCartRequest, type CreateCheckoutOptions$1 as CreateCheckoutOptions, type CreateCheckoutRequest$2 as CreateCheckoutRequest, type CreateCheckoutResponse$2 as CreateCheckoutResponse, type CreateCheckoutResponseNonNullableFields$2 as CreateCheckoutResponseNonNullableFields, type CustomLineItem$3 as CustomLineItem, type DeleteCartRequest$1 as DeleteCartRequest, type DeleteCartResponse$1 as DeleteCartResponse, type DeleteCurrentCartRequest$1 as DeleteCurrentCartRequest, type DeliveryLogistics$4 as DeliveryLogistics, type DeliveryTimeSlot$4 as DeliveryTimeSlot, type Description$3 as Description, type DescriptionLine$4 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$4 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$4 as DescriptionLineName, DescriptionLineType$4 as DescriptionLineType, type DescriptionLineValueOneOf$4 as DescriptionLineValueOneOf, type Details$4 as Details, type DetailsKindOneOf$4 as DetailsKindOneOf, type DiscountRule$4 as DiscountRule, type DiscountRuleName$4 as DiscountRuleName, DiscountType$4 as DiscountType, type DomainEvent$9 as DomainEvent, type DomainEventBodyOneOf$9 as DomainEventBodyOneOf, type Empty$5 as Empty, type EntityCreatedEvent$9 as EntityCreatedEvent, type EntityDeletedEvent$9 as EntityDeletedEvent, type EntityUpdatedEvent$9 as EntityUpdatedEvent, type EstimateCurrentCartTotalsRequest$1 as EstimateCurrentCartTotalsRequest, type index_d$a_EstimateTotalsOptions as EstimateTotalsOptions, type EstimateTotalsRequest$1 as EstimateTotalsRequest, type EstimateTotalsResponse$1 as EstimateTotalsResponse, type EstimateTotalsResponseNonNullableFields$1 as EstimateTotalsResponseNonNullableFields, type EventMetadata$9 as EventMetadata, type ExtendedFields$5 as ExtendedFields, FallbackReason$3 as FallbackReason, type FieldViolation$4 as FieldViolation, FileType$3 as FileType, type FullAddressContactDetails$4 as FullAddressContactDetails, type GetCartByCheckoutIdRequest$1 as GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse$1 as GetCartByCheckoutIdResponse, type GetCartRequest$1 as GetCartRequest, type GetCartResponse$1 as GetCartResponse, type GetCartResponseNonNullableFields$1 as GetCartResponseNonNullableFields, type GetCurrentCartRequest$1 as GetCurrentCartRequest, type GetCurrentCartResponse$1 as GetCurrentCartResponse, type GetCurrentCartResponseNonNullableFields$1 as GetCurrentCartResponseNonNullableFields, type GiftCard$4 as GiftCard, type Group$3 as Group, type HostSelectedMembership$1 as HostSelectedMembership, type IdentificationData$9 as IdentificationData, type IdentificationDataIdOneOf$9 as IdentificationDataIdOneOf, type InvalidMembership$3 as InvalidMembership, type ItemAvailabilityInfo$3 as ItemAvailabilityInfo, ItemAvailabilityStatus$3 as ItemAvailabilityStatus, type ItemTaxFullDetails$4 as ItemTaxFullDetails, type ItemType$4 as ItemType, ItemTypeItemType$4 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$4 as ItemTypeItemTypeDataOneOf, JurisdictionType$4 as JurisdictionType, type LineItem$5 as LineItem, type LineItemDiscount$4 as LineItemDiscount, type LineItemPricesData$1 as LineItemPricesData, type LineItemQuantityUpdate$2 as LineItemQuantityUpdate, ManualCalculationReason$3 as ManualCalculationReason, type Membership$3 as Membership, type MembershipName$5 as MembershipName, type MembershipOptions$3 as MembershipOptions, type MembershipPaymentCredits$3 as MembershipPaymentCredits, type MerchantDiscount$4 as MerchantDiscount, type MerchantDiscountInput$2 as MerchantDiscountInput, type MessageEnvelope$9 as MessageEnvelope, type MultiCurrencyPrice$3 as MultiCurrencyPrice, NameInLineItem$3 as NameInLineItem, NameInOther$3 as NameInOther, type Other$3 as Other, type OtherCharge$3 as OtherCharge, PaymentOptionType$4 as PaymentOptionType, type PhysicalProperties$4 as PhysicalProperties, type PickupDetails$5 as PickupDetails, PickupMethod$4 as PickupMethod, type PlainTextValue$4 as PlainTextValue, type PriceDescription$4 as PriceDescription, type PriceSummary$4 as PriceSummary, type ProductName$4 as ProductName, RateType$3 as RateType, type RemoveCouponFromCurrentCartRequest$1 as RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest$2 as RemoveCouponRequest, type RemoveCouponResponse$2 as RemoveCouponResponse, type RemoveCouponResponseNonNullableFields$2 as RemoveCouponResponseNonNullableFields, type RemoveLineItemsFromCurrentCartRequest$1 as RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest$2 as RemoveLineItemsRequest, type RemoveLineItemsResponse$2 as RemoveLineItemsResponse, type RemoveLineItemsResponseNonNullableFields$2 as RemoveLineItemsResponseNonNullableFields, RuleType$4 as RuleType, type Scope$3 as Scope, type SecuredMedia$3 as SecuredMedia, type SelectedCarrierServiceOption$3 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$3 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$3 as SelectedCarrierServiceOptionPrices, type SelectedMembership$3 as SelectedMembership, type SelectedMemberships$3 as SelectedMemberships, type SelectedShippingOption$1 as SelectedShippingOption, type ServiceProperties$4 as ServiceProperties, Severity$3 as Severity, type ShippingInformation$2 as ShippingInformation, type ShippingOption$3 as ShippingOption, type ShippingPrice$4 as ShippingPrice, type ShippingRegion$4 as ShippingRegion, type StreetAddress$4 as StreetAddress, SubscriptionFrequency$5 as SubscriptionFrequency, type SubscriptionOptionInfo$4 as SubscriptionOptionInfo, type SubscriptionSettings$5 as SubscriptionSettings, type SystemError$4 as SystemError, type Target$3 as Target, type TargetLineItem$3 as TargetLineItem, type TargetTargetTypeOneOf$3 as TargetTargetTypeOneOf, type TaxBreakdown$3 as TaxBreakdown, type TaxCalculationDetails$3 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$3 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$3 as TaxRateBreakdown, type TaxSummary$4 as TaxSummary, type Title$3 as Title, type UndeleteInfo$4 as UndeleteInfo, type index_d$a_UpdateCartOptions as UpdateCartOptions, type UpdateCartRequest$1 as UpdateCartRequest, type UpdateCartResponse$1 as UpdateCartResponse, type UpdateCartResponseNonNullableFields$1 as UpdateCartResponseNonNullableFields, type UpdateCurrentCartLineItemQuantityRequest$1 as UpdateCurrentCartLineItemQuantityRequest, type UpdateLineItemsQuantityRequest$2 as UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse$2 as UpdateLineItemsQuantityResponse, type UpdateLineItemsQuantityResponseNonNullableFields$2 as UpdateLineItemsQuantityResponseNonNullableFields, type V1Coupon$1 as V1Coupon, type V1MerchantDiscount$1 as V1MerchantDiscount, type ValidationError$4 as ValidationError, type VatId$5 as VatId, VatType$5 as VatType, type Violation$3 as Violation, WebhookIdentityType$9 as WebhookIdentityType, WeightUnit$5 as WeightUnit, __metadata$a as __metadata, index_d$a_addToCart as addToCart, index_d$a_createCart as createCart, createCheckout$1 as createCheckout, index_d$a_deleteCart as deleteCart, index_d$a_estimateTotals as estimateTotals, index_d$a_getCart as getCart, onCartCreated$1 as onCartCreated, onCartDeleted$1 as onCartDeleted, onCartUpdated$1 as onCartUpdated, removeCoupon$1 as removeCoupon, removeLineItems$1 as removeLineItems, index_d$a_updateCart as updateCart, updateLineItemsQuantity$1 as updateLineItemsQuantity };
|
|
7516
7306
|
}
|
|
7517
7307
|
|
|
7518
7308
|
interface Cart {
|
|
@@ -9067,7 +8857,7 @@ interface DomainEventBodyOneOf$8 {
|
|
|
9067
8857
|
interface EntityCreatedEvent$8 {
|
|
9068
8858
|
entity?: string;
|
|
9069
8859
|
}
|
|
9070
|
-
interface UndeleteInfo$
|
|
8860
|
+
interface UndeleteInfo$3 {
|
|
9071
8861
|
deletedDate?: Date;
|
|
9072
8862
|
}
|
|
9073
8863
|
interface EntityUpdatedEvent$8 {
|
|
@@ -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;
|
|
@@ -11356,7 +11107,7 @@ declare const index_d$9_removeLineItemsFromCurrentCart: typeof removeLineItemsFr
|
|
|
11356
11107
|
declare const index_d$9_updateCurrentCart: typeof updateCurrentCart;
|
|
11357
11108
|
declare const index_d$9_updateCurrentCartLineItemQuantity: typeof updateCurrentCartLineItemQuantity;
|
|
11358
11109
|
declare namespace index_d$9 {
|
|
11359
|
-
export { type ActionEvent$8 as ActionEvent, type index_d$9_AddToCartRequest as AddToCartRequest, type index_d$9_AddToCartResponse as AddToCartResponse, type index_d$9_AddToCartResponseNonNullableFields as AddToCartResponseNonNullableFields, type index_d$9_AddToCurrentCartAndEstimateTotalsRequest as AddToCurrentCartAndEstimateTotalsRequest, type index_d$9_AddToCurrentCartOptions as AddToCurrentCartOptions, type index_d$9_AddToCurrentCartRequest as AddToCurrentCartRequest, type AdditionalFee$3 as AdditionalFee, type Address$4 as Address, type AddressLocation$3 as AddressLocation, type AddressWithContact$3 as AddressWithContact, type AggregatedTaxBreakdown$2 as AggregatedTaxBreakdown, type ApplicationError$6 as ApplicationError, type AppliedDiscount$3 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$3 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$2 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$8 as BaseEventMetadata, type BuyerInfo$5 as BuyerInfo, type BuyerInfoIdOneOf$3 as BuyerInfoIdOneOf, type index_d$9_CalculatedLineItem as CalculatedLineItem, type CalculationErrors$2 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$2 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$2 as CarrierError, type CarrierErrors$2 as CarrierErrors, type CarrierServiceOption$2 as CarrierServiceOption, type index_d$9_Cart as Cart, type index_d$9_CartCreatedEnvelope as CartCreatedEnvelope, type index_d$9_CartDeletedEnvelope as CartDeletedEnvelope, type index_d$9_CartDiscount as CartDiscount, type index_d$9_CartDiscountDiscountSourceOneOf as CartDiscountDiscountSourceOneOf, type index_d$9_CartUpdatedEnvelope as CartUpdatedEnvelope, type CatalogOverrideFields$2 as CatalogOverrideFields, type CatalogReference$3 as CatalogReference, ChannelType$4 as ChannelType, ChargeType$3 as ChargeType, type Color$3 as Color, type Coupon$3 as Coupon, type index_d$9_CreateCartRequest as CreateCartRequest, type index_d$9_CreateCartResponse as CreateCartResponse, type index_d$9_CreateCartResponseNonNullableFields as CreateCartResponseNonNullableFields, type index_d$9_CreateCheckoutFromCurrentCartOptions as CreateCheckoutFromCurrentCartOptions, type index_d$9_CreateCheckoutFromCurrentCartRequest as CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest$1 as CreateCheckoutRequest, type CreateCheckoutResponse$1 as CreateCheckoutResponse, type CreateCheckoutResponseNonNullableFields$1 as CreateCheckoutResponseNonNullableFields, type CustomLineItem$2 as CustomLineItem, type index_d$9_DeleteCartRequest as DeleteCartRequest, type index_d$9_DeleteCartResponse as DeleteCartResponse, type index_d$9_DeleteCurrentCartRequest as DeleteCurrentCartRequest, type DeliveryLogistics$3 as DeliveryLogistics, type DeliveryTimeSlot$3 as DeliveryTimeSlot, type Description$2 as Description, type DescriptionLine$3 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$3 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$3 as DescriptionLineName, DescriptionLineType$3 as DescriptionLineType, type DescriptionLineValueOneOf$3 as DescriptionLineValueOneOf, type Details$3 as Details, type DetailsKindOneOf$3 as DetailsKindOneOf, type DiscountRule$3 as DiscountRule, type DiscountRuleName$3 as DiscountRuleName, DiscountType$3 as DiscountType, type DomainEvent$8 as DomainEvent, type DomainEventBodyOneOf$8 as DomainEventBodyOneOf, type Empty$4 as Empty, type EntityCreatedEvent$8 as EntityCreatedEvent, type EntityDeletedEvent$8 as EntityDeletedEvent, type EntityUpdatedEvent$8 as EntityUpdatedEvent, type index_d$9_EstimateCurrentCartTotalsOptions as EstimateCurrentCartTotalsOptions, type index_d$9_EstimateCurrentCartTotalsRequest as EstimateCurrentCartTotalsRequest, type index_d$9_EstimateTotalsRequest as EstimateTotalsRequest, type index_d$9_EstimateTotalsResponse as EstimateTotalsResponse, type index_d$9_EstimateTotalsResponseNonNullableFields as EstimateTotalsResponseNonNullableFields, type EventMetadata$8 as EventMetadata, type ExtendedFields$4 as ExtendedFields, FallbackReason$2 as FallbackReason, type FieldViolation$3 as FieldViolation, FileType$2 as FileType, type FullAddressContactDetails$3 as FullAddressContactDetails, type index_d$9_GetCartByCheckoutIdRequest as GetCartByCheckoutIdRequest, type index_d$9_GetCartByCheckoutIdResponse as GetCartByCheckoutIdResponse, type index_d$9_GetCartRequest as GetCartRequest, type index_d$9_GetCartResponse as GetCartResponse, type index_d$9_GetCartResponseNonNullableFields as GetCartResponseNonNullableFields, type index_d$9_GetCurrentCartRequest as GetCurrentCartRequest, type index_d$9_GetCurrentCartResponse as GetCurrentCartResponse, type index_d$9_GetCurrentCartResponseNonNullableFields as GetCurrentCartResponseNonNullableFields, type GiftCard$3 as GiftCard, type Group$2 as Group, type index_d$9_HostSelectedMembership as HostSelectedMembership, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type InvalidMembership$2 as InvalidMembership, type ItemAvailabilityInfo$2 as ItemAvailabilityInfo, ItemAvailabilityStatus$2 as ItemAvailabilityStatus, type ItemTaxFullDetails$3 as ItemTaxFullDetails, type ItemType$3 as ItemType, ItemTypeItemType$3 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$3 as ItemTypeItemTypeDataOneOf, JurisdictionType$3 as JurisdictionType, type LineItem$4 as LineItem, type LineItemDiscount$3 as LineItemDiscount, type index_d$9_LineItemPricesData as LineItemPricesData, type LineItemQuantityUpdate$1 as LineItemQuantityUpdate, ManualCalculationReason$2 as ManualCalculationReason, type Membership$2 as Membership, type MembershipName$4 as MembershipName, type MembershipOptions$2 as MembershipOptions, type MembershipPaymentCredits$2 as MembershipPaymentCredits, type MerchantDiscount$3 as MerchantDiscount, type MerchantDiscountInput$1 as MerchantDiscountInput, type MessageEnvelope$8 as MessageEnvelope, type MultiCurrencyPrice$2 as MultiCurrencyPrice, NameInLineItem$2 as NameInLineItem, NameInOther$2 as NameInOther, type Other$2 as Other, type OtherCharge$2 as OtherCharge, PaymentOptionType$3 as PaymentOptionType, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$4 as PickupDetails, PickupMethod$3 as PickupMethod, type PlainTextValue$3 as PlainTextValue, type PriceDescription$3 as PriceDescription, type PriceSummary$3 as PriceSummary, type ProductName$3 as ProductName, RateType$2 as RateType, type index_d$9_RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest$1 as RemoveCouponRequest, type RemoveCouponResponse$1 as RemoveCouponResponse, type RemoveCouponResponseNonNullableFields$1 as RemoveCouponResponseNonNullableFields, type index_d$9_RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest$1 as RemoveLineItemsRequest, type RemoveLineItemsResponse$1 as RemoveLineItemsResponse, type RemoveLineItemsResponseNonNullableFields$1 as RemoveLineItemsResponseNonNullableFields, RuleType$3 as RuleType, type Scope$2 as Scope, type SecuredMedia$2 as SecuredMedia, type SelectedCarrierServiceOption$2 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$2 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$2 as SelectedCarrierServiceOptionPrices, type SelectedMembership$2 as SelectedMembership, type SelectedMemberships$2 as SelectedMemberships, type index_d$9_SelectedShippingOption as SelectedShippingOption, type ServiceProperties$3 as ServiceProperties, Severity$2 as Severity, type ShippingInformation$1 as ShippingInformation, type ShippingOption$2 as ShippingOption, type ShippingPrice$3 as ShippingPrice, type ShippingRegion$3 as ShippingRegion, type StreetAddress$3 as StreetAddress, SubscriptionFrequency$4 as SubscriptionFrequency, type SubscriptionOptionInfo$3 as SubscriptionOptionInfo, type SubscriptionSettings$4 as SubscriptionSettings, type SystemError$3 as SystemError, type Target$2 as Target, type TargetLineItem$2 as TargetLineItem, type TargetTargetTypeOneOf$2 as TargetTargetTypeOneOf, type TaxBreakdown$2 as TaxBreakdown, type TaxCalculationDetails$2 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$2 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$2 as TaxRateBreakdown, type TaxSummary$3 as TaxSummary, type Title$2 as Title, type UndeleteInfo$4 as UndeleteInfo, type index_d$9_UpdateCartRequest as UpdateCartRequest, type index_d$9_UpdateCartResponse as UpdateCartResponse, type index_d$9_UpdateCartResponseNonNullableFields as UpdateCartResponseNonNullableFields, type index_d$9_UpdateCurrentCartLineItemQuantityRequest as UpdateCurrentCartLineItemQuantityRequest, type index_d$9_UpdateCurrentCartOptions as UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest$1 as UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse$1 as UpdateLineItemsQuantityResponse, type UpdateLineItemsQuantityResponseNonNullableFields$1 as UpdateLineItemsQuantityResponseNonNullableFields, type index_d$9_V1Coupon as V1Coupon, type index_d$9_V1MerchantDiscount as V1MerchantDiscount, type ValidationError$3 as ValidationError, type VatId$4 as VatId, VatType$4 as VatType, type Violation$2 as Violation, WebhookIdentityType$8 as WebhookIdentityType, WeightUnit$4 as WeightUnit, __metadata$9 as __metadata, index_d$9_addToCurrentCart as addToCurrentCart, index_d$9_createCheckoutFromCurrentCart as createCheckoutFromCurrentCart, index_d$9_deleteCurrentCart as deleteCurrentCart, index_d$9_estimateCurrentCartTotals as estimateCurrentCartTotals, index_d$9_getCurrentCart as getCurrentCart, index_d$9_onCartCreated as onCartCreated, index_d$9_onCartDeleted as onCartDeleted, index_d$9_onCartUpdated as onCartUpdated, index_d$9_removeCouponFromCurrentCart as removeCouponFromCurrentCart, index_d$9_removeLineItemsFromCurrentCart as removeLineItemsFromCurrentCart, index_d$9_updateCurrentCart as updateCurrentCart, index_d$9_updateCurrentCartLineItemQuantity as updateCurrentCartLineItemQuantity };
|
|
11110
|
+
export { type ActionEvent$8 as ActionEvent, type index_d$9_AddToCartRequest as AddToCartRequest, type index_d$9_AddToCartResponse as AddToCartResponse, type index_d$9_AddToCartResponseNonNullableFields as AddToCartResponseNonNullableFields, type index_d$9_AddToCurrentCartAndEstimateTotalsRequest as AddToCurrentCartAndEstimateTotalsRequest, type index_d$9_AddToCurrentCartOptions as AddToCurrentCartOptions, type index_d$9_AddToCurrentCartRequest as AddToCurrentCartRequest, type AdditionalFee$3 as AdditionalFee, type Address$4 as Address, type AddressLocation$3 as AddressLocation, type AddressWithContact$3 as AddressWithContact, type AggregatedTaxBreakdown$2 as AggregatedTaxBreakdown, type ApplicationError$6 as ApplicationError, type AppliedDiscount$3 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$3 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$2 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$8 as BaseEventMetadata, type BuyerInfo$5 as BuyerInfo, type BuyerInfoIdOneOf$3 as BuyerInfoIdOneOf, type index_d$9_CalculatedLineItem as CalculatedLineItem, type CalculationErrors$2 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$2 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$2 as CarrierError, type CarrierErrors$2 as CarrierErrors, type CarrierServiceOption$2 as CarrierServiceOption, type index_d$9_Cart as Cart, type index_d$9_CartCreatedEnvelope as CartCreatedEnvelope, type index_d$9_CartDeletedEnvelope as CartDeletedEnvelope, type index_d$9_CartDiscount as CartDiscount, type index_d$9_CartDiscountDiscountSourceOneOf as CartDiscountDiscountSourceOneOf, type index_d$9_CartUpdatedEnvelope as CartUpdatedEnvelope, type CatalogOverrideFields$2 as CatalogOverrideFields, type CatalogReference$3 as CatalogReference, ChannelType$4 as ChannelType, ChargeType$3 as ChargeType, type Color$3 as Color, type Coupon$3 as Coupon, type index_d$9_CreateCartRequest as CreateCartRequest, type index_d$9_CreateCartResponse as CreateCartResponse, type index_d$9_CreateCartResponseNonNullableFields as CreateCartResponseNonNullableFields, type index_d$9_CreateCheckoutFromCurrentCartOptions as CreateCheckoutFromCurrentCartOptions, type index_d$9_CreateCheckoutFromCurrentCartRequest as CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest$1 as CreateCheckoutRequest, type CreateCheckoutResponse$1 as CreateCheckoutResponse, type CreateCheckoutResponseNonNullableFields$1 as CreateCheckoutResponseNonNullableFields, type CustomLineItem$2 as CustomLineItem, type index_d$9_DeleteCartRequest as DeleteCartRequest, type index_d$9_DeleteCartResponse as DeleteCartResponse, type index_d$9_DeleteCurrentCartRequest as DeleteCurrentCartRequest, type DeliveryLogistics$3 as DeliveryLogistics, type DeliveryTimeSlot$3 as DeliveryTimeSlot, type Description$2 as Description, type DescriptionLine$3 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$3 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$3 as DescriptionLineName, DescriptionLineType$3 as DescriptionLineType, type DescriptionLineValueOneOf$3 as DescriptionLineValueOneOf, type Details$3 as Details, type DetailsKindOneOf$3 as DetailsKindOneOf, type DiscountRule$3 as DiscountRule, type DiscountRuleName$3 as DiscountRuleName, DiscountType$3 as DiscountType, type DomainEvent$8 as DomainEvent, type DomainEventBodyOneOf$8 as DomainEventBodyOneOf, type Empty$4 as Empty, type EntityCreatedEvent$8 as EntityCreatedEvent, type EntityDeletedEvent$8 as EntityDeletedEvent, type EntityUpdatedEvent$8 as EntityUpdatedEvent, type index_d$9_EstimateCurrentCartTotalsOptions as EstimateCurrentCartTotalsOptions, type index_d$9_EstimateCurrentCartTotalsRequest as EstimateCurrentCartTotalsRequest, type index_d$9_EstimateTotalsRequest as EstimateTotalsRequest, type index_d$9_EstimateTotalsResponse as EstimateTotalsResponse, type index_d$9_EstimateTotalsResponseNonNullableFields as EstimateTotalsResponseNonNullableFields, type EventMetadata$8 as EventMetadata, type ExtendedFields$4 as ExtendedFields, FallbackReason$2 as FallbackReason, type FieldViolation$3 as FieldViolation, FileType$2 as FileType, type FullAddressContactDetails$3 as FullAddressContactDetails, type index_d$9_GetCartByCheckoutIdRequest as GetCartByCheckoutIdRequest, type index_d$9_GetCartByCheckoutIdResponse as GetCartByCheckoutIdResponse, type index_d$9_GetCartRequest as GetCartRequest, type index_d$9_GetCartResponse as GetCartResponse, type index_d$9_GetCartResponseNonNullableFields as GetCartResponseNonNullableFields, type index_d$9_GetCurrentCartRequest as GetCurrentCartRequest, type index_d$9_GetCurrentCartResponse as GetCurrentCartResponse, type index_d$9_GetCurrentCartResponseNonNullableFields as GetCurrentCartResponseNonNullableFields, type GiftCard$3 as GiftCard, type Group$2 as Group, type index_d$9_HostSelectedMembership as HostSelectedMembership, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type InvalidMembership$2 as InvalidMembership, type ItemAvailabilityInfo$2 as ItemAvailabilityInfo, ItemAvailabilityStatus$2 as ItemAvailabilityStatus, type ItemTaxFullDetails$3 as ItemTaxFullDetails, type ItemType$3 as ItemType, ItemTypeItemType$3 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$3 as ItemTypeItemTypeDataOneOf, JurisdictionType$3 as JurisdictionType, type LineItem$4 as LineItem, type LineItemDiscount$3 as LineItemDiscount, type index_d$9_LineItemPricesData as LineItemPricesData, type LineItemQuantityUpdate$1 as LineItemQuantityUpdate, ManualCalculationReason$2 as ManualCalculationReason, type Membership$2 as Membership, type MembershipName$4 as MembershipName, type MembershipOptions$2 as MembershipOptions, type MembershipPaymentCredits$2 as MembershipPaymentCredits, type MerchantDiscount$3 as MerchantDiscount, type MerchantDiscountInput$1 as MerchantDiscountInput, type MessageEnvelope$8 as MessageEnvelope, type MultiCurrencyPrice$2 as MultiCurrencyPrice, NameInLineItem$2 as NameInLineItem, NameInOther$2 as NameInOther, type Other$2 as Other, type OtherCharge$2 as OtherCharge, PaymentOptionType$3 as PaymentOptionType, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$4 as PickupDetails, PickupMethod$3 as PickupMethod, type PlainTextValue$3 as PlainTextValue, type PriceDescription$3 as PriceDescription, type PriceSummary$3 as PriceSummary, type ProductName$3 as ProductName, RateType$2 as RateType, type index_d$9_RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest$1 as RemoveCouponRequest, type RemoveCouponResponse$1 as RemoveCouponResponse, type RemoveCouponResponseNonNullableFields$1 as RemoveCouponResponseNonNullableFields, type index_d$9_RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest$1 as RemoveLineItemsRequest, type RemoveLineItemsResponse$1 as RemoveLineItemsResponse, type RemoveLineItemsResponseNonNullableFields$1 as RemoveLineItemsResponseNonNullableFields, RuleType$3 as RuleType, type Scope$2 as Scope, type SecuredMedia$2 as SecuredMedia, type SelectedCarrierServiceOption$2 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$2 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$2 as SelectedCarrierServiceOptionPrices, type SelectedMembership$2 as SelectedMembership, type SelectedMemberships$2 as SelectedMemberships, type index_d$9_SelectedShippingOption as SelectedShippingOption, type ServiceProperties$3 as ServiceProperties, Severity$2 as Severity, type ShippingInformation$1 as ShippingInformation, type ShippingOption$2 as ShippingOption, type ShippingPrice$3 as ShippingPrice, type ShippingRegion$3 as ShippingRegion, type StreetAddress$3 as StreetAddress, SubscriptionFrequency$4 as SubscriptionFrequency, type SubscriptionOptionInfo$3 as SubscriptionOptionInfo, type SubscriptionSettings$4 as SubscriptionSettings, type SystemError$3 as SystemError, type Target$2 as Target, type TargetLineItem$2 as TargetLineItem, type TargetTargetTypeOneOf$2 as TargetTargetTypeOneOf, type TaxBreakdown$2 as TaxBreakdown, type TaxCalculationDetails$2 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$2 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$2 as TaxRateBreakdown, type TaxSummary$3 as TaxSummary, type Title$2 as Title, type UndeleteInfo$3 as UndeleteInfo, type index_d$9_UpdateCartRequest as UpdateCartRequest, type index_d$9_UpdateCartResponse as UpdateCartResponse, type index_d$9_UpdateCartResponseNonNullableFields as UpdateCartResponseNonNullableFields, type index_d$9_UpdateCurrentCartLineItemQuantityRequest as UpdateCurrentCartLineItemQuantityRequest, type index_d$9_UpdateCurrentCartOptions as UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest$1 as UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse$1 as UpdateLineItemsQuantityResponse, type UpdateLineItemsQuantityResponseNonNullableFields$1 as UpdateLineItemsQuantityResponseNonNullableFields, type index_d$9_V1Coupon as V1Coupon, type index_d$9_V1MerchantDiscount as V1MerchantDiscount, type ValidationError$3 as ValidationError, type VatId$4 as VatId, VatType$4 as VatType, type Violation$2 as Violation, WebhookIdentityType$8 as WebhookIdentityType, WeightUnit$4 as WeightUnit, __metadata$9 as __metadata, index_d$9_addToCurrentCart as addToCurrentCart, index_d$9_createCheckoutFromCurrentCart as createCheckoutFromCurrentCart, index_d$9_deleteCurrentCart as deleteCurrentCart, index_d$9_estimateCurrentCartTotals as estimateCurrentCartTotals, index_d$9_getCurrentCart as getCurrentCart, index_d$9_onCartCreated as onCartCreated, index_d$9_onCartDeleted as onCartDeleted, index_d$9_onCartUpdated as onCartUpdated, index_d$9_removeCouponFromCurrentCart as removeCouponFromCurrentCart, index_d$9_removeLineItemsFromCurrentCart as removeLineItemsFromCurrentCart, index_d$9_updateCurrentCart as updateCurrentCart, index_d$9_updateCurrentCartLineItemQuantity as updateCurrentCartLineItemQuantity };
|
|
11360
11111
|
}
|
|
11361
11112
|
|
|
11362
11113
|
interface Checkout$1 {
|
|
@@ -13546,7 +13297,7 @@ interface DomainEventBodyOneOf$7 {
|
|
|
13546
13297
|
interface EntityCreatedEvent$7 {
|
|
13547
13298
|
entity?: string;
|
|
13548
13299
|
}
|
|
13549
|
-
interface UndeleteInfo$
|
|
13300
|
+
interface UndeleteInfo$2 {
|
|
13550
13301
|
deletedDate?: Date;
|
|
13551
13302
|
}
|
|
13552
13303
|
interface EntityUpdatedEvent$7 {
|
|
@@ -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;
|
|
@@ -21760,7 +21472,7 @@ declare const index_d$8_removeOverrideCheckoutUrl: typeof removeOverrideCheckout
|
|
|
21760
21472
|
declare const index_d$8_updateCheckout: typeof updateCheckout;
|
|
21761
21473
|
declare const index_d$8_updateLineItemsQuantity: typeof updateLineItemsQuantity;
|
|
21762
21474
|
declare namespace index_d$8 {
|
|
21763
|
-
export { type ActionEvent$7 as ActionEvent, type index_d$8_AddToCheckoutOptions as AddToCheckoutOptions, type index_d$8_AddToCheckoutRequest as AddToCheckoutRequest, type index_d$8_AddToCheckoutResponse as AddToCheckoutResponse, type index_d$8_AddToCheckoutResponseNonNullableFields as AddToCheckoutResponseNonNullableFields, type AdditionalFee$2 as AdditionalFee, type Address$3 as Address, type AddressAddressLine1OptionsOneOf$1 as AddressAddressLine1OptionsOneOf, type AddressLocation$2 as AddressLocation, type AddressWithContact$2 as AddressWithContact, type AggregatedTaxBreakdown$1 as AggregatedTaxBreakdown, type index_d$8_ApiAddress as ApiAddress, type ApplicationError$5 as ApplicationError, type AppliedCoupon$1 as AppliedCoupon, type AppliedDiscount$2 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$2 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$1 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$7 as BaseEventMetadata, type BillingInfo$1 as BillingInfo, type BuyerInfo$4 as BuyerInfo, type BuyerInfoIdOneOf$2 as BuyerInfoIdOneOf, type CalculationErrors$1 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$1 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$1 as CarrierError, type CarrierErrors$1 as CarrierErrors, type CarrierServiceOption$1 as CarrierServiceOption, type CatalogOverrideFields$1 as CatalogOverrideFields, type CatalogReference$2 as CatalogReference, type ChannelInfo$2 as ChannelInfo, index_d$8_ChannelInfoChannelType as ChannelInfoChannelType, ChannelType$3 as ChannelType, type index_d$8_ChargeDetails as ChargeDetails, ChargeType$2 as ChargeType, type Checkout$1 as Checkout, type index_d$8_CheckoutCompletedEnvelope as CheckoutCompletedEnvelope, type index_d$8_CheckoutCreatedEnvelope as CheckoutCreatedEnvelope, type index_d$8_CheckoutMarkedAsCompleted as CheckoutMarkedAsCompleted, type index_d$8_CheckoutUpdatedEnvelope as CheckoutUpdatedEnvelope, type Color$2 as Color, type index_d$8_CommonVatId as CommonVatId, index_d$8_CommonVatType as CommonVatType, type ConversionInfo$1 as ConversionInfo, type Coupon$2 as Coupon, type index_d$8_CreateCheckoutOptions as CreateCheckoutOptions, type index_d$8_CreateCheckoutRequest as CreateCheckoutRequest, type index_d$8_CreateCheckoutResponse as CreateCheckoutResponse, type index_d$8_CreateCheckoutResponseNonNullableFields as CreateCheckoutResponseNonNullableFields, type index_d$8_CreateOrderAndChargeRequest as CreateOrderAndChargeRequest, type index_d$8_CreateOrderAndChargeResponse as CreateOrderAndChargeResponse, type index_d$8_CreateOrderAndChargeResponseIdOneOf as CreateOrderAndChargeResponseIdOneOf, type CreateOrderRequest$1 as CreateOrderRequest, type CreateOrderResponse$1 as CreateOrderResponse, type index_d$8_CreateOrderResponseIdOneOf as CreateOrderResponseIdOneOf, type CreateOrderResponseNonNullableFields$1 as CreateOrderResponseNonNullableFields, type CreatedBy$2 as CreatedBy, type CreatedByIdOneOf$1 as CreatedByIdOneOf, type CustomContentReference$1 as CustomContentReference, type CustomField$3 as CustomField, type CustomLineItem$1 as CustomLineItem, type CustomSettings$1 as CustomSettings, type CustomTextFieldSelection$1 as CustomTextFieldSelection, type DeliveryLogistics$2 as DeliveryLogistics, type DeliveryTimeSlot$2 as DeliveryTimeSlot, type Description$1 as Description, type DescriptionLine$2 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$2 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$2 as DescriptionLineName, DescriptionLineType$2 as DescriptionLineType, type DescriptionLineValueOneOf$2 as DescriptionLineValueOneOf, type Details$2 as Details, type DetailsKindOneOf$2 as DetailsKindOneOf, type Discount$2 as Discount, index_d$8_DiscountDiscountType as DiscountDiscountType, type DiscountRule$2 as DiscountRule, type DiscountRuleName$2 as DiscountRuleName, DiscountType$2 as DiscountType, type DomainEvent$7 as DomainEvent, type DomainEventBodyOneOf$7 as DomainEventBodyOneOf, type index_d$8_DoublePaymentErrorData as DoublePaymentErrorData, type index_d$8_DoublePaymentErrorDataIdOneOf as DoublePaymentErrorDataIdOneOf, type Empty$3 as Empty, type EntityCreatedEvent$7 as EntityCreatedEvent, type EntityDeletedEvent$7 as EntityDeletedEvent, type EntityUpdatedEvent$7 as EntityUpdatedEvent, type EventMetadata$7 as EventMetadata, type ExtendedFields$3 as ExtendedFields, FallbackReason$1 as FallbackReason, type FieldViolation$2 as FieldViolation, FileType$1 as FileType, type FullAddressContactDetails$2 as FullAddressContactDetails, type FullName$1 as FullName, type index_d$8_GetCheckoutByCartIdRequest as GetCheckoutByCartIdRequest, type index_d$8_GetCheckoutByCartIdResponse as GetCheckoutByCartIdResponse, type index_d$8_GetCheckoutRequest as GetCheckoutRequest, type index_d$8_GetCheckoutResponse as GetCheckoutResponse, type index_d$8_GetCheckoutResponseNonNullableFields as GetCheckoutResponseNonNullableFields, type index_d$8_GetCheckoutURLRequest as GetCheckoutURLRequest, type index_d$8_GetCheckoutURLResponse as GetCheckoutURLResponse, type index_d$8_GetCheckoutURLResponseNonNullableFields as GetCheckoutURLResponseNonNullableFields, type index_d$8_GetCheckoutWithAllExtendedFieldsRequest as GetCheckoutWithAllExtendedFieldsRequest, type index_d$8_GetCheckoutWithAllExtendedFieldsResponse as GetCheckoutWithAllExtendedFieldsResponse, type index_d$8_GetWixCheckoutURLRequest as GetWixCheckoutURLRequest, type index_d$8_GetWixCheckoutURLResponse as GetWixCheckoutURLResponse, type GiftCard$2 as GiftCard, type Group$1 as Group, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type InvalidMembership$1 as InvalidMembership, type ItemAvailabilityInfo$1 as ItemAvailabilityInfo, ItemAvailabilityStatus$1 as ItemAvailabilityStatus, type ItemTaxFullDetails$2 as ItemTaxFullDetails, type ItemType$2 as ItemType, ItemTypeItemType$2 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$2 as ItemTypeItemTypeDataOneOf, JurisdictionType$2 as JurisdictionType, type LineItem$3 as LineItem, type LineItemDiscount$2 as LineItemDiscount, type index_d$8_LineItemQuantityUpdate as LineItemQuantityUpdate, LineItemType$1 as LineItemType, ManualCalculationReason$1 as ManualCalculationReason, type index_d$8_MarkCheckoutAsCompletedRequest as MarkCheckoutAsCompletedRequest, type index_d$8_MarkCheckoutAsCompletedResponse as MarkCheckoutAsCompletedResponse, type MediaItem$1 as MediaItem, MediaItemType$1 as MediaItemType, type Membership$1 as Membership, type MembershipName$3 as MembershipName, type MembershipOptions$1 as MembershipOptions, type MembershipPaymentCredits$1 as MembershipPaymentCredits, type MerchantDiscount$2 as MerchantDiscount, type index_d$8_MerchantDiscountInput as MerchantDiscountInput, type MessageEnvelope$7 as MessageEnvelope, type MultiCurrencyPrice$1 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type OptionSelection$1 as OptionSelection, type Other$1 as Other, type OtherCharge$1 as OtherCharge, type index_d$8_PaymentErrorResponseData as PaymentErrorResponseData, PaymentOptionType$2 as PaymentOptionType, type PhysicalProperties$2 as PhysicalProperties, type PickupAddress$2 as PickupAddress, type PickupDetails$3 as PickupDetails, PickupMethod$2 as PickupMethod, type PlainTextValue$2 as PlainTextValue, type PriceDescription$2 as PriceDescription, type PriceSummary$2 as PriceSummary, type index_d$8_ProductDetails as ProductDetails, type ProductName$2 as ProductName, RateType$1 as RateType, type index_d$8_RedeemErrorData as RedeemErrorData, type index_d$8_RemoveCouponRequest as RemoveCouponRequest, type index_d$8_RemoveCouponResponse as RemoveCouponResponse, type index_d$8_RemoveCouponResponseNonNullableFields as RemoveCouponResponseNonNullableFields, type index_d$8_RemoveGiftCardRequest as RemoveGiftCardRequest, type index_d$8_RemoveGiftCardResponse as RemoveGiftCardResponse, type index_d$8_RemoveGiftCardResponseNonNullableFields as RemoveGiftCardResponseNonNullableFields, type index_d$8_RemoveLineItemsRequest as RemoveLineItemsRequest, type index_d$8_RemoveLineItemsResponse as RemoveLineItemsResponse, type index_d$8_RemoveLineItemsResponseNonNullableFields as RemoveLineItemsResponseNonNullableFields, type index_d$8_RemoveOverrideCheckoutUrlRequest as RemoveOverrideCheckoutUrlRequest, type index_d$8_RemoveOverrideCheckoutUrlResponse as RemoveOverrideCheckoutUrlResponse, type index_d$8_RemoveOverrideCheckoutUrlResponseNonNullableFields as RemoveOverrideCheckoutUrlResponseNonNullableFields, RuleType$2 as RuleType, type Scope$1 as Scope, type SecuredMedia$1 as SecuredMedia, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$1 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type SelectedMembership$1 as SelectedMembership, type SelectedMemberships$1 as SelectedMemberships, type ServiceProperties$2 as ServiceProperties, Severity$1 as Severity, type ShipmentDetails$1 as ShipmentDetails, type index_d$8_ShippingCalculationErrorData as ShippingCalculationErrorData, type index_d$8_ShippingCalculationErrorDataShippingCalculationErrorOneOf as ShippingCalculationErrorDataShippingCalculationErrorOneOf, type ShippingInfo$2 as ShippingInfo, type ShippingOption$1 as ShippingOption, type ShippingPrice$2 as ShippingPrice, type ShippingRegion$2 as ShippingRegion, type index_d$8_StoreSettings as StoreSettings, type Street$1 as Street, type StreetAddress$2 as StreetAddress, type index_d$8_Subscription as Subscription, type index_d$8_SubscriptionCreated as SubscriptionCreated, SubscriptionFrequency$3 as SubscriptionFrequency, type SubscriptionOptionInfo$2 as SubscriptionOptionInfo, type SubscriptionSettings$3 as SubscriptionSettings, type SystemError$2 as SystemError, type Target$1 as Target, type TargetLineItem$1 as TargetLineItem, type TargetTargetTypeOneOf$1 as TargetTargetTypeOneOf, type TaxBreakdown$1 as TaxBreakdown, type TaxCalculationDetails$1 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$1 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$1 as TaxRateBreakdown, type TaxSummary$2 as TaxSummary, type Title$1 as Title, type Totals$1 as Totals, type UndeleteInfo$3 as UndeleteInfo, type index_d$8_UpdateCheckout as UpdateCheckout, type index_d$8_UpdateCheckoutOptions as UpdateCheckoutOptions, type index_d$8_UpdateCheckoutRequest as UpdateCheckoutRequest, type index_d$8_UpdateCheckoutResponse as UpdateCheckoutResponse, type index_d$8_UpdateCheckoutResponseNonNullableFields as UpdateCheckoutResponseNonNullableFields, type index_d$8_UpdateLineItemsQuantityRequest as UpdateLineItemsQuantityRequest, type index_d$8_UpdateLineItemsQuantityResponse as UpdateLineItemsQuantityResponse, type index_d$8_UpdateLineItemsQuantityResponseNonNullableFields as UpdateLineItemsQuantityResponseNonNullableFields, type index_d$8_UpdatedCheckoutMessage as UpdatedCheckoutMessage, type index_d$8_V1BuyerInfo as V1BuyerInfo, type index_d$8_V1CustomField as V1CustomField, type V1LineItem$1 as V1LineItem, type index_d$8_V1PickupDetails as V1PickupDetails, type index_d$8_V1ShippingInfo as V1ShippingInfo, type index_d$8_V1ShippingInfoDetailsOneOf as V1ShippingInfoDetailsOneOf, type index_d$8_V1SubscriptionOptionInfo as V1SubscriptionOptionInfo, type index_d$8_V1SubscriptionSettings as V1SubscriptionSettings, type ValidationError$2 as ValidationError, type VatId$3 as VatId, VatType$3 as VatType, type Violation$1 as Violation, type index_d$8_ViolationsList as ViolationsList, WebhookIdentityType$7 as WebhookIdentityType, WeightUnit$3 as WeightUnit, __metadata$8 as __metadata, index_d$8_addToCheckout as addToCheckout, index_d$8_createCheckout as createCheckout, createOrder$1 as createOrder, index_d$8_getCheckout as getCheckout, index_d$8_getCheckoutUrl as getCheckoutUrl, index_d$8_markCheckoutAsCompleted as markCheckoutAsCompleted, index_d$8_onCheckoutCompleted as onCheckoutCompleted, index_d$8_onCheckoutCreated as onCheckoutCreated, index_d$8_onCheckoutUpdated as onCheckoutUpdated, index_d$8_removeCoupon as removeCoupon, index_d$8_removeGiftCard as removeGiftCard, index_d$8_removeLineItems as removeLineItems, index_d$8_removeOverrideCheckoutUrl as removeOverrideCheckoutUrl, index_d$8_updateCheckout as updateCheckout, index_d$8_updateLineItemsQuantity as updateLineItemsQuantity };
|
|
21475
|
+
export { type ActionEvent$7 as ActionEvent, type index_d$8_AddToCheckoutOptions as AddToCheckoutOptions, type index_d$8_AddToCheckoutRequest as AddToCheckoutRequest, type index_d$8_AddToCheckoutResponse as AddToCheckoutResponse, type index_d$8_AddToCheckoutResponseNonNullableFields as AddToCheckoutResponseNonNullableFields, type AdditionalFee$2 as AdditionalFee, type Address$3 as Address, type AddressAddressLine1OptionsOneOf$1 as AddressAddressLine1OptionsOneOf, type AddressLocation$2 as AddressLocation, type AddressWithContact$2 as AddressWithContact, type AggregatedTaxBreakdown$1 as AggregatedTaxBreakdown, type index_d$8_ApiAddress as ApiAddress, type ApplicationError$5 as ApplicationError, type AppliedCoupon$1 as AppliedCoupon, type AppliedDiscount$2 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$2 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$1 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$7 as BaseEventMetadata, type BillingInfo$1 as BillingInfo, type BuyerInfo$4 as BuyerInfo, type BuyerInfoIdOneOf$2 as BuyerInfoIdOneOf, type CalculationErrors$1 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$1 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$1 as CarrierError, type CarrierErrors$1 as CarrierErrors, type CarrierServiceOption$1 as CarrierServiceOption, type CatalogOverrideFields$1 as CatalogOverrideFields, type CatalogReference$2 as CatalogReference, type ChannelInfo$2 as ChannelInfo, index_d$8_ChannelInfoChannelType as ChannelInfoChannelType, ChannelType$3 as ChannelType, type index_d$8_ChargeDetails as ChargeDetails, ChargeType$2 as ChargeType, type Checkout$1 as Checkout, type index_d$8_CheckoutCompletedEnvelope as CheckoutCompletedEnvelope, type index_d$8_CheckoutCreatedEnvelope as CheckoutCreatedEnvelope, type index_d$8_CheckoutMarkedAsCompleted as CheckoutMarkedAsCompleted, type index_d$8_CheckoutUpdatedEnvelope as CheckoutUpdatedEnvelope, type Color$2 as Color, type index_d$8_CommonVatId as CommonVatId, index_d$8_CommonVatType as CommonVatType, type ConversionInfo$1 as ConversionInfo, type Coupon$2 as Coupon, type index_d$8_CreateCheckoutOptions as CreateCheckoutOptions, type index_d$8_CreateCheckoutRequest as CreateCheckoutRequest, type index_d$8_CreateCheckoutResponse as CreateCheckoutResponse, type index_d$8_CreateCheckoutResponseNonNullableFields as CreateCheckoutResponseNonNullableFields, type index_d$8_CreateOrderAndChargeRequest as CreateOrderAndChargeRequest, type index_d$8_CreateOrderAndChargeResponse as CreateOrderAndChargeResponse, type index_d$8_CreateOrderAndChargeResponseIdOneOf as CreateOrderAndChargeResponseIdOneOf, type CreateOrderRequest$1 as CreateOrderRequest, type CreateOrderResponse$1 as CreateOrderResponse, type index_d$8_CreateOrderResponseIdOneOf as CreateOrderResponseIdOneOf, type CreateOrderResponseNonNullableFields$1 as CreateOrderResponseNonNullableFields, type CreatedBy$2 as CreatedBy, type CreatedByIdOneOf$1 as CreatedByIdOneOf, type CustomContentReference$1 as CustomContentReference, type CustomField$3 as CustomField, type CustomLineItem$1 as CustomLineItem, type CustomSettings$1 as CustomSettings, type CustomTextFieldSelection$1 as CustomTextFieldSelection, type DeliveryLogistics$2 as DeliveryLogistics, type DeliveryTimeSlot$2 as DeliveryTimeSlot, type Description$1 as Description, type DescriptionLine$2 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$2 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$2 as DescriptionLineName, DescriptionLineType$2 as DescriptionLineType, type DescriptionLineValueOneOf$2 as DescriptionLineValueOneOf, type Details$2 as Details, type DetailsKindOneOf$2 as DetailsKindOneOf, type Discount$2 as Discount, index_d$8_DiscountDiscountType as DiscountDiscountType, type DiscountRule$2 as DiscountRule, type DiscountRuleName$2 as DiscountRuleName, DiscountType$2 as DiscountType, type DomainEvent$7 as DomainEvent, type DomainEventBodyOneOf$7 as DomainEventBodyOneOf, type index_d$8_DoublePaymentErrorData as DoublePaymentErrorData, type index_d$8_DoublePaymentErrorDataIdOneOf as DoublePaymentErrorDataIdOneOf, type Empty$3 as Empty, type EntityCreatedEvent$7 as EntityCreatedEvent, type EntityDeletedEvent$7 as EntityDeletedEvent, type EntityUpdatedEvent$7 as EntityUpdatedEvent, type EventMetadata$7 as EventMetadata, type ExtendedFields$3 as ExtendedFields, FallbackReason$1 as FallbackReason, type FieldViolation$2 as FieldViolation, FileType$1 as FileType, type FullAddressContactDetails$2 as FullAddressContactDetails, type FullName$1 as FullName, type index_d$8_GetCheckoutByCartIdRequest as GetCheckoutByCartIdRequest, type index_d$8_GetCheckoutByCartIdResponse as GetCheckoutByCartIdResponse, type index_d$8_GetCheckoutRequest as GetCheckoutRequest, type index_d$8_GetCheckoutResponse as GetCheckoutResponse, type index_d$8_GetCheckoutResponseNonNullableFields as GetCheckoutResponseNonNullableFields, type index_d$8_GetCheckoutURLRequest as GetCheckoutURLRequest, type index_d$8_GetCheckoutURLResponse as GetCheckoutURLResponse, type index_d$8_GetCheckoutURLResponseNonNullableFields as GetCheckoutURLResponseNonNullableFields, type index_d$8_GetCheckoutWithAllExtendedFieldsRequest as GetCheckoutWithAllExtendedFieldsRequest, type index_d$8_GetCheckoutWithAllExtendedFieldsResponse as GetCheckoutWithAllExtendedFieldsResponse, type index_d$8_GetWixCheckoutURLRequest as GetWixCheckoutURLRequest, type index_d$8_GetWixCheckoutURLResponse as GetWixCheckoutURLResponse, type GiftCard$2 as GiftCard, type Group$1 as Group, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type InvalidMembership$1 as InvalidMembership, type ItemAvailabilityInfo$1 as ItemAvailabilityInfo, ItemAvailabilityStatus$1 as ItemAvailabilityStatus, type ItemTaxFullDetails$2 as ItemTaxFullDetails, type ItemType$2 as ItemType, ItemTypeItemType$2 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$2 as ItemTypeItemTypeDataOneOf, JurisdictionType$2 as JurisdictionType, type LineItem$3 as LineItem, type LineItemDiscount$2 as LineItemDiscount, type index_d$8_LineItemQuantityUpdate as LineItemQuantityUpdate, LineItemType$1 as LineItemType, ManualCalculationReason$1 as ManualCalculationReason, type index_d$8_MarkCheckoutAsCompletedRequest as MarkCheckoutAsCompletedRequest, type index_d$8_MarkCheckoutAsCompletedResponse as MarkCheckoutAsCompletedResponse, type MediaItem$1 as MediaItem, MediaItemType$1 as MediaItemType, type Membership$1 as Membership, type MembershipName$3 as MembershipName, type MembershipOptions$1 as MembershipOptions, type MembershipPaymentCredits$1 as MembershipPaymentCredits, type MerchantDiscount$2 as MerchantDiscount, type index_d$8_MerchantDiscountInput as MerchantDiscountInput, type MessageEnvelope$7 as MessageEnvelope, type MultiCurrencyPrice$1 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type OptionSelection$1 as OptionSelection, type Other$1 as Other, type OtherCharge$1 as OtherCharge, type index_d$8_PaymentErrorResponseData as PaymentErrorResponseData, PaymentOptionType$2 as PaymentOptionType, type PhysicalProperties$2 as PhysicalProperties, type PickupAddress$2 as PickupAddress, type PickupDetails$3 as PickupDetails, PickupMethod$2 as PickupMethod, type PlainTextValue$2 as PlainTextValue, type PriceDescription$2 as PriceDescription, type PriceSummary$2 as PriceSummary, type index_d$8_ProductDetails as ProductDetails, type ProductName$2 as ProductName, RateType$1 as RateType, type index_d$8_RedeemErrorData as RedeemErrorData, type index_d$8_RemoveCouponRequest as RemoveCouponRequest, type index_d$8_RemoveCouponResponse as RemoveCouponResponse, type index_d$8_RemoveCouponResponseNonNullableFields as RemoveCouponResponseNonNullableFields, type index_d$8_RemoveGiftCardRequest as RemoveGiftCardRequest, type index_d$8_RemoveGiftCardResponse as RemoveGiftCardResponse, type index_d$8_RemoveGiftCardResponseNonNullableFields as RemoveGiftCardResponseNonNullableFields, type index_d$8_RemoveLineItemsRequest as RemoveLineItemsRequest, type index_d$8_RemoveLineItemsResponse as RemoveLineItemsResponse, type index_d$8_RemoveLineItemsResponseNonNullableFields as RemoveLineItemsResponseNonNullableFields, type index_d$8_RemoveOverrideCheckoutUrlRequest as RemoveOverrideCheckoutUrlRequest, type index_d$8_RemoveOverrideCheckoutUrlResponse as RemoveOverrideCheckoutUrlResponse, type index_d$8_RemoveOverrideCheckoutUrlResponseNonNullableFields as RemoveOverrideCheckoutUrlResponseNonNullableFields, RuleType$2 as RuleType, type Scope$1 as Scope, type SecuredMedia$1 as SecuredMedia, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$1 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type SelectedMembership$1 as SelectedMembership, type SelectedMemberships$1 as SelectedMemberships, type ServiceProperties$2 as ServiceProperties, Severity$1 as Severity, type ShipmentDetails$1 as ShipmentDetails, type index_d$8_ShippingCalculationErrorData as ShippingCalculationErrorData, type index_d$8_ShippingCalculationErrorDataShippingCalculationErrorOneOf as ShippingCalculationErrorDataShippingCalculationErrorOneOf, type ShippingInfo$2 as ShippingInfo, type ShippingOption$1 as ShippingOption, type ShippingPrice$2 as ShippingPrice, type ShippingRegion$2 as ShippingRegion, type index_d$8_StoreSettings as StoreSettings, type Street$1 as Street, type StreetAddress$2 as StreetAddress, type index_d$8_Subscription as Subscription, type index_d$8_SubscriptionCreated as SubscriptionCreated, SubscriptionFrequency$3 as SubscriptionFrequency, type SubscriptionOptionInfo$2 as SubscriptionOptionInfo, type SubscriptionSettings$3 as SubscriptionSettings, type SystemError$2 as SystemError, type Target$1 as Target, type TargetLineItem$1 as TargetLineItem, type TargetTargetTypeOneOf$1 as TargetTargetTypeOneOf, type TaxBreakdown$1 as TaxBreakdown, type TaxCalculationDetails$1 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$1 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$1 as TaxRateBreakdown, type TaxSummary$2 as TaxSummary, type Title$1 as Title, type Totals$1 as Totals, type UndeleteInfo$2 as UndeleteInfo, type index_d$8_UpdateCheckout as UpdateCheckout, type index_d$8_UpdateCheckoutOptions as UpdateCheckoutOptions, type index_d$8_UpdateCheckoutRequest as UpdateCheckoutRequest, type index_d$8_UpdateCheckoutResponse as UpdateCheckoutResponse, type index_d$8_UpdateCheckoutResponseNonNullableFields as UpdateCheckoutResponseNonNullableFields, type index_d$8_UpdateLineItemsQuantityRequest as UpdateLineItemsQuantityRequest, type index_d$8_UpdateLineItemsQuantityResponse as UpdateLineItemsQuantityResponse, type index_d$8_UpdateLineItemsQuantityResponseNonNullableFields as UpdateLineItemsQuantityResponseNonNullableFields, type index_d$8_UpdatedCheckoutMessage as UpdatedCheckoutMessage, type index_d$8_V1BuyerInfo as V1BuyerInfo, type index_d$8_V1CustomField as V1CustomField, type V1LineItem$1 as V1LineItem, type index_d$8_V1PickupDetails as V1PickupDetails, type index_d$8_V1ShippingInfo as V1ShippingInfo, type index_d$8_V1ShippingInfoDetailsOneOf as V1ShippingInfoDetailsOneOf, type index_d$8_V1SubscriptionOptionInfo as V1SubscriptionOptionInfo, type index_d$8_V1SubscriptionSettings as V1SubscriptionSettings, type ValidationError$2 as ValidationError, type VatId$3 as VatId, VatType$3 as VatType, type Violation$1 as Violation, type index_d$8_ViolationsList as ViolationsList, WebhookIdentityType$7 as WebhookIdentityType, WeightUnit$3 as WeightUnit, __metadata$8 as __metadata, index_d$8_addToCheckout as addToCheckout, index_d$8_createCheckout as createCheckout, createOrder$1 as createOrder, index_d$8_getCheckout as getCheckout, index_d$8_getCheckoutUrl as getCheckoutUrl, index_d$8_markCheckoutAsCompleted as markCheckoutAsCompleted, index_d$8_onCheckoutCompleted as onCheckoutCompleted, index_d$8_onCheckoutCreated as onCheckoutCreated, index_d$8_onCheckoutUpdated as onCheckoutUpdated, index_d$8_removeCoupon as removeCoupon, index_d$8_removeGiftCard as removeGiftCard, index_d$8_removeLineItems as removeLineItems, index_d$8_removeOverrideCheckoutUrl as removeOverrideCheckoutUrl, index_d$8_updateCheckout as updateCheckout, index_d$8_updateLineItemsQuantity as updateLineItemsQuantity };
|
|
21764
21476
|
}
|
|
21765
21477
|
|
|
21766
21478
|
interface CheckoutSettings {
|
|
@@ -22008,7 +21720,7 @@ interface DomainEventBodyOneOf$6 {
|
|
|
22008
21720
|
interface EntityCreatedEvent$6 {
|
|
22009
21721
|
entity?: string;
|
|
22010
21722
|
}
|
|
22011
|
-
interface RestoreInfo$
|
|
21723
|
+
interface RestoreInfo$4 {
|
|
22012
21724
|
deletedDate?: Date;
|
|
22013
21725
|
}
|
|
22014
21726
|
interface EntityUpdatedEvent$6 {
|
|
@@ -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;
|
|
@@ -22194,7 +21867,7 @@ declare const index_d$7_getCheckoutSettings: typeof getCheckoutSettings;
|
|
|
22194
21867
|
declare const index_d$7_onCheckoutSettingsUpdated: typeof onCheckoutSettingsUpdated;
|
|
22195
21868
|
declare const index_d$7_updateCheckoutSettings: typeof updateCheckoutSettings;
|
|
22196
21869
|
declare namespace index_d$7 {
|
|
22197
|
-
export { type ActionEvent$6 as ActionEvent, index_d$7_Alignment as Alignment, type BaseEventMetadata$6 as BaseEventMetadata, type index_d$7_CheckboxField as CheckboxField, type index_d$7_CheckoutBrand as CheckoutBrand, type index_d$7_CheckoutFields as CheckoutFields, type index_d$7_CheckoutHeader as CheckoutHeader, type index_d$7_CheckoutPolicies as CheckoutPolicies, type index_d$7_CheckoutSettings as CheckoutSettings, type index_d$7_CheckoutSettingsUpdatedEnvelope as CheckoutSettingsUpdatedEnvelope, type index_d$7_ContactUsPolicy as ContactUsPolicy, type index_d$7_CustomCheckoutPolicy as CustomCheckoutPolicy, type index_d$7_DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequest, type index_d$7_DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponse, type index_d$7_DigitalItemPolicy as DigitalItemPolicy, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$6 as EventMetadata, type index_d$7_GetCheckoutSettingsRequest as GetCheckoutSettingsRequest, type index_d$7_GetCheckoutSettingsResponse as GetCheckoutSettingsResponse, type index_d$7_GiftCardProviderWasProvisioned as GiftCardProviderWasProvisioned, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, type index_d$7_ListCheckoutSettingsRequest as ListCheckoutSettingsRequest, type index_d$7_ListCheckoutSettingsResponse as ListCheckoutSettingsResponse, type index_d$7_Logo as Logo, index_d$7_LogoSize as LogoSize, type MessageEnvelope$6 as MessageEnvelope, type index_d$7_PrivacyPolicy as PrivacyPolicy, type RestoreInfo$
|
|
21870
|
+
export { type ActionEvent$6 as ActionEvent, index_d$7_Alignment as Alignment, type BaseEventMetadata$6 as BaseEventMetadata, type index_d$7_CheckboxField as CheckboxField, type index_d$7_CheckoutBrand as CheckoutBrand, type index_d$7_CheckoutFields as CheckoutFields, type index_d$7_CheckoutHeader as CheckoutHeader, type index_d$7_CheckoutPolicies as CheckoutPolicies, type index_d$7_CheckoutSettings as CheckoutSettings, type index_d$7_CheckoutSettingsUpdatedEnvelope as CheckoutSettingsUpdatedEnvelope, type index_d$7_ContactUsPolicy as ContactUsPolicy, type index_d$7_CustomCheckoutPolicy as CustomCheckoutPolicy, type index_d$7_DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequest, type index_d$7_DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponse, type index_d$7_DigitalItemPolicy as DigitalItemPolicy, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$6 as EventMetadata, type index_d$7_GetCheckoutSettingsRequest as GetCheckoutSettingsRequest, type index_d$7_GetCheckoutSettingsResponse as GetCheckoutSettingsResponse, type index_d$7_GiftCardProviderWasProvisioned as GiftCardProviderWasProvisioned, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, type index_d$7_ListCheckoutSettingsRequest as ListCheckoutSettingsRequest, type index_d$7_ListCheckoutSettingsResponse as ListCheckoutSettingsResponse, type index_d$7_Logo as Logo, index_d$7_LogoSize as LogoSize, type MessageEnvelope$6 as MessageEnvelope, type index_d$7_PrivacyPolicy as PrivacyPolicy, type RestoreInfo$4 as RestoreInfo, type index_d$7_ReturnPolicy as ReturnPolicy, type index_d$7_TermsAndConditionsPolicy as TermsAndConditionsPolicy, type index_d$7_UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequest, type index_d$7_UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponse, WebhookIdentityType$6 as WebhookIdentityType, __metadata$7 as __metadata, index_d$7_getCheckoutSettings as getCheckoutSettings, index_d$7_onCheckoutSettingsUpdated as onCheckoutSettingsUpdated, index_d$7_updateCheckoutSettings as updateCheckoutSettings };
|
|
22198
21871
|
}
|
|
22199
21872
|
|
|
22200
21873
|
interface CheckoutTemplate {
|
|
@@ -23967,7 +23640,7 @@ interface DomainEventBodyOneOf$5 {
|
|
|
23967
23640
|
interface EntityCreatedEvent$5 {
|
|
23968
23641
|
entity?: string;
|
|
23969
23642
|
}
|
|
23970
|
-
interface
|
|
23643
|
+
interface RestoreInfo$3 {
|
|
23971
23644
|
deletedDate?: Date;
|
|
23972
23645
|
}
|
|
23973
23646
|
interface EntityUpdatedEvent$5 {
|
|
@@ -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;
|
|
@@ -24611,7 +24245,7 @@ declare const index_d$6_onCheckoutTemplateUsed: typeof onCheckoutTemplateUsed;
|
|
|
24611
24245
|
declare const index_d$6_queryCheckoutTemplates: typeof queryCheckoutTemplates;
|
|
24612
24246
|
declare const index_d$6_updateCheckoutTemplate: typeof updateCheckoutTemplate;
|
|
24613
24247
|
declare namespace index_d$6 {
|
|
24614
|
-
export { type ActionEvent$5 as ActionEvent, type AdditionalFee$1 as AdditionalFee, type Address$2 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type index_d$6_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type ApplicationError$4 as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, type index_d$6_AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$5 as BaseEventMetadata, type BuyerInfo$3 as BuyerInfo, type BuyerInfoIdOneOf$1 as BuyerInfoIdOneOf, type index_d$6_CalculationErrors as CalculationErrors, type index_d$6_CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOf, type index_d$6_CarrierError as CarrierError, type index_d$6_CarrierErrors as CarrierErrors, type index_d$6_CarrierServiceOption as CarrierServiceOption, type index_d$6_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$1 as CatalogReference, ChannelType$2 as ChannelType, ChargeType$1 as ChargeType, type index_d$6_Checkout as Checkout, type index_d$6_CheckoutCustomization as CheckoutCustomization, type index_d$6_CheckoutTemplate as CheckoutTemplate, type index_d$6_CheckoutTemplateCreatedEnvelope as CheckoutTemplateCreatedEnvelope, type index_d$6_CheckoutTemplateDeletedEnvelope as CheckoutTemplateDeletedEnvelope, type index_d$6_CheckoutTemplateUpdatedEnvelope as CheckoutTemplateUpdatedEnvelope, type index_d$6_CheckoutTemplateUsed as CheckoutTemplateUsed, type index_d$6_CheckoutTemplateUsedEnvelope as CheckoutTemplateUsedEnvelope, type index_d$6_CheckoutTemplatesQueryBuilder as CheckoutTemplatesQueryBuilder, type index_d$6_CheckoutTemplatesQueryResult as CheckoutTemplatesQueryResult, type Color$1 as Color, type index_d$6_ConversionInfo as ConversionInfo, type Coupon$1 as Coupon, type index_d$6_CreateAndRedirectToCheckoutRequest as CreateAndRedirectToCheckoutRequest, type index_d$6_CreateCheckoutFromTemplateRequest as CreateCheckoutFromTemplateRequest, type index_d$6_CreateCheckoutFromTemplateResponse as CreateCheckoutFromTemplateResponse, type index_d$6_CreateCheckoutFromTemplateResponseNonNullableFields as CreateCheckoutFromTemplateResponseNonNullableFields, type index_d$6_CreateCheckoutTemplateRequest as CreateCheckoutTemplateRequest, type index_d$6_CreateCheckoutTemplateResponse as CreateCheckoutTemplateResponse, type index_d$6_CreateCheckoutTemplateResponseNonNullableFields as CreateCheckoutTemplateResponseNonNullableFields, type CreatedBy$1 as CreatedBy, type index_d$6_CreatedByIdOneOf as CreatedByIdOneOf, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, type index_d$6_CustomContentReference as CustomContentReference, type CustomField$2 as CustomField, type index_d$6_CustomLineItem as CustomLineItem, type index_d$6_CustomSettings as CustomSettings, type index_d$6_DeleteCheckoutTemplateRequest as DeleteCheckoutTemplateRequest, type index_d$6_DeleteCheckoutTemplateResponse as DeleteCheckoutTemplateResponse, type DeliveryLogistics$1 as DeliveryLogistics, type DeliveryTimeSlot$1 as DeliveryTimeSlot, type index_d$6_Description as Description, type DescriptionLine$1 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$1 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$1 as DescriptionLineName, DescriptionLineType$1 as DescriptionLineType, type DescriptionLineValueOneOf$1 as DescriptionLineValueOneOf, type Details$1 as Details, type DetailsKindOneOf$1 as DetailsKindOneOf, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type ExtendedFields$2 as ExtendedFields, index_d$6_FallbackReason as FallbackReason, type FieldViolation$1 as FieldViolation, index_d$6_FileType as FileType, type FullAddressContactDetails$1 as FullAddressContactDetails, type index_d$6_GetCheckoutTemplateRequest as GetCheckoutTemplateRequest, type index_d$6_GetCheckoutTemplateResponse as GetCheckoutTemplateResponse, type index_d$6_GetCheckoutTemplateResponseNonNullableFields as GetCheckoutTemplateResponseNonNullableFields, type GiftCard$1 as GiftCard, type index_d$6_Group as Group, type index_d$6_HeadersEntry as HeadersEntry, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$6_InvalidMembership as InvalidMembership, type index_d$6_ItemAvailabilityInfo as ItemAvailabilityInfo, index_d$6_ItemAvailabilityStatus as ItemAvailabilityStatus, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, JurisdictionType$1 as JurisdictionType, type LineItem$2 as LineItem, type LineItemDiscount$1 as LineItemDiscount, index_d$6_ManualCalculationReason as ManualCalculationReason, type index_d$6_Membership as Membership, type MembershipName$2 as MembershipName, type index_d$6_MembershipOptions as MembershipOptions, type index_d$6_MembershipPaymentCredits as MembershipPaymentCredits, type MerchantDiscount$1 as MerchantDiscount, type MessageEnvelope$5 as MessageEnvelope, type index_d$6_MultiCurrencyPrice as MultiCurrencyPrice, index_d$6_NameInLineItem as NameInLineItem, index_d$6_NameInOther as NameInOther, type index_d$6_Other as Other, type index_d$6_OtherCharge as OtherCharge, PaymentOptionType$1 as PaymentOptionType, type PhysicalProperties$1 as PhysicalProperties, type PickupDetails$2 as PickupDetails, PickupMethod$1 as PickupMethod, type PlainTextValue$1 as PlainTextValue, type PriceDescription$1 as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, type index_d$6_QueryCheckoutTemplatesRequest as QueryCheckoutTemplatesRequest, type index_d$6_QueryCheckoutTemplatesResponse as QueryCheckoutTemplatesResponse, type index_d$6_QueryCheckoutTemplatesResponseNonNullableFields as QueryCheckoutTemplatesResponseNonNullableFields, index_d$6_RateType as RateType, type index_d$6_RawHttpResponse as RawHttpResponse, RuleType$1 as RuleType, type index_d$6_Scope as Scope, type index_d$6_SecuredMedia as SecuredMedia, type index_d$6_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type index_d$6_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type index_d$6_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, type index_d$6_SelectedMembership as SelectedMembership, type index_d$6_SelectedMemberships as SelectedMemberships, type ServiceProperties$1 as ServiceProperties, index_d$6_Severity as Severity, type ShippingInfo$1 as ShippingInfo, type index_d$6_ShippingOption as ShippingOption, type ShippingPrice$1 as ShippingPrice, type ShippingRegion$1 as ShippingRegion, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, index_d$6_Status as Status, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$2 as SubscriptionFrequency, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$2 as SubscriptionSettings, type SystemError$1 as SystemError, type index_d$6_Target as Target, type index_d$6_TargetLineItem as TargetLineItem, type index_d$6_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type index_d$6_TaxBreakdown as TaxBreakdown, type index_d$6_TaxCalculationDetails as TaxCalculationDetails, type index_d$6_TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOf, type index_d$6_TaxRateBreakdown as TaxRateBreakdown, type TaxSummary$1 as TaxSummary, type index_d$6_Title as Title, type
|
|
24248
|
+
export { type ActionEvent$5 as ActionEvent, type AdditionalFee$1 as AdditionalFee, type Address$2 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type index_d$6_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type ApplicationError$4 as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, type index_d$6_AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$5 as BaseEventMetadata, type BuyerInfo$3 as BuyerInfo, type BuyerInfoIdOneOf$1 as BuyerInfoIdOneOf, type index_d$6_CalculationErrors as CalculationErrors, type index_d$6_CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOf, type index_d$6_CarrierError as CarrierError, type index_d$6_CarrierErrors as CarrierErrors, type index_d$6_CarrierServiceOption as CarrierServiceOption, type index_d$6_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$1 as CatalogReference, ChannelType$2 as ChannelType, ChargeType$1 as ChargeType, type index_d$6_Checkout as Checkout, type index_d$6_CheckoutCustomization as CheckoutCustomization, type index_d$6_CheckoutTemplate as CheckoutTemplate, type index_d$6_CheckoutTemplateCreatedEnvelope as CheckoutTemplateCreatedEnvelope, type index_d$6_CheckoutTemplateDeletedEnvelope as CheckoutTemplateDeletedEnvelope, type index_d$6_CheckoutTemplateUpdatedEnvelope as CheckoutTemplateUpdatedEnvelope, type index_d$6_CheckoutTemplateUsed as CheckoutTemplateUsed, type index_d$6_CheckoutTemplateUsedEnvelope as CheckoutTemplateUsedEnvelope, type index_d$6_CheckoutTemplatesQueryBuilder as CheckoutTemplatesQueryBuilder, type index_d$6_CheckoutTemplatesQueryResult as CheckoutTemplatesQueryResult, type Color$1 as Color, type index_d$6_ConversionInfo as ConversionInfo, type Coupon$1 as Coupon, type index_d$6_CreateAndRedirectToCheckoutRequest as CreateAndRedirectToCheckoutRequest, type index_d$6_CreateCheckoutFromTemplateRequest as CreateCheckoutFromTemplateRequest, type index_d$6_CreateCheckoutFromTemplateResponse as CreateCheckoutFromTemplateResponse, type index_d$6_CreateCheckoutFromTemplateResponseNonNullableFields as CreateCheckoutFromTemplateResponseNonNullableFields, type index_d$6_CreateCheckoutTemplateRequest as CreateCheckoutTemplateRequest, type index_d$6_CreateCheckoutTemplateResponse as CreateCheckoutTemplateResponse, type index_d$6_CreateCheckoutTemplateResponseNonNullableFields as CreateCheckoutTemplateResponseNonNullableFields, type CreatedBy$1 as CreatedBy, type index_d$6_CreatedByIdOneOf as CreatedByIdOneOf, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, type index_d$6_CustomContentReference as CustomContentReference, type CustomField$2 as CustomField, type index_d$6_CustomLineItem as CustomLineItem, type index_d$6_CustomSettings as CustomSettings, type index_d$6_DeleteCheckoutTemplateRequest as DeleteCheckoutTemplateRequest, type index_d$6_DeleteCheckoutTemplateResponse as DeleteCheckoutTemplateResponse, type DeliveryLogistics$1 as DeliveryLogistics, type DeliveryTimeSlot$1 as DeliveryTimeSlot, type index_d$6_Description as Description, type DescriptionLine$1 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$1 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$1 as DescriptionLineName, DescriptionLineType$1 as DescriptionLineType, type DescriptionLineValueOneOf$1 as DescriptionLineValueOneOf, type Details$1 as Details, type DetailsKindOneOf$1 as DetailsKindOneOf, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type ExtendedFields$2 as ExtendedFields, index_d$6_FallbackReason as FallbackReason, type FieldViolation$1 as FieldViolation, index_d$6_FileType as FileType, type FullAddressContactDetails$1 as FullAddressContactDetails, type index_d$6_GetCheckoutTemplateRequest as GetCheckoutTemplateRequest, type index_d$6_GetCheckoutTemplateResponse as GetCheckoutTemplateResponse, type index_d$6_GetCheckoutTemplateResponseNonNullableFields as GetCheckoutTemplateResponseNonNullableFields, type GiftCard$1 as GiftCard, type index_d$6_Group as Group, type index_d$6_HeadersEntry as HeadersEntry, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$6_InvalidMembership as InvalidMembership, type index_d$6_ItemAvailabilityInfo as ItemAvailabilityInfo, index_d$6_ItemAvailabilityStatus as ItemAvailabilityStatus, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, JurisdictionType$1 as JurisdictionType, type LineItem$2 as LineItem, type LineItemDiscount$1 as LineItemDiscount, index_d$6_ManualCalculationReason as ManualCalculationReason, type index_d$6_Membership as Membership, type MembershipName$2 as MembershipName, type index_d$6_MembershipOptions as MembershipOptions, type index_d$6_MembershipPaymentCredits as MembershipPaymentCredits, type MerchantDiscount$1 as MerchantDiscount, type MessageEnvelope$5 as MessageEnvelope, type index_d$6_MultiCurrencyPrice as MultiCurrencyPrice, index_d$6_NameInLineItem as NameInLineItem, index_d$6_NameInOther as NameInOther, type index_d$6_Other as Other, type index_d$6_OtherCharge as OtherCharge, PaymentOptionType$1 as PaymentOptionType, type PhysicalProperties$1 as PhysicalProperties, type PickupDetails$2 as PickupDetails, PickupMethod$1 as PickupMethod, type PlainTextValue$1 as PlainTextValue, type PriceDescription$1 as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, type index_d$6_QueryCheckoutTemplatesRequest as QueryCheckoutTemplatesRequest, type index_d$6_QueryCheckoutTemplatesResponse as QueryCheckoutTemplatesResponse, type index_d$6_QueryCheckoutTemplatesResponseNonNullableFields as QueryCheckoutTemplatesResponseNonNullableFields, index_d$6_RateType as RateType, type index_d$6_RawHttpResponse as RawHttpResponse, type RestoreInfo$3 as RestoreInfo, RuleType$1 as RuleType, type index_d$6_Scope as Scope, type index_d$6_SecuredMedia as SecuredMedia, type index_d$6_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type index_d$6_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type index_d$6_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, type index_d$6_SelectedMembership as SelectedMembership, type index_d$6_SelectedMemberships as SelectedMemberships, type ServiceProperties$1 as ServiceProperties, index_d$6_Severity as Severity, type ShippingInfo$1 as ShippingInfo, type index_d$6_ShippingOption as ShippingOption, type ShippingPrice$1 as ShippingPrice, type ShippingRegion$1 as ShippingRegion, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, index_d$6_Status as Status, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$2 as SubscriptionFrequency, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$2 as SubscriptionSettings, type SystemError$1 as SystemError, type index_d$6_Target as Target, type index_d$6_TargetLineItem as TargetLineItem, type index_d$6_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type index_d$6_TaxBreakdown as TaxBreakdown, type index_d$6_TaxCalculationDetails as TaxCalculationDetails, type index_d$6_TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOf, type index_d$6_TaxRateBreakdown as TaxRateBreakdown, type TaxSummary$1 as TaxSummary, type index_d$6_Title as Title, type index_d$6_UpdateCheckoutTemplate as UpdateCheckoutTemplate, type index_d$6_UpdateCheckoutTemplateRequest as UpdateCheckoutTemplateRequest, type index_d$6_UpdateCheckoutTemplateResponse as UpdateCheckoutTemplateResponse, type index_d$6_UpdateCheckoutTemplateResponseNonNullableFields as UpdateCheckoutTemplateResponseNonNullableFields, type index_d$6_V1LineItem as V1LineItem, type ValidationError$1 as ValidationError, type VatId$2 as VatId, VatType$2 as VatType, type index_d$6_Violation as Violation, type index_d$6_WebClientCustomization as WebClientCustomization, WebhookIdentityType$5 as WebhookIdentityType, WeightUnit$2 as WeightUnit, __metadata$6 as __metadata, index_d$6_createCheckoutFromTemplate as createCheckoutFromTemplate, index_d$6_createCheckoutTemplate as createCheckoutTemplate, index_d$6_deleteCheckoutTemplate as deleteCheckoutTemplate, index_d$6_getCheckoutTemplate as getCheckoutTemplate, index_d$6_onCheckoutTemplateCreated as onCheckoutTemplateCreated, index_d$6_onCheckoutTemplateDeleted as onCheckoutTemplateDeleted, index_d$6_onCheckoutTemplateUpdated as onCheckoutTemplateUpdated, index_d$6_onCheckoutTemplateUsed as onCheckoutTemplateUsed, index_d$6_queryCheckoutTemplates as queryCheckoutTemplates, index_d$6_updateCheckoutTemplate as updateCheckoutTemplate };
|
|
24615
24249
|
}
|
|
24616
24250
|
|
|
24617
24251
|
/**
|
|
@@ -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
|
};
|