@wix/ecom 1.0.778 → 1.0.780
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.
- package/package.json +4 -4
- package/type-bundles/context.bundle.d.ts +349 -388
- package/type-bundles/index.bundle.d.ts +349 -388
- package/type-bundles/meta.bundle.d.ts +102 -28
|
@@ -63,16 +63,16 @@ type APIMetadata = {
|
|
|
63
63
|
packageName?: string;
|
|
64
64
|
};
|
|
65
65
|
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
-
type EventDefinition$
|
|
66
|
+
type EventDefinition$g<Payload = unknown, Type extends string = string> = {
|
|
67
67
|
__type: 'event-definition';
|
|
68
68
|
type: Type;
|
|
69
69
|
isDomainEvent?: boolean;
|
|
70
70
|
transformations?: (envelope: unknown) => Payload;
|
|
71
71
|
__payload: Payload;
|
|
72
72
|
};
|
|
73
|
-
declare function EventDefinition$
|
|
74
|
-
type EventHandler$
|
|
75
|
-
type BuildEventDefinition$
|
|
73
|
+
declare function EventDefinition$g<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$g<Payload, Type>;
|
|
74
|
+
type EventHandler$g<T extends EventDefinition$g> = (payload: T['__payload']) => void | Promise<void>;
|
|
75
|
+
type BuildEventDefinition$g<T extends EventDefinition$g<any, string>> = (handler: EventHandler$g<T>) => void;
|
|
76
76
|
|
|
77
77
|
type ServicePluginMethodInput = {
|
|
78
78
|
request: any;
|
|
@@ -367,7 +367,7 @@ ConditionalKeys<Base, Condition>
|
|
|
367
367
|
* can either be a REST module or a host module.
|
|
368
368
|
* This type is recursive, so it can describe nested modules.
|
|
369
369
|
*/
|
|
370
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$
|
|
370
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$g<any> | ServicePluginDefinition<any> | {
|
|
371
371
|
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
372
|
};
|
|
373
373
|
/**
|
|
@@ -380,7 +380,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
|
|
|
380
380
|
done: T;
|
|
381
381
|
recurse: T extends {
|
|
382
382
|
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$
|
|
383
|
+
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$g<any> ? BuildEventDefinition$g<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
384
384
|
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
385
|
-1,
|
|
386
386
|
0,
|
|
@@ -1323,7 +1323,7 @@ interface UpdateDiscountRuleResponseNonNullableFields {
|
|
|
1323
1323
|
interface QueryDiscountRulesResponseNonNullableFields {
|
|
1324
1324
|
discountRules: DiscountRuleNonNullableFields$6[];
|
|
1325
1325
|
}
|
|
1326
|
-
interface BaseEventMetadata$
|
|
1326
|
+
interface BaseEventMetadata$f {
|
|
1327
1327
|
/** App instance ID. */
|
|
1328
1328
|
instanceId?: string | null;
|
|
1329
1329
|
/** Event type. */
|
|
@@ -1331,7 +1331,7 @@ interface BaseEventMetadata$g {
|
|
|
1331
1331
|
/** The identification type and identity data. */
|
|
1332
1332
|
identity?: IdentificationData$j;
|
|
1333
1333
|
}
|
|
1334
|
-
interface EventMetadata$
|
|
1334
|
+
interface EventMetadata$f extends BaseEventMetadata$f {
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Unique event ID.
|
|
1337
1337
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1371,14 +1371,14 @@ interface EventMetadata$g extends BaseEventMetadata$g {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
interface DiscountRuleCreatedEnvelope {
|
|
1373
1373
|
entity: DiscountRule$7;
|
|
1374
|
-
metadata: EventMetadata$
|
|
1374
|
+
metadata: EventMetadata$f;
|
|
1375
1375
|
}
|
|
1376
1376
|
interface DiscountRuleUpdatedEnvelope {
|
|
1377
1377
|
entity: DiscountRule$7;
|
|
1378
|
-
metadata: EventMetadata$
|
|
1378
|
+
metadata: EventMetadata$f;
|
|
1379
1379
|
}
|
|
1380
1380
|
interface DiscountRuleDeletedEnvelope {
|
|
1381
|
-
metadata: EventMetadata$
|
|
1381
|
+
metadata: EventMetadata$f;
|
|
1382
1382
|
}
|
|
1383
1383
|
interface UpdateDiscountRule {
|
|
1384
1384
|
/**
|
|
@@ -1569,20 +1569,20 @@ interface QueryDiscountRulesSignature {
|
|
|
1569
1569
|
*/
|
|
1570
1570
|
(): DiscountRulesQueryBuilder;
|
|
1571
1571
|
}
|
|
1572
|
-
declare const onDiscountRuleCreated$1: EventDefinition$
|
|
1573
|
-
declare const onDiscountRuleUpdated$1: EventDefinition$
|
|
1574
|
-
declare const onDiscountRuleDeleted$1: EventDefinition$
|
|
1572
|
+
declare const onDiscountRuleCreated$1: EventDefinition$g<DiscountRuleCreatedEnvelope, "wix.ecom.discounts.v1.discount_rule_created">;
|
|
1573
|
+
declare const onDiscountRuleUpdated$1: EventDefinition$g<DiscountRuleUpdatedEnvelope, "wix.ecom.discounts.v1.discount_rule_updated">;
|
|
1574
|
+
declare const onDiscountRuleDeleted$1: EventDefinition$g<DiscountRuleDeletedEnvelope, "wix.ecom.discounts.v1.discount_rule_deleted">;
|
|
1575
1575
|
|
|
1576
|
-
type EventDefinition$
|
|
1576
|
+
type EventDefinition$f<Payload = unknown, Type extends string = string> = {
|
|
1577
1577
|
__type: 'event-definition';
|
|
1578
1578
|
type: Type;
|
|
1579
1579
|
isDomainEvent?: boolean;
|
|
1580
1580
|
transformations?: (envelope: unknown) => Payload;
|
|
1581
1581
|
__payload: Payload;
|
|
1582
1582
|
};
|
|
1583
|
-
declare function EventDefinition$
|
|
1584
|
-
type EventHandler$
|
|
1585
|
-
type BuildEventDefinition$
|
|
1583
|
+
declare function EventDefinition$f<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$f<Payload, Type>;
|
|
1584
|
+
type EventHandler$f<T extends EventDefinition$f> = (payload: T['__payload']) => void | Promise<void>;
|
|
1585
|
+
type BuildEventDefinition$f<T extends EventDefinition$f<any, string>> = (handler: EventHandler$f<T>) => void;
|
|
1586
1586
|
|
|
1587
1587
|
declare global {
|
|
1588
1588
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1591,7 +1591,7 @@ declare global {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
|
|
1594
|
-
declare function createEventModule$
|
|
1594
|
+
declare function createEventModule$f<T extends EventDefinition$f<any, string>>(eventDefinition: T): BuildEventDefinition$f<T> & T;
|
|
1595
1595
|
|
|
1596
1596
|
declare const createDiscountRule: MaybeContext<BuildRESTFunction<typeof createDiscountRule$1> & typeof createDiscountRule$1>;
|
|
1597
1597
|
declare const getDiscountRule: MaybeContext<BuildRESTFunction<typeof getDiscountRule$1> & typeof getDiscountRule$1>;
|
|
@@ -1603,19 +1603,19 @@ type _publicOnDiscountRuleCreatedType = typeof onDiscountRuleCreated$1;
|
|
|
1603
1603
|
/**
|
|
1604
1604
|
* Triggered when a discount rule is created.
|
|
1605
1605
|
*/
|
|
1606
|
-
declare const onDiscountRuleCreated: ReturnType<typeof createEventModule$
|
|
1606
|
+
declare const onDiscountRuleCreated: ReturnType<typeof createEventModule$f<_publicOnDiscountRuleCreatedType>>;
|
|
1607
1607
|
|
|
1608
1608
|
type _publicOnDiscountRuleUpdatedType = typeof onDiscountRuleUpdated$1;
|
|
1609
1609
|
/**
|
|
1610
1610
|
* Triggered when a discount rule is updated.
|
|
1611
1611
|
*/
|
|
1612
|
-
declare const onDiscountRuleUpdated: ReturnType<typeof createEventModule$
|
|
1612
|
+
declare const onDiscountRuleUpdated: ReturnType<typeof createEventModule$f<_publicOnDiscountRuleUpdatedType>>;
|
|
1613
1613
|
|
|
1614
1614
|
type _publicOnDiscountRuleDeletedType = typeof onDiscountRuleDeleted$1;
|
|
1615
1615
|
/**
|
|
1616
1616
|
* Triggered when a discount rule is deleted.
|
|
1617
1617
|
*/
|
|
1618
|
-
declare const onDiscountRuleDeleted: ReturnType<typeof createEventModule$
|
|
1618
|
+
declare const onDiscountRuleDeleted: ReturnType<typeof createEventModule$f<_publicOnDiscountRuleDeletedType>>;
|
|
1619
1619
|
|
|
1620
1620
|
type context$o_ActiveTimeInfo = ActiveTimeInfo;
|
|
1621
1621
|
type context$o_And = And;
|
|
@@ -1680,7 +1680,7 @@ declare const context$o_onDiscountRuleUpdated: typeof onDiscountRuleUpdated;
|
|
|
1680
1680
|
declare const context$o_queryDiscountRules: typeof queryDiscountRules;
|
|
1681
1681
|
declare const context$o_updateDiscountRule: typeof updateDiscountRule;
|
|
1682
1682
|
declare namespace context$o {
|
|
1683
|
-
export { type ActionEvent$j as ActionEvent, type context$o_ActiveTimeInfo as ActiveTimeInfo, type context$o_And as And, type AppliedDiscount$7 as AppliedDiscount, type context$o_AppliedDiscountRule as AppliedDiscountRule, context$o_AppliedSubjectType as AppliedSubjectType, type BaseEventMetadata$
|
|
1683
|
+
export { type ActionEvent$j as ActionEvent, type context$o_ActiveTimeInfo as ActiveTimeInfo, type context$o_And as And, type AppliedDiscount$7 as AppliedDiscount, type context$o_AppliedDiscountRule as AppliedDiscountRule, context$o_AppliedSubjectType as AppliedSubjectType, type BaseEventMetadata$f as BaseEventMetadata, type context$o_BuyXGetYInfo as BuyXGetYInfo, type context$o_CatalogItemFilter as CatalogItemFilter, type CatalogReference$9 as CatalogReference, type context$o_CreateDiscountRuleRequest as CreateDiscountRuleRequest, type context$o_CreateDiscountRuleResponse as CreateDiscountRuleResponse, type context$o_CreateDiscountRuleResponseNonNullableFields as CreateDiscountRuleResponseNonNullableFields, type CursorPaging$b as CursorPaging, type Cursors$b as Cursors, type context$o_Custom as Custom, type context$o_CustomFilter as CustomFilter, type context$o_CustomerBuy as CustomerBuy, type context$o_CustomerBuyConditionOneOf as CustomerBuyConditionOneOf, type context$o_CustomerGet as CustomerGet, type context$o_DeleteDiscountRuleRequest as DeleteDiscountRuleRequest, type context$o_DeleteDiscountRuleResponse as DeleteDiscountRuleResponse, type Discount$3 as Discount, type context$o_DiscountDiscountOneOf as DiscountDiscountOneOf, type DiscountRule$7 as DiscountRule, type context$o_DiscountRuleCreatedEnvelope as DiscountRuleCreatedEnvelope, type context$o_DiscountRuleDeletedEnvelope as DiscountRuleDeletedEnvelope, type DiscountRuleName$7 as DiscountRuleName, type DiscountRuleNonNullableFields$6 as DiscountRuleNonNullableFields, type context$o_DiscountRuleUpdatedEnvelope as DiscountRuleUpdatedEnvelope, type context$o_DiscountRuleUsageLimitReached as DiscountRuleUsageLimitReached, type context$o_DiscountRulesQueryBuilder as DiscountRulesQueryBuilder, type context$o_DiscountRulesQueryResult as DiscountRulesQueryResult, type context$o_DiscountSettings as DiscountSettings, type context$o_DiscountTrigger as DiscountTrigger, type context$o_DiscountTriggerTriggerOneOf as DiscountTriggerTriggerOneOf, DiscountType$7 as DiscountType, type context$o_Discounts as Discounts, type DomainEvent$j as DomainEvent, type DomainEventBodyOneOf$j as DomainEventBodyOneOf, type Empty$e as Empty, type EntityCreatedEvent$j as EntityCreatedEvent, type EntityDeletedEvent$j as EntityDeletedEvent, type EntityUpdatedEvent$j as EntityUpdatedEvent, type EventMetadata$f as EventMetadata, type ExtendedFields$a as ExtendedFields, type context$o_GetAppliedDiscountsRequest as GetAppliedDiscountsRequest, type context$o_GetAppliedDiscountsResponse as GetAppliedDiscountsResponse, type context$o_GetDiscountRuleRequest as GetDiscountRuleRequest, type context$o_GetDiscountRuleResponse as GetDiscountRuleResponse, type context$o_GetDiscountRuleResponseNonNullableFields as GetDiscountRuleResponseNonNullableFields, type IdentificationData$j as IdentificationData, type IdentificationDataIdOneOf$j as IdentificationDataIdOneOf, type context$o_ItemQuantityRange as ItemQuantityRange, type LineItem$7 as LineItem, type MessageEnvelope$j as MessageEnvelope, type MultiCurrencyPrice$6 as MultiCurrencyPrice, type context$o_Or as Or, type PlatformPaging$2 as PlatformPaging, type PlatformPagingMetadata$2 as PlatformPagingMetadata, type PlatformQuery$2 as PlatformQuery, type PlatformQueryPagingMethodOneOf$2 as PlatformQueryPagingMethodOneOf, type context$o_QueryDiscountRulesRequest as QueryDiscountRulesRequest, type context$o_QueryDiscountRulesResponse as QueryDiscountRulesResponse, type context$o_QueryDiscountRulesResponseNonNullableFields as QueryDiscountRulesResponseNonNullableFields, type RestoreInfo$j as RestoreInfo, type Scope$5 as Scope, type context$o_ScopeScopeItemsOneOf as ScopeScopeItemsOneOf, context$o_ScopeType as ScopeType, SortOrder$b as SortOrder, type Sorting$b as Sorting, type context$o_SpecificItemsInfo as SpecificItemsInfo, Status$5 as Status, type context$o_SubtotalRange as SubtotalRange, context$o_TriggerType as TriggerType, context$o_Type as Type, type context$o_UpdateDiscountRule as UpdateDiscountRule, type context$o_UpdateDiscountRuleRequest as UpdateDiscountRuleRequest, type context$o_UpdateDiscountRuleResponse as UpdateDiscountRuleResponse, type context$o_UpdateDiscountRuleResponseNonNullableFields as UpdateDiscountRuleResponseNonNullableFields, WebhookIdentityType$j as WebhookIdentityType, type context$o__publicOnDiscountRuleCreatedType as _publicOnDiscountRuleCreatedType, type context$o__publicOnDiscountRuleDeletedType as _publicOnDiscountRuleDeletedType, type context$o__publicOnDiscountRuleUpdatedType as _publicOnDiscountRuleUpdatedType, context$o_createDiscountRule as createDiscountRule, context$o_deleteDiscountRule as deleteDiscountRule, context$o_getDiscountRule as getDiscountRule, context$o_onDiscountRuleCreated as onDiscountRuleCreated, context$o_onDiscountRuleDeleted as onDiscountRuleDeleted, context$o_onDiscountRuleUpdated as onDiscountRuleUpdated, onDiscountRuleCreated$1 as publicOnDiscountRuleCreated, onDiscountRuleDeleted$1 as publicOnDiscountRuleDeleted, onDiscountRuleUpdated$1 as publicOnDiscountRuleUpdated, context$o_queryDiscountRules as queryDiscountRules, context$o_updateDiscountRule as updateDiscountRule };
|
|
1684
1684
|
}
|
|
1685
1685
|
|
|
1686
1686
|
interface Invoice {
|
|
@@ -2805,7 +2805,7 @@ interface RawHttpResponseNonNullableFields$1 {
|
|
|
2805
2805
|
body: Uint8Array;
|
|
2806
2806
|
headers: HeadersEntryNonNullableFields$1[];
|
|
2807
2807
|
}
|
|
2808
|
-
interface BaseEventMetadata$
|
|
2808
|
+
interface BaseEventMetadata$e {
|
|
2809
2809
|
/** App instance ID. */
|
|
2810
2810
|
instanceId?: string | null;
|
|
2811
2811
|
/** Event type. */
|
|
@@ -2813,7 +2813,7 @@ interface BaseEventMetadata$f {
|
|
|
2813
2813
|
/** The identification type and identity data. */
|
|
2814
2814
|
identity?: IdentificationData$h;
|
|
2815
2815
|
}
|
|
2816
|
-
interface EventMetadata$
|
|
2816
|
+
interface EventMetadata$e extends BaseEventMetadata$e {
|
|
2817
2817
|
/**
|
|
2818
2818
|
* Unique event ID.
|
|
2819
2819
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -2853,7 +2853,7 @@ interface EventMetadata$f extends BaseEventMetadata$f {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
interface AbandonedCheckoutRecoveredEnvelope {
|
|
2855
2855
|
data: AbandonedCheckoutRecovered;
|
|
2856
|
-
metadata: EventMetadata$
|
|
2856
|
+
metadata: EventMetadata$e;
|
|
2857
2857
|
}
|
|
2858
2858
|
interface QueryCursorResult$8 {
|
|
2859
2859
|
cursors: CommonCursors;
|
|
@@ -2972,18 +2972,18 @@ interface RedirectToCheckoutSignature {
|
|
|
2972
2972
|
*/
|
|
2973
2973
|
(abandonedCheckoutId: string, metasiteId: string): Promise<RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
|
|
2974
2974
|
}
|
|
2975
|
-
declare const onAbandonedCheckoutRecovered$1: EventDefinition$
|
|
2975
|
+
declare const onAbandonedCheckoutRecovered$1: EventDefinition$g<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
|
|
2976
2976
|
|
|
2977
|
-
type EventDefinition$
|
|
2977
|
+
type EventDefinition$e<Payload = unknown, Type extends string = string> = {
|
|
2978
2978
|
__type: 'event-definition';
|
|
2979
2979
|
type: Type;
|
|
2980
2980
|
isDomainEvent?: boolean;
|
|
2981
2981
|
transformations?: (envelope: unknown) => Payload;
|
|
2982
2982
|
__payload: Payload;
|
|
2983
2983
|
};
|
|
2984
|
-
declare function EventDefinition$
|
|
2985
|
-
type EventHandler$
|
|
2986
|
-
type BuildEventDefinition$
|
|
2984
|
+
declare function EventDefinition$e<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$e<Payload, Type>;
|
|
2985
|
+
type EventHandler$e<T extends EventDefinition$e> = (payload: T['__payload']) => void | Promise<void>;
|
|
2986
|
+
type BuildEventDefinition$e<T extends EventDefinition$e<any, string>> = (handler: EventHandler$e<T>) => void;
|
|
2987
2987
|
|
|
2988
2988
|
declare global {
|
|
2989
2989
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -2992,7 +2992,7 @@ declare global {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
|
-
declare function createEventModule$
|
|
2995
|
+
declare function createEventModule$e<T extends EventDefinition$e<any, string>>(eventDefinition: T): BuildEventDefinition$e<T> & T;
|
|
2996
2996
|
|
|
2997
2997
|
declare const getAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof getAbandonedCheckout$1> & typeof getAbandonedCheckout$1>;
|
|
2998
2998
|
declare const deleteAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof deleteAbandonedCheckout$1> & typeof deleteAbandonedCheckout$1>;
|
|
@@ -3003,7 +3003,7 @@ type _publicOnAbandonedCheckoutRecoveredType = typeof onAbandonedCheckoutRecover
|
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Triggered when an abandoned checkout is recovered (the customer completes the checkout).
|
|
3005
3005
|
*/
|
|
3006
|
-
declare const onAbandonedCheckoutRecovered: ReturnType<typeof createEventModule$
|
|
3006
|
+
declare const onAbandonedCheckoutRecovered: ReturnType<typeof createEventModule$e<_publicOnAbandonedCheckoutRecoveredType>>;
|
|
3007
3007
|
|
|
3008
3008
|
type context$l_AbandonedCheckout = AbandonedCheckout;
|
|
3009
3009
|
type context$l_AbandonedCheckoutNonNullableFields = AbandonedCheckoutNonNullableFields;
|
|
@@ -3049,7 +3049,7 @@ declare const context$l_onAbandonedCheckoutRecovered: typeof onAbandonedCheckout
|
|
|
3049
3049
|
declare const context$l_queryAbandonedCheckouts: typeof queryAbandonedCheckouts;
|
|
3050
3050
|
declare const context$l_redirectToCheckout: typeof redirectToCheckout;
|
|
3051
3051
|
declare namespace context$l {
|
|
3052
|
-
export { type context$l_AbandonedCheckout as AbandonedCheckout, type context$l_AbandonedCheckoutNonNullableFields as AbandonedCheckoutNonNullableFields, type context$l_AbandonedCheckoutRecovered as AbandonedCheckoutRecovered, type context$l_AbandonedCheckoutRecoveredEnvelope as AbandonedCheckoutRecoveredEnvelope, type context$l_AbandonedCheckoutsQueryBuilder as AbandonedCheckoutsQueryBuilder, type context$l_AbandonedCheckoutsQueryResult as AbandonedCheckoutsQueryResult, type ActionEvent$h as ActionEvent, type Activity$3 as Activity, ActivityType$3 as ActivityType, type context$l_AddAbandonedCheckoutActivityRequest as AddAbandonedCheckoutActivityRequest, type context$l_AddAbandonedCheckoutActivityResponse as AddAbandonedCheckoutActivityResponse, type BaseEventMetadata$
|
|
3052
|
+
export { type context$l_AbandonedCheckout as AbandonedCheckout, type context$l_AbandonedCheckoutNonNullableFields as AbandonedCheckoutNonNullableFields, type context$l_AbandonedCheckoutRecovered as AbandonedCheckoutRecovered, type context$l_AbandonedCheckoutRecoveredEnvelope as AbandonedCheckoutRecoveredEnvelope, type context$l_AbandonedCheckoutsQueryBuilder as AbandonedCheckoutsQueryBuilder, type context$l_AbandonedCheckoutsQueryResult as AbandonedCheckoutsQueryResult, type ActionEvent$h as ActionEvent, type Activity$3 as Activity, ActivityType$3 as ActivityType, type context$l_AddAbandonedCheckoutActivityRequest as AddAbandonedCheckoutActivityRequest, type context$l_AddAbandonedCheckoutActivityResponse as AddAbandonedCheckoutActivityResponse, type BaseEventMetadata$e as BaseEventMetadata, type BuyerInfo$8 as BuyerInfo, type Cancel$1 as Cancel, type context$l_CartAbandonedEvent as CartAbandonedEvent, type context$l_CartRecoveredEvent as CartRecoveredEvent, type context$l_CommonCursorPaging as CommonCursorPaging, type context$l_CommonCursors as CommonCursors, type context$l_CommonPaging as CommonPaging, type context$l_CommonPagingMetadataV2 as CommonPagingMetadataV2, context$l_CommonSortOrder as CommonSortOrder, type context$l_CommonSorting as CommonSorting, type Complete$1 as Complete, type CursorPaging$a as CursorPaging, type Cursors$a as Cursors, type context$l_DeleteAbandonedCheckoutRequest as DeleteAbandonedCheckoutRequest, type context$l_DeleteAbandonedCheckoutResponse as DeleteAbandonedCheckoutResponse, type DomainEvent$h as DomainEvent, type DomainEventBodyOneOf$h as DomainEventBodyOneOf, type Empty$c as Empty, type EntityCreatedEvent$h as EntityCreatedEvent, type EntityDeletedEvent$h as EntityDeletedEvent, type EntityUpdatedEvent$h as EntityUpdatedEvent, type EventMetadata$e as EventMetadata, type FullAddressContactDetails$6 as FullAddressContactDetails, type context$l_GetAbandonedCheckoutRequest as GetAbandonedCheckoutRequest, type context$l_GetAbandonedCheckoutResponse as GetAbandonedCheckoutResponse, type context$l_GetAbandonedCheckoutResponseNonNullableFields as GetAbandonedCheckoutResponseNonNullableFields, type HeadersEntry$1 as HeadersEntry, type IdentificationData$h as IdentificationData, type IdentificationDataIdOneOf$h as IdentificationDataIdOneOf, context$l_Identity as Identity, type MessageEnvelope$h as MessageEnvelope, context$l_Mode as Mode, type MultiCurrencyPrice$5 as MultiCurrencyPrice, type Paging$1 as Paging, type context$l_PagingMetadataV2 as PagingMetadataV2, type context$l_QueryAbandonedCheckoutsRequest as QueryAbandonedCheckoutsRequest, type context$l_QueryAbandonedCheckoutsResponse as QueryAbandonedCheckoutsResponse, type context$l_QueryAbandonedCheckoutsResponseNonNullableFields as QueryAbandonedCheckoutsResponseNonNullableFields, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type RawHttpResponse$1 as RawHttpResponse, type RawHttpResponseNonNullableFields$1 as RawHttpResponseNonNullableFields, type context$l_RedirectToCheckoutRequest as RedirectToCheckoutRequest, type Reschedule$1 as Reschedule, type RestoreInfo$h as RestoreInfo, type context$l_Search as Search, type context$l_SearchAbandonedCheckoutsRequest as SearchAbandonedCheckoutsRequest, type context$l_SearchAbandonedCheckoutsResponse as SearchAbandonedCheckoutsResponse, type context$l_SearchDetails as SearchDetails, type context$l_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$a as SortOrder, type Sorting$a as Sorting, Status$4 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 context$l_V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOf, type VatId$7 as VatId, VatType$7 as VatType, WebhookIdentityType$h as WebhookIdentityType, type context$l__publicOnAbandonedCheckoutRecoveredType as _publicOnAbandonedCheckoutRecoveredType, context$l_deleteAbandonedCheckout as deleteAbandonedCheckout, context$l_getAbandonedCheckout as getAbandonedCheckout, context$l_onAbandonedCheckoutRecovered as onAbandonedCheckoutRecovered, onAbandonedCheckoutRecovered$1 as publicOnAbandonedCheckoutRecovered, context$l_queryAbandonedCheckouts as queryAbandonedCheckouts, context$l_redirectToCheckout as redirectToCheckout };
|
|
3053
3053
|
}
|
|
3054
3054
|
|
|
3055
3055
|
/**
|
|
@@ -3496,7 +3496,7 @@ interface BackInStockNotificationRequestsCountNonNullableFields {
|
|
|
3496
3496
|
interface GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields {
|
|
3497
3497
|
countsPerCatalogReference: BackInStockNotificationRequestsCountNonNullableFields[];
|
|
3498
3498
|
}
|
|
3499
|
-
interface BaseEventMetadata$
|
|
3499
|
+
interface BaseEventMetadata$d {
|
|
3500
3500
|
/** App instance ID. */
|
|
3501
3501
|
instanceId?: string | null;
|
|
3502
3502
|
/** Event type. */
|
|
@@ -3504,7 +3504,7 @@ interface BaseEventMetadata$e {
|
|
|
3504
3504
|
/** The identification type and identity data. */
|
|
3505
3505
|
identity?: IdentificationData$g;
|
|
3506
3506
|
}
|
|
3507
|
-
interface EventMetadata$
|
|
3507
|
+
interface EventMetadata$d extends BaseEventMetadata$d {
|
|
3508
3508
|
/**
|
|
3509
3509
|
* Unique event ID.
|
|
3510
3510
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -3544,14 +3544,14 @@ interface EventMetadata$e extends BaseEventMetadata$e {
|
|
|
3544
3544
|
}
|
|
3545
3545
|
interface BackInStockNotificationRequestCreatedEnvelope {
|
|
3546
3546
|
entity: BackInStockNotificationRequest;
|
|
3547
|
-
metadata: EventMetadata$
|
|
3547
|
+
metadata: EventMetadata$d;
|
|
3548
3548
|
}
|
|
3549
3549
|
interface BackInStockNotificationRequestDeletedEnvelope {
|
|
3550
|
-
metadata: EventMetadata$
|
|
3550
|
+
metadata: EventMetadata$d;
|
|
3551
3551
|
}
|
|
3552
3552
|
interface BackInStockNotificationRequestUpdatedEnvelope {
|
|
3553
3553
|
entity: BackInStockNotificationRequest;
|
|
3554
|
-
metadata: EventMetadata$
|
|
3554
|
+
metadata: EventMetadata$d;
|
|
3555
3555
|
}
|
|
3556
3556
|
interface QueryCursorResult$7 {
|
|
3557
3557
|
cursors: Cursors$9;
|
|
@@ -3747,20 +3747,20 @@ interface ReportItemsBackInStockSignature {
|
|
|
3747
3747
|
*/
|
|
3748
3748
|
(itemDetails: BackInStockItemDetails, options?: ReportItemsBackInStockOptions | undefined): Promise<void>;
|
|
3749
3749
|
}
|
|
3750
|
-
declare const onBackInStockNotificationRequestCreated$1: EventDefinition$
|
|
3751
|
-
declare const onBackInStockNotificationRequestDeleted$1: EventDefinition$
|
|
3752
|
-
declare const onBackInStockNotificationRequestUpdated$1: EventDefinition$
|
|
3750
|
+
declare const onBackInStockNotificationRequestCreated$1: EventDefinition$g<BackInStockNotificationRequestCreatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_created">;
|
|
3751
|
+
declare const onBackInStockNotificationRequestDeleted$1: EventDefinition$g<BackInStockNotificationRequestDeletedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_deleted">;
|
|
3752
|
+
declare const onBackInStockNotificationRequestUpdated$1: EventDefinition$g<BackInStockNotificationRequestUpdatedEnvelope, "wix.ecom.v1.back_in_stock_notification_request_updated">;
|
|
3753
3753
|
|
|
3754
|
-
type EventDefinition$
|
|
3754
|
+
type EventDefinition$d<Payload = unknown, Type extends string = string> = {
|
|
3755
3755
|
__type: 'event-definition';
|
|
3756
3756
|
type: Type;
|
|
3757
3757
|
isDomainEvent?: boolean;
|
|
3758
3758
|
transformations?: (envelope: unknown) => Payload;
|
|
3759
3759
|
__payload: Payload;
|
|
3760
3760
|
};
|
|
3761
|
-
declare function EventDefinition$
|
|
3762
|
-
type EventHandler$
|
|
3763
|
-
type BuildEventDefinition$
|
|
3761
|
+
declare function EventDefinition$d<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$d<Payload, Type>;
|
|
3762
|
+
type EventHandler$d<T extends EventDefinition$d> = (payload: T['__payload']) => void | Promise<void>;
|
|
3763
|
+
type BuildEventDefinition$d<T extends EventDefinition$d<any, string>> = (handler: EventHandler$d<T>) => void;
|
|
3764
3764
|
|
|
3765
3765
|
declare global {
|
|
3766
3766
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -3769,7 +3769,7 @@ declare global {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
|
|
3772
|
-
declare function createEventModule$
|
|
3772
|
+
declare function createEventModule$d<T extends EventDefinition$d<any, string>>(eventDefinition: T): BuildEventDefinition$d<T> & T;
|
|
3773
3773
|
|
|
3774
3774
|
declare const createBackInStockNotificationRequest: MaybeContext<BuildRESTFunction<typeof createBackInStockNotificationRequest$1> & typeof createBackInStockNotificationRequest$1>;
|
|
3775
3775
|
declare const getBackInStockNotificationRequest: MaybeContext<BuildRESTFunction<typeof getBackInStockNotificationRequest$1> & typeof getBackInStockNotificationRequest$1>;
|
|
@@ -3783,19 +3783,19 @@ type _publicOnBackInStockNotificationRequestCreatedType = typeof onBackInStockNo
|
|
|
3783
3783
|
/**
|
|
3784
3784
|
* Triggered when a back in stock notification request is created.
|
|
3785
3785
|
*/
|
|
3786
|
-
declare const onBackInStockNotificationRequestCreated: ReturnType<typeof createEventModule$
|
|
3786
|
+
declare const onBackInStockNotificationRequestCreated: ReturnType<typeof createEventModule$d<_publicOnBackInStockNotificationRequestCreatedType>>;
|
|
3787
3787
|
|
|
3788
3788
|
type _publicOnBackInStockNotificationRequestDeletedType = typeof onBackInStockNotificationRequestDeleted$1;
|
|
3789
3789
|
/**
|
|
3790
3790
|
* Triggered when a back in stock notification request is deleted.
|
|
3791
3791
|
*/
|
|
3792
|
-
declare const onBackInStockNotificationRequestDeleted: ReturnType<typeof createEventModule$
|
|
3792
|
+
declare const onBackInStockNotificationRequestDeleted: ReturnType<typeof createEventModule$d<_publicOnBackInStockNotificationRequestDeletedType>>;
|
|
3793
3793
|
|
|
3794
3794
|
type _publicOnBackInStockNotificationRequestUpdatedType = typeof onBackInStockNotificationRequestUpdated$1;
|
|
3795
3795
|
/**
|
|
3796
3796
|
* Triggered when a back in stock notification request is updated.
|
|
3797
3797
|
*/
|
|
3798
|
-
declare const onBackInStockNotificationRequestUpdated: ReturnType<typeof createEventModule$
|
|
3798
|
+
declare const onBackInStockNotificationRequestUpdated: ReturnType<typeof createEventModule$d<_publicOnBackInStockNotificationRequestUpdatedType>>;
|
|
3799
3799
|
|
|
3800
3800
|
type context$k_BackInStockItemDetails = BackInStockItemDetails;
|
|
3801
3801
|
type context$k_BackInStockNotificationRequest = BackInStockNotificationRequest;
|
|
@@ -3845,7 +3845,7 @@ declare const context$k_onBackInStockNotificationRequestUpdated: typeof onBackIn
|
|
|
3845
3845
|
declare const context$k_queryBackInStockNotificationRequests: typeof queryBackInStockNotificationRequests;
|
|
3846
3846
|
declare const context$k_reportItemsBackInStock: typeof reportItemsBackInStock;
|
|
3847
3847
|
declare namespace context$k {
|
|
3848
|
-
export { type ActionEvent$g as ActionEvent, type App$1 as App, type context$k_BackInStockItemDetails as BackInStockItemDetails, type context$k_BackInStockNotificationRequest as BackInStockNotificationRequest, type context$k_BackInStockNotificationRequestCreatedEnvelope as BackInStockNotificationRequestCreatedEnvelope, type context$k_BackInStockNotificationRequestDeletedEnvelope as BackInStockNotificationRequestDeletedEnvelope, type context$k_BackInStockNotificationRequestNonNullableFields as BackInStockNotificationRequestNonNullableFields, type context$k_BackInStockNotificationRequestUpdatedEnvelope as BackInStockNotificationRequestUpdatedEnvelope, type context$k_BackInStockNotificationRequestsCount as BackInStockNotificationRequestsCount, type BaseEventMetadata$
|
|
3848
|
+
export { type ActionEvent$g as ActionEvent, type App$1 as App, type context$k_BackInStockItemDetails as BackInStockItemDetails, type context$k_BackInStockNotificationRequest as BackInStockNotificationRequest, type context$k_BackInStockNotificationRequestCreatedEnvelope as BackInStockNotificationRequestCreatedEnvelope, type context$k_BackInStockNotificationRequestDeletedEnvelope as BackInStockNotificationRequestDeletedEnvelope, type context$k_BackInStockNotificationRequestNonNullableFields as BackInStockNotificationRequestNonNullableFields, type context$k_BackInStockNotificationRequestUpdatedEnvelope as BackInStockNotificationRequestUpdatedEnvelope, type context$k_BackInStockNotificationRequestsCount as BackInStockNotificationRequestsCount, type BaseEventMetadata$d as BaseEventMetadata, type CatalogReference$7 as CatalogReference, type context$k_CreateBackInStockNotificationRequestRequest as CreateBackInStockNotificationRequestRequest, type context$k_CreateBackInStockNotificationRequestResponse as CreateBackInStockNotificationRequestResponse, type context$k_CreateBackInStockNotificationRequestResponseNonNullableFields as CreateBackInStockNotificationRequestResponseNonNullableFields, type CursorPaging$9 as CursorPaging, type Cursors$9 as Cursors, type context$k_DeleteBackInStockNotificationRequestRequest as DeleteBackInStockNotificationRequestRequest, type context$k_DeleteBackInStockNotificationRequestResponse as DeleteBackInStockNotificationRequestResponse, type DomainEvent$g as DomainEvent, type DomainEventBodyOneOf$g as DomainEventBodyOneOf, type Empty$b as Empty, type EntityCreatedEvent$g as EntityCreatedEvent, type EntityDeletedEvent$g as EntityDeletedEvent, type EntityUpdatedEvent$g as EntityUpdatedEvent, type EventMetadata$d as EventMetadata, type context$k_File as File, type context$k_GetBackInStockNotificationRequestRequest as GetBackInStockNotificationRequestRequest, type context$k_GetBackInStockNotificationRequestResponse as GetBackInStockNotificationRequestResponse, type context$k_GetBackInStockNotificationRequestResponseNonNullableFields as GetBackInStockNotificationRequestResponseNonNullableFields, type context$k_GetBackInStockNotificationRequestsCountByCatalogReferencesRequest as GetBackInStockNotificationRequestsCountByCatalogReferencesRequest, type context$k_GetBackInStockNotificationRequestsCountByCatalogReferencesResponse as GetBackInStockNotificationRequestsCountByCatalogReferencesResponse, type context$k_GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields as GetBackInStockNotificationRequestsCountByCatalogReferencesResponseNonNullableFields, type IdentificationData$g as IdentificationData, type IdentificationDataIdOneOf$g as IdentificationDataIdOneOf, type context$k_InvalidateCache as InvalidateCache, type context$k_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type context$k_MarkAsNotificationSentRequest as MarkAsNotificationSentRequest, type context$k_MarkAsNotificationSentResponse as MarkAsNotificationSentResponse, type context$k_MarkAsNotificationSentResponseNonNullableFields as MarkAsNotificationSentResponseNonNullableFields, type MessageEnvelope$g as MessageEnvelope, type context$k_Page as Page, type PlatformPaging$1 as PlatformPaging, type PlatformPagingMetadata$1 as PlatformPagingMetadata, type PlatformQuery$1 as PlatformQuery, type PlatformQueryPagingMethodOneOf$1 as PlatformQueryPagingMethodOneOf, type context$k_QueryBackInStockNotificationRequestsRequest as QueryBackInStockNotificationRequestsRequest, type context$k_QueryBackInStockNotificationRequestsResponse as QueryBackInStockNotificationRequestsResponse, type context$k_QueryBackInStockNotificationRequestsResponseNonNullableFields as QueryBackInStockNotificationRequestsResponseNonNullableFields, type context$k_ReportItemsBackInStockOptions as ReportItemsBackInStockOptions, type context$k_ReportItemsBackInStockRequest as ReportItemsBackInStockRequest, type context$k_ReportItemsBackInStockResponse as ReportItemsBackInStockResponse, type context$k_RequestsQueryBuilder as RequestsQueryBuilder, type context$k_RequestsQueryResult as RequestsQueryResult, type RestoreInfo$g as RestoreInfo, SortOrder$9 as SortOrder, type Sorting$9 as Sorting, Status$3 as Status, type context$k_URI as URI, WebhookIdentityType$g as WebhookIdentityType, type context$k__publicOnBackInStockNotificationRequestCreatedType as _publicOnBackInStockNotificationRequestCreatedType, type context$k__publicOnBackInStockNotificationRequestDeletedType as _publicOnBackInStockNotificationRequestDeletedType, type context$k__publicOnBackInStockNotificationRequestUpdatedType as _publicOnBackInStockNotificationRequestUpdatedType, context$k_createBackInStockNotificationRequest as createBackInStockNotificationRequest, context$k_deleteBackInStockNotificationRequest as deleteBackInStockNotificationRequest, context$k_getBackInStockNotificationRequest as getBackInStockNotificationRequest, context$k_getBackInStockNotificationRequestsCountByCatalogReferences as getBackInStockNotificationRequestsCountByCatalogReferences, context$k_markAsNotificationSent as markAsNotificationSent, context$k_onBackInStockNotificationRequestCreated as onBackInStockNotificationRequestCreated, context$k_onBackInStockNotificationRequestDeleted as onBackInStockNotificationRequestDeleted, context$k_onBackInStockNotificationRequestUpdated as onBackInStockNotificationRequestUpdated, onBackInStockNotificationRequestCreated$1 as publicOnBackInStockNotificationRequestCreated, onBackInStockNotificationRequestDeleted$1 as publicOnBackInStockNotificationRequestDeleted, onBackInStockNotificationRequestUpdated$1 as publicOnBackInStockNotificationRequestUpdated, context$k_queryBackInStockNotificationRequests as queryBackInStockNotificationRequests, context$k_reportItemsBackInStock as reportItemsBackInStock };
|
|
3849
3849
|
}
|
|
3850
3850
|
|
|
3851
3851
|
/**
|
|
@@ -6235,7 +6235,7 @@ interface CreateCartResponseNonNullableFields$1 {
|
|
|
6235
6235
|
interface GetCartResponseNonNullableFields$1 {
|
|
6236
6236
|
cart?: CartNonNullableFields$1;
|
|
6237
6237
|
}
|
|
6238
|
-
interface BaseEventMetadata$
|
|
6238
|
+
interface BaseEventMetadata$c {
|
|
6239
6239
|
/** App instance ID. */
|
|
6240
6240
|
instanceId?: string | null;
|
|
6241
6241
|
/** Event type. */
|
|
@@ -6243,7 +6243,7 @@ interface BaseEventMetadata$d {
|
|
|
6243
6243
|
/** The identification type and identity data. */
|
|
6244
6244
|
identity?: IdentificationData$f;
|
|
6245
6245
|
}
|
|
6246
|
-
interface EventMetadata$
|
|
6246
|
+
interface EventMetadata$c extends BaseEventMetadata$c {
|
|
6247
6247
|
/**
|
|
6248
6248
|
* Unique event ID.
|
|
6249
6249
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -6283,14 +6283,14 @@ interface EventMetadata$d extends BaseEventMetadata$d {
|
|
|
6283
6283
|
}
|
|
6284
6284
|
interface CartUpdatedEnvelope$1 {
|
|
6285
6285
|
entity: Cart$1;
|
|
6286
|
-
metadata: EventMetadata$
|
|
6286
|
+
metadata: EventMetadata$c;
|
|
6287
6287
|
}
|
|
6288
6288
|
interface CartDeletedEnvelope$1 {
|
|
6289
|
-
metadata: EventMetadata$
|
|
6289
|
+
metadata: EventMetadata$c;
|
|
6290
6290
|
}
|
|
6291
6291
|
interface CartCreatedEnvelope$1 {
|
|
6292
6292
|
entity: Cart$1;
|
|
6293
|
-
metadata: EventMetadata$
|
|
6293
|
+
metadata: EventMetadata$c;
|
|
6294
6294
|
}
|
|
6295
6295
|
interface CreateCartOptions {
|
|
6296
6296
|
/** Cart info. */
|
|
@@ -6594,20 +6594,20 @@ interface DeleteCartSignature {
|
|
|
6594
6594
|
*/
|
|
6595
6595
|
(_id: string): Promise<void>;
|
|
6596
6596
|
}
|
|
6597
|
-
declare const onCartUpdated$3: EventDefinition$
|
|
6598
|
-
declare const onCartDeleted$3: EventDefinition$
|
|
6599
|
-
declare const onCartCreated$3: EventDefinition$
|
|
6597
|
+
declare const onCartUpdated$3: EventDefinition$g<CartUpdatedEnvelope$1, "wix.ecom.v1.cart_updated">;
|
|
6598
|
+
declare const onCartDeleted$3: EventDefinition$g<CartDeletedEnvelope$1, "wix.ecom.v1.cart_deleted">;
|
|
6599
|
+
declare const onCartCreated$3: EventDefinition$g<CartCreatedEnvelope$1, "wix.ecom.v1.cart_created">;
|
|
6600
6600
|
|
|
6601
|
-
type EventDefinition$
|
|
6601
|
+
type EventDefinition$c<Payload = unknown, Type extends string = string> = {
|
|
6602
6602
|
__type: 'event-definition';
|
|
6603
6603
|
type: Type;
|
|
6604
6604
|
isDomainEvent?: boolean;
|
|
6605
6605
|
transformations?: (envelope: unknown) => Payload;
|
|
6606
6606
|
__payload: Payload;
|
|
6607
6607
|
};
|
|
6608
|
-
declare function EventDefinition$
|
|
6609
|
-
type EventHandler$
|
|
6610
|
-
type BuildEventDefinition$
|
|
6608
|
+
declare function EventDefinition$c<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$c<Payload, Type>;
|
|
6609
|
+
type EventHandler$c<T extends EventDefinition$c> = (payload: T['__payload']) => void | Promise<void>;
|
|
6610
|
+
type BuildEventDefinition$c<T extends EventDefinition$c<any, string>> = (handler: EventHandler$c<T>) => void;
|
|
6611
6611
|
|
|
6612
6612
|
declare global {
|
|
6613
6613
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -6616,7 +6616,7 @@ declare global {
|
|
|
6616
6616
|
}
|
|
6617
6617
|
}
|
|
6618
6618
|
|
|
6619
|
-
declare function createEventModule$
|
|
6619
|
+
declare function createEventModule$c<T extends EventDefinition$c<any, string>>(eventDefinition: T): BuildEventDefinition$c<T> & T;
|
|
6620
6620
|
|
|
6621
6621
|
declare const createCart: MaybeContext<BuildRESTFunction<typeof createCart$1> & typeof createCart$1>;
|
|
6622
6622
|
declare const updateCart: MaybeContext<BuildRESTFunction<typeof updateCart$1> & typeof updateCart$1>;
|
|
@@ -6633,19 +6633,19 @@ type _publicOnCartUpdatedType$1 = typeof onCartUpdated$3;
|
|
|
6633
6633
|
/**
|
|
6634
6634
|
* Triggered when a cart is updated.
|
|
6635
6635
|
*/
|
|
6636
|
-
declare const onCartUpdated$2: ReturnType<typeof createEventModule$
|
|
6636
|
+
declare const onCartUpdated$2: ReturnType<typeof createEventModule$c<_publicOnCartUpdatedType>>;
|
|
6637
6637
|
|
|
6638
6638
|
type _publicOnCartDeletedType$1 = typeof onCartDeleted$3;
|
|
6639
6639
|
/**
|
|
6640
6640
|
* Triggered when a cart is deleted.
|
|
6641
6641
|
*/
|
|
6642
|
-
declare const onCartDeleted$2: ReturnType<typeof createEventModule$
|
|
6642
|
+
declare const onCartDeleted$2: ReturnType<typeof createEventModule$c<_publicOnCartDeletedType>>;
|
|
6643
6643
|
|
|
6644
6644
|
type _publicOnCartCreatedType$1 = typeof onCartCreated$3;
|
|
6645
6645
|
/**
|
|
6646
6646
|
* Triggered when a cart is created.
|
|
6647
6647
|
*/
|
|
6648
|
-
declare const onCartCreated$2: ReturnType<typeof createEventModule$
|
|
6648
|
+
declare const onCartCreated$2: ReturnType<typeof createEventModule$c<_publicOnCartCreatedType>>;
|
|
6649
6649
|
|
|
6650
6650
|
type context$i_AddToCartOptions = AddToCartOptions;
|
|
6651
6651
|
type context$i_CreateCartOptions = CreateCartOptions;
|
|
@@ -6658,7 +6658,7 @@ declare const context$i_estimateTotals: typeof estimateTotals;
|
|
|
6658
6658
|
declare const context$i_getCart: typeof getCart;
|
|
6659
6659
|
declare const context$i_updateCart: typeof updateCart;
|
|
6660
6660
|
declare namespace context$i {
|
|
6661
|
-
export { type ActionEvent$f as ActionEvent, type context$i_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$6 as AdditionalFee, type Address$9 as Address, type AddressLocation$8 as AddressLocation, type AddressWithContact$5 as AddressWithContact, type AggregatedTaxBreakdown$4 as AggregatedTaxBreakdown, type ApplicationError$a as ApplicationError, type AppliedDiscount$6 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$6 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$4 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$d as BaseEventMetadata, type BuyerInfo$7 as BuyerInfo, type BuyerInfoIdOneOf$5 as BuyerInfoIdOneOf, type CalculatedLineItem$2 as CalculatedLineItem, type CalculationErrors$5 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$5 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$5 as CarrierError, type CarrierErrors$5 as CarrierErrors, type CarrierServiceOption$4 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 CartNonNullableFields$1 as CartNonNullableFields, type CartUpdatedEnvelope$1 as CartUpdatedEnvelope, type CatalogOverrideFields$3 as CatalogOverrideFields, type CatalogReference$6 as CatalogReference, ChannelType$6 as ChannelType, ChargeType$5 as ChargeType, type Color$5 as Color, type Coupon$6 as Coupon, type context$i_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$4 as CustomLineItem, type DeleteCartRequest$1 as DeleteCartRequest, type DeleteCartResponse$1 as DeleteCartResponse, type DeleteCurrentCartRequest$1 as DeleteCurrentCartRequest, type DeliveryLogistics$6 as DeliveryLogistics, type DeliveryTimeSlot$6 as DeliveryTimeSlot, type Description$3 as Description, type DescriptionLine$5 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$5 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$5 as DescriptionLineName, DescriptionLineType$5 as DescriptionLineType, type DescriptionLineValueOneOf$5 as DescriptionLineValueOneOf, type Details$5 as Details, type DetailsKindOneOf$5 as DetailsKindOneOf, type DiscountRule$6 as DiscountRule, type DiscountRuleName$6 as DiscountRuleName, DiscountType$6 as DiscountType, type DomainEvent$f as DomainEvent, type DomainEventBodyOneOf$f as DomainEventBodyOneOf, type Empty$a as Empty, type EntityCreatedEvent$f as EntityCreatedEvent, type EntityDeletedEvent$f as EntityDeletedEvent, type EntityUpdatedEvent$f as EntityUpdatedEvent, type EstimateCurrentCartTotalsRequest$1 as EstimateCurrentCartTotalsRequest, type context$i_EstimateTotalsOptions as EstimateTotalsOptions, type EstimateTotalsRequest$1 as EstimateTotalsRequest, type EstimateTotalsResponse$1 as EstimateTotalsResponse, type EstimateTotalsResponseNonNullableFields$1 as EstimateTotalsResponseNonNullableFields, type EventMetadata$d as EventMetadata, type ExtendedFields$9 as ExtendedFields, FallbackReason$4 as FallbackReason, type FieldViolation$5 as FieldViolation, FileType$4 as FileType, type FullAddressContactDetails$5 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$6 as GiftCard, type Group$4 as Group, type HostSelectedMembership$1 as HostSelectedMembership, type IdentificationData$f as IdentificationData, type IdentificationDataIdOneOf$f as IdentificationDataIdOneOf, type InvalidMembership$4 as InvalidMembership, type ItemAvailabilityInfo$3 as ItemAvailabilityInfo, ItemAvailabilityStatus$3 as ItemAvailabilityStatus, type ItemTaxFullDetails$6 as ItemTaxFullDetails, type ItemType$6 as ItemType, ItemTypeItemType$6 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$6 as ItemTypeItemTypeDataOneOf, JurisdictionType$6 as JurisdictionType, type LineItem$6 as LineItem, type LineItemDiscount$6 as LineItemDiscount, type LineItemPricesData$2 as LineItemPricesData, type LineItemQuantityUpdate$2 as LineItemQuantityUpdate, ManualCalculationReason$4 as ManualCalculationReason, type Membership$4 as Membership, type MembershipName$7 as MembershipName, type MembershipOptions$4 as MembershipOptions, type MembershipPaymentCredits$4 as MembershipPaymentCredits, type MerchantDiscount$6 as MerchantDiscount, type MerchantDiscountInput$3 as MerchantDiscountInput, type MessageEnvelope$f as MessageEnvelope, type MultiCurrencyPrice$4 as MultiCurrencyPrice, NameInLineItem$3 as NameInLineItem, NameInOther$3 as NameInOther, type Other$3 as Other, type OtherCharge$4 as OtherCharge, PaymentOptionType$6 as PaymentOptionType, type PhysicalProperties$6 as PhysicalProperties, type PickupDetails$7 as PickupDetails, PickupMethod$6 as PickupMethod, type PlainTextValue$5 as PlainTextValue, type PriceDescription$5 as PriceDescription, type PriceSummary$6 as PriceSummary, type ProductName$5 as ProductName, RateType$4 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, type RestoreInfo$f as RestoreInfo, RuleType$5 as RuleType, type Scope$4 as Scope, type SecuredMedia$4 as SecuredMedia, type SelectedCarrierServiceOption$4 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$4 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$4 as SelectedCarrierServiceOptionPrices, type SelectedMembership$4 as SelectedMembership, type SelectedMemberships$4 as SelectedMemberships, type SelectedShippingOption$2 as SelectedShippingOption, type ServiceProperties$5 as ServiceProperties, Severity$3 as Severity, type ShippingInformation$4 as ShippingInformation, type ShippingOption$6 as ShippingOption, type ShippingPrice$6 as ShippingPrice, type ShippingRegion$6 as ShippingRegion, type StreetAddress$8 as StreetAddress, SubscriptionFrequency$7 as SubscriptionFrequency, type SubscriptionOptionInfo$4 as SubscriptionOptionInfo, type SubscriptionSettings$7 as SubscriptionSettings, type SystemError$5 as SystemError, type Target$3 as Target, type TargetLineItem$3 as TargetLineItem, type TargetTargetTypeOneOf$3 as TargetTargetTypeOneOf, type TaxBreakdown$4 as TaxBreakdown, type TaxCalculationDetails$4 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$4 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$4 as TaxRateBreakdown, type TaxSummary$6 as TaxSummary, type TaxableAddress$6 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$6 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$6 as TaxableAddressType, type Title$3 as Title, type context$i_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$5 as ValidationError, type VatId$6 as VatId, VatType$6 as VatType, type Violation$3 as Violation, WebhookIdentityType$f as WebhookIdentityType, WeightUnit$7 as WeightUnit, type _publicOnCartCreatedType$1 as _publicOnCartCreatedType, type _publicOnCartDeletedType$1 as _publicOnCartDeletedType, type _publicOnCartUpdatedType$1 as _publicOnCartUpdatedType, context$i_addToCart as addToCart, context$i_createCart as createCart, createCheckout$2 as createCheckout, context$i_deleteCart as deleteCart, context$i_estimateTotals as estimateTotals, context$i_getCart as getCart, onCartCreated$2 as onCartCreated, onCartDeleted$2 as onCartDeleted, onCartUpdated$2 as onCartUpdated, onCartCreated$3 as publicOnCartCreated, onCartDeleted$3 as publicOnCartDeleted, onCartUpdated$3 as publicOnCartUpdated, removeCoupon$2 as removeCoupon, removeLineItems$2 as removeLineItems, context$i_updateCart as updateCart, updateLineItemsQuantity$2 as updateLineItemsQuantity };
|
|
6661
|
+
export { type ActionEvent$f as ActionEvent, type context$i_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$6 as AdditionalFee, type Address$9 as Address, type AddressLocation$8 as AddressLocation, type AddressWithContact$5 as AddressWithContact, type AggregatedTaxBreakdown$4 as AggregatedTaxBreakdown, type ApplicationError$a as ApplicationError, type AppliedDiscount$6 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$6 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$4 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$c as BaseEventMetadata, type BuyerInfo$7 as BuyerInfo, type BuyerInfoIdOneOf$5 as BuyerInfoIdOneOf, type CalculatedLineItem$2 as CalculatedLineItem, type CalculationErrors$5 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$5 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$5 as CarrierError, type CarrierErrors$5 as CarrierErrors, type CarrierServiceOption$4 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 CartNonNullableFields$1 as CartNonNullableFields, type CartUpdatedEnvelope$1 as CartUpdatedEnvelope, type CatalogOverrideFields$3 as CatalogOverrideFields, type CatalogReference$6 as CatalogReference, ChannelType$6 as ChannelType, ChargeType$5 as ChargeType, type Color$5 as Color, type Coupon$6 as Coupon, type context$i_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$4 as CustomLineItem, type DeleteCartRequest$1 as DeleteCartRequest, type DeleteCartResponse$1 as DeleteCartResponse, type DeleteCurrentCartRequest$1 as DeleteCurrentCartRequest, type DeliveryLogistics$6 as DeliveryLogistics, type DeliveryTimeSlot$6 as DeliveryTimeSlot, type Description$3 as Description, type DescriptionLine$5 as DescriptionLine, type DescriptionLineDescriptionLineValueOneOf$5 as DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName$5 as DescriptionLineName, DescriptionLineType$5 as DescriptionLineType, type DescriptionLineValueOneOf$5 as DescriptionLineValueOneOf, type Details$5 as Details, type DetailsKindOneOf$5 as DetailsKindOneOf, type DiscountRule$6 as DiscountRule, type DiscountRuleName$6 as DiscountRuleName, DiscountType$6 as DiscountType, type DomainEvent$f as DomainEvent, type DomainEventBodyOneOf$f as DomainEventBodyOneOf, type Empty$a as Empty, type EntityCreatedEvent$f as EntityCreatedEvent, type EntityDeletedEvent$f as EntityDeletedEvent, type EntityUpdatedEvent$f as EntityUpdatedEvent, type EstimateCurrentCartTotalsRequest$1 as EstimateCurrentCartTotalsRequest, type context$i_EstimateTotalsOptions as EstimateTotalsOptions, type EstimateTotalsRequest$1 as EstimateTotalsRequest, type EstimateTotalsResponse$1 as EstimateTotalsResponse, type EstimateTotalsResponseNonNullableFields$1 as EstimateTotalsResponseNonNullableFields, type EventMetadata$c as EventMetadata, type ExtendedFields$9 as ExtendedFields, FallbackReason$4 as FallbackReason, type FieldViolation$5 as FieldViolation, FileType$4 as FileType, type FullAddressContactDetails$5 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$6 as GiftCard, type Group$4 as Group, type HostSelectedMembership$1 as HostSelectedMembership, type IdentificationData$f as IdentificationData, type IdentificationDataIdOneOf$f as IdentificationDataIdOneOf, type InvalidMembership$4 as InvalidMembership, type ItemAvailabilityInfo$3 as ItemAvailabilityInfo, ItemAvailabilityStatus$3 as ItemAvailabilityStatus, type ItemTaxFullDetails$6 as ItemTaxFullDetails, type ItemType$6 as ItemType, ItemTypeItemType$6 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$6 as ItemTypeItemTypeDataOneOf, JurisdictionType$6 as JurisdictionType, type LineItem$6 as LineItem, type LineItemDiscount$6 as LineItemDiscount, type LineItemPricesData$2 as LineItemPricesData, type LineItemQuantityUpdate$2 as LineItemQuantityUpdate, ManualCalculationReason$4 as ManualCalculationReason, type Membership$4 as Membership, type MembershipName$7 as MembershipName, type MembershipOptions$4 as MembershipOptions, type MembershipPaymentCredits$4 as MembershipPaymentCredits, type MerchantDiscount$6 as MerchantDiscount, type MerchantDiscountInput$3 as MerchantDiscountInput, type MessageEnvelope$f as MessageEnvelope, type MultiCurrencyPrice$4 as MultiCurrencyPrice, NameInLineItem$3 as NameInLineItem, NameInOther$3 as NameInOther, type Other$3 as Other, type OtherCharge$4 as OtherCharge, PaymentOptionType$6 as PaymentOptionType, type PhysicalProperties$6 as PhysicalProperties, type PickupDetails$7 as PickupDetails, PickupMethod$6 as PickupMethod, type PlainTextValue$5 as PlainTextValue, type PriceDescription$5 as PriceDescription, type PriceSummary$6 as PriceSummary, type ProductName$5 as ProductName, RateType$4 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, type RestoreInfo$f as RestoreInfo, RuleType$5 as RuleType, type Scope$4 as Scope, type SecuredMedia$4 as SecuredMedia, type SelectedCarrierServiceOption$4 as SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge$4 as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$4 as SelectedCarrierServiceOptionPrices, type SelectedMembership$4 as SelectedMembership, type SelectedMemberships$4 as SelectedMemberships, type SelectedShippingOption$2 as SelectedShippingOption, type ServiceProperties$5 as ServiceProperties, Severity$3 as Severity, type ShippingInformation$4 as ShippingInformation, type ShippingOption$6 as ShippingOption, type ShippingPrice$6 as ShippingPrice, type ShippingRegion$6 as ShippingRegion, type StreetAddress$8 as StreetAddress, SubscriptionFrequency$7 as SubscriptionFrequency, type SubscriptionOptionInfo$4 as SubscriptionOptionInfo, type SubscriptionSettings$7 as SubscriptionSettings, type SystemError$5 as SystemError, type Target$3 as Target, type TargetLineItem$3 as TargetLineItem, type TargetTargetTypeOneOf$3 as TargetTargetTypeOneOf, type TaxBreakdown$4 as TaxBreakdown, type TaxCalculationDetails$4 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$4 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$4 as TaxRateBreakdown, type TaxSummary$6 as TaxSummary, type TaxableAddress$6 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$6 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$6 as TaxableAddressType, type Title$3 as Title, type context$i_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$5 as ValidationError, type VatId$6 as VatId, VatType$6 as VatType, type Violation$3 as Violation, WebhookIdentityType$f as WebhookIdentityType, WeightUnit$7 as WeightUnit, type _publicOnCartCreatedType$1 as _publicOnCartCreatedType, type _publicOnCartDeletedType$1 as _publicOnCartDeletedType, type _publicOnCartUpdatedType$1 as _publicOnCartUpdatedType, context$i_addToCart as addToCart, context$i_createCart as createCart, createCheckout$2 as createCheckout, context$i_deleteCart as deleteCart, context$i_estimateTotals as estimateTotals, context$i_getCart as getCart, onCartCreated$2 as onCartCreated, onCartDeleted$2 as onCartDeleted, onCartUpdated$2 as onCartUpdated, onCartCreated$3 as publicOnCartCreated, onCartDeleted$3 as publicOnCartDeleted, onCartUpdated$3 as publicOnCartUpdated, removeCoupon$2 as removeCoupon, removeLineItems$2 as removeLineItems, context$i_updateCart as updateCart, updateLineItemsQuantity$2 as updateLineItemsQuantity };
|
|
6662
6662
|
}
|
|
6663
6663
|
|
|
6664
6664
|
interface Cart {
|
|
@@ -8939,7 +8939,7 @@ interface CreateCartResponseNonNullableFields {
|
|
|
8939
8939
|
interface GetCartResponseNonNullableFields {
|
|
8940
8940
|
cart?: CartNonNullableFields;
|
|
8941
8941
|
}
|
|
8942
|
-
interface BaseEventMetadata$
|
|
8942
|
+
interface BaseEventMetadata$b {
|
|
8943
8943
|
/** App instance ID. */
|
|
8944
8944
|
instanceId?: string | null;
|
|
8945
8945
|
/** Event type. */
|
|
@@ -8947,7 +8947,7 @@ interface BaseEventMetadata$c {
|
|
|
8947
8947
|
/** The identification type and identity data. */
|
|
8948
8948
|
identity?: IdentificationData$e;
|
|
8949
8949
|
}
|
|
8950
|
-
interface EventMetadata$
|
|
8950
|
+
interface EventMetadata$b extends BaseEventMetadata$b {
|
|
8951
8951
|
/**
|
|
8952
8952
|
* Unique event ID.
|
|
8953
8953
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -8987,14 +8987,14 @@ interface EventMetadata$c extends BaseEventMetadata$c {
|
|
|
8987
8987
|
}
|
|
8988
8988
|
interface CartUpdatedEnvelope {
|
|
8989
8989
|
entity: Cart;
|
|
8990
|
-
metadata: EventMetadata$
|
|
8990
|
+
metadata: EventMetadata$b;
|
|
8991
8991
|
}
|
|
8992
8992
|
interface CartDeletedEnvelope {
|
|
8993
|
-
metadata: EventMetadata$
|
|
8993
|
+
metadata: EventMetadata$b;
|
|
8994
8994
|
}
|
|
8995
8995
|
interface CartCreatedEnvelope {
|
|
8996
8996
|
entity: Cart;
|
|
8997
|
-
metadata: EventMetadata$
|
|
8997
|
+
metadata: EventMetadata$b;
|
|
8998
8998
|
}
|
|
8999
8999
|
interface UpdateCurrentCartOptions {
|
|
9000
9000
|
/** Cart info. */
|
|
@@ -9173,20 +9173,20 @@ interface DeleteCurrentCartSignature {
|
|
|
9173
9173
|
*/
|
|
9174
9174
|
(): Promise<void>;
|
|
9175
9175
|
}
|
|
9176
|
-
declare const onCartUpdated$1: EventDefinition$
|
|
9177
|
-
declare const onCartDeleted$1: EventDefinition$
|
|
9178
|
-
declare const onCartCreated$1: EventDefinition$
|
|
9176
|
+
declare const onCartUpdated$1: EventDefinition$g<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
9177
|
+
declare const onCartDeleted$1: EventDefinition$g<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
9178
|
+
declare const onCartCreated$1: EventDefinition$g<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
9179
9179
|
|
|
9180
|
-
type EventDefinition$
|
|
9180
|
+
type EventDefinition$b<Payload = unknown, Type extends string = string> = {
|
|
9181
9181
|
__type: 'event-definition';
|
|
9182
9182
|
type: Type;
|
|
9183
9183
|
isDomainEvent?: boolean;
|
|
9184
9184
|
transformations?: (envelope: unknown) => Payload;
|
|
9185
9185
|
__payload: Payload;
|
|
9186
9186
|
};
|
|
9187
|
-
declare function EventDefinition$
|
|
9188
|
-
type EventHandler$
|
|
9189
|
-
type BuildEventDefinition$
|
|
9187
|
+
declare function EventDefinition$b<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$b<Payload, Type>;
|
|
9188
|
+
type EventHandler$b<T extends EventDefinition$b> = (payload: T['__payload']) => void | Promise<void>;
|
|
9189
|
+
type BuildEventDefinition$b<T extends EventDefinition$b<any, string>> = (handler: EventHandler$b<T>) => void;
|
|
9190
9190
|
|
|
9191
9191
|
declare global {
|
|
9192
9192
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -9195,7 +9195,7 @@ declare global {
|
|
|
9195
9195
|
}
|
|
9196
9196
|
}
|
|
9197
9197
|
|
|
9198
|
-
declare function createEventModule$
|
|
9198
|
+
declare function createEventModule$b<T extends EventDefinition$b<any, string>>(eventDefinition: T): BuildEventDefinition$b<T> & T;
|
|
9199
9199
|
|
|
9200
9200
|
declare const getCurrentCart: MaybeContext<BuildRESTFunction<typeof getCurrentCart$1> & typeof getCurrentCart$1>;
|
|
9201
9201
|
declare const updateCurrentCart: MaybeContext<BuildRESTFunction<typeof updateCurrentCart$1> & typeof updateCurrentCart$1>;
|
|
@@ -9211,19 +9211,19 @@ type _publicOnCartUpdatedType = typeof onCartUpdated$1;
|
|
|
9211
9211
|
/**
|
|
9212
9212
|
* Triggered when a cart is updated.
|
|
9213
9213
|
*/
|
|
9214
|
-
declare const onCartUpdated: ReturnType<typeof createEventModule$
|
|
9214
|
+
declare const onCartUpdated: ReturnType<typeof createEventModule$b<_publicOnCartUpdatedType>>;
|
|
9215
9215
|
|
|
9216
9216
|
type _publicOnCartDeletedType = typeof onCartDeleted$1;
|
|
9217
9217
|
/**
|
|
9218
9218
|
* Triggered when a cart is deleted.
|
|
9219
9219
|
*/
|
|
9220
|
-
declare const onCartDeleted: ReturnType<typeof createEventModule$
|
|
9220
|
+
declare const onCartDeleted: ReturnType<typeof createEventModule$b<_publicOnCartDeletedType>>;
|
|
9221
9221
|
|
|
9222
9222
|
type _publicOnCartCreatedType = typeof onCartCreated$1;
|
|
9223
9223
|
/**
|
|
9224
9224
|
* Triggered when a cart is created.
|
|
9225
9225
|
*/
|
|
9226
|
-
declare const onCartCreated: ReturnType<typeof createEventModule$
|
|
9226
|
+
declare const onCartCreated: ReturnType<typeof createEventModule$b<_publicOnCartCreatedType>>;
|
|
9227
9227
|
|
|
9228
9228
|
type context$h_AddToCartRequest = AddToCartRequest;
|
|
9229
9229
|
type context$h_AddToCartResponse = AddToCartResponse;
|
|
@@ -9285,7 +9285,7 @@ declare const context$h_removeLineItemsFromCurrentCart: typeof removeLineItemsFr
|
|
|
9285
9285
|
declare const context$h_updateCurrentCart: typeof updateCurrentCart;
|
|
9286
9286
|
declare const context$h_updateCurrentCartLineItemQuantity: typeof updateCurrentCartLineItemQuantity;
|
|
9287
9287
|
declare namespace context$h {
|
|
9288
|
-
export { type ActionEvent$e as ActionEvent, type context$h_AddToCartRequest as AddToCartRequest, type context$h_AddToCartResponse as AddToCartResponse, type context$h_AddToCartResponseNonNullableFields as AddToCartResponseNonNullableFields, type context$h_AddToCurrentCartAndEstimateTotalsRequest as AddToCurrentCartAndEstimateTotalsRequest, type context$h_AddToCurrentCartOptions as AddToCurrentCartOptions, type context$h_AddToCurrentCartRequest as AddToCurrentCartRequest, type AdditionalFee$5 as AdditionalFee, type Address$8 as Address, type AddressLocation$7 as AddressLocation, type AddressWithContact$4 as AddressWithContact, type AggregatedTaxBreakdown$3 as AggregatedTaxBreakdown, type ApplicationError$9 as ApplicationError, type AppliedDiscount$5 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$5 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$3 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$c as BaseEventMetadata, type BuyerInfo$6 as BuyerInfo, type BuyerInfoIdOneOf$4 as BuyerInfoIdOneOf, type CalculatedLineItem$1 as CalculatedLineItem, type CalculationErrors$4 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$4 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$4 as CarrierError, type CarrierErrors$4 as CarrierErrors, type CarrierServiceOption$3 as CarrierServiceOption, type context$h_Cart as Cart, type context$h_CartCreatedEnvelope as CartCreatedEnvelope, type context$h_CartDeletedEnvelope as CartDeletedEnvelope, type context$h_CartDiscount as CartDiscount, type context$h_CartDiscountDiscountSourceOneOf as CartDiscountDiscountSourceOneOf, type context$h_CartNonNullableFields as CartNonNullableFields, type context$h_CartUpdatedEnvelope as CartUpdatedEnvelope, type CatalogOverrideFields$2 as CatalogOverrideFields, type CatalogReference$5 as CatalogReference, ChannelType$5 as ChannelType, ChargeType$4 as ChargeType, type Color$4 as Color, type Coupon$5 as Coupon, type context$h_CreateCartRequest as CreateCartRequest, type context$h_CreateCartResponse as CreateCartResponse, type context$h_CreateCartResponseNonNullableFields as CreateCartResponseNonNullableFields, type context$h_CreateCheckoutFromCurrentCartOptions as CreateCheckoutFromCurrentCartOptions, type context$h_CreateCheckoutFromCurrentCartRequest as CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest$1 as CreateCheckoutRequest, type CreateCheckoutResponse$1 as CreateCheckoutResponse, type CreateCheckoutResponseNonNullableFields$1 as CreateCheckoutResponseNonNullableFields, type CustomLineItem$3 as CustomLineItem, type context$h_DeleteCartRequest as DeleteCartRequest, type context$h_DeleteCartResponse as DeleteCartResponse, type context$h_DeleteCurrentCartRequest as DeleteCurrentCartRequest, type DeliveryLogistics$5 as DeliveryLogistics, type DeliveryTimeSlot$5 as DeliveryTimeSlot, type Description$2 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$5 as DiscountRule, type DiscountRuleName$5 as DiscountRuleName, DiscountType$5 as DiscountType, type DomainEvent$e as DomainEvent, type DomainEventBodyOneOf$e as DomainEventBodyOneOf, type Empty$9 as Empty, type EntityCreatedEvent$e as EntityCreatedEvent, type EntityDeletedEvent$e as EntityDeletedEvent, type EntityUpdatedEvent$e as EntityUpdatedEvent, type context$h_EstimateCurrentCartTotalsOptions as EstimateCurrentCartTotalsOptions, type context$h_EstimateCurrentCartTotalsRequest as EstimateCurrentCartTotalsRequest, type context$h_EstimateTotalsRequest as EstimateTotalsRequest, type context$h_EstimateTotalsResponse as EstimateTotalsResponse, type context$h_EstimateTotalsResponseNonNullableFields as EstimateTotalsResponseNonNullableFields, type EventMetadata$c as EventMetadata, type ExtendedFields$8 as ExtendedFields, FallbackReason$3 as FallbackReason, type FieldViolation$4 as FieldViolation, FileType$3 as FileType, type FullAddressContactDetails$4 as FullAddressContactDetails, type context$h_GetCartByCheckoutIdRequest as GetCartByCheckoutIdRequest, type context$h_GetCartByCheckoutIdResponse as GetCartByCheckoutIdResponse, type context$h_GetCartRequest as GetCartRequest, type context$h_GetCartResponse as GetCartResponse, type context$h_GetCartResponseNonNullableFields as GetCartResponseNonNullableFields, type context$h_GetCurrentCartRequest as GetCurrentCartRequest, type context$h_GetCurrentCartResponse as GetCurrentCartResponse, type context$h_GetCurrentCartResponseNonNullableFields as GetCurrentCartResponseNonNullableFields, type GiftCard$5 as GiftCard, type Group$3 as Group, type context$h_HostSelectedMembership as HostSelectedMembership, type IdentificationData$e as IdentificationData, type IdentificationDataIdOneOf$e as IdentificationDataIdOneOf, type InvalidMembership$3 as InvalidMembership, type ItemAvailabilityInfo$2 as ItemAvailabilityInfo, ItemAvailabilityStatus$2 as ItemAvailabilityStatus, type ItemTaxFullDetails$5 as ItemTaxFullDetails, type ItemType$5 as ItemType, ItemTypeItemType$5 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$5 as ItemTypeItemTypeDataOneOf, JurisdictionType$5 as JurisdictionType, type LineItem$5 as LineItem, type LineItemDiscount$5 as LineItemDiscount, type LineItemPricesData$1 as LineItemPricesData, type LineItemQuantityUpdate$1 as LineItemQuantityUpdate, ManualCalculationReason$3 as ManualCalculationReason, type Membership$3 as Membership, type MembershipName$6 as MembershipName, type MembershipOptions$3 as MembershipOptions, type MembershipPaymentCredits$3 as MembershipPaymentCredits, type MerchantDiscount$5 as MerchantDiscount, type MerchantDiscountInput$2 as MerchantDiscountInput, type MessageEnvelope$e as MessageEnvelope, type MultiCurrencyPrice$3 as MultiCurrencyPrice, NameInLineItem$2 as NameInLineItem, NameInOther$2 as NameInOther, type Other$2 as Other, type OtherCharge$3 as OtherCharge, PaymentOptionType$5 as PaymentOptionType, type PhysicalProperties$5 as PhysicalProperties, type PickupDetails$6 as PickupDetails, PickupMethod$5 as PickupMethod, type PlainTextValue$4 as PlainTextValue, type PriceDescription$4 as PriceDescription, type PriceSummary$5 as PriceSummary, type ProductName$4 as ProductName, RateType$3 as RateType, type context$h_RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest$1 as RemoveCouponRequest, type RemoveCouponResponse$1 as RemoveCouponResponse, type RemoveCouponResponseNonNullableFields$1 as RemoveCouponResponseNonNullableFields, type context$h_RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest$1 as RemoveLineItemsRequest, type RemoveLineItemsResponse$1 as RemoveLineItemsResponse, type RemoveLineItemsResponseNonNullableFields$1 as RemoveLineItemsResponseNonNullableFields, type RestoreInfo$e as RestoreInfo, 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$2 as Severity, type ShippingInformation$3 as ShippingInformation, type ShippingOption$5 as ShippingOption, type ShippingPrice$5 as ShippingPrice, type ShippingRegion$5 as ShippingRegion, type StreetAddress$7 as StreetAddress, SubscriptionFrequency$6 as SubscriptionFrequency, type SubscriptionOptionInfo$3 as SubscriptionOptionInfo, type SubscriptionSettings$6 as SubscriptionSettings, type SystemError$4 as SystemError, type Target$2 as Target, type TargetLineItem$2 as TargetLineItem, type TargetTargetTypeOneOf$2 as TargetTargetTypeOneOf, type TaxBreakdown$3 as TaxBreakdown, type TaxCalculationDetails$3 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$3 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$3 as TaxRateBreakdown, type TaxSummary$5 as TaxSummary, type TaxableAddress$5 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$5 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$5 as TaxableAddressType, type Title$2 as Title, type context$h_UpdateCartRequest as UpdateCartRequest, type context$h_UpdateCartResponse as UpdateCartResponse, type context$h_UpdateCartResponseNonNullableFields as UpdateCartResponseNonNullableFields, type context$h_UpdateCurrentCartLineItemQuantityRequest as UpdateCurrentCartLineItemQuantityRequest, type context$h_UpdateCurrentCartOptions as UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest$1 as UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse$1 as UpdateLineItemsQuantityResponse, type UpdateLineItemsQuantityResponseNonNullableFields$1 as UpdateLineItemsQuantityResponseNonNullableFields, type context$h_V1Coupon as V1Coupon, type context$h_V1MerchantDiscount as V1MerchantDiscount, type ValidationError$4 as ValidationError, type VatId$5 as VatId, VatType$5 as VatType, type Violation$2 as Violation, WebhookIdentityType$e as WebhookIdentityType, WeightUnit$6 as WeightUnit, type context$h__publicOnCartCreatedType as _publicOnCartCreatedType, type context$h__publicOnCartDeletedType as _publicOnCartDeletedType, type context$h__publicOnCartUpdatedType as _publicOnCartUpdatedType, context$h_addToCurrentCart as addToCurrentCart, context$h_createCheckoutFromCurrentCart as createCheckoutFromCurrentCart, context$h_deleteCurrentCart as deleteCurrentCart, context$h_estimateCurrentCartTotals as estimateCurrentCartTotals, context$h_getCurrentCart as getCurrentCart, context$h_onCartCreated as onCartCreated, context$h_onCartDeleted as onCartDeleted, context$h_onCartUpdated as onCartUpdated, onCartCreated$1 as publicOnCartCreated, onCartDeleted$1 as publicOnCartDeleted, onCartUpdated$1 as publicOnCartUpdated, context$h_removeCouponFromCurrentCart as removeCouponFromCurrentCart, context$h_removeLineItemsFromCurrentCart as removeLineItemsFromCurrentCart, context$h_updateCurrentCart as updateCurrentCart, context$h_updateCurrentCartLineItemQuantity as updateCurrentCartLineItemQuantity };
|
|
9288
|
+
export { type ActionEvent$e as ActionEvent, type context$h_AddToCartRequest as AddToCartRequest, type context$h_AddToCartResponse as AddToCartResponse, type context$h_AddToCartResponseNonNullableFields as AddToCartResponseNonNullableFields, type context$h_AddToCurrentCartAndEstimateTotalsRequest as AddToCurrentCartAndEstimateTotalsRequest, type context$h_AddToCurrentCartOptions as AddToCurrentCartOptions, type context$h_AddToCurrentCartRequest as AddToCurrentCartRequest, type AdditionalFee$5 as AdditionalFee, type Address$8 as Address, type AddressLocation$7 as AddressLocation, type AddressWithContact$4 as AddressWithContact, type AggregatedTaxBreakdown$3 as AggregatedTaxBreakdown, type ApplicationError$9 as ApplicationError, type AppliedDiscount$5 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$5 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$3 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$b as BaseEventMetadata, type BuyerInfo$6 as BuyerInfo, type BuyerInfoIdOneOf$4 as BuyerInfoIdOneOf, type CalculatedLineItem$1 as CalculatedLineItem, type CalculationErrors$4 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$4 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$4 as CarrierError, type CarrierErrors$4 as CarrierErrors, type CarrierServiceOption$3 as CarrierServiceOption, type context$h_Cart as Cart, type context$h_CartCreatedEnvelope as CartCreatedEnvelope, type context$h_CartDeletedEnvelope as CartDeletedEnvelope, type context$h_CartDiscount as CartDiscount, type context$h_CartDiscountDiscountSourceOneOf as CartDiscountDiscountSourceOneOf, type context$h_CartNonNullableFields as CartNonNullableFields, type context$h_CartUpdatedEnvelope as CartUpdatedEnvelope, type CatalogOverrideFields$2 as CatalogOverrideFields, type CatalogReference$5 as CatalogReference, ChannelType$5 as ChannelType, ChargeType$4 as ChargeType, type Color$4 as Color, type Coupon$5 as Coupon, type context$h_CreateCartRequest as CreateCartRequest, type context$h_CreateCartResponse as CreateCartResponse, type context$h_CreateCartResponseNonNullableFields as CreateCartResponseNonNullableFields, type context$h_CreateCheckoutFromCurrentCartOptions as CreateCheckoutFromCurrentCartOptions, type context$h_CreateCheckoutFromCurrentCartRequest as CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest$1 as CreateCheckoutRequest, type CreateCheckoutResponse$1 as CreateCheckoutResponse, type CreateCheckoutResponseNonNullableFields$1 as CreateCheckoutResponseNonNullableFields, type CustomLineItem$3 as CustomLineItem, type context$h_DeleteCartRequest as DeleteCartRequest, type context$h_DeleteCartResponse as DeleteCartResponse, type context$h_DeleteCurrentCartRequest as DeleteCurrentCartRequest, type DeliveryLogistics$5 as DeliveryLogistics, type DeliveryTimeSlot$5 as DeliveryTimeSlot, type Description$2 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$5 as DiscountRule, type DiscountRuleName$5 as DiscountRuleName, DiscountType$5 as DiscountType, type DomainEvent$e as DomainEvent, type DomainEventBodyOneOf$e as DomainEventBodyOneOf, type Empty$9 as Empty, type EntityCreatedEvent$e as EntityCreatedEvent, type EntityDeletedEvent$e as EntityDeletedEvent, type EntityUpdatedEvent$e as EntityUpdatedEvent, type context$h_EstimateCurrentCartTotalsOptions as EstimateCurrentCartTotalsOptions, type context$h_EstimateCurrentCartTotalsRequest as EstimateCurrentCartTotalsRequest, type context$h_EstimateTotalsRequest as EstimateTotalsRequest, type context$h_EstimateTotalsResponse as EstimateTotalsResponse, type context$h_EstimateTotalsResponseNonNullableFields as EstimateTotalsResponseNonNullableFields, type EventMetadata$b as EventMetadata, type ExtendedFields$8 as ExtendedFields, FallbackReason$3 as FallbackReason, type FieldViolation$4 as FieldViolation, FileType$3 as FileType, type FullAddressContactDetails$4 as FullAddressContactDetails, type context$h_GetCartByCheckoutIdRequest as GetCartByCheckoutIdRequest, type context$h_GetCartByCheckoutIdResponse as GetCartByCheckoutIdResponse, type context$h_GetCartRequest as GetCartRequest, type context$h_GetCartResponse as GetCartResponse, type context$h_GetCartResponseNonNullableFields as GetCartResponseNonNullableFields, type context$h_GetCurrentCartRequest as GetCurrentCartRequest, type context$h_GetCurrentCartResponse as GetCurrentCartResponse, type context$h_GetCurrentCartResponseNonNullableFields as GetCurrentCartResponseNonNullableFields, type GiftCard$5 as GiftCard, type Group$3 as Group, type context$h_HostSelectedMembership as HostSelectedMembership, type IdentificationData$e as IdentificationData, type IdentificationDataIdOneOf$e as IdentificationDataIdOneOf, type InvalidMembership$3 as InvalidMembership, type ItemAvailabilityInfo$2 as ItemAvailabilityInfo, ItemAvailabilityStatus$2 as ItemAvailabilityStatus, type ItemTaxFullDetails$5 as ItemTaxFullDetails, type ItemType$5 as ItemType, ItemTypeItemType$5 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$5 as ItemTypeItemTypeDataOneOf, JurisdictionType$5 as JurisdictionType, type LineItem$5 as LineItem, type LineItemDiscount$5 as LineItemDiscount, type LineItemPricesData$1 as LineItemPricesData, type LineItemQuantityUpdate$1 as LineItemQuantityUpdate, ManualCalculationReason$3 as ManualCalculationReason, type Membership$3 as Membership, type MembershipName$6 as MembershipName, type MembershipOptions$3 as MembershipOptions, type MembershipPaymentCredits$3 as MembershipPaymentCredits, type MerchantDiscount$5 as MerchantDiscount, type MerchantDiscountInput$2 as MerchantDiscountInput, type MessageEnvelope$e as MessageEnvelope, type MultiCurrencyPrice$3 as MultiCurrencyPrice, NameInLineItem$2 as NameInLineItem, NameInOther$2 as NameInOther, type Other$2 as Other, type OtherCharge$3 as OtherCharge, PaymentOptionType$5 as PaymentOptionType, type PhysicalProperties$5 as PhysicalProperties, type PickupDetails$6 as PickupDetails, PickupMethod$5 as PickupMethod, type PlainTextValue$4 as PlainTextValue, type PriceDescription$4 as PriceDescription, type PriceSummary$5 as PriceSummary, type ProductName$4 as ProductName, RateType$3 as RateType, type context$h_RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest$1 as RemoveCouponRequest, type RemoveCouponResponse$1 as RemoveCouponResponse, type RemoveCouponResponseNonNullableFields$1 as RemoveCouponResponseNonNullableFields, type context$h_RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest$1 as RemoveLineItemsRequest, type RemoveLineItemsResponse$1 as RemoveLineItemsResponse, type RemoveLineItemsResponseNonNullableFields$1 as RemoveLineItemsResponseNonNullableFields, type RestoreInfo$e as RestoreInfo, 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$2 as Severity, type ShippingInformation$3 as ShippingInformation, type ShippingOption$5 as ShippingOption, type ShippingPrice$5 as ShippingPrice, type ShippingRegion$5 as ShippingRegion, type StreetAddress$7 as StreetAddress, SubscriptionFrequency$6 as SubscriptionFrequency, type SubscriptionOptionInfo$3 as SubscriptionOptionInfo, type SubscriptionSettings$6 as SubscriptionSettings, type SystemError$4 as SystemError, type Target$2 as Target, type TargetLineItem$2 as TargetLineItem, type TargetTargetTypeOneOf$2 as TargetTargetTypeOneOf, type TaxBreakdown$3 as TaxBreakdown, type TaxCalculationDetails$3 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$3 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$3 as TaxRateBreakdown, type TaxSummary$5 as TaxSummary, type TaxableAddress$5 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$5 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$5 as TaxableAddressType, type Title$2 as Title, type context$h_UpdateCartRequest as UpdateCartRequest, type context$h_UpdateCartResponse as UpdateCartResponse, type context$h_UpdateCartResponseNonNullableFields as UpdateCartResponseNonNullableFields, type context$h_UpdateCurrentCartLineItemQuantityRequest as UpdateCurrentCartLineItemQuantityRequest, type context$h_UpdateCurrentCartOptions as UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest$1 as UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse$1 as UpdateLineItemsQuantityResponse, type UpdateLineItemsQuantityResponseNonNullableFields$1 as UpdateLineItemsQuantityResponseNonNullableFields, type context$h_V1Coupon as V1Coupon, type context$h_V1MerchantDiscount as V1MerchantDiscount, type ValidationError$4 as ValidationError, type VatId$5 as VatId, VatType$5 as VatType, type Violation$2 as Violation, WebhookIdentityType$e as WebhookIdentityType, WeightUnit$6 as WeightUnit, type context$h__publicOnCartCreatedType as _publicOnCartCreatedType, type context$h__publicOnCartDeletedType as _publicOnCartDeletedType, type context$h__publicOnCartUpdatedType as _publicOnCartUpdatedType, context$h_addToCurrentCart as addToCurrentCart, context$h_createCheckoutFromCurrentCart as createCheckoutFromCurrentCart, context$h_deleteCurrentCart as deleteCurrentCart, context$h_estimateCurrentCartTotals as estimateCurrentCartTotals, context$h_getCurrentCart as getCurrentCart, context$h_onCartCreated as onCartCreated, context$h_onCartDeleted as onCartDeleted, context$h_onCartUpdated as onCartUpdated, onCartCreated$1 as publicOnCartCreated, onCartDeleted$1 as publicOnCartDeleted, onCartUpdated$1 as publicOnCartUpdated, context$h_removeCouponFromCurrentCart as removeCouponFromCurrentCart, context$h_removeLineItemsFromCurrentCart as removeLineItemsFromCurrentCart, context$h_updateCurrentCart as updateCurrentCart, context$h_updateCurrentCartLineItemQuantity as updateCurrentCartLineItemQuantity };
|
|
9289
9289
|
}
|
|
9290
9290
|
|
|
9291
9291
|
interface Checkout$1 {
|
|
@@ -12129,7 +12129,7 @@ interface UpdateLineItemsQuantityResponseNonNullableFields {
|
|
|
12129
12129
|
interface GetCheckoutPaymentSettingsResponseNonNullableFields {
|
|
12130
12130
|
blockedPaymentOptions: PaymentOption[];
|
|
12131
12131
|
}
|
|
12132
|
-
interface BaseEventMetadata$
|
|
12132
|
+
interface BaseEventMetadata$a {
|
|
12133
12133
|
/** App instance ID. */
|
|
12134
12134
|
instanceId?: string | null;
|
|
12135
12135
|
/** Event type. */
|
|
@@ -12137,7 +12137,7 @@ interface BaseEventMetadata$b {
|
|
|
12137
12137
|
/** The identification type and identity data. */
|
|
12138
12138
|
identity?: IdentificationData$d;
|
|
12139
12139
|
}
|
|
12140
|
-
interface EventMetadata$
|
|
12140
|
+
interface EventMetadata$a extends BaseEventMetadata$a {
|
|
12141
12141
|
/**
|
|
12142
12142
|
* Unique event ID.
|
|
12143
12143
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -12177,15 +12177,15 @@ interface EventMetadata$b extends BaseEventMetadata$b {
|
|
|
12177
12177
|
}
|
|
12178
12178
|
interface CheckoutCreatedEnvelope {
|
|
12179
12179
|
entity: Checkout$1;
|
|
12180
|
-
metadata: EventMetadata$
|
|
12180
|
+
metadata: EventMetadata$a;
|
|
12181
12181
|
}
|
|
12182
12182
|
interface CheckoutUpdatedEnvelope {
|
|
12183
12183
|
entity: Checkout$1;
|
|
12184
|
-
metadata: EventMetadata$
|
|
12184
|
+
metadata: EventMetadata$a;
|
|
12185
12185
|
}
|
|
12186
12186
|
interface CheckoutCompletedEnvelope {
|
|
12187
12187
|
data: CheckoutMarkedAsCompleted;
|
|
12188
|
-
metadata: EventMetadata$
|
|
12188
|
+
metadata: EventMetadata$a;
|
|
12189
12189
|
}
|
|
12190
12190
|
interface CreateCheckoutOptions {
|
|
12191
12191
|
/** Checkout information. */
|
|
@@ -12605,20 +12605,20 @@ interface GetCheckoutPaymentSettingsSignature {
|
|
|
12605
12605
|
/** @param - Checkout ID. */
|
|
12606
12606
|
(_id: string): Promise<GetCheckoutPaymentSettingsResponse & GetCheckoutPaymentSettingsResponseNonNullableFields>;
|
|
12607
12607
|
}
|
|
12608
|
-
declare const onCheckoutCreated$1: EventDefinition$
|
|
12609
|
-
declare const onCheckoutUpdated$1: EventDefinition$
|
|
12610
|
-
declare const onCheckoutCompleted$1: EventDefinition$
|
|
12608
|
+
declare const onCheckoutCreated$1: EventDefinition$g<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
12609
|
+
declare const onCheckoutUpdated$1: EventDefinition$g<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
12610
|
+
declare const onCheckoutCompleted$1: EventDefinition$g<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
12611
12611
|
|
|
12612
|
-
type EventDefinition$
|
|
12612
|
+
type EventDefinition$a<Payload = unknown, Type extends string = string> = {
|
|
12613
12613
|
__type: 'event-definition';
|
|
12614
12614
|
type: Type;
|
|
12615
12615
|
isDomainEvent?: boolean;
|
|
12616
12616
|
transformations?: (envelope: unknown) => Payload;
|
|
12617
12617
|
__payload: Payload;
|
|
12618
12618
|
};
|
|
12619
|
-
declare function EventDefinition$
|
|
12620
|
-
type EventHandler$
|
|
12621
|
-
type BuildEventDefinition$
|
|
12619
|
+
declare function EventDefinition$a<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$a<Payload, Type>;
|
|
12620
|
+
type EventHandler$a<T extends EventDefinition$a> = (payload: T['__payload']) => void | Promise<void>;
|
|
12621
|
+
type BuildEventDefinition$a<T extends EventDefinition$a<any, string>> = (handler: EventHandler$a<T>) => void;
|
|
12622
12622
|
|
|
12623
12623
|
declare global {
|
|
12624
12624
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -12627,7 +12627,7 @@ declare global {
|
|
|
12627
12627
|
}
|
|
12628
12628
|
}
|
|
12629
12629
|
|
|
12630
|
-
declare function createEventModule$
|
|
12630
|
+
declare function createEventModule$a<T extends EventDefinition$a<any, string>>(eventDefinition: T): BuildEventDefinition$a<T> & T;
|
|
12631
12631
|
|
|
12632
12632
|
declare const createCheckout: MaybeContext<BuildRESTFunction<typeof createCheckout$1> & typeof createCheckout$1>;
|
|
12633
12633
|
declare const getCheckout: MaybeContext<BuildRESTFunction<typeof getCheckout$1> & typeof getCheckout$1>;
|
|
@@ -12648,20 +12648,20 @@ type _publicOnCheckoutCreatedType = typeof onCheckoutCreated$1;
|
|
|
12648
12648
|
/**
|
|
12649
12649
|
* Triggered when a checkout is created.
|
|
12650
12650
|
*/
|
|
12651
|
-
declare const onCheckoutCreated: ReturnType<typeof createEventModule$
|
|
12651
|
+
declare const onCheckoutCreated: ReturnType<typeof createEventModule$a<_publicOnCheckoutCreatedType>>;
|
|
12652
12652
|
|
|
12653
12653
|
type _publicOnCheckoutUpdatedType = typeof onCheckoutUpdated$1;
|
|
12654
12654
|
/**
|
|
12655
12655
|
* Triggered when a checkout is updated.
|
|
12656
12656
|
*/
|
|
12657
|
-
declare const onCheckoutUpdated: ReturnType<typeof createEventModule$
|
|
12657
|
+
declare const onCheckoutUpdated: ReturnType<typeof createEventModule$a<_publicOnCheckoutUpdatedType>>;
|
|
12658
12658
|
|
|
12659
12659
|
type _publicOnCheckoutCompletedType = typeof onCheckoutCompleted$1;
|
|
12660
12660
|
/**
|
|
12661
12661
|
* Triggered when an order created from this checkout is
|
|
12662
12662
|
* successfully paid for or when a checkout is marked as completed.
|
|
12663
12663
|
*/
|
|
12664
|
-
declare const onCheckoutCompleted: ReturnType<typeof createEventModule$
|
|
12664
|
+
declare const onCheckoutCompleted: ReturnType<typeof createEventModule$a<_publicOnCheckoutCompletedType>>;
|
|
12665
12665
|
|
|
12666
12666
|
type context$g_AddToCheckoutOptions = AddToCheckoutOptions;
|
|
12667
12667
|
type context$g_AddToCheckoutRequest = AddToCheckoutRequest;
|
|
@@ -12769,7 +12769,7 @@ declare const context$g_removeOverrideCheckoutUrl: typeof removeOverrideCheckout
|
|
|
12769
12769
|
declare const context$g_updateCheckout: typeof updateCheckout;
|
|
12770
12770
|
declare const context$g_updateLineItemsQuantity: typeof updateLineItemsQuantity;
|
|
12771
12771
|
declare namespace context$g {
|
|
12772
|
-
export { type ActionEvent$d as ActionEvent, type context$g_AddToCheckoutOptions as AddToCheckoutOptions, type context$g_AddToCheckoutRequest as AddToCheckoutRequest, type context$g_AddToCheckoutResponse as AddToCheckoutResponse, type context$g_AddToCheckoutResponseNonNullableFields as AddToCheckoutResponseNonNullableFields, type AdditionalFee$4 as AdditionalFee, type Address$7 as Address, type AddressAddressLine1OptionsOneOf$1 as AddressAddressLine1OptionsOneOf, type AddressLocation$6 as AddressLocation, type AddressWithContact$3 as AddressWithContact, type AggregatedTaxBreakdown$2 as AggregatedTaxBreakdown, type context$g_ApiAddress as ApiAddress, type ApplicationError$8 as ApplicationError, type AppliedCoupon$1 as AppliedCoupon, type AppliedDiscount$4 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$4 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$2 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$b as BaseEventMetadata, type BillingInfo$1 as BillingInfo, type BuyerInfo$5 as BuyerInfo, type BuyerInfoIdOneOf$3 as BuyerInfoIdOneOf, type CalculationErrors$3 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$3 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$3 as CarrierError, type CarrierErrors$3 as CarrierErrors, type CarrierServiceOption$2 as CarrierServiceOption, type CatalogOverrideFields$1 as CatalogOverrideFields, type CatalogReference$4 as CatalogReference, type ChannelInfo$3 as ChannelInfo, context$g_ChannelInfoChannelType as ChannelInfoChannelType, ChannelType$4 as ChannelType, type context$g_ChargeDetails as ChargeDetails, ChargeType$3 as ChargeType, type Checkout$1 as Checkout, type context$g_CheckoutCompletedEnvelope as CheckoutCompletedEnvelope, type context$g_CheckoutCreatedEnvelope as CheckoutCreatedEnvelope, type context$g_CheckoutMarkedAsCompleted as CheckoutMarkedAsCompleted, type context$g_CheckoutNonNullableFields as CheckoutNonNullableFields, type context$g_CheckoutUpdatedEnvelope as CheckoutUpdatedEnvelope, type Color$3 as Color, type context$g_CommonVatId as CommonVatId, context$g_CommonVatType as CommonVatType, type ConversionInfo$1 as ConversionInfo, type Coupon$4 as Coupon, type context$g_CreateCheckoutOptions as CreateCheckoutOptions, type context$g_CreateCheckoutRequest as CreateCheckoutRequest, type context$g_CreateCheckoutResponse as CreateCheckoutResponse, type context$g_CreateCheckoutResponseNonNullableFields as CreateCheckoutResponseNonNullableFields, type context$g_CreateOrderAndChargeRequest as CreateOrderAndChargeRequest, type context$g_CreateOrderAndChargeResponse as CreateOrderAndChargeResponse, type context$g_CreateOrderAndChargeResponseIdOneOf as CreateOrderAndChargeResponseIdOneOf, type context$g_CreateOrderOptions as CreateOrderOptions, type CreateOrderRequest$1 as CreateOrderRequest, type CreateOrderResponse$1 as CreateOrderResponse, type context$g_CreateOrderResponseIdOneOf as CreateOrderResponseIdOneOf, type CreateOrderResponseNonNullableFields$1 as CreateOrderResponseNonNullableFields, type CreatedBy$3 as CreatedBy, type CreatedByIdOneOf$1 as CreatedByIdOneOf, type CustomContentReference$1 as CustomContentReference, type CustomField$4 as CustomField, type CustomLineItem$2 as CustomLineItem, type CustomSettings$1 as CustomSettings, type CustomTextFieldSelection$1 as CustomTextFieldSelection, type DeliveryLogistics$4 as DeliveryLogistics, type DeliveryTimeSlot$4 as DeliveryTimeSlot, type Description$1 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 Discount$2 as Discount, context$g_DiscountDiscountType as DiscountDiscountType, type DiscountRule$4 as DiscountRule, type DiscountRuleName$4 as DiscountRuleName, DiscountType$4 as DiscountType, type DomainEvent$d as DomainEvent, type DomainEventBodyOneOf$d as DomainEventBodyOneOf, type context$g_DoublePaymentErrorData as DoublePaymentErrorData, type context$g_DoublePaymentErrorDataIdOneOf as DoublePaymentErrorDataIdOneOf, type Empty$8 as Empty, type EntityCreatedEvent$d as EntityCreatedEvent, type EntityDeletedEvent$d as EntityDeletedEvent, type EntityUpdatedEvent$d as EntityUpdatedEvent, type EventMetadata$b as EventMetadata, type ExtendedFields$7 as ExtendedFields, type ExternalReference$2 as ExternalReference, FallbackReason$2 as FallbackReason, type FieldViolation$3 as FieldViolation, FileType$2 as FileType, type FullAddressContactDetails$3 as FullAddressContactDetails, type FullName$1 as FullName, type context$g_GetCheckoutByCartIdRequest as GetCheckoutByCartIdRequest, type context$g_GetCheckoutByCartIdResponse as GetCheckoutByCartIdResponse, type context$g_GetCheckoutByCartIdResponseNonNullableFields as GetCheckoutByCartIdResponseNonNullableFields, type context$g_GetCheckoutPaymentSettingsRequest as GetCheckoutPaymentSettingsRequest, type context$g_GetCheckoutPaymentSettingsResponse as GetCheckoutPaymentSettingsResponse, type context$g_GetCheckoutPaymentSettingsResponseNonNullableFields as GetCheckoutPaymentSettingsResponseNonNullableFields, type context$g_GetCheckoutRequest as GetCheckoutRequest, type context$g_GetCheckoutResponse as GetCheckoutResponse, type context$g_GetCheckoutResponseNonNullableFields as GetCheckoutResponseNonNullableFields, type context$g_GetCheckoutURLRequest as GetCheckoutURLRequest, type context$g_GetCheckoutURLResponse as GetCheckoutURLResponse, type context$g_GetCheckoutURLResponseNonNullableFields as GetCheckoutURLResponseNonNullableFields, type context$g_GetCheckoutWithAllExtendedFieldsRequest as GetCheckoutWithAllExtendedFieldsRequest, type context$g_GetCheckoutWithAllExtendedFieldsResponse as GetCheckoutWithAllExtendedFieldsResponse, type context$g_GetWixCheckoutURLRequest as GetWixCheckoutURLRequest, type context$g_GetWixCheckoutURLResponse as GetWixCheckoutURLResponse, type GiftCard$4 as GiftCard, type Group$2 as Group, type IdentificationData$d as IdentificationData, type IdentificationDataIdOneOf$d as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type InvalidMembership$2 as InvalidMembership, type ItemAvailabilityInfo$1 as ItemAvailabilityInfo, ItemAvailabilityStatus$1 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$4 as LineItem, type LineItemDiscount$4 as LineItemDiscount, type context$g_LineItemQuantityUpdate as LineItemQuantityUpdate, LineItemType$1 as LineItemType, ManualCalculationReason$2 as ManualCalculationReason, type context$g_MarkCheckoutAsCompletedRequest as MarkCheckoutAsCompletedRequest, type context$g_MarkCheckoutAsCompletedResponse as MarkCheckoutAsCompletedResponse, type MediaItem$1 as MediaItem, MediaItemType$1 as MediaItemType, type Membership$2 as Membership, type MembershipName$5 as MembershipName, type MembershipOptions$2 as MembershipOptions, type MembershipPaymentCredits$2 as MembershipPaymentCredits, type MerchantDiscount$4 as MerchantDiscount, type MerchantDiscountInput$1 as MerchantDiscountInput, type MessageEnvelope$d as MessageEnvelope, type MultiCurrencyPrice$2 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type OptionSelection$1 as OptionSelection, type Other$1 as Other, type OtherCharge$2 as OtherCharge, type context$g_PaymentErrorResponseData as PaymentErrorResponseData, context$g_PaymentOption as PaymentOption, PaymentOptionType$4 as PaymentOptionType, type PhysicalProperties$4 as PhysicalProperties, type PickupAddress$3 as PickupAddress, type PickupDetails$5 as PickupDetails, PickupMethod$4 as PickupMethod, type PlainTextValue$3 as PlainTextValue, type PriceDescription$3 as PriceDescription, type PriceSummary$4 as PriceSummary, type context$g_ProductDetails as ProductDetails, type ProductName$3 as ProductName, RateType$2 as RateType, type context$g_RedeemErrorData as RedeemErrorData, type context$g_RemoveCouponRequest as RemoveCouponRequest, type context$g_RemoveCouponResponse as RemoveCouponResponse, type context$g_RemoveCouponResponseNonNullableFields as RemoveCouponResponseNonNullableFields, type context$g_RemoveGiftCardRequest as RemoveGiftCardRequest, type context$g_RemoveGiftCardResponse as RemoveGiftCardResponse, type context$g_RemoveGiftCardResponseNonNullableFields as RemoveGiftCardResponseNonNullableFields, type context$g_RemoveLineItemsRequest as RemoveLineItemsRequest, type context$g_RemoveLineItemsResponse as RemoveLineItemsResponse, type context$g_RemoveLineItemsResponseNonNullableFields as RemoveLineItemsResponseNonNullableFields, type context$g_RemoveOverrideCheckoutUrlRequest as RemoveOverrideCheckoutUrlRequest, type context$g_RemoveOverrideCheckoutUrlResponse as RemoveOverrideCheckoutUrlResponse, type context$g_RemoveOverrideCheckoutUrlResponseNonNullableFields as RemoveOverrideCheckoutUrlResponseNonNullableFields, type RestoreInfo$d as RestoreInfo, 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 ServiceProperties$3 as ServiceProperties, Severity$1 as Severity, type ShipmentDetails$1 as ShipmentDetails, type context$g_ShippingCalculationErrorData as ShippingCalculationErrorData, type context$g_ShippingCalculationErrorDataShippingCalculationErrorOneOf as ShippingCalculationErrorDataShippingCalculationErrorOneOf, type ShippingInfo$2 as ShippingInfo, type ShippingOption$4 as ShippingOption, type ShippingPrice$4 as ShippingPrice, type ShippingRegion$4 as ShippingRegion, type context$g_StoreSettings as StoreSettings, type Street$1 as Street, type StreetAddress$6 as StreetAddress, type context$g_Subscription as Subscription, type context$g_SubscriptionCreated as SubscriptionCreated, SubscriptionFrequency$5 as SubscriptionFrequency, type SubscriptionOptionInfo$2 as SubscriptionOptionInfo, type SubscriptionSettings$5 as SubscriptionSettings, type SystemError$3 as SystemError, type Target$1 as Target, type TargetLineItem$1 as TargetLineItem, type TargetTargetTypeOneOf$1 as TargetTargetTypeOneOf, type TaxBreakdown$2 as TaxBreakdown, type TaxCalculationDetails$2 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$2 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$2 as TaxRateBreakdown, type TaxSummary$4 as TaxSummary, type TaxableAddress$4 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$4 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$4 as TaxableAddressType, type Title$1 as Title, type Totals$1 as Totals, type context$g_UpdateCheckout as UpdateCheckout, type context$g_UpdateCheckoutOptions as UpdateCheckoutOptions, type context$g_UpdateCheckoutRequest as UpdateCheckoutRequest, type context$g_UpdateCheckoutResponse as UpdateCheckoutResponse, type context$g_UpdateCheckoutResponseNonNullableFields as UpdateCheckoutResponseNonNullableFields, type context$g_UpdateLineItemsQuantityRequest as UpdateLineItemsQuantityRequest, type context$g_UpdateLineItemsQuantityResponse as UpdateLineItemsQuantityResponse, type context$g_UpdateLineItemsQuantityResponseNonNullableFields as UpdateLineItemsQuantityResponseNonNullableFields, type context$g_UpdatedCheckoutMessage as UpdatedCheckoutMessage, type context$g_V1BuyerInfo as V1BuyerInfo, type context$g_V1CustomField as V1CustomField, type V1LineItem$1 as V1LineItem, type V1PickupDetails$1 as V1PickupDetails, type context$g_V1ShippingInfo as V1ShippingInfo, type context$g_V1ShippingInfoDetailsOneOf as V1ShippingInfoDetailsOneOf, type context$g_V1SubscriptionOptionInfo as V1SubscriptionOptionInfo, type context$g_V1SubscriptionSettings as V1SubscriptionSettings, type ValidationError$3 as ValidationError, type VatId$4 as VatId, VatType$4 as VatType, type Violation$1 as Violation, type context$g_ViolationsList as ViolationsList, WebhookIdentityType$d as WebhookIdentityType, WeightUnit$5 as WeightUnit, type context$g__publicOnCheckoutCompletedType as _publicOnCheckoutCompletedType, type context$g__publicOnCheckoutCreatedType as _publicOnCheckoutCreatedType, type context$g__publicOnCheckoutUpdatedType as _publicOnCheckoutUpdatedType, context$g_addToCheckout as addToCheckout, context$g_createCheckout as createCheckout, createOrder$2 as createOrder, context$g_getCheckout as getCheckout, context$g_getCheckoutByCartId as getCheckoutByCartId, context$g_getCheckoutPaymentSettings as getCheckoutPaymentSettings, context$g_getCheckoutUrl as getCheckoutUrl, context$g_markCheckoutAsCompleted as markCheckoutAsCompleted, context$g_onCheckoutCompleted as onCheckoutCompleted, context$g_onCheckoutCreated as onCheckoutCreated, context$g_onCheckoutUpdated as onCheckoutUpdated, onCheckoutCompleted$1 as publicOnCheckoutCompleted, onCheckoutCreated$1 as publicOnCheckoutCreated, onCheckoutUpdated$1 as publicOnCheckoutUpdated, context$g_removeCoupon as removeCoupon, context$g_removeGiftCard as removeGiftCard, context$g_removeLineItems as removeLineItems, context$g_removeOverrideCheckoutUrl as removeOverrideCheckoutUrl, context$g_updateCheckout as updateCheckout, context$g_updateLineItemsQuantity as updateLineItemsQuantity };
|
|
12772
|
+
export { type ActionEvent$d as ActionEvent, type context$g_AddToCheckoutOptions as AddToCheckoutOptions, type context$g_AddToCheckoutRequest as AddToCheckoutRequest, type context$g_AddToCheckoutResponse as AddToCheckoutResponse, type context$g_AddToCheckoutResponseNonNullableFields as AddToCheckoutResponseNonNullableFields, type AdditionalFee$4 as AdditionalFee, type Address$7 as Address, type AddressAddressLine1OptionsOneOf$1 as AddressAddressLine1OptionsOneOf, type AddressLocation$6 as AddressLocation, type AddressWithContact$3 as AddressWithContact, type AggregatedTaxBreakdown$2 as AggregatedTaxBreakdown, type context$g_ApiAddress as ApiAddress, type ApplicationError$8 as ApplicationError, type AppliedCoupon$1 as AppliedCoupon, type AppliedDiscount$4 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$4 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$2 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$a as BaseEventMetadata, type BillingInfo$1 as BillingInfo, type BuyerInfo$5 as BuyerInfo, type BuyerInfoIdOneOf$3 as BuyerInfoIdOneOf, type CalculationErrors$3 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$3 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$3 as CarrierError, type CarrierErrors$3 as CarrierErrors, type CarrierServiceOption$2 as CarrierServiceOption, type CatalogOverrideFields$1 as CatalogOverrideFields, type CatalogReference$4 as CatalogReference, type ChannelInfo$3 as ChannelInfo, context$g_ChannelInfoChannelType as ChannelInfoChannelType, ChannelType$4 as ChannelType, type context$g_ChargeDetails as ChargeDetails, ChargeType$3 as ChargeType, type Checkout$1 as Checkout, type context$g_CheckoutCompletedEnvelope as CheckoutCompletedEnvelope, type context$g_CheckoutCreatedEnvelope as CheckoutCreatedEnvelope, type context$g_CheckoutMarkedAsCompleted as CheckoutMarkedAsCompleted, type context$g_CheckoutNonNullableFields as CheckoutNonNullableFields, type context$g_CheckoutUpdatedEnvelope as CheckoutUpdatedEnvelope, type Color$3 as Color, type context$g_CommonVatId as CommonVatId, context$g_CommonVatType as CommonVatType, type ConversionInfo$1 as ConversionInfo, type Coupon$4 as Coupon, type context$g_CreateCheckoutOptions as CreateCheckoutOptions, type context$g_CreateCheckoutRequest as CreateCheckoutRequest, type context$g_CreateCheckoutResponse as CreateCheckoutResponse, type context$g_CreateCheckoutResponseNonNullableFields as CreateCheckoutResponseNonNullableFields, type context$g_CreateOrderAndChargeRequest as CreateOrderAndChargeRequest, type context$g_CreateOrderAndChargeResponse as CreateOrderAndChargeResponse, type context$g_CreateOrderAndChargeResponseIdOneOf as CreateOrderAndChargeResponseIdOneOf, type context$g_CreateOrderOptions as CreateOrderOptions, type CreateOrderRequest$1 as CreateOrderRequest, type CreateOrderResponse$1 as CreateOrderResponse, type context$g_CreateOrderResponseIdOneOf as CreateOrderResponseIdOneOf, type CreateOrderResponseNonNullableFields$1 as CreateOrderResponseNonNullableFields, type CreatedBy$3 as CreatedBy, type CreatedByIdOneOf$1 as CreatedByIdOneOf, type CustomContentReference$1 as CustomContentReference, type CustomField$4 as CustomField, type CustomLineItem$2 as CustomLineItem, type CustomSettings$1 as CustomSettings, type CustomTextFieldSelection$1 as CustomTextFieldSelection, type DeliveryLogistics$4 as DeliveryLogistics, type DeliveryTimeSlot$4 as DeliveryTimeSlot, type Description$1 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 Discount$2 as Discount, context$g_DiscountDiscountType as DiscountDiscountType, type DiscountRule$4 as DiscountRule, type DiscountRuleName$4 as DiscountRuleName, DiscountType$4 as DiscountType, type DomainEvent$d as DomainEvent, type DomainEventBodyOneOf$d as DomainEventBodyOneOf, type context$g_DoublePaymentErrorData as DoublePaymentErrorData, type context$g_DoublePaymentErrorDataIdOneOf as DoublePaymentErrorDataIdOneOf, type Empty$8 as Empty, type EntityCreatedEvent$d as EntityCreatedEvent, type EntityDeletedEvent$d as EntityDeletedEvent, type EntityUpdatedEvent$d as EntityUpdatedEvent, type EventMetadata$a as EventMetadata, type ExtendedFields$7 as ExtendedFields, type ExternalReference$2 as ExternalReference, FallbackReason$2 as FallbackReason, type FieldViolation$3 as FieldViolation, FileType$2 as FileType, type FullAddressContactDetails$3 as FullAddressContactDetails, type FullName$1 as FullName, type context$g_GetCheckoutByCartIdRequest as GetCheckoutByCartIdRequest, type context$g_GetCheckoutByCartIdResponse as GetCheckoutByCartIdResponse, type context$g_GetCheckoutByCartIdResponseNonNullableFields as GetCheckoutByCartIdResponseNonNullableFields, type context$g_GetCheckoutPaymentSettingsRequest as GetCheckoutPaymentSettingsRequest, type context$g_GetCheckoutPaymentSettingsResponse as GetCheckoutPaymentSettingsResponse, type context$g_GetCheckoutPaymentSettingsResponseNonNullableFields as GetCheckoutPaymentSettingsResponseNonNullableFields, type context$g_GetCheckoutRequest as GetCheckoutRequest, type context$g_GetCheckoutResponse as GetCheckoutResponse, type context$g_GetCheckoutResponseNonNullableFields as GetCheckoutResponseNonNullableFields, type context$g_GetCheckoutURLRequest as GetCheckoutURLRequest, type context$g_GetCheckoutURLResponse as GetCheckoutURLResponse, type context$g_GetCheckoutURLResponseNonNullableFields as GetCheckoutURLResponseNonNullableFields, type context$g_GetCheckoutWithAllExtendedFieldsRequest as GetCheckoutWithAllExtendedFieldsRequest, type context$g_GetCheckoutWithAllExtendedFieldsResponse as GetCheckoutWithAllExtendedFieldsResponse, type context$g_GetWixCheckoutURLRequest as GetWixCheckoutURLRequest, type context$g_GetWixCheckoutURLResponse as GetWixCheckoutURLResponse, type GiftCard$4 as GiftCard, type Group$2 as Group, type IdentificationData$d as IdentificationData, type IdentificationDataIdOneOf$d as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type InvalidMembership$2 as InvalidMembership, type ItemAvailabilityInfo$1 as ItemAvailabilityInfo, ItemAvailabilityStatus$1 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$4 as LineItem, type LineItemDiscount$4 as LineItemDiscount, type context$g_LineItemQuantityUpdate as LineItemQuantityUpdate, LineItemType$1 as LineItemType, ManualCalculationReason$2 as ManualCalculationReason, type context$g_MarkCheckoutAsCompletedRequest as MarkCheckoutAsCompletedRequest, type context$g_MarkCheckoutAsCompletedResponse as MarkCheckoutAsCompletedResponse, type MediaItem$1 as MediaItem, MediaItemType$1 as MediaItemType, type Membership$2 as Membership, type MembershipName$5 as MembershipName, type MembershipOptions$2 as MembershipOptions, type MembershipPaymentCredits$2 as MembershipPaymentCredits, type MerchantDiscount$4 as MerchantDiscount, type MerchantDiscountInput$1 as MerchantDiscountInput, type MessageEnvelope$d as MessageEnvelope, type MultiCurrencyPrice$2 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type OptionSelection$1 as OptionSelection, type Other$1 as Other, type OtherCharge$2 as OtherCharge, type context$g_PaymentErrorResponseData as PaymentErrorResponseData, context$g_PaymentOption as PaymentOption, PaymentOptionType$4 as PaymentOptionType, type PhysicalProperties$4 as PhysicalProperties, type PickupAddress$3 as PickupAddress, type PickupDetails$5 as PickupDetails, PickupMethod$4 as PickupMethod, type PlainTextValue$3 as PlainTextValue, type PriceDescription$3 as PriceDescription, type PriceSummary$4 as PriceSummary, type context$g_ProductDetails as ProductDetails, type ProductName$3 as ProductName, RateType$2 as RateType, type context$g_RedeemErrorData as RedeemErrorData, type context$g_RemoveCouponRequest as RemoveCouponRequest, type context$g_RemoveCouponResponse as RemoveCouponResponse, type context$g_RemoveCouponResponseNonNullableFields as RemoveCouponResponseNonNullableFields, type context$g_RemoveGiftCardRequest as RemoveGiftCardRequest, type context$g_RemoveGiftCardResponse as RemoveGiftCardResponse, type context$g_RemoveGiftCardResponseNonNullableFields as RemoveGiftCardResponseNonNullableFields, type context$g_RemoveLineItemsRequest as RemoveLineItemsRequest, type context$g_RemoveLineItemsResponse as RemoveLineItemsResponse, type context$g_RemoveLineItemsResponseNonNullableFields as RemoveLineItemsResponseNonNullableFields, type context$g_RemoveOverrideCheckoutUrlRequest as RemoveOverrideCheckoutUrlRequest, type context$g_RemoveOverrideCheckoutUrlResponse as RemoveOverrideCheckoutUrlResponse, type context$g_RemoveOverrideCheckoutUrlResponseNonNullableFields as RemoveOverrideCheckoutUrlResponseNonNullableFields, type RestoreInfo$d as RestoreInfo, 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 ServiceProperties$3 as ServiceProperties, Severity$1 as Severity, type ShipmentDetails$1 as ShipmentDetails, type context$g_ShippingCalculationErrorData as ShippingCalculationErrorData, type context$g_ShippingCalculationErrorDataShippingCalculationErrorOneOf as ShippingCalculationErrorDataShippingCalculationErrorOneOf, type ShippingInfo$2 as ShippingInfo, type ShippingOption$4 as ShippingOption, type ShippingPrice$4 as ShippingPrice, type ShippingRegion$4 as ShippingRegion, type context$g_StoreSettings as StoreSettings, type Street$1 as Street, type StreetAddress$6 as StreetAddress, type context$g_Subscription as Subscription, type context$g_SubscriptionCreated as SubscriptionCreated, SubscriptionFrequency$5 as SubscriptionFrequency, type SubscriptionOptionInfo$2 as SubscriptionOptionInfo, type SubscriptionSettings$5 as SubscriptionSettings, type SystemError$3 as SystemError, type Target$1 as Target, type TargetLineItem$1 as TargetLineItem, type TargetTargetTypeOneOf$1 as TargetTargetTypeOneOf, type TaxBreakdown$2 as TaxBreakdown, type TaxCalculationDetails$2 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$2 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$2 as TaxRateBreakdown, type TaxSummary$4 as TaxSummary, type TaxableAddress$4 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$4 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$4 as TaxableAddressType, type Title$1 as Title, type Totals$1 as Totals, type context$g_UpdateCheckout as UpdateCheckout, type context$g_UpdateCheckoutOptions as UpdateCheckoutOptions, type context$g_UpdateCheckoutRequest as UpdateCheckoutRequest, type context$g_UpdateCheckoutResponse as UpdateCheckoutResponse, type context$g_UpdateCheckoutResponseNonNullableFields as UpdateCheckoutResponseNonNullableFields, type context$g_UpdateLineItemsQuantityRequest as UpdateLineItemsQuantityRequest, type context$g_UpdateLineItemsQuantityResponse as UpdateLineItemsQuantityResponse, type context$g_UpdateLineItemsQuantityResponseNonNullableFields as UpdateLineItemsQuantityResponseNonNullableFields, type context$g_UpdatedCheckoutMessage as UpdatedCheckoutMessage, type context$g_V1BuyerInfo as V1BuyerInfo, type context$g_V1CustomField as V1CustomField, type V1LineItem$1 as V1LineItem, type V1PickupDetails$1 as V1PickupDetails, type context$g_V1ShippingInfo as V1ShippingInfo, type context$g_V1ShippingInfoDetailsOneOf as V1ShippingInfoDetailsOneOf, type context$g_V1SubscriptionOptionInfo as V1SubscriptionOptionInfo, type context$g_V1SubscriptionSettings as V1SubscriptionSettings, type ValidationError$3 as ValidationError, type VatId$4 as VatId, VatType$4 as VatType, type Violation$1 as Violation, type context$g_ViolationsList as ViolationsList, WebhookIdentityType$d as WebhookIdentityType, WeightUnit$5 as WeightUnit, type context$g__publicOnCheckoutCompletedType as _publicOnCheckoutCompletedType, type context$g__publicOnCheckoutCreatedType as _publicOnCheckoutCreatedType, type context$g__publicOnCheckoutUpdatedType as _publicOnCheckoutUpdatedType, context$g_addToCheckout as addToCheckout, context$g_createCheckout as createCheckout, createOrder$2 as createOrder, context$g_getCheckout as getCheckout, context$g_getCheckoutByCartId as getCheckoutByCartId, context$g_getCheckoutPaymentSettings as getCheckoutPaymentSettings, context$g_getCheckoutUrl as getCheckoutUrl, context$g_markCheckoutAsCompleted as markCheckoutAsCompleted, context$g_onCheckoutCompleted as onCheckoutCompleted, context$g_onCheckoutCreated as onCheckoutCreated, context$g_onCheckoutUpdated as onCheckoutUpdated, onCheckoutCompleted$1 as publicOnCheckoutCompleted, onCheckoutCreated$1 as publicOnCheckoutCreated, onCheckoutUpdated$1 as publicOnCheckoutUpdated, context$g_removeCoupon as removeCoupon, context$g_removeGiftCard as removeGiftCard, context$g_removeLineItems as removeLineItems, context$g_removeOverrideCheckoutUrl as removeOverrideCheckoutUrl, context$g_updateCheckout as updateCheckout, context$g_updateLineItemsQuantity as updateLineItemsQuantity };
|
|
12773
12773
|
}
|
|
12774
12774
|
|
|
12775
12775
|
interface CheckoutSettings {
|
|
@@ -13110,7 +13110,7 @@ interface GetCheckoutSettingsResponseNonNullableFields {
|
|
|
13110
13110
|
interface UpdateCheckoutSettingsResponseNonNullableFields {
|
|
13111
13111
|
checkoutSettings?: CheckoutSettingsNonNullableFields;
|
|
13112
13112
|
}
|
|
13113
|
-
interface BaseEventMetadata$
|
|
13113
|
+
interface BaseEventMetadata$9 {
|
|
13114
13114
|
/** App instance ID. */
|
|
13115
13115
|
instanceId?: string | null;
|
|
13116
13116
|
/** Event type. */
|
|
@@ -13118,7 +13118,7 @@ interface BaseEventMetadata$a {
|
|
|
13118
13118
|
/** The identification type and identity data. */
|
|
13119
13119
|
identity?: IdentificationData$c;
|
|
13120
13120
|
}
|
|
13121
|
-
interface EventMetadata$
|
|
13121
|
+
interface EventMetadata$9 extends BaseEventMetadata$9 {
|
|
13122
13122
|
/**
|
|
13123
13123
|
* Unique event ID.
|
|
13124
13124
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -13158,7 +13158,7 @@ interface EventMetadata$a extends BaseEventMetadata$a {
|
|
|
13158
13158
|
}
|
|
13159
13159
|
interface CheckoutSettingsUpdatedEnvelope {
|
|
13160
13160
|
entity: CheckoutSettings;
|
|
13161
|
-
metadata: EventMetadata$
|
|
13161
|
+
metadata: EventMetadata$9;
|
|
13162
13162
|
}
|
|
13163
13163
|
|
|
13164
13164
|
declare function getCheckoutSettings$1(httpClient: HttpClient): GetCheckoutSettingsSignature;
|
|
@@ -13184,18 +13184,18 @@ interface UpdateCheckoutSettingsSignature {
|
|
|
13184
13184
|
*/
|
|
13185
13185
|
(checkoutSettings: CheckoutSettings): Promise<UpdateCheckoutSettingsResponse & UpdateCheckoutSettingsResponseNonNullableFields>;
|
|
13186
13186
|
}
|
|
13187
|
-
declare const onCheckoutSettingsUpdated$1: EventDefinition$
|
|
13187
|
+
declare const onCheckoutSettingsUpdated$1: EventDefinition$g<CheckoutSettingsUpdatedEnvelope, "wix.ecom.v1.checkout_settings_updated">;
|
|
13188
13188
|
|
|
13189
|
-
type EventDefinition$
|
|
13189
|
+
type EventDefinition$9<Payload = unknown, Type extends string = string> = {
|
|
13190
13190
|
__type: 'event-definition';
|
|
13191
13191
|
type: Type;
|
|
13192
13192
|
isDomainEvent?: boolean;
|
|
13193
13193
|
transformations?: (envelope: unknown) => Payload;
|
|
13194
13194
|
__payload: Payload;
|
|
13195
13195
|
};
|
|
13196
|
-
declare function EventDefinition$
|
|
13197
|
-
type EventHandler$
|
|
13198
|
-
type BuildEventDefinition$
|
|
13196
|
+
declare function EventDefinition$9<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$9<Payload, Type>;
|
|
13197
|
+
type EventHandler$9<T extends EventDefinition$9> = (payload: T['__payload']) => void | Promise<void>;
|
|
13198
|
+
type BuildEventDefinition$9<T extends EventDefinition$9<any, string>> = (handler: EventHandler$9<T>) => void;
|
|
13199
13199
|
|
|
13200
13200
|
declare global {
|
|
13201
13201
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -13204,7 +13204,7 @@ declare global {
|
|
|
13204
13204
|
}
|
|
13205
13205
|
}
|
|
13206
13206
|
|
|
13207
|
-
declare function createEventModule$
|
|
13207
|
+
declare function createEventModule$9<T extends EventDefinition$9<any, string>>(eventDefinition: T): BuildEventDefinition$9<T> & T;
|
|
13208
13208
|
|
|
13209
13209
|
declare const getCheckoutSettings: MaybeContext<BuildRESTFunction<typeof getCheckoutSettings$1> & typeof getCheckoutSettings$1>;
|
|
13210
13210
|
declare const updateCheckoutSettings: MaybeContext<BuildRESTFunction<typeof updateCheckoutSettings$1> & typeof updateCheckoutSettings$1>;
|
|
@@ -13213,7 +13213,7 @@ type _publicOnCheckoutSettingsUpdatedType = typeof onCheckoutSettingsUpdated$1;
|
|
|
13213
13213
|
/**
|
|
13214
13214
|
* Triggered when checkout settings are updated.
|
|
13215
13215
|
*/
|
|
13216
|
-
declare const onCheckoutSettingsUpdated: ReturnType<typeof createEventModule$
|
|
13216
|
+
declare const onCheckoutSettingsUpdated: ReturnType<typeof createEventModule$9<_publicOnCheckoutSettingsUpdatedType>>;
|
|
13217
13217
|
|
|
13218
13218
|
type context$f_Alignment = Alignment;
|
|
13219
13219
|
declare const context$f_Alignment: typeof Alignment;
|
|
@@ -13249,7 +13249,7 @@ declare const context$f_getCheckoutSettings: typeof getCheckoutSettings;
|
|
|
13249
13249
|
declare const context$f_onCheckoutSettingsUpdated: typeof onCheckoutSettingsUpdated;
|
|
13250
13250
|
declare const context$f_updateCheckoutSettings: typeof updateCheckoutSettings;
|
|
13251
13251
|
declare namespace context$f {
|
|
13252
|
-
export { type ActionEvent$c as ActionEvent, context$f_Alignment as Alignment, type BaseEventMetadata$
|
|
13252
|
+
export { type ActionEvent$c as ActionEvent, context$f_Alignment as Alignment, type BaseEventMetadata$9 as BaseEventMetadata, type context$f_CheckboxField as CheckboxField, type context$f_CheckoutBrand as CheckoutBrand, type context$f_CheckoutFields as CheckoutFields, type context$f_CheckoutHeader as CheckoutHeader, type context$f_CheckoutPolicies as CheckoutPolicies, type context$f_CheckoutSettings as CheckoutSettings, type context$f_CheckoutSettingsUpdatedEnvelope as CheckoutSettingsUpdatedEnvelope, type context$f_ContactUsPolicy as ContactUsPolicy, type context$f_CustomCheckoutPolicy as CustomCheckoutPolicy, type context$f_DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequest, type context$f_DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponse, type context$f_DigitalItemPolicy as DigitalItemPolicy, type DomainEvent$c as DomainEvent, type DomainEventBodyOneOf$c as DomainEventBodyOneOf, type Empty$7 as Empty, type EntityCreatedEvent$c as EntityCreatedEvent, type EntityDeletedEvent$c as EntityDeletedEvent, type EntityUpdatedEvent$c as EntityUpdatedEvent, type EventMetadata$9 as EventMetadata, type context$f_GetCheckoutSettingsRequest as GetCheckoutSettingsRequest, type context$f_GetCheckoutSettingsResponse as GetCheckoutSettingsResponse, type context$f_GetCheckoutSettingsResponseNonNullableFields as GetCheckoutSettingsResponseNonNullableFields, type context$f_GiftCardProviderWasProvisioned as GiftCardProviderWasProvisioned, type IdentificationData$c as IdentificationData, type IdentificationDataIdOneOf$c as IdentificationDataIdOneOf, type context$f_ListCheckoutSettingsRequest as ListCheckoutSettingsRequest, type context$f_ListCheckoutSettingsResponse as ListCheckoutSettingsResponse, type context$f_Logo as Logo, context$f_LogoSize as LogoSize, type MessageEnvelope$c as MessageEnvelope, type context$f_PrivacyPolicy as PrivacyPolicy, type RestoreInfo$c as RestoreInfo, type context$f_ReturnPolicy as ReturnPolicy, type context$f_TermsAndConditionsPolicy as TermsAndConditionsPolicy, type context$f_UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequest, type context$f_UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponse, type context$f_UpdateCheckoutSettingsResponseNonNullableFields as UpdateCheckoutSettingsResponseNonNullableFields, WebhookIdentityType$c as WebhookIdentityType, type context$f__publicOnCheckoutSettingsUpdatedType as _publicOnCheckoutSettingsUpdatedType, context$f_getCheckoutSettings as getCheckoutSettings, context$f_onCheckoutSettingsUpdated as onCheckoutSettingsUpdated, onCheckoutSettingsUpdated$1 as publicOnCheckoutSettingsUpdated, context$f_updateCheckoutSettings as updateCheckoutSettings };
|
|
13253
13253
|
}
|
|
13254
13254
|
|
|
13255
13255
|
interface CheckoutTemplate {
|
|
@@ -15312,7 +15312,7 @@ interface RawHttpResponseNonNullableFields {
|
|
|
15312
15312
|
body: Uint8Array;
|
|
15313
15313
|
headers: HeadersEntryNonNullableFields[];
|
|
15314
15314
|
}
|
|
15315
|
-
interface BaseEventMetadata$
|
|
15315
|
+
interface BaseEventMetadata$8 {
|
|
15316
15316
|
/** App instance ID. */
|
|
15317
15317
|
instanceId?: string | null;
|
|
15318
15318
|
/** Event type. */
|
|
@@ -15320,7 +15320,7 @@ interface BaseEventMetadata$9 {
|
|
|
15320
15320
|
/** The identification type and identity data. */
|
|
15321
15321
|
identity?: IdentificationData$b;
|
|
15322
15322
|
}
|
|
15323
|
-
interface EventMetadata$
|
|
15323
|
+
interface EventMetadata$8 extends BaseEventMetadata$8 {
|
|
15324
15324
|
/**
|
|
15325
15325
|
* Unique event ID.
|
|
15326
15326
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -15360,18 +15360,18 @@ interface EventMetadata$9 extends BaseEventMetadata$9 {
|
|
|
15360
15360
|
}
|
|
15361
15361
|
interface CheckoutTemplateCreatedEnvelope {
|
|
15362
15362
|
entity: CheckoutTemplate;
|
|
15363
|
-
metadata: EventMetadata$
|
|
15363
|
+
metadata: EventMetadata$8;
|
|
15364
15364
|
}
|
|
15365
15365
|
interface CheckoutTemplateUpdatedEnvelope {
|
|
15366
15366
|
entity: CheckoutTemplate;
|
|
15367
|
-
metadata: EventMetadata$
|
|
15367
|
+
metadata: EventMetadata$8;
|
|
15368
15368
|
}
|
|
15369
15369
|
interface CheckoutTemplateDeletedEnvelope {
|
|
15370
|
-
metadata: EventMetadata$
|
|
15370
|
+
metadata: EventMetadata$8;
|
|
15371
15371
|
}
|
|
15372
15372
|
interface CheckoutTemplateUsedEnvelope {
|
|
15373
15373
|
data: CheckoutTemplateUsed;
|
|
15374
|
-
metadata: EventMetadata$
|
|
15374
|
+
metadata: EventMetadata$8;
|
|
15375
15375
|
}
|
|
15376
15376
|
interface UpdateCheckoutTemplate {
|
|
15377
15377
|
/**
|
|
@@ -15575,21 +15575,21 @@ interface CreateAndRedirectToCheckoutSignature {
|
|
|
15575
15575
|
*/
|
|
15576
15576
|
(checkoutTemplateId: string, siteId: string): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
15577
15577
|
}
|
|
15578
|
-
declare const onCheckoutTemplateCreated$1: EventDefinition$
|
|
15579
|
-
declare const onCheckoutTemplateUpdated$1: EventDefinition$
|
|
15580
|
-
declare const onCheckoutTemplateDeleted$1: EventDefinition$
|
|
15581
|
-
declare const onCheckoutTemplateUsed$1: EventDefinition$
|
|
15578
|
+
declare const onCheckoutTemplateCreated$1: EventDefinition$g<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
|
|
15579
|
+
declare const onCheckoutTemplateUpdated$1: EventDefinition$g<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
|
|
15580
|
+
declare const onCheckoutTemplateDeleted$1: EventDefinition$g<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
|
|
15581
|
+
declare const onCheckoutTemplateUsed$1: EventDefinition$g<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
|
|
15582
15582
|
|
|
15583
|
-
type EventDefinition$
|
|
15583
|
+
type EventDefinition$8<Payload = unknown, Type extends string = string> = {
|
|
15584
15584
|
__type: 'event-definition';
|
|
15585
15585
|
type: Type;
|
|
15586
15586
|
isDomainEvent?: boolean;
|
|
15587
15587
|
transformations?: (envelope: unknown) => Payload;
|
|
15588
15588
|
__payload: Payload;
|
|
15589
15589
|
};
|
|
15590
|
-
declare function EventDefinition$
|
|
15591
|
-
type EventHandler$
|
|
15592
|
-
type BuildEventDefinition$
|
|
15590
|
+
declare function EventDefinition$8<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$8<Payload, Type>;
|
|
15591
|
+
type EventHandler$8<T extends EventDefinition$8> = (payload: T['__payload']) => void | Promise<void>;
|
|
15592
|
+
type BuildEventDefinition$8<T extends EventDefinition$8<any, string>> = (handler: EventHandler$8<T>) => void;
|
|
15593
15593
|
|
|
15594
15594
|
declare global {
|
|
15595
15595
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -15598,7 +15598,7 @@ declare global {
|
|
|
15598
15598
|
}
|
|
15599
15599
|
}
|
|
15600
15600
|
|
|
15601
|
-
declare function createEventModule$
|
|
15601
|
+
declare function createEventModule$8<T extends EventDefinition$8<any, string>>(eventDefinition: T): BuildEventDefinition$8<T> & T;
|
|
15602
15602
|
|
|
15603
15603
|
declare const createCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof createCheckoutTemplate$1> & typeof createCheckoutTemplate$1>;
|
|
15604
15604
|
declare const getCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof getCheckoutTemplate$1> & typeof getCheckoutTemplate$1>;
|
|
@@ -15612,25 +15612,25 @@ type _publicOnCheckoutTemplateCreatedType = typeof onCheckoutTemplateCreated$1;
|
|
|
15612
15612
|
/**
|
|
15613
15613
|
* Triggered when a checkout template is created.
|
|
15614
15614
|
*/
|
|
15615
|
-
declare const onCheckoutTemplateCreated: ReturnType<typeof createEventModule$
|
|
15615
|
+
declare const onCheckoutTemplateCreated: ReturnType<typeof createEventModule$8<_publicOnCheckoutTemplateCreatedType>>;
|
|
15616
15616
|
|
|
15617
15617
|
type _publicOnCheckoutTemplateUpdatedType = typeof onCheckoutTemplateUpdated$1;
|
|
15618
15618
|
/**
|
|
15619
15619
|
* Triggered when a checkout template is updated.
|
|
15620
15620
|
*/
|
|
15621
|
-
declare const onCheckoutTemplateUpdated: ReturnType<typeof createEventModule$
|
|
15621
|
+
declare const onCheckoutTemplateUpdated: ReturnType<typeof createEventModule$8<_publicOnCheckoutTemplateUpdatedType>>;
|
|
15622
15622
|
|
|
15623
15623
|
type _publicOnCheckoutTemplateDeletedType = typeof onCheckoutTemplateDeleted$1;
|
|
15624
15624
|
/**
|
|
15625
15625
|
* Triggered when a checkout template is deleted.
|
|
15626
15626
|
*/
|
|
15627
|
-
declare const onCheckoutTemplateDeleted: ReturnType<typeof createEventModule$
|
|
15627
|
+
declare const onCheckoutTemplateDeleted: ReturnType<typeof createEventModule$8<_publicOnCheckoutTemplateDeletedType>>;
|
|
15628
15628
|
|
|
15629
15629
|
type _publicOnCheckoutTemplateUsedType = typeof onCheckoutTemplateUsed$1;
|
|
15630
15630
|
/**
|
|
15631
15631
|
* Triggered when a checkout is created from a checkout template.
|
|
15632
15632
|
*/
|
|
15633
|
-
declare const onCheckoutTemplateUsed: ReturnType<typeof createEventModule$
|
|
15633
|
+
declare const onCheckoutTemplateUsed: ReturnType<typeof createEventModule$8<_publicOnCheckoutTemplateUsedType>>;
|
|
15634
15634
|
|
|
15635
15635
|
type context$e_CatalogOverrideFields = CatalogOverrideFields;
|
|
15636
15636
|
type context$e_Checkout = Checkout;
|
|
@@ -15704,7 +15704,7 @@ declare const context$e_onCheckoutTemplateUsed: typeof onCheckoutTemplateUsed;
|
|
|
15704
15704
|
declare const context$e_queryCheckoutTemplates: typeof queryCheckoutTemplates;
|
|
15705
15705
|
declare const context$e_updateCheckoutTemplate: typeof updateCheckoutTemplate;
|
|
15706
15706
|
declare namespace context$e {
|
|
15707
|
-
export { type ActionEvent$b as ActionEvent, type AdditionalFee$3 as AdditionalFee, type Address$6 as Address, type AddressLocation$5 as AddressLocation, type AddressWithContact$2 as AddressWithContact, type AggregatedTaxBreakdown$1 as AggregatedTaxBreakdown, type ApplicationError$7 as ApplicationError, type AppliedDiscount$3 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$3 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$1 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$9 as BaseEventMetadata, type BuyerInfo$4 as BuyerInfo, type BuyerInfoIdOneOf$2 as BuyerInfoIdOneOf, type CalculationErrors$2 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$2 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$2 as CarrierError, type CarrierErrors$2 as CarrierErrors, type CarrierServiceOption$1 as CarrierServiceOption, type context$e_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$3 as CatalogReference, ChannelType$3 as ChannelType, ChargeType$2 as ChargeType, type context$e_Checkout as Checkout, type context$e_CheckoutCustomization as CheckoutCustomization, type context$e_CheckoutTemplate as CheckoutTemplate, type context$e_CheckoutTemplateCreatedEnvelope as CheckoutTemplateCreatedEnvelope, type context$e_CheckoutTemplateDeletedEnvelope as CheckoutTemplateDeletedEnvelope, type context$e_CheckoutTemplateNonNullableFields as CheckoutTemplateNonNullableFields, type context$e_CheckoutTemplateUpdatedEnvelope as CheckoutTemplateUpdatedEnvelope, type context$e_CheckoutTemplateUsed as CheckoutTemplateUsed, type context$e_CheckoutTemplateUsedEnvelope as CheckoutTemplateUsedEnvelope, type context$e_CheckoutTemplatesQueryBuilder as CheckoutTemplatesQueryBuilder, type context$e_CheckoutTemplatesQueryResult as CheckoutTemplatesQueryResult, type Color$2 as Color, type context$e_ConversionInfo as ConversionInfo, type Coupon$3 as Coupon, type context$e_CreateAndRedirectToCheckoutRequest as CreateAndRedirectToCheckoutRequest, type context$e_CreateCheckoutFromTemplateRequest as CreateCheckoutFromTemplateRequest, type context$e_CreateCheckoutFromTemplateResponse as CreateCheckoutFromTemplateResponse, type context$e_CreateCheckoutFromTemplateResponseNonNullableFields as CreateCheckoutFromTemplateResponseNonNullableFields, type context$e_CreateCheckoutTemplateRequest as CreateCheckoutTemplateRequest, type context$e_CreateCheckoutTemplateResponse as CreateCheckoutTemplateResponse, type context$e_CreateCheckoutTemplateResponseNonNullableFields as CreateCheckoutTemplateResponseNonNullableFields, type CreatedBy$2 as CreatedBy, type context$e_CreatedByIdOneOf as CreatedByIdOneOf, type CursorPaging$8 as CursorPaging, type CursorPagingMetadata$8 as CursorPagingMetadata, type CursorQuery$6 as CursorQuery, type CursorQueryPagingMethodOneOf$6 as CursorQueryPagingMethodOneOf, type Cursors$8 as Cursors, type context$e_CustomContentReference as CustomContentReference, type CustomField$3 as CustomField, type CustomLineItem$1 as CustomLineItem, type context$e_CustomSettings as CustomSettings, type context$e_DeleteCheckoutTemplateRequest as DeleteCheckoutTemplateRequest, type context$e_DeleteCheckoutTemplateResponse as DeleteCheckoutTemplateResponse, type DeliveryLogistics$3 as DeliveryLogistics, type DeliveryTimeSlot$3 as DeliveryTimeSlot, type context$e_Description 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 DiscountRule$3 as DiscountRule, type DiscountRuleName$3 as DiscountRuleName, DiscountType$3 as DiscountType, type DomainEvent$b as DomainEvent, type DomainEventBodyOneOf$b as DomainEventBodyOneOf, type EntityCreatedEvent$b as EntityCreatedEvent, type EntityDeletedEvent$b as EntityDeletedEvent, type EntityUpdatedEvent$b as EntityUpdatedEvent, type EventMetadata$9 as EventMetadata, type ExtendedFields$6 as ExtendedFields, type ExternalReference$1 as ExternalReference, FallbackReason$1 as FallbackReason, type FieldViolation$2 as FieldViolation, FileType$1 as FileType, type FullAddressContactDetails$2 as FullAddressContactDetails, type context$e_GetCheckoutTemplateRequest as GetCheckoutTemplateRequest, type context$e_GetCheckoutTemplateResponse as GetCheckoutTemplateResponse, type context$e_GetCheckoutTemplateResponseNonNullableFields as GetCheckoutTemplateResponseNonNullableFields, type GiftCard$3 as GiftCard, type Group$1 as Group, type context$e_HeadersEntry as HeadersEntry, type IdentificationData$b as IdentificationData, type IdentificationDataIdOneOf$b as IdentificationDataIdOneOf, type InvalidMembership$1 as InvalidMembership, type context$e_ItemAvailabilityInfo as ItemAvailabilityInfo, context$e_ItemAvailabilityStatus 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$3 as LineItem, type LineItemDiscount$3 as LineItemDiscount, ManualCalculationReason$1 as ManualCalculationReason, type Membership$1 as Membership, type MembershipName$4 as MembershipName, type MembershipOptions$1 as MembershipOptions, type MembershipPaymentCredits$1 as MembershipPaymentCredits, type MerchantDiscount$3 as MerchantDiscount, type MessageEnvelope$b as MessageEnvelope, type MultiCurrencyPrice$1 as MultiCurrencyPrice, context$e_NameInLineItem as NameInLineItem, context$e_NameInOther as NameInOther, type context$e_Other as Other, type OtherCharge$1 as OtherCharge, PaymentOptionType$3 as PaymentOptionType, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$4 as PickupDetails, PickupMethod$3 as PickupMethod, type PlainTextValue$2 as PlainTextValue, type PriceDescription$2 as PriceDescription, type PriceSummary$3 as PriceSummary, type ProductName$2 as ProductName, type context$e_QueryCheckoutTemplatesRequest as QueryCheckoutTemplatesRequest, type context$e_QueryCheckoutTemplatesResponse as QueryCheckoutTemplatesResponse, type context$e_QueryCheckoutTemplatesResponseNonNullableFields as QueryCheckoutTemplatesResponseNonNullableFields, RateType$1 as RateType, type context$e_RawHttpResponse as RawHttpResponse, type context$e_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type RestoreInfo$b as RestoreInfo, 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, context$e_Severity as Severity, type ShippingInfo$1 as ShippingInfo, type ShippingOption$3 as ShippingOption, type ShippingPrice$3 as ShippingPrice, type ShippingRegion$3 as ShippingRegion, SortOrder$8 as SortOrder, type Sorting$8 as Sorting, Status$2 as Status, type StreetAddress$5 as StreetAddress, SubscriptionFrequency$4 as SubscriptionFrequency, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$4 as SubscriptionSettings, type SystemError$2 as SystemError, type context$e_Target as Target, type context$e_TargetLineItem as TargetLineItem, type context$e_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type TaxBreakdown$1 as TaxBreakdown, type TaxCalculationDetails$1 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$1 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$1 as TaxRateBreakdown, type TaxSummary$3 as TaxSummary, type TaxableAddress$3 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$3 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$3 as TaxableAddressType, type context$e_Title as Title, type context$e_UpdateCheckoutTemplate as UpdateCheckoutTemplate, type context$e_UpdateCheckoutTemplateRequest as UpdateCheckoutTemplateRequest, type context$e_UpdateCheckoutTemplateResponse as UpdateCheckoutTemplateResponse, type context$e_UpdateCheckoutTemplateResponseNonNullableFields as UpdateCheckoutTemplateResponseNonNullableFields, type context$e_V1LineItem as V1LineItem, type ValidationError$2 as ValidationError, type VatId$3 as VatId, VatType$3 as VatType, type context$e_Violation as Violation, type context$e_WebClientCustomization as WebClientCustomization, WebhookIdentityType$b as WebhookIdentityType, WeightUnit$4 as WeightUnit, type context$e__publicOnCheckoutTemplateCreatedType as _publicOnCheckoutTemplateCreatedType, type context$e__publicOnCheckoutTemplateDeletedType as _publicOnCheckoutTemplateDeletedType, type context$e__publicOnCheckoutTemplateUpdatedType as _publicOnCheckoutTemplateUpdatedType, type context$e__publicOnCheckoutTemplateUsedType as _publicOnCheckoutTemplateUsedType, context$e_createAndRedirectToCheckout as createAndRedirectToCheckout, context$e_createCheckoutFromTemplate as createCheckoutFromTemplate, context$e_createCheckoutTemplate as createCheckoutTemplate, context$e_deleteCheckoutTemplate as deleteCheckoutTemplate, context$e_getCheckoutTemplate as getCheckoutTemplate, context$e_onCheckoutTemplateCreated as onCheckoutTemplateCreated, context$e_onCheckoutTemplateDeleted as onCheckoutTemplateDeleted, context$e_onCheckoutTemplateUpdated as onCheckoutTemplateUpdated, context$e_onCheckoutTemplateUsed as onCheckoutTemplateUsed, onCheckoutTemplateCreated$1 as publicOnCheckoutTemplateCreated, onCheckoutTemplateDeleted$1 as publicOnCheckoutTemplateDeleted, onCheckoutTemplateUpdated$1 as publicOnCheckoutTemplateUpdated, onCheckoutTemplateUsed$1 as publicOnCheckoutTemplateUsed, context$e_queryCheckoutTemplates as queryCheckoutTemplates, context$e_updateCheckoutTemplate as updateCheckoutTemplate };
|
|
15707
|
+
export { type ActionEvent$b as ActionEvent, type AdditionalFee$3 as AdditionalFee, type Address$6 as Address, type AddressLocation$5 as AddressLocation, type AddressWithContact$2 as AddressWithContact, type AggregatedTaxBreakdown$1 as AggregatedTaxBreakdown, type ApplicationError$7 as ApplicationError, type AppliedDiscount$3 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$3 as AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails$1 as AutoTaxFallbackCalculationDetails, type BaseEventMetadata$8 as BaseEventMetadata, type BuyerInfo$4 as BuyerInfo, type BuyerInfoIdOneOf$2 as BuyerInfoIdOneOf, type CalculationErrors$2 as CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf$2 as CalculationErrorsShippingCalculationErrorOneOf, type CarrierError$2 as CarrierError, type CarrierErrors$2 as CarrierErrors, type CarrierServiceOption$1 as CarrierServiceOption, type context$e_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$3 as CatalogReference, ChannelType$3 as ChannelType, ChargeType$2 as ChargeType, type context$e_Checkout as Checkout, type context$e_CheckoutCustomization as CheckoutCustomization, type context$e_CheckoutTemplate as CheckoutTemplate, type context$e_CheckoutTemplateCreatedEnvelope as CheckoutTemplateCreatedEnvelope, type context$e_CheckoutTemplateDeletedEnvelope as CheckoutTemplateDeletedEnvelope, type context$e_CheckoutTemplateNonNullableFields as CheckoutTemplateNonNullableFields, type context$e_CheckoutTemplateUpdatedEnvelope as CheckoutTemplateUpdatedEnvelope, type context$e_CheckoutTemplateUsed as CheckoutTemplateUsed, type context$e_CheckoutTemplateUsedEnvelope as CheckoutTemplateUsedEnvelope, type context$e_CheckoutTemplatesQueryBuilder as CheckoutTemplatesQueryBuilder, type context$e_CheckoutTemplatesQueryResult as CheckoutTemplatesQueryResult, type Color$2 as Color, type context$e_ConversionInfo as ConversionInfo, type Coupon$3 as Coupon, type context$e_CreateAndRedirectToCheckoutRequest as CreateAndRedirectToCheckoutRequest, type context$e_CreateCheckoutFromTemplateRequest as CreateCheckoutFromTemplateRequest, type context$e_CreateCheckoutFromTemplateResponse as CreateCheckoutFromTemplateResponse, type context$e_CreateCheckoutFromTemplateResponseNonNullableFields as CreateCheckoutFromTemplateResponseNonNullableFields, type context$e_CreateCheckoutTemplateRequest as CreateCheckoutTemplateRequest, type context$e_CreateCheckoutTemplateResponse as CreateCheckoutTemplateResponse, type context$e_CreateCheckoutTemplateResponseNonNullableFields as CreateCheckoutTemplateResponseNonNullableFields, type CreatedBy$2 as CreatedBy, type context$e_CreatedByIdOneOf as CreatedByIdOneOf, type CursorPaging$8 as CursorPaging, type CursorPagingMetadata$8 as CursorPagingMetadata, type CursorQuery$6 as CursorQuery, type CursorQueryPagingMethodOneOf$6 as CursorQueryPagingMethodOneOf, type Cursors$8 as Cursors, type context$e_CustomContentReference as CustomContentReference, type CustomField$3 as CustomField, type CustomLineItem$1 as CustomLineItem, type context$e_CustomSettings as CustomSettings, type context$e_DeleteCheckoutTemplateRequest as DeleteCheckoutTemplateRequest, type context$e_DeleteCheckoutTemplateResponse as DeleteCheckoutTemplateResponse, type DeliveryLogistics$3 as DeliveryLogistics, type DeliveryTimeSlot$3 as DeliveryTimeSlot, type context$e_Description 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 DiscountRule$3 as DiscountRule, type DiscountRuleName$3 as DiscountRuleName, DiscountType$3 as DiscountType, type DomainEvent$b as DomainEvent, type DomainEventBodyOneOf$b as DomainEventBodyOneOf, type EntityCreatedEvent$b as EntityCreatedEvent, type EntityDeletedEvent$b as EntityDeletedEvent, type EntityUpdatedEvent$b as EntityUpdatedEvent, type EventMetadata$8 as EventMetadata, type ExtendedFields$6 as ExtendedFields, type ExternalReference$1 as ExternalReference, FallbackReason$1 as FallbackReason, type FieldViolation$2 as FieldViolation, FileType$1 as FileType, type FullAddressContactDetails$2 as FullAddressContactDetails, type context$e_GetCheckoutTemplateRequest as GetCheckoutTemplateRequest, type context$e_GetCheckoutTemplateResponse as GetCheckoutTemplateResponse, type context$e_GetCheckoutTemplateResponseNonNullableFields as GetCheckoutTemplateResponseNonNullableFields, type GiftCard$3 as GiftCard, type Group$1 as Group, type context$e_HeadersEntry as HeadersEntry, type IdentificationData$b as IdentificationData, type IdentificationDataIdOneOf$b as IdentificationDataIdOneOf, type InvalidMembership$1 as InvalidMembership, type context$e_ItemAvailabilityInfo as ItemAvailabilityInfo, context$e_ItemAvailabilityStatus 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$3 as LineItem, type LineItemDiscount$3 as LineItemDiscount, ManualCalculationReason$1 as ManualCalculationReason, type Membership$1 as Membership, type MembershipName$4 as MembershipName, type MembershipOptions$1 as MembershipOptions, type MembershipPaymentCredits$1 as MembershipPaymentCredits, type MerchantDiscount$3 as MerchantDiscount, type MessageEnvelope$b as MessageEnvelope, type MultiCurrencyPrice$1 as MultiCurrencyPrice, context$e_NameInLineItem as NameInLineItem, context$e_NameInOther as NameInOther, type context$e_Other as Other, type OtherCharge$1 as OtherCharge, PaymentOptionType$3 as PaymentOptionType, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$4 as PickupDetails, PickupMethod$3 as PickupMethod, type PlainTextValue$2 as PlainTextValue, type PriceDescription$2 as PriceDescription, type PriceSummary$3 as PriceSummary, type ProductName$2 as ProductName, type context$e_QueryCheckoutTemplatesRequest as QueryCheckoutTemplatesRequest, type context$e_QueryCheckoutTemplatesResponse as QueryCheckoutTemplatesResponse, type context$e_QueryCheckoutTemplatesResponseNonNullableFields as QueryCheckoutTemplatesResponseNonNullableFields, RateType$1 as RateType, type context$e_RawHttpResponse as RawHttpResponse, type context$e_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type RestoreInfo$b as RestoreInfo, 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, context$e_Severity as Severity, type ShippingInfo$1 as ShippingInfo, type ShippingOption$3 as ShippingOption, type ShippingPrice$3 as ShippingPrice, type ShippingRegion$3 as ShippingRegion, SortOrder$8 as SortOrder, type Sorting$8 as Sorting, Status$2 as Status, type StreetAddress$5 as StreetAddress, SubscriptionFrequency$4 as SubscriptionFrequency, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$4 as SubscriptionSettings, type SystemError$2 as SystemError, type context$e_Target as Target, type context$e_TargetLineItem as TargetLineItem, type context$e_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type TaxBreakdown$1 as TaxBreakdown, type TaxCalculationDetails$1 as TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf$1 as TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown$1 as TaxRateBreakdown, type TaxSummary$3 as TaxSummary, type TaxableAddress$3 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$3 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$3 as TaxableAddressType, type context$e_Title as Title, type context$e_UpdateCheckoutTemplate as UpdateCheckoutTemplate, type context$e_UpdateCheckoutTemplateRequest as UpdateCheckoutTemplateRequest, type context$e_UpdateCheckoutTemplateResponse as UpdateCheckoutTemplateResponse, type context$e_UpdateCheckoutTemplateResponseNonNullableFields as UpdateCheckoutTemplateResponseNonNullableFields, type context$e_V1LineItem as V1LineItem, type ValidationError$2 as ValidationError, type VatId$3 as VatId, VatType$3 as VatType, type context$e_Violation as Violation, type context$e_WebClientCustomization as WebClientCustomization, WebhookIdentityType$b as WebhookIdentityType, WeightUnit$4 as WeightUnit, type context$e__publicOnCheckoutTemplateCreatedType as _publicOnCheckoutTemplateCreatedType, type context$e__publicOnCheckoutTemplateDeletedType as _publicOnCheckoutTemplateDeletedType, type context$e__publicOnCheckoutTemplateUpdatedType as _publicOnCheckoutTemplateUpdatedType, type context$e__publicOnCheckoutTemplateUsedType as _publicOnCheckoutTemplateUsedType, context$e_createAndRedirectToCheckout as createAndRedirectToCheckout, context$e_createCheckoutFromTemplate as createCheckoutFromTemplate, context$e_createCheckoutTemplate as createCheckoutTemplate, context$e_deleteCheckoutTemplate as deleteCheckoutTemplate, context$e_getCheckoutTemplate as getCheckoutTemplate, context$e_onCheckoutTemplateCreated as onCheckoutTemplateCreated, context$e_onCheckoutTemplateDeleted as onCheckoutTemplateDeleted, context$e_onCheckoutTemplateUpdated as onCheckoutTemplateUpdated, context$e_onCheckoutTemplateUsed as onCheckoutTemplateUsed, onCheckoutTemplateCreated$1 as publicOnCheckoutTemplateCreated, onCheckoutTemplateDeleted$1 as publicOnCheckoutTemplateDeleted, onCheckoutTemplateUpdated$1 as publicOnCheckoutTemplateUpdated, onCheckoutTemplateUsed$1 as publicOnCheckoutTemplateUsed, context$e_queryCheckoutTemplates as queryCheckoutTemplates, context$e_updateCheckoutTemplate as updateCheckoutTemplate };
|
|
15708
15708
|
}
|
|
15709
15709
|
|
|
15710
15710
|
/**
|
|
@@ -15952,7 +15952,7 @@ interface Cursors$7 {
|
|
|
15952
15952
|
/** Cursor pointing to the previous page in the list of results. */
|
|
15953
15953
|
prev?: string | null;
|
|
15954
15954
|
}
|
|
15955
|
-
interface AddDeliveryRegionRequest {
|
|
15955
|
+
interface AddDeliveryRegionRequest$1 {
|
|
15956
15956
|
/** delivery profile id to associated with the DeliveryRegion */
|
|
15957
15957
|
deliveryProfileId: string;
|
|
15958
15958
|
/** DeliveryRegion to be created */
|
|
@@ -15963,7 +15963,7 @@ interface AddDeliveryRegionRequest {
|
|
|
15963
15963
|
*/
|
|
15964
15964
|
revision?: string | null;
|
|
15965
15965
|
}
|
|
15966
|
-
interface AddDeliveryRegionResponse {
|
|
15966
|
+
interface AddDeliveryRegionResponse$1 {
|
|
15967
15967
|
/** The updated DeliveryProfile with the new DeliveryRegion */
|
|
15968
15968
|
deliveryProfile?: DeliveryProfile;
|
|
15969
15969
|
}
|
|
@@ -16007,7 +16007,7 @@ interface DeliveryRegionUpdated {
|
|
|
16007
16007
|
*/
|
|
16008
16008
|
_createdDate?: Date;
|
|
16009
16009
|
}
|
|
16010
|
-
interface RemoveDeliveryRegionRequest {
|
|
16010
|
+
interface RemoveDeliveryRegionRequest$1 {
|
|
16011
16011
|
/** DeliveryProfile id that owns the DeliveryRegion */
|
|
16012
16012
|
deliveryProfileId: string;
|
|
16013
16013
|
/** Id of the DeliveryRegion to delete */
|
|
@@ -16018,7 +16018,7 @@ interface RemoveDeliveryRegionRequest {
|
|
|
16018
16018
|
*/
|
|
16019
16019
|
revision?: string | null;
|
|
16020
16020
|
}
|
|
16021
|
-
interface RemoveDeliveryRegionResponse {
|
|
16021
|
+
interface RemoveDeliveryRegionResponse$1 {
|
|
16022
16022
|
/** The updated DeliveryProfile without DeliveryRegion */
|
|
16023
16023
|
deliveryProfile?: DeliveryProfile;
|
|
16024
16024
|
}
|
|
@@ -16587,13 +16587,13 @@ interface UpdateDeliveryProfileResponseNonNullableFields {
|
|
|
16587
16587
|
interface QueryDeliveryProfilesResponseNonNullableFields {
|
|
16588
16588
|
deliveryProfiles: DeliveryProfileNonNullableFields[];
|
|
16589
16589
|
}
|
|
16590
|
-
interface AddDeliveryRegionResponseNonNullableFields {
|
|
16590
|
+
interface AddDeliveryRegionResponseNonNullableFields$1 {
|
|
16591
16591
|
deliveryProfile?: DeliveryProfileNonNullableFields;
|
|
16592
16592
|
}
|
|
16593
16593
|
interface UpdateDeliveryRegionResponseNonNullableFields {
|
|
16594
16594
|
deliveryProfile?: DeliveryProfileNonNullableFields;
|
|
16595
16595
|
}
|
|
16596
|
-
interface RemoveDeliveryRegionResponseNonNullableFields {
|
|
16596
|
+
interface RemoveDeliveryRegionResponseNonNullableFields$1 {
|
|
16597
16597
|
deliveryProfile?: DeliveryProfileNonNullableFields;
|
|
16598
16598
|
}
|
|
16599
16599
|
interface AddDeliveryCarrierResponseNonNullableFields {
|
|
@@ -16654,7 +16654,7 @@ interface ListDeliveryCarriersResponseNonNullableFields {
|
|
|
16654
16654
|
interface UpdateExtendedFieldsResponseNonNullableFields$3 {
|
|
16655
16655
|
deliveryProfile?: DeliveryProfileNonNullableFields;
|
|
16656
16656
|
}
|
|
16657
|
-
interface BaseEventMetadata$
|
|
16657
|
+
interface BaseEventMetadata$7 {
|
|
16658
16658
|
/** App instance ID. */
|
|
16659
16659
|
instanceId?: string | null;
|
|
16660
16660
|
/** Event type. */
|
|
@@ -16662,7 +16662,7 @@ interface BaseEventMetadata$8 {
|
|
|
16662
16662
|
/** The identification type and identity data. */
|
|
16663
16663
|
identity?: IdentificationData$a;
|
|
16664
16664
|
}
|
|
16665
|
-
interface EventMetadata$
|
|
16665
|
+
interface EventMetadata$7 extends BaseEventMetadata$7 {
|
|
16666
16666
|
/**
|
|
16667
16667
|
* Unique event ID.
|
|
16668
16668
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -16702,27 +16702,27 @@ interface EventMetadata$8 extends BaseEventMetadata$8 {
|
|
|
16702
16702
|
}
|
|
16703
16703
|
interface DeliveryProfileCreatedEnvelope {
|
|
16704
16704
|
entity: DeliveryProfile;
|
|
16705
|
-
metadata: EventMetadata$
|
|
16705
|
+
metadata: EventMetadata$7;
|
|
16706
16706
|
}
|
|
16707
16707
|
interface DeliveryProfileDeliveryRegionAddedEnvelope {
|
|
16708
16708
|
data: DeliveryRegionAdded;
|
|
16709
|
-
metadata: EventMetadata$
|
|
16709
|
+
metadata: EventMetadata$7;
|
|
16710
16710
|
}
|
|
16711
16711
|
interface DeliveryProfileUpdatedEnvelope {
|
|
16712
16712
|
entity: DeliveryProfile;
|
|
16713
|
-
metadata: EventMetadata$
|
|
16713
|
+
metadata: EventMetadata$7;
|
|
16714
16714
|
}
|
|
16715
16715
|
interface DeliveryProfileDeletedEnvelope {
|
|
16716
16716
|
entity: DeliveryProfile;
|
|
16717
|
-
metadata: EventMetadata$
|
|
16717
|
+
metadata: EventMetadata$7;
|
|
16718
16718
|
}
|
|
16719
16719
|
interface DeliveryProfileDeliveryRegionRemovedEnvelope {
|
|
16720
16720
|
data: DeliveryRegionRemoved;
|
|
16721
|
-
metadata: EventMetadata$
|
|
16721
|
+
metadata: EventMetadata$7;
|
|
16722
16722
|
}
|
|
16723
16723
|
interface DeliveryProfileDeliveryRegionUpdatedEnvelope {
|
|
16724
16724
|
data: DeliveryRegionUpdated;
|
|
16725
|
-
metadata: EventMetadata$
|
|
16725
|
+
metadata: EventMetadata$7;
|
|
16726
16726
|
}
|
|
16727
16727
|
interface UpdateDeliveryProfile {
|
|
16728
16728
|
/**
|
|
@@ -16834,7 +16834,7 @@ interface DeliveryProfilesQueryBuilder {
|
|
|
16834
16834
|
/** @documentationMaturity preview */
|
|
16835
16835
|
find: () => Promise<DeliveryProfilesQueryResult>;
|
|
16836
16836
|
}
|
|
16837
|
-
interface AddDeliveryRegionOptions {
|
|
16837
|
+
interface AddDeliveryRegionOptions$1 {
|
|
16838
16838
|
/**
|
|
16839
16839
|
* DeliveryProfile revision.
|
|
16840
16840
|
* @readonly
|
|
@@ -16886,7 +16886,7 @@ interface RemoveDeliveryRegionIdentifiers {
|
|
|
16886
16886
|
/** Id of the DeliveryRegion to delete */
|
|
16887
16887
|
deliveryRegionId: string;
|
|
16888
16888
|
}
|
|
16889
|
-
interface RemoveDeliveryRegionOptions {
|
|
16889
|
+
interface RemoveDeliveryRegionOptions$1 {
|
|
16890
16890
|
/**
|
|
16891
16891
|
* DeliveryProfile revision.
|
|
16892
16892
|
* @readonly
|
|
@@ -16977,14 +16977,14 @@ interface QueryDeliveryProfilesSignature {
|
|
|
16977
16977
|
*/
|
|
16978
16978
|
(): DeliveryProfilesQueryBuilder;
|
|
16979
16979
|
}
|
|
16980
|
-
declare function addDeliveryRegion$
|
|
16981
|
-
interface AddDeliveryRegionSignature {
|
|
16980
|
+
declare function addDeliveryRegion$3(httpClient: HttpClient): AddDeliveryRegionSignature$1;
|
|
16981
|
+
interface AddDeliveryRegionSignature$1 {
|
|
16982
16982
|
/**
|
|
16983
16983
|
* Creates a new DeliveryRegion in an existing DeliveryProfile.
|
|
16984
16984
|
* @param - delivery profile id to associated with the DeliveryRegion
|
|
16985
16985
|
* @param - DeliveryRegion to be created
|
|
16986
16986
|
*/
|
|
16987
|
-
(deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions | undefined): Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
|
|
16987
|
+
(deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions$1 | undefined): Promise<AddDeliveryRegionResponse$1 & AddDeliveryRegionResponseNonNullableFields$1>;
|
|
16988
16988
|
}
|
|
16989
16989
|
declare function updateDeliveryRegion$1(httpClient: HttpClient): UpdateDeliveryRegionSignature;
|
|
16990
16990
|
interface UpdateDeliveryRegionSignature {
|
|
@@ -16997,12 +16997,12 @@ interface UpdateDeliveryRegionSignature {
|
|
|
16997
16997
|
*/
|
|
16998
16998
|
(identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions | undefined): Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
|
|
16999
16999
|
}
|
|
17000
|
-
declare function removeDeliveryRegion$
|
|
17001
|
-
interface RemoveDeliveryRegionSignature {
|
|
17000
|
+
declare function removeDeliveryRegion$3(httpClient: HttpClient): RemoveDeliveryRegionSignature$1;
|
|
17001
|
+
interface RemoveDeliveryRegionSignature$1 {
|
|
17002
17002
|
/**
|
|
17003
17003
|
* Delete a DeliveryRegion
|
|
17004
17004
|
*/
|
|
17005
|
-
(identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions | undefined): Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
17005
|
+
(identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions$1 | undefined): Promise<RemoveDeliveryRegionResponse$1 & RemoveDeliveryRegionResponseNonNullableFields$1>;
|
|
17006
17006
|
}
|
|
17007
17007
|
declare function addDeliveryCarrier$1(httpClient: HttpClient): AddDeliveryCarrierSignature;
|
|
17008
17008
|
interface AddDeliveryCarrierSignature {
|
|
@@ -17053,23 +17053,23 @@ interface UpdateExtendedFieldsSignature$3 {
|
|
|
17053
17053
|
*/
|
|
17054
17054
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions$3): Promise<UpdateExtendedFieldsResponse$4 & UpdateExtendedFieldsResponseNonNullableFields$3>;
|
|
17055
17055
|
}
|
|
17056
|
-
declare const onDeliveryProfileCreated$1: EventDefinition$
|
|
17057
|
-
declare const onDeliveryProfileDeliveryRegionAdded$1: EventDefinition$
|
|
17058
|
-
declare const onDeliveryProfileUpdated$1: EventDefinition$
|
|
17059
|
-
declare const onDeliveryProfileDeleted$1: EventDefinition$
|
|
17060
|
-
declare const onDeliveryProfileDeliveryRegionRemoved$1: EventDefinition$
|
|
17061
|
-
declare const onDeliveryProfileDeliveryRegionUpdated$1: EventDefinition$
|
|
17056
|
+
declare const onDeliveryProfileCreated$1: EventDefinition$g<DeliveryProfileCreatedEnvelope, "wix.ecom.v1.delivery_profile_created">;
|
|
17057
|
+
declare const onDeliveryProfileDeliveryRegionAdded$1: EventDefinition$g<DeliveryProfileDeliveryRegionAddedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_added">;
|
|
17058
|
+
declare const onDeliveryProfileUpdated$1: EventDefinition$g<DeliveryProfileUpdatedEnvelope, "wix.ecom.v1.delivery_profile_updated">;
|
|
17059
|
+
declare const onDeliveryProfileDeleted$1: EventDefinition$g<DeliveryProfileDeletedEnvelope, "wix.ecom.v1.delivery_profile_deleted">;
|
|
17060
|
+
declare const onDeliveryProfileDeliveryRegionRemoved$1: EventDefinition$g<DeliveryProfileDeliveryRegionRemovedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_removed">;
|
|
17061
|
+
declare const onDeliveryProfileDeliveryRegionUpdated$1: EventDefinition$g<DeliveryProfileDeliveryRegionUpdatedEnvelope, "wix.ecom.v1.delivery_profile_delivery_region_updated">;
|
|
17062
17062
|
|
|
17063
|
-
type EventDefinition$
|
|
17063
|
+
type EventDefinition$7<Payload = unknown, Type extends string = string> = {
|
|
17064
17064
|
__type: 'event-definition';
|
|
17065
17065
|
type: Type;
|
|
17066
17066
|
isDomainEvent?: boolean;
|
|
17067
17067
|
transformations?: (envelope: unknown) => Payload;
|
|
17068
17068
|
__payload: Payload;
|
|
17069
17069
|
};
|
|
17070
|
-
declare function EventDefinition$
|
|
17071
|
-
type EventHandler$
|
|
17072
|
-
type BuildEventDefinition$
|
|
17070
|
+
declare function EventDefinition$7<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$7<Payload, Type>;
|
|
17071
|
+
type EventHandler$7<T extends EventDefinition$7> = (payload: T['__payload']) => void | Promise<void>;
|
|
17072
|
+
type BuildEventDefinition$7<T extends EventDefinition$7<any, string>> = (handler: EventHandler$7<T>) => void;
|
|
17073
17073
|
|
|
17074
17074
|
declare global {
|
|
17075
17075
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -17078,16 +17078,16 @@ declare global {
|
|
|
17078
17078
|
}
|
|
17079
17079
|
}
|
|
17080
17080
|
|
|
17081
|
-
declare function createEventModule$
|
|
17081
|
+
declare function createEventModule$7<T extends EventDefinition$7<any, string>>(eventDefinition: T): BuildEventDefinition$7<T> & T;
|
|
17082
17082
|
|
|
17083
17083
|
declare const createDeliveryProfile: MaybeContext<BuildRESTFunction<typeof createDeliveryProfile$1> & typeof createDeliveryProfile$1>;
|
|
17084
17084
|
declare const getDeliveryProfile: MaybeContext<BuildRESTFunction<typeof getDeliveryProfile$1> & typeof getDeliveryProfile$1>;
|
|
17085
17085
|
declare const updateDeliveryProfile: MaybeContext<BuildRESTFunction<typeof updateDeliveryProfile$1> & typeof updateDeliveryProfile$1>;
|
|
17086
17086
|
declare const deleteDeliveryProfile: MaybeContext<BuildRESTFunction<typeof deleteDeliveryProfile$1> & typeof deleteDeliveryProfile$1>;
|
|
17087
17087
|
declare const queryDeliveryProfiles: MaybeContext<BuildRESTFunction<typeof queryDeliveryProfiles$1> & typeof queryDeliveryProfiles$1>;
|
|
17088
|
-
declare const addDeliveryRegion: MaybeContext<BuildRESTFunction<typeof addDeliveryRegion$
|
|
17088
|
+
declare const addDeliveryRegion$2: MaybeContext<BuildRESTFunction<typeof addDeliveryRegion$3> & typeof addDeliveryRegion$3>;
|
|
17089
17089
|
declare const updateDeliveryRegion: MaybeContext<BuildRESTFunction<typeof updateDeliveryRegion$1> & typeof updateDeliveryRegion$1>;
|
|
17090
|
-
declare const removeDeliveryRegion: MaybeContext<BuildRESTFunction<typeof removeDeliveryRegion$
|
|
17090
|
+
declare const removeDeliveryRegion$2: MaybeContext<BuildRESTFunction<typeof removeDeliveryRegion$3> & typeof removeDeliveryRegion$3>;
|
|
17091
17091
|
declare const addDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof addDeliveryCarrier$1> & typeof addDeliveryCarrier$1>;
|
|
17092
17092
|
declare const removeDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof removeDeliveryCarrier$1> & typeof removeDeliveryCarrier$1>;
|
|
17093
17093
|
declare const updateDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof updateDeliveryCarrier$1> & typeof updateDeliveryCarrier$1>;
|
|
@@ -17097,44 +17097,40 @@ declare const updateExtendedFields$6: MaybeContext<BuildRESTFunction<typeof upda
|
|
|
17097
17097
|
|
|
17098
17098
|
type _publicOnDeliveryProfileCreatedType = typeof onDeliveryProfileCreated$1;
|
|
17099
17099
|
/** */
|
|
17100
|
-
declare const onDeliveryProfileCreated: ReturnType<typeof createEventModule$
|
|
17100
|
+
declare const onDeliveryProfileCreated: ReturnType<typeof createEventModule$7<_publicOnDeliveryProfileCreatedType>>;
|
|
17101
17101
|
|
|
17102
17102
|
type _publicOnDeliveryProfileDeliveryRegionAddedType = typeof onDeliveryProfileDeliveryRegionAdded$1;
|
|
17103
17103
|
/**
|
|
17104
17104
|
* Triggered when a delivery_region is added to a delivery_profile.
|
|
17105
17105
|
*/
|
|
17106
|
-
declare const onDeliveryProfileDeliveryRegionAdded: ReturnType<typeof createEventModule$
|
|
17106
|
+
declare const onDeliveryProfileDeliveryRegionAdded: ReturnType<typeof createEventModule$7<_publicOnDeliveryProfileDeliveryRegionAddedType>>;
|
|
17107
17107
|
|
|
17108
17108
|
type _publicOnDeliveryProfileUpdatedType = typeof onDeliveryProfileUpdated$1;
|
|
17109
17109
|
/**
|
|
17110
17110
|
* Triggered when the delivery_carrier updated successfully
|
|
17111
17111
|
*/
|
|
17112
|
-
declare const onDeliveryProfileUpdated: ReturnType<typeof createEventModule$
|
|
17112
|
+
declare const onDeliveryProfileUpdated: ReturnType<typeof createEventModule$7<_publicOnDeliveryProfileUpdatedType>>;
|
|
17113
17113
|
|
|
17114
17114
|
type _publicOnDeliveryProfileDeletedType = typeof onDeliveryProfileDeleted$1;
|
|
17115
17115
|
/** */
|
|
17116
|
-
declare const onDeliveryProfileDeleted: ReturnType<typeof createEventModule$
|
|
17116
|
+
declare const onDeliveryProfileDeleted: ReturnType<typeof createEventModule$7<_publicOnDeliveryProfileDeletedType>>;
|
|
17117
17117
|
|
|
17118
17118
|
type _publicOnDeliveryProfileDeliveryRegionRemovedType = typeof onDeliveryProfileDeliveryRegionRemoved$1;
|
|
17119
17119
|
/**
|
|
17120
17120
|
* Triggered for each delivery_region assigned to the deleted delivery_profile
|
|
17121
17121
|
*/
|
|
17122
|
-
declare const onDeliveryProfileDeliveryRegionRemoved: ReturnType<typeof createEventModule$
|
|
17122
|
+
declare const onDeliveryProfileDeliveryRegionRemoved: ReturnType<typeof createEventModule$7<_publicOnDeliveryProfileDeliveryRegionRemovedType>>;
|
|
17123
17123
|
|
|
17124
17124
|
type _publicOnDeliveryProfileDeliveryRegionUpdatedType = typeof onDeliveryProfileDeliveryRegionUpdated$1;
|
|
17125
17125
|
/**
|
|
17126
17126
|
* Triggered when the delivery_carrier updated successfully
|
|
17127
17127
|
*/
|
|
17128
|
-
declare const onDeliveryProfileDeliveryRegionUpdated: ReturnType<typeof createEventModule$
|
|
17128
|
+
declare const onDeliveryProfileDeliveryRegionUpdated: ReturnType<typeof createEventModule$7<_publicOnDeliveryProfileDeliveryRegionUpdatedType>>;
|
|
17129
17129
|
|
|
17130
17130
|
type context$d_AddDeliveryCarrierOptions = AddDeliveryCarrierOptions;
|
|
17131
17131
|
type context$d_AddDeliveryCarrierRequest = AddDeliveryCarrierRequest;
|
|
17132
17132
|
type context$d_AddDeliveryCarrierResponse = AddDeliveryCarrierResponse;
|
|
17133
17133
|
type context$d_AddDeliveryCarrierResponseNonNullableFields = AddDeliveryCarrierResponseNonNullableFields;
|
|
17134
|
-
type context$d_AddDeliveryRegionOptions = AddDeliveryRegionOptions;
|
|
17135
|
-
type context$d_AddDeliveryRegionRequest = AddDeliveryRegionRequest;
|
|
17136
|
-
type context$d_AddDeliveryRegionResponse = AddDeliveryRegionResponse;
|
|
17137
|
-
type context$d_AddDeliveryRegionResponseNonNullableFields = AddDeliveryRegionResponseNonNullableFields;
|
|
17138
17134
|
type context$d_AdditionalCharge = AdditionalCharge;
|
|
17139
17135
|
type context$d_Asset = Asset;
|
|
17140
17136
|
type context$d_BackupRate = BackupRate;
|
|
@@ -17187,10 +17183,6 @@ type context$d_RemoveDeliveryCarrierRequest = RemoveDeliveryCarrierRequest;
|
|
|
17187
17183
|
type context$d_RemoveDeliveryCarrierResponse = RemoveDeliveryCarrierResponse;
|
|
17188
17184
|
type context$d_RemoveDeliveryCarrierResponseNonNullableFields = RemoveDeliveryCarrierResponseNonNullableFields;
|
|
17189
17185
|
type context$d_RemoveDeliveryRegionIdentifiers = RemoveDeliveryRegionIdentifiers;
|
|
17190
|
-
type context$d_RemoveDeliveryRegionOptions = RemoveDeliveryRegionOptions;
|
|
17191
|
-
type context$d_RemoveDeliveryRegionRequest = RemoveDeliveryRegionRequest;
|
|
17192
|
-
type context$d_RemoveDeliveryRegionResponse = RemoveDeliveryRegionResponse;
|
|
17193
|
-
type context$d_RemoveDeliveryRegionResponseNonNullableFields = RemoveDeliveryRegionResponseNonNullableFields;
|
|
17194
17186
|
type context$d_Row = Row;
|
|
17195
17187
|
type context$d_ServiceProvisioned = ServiceProvisioned;
|
|
17196
17188
|
type context$d_ServiceRemoved = ServiceRemoved;
|
|
@@ -17229,7 +17221,6 @@ type context$d__publicOnDeliveryProfileDeliveryRegionRemovedType = _publicOnDeli
|
|
|
17229
17221
|
type context$d__publicOnDeliveryProfileDeliveryRegionUpdatedType = _publicOnDeliveryProfileDeliveryRegionUpdatedType;
|
|
17230
17222
|
type context$d__publicOnDeliveryProfileUpdatedType = _publicOnDeliveryProfileUpdatedType;
|
|
17231
17223
|
declare const context$d_addDeliveryCarrier: typeof addDeliveryCarrier;
|
|
17232
|
-
declare const context$d_addDeliveryRegion: typeof addDeliveryRegion;
|
|
17233
17224
|
declare const context$d_createDeliveryProfile: typeof createDeliveryProfile;
|
|
17234
17225
|
declare const context$d_deleteDeliveryProfile: typeof deleteDeliveryProfile;
|
|
17235
17226
|
declare const context$d_getDeliveryProfile: typeof getDeliveryProfile;
|
|
@@ -17243,12 +17234,11 @@ declare const context$d_onDeliveryProfileDeliveryRegionUpdated: typeof onDeliver
|
|
|
17243
17234
|
declare const context$d_onDeliveryProfileUpdated: typeof onDeliveryProfileUpdated;
|
|
17244
17235
|
declare const context$d_queryDeliveryProfiles: typeof queryDeliveryProfiles;
|
|
17245
17236
|
declare const context$d_removeDeliveryCarrier: typeof removeDeliveryCarrier;
|
|
17246
|
-
declare const context$d_removeDeliveryRegion: typeof removeDeliveryRegion;
|
|
17247
17237
|
declare const context$d_updateDeliveryCarrier: typeof updateDeliveryCarrier;
|
|
17248
17238
|
declare const context$d_updateDeliveryProfile: typeof updateDeliveryProfile;
|
|
17249
17239
|
declare const context$d_updateDeliveryRegion: typeof updateDeliveryRegion;
|
|
17250
17240
|
declare namespace context$d {
|
|
17251
|
-
export { type ActionEvent$a as ActionEvent, type context$d_AddDeliveryCarrierOptions as AddDeliveryCarrierOptions, type context$d_AddDeliveryCarrierRequest as AddDeliveryCarrierRequest, type context$d_AddDeliveryCarrierResponse as AddDeliveryCarrierResponse, type context$d_AddDeliveryCarrierResponseNonNullableFields as AddDeliveryCarrierResponseNonNullableFields, type context$d_AddDeliveryRegionOptions as AddDeliveryRegionOptions, type context$d_AddDeliveryRegionRequest as AddDeliveryRegionRequest, type context$d_AddDeliveryRegionResponse as AddDeliveryRegionResponse, type context$d_AddDeliveryRegionResponseNonNullableFields as AddDeliveryRegionResponseNonNullableFields, type context$d_AdditionalCharge as AdditionalCharge, type ApplicationError$6 as ApplicationError, type context$d_Asset as Asset, type context$d_BackupRate as BackupRate, type BaseEventMetadata$8 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, ChargeType$1 as ChargeType, type context$d_Column as Column, type context$d_CreateDeliveryProfileRequest as CreateDeliveryProfileRequest, type context$d_CreateDeliveryProfileResponse as CreateDeliveryProfileResponse, type context$d_CreateDeliveryProfileResponseNonNullableFields as CreateDeliveryProfileResponseNonNullableFields, type CursorPaging$7 as CursorPaging, type CursorPagingMetadata$7 as CursorPagingMetadata, type CursorQuery$5 as CursorQuery, type CursorQueryPagingMethodOneOf$5 as CursorQueryPagingMethodOneOf, type Cursors$7 as Cursors, type context$d_DashboardTable as DashboardTable, type context$d_DeleteContext as DeleteContext, type context$d_DeleteDeliveryProfileRequest as DeleteDeliveryProfileRequest, type context$d_DeleteDeliveryProfileResponse as DeleteDeliveryProfileResponse, context$d_DeleteStatus as DeleteStatus, type context$d_DeliveryCarrier as DeliveryCarrier, type context$d_DeliveryCarrierDetails as DeliveryCarrierDetails, type context$d_DeliveryCarrierRegionalSettings as DeliveryCarrierRegionalSettings, type context$d_DeliveryProfile as DeliveryProfile, type context$d_DeliveryProfileCreatedEnvelope as DeliveryProfileCreatedEnvelope, type context$d_DeliveryProfileDeletedEnvelope as DeliveryProfileDeletedEnvelope, type context$d_DeliveryProfileDeliveryRegionAddedEnvelope as DeliveryProfileDeliveryRegionAddedEnvelope, type context$d_DeliveryProfileDeliveryRegionRemovedEnvelope as DeliveryProfileDeliveryRegionRemovedEnvelope, type context$d_DeliveryProfileDeliveryRegionUpdatedEnvelope as DeliveryProfileDeliveryRegionUpdatedEnvelope, type context$d_DeliveryProfileNonNullableFields as DeliveryProfileNonNullableFields, type context$d_DeliveryProfileUpdatedEnvelope as DeliveryProfileUpdatedEnvelope, type context$d_DeliveryProfilesQueryBuilder as DeliveryProfilesQueryBuilder, type context$d_DeliveryProfilesQueryResult as DeliveryProfilesQueryResult, type context$d_DeliveryRegion as DeliveryRegion, type context$d_DeliveryRegionAdded as DeliveryRegionAdded, type context$d_DeliveryRegionRemoved as DeliveryRegionRemoved, type context$d_DeliveryRegionUpdated as DeliveryRegionUpdated, type Destination$1 as Destination, type DomainEvent$a as DomainEvent, type DomainEventBodyOneOf$a as DomainEventBodyOneOf, type Empty$6 as Empty, type EntityCreatedEvent$a as EntityCreatedEvent, type EntityDeletedEvent$a as EntityDeletedEvent, type EntityUpdatedEvent$a as EntityUpdatedEvent, type EventMetadata$8 as EventMetadata, type ExtendedFields$5 as ExtendedFields, type context$d_GetDeliveryProfileRequest as GetDeliveryProfileRequest, type context$d_GetDeliveryProfileResponse as GetDeliveryProfileResponse, type context$d_GetDeliveryProfileResponseNonNullableFields as GetDeliveryProfileResponseNonNullableFields, type IdentificationData$a as IdentificationData, type IdentificationDataIdOneOf$a as IdentificationDataIdOneOf, type ItemMetadata$3 as ItemMetadata, type context$d_ListDeliveryCarrierDetailsRequest as ListDeliveryCarrierDetailsRequest, type context$d_ListDeliveryCarrierDetailsResponse as ListDeliveryCarrierDetailsResponse, type context$d_ListDeliveryCarrierDetailsResponseNonNullableFields as ListDeliveryCarrierDetailsResponseNonNullableFields, type context$d_ListDeliveryCarriersOptions as ListDeliveryCarriersOptions, type context$d_ListDeliveryCarriersRequest as ListDeliveryCarriersRequest, type context$d_ListDeliveryCarriersResponse as ListDeliveryCarriersResponse, type context$d_ListDeliveryCarriersResponseNonNullableFields as ListDeliveryCarriersResponseNonNullableFields, type context$d_ListDeliveryCarriersResult as ListDeliveryCarriersResult, type MessageEnvelope$a as MessageEnvelope, type context$d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, Namespace$1 as Namespace, type context$d_NamespaceChanged as NamespaceChanged, type context$d_QueryDeliveryProfilesRequest as QueryDeliveryProfilesRequest, type context$d_QueryDeliveryProfilesResponse as QueryDeliveryProfilesResponse, type context$d_QueryDeliveryProfilesResponseNonNullableFields as QueryDeliveryProfilesResponseNonNullableFields, type context$d_RemoveDeliveryCarrierOptions as RemoveDeliveryCarrierOptions, type context$d_RemoveDeliveryCarrierRequest as RemoveDeliveryCarrierRequest, type context$d_RemoveDeliveryCarrierResponse as RemoveDeliveryCarrierResponse, type context$d_RemoveDeliveryCarrierResponseNonNullableFields as RemoveDeliveryCarrierResponseNonNullableFields, type context$d_RemoveDeliveryRegionIdentifiers as RemoveDeliveryRegionIdentifiers, type context$d_RemoveDeliveryRegionOptions as RemoveDeliveryRegionOptions, type context$d_RemoveDeliveryRegionRequest as RemoveDeliveryRegionRequest, type context$d_RemoveDeliveryRegionResponse as RemoveDeliveryRegionResponse, type context$d_RemoveDeliveryRegionResponseNonNullableFields as RemoveDeliveryRegionResponseNonNullableFields, type RestoreInfo$a as RestoreInfo, type context$d_Row as Row, type context$d_ServiceProvisioned as ServiceProvisioned, type context$d_ServiceRemoved as ServiceRemoved, type context$d_SiteCreated as SiteCreated, context$d_SiteCreatedContext as SiteCreatedContext, type context$d_SiteDeleted as SiteDeleted, type context$d_SiteHardDeleted as SiteHardDeleted, type context$d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$d_SitePublished as SitePublished, type context$d_SiteRenamed as SiteRenamed, type context$d_SiteTransferred as SiteTransferred, type context$d_SiteUndeleted as SiteUndeleted, type context$d_SiteUnpublished as SiteUnpublished, SortOrder$7 as SortOrder, type Sorting$7 as Sorting, State$1 as State, type context$d_StudioAssigned as StudioAssigned, type context$d_StudioUnassigned as StudioUnassigned, type context$d_UpdateDeliveryCarrierOptions as UpdateDeliveryCarrierOptions, type context$d_UpdateDeliveryCarrierRequest as UpdateDeliveryCarrierRequest, type context$d_UpdateDeliveryCarrierResponse as UpdateDeliveryCarrierResponse, type context$d_UpdateDeliveryCarrierResponseNonNullableFields as UpdateDeliveryCarrierResponseNonNullableFields, type context$d_UpdateDeliveryProfile as UpdateDeliveryProfile, type context$d_UpdateDeliveryProfileRequest as UpdateDeliveryProfileRequest, type context$d_UpdateDeliveryProfileResponse as UpdateDeliveryProfileResponse, type context$d_UpdateDeliveryProfileResponseNonNullableFields as UpdateDeliveryProfileResponseNonNullableFields, type context$d_UpdateDeliveryRegion as UpdateDeliveryRegion, type context$d_UpdateDeliveryRegionIdentifiers as UpdateDeliveryRegionIdentifiers, type context$d_UpdateDeliveryRegionOptions as UpdateDeliveryRegionOptions, type context$d_UpdateDeliveryRegionRequest as UpdateDeliveryRegionRequest, type context$d_UpdateDeliveryRegionResponse as UpdateDeliveryRegionResponse, type context$d_UpdateDeliveryRegionResponseNonNullableFields as UpdateDeliveryRegionResponseNonNullableFields, type UpdateExtendedFieldsOptions$3 as UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest$4 as UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse$4 as UpdateExtendedFieldsResponse, type UpdateExtendedFieldsResponseNonNullableFields$3 as UpdateExtendedFieldsResponseNonNullableFields, WebhookIdentityType$a as WebhookIdentityType, type context$d__publicOnDeliveryProfileCreatedType as _publicOnDeliveryProfileCreatedType, type context$d__publicOnDeliveryProfileDeletedType as _publicOnDeliveryProfileDeletedType, type context$d__publicOnDeliveryProfileDeliveryRegionAddedType as _publicOnDeliveryProfileDeliveryRegionAddedType, type context$d__publicOnDeliveryProfileDeliveryRegionRemovedType as _publicOnDeliveryProfileDeliveryRegionRemovedType, type context$d__publicOnDeliveryProfileDeliveryRegionUpdatedType as _publicOnDeliveryProfileDeliveryRegionUpdatedType, type context$d__publicOnDeliveryProfileUpdatedType as _publicOnDeliveryProfileUpdatedType, context$d_addDeliveryCarrier as addDeliveryCarrier, context$d_addDeliveryRegion as addDeliveryRegion, context$d_createDeliveryProfile as createDeliveryProfile, context$d_deleteDeliveryProfile as deleteDeliveryProfile, context$d_getDeliveryProfile as getDeliveryProfile, context$d_listDeliveryCarrierDetails as listDeliveryCarrierDetails, context$d_listDeliveryCarriers as listDeliveryCarriers, context$d_onDeliveryProfileCreated as onDeliveryProfileCreated, context$d_onDeliveryProfileDeleted as onDeliveryProfileDeleted, context$d_onDeliveryProfileDeliveryRegionAdded as onDeliveryProfileDeliveryRegionAdded, context$d_onDeliveryProfileDeliveryRegionRemoved as onDeliveryProfileDeliveryRegionRemoved, context$d_onDeliveryProfileDeliveryRegionUpdated as onDeliveryProfileDeliveryRegionUpdated, context$d_onDeliveryProfileUpdated as onDeliveryProfileUpdated, onDeliveryProfileCreated$1 as publicOnDeliveryProfileCreated, onDeliveryProfileDeleted$1 as publicOnDeliveryProfileDeleted, onDeliveryProfileDeliveryRegionAdded$1 as publicOnDeliveryProfileDeliveryRegionAdded, onDeliveryProfileDeliveryRegionRemoved$1 as publicOnDeliveryProfileDeliveryRegionRemoved, onDeliveryProfileDeliveryRegionUpdated$1 as publicOnDeliveryProfileDeliveryRegionUpdated, onDeliveryProfileUpdated$1 as publicOnDeliveryProfileUpdated, context$d_queryDeliveryProfiles as queryDeliveryProfiles, context$d_removeDeliveryCarrier as removeDeliveryCarrier, context$d_removeDeliveryRegion as removeDeliveryRegion, context$d_updateDeliveryCarrier as updateDeliveryCarrier, context$d_updateDeliveryProfile as updateDeliveryProfile, context$d_updateDeliveryRegion as updateDeliveryRegion, updateExtendedFields$6 as updateExtendedFields };
|
|
17241
|
+
export { type ActionEvent$a as ActionEvent, type context$d_AddDeliveryCarrierOptions as AddDeliveryCarrierOptions, type context$d_AddDeliveryCarrierRequest as AddDeliveryCarrierRequest, type context$d_AddDeliveryCarrierResponse as AddDeliveryCarrierResponse, type context$d_AddDeliveryCarrierResponseNonNullableFields as AddDeliveryCarrierResponseNonNullableFields, type AddDeliveryRegionOptions$1 as AddDeliveryRegionOptions, type AddDeliveryRegionRequest$1 as AddDeliveryRegionRequest, type AddDeliveryRegionResponse$1 as AddDeliveryRegionResponse, type AddDeliveryRegionResponseNonNullableFields$1 as AddDeliveryRegionResponseNonNullableFields, type context$d_AdditionalCharge as AdditionalCharge, type ApplicationError$6 as ApplicationError, type context$d_Asset as Asset, type context$d_BackupRate as BackupRate, type BaseEventMetadata$7 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, ChargeType$1 as ChargeType, type context$d_Column as Column, type context$d_CreateDeliveryProfileRequest as CreateDeliveryProfileRequest, type context$d_CreateDeliveryProfileResponse as CreateDeliveryProfileResponse, type context$d_CreateDeliveryProfileResponseNonNullableFields as CreateDeliveryProfileResponseNonNullableFields, type CursorPaging$7 as CursorPaging, type CursorPagingMetadata$7 as CursorPagingMetadata, type CursorQuery$5 as CursorQuery, type CursorQueryPagingMethodOneOf$5 as CursorQueryPagingMethodOneOf, type Cursors$7 as Cursors, type context$d_DashboardTable as DashboardTable, type context$d_DeleteContext as DeleteContext, type context$d_DeleteDeliveryProfileRequest as DeleteDeliveryProfileRequest, type context$d_DeleteDeliveryProfileResponse as DeleteDeliveryProfileResponse, context$d_DeleteStatus as DeleteStatus, type context$d_DeliveryCarrier as DeliveryCarrier, type context$d_DeliveryCarrierDetails as DeliveryCarrierDetails, type context$d_DeliveryCarrierRegionalSettings as DeliveryCarrierRegionalSettings, type context$d_DeliveryProfile as DeliveryProfile, type context$d_DeliveryProfileCreatedEnvelope as DeliveryProfileCreatedEnvelope, type context$d_DeliveryProfileDeletedEnvelope as DeliveryProfileDeletedEnvelope, type context$d_DeliveryProfileDeliveryRegionAddedEnvelope as DeliveryProfileDeliveryRegionAddedEnvelope, type context$d_DeliveryProfileDeliveryRegionRemovedEnvelope as DeliveryProfileDeliveryRegionRemovedEnvelope, type context$d_DeliveryProfileDeliveryRegionUpdatedEnvelope as DeliveryProfileDeliveryRegionUpdatedEnvelope, type context$d_DeliveryProfileNonNullableFields as DeliveryProfileNonNullableFields, type context$d_DeliveryProfileUpdatedEnvelope as DeliveryProfileUpdatedEnvelope, type context$d_DeliveryProfilesQueryBuilder as DeliveryProfilesQueryBuilder, type context$d_DeliveryProfilesQueryResult as DeliveryProfilesQueryResult, type context$d_DeliveryRegion as DeliveryRegion, type context$d_DeliveryRegionAdded as DeliveryRegionAdded, type context$d_DeliveryRegionRemoved as DeliveryRegionRemoved, type context$d_DeliveryRegionUpdated as DeliveryRegionUpdated, type Destination$1 as Destination, type DomainEvent$a as DomainEvent, type DomainEventBodyOneOf$a as DomainEventBodyOneOf, type Empty$6 as Empty, type EntityCreatedEvent$a as EntityCreatedEvent, type EntityDeletedEvent$a as EntityDeletedEvent, type EntityUpdatedEvent$a as EntityUpdatedEvent, type EventMetadata$7 as EventMetadata, type ExtendedFields$5 as ExtendedFields, type context$d_GetDeliveryProfileRequest as GetDeliveryProfileRequest, type context$d_GetDeliveryProfileResponse as GetDeliveryProfileResponse, type context$d_GetDeliveryProfileResponseNonNullableFields as GetDeliveryProfileResponseNonNullableFields, type IdentificationData$a as IdentificationData, type IdentificationDataIdOneOf$a as IdentificationDataIdOneOf, type ItemMetadata$3 as ItemMetadata, type context$d_ListDeliveryCarrierDetailsRequest as ListDeliveryCarrierDetailsRequest, type context$d_ListDeliveryCarrierDetailsResponse as ListDeliveryCarrierDetailsResponse, type context$d_ListDeliveryCarrierDetailsResponseNonNullableFields as ListDeliveryCarrierDetailsResponseNonNullableFields, type context$d_ListDeliveryCarriersOptions as ListDeliveryCarriersOptions, type context$d_ListDeliveryCarriersRequest as ListDeliveryCarriersRequest, type context$d_ListDeliveryCarriersResponse as ListDeliveryCarriersResponse, type context$d_ListDeliveryCarriersResponseNonNullableFields as ListDeliveryCarriersResponseNonNullableFields, type context$d_ListDeliveryCarriersResult as ListDeliveryCarriersResult, type MessageEnvelope$a as MessageEnvelope, type context$d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, Namespace$1 as Namespace, type context$d_NamespaceChanged as NamespaceChanged, type context$d_QueryDeliveryProfilesRequest as QueryDeliveryProfilesRequest, type context$d_QueryDeliveryProfilesResponse as QueryDeliveryProfilesResponse, type context$d_QueryDeliveryProfilesResponseNonNullableFields as QueryDeliveryProfilesResponseNonNullableFields, type context$d_RemoveDeliveryCarrierOptions as RemoveDeliveryCarrierOptions, type context$d_RemoveDeliveryCarrierRequest as RemoveDeliveryCarrierRequest, type context$d_RemoveDeliveryCarrierResponse as RemoveDeliveryCarrierResponse, type context$d_RemoveDeliveryCarrierResponseNonNullableFields as RemoveDeliveryCarrierResponseNonNullableFields, type context$d_RemoveDeliveryRegionIdentifiers as RemoveDeliveryRegionIdentifiers, type RemoveDeliveryRegionOptions$1 as RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest$1 as RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse$1 as RemoveDeliveryRegionResponse, type RemoveDeliveryRegionResponseNonNullableFields$1 as RemoveDeliveryRegionResponseNonNullableFields, type RestoreInfo$a as RestoreInfo, type context$d_Row as Row, type context$d_ServiceProvisioned as ServiceProvisioned, type context$d_ServiceRemoved as ServiceRemoved, type context$d_SiteCreated as SiteCreated, context$d_SiteCreatedContext as SiteCreatedContext, type context$d_SiteDeleted as SiteDeleted, type context$d_SiteHardDeleted as SiteHardDeleted, type context$d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$d_SitePublished as SitePublished, type context$d_SiteRenamed as SiteRenamed, type context$d_SiteTransferred as SiteTransferred, type context$d_SiteUndeleted as SiteUndeleted, type context$d_SiteUnpublished as SiteUnpublished, SortOrder$7 as SortOrder, type Sorting$7 as Sorting, State$1 as State, type context$d_StudioAssigned as StudioAssigned, type context$d_StudioUnassigned as StudioUnassigned, type context$d_UpdateDeliveryCarrierOptions as UpdateDeliveryCarrierOptions, type context$d_UpdateDeliveryCarrierRequest as UpdateDeliveryCarrierRequest, type context$d_UpdateDeliveryCarrierResponse as UpdateDeliveryCarrierResponse, type context$d_UpdateDeliveryCarrierResponseNonNullableFields as UpdateDeliveryCarrierResponseNonNullableFields, type context$d_UpdateDeliveryProfile as UpdateDeliveryProfile, type context$d_UpdateDeliveryProfileRequest as UpdateDeliveryProfileRequest, type context$d_UpdateDeliveryProfileResponse as UpdateDeliveryProfileResponse, type context$d_UpdateDeliveryProfileResponseNonNullableFields as UpdateDeliveryProfileResponseNonNullableFields, type context$d_UpdateDeliveryRegion as UpdateDeliveryRegion, type context$d_UpdateDeliveryRegionIdentifiers as UpdateDeliveryRegionIdentifiers, type context$d_UpdateDeliveryRegionOptions as UpdateDeliveryRegionOptions, type context$d_UpdateDeliveryRegionRequest as UpdateDeliveryRegionRequest, type context$d_UpdateDeliveryRegionResponse as UpdateDeliveryRegionResponse, type context$d_UpdateDeliveryRegionResponseNonNullableFields as UpdateDeliveryRegionResponseNonNullableFields, type UpdateExtendedFieldsOptions$3 as UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest$4 as UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse$4 as UpdateExtendedFieldsResponse, type UpdateExtendedFieldsResponseNonNullableFields$3 as UpdateExtendedFieldsResponseNonNullableFields, WebhookIdentityType$a as WebhookIdentityType, type context$d__publicOnDeliveryProfileCreatedType as _publicOnDeliveryProfileCreatedType, type context$d__publicOnDeliveryProfileDeletedType as _publicOnDeliveryProfileDeletedType, type context$d__publicOnDeliveryProfileDeliveryRegionAddedType as _publicOnDeliveryProfileDeliveryRegionAddedType, type context$d__publicOnDeliveryProfileDeliveryRegionRemovedType as _publicOnDeliveryProfileDeliveryRegionRemovedType, type context$d__publicOnDeliveryProfileDeliveryRegionUpdatedType as _publicOnDeliveryProfileDeliveryRegionUpdatedType, type context$d__publicOnDeliveryProfileUpdatedType as _publicOnDeliveryProfileUpdatedType, context$d_addDeliveryCarrier as addDeliveryCarrier, addDeliveryRegion$2 as addDeliveryRegion, context$d_createDeliveryProfile as createDeliveryProfile, context$d_deleteDeliveryProfile as deleteDeliveryProfile, context$d_getDeliveryProfile as getDeliveryProfile, context$d_listDeliveryCarrierDetails as listDeliveryCarrierDetails, context$d_listDeliveryCarriers as listDeliveryCarriers, context$d_onDeliveryProfileCreated as onDeliveryProfileCreated, context$d_onDeliveryProfileDeleted as onDeliveryProfileDeleted, context$d_onDeliveryProfileDeliveryRegionAdded as onDeliveryProfileDeliveryRegionAdded, context$d_onDeliveryProfileDeliveryRegionRemoved as onDeliveryProfileDeliveryRegionRemoved, context$d_onDeliveryProfileDeliveryRegionUpdated as onDeliveryProfileDeliveryRegionUpdated, context$d_onDeliveryProfileUpdated as onDeliveryProfileUpdated, onDeliveryProfileCreated$1 as publicOnDeliveryProfileCreated, onDeliveryProfileDeleted$1 as publicOnDeliveryProfileDeleted, onDeliveryProfileDeliveryRegionAdded$1 as publicOnDeliveryProfileDeliveryRegionAdded, onDeliveryProfileDeliveryRegionRemoved$1 as publicOnDeliveryProfileDeliveryRegionRemoved, onDeliveryProfileDeliveryRegionUpdated$1 as publicOnDeliveryProfileDeliveryRegionUpdated, onDeliveryProfileUpdated$1 as publicOnDeliveryProfileUpdated, context$d_queryDeliveryProfiles as queryDeliveryProfiles, context$d_removeDeliveryCarrier as removeDeliveryCarrier, removeDeliveryRegion$2 as removeDeliveryRegion, context$d_updateDeliveryCarrier as updateDeliveryCarrier, context$d_updateDeliveryProfile as updateDeliveryProfile, context$d_updateDeliveryRegion as updateDeliveryRegion, updateExtendedFields$6 as updateExtendedFields };
|
|
17252
17242
|
}
|
|
17253
17243
|
|
|
17254
17244
|
/** DraftOrder is the main entity of DraftOrders service. It represents a single edit order. */
|
|
@@ -21138,7 +21128,7 @@ interface BulkCreateFulfillmentResponseNonNullableFields {
|
|
|
21138
21128
|
results: BulkOrderFulfillmentsResultNonNullableFields[];
|
|
21139
21129
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields$2;
|
|
21140
21130
|
}
|
|
21141
|
-
interface BaseEventMetadata$
|
|
21131
|
+
interface BaseEventMetadata$6 {
|
|
21142
21132
|
/** App instance ID. */
|
|
21143
21133
|
instanceId?: string | null;
|
|
21144
21134
|
/** Event type. */
|
|
@@ -21146,7 +21136,7 @@ interface BaseEventMetadata$7 {
|
|
|
21146
21136
|
/** The identification type and identity data. */
|
|
21147
21137
|
identity?: IdentificationData$8;
|
|
21148
21138
|
}
|
|
21149
|
-
interface EventMetadata$
|
|
21139
|
+
interface EventMetadata$6 extends BaseEventMetadata$6 {
|
|
21150
21140
|
/**
|
|
21151
21141
|
* Unique event ID.
|
|
21152
21142
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -21186,7 +21176,7 @@ interface EventMetadata$7 extends BaseEventMetadata$7 {
|
|
|
21186
21176
|
}
|
|
21187
21177
|
interface FulfillmentsUpdatedEnvelope {
|
|
21188
21178
|
entity: OrderWithFulfillments;
|
|
21189
|
-
metadata: EventMetadata$
|
|
21179
|
+
metadata: EventMetadata$6;
|
|
21190
21180
|
}
|
|
21191
21181
|
interface UpdateFulfillmentOptions {
|
|
21192
21182
|
/** Fulfillment info. */
|
|
@@ -21311,18 +21301,18 @@ interface BulkCreateFulfillmentsSignature {
|
|
|
21311
21301
|
*/
|
|
21312
21302
|
(ordersWithFulfillments: BulkCreateOrderWithFulfillments[]): Promise<BulkCreateFulfillmentResponse & BulkCreateFulfillmentResponseNonNullableFields>;
|
|
21313
21303
|
}
|
|
21314
|
-
declare const onFulfillmentsUpdated$1: EventDefinition$
|
|
21304
|
+
declare const onFulfillmentsUpdated$1: EventDefinition$g<FulfillmentsUpdatedEnvelope, "wix.ecom.v1.fulfillments_updated">;
|
|
21315
21305
|
|
|
21316
|
-
type EventDefinition$
|
|
21306
|
+
type EventDefinition$6<Payload = unknown, Type extends string = string> = {
|
|
21317
21307
|
__type: 'event-definition';
|
|
21318
21308
|
type: Type;
|
|
21319
21309
|
isDomainEvent?: boolean;
|
|
21320
21310
|
transformations?: (envelope: unknown) => Payload;
|
|
21321
21311
|
__payload: Payload;
|
|
21322
21312
|
};
|
|
21323
|
-
declare function EventDefinition$
|
|
21324
|
-
type EventHandler$
|
|
21325
|
-
type BuildEventDefinition$
|
|
21313
|
+
declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
|
|
21314
|
+
type EventHandler$6<T extends EventDefinition$6> = (payload: T['__payload']) => void | Promise<void>;
|
|
21315
|
+
type BuildEventDefinition$6<T extends EventDefinition$6<any, string>> = (handler: EventHandler$6<T>) => void;
|
|
21326
21316
|
|
|
21327
21317
|
declare global {
|
|
21328
21318
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -21331,7 +21321,7 @@ declare global {
|
|
|
21331
21321
|
}
|
|
21332
21322
|
}
|
|
21333
21323
|
|
|
21334
|
-
declare function createEventModule$
|
|
21324
|
+
declare function createEventModule$6<T extends EventDefinition$6<any, string>>(eventDefinition: T): BuildEventDefinition$6<T> & T;
|
|
21335
21325
|
|
|
21336
21326
|
declare const listFulfillmentsForSingleOrder: MaybeContext<BuildRESTFunction<typeof listFulfillmentsForSingleOrder$1> & typeof listFulfillmentsForSingleOrder$1>;
|
|
21337
21327
|
declare const listFulfillmentsForMultipleOrders: MaybeContext<BuildRESTFunction<typeof listFulfillmentsForMultipleOrders$1> & typeof listFulfillmentsForMultipleOrders$1>;
|
|
@@ -21346,7 +21336,7 @@ type _publicOnFulfillmentsUpdatedType = typeof onFulfillmentsUpdated$1;
|
|
|
21346
21336
|
*
|
|
21347
21337
|
* The response contains the order's ID and details about all of its fulfillments following the change.
|
|
21348
21338
|
*/
|
|
21349
|
-
declare const onFulfillmentsUpdated: ReturnType<typeof createEventModule$
|
|
21339
|
+
declare const onFulfillmentsUpdated: ReturnType<typeof createEventModule$6<_publicOnFulfillmentsUpdatedType>>;
|
|
21350
21340
|
|
|
21351
21341
|
type context$b_BulkCreateFulfillmentRequest = BulkCreateFulfillmentRequest;
|
|
21352
21342
|
type context$b_BulkCreateFulfillmentResponse = BulkCreateFulfillmentResponse;
|
|
@@ -21389,7 +21379,7 @@ declare const context$b_listFulfillmentsForSingleOrder: typeof listFulfillmentsF
|
|
|
21389
21379
|
declare const context$b_onFulfillmentsUpdated: typeof onFulfillmentsUpdated;
|
|
21390
21380
|
declare const context$b_updateFulfillment: typeof updateFulfillment;
|
|
21391
21381
|
declare namespace context$b {
|
|
21392
|
-
export { type ActionEvent$8 as ActionEvent, type ApplicationError$4 as ApplicationError, type BaseEventMetadata$
|
|
21382
|
+
export { type ActionEvent$8 as ActionEvent, type ApplicationError$4 as ApplicationError, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$2 as BulkActionMetadata, type context$b_BulkCreateFulfillmentRequest as BulkCreateFulfillmentRequest, type context$b_BulkCreateFulfillmentResponse as BulkCreateFulfillmentResponse, type context$b_BulkCreateFulfillmentResponseNonNullableFields as BulkCreateFulfillmentResponseNonNullableFields, type context$b_BulkCreateOrderWithFulfillments as BulkCreateOrderWithFulfillments, type context$b_BulkOrderFulfillmentsResult as BulkOrderFulfillmentsResult, type BuyerInfo$2 as BuyerInfo, type context$b_CreateFulfillmentRequest as CreateFulfillmentRequest, type context$b_CreateFulfillmentResponse as CreateFulfillmentResponse, type context$b_CreateFulfillmentResponseNonNullableFields as CreateFulfillmentResponseNonNullableFields, type context$b_CustomFulfillmentInfo as CustomFulfillmentInfo, type context$b_DeleteFulfillmentIdentifiers as DeleteFulfillmentIdentifiers, type context$b_DeleteFulfillmentRequest as DeleteFulfillmentRequest, type context$b_DeleteFulfillmentResponse as DeleteFulfillmentResponse, type context$b_DeleteFulfillmentResponseNonNullableFields as DeleteFulfillmentResponseNonNullableFields, type DomainEvent$8 as DomainEvent, type DomainEventBodyOneOf$8 as DomainEventBodyOneOf, type EntityCreatedEvent$8 as EntityCreatedEvent, type EntityDeletedEvent$8 as EntityDeletedEvent, type EntityUpdatedEvent$8 as EntityUpdatedEvent, type EventMetadata$6 as EventMetadata, type Fulfillment$1 as Fulfillment, type context$b_FulfillmentCreated as FulfillmentCreated, type context$b_FulfillmentDeleted as FulfillmentDeleted, type context$b_FulfillmentFulfillmentInfoOneOf as FulfillmentFulfillmentInfoOneOf, type FulfillmentLineItem$1 as FulfillmentLineItem, FulfillmentStatus$2 as FulfillmentStatus, type FulfillmentTrackingInfo$1 as FulfillmentTrackingInfo, type context$b_FulfillmentUpdated as FulfillmentUpdated, type context$b_FulfillmentsUpdatedEnvelope as FulfillmentsUpdatedEnvelope, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type ItemMetadata$2 as ItemMetadata, type context$b_ListFulfillmentsForMultipleOrdersRequest as ListFulfillmentsForMultipleOrdersRequest, type context$b_ListFulfillmentsForMultipleOrdersResponse as ListFulfillmentsForMultipleOrdersResponse, type context$b_ListFulfillmentsForMultipleOrdersResponseNonNullableFields as ListFulfillmentsForMultipleOrdersResponseNonNullableFields, type context$b_ListFulfillmentsForSingleOrderRequest as ListFulfillmentsForSingleOrderRequest, type context$b_ListFulfillmentsForSingleOrderResponse as ListFulfillmentsForSingleOrderResponse, type context$b_ListFulfillmentsForSingleOrderResponseNonNullableFields as ListFulfillmentsForSingleOrderResponseNonNullableFields, type MessageEnvelope$8 as MessageEnvelope, type context$b_OrderWithFulfillments as OrderWithFulfillments, type context$b_OrderWithFulfillmentsNonNullableFields as OrderWithFulfillmentsNonNullableFields, type RestoreInfo$8 as RestoreInfo, type context$b_UpdateFulfillmentIdentifiers as UpdateFulfillmentIdentifiers, type context$b_UpdateFulfillmentOptions as UpdateFulfillmentOptions, type context$b_UpdateFulfillmentRequest as UpdateFulfillmentRequest, type context$b_UpdateFulfillmentResponse as UpdateFulfillmentResponse, type context$b_UpdateFulfillmentResponseNonNullableFields as UpdateFulfillmentResponseNonNullableFields, type context$b_V2FulfillmentTrackingInfo as V2FulfillmentTrackingInfo, WebhookIdentityType$8 as WebhookIdentityType, type context$b__publicOnFulfillmentsUpdatedType as _publicOnFulfillmentsUpdatedType, context$b_bulkCreateFulfillments as bulkCreateFulfillments, context$b_createFulfillment as createFulfillment, context$b_deleteFulfillment as deleteFulfillment, context$b_listFulfillmentsForMultipleOrders as listFulfillmentsForMultipleOrders, context$b_listFulfillmentsForSingleOrder as listFulfillmentsForSingleOrder, context$b_onFulfillmentsUpdated as onFulfillmentsUpdated, onFulfillmentsUpdated$1 as publicOnFulfillmentsUpdated, context$b_updateFulfillment as updateFulfillment };
|
|
21393
21383
|
}
|
|
21394
21384
|
|
|
21395
21385
|
interface GiftCard$2 {
|
|
@@ -21974,7 +21964,7 @@ interface BulkUpdateLocalDeliveryOptionResponseNonNullableFields {
|
|
|
21974
21964
|
localDeliveryOptions: LocalDeliveryOptionNonNullableFields[];
|
|
21975
21965
|
errors: LocalDeliveryOptionErrorNonNullableFields[];
|
|
21976
21966
|
}
|
|
21977
|
-
interface BaseEventMetadata$
|
|
21967
|
+
interface BaseEventMetadata$5 {
|
|
21978
21968
|
/** App instance ID. */
|
|
21979
21969
|
instanceId?: string | null;
|
|
21980
21970
|
/** Event type. */
|
|
@@ -21982,7 +21972,7 @@ interface BaseEventMetadata$6 {
|
|
|
21982
21972
|
/** The identification type and identity data. */
|
|
21983
21973
|
identity?: IdentificationData$7;
|
|
21984
21974
|
}
|
|
21985
|
-
interface EventMetadata$
|
|
21975
|
+
interface EventMetadata$5 extends BaseEventMetadata$5 {
|
|
21986
21976
|
/**
|
|
21987
21977
|
* Unique event ID.
|
|
21988
21978
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -22022,15 +22012,15 @@ interface EventMetadata$6 extends BaseEventMetadata$6 {
|
|
|
22022
22012
|
}
|
|
22023
22013
|
interface LocalDeliveryOptionCreatedEnvelope {
|
|
22024
22014
|
entity: LocalDeliveryOption;
|
|
22025
|
-
metadata: EventMetadata$
|
|
22015
|
+
metadata: EventMetadata$5;
|
|
22026
22016
|
}
|
|
22027
22017
|
interface LocalDeliveryOptionUpdatedEnvelope {
|
|
22028
22018
|
entity: LocalDeliveryOption;
|
|
22029
|
-
metadata: EventMetadata$
|
|
22019
|
+
metadata: EventMetadata$5;
|
|
22030
22020
|
}
|
|
22031
22021
|
interface LocalDeliveryOptionDeletedEnvelope {
|
|
22032
22022
|
entity: LocalDeliveryOption;
|
|
22033
|
-
metadata: EventMetadata$
|
|
22023
|
+
metadata: EventMetadata$5;
|
|
22034
22024
|
}
|
|
22035
22025
|
interface UpdateLocalDeliveryOption {
|
|
22036
22026
|
zipConfig?: ZipCodeConfig;
|
|
@@ -22105,20 +22095,20 @@ interface BulkDeleteLocalDeliveryOptionSignature {
|
|
|
22105
22095
|
/** */
|
|
22106
22096
|
(ids: string[]): Promise<void>;
|
|
22107
22097
|
}
|
|
22108
|
-
declare const onLocalDeliveryOptionCreated$1: EventDefinition$
|
|
22109
|
-
declare const onLocalDeliveryOptionUpdated$1: EventDefinition$
|
|
22110
|
-
declare const onLocalDeliveryOptionDeleted$1: EventDefinition$
|
|
22098
|
+
declare const onLocalDeliveryOptionCreated$1: EventDefinition$g<LocalDeliveryOptionCreatedEnvelope, "wix.ecom.v1.local_delivery_option_created">;
|
|
22099
|
+
declare const onLocalDeliveryOptionUpdated$1: EventDefinition$g<LocalDeliveryOptionUpdatedEnvelope, "wix.ecom.v1.local_delivery_option_updated">;
|
|
22100
|
+
declare const onLocalDeliveryOptionDeleted$1: EventDefinition$g<LocalDeliveryOptionDeletedEnvelope, "wix.ecom.v1.local_delivery_option_deleted">;
|
|
22111
22101
|
|
|
22112
|
-
type EventDefinition$
|
|
22102
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
22113
22103
|
__type: 'event-definition';
|
|
22114
22104
|
type: Type;
|
|
22115
22105
|
isDomainEvent?: boolean;
|
|
22116
22106
|
transformations?: (envelope: unknown) => Payload;
|
|
22117
22107
|
__payload: Payload;
|
|
22118
22108
|
};
|
|
22119
|
-
declare function EventDefinition$
|
|
22120
|
-
type EventHandler$
|
|
22121
|
-
type BuildEventDefinition$
|
|
22109
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
22110
|
+
type EventHandler$5<T extends EventDefinition$5> = (payload: T['__payload']) => void | Promise<void>;
|
|
22111
|
+
type BuildEventDefinition$5<T extends EventDefinition$5<any, string>> = (handler: EventHandler$5<T>) => void;
|
|
22122
22112
|
|
|
22123
22113
|
declare global {
|
|
22124
22114
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -22127,7 +22117,7 @@ declare global {
|
|
|
22127
22117
|
}
|
|
22128
22118
|
}
|
|
22129
22119
|
|
|
22130
|
-
declare function createEventModule$
|
|
22120
|
+
declare function createEventModule$5<T extends EventDefinition$5<any, string>>(eventDefinition: T): BuildEventDefinition$5<T> & T;
|
|
22131
22121
|
|
|
22132
22122
|
declare const createLocalDeliveryOption: MaybeContext<BuildRESTFunction<typeof createLocalDeliveryOption$1> & typeof createLocalDeliveryOption$1>;
|
|
22133
22123
|
declare const getLocalDeliveryOption: MaybeContext<BuildRESTFunction<typeof getLocalDeliveryOption$1> & typeof getLocalDeliveryOption$1>;
|
|
@@ -22140,15 +22130,15 @@ declare const bulkDeleteLocalDeliveryOption: MaybeContext<BuildRESTFunction<type
|
|
|
22140
22130
|
|
|
22141
22131
|
type _publicOnLocalDeliveryOptionCreatedType = typeof onLocalDeliveryOptionCreated$1;
|
|
22142
22132
|
/** */
|
|
22143
|
-
declare const onLocalDeliveryOptionCreated: ReturnType<typeof createEventModule$
|
|
22133
|
+
declare const onLocalDeliveryOptionCreated: ReturnType<typeof createEventModule$5<_publicOnLocalDeliveryOptionCreatedType>>;
|
|
22144
22134
|
|
|
22145
22135
|
type _publicOnLocalDeliveryOptionUpdatedType = typeof onLocalDeliveryOptionUpdated$1;
|
|
22146
22136
|
/** */
|
|
22147
|
-
declare const onLocalDeliveryOptionUpdated: ReturnType<typeof createEventModule$
|
|
22137
|
+
declare const onLocalDeliveryOptionUpdated: ReturnType<typeof createEventModule$5<_publicOnLocalDeliveryOptionUpdatedType>>;
|
|
22148
22138
|
|
|
22149
22139
|
type _publicOnLocalDeliveryOptionDeletedType = typeof onLocalDeliveryOptionDeleted$1;
|
|
22150
22140
|
/** */
|
|
22151
|
-
declare const onLocalDeliveryOptionDeleted: ReturnType<typeof createEventModule$
|
|
22141
|
+
declare const onLocalDeliveryOptionDeleted: ReturnType<typeof createEventModule$5<_publicOnLocalDeliveryOptionDeletedType>>;
|
|
22152
22142
|
|
|
22153
22143
|
type context$9_BulkCreateLocalDeliveryOptionRequest = BulkCreateLocalDeliveryOptionRequest;
|
|
22154
22144
|
type context$9_BulkCreateLocalDeliveryOptionResponse = BulkCreateLocalDeliveryOptionResponse;
|
|
@@ -22211,7 +22201,7 @@ declare const context$9_onLocalDeliveryOptionDeleted: typeof onLocalDeliveryOpti
|
|
|
22211
22201
|
declare const context$9_onLocalDeliveryOptionUpdated: typeof onLocalDeliveryOptionUpdated;
|
|
22212
22202
|
declare const context$9_updateLocalDeliveryOption: typeof updateLocalDeliveryOption;
|
|
22213
22203
|
declare namespace context$9 {
|
|
22214
|
-
export { type ActionEvent$7 as ActionEvent, type AddressLocation$3 as AddressLocation, type BaseEventMetadata$
|
|
22204
|
+
export { type ActionEvent$7 as ActionEvent, type AddressLocation$3 as AddressLocation, type BaseEventMetadata$5 as BaseEventMetadata, type context$9_BulkCreateLocalDeliveryOptionRequest as BulkCreateLocalDeliveryOptionRequest, type context$9_BulkCreateLocalDeliveryOptionResponse as BulkCreateLocalDeliveryOptionResponse, type context$9_BulkCreateLocalDeliveryOptionResponseNonNullableFields as BulkCreateLocalDeliveryOptionResponseNonNullableFields, type context$9_BulkDeleteLocalDeliveryOptionRequest as BulkDeleteLocalDeliveryOptionRequest, type context$9_BulkDeleteLocalDeliveryOptionResponse as BulkDeleteLocalDeliveryOptionResponse, type context$9_BulkUpdateLocalDeliveryOptionRequest as BulkUpdateLocalDeliveryOptionRequest, type context$9_BulkUpdateLocalDeliveryOptionResponse as BulkUpdateLocalDeliveryOptionResponse, type context$9_BulkUpdateLocalDeliveryOptionResponseNonNullableFields as BulkUpdateLocalDeliveryOptionResponseNonNullableFields, type Condition$2 as Condition, ConditionType$2 as ConditionType, type ConditionalRates$2 as ConditionalRates, type context$9_CreateLocalDeliveryOptionRequest as CreateLocalDeliveryOptionRequest, type context$9_CreateLocalDeliveryOptionResponse as CreateLocalDeliveryOptionResponse, type context$9_CreateLocalDeliveryOptionResponseNonNullableFields as CreateLocalDeliveryOptionResponseNonNullableFields, type context$9_CustomAreaConfig as CustomAreaConfig, context$9_DayOfWeek as DayOfWeek, type context$9_DaySlot as DaySlot, type context$9_Days as Days, type context$9_DeleteLocalDeliveryOptionRequest as DeleteLocalDeliveryOptionRequest, type context$9_DeleteLocalDeliveryOptionResponse as DeleteLocalDeliveryOptionResponse, type context$9_Destination as Destination, type DomainEvent$7 as DomainEvent, type DomainEventBodyOneOf$7 as DomainEventBodyOneOf, type Empty$5 as Empty, type EntityCreatedEvent$7 as EntityCreatedEvent, type EntityDeletedEvent$7 as EntityDeletedEvent, type EntityUpdatedEvent$7 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type context$9_GetLocalDeliveryOptionRequest as GetLocalDeliveryOptionRequest, type context$9_GetLocalDeliveryOptionResponse as GetLocalDeliveryOptionResponse, type context$9_GetLocalDeliveryOptionResponseNonNullableFields as GetLocalDeliveryOptionResponseNonNullableFields, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, context$9_LengthUnit as LengthUnit, type context$9_ListLocalDeliveryOptionsRequest as ListLocalDeliveryOptionsRequest, type context$9_ListLocalDeliveryOptionsResponse as ListLocalDeliveryOptionsResponse, type context$9_ListLocalDeliveryOptionsResponseNonNullableFields as ListLocalDeliveryOptionsResponseNonNullableFields, type context$9_LocalDeliveryAddress as LocalDeliveryAddress, type context$9_LocalDeliveryOption as LocalDeliveryOption, type context$9_LocalDeliveryOptionConfigOneOf as LocalDeliveryOptionConfigOneOf, type context$9_LocalDeliveryOptionCreatedEnvelope as LocalDeliveryOptionCreatedEnvelope, type context$9_LocalDeliveryOptionDeletedEnvelope as LocalDeliveryOptionDeletedEnvelope, type context$9_LocalDeliveryOptionError as LocalDeliveryOptionError, type context$9_LocalDeliveryOptionNonNullableFields as LocalDeliveryOptionNonNullableFields, type context$9_LocalDeliveryOptionUpdatedEnvelope as LocalDeliveryOptionUpdatedEnvelope, LogicalOperator$2 as LogicalOperator, type MessageEnvelope$7 as MessageEnvelope, type context$9_RadiusConfig as RadiusConfig, type RestoreInfo$7 as RestoreInfo, type context$9_ScheduledDelivery as ScheduledDelivery, type context$9_TimeOfDay as TimeOfDay, type context$9_TimePoint as TimePoint, type context$9_TimeSlot as TimeSlot, type context$9_TimeWindow as TimeWindow, type context$9_UpdateLocalDeliveryOption as UpdateLocalDeliveryOption, type context$9_UpdateLocalDeliveryOptionRequest as UpdateLocalDeliveryOptionRequest, type context$9_UpdateLocalDeliveryOptionResponse as UpdateLocalDeliveryOptionResponse, type context$9_UpdateLocalDeliveryOptionResponseNonNullableFields as UpdateLocalDeliveryOptionResponseNonNullableFields, WebhookIdentityType$7 as WebhookIdentityType, type context$9_ZipCodeConfig as ZipCodeConfig, type context$9__publicOnLocalDeliveryOptionCreatedType as _publicOnLocalDeliveryOptionCreatedType, type context$9__publicOnLocalDeliveryOptionDeletedType as _publicOnLocalDeliveryOptionDeletedType, type context$9__publicOnLocalDeliveryOptionUpdatedType as _publicOnLocalDeliveryOptionUpdatedType, context$9_bulkCreateLocalDeliveryOption as bulkCreateLocalDeliveryOption, context$9_bulkDeleteLocalDeliveryOption as bulkDeleteLocalDeliveryOption, context$9_bulkUpdateLocalDeliveryOption as bulkUpdateLocalDeliveryOption, context$9_createLocalDeliveryOption as createLocalDeliveryOption, context$9_deleteLocalDeliveryOption as deleteLocalDeliveryOption, context$9_getLocalDeliveryOption as getLocalDeliveryOption, context$9_listLocalDeliveryOptions as listLocalDeliveryOptions, context$9_onLocalDeliveryOptionCreated as onLocalDeliveryOptionCreated, context$9_onLocalDeliveryOptionDeleted as onLocalDeliveryOptionDeleted, context$9_onLocalDeliveryOptionUpdated as onLocalDeliveryOptionUpdated, onLocalDeliveryOptionCreated$1 as publicOnLocalDeliveryOptionCreated, onLocalDeliveryOptionDeleted$1 as publicOnLocalDeliveryOptionDeleted, onLocalDeliveryOptionUpdated$1 as publicOnLocalDeliveryOptionUpdated, context$9_updateLocalDeliveryOption as updateLocalDeliveryOption };
|
|
22215
22205
|
}
|
|
22216
22206
|
|
|
22217
22207
|
interface Order$1 {
|
|
@@ -27072,7 +27062,7 @@ interface BulkUpdateOrderTagsResponseNonNullableFields {
|
|
|
27072
27062
|
results: BulkUpdateOrderTagsResultNonNullableFields[];
|
|
27073
27063
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
27074
27064
|
}
|
|
27075
|
-
interface BaseEventMetadata$
|
|
27065
|
+
interface BaseEventMetadata$4 {
|
|
27076
27066
|
/** App instance ID. */
|
|
27077
27067
|
instanceId?: string | null;
|
|
27078
27068
|
/** Event type. */
|
|
@@ -27080,7 +27070,7 @@ interface BaseEventMetadata$5 {
|
|
|
27080
27070
|
/** The identification type and identity data. */
|
|
27081
27071
|
identity?: IdentificationData$6;
|
|
27082
27072
|
}
|
|
27083
|
-
interface EventMetadata$
|
|
27073
|
+
interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
27084
27074
|
/**
|
|
27085
27075
|
* Unique event ID.
|
|
27086
27076
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -27120,23 +27110,23 @@ interface EventMetadata$5 extends BaseEventMetadata$5 {
|
|
|
27120
27110
|
}
|
|
27121
27111
|
interface OrderPaymentStatusUpdatedEnvelope {
|
|
27122
27112
|
data: PaymentStatusUpdated;
|
|
27123
|
-
metadata: EventMetadata$
|
|
27113
|
+
metadata: EventMetadata$4;
|
|
27124
27114
|
}
|
|
27125
27115
|
interface OrderUpdatedEnvelope {
|
|
27126
27116
|
entity: Order$1;
|
|
27127
|
-
metadata: EventMetadata$
|
|
27117
|
+
metadata: EventMetadata$4;
|
|
27128
27118
|
}
|
|
27129
27119
|
interface OrderCreatedEnvelope {
|
|
27130
27120
|
entity: Order$1;
|
|
27131
|
-
metadata: EventMetadata$
|
|
27121
|
+
metadata: EventMetadata$4;
|
|
27132
27122
|
}
|
|
27133
27123
|
interface OrderCanceledEnvelope {
|
|
27134
27124
|
data: OrderCanceledEventOrderCanceled;
|
|
27135
|
-
metadata: EventMetadata$
|
|
27125
|
+
metadata: EventMetadata$4;
|
|
27136
27126
|
}
|
|
27137
27127
|
interface OrderApprovedEnvelope {
|
|
27138
27128
|
data: OrderApproved;
|
|
27139
|
-
metadata: EventMetadata$
|
|
27129
|
+
metadata: EventMetadata$4;
|
|
27140
27130
|
}
|
|
27141
27131
|
interface PreparePaymentCollectionOptions {
|
|
27142
27132
|
/**
|
|
@@ -27501,22 +27491,22 @@ interface BulkUpdateOrderTagsSignature {
|
|
|
27501
27491
|
*/
|
|
27502
27492
|
(orderIds: string[], options?: BulkUpdateOrderTagsOptions | undefined): Promise<BulkUpdateOrderTagsResponse & BulkUpdateOrderTagsResponseNonNullableFields>;
|
|
27503
27493
|
}
|
|
27504
|
-
declare const onOrderPaymentStatusUpdated$1: EventDefinition$
|
|
27505
|
-
declare const onOrderUpdated$1: EventDefinition$
|
|
27506
|
-
declare const onOrderCreated$1: EventDefinition$
|
|
27507
|
-
declare const onOrderCanceled$1: EventDefinition$
|
|
27508
|
-
declare const onOrderApproved$1: EventDefinition$
|
|
27494
|
+
declare const onOrderPaymentStatusUpdated$1: EventDefinition$g<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
27495
|
+
declare const onOrderUpdated$1: EventDefinition$g<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
27496
|
+
declare const onOrderCreated$1: EventDefinition$g<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
27497
|
+
declare const onOrderCanceled$1: EventDefinition$g<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
27498
|
+
declare const onOrderApproved$1: EventDefinition$g<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
27509
27499
|
|
|
27510
|
-
type EventDefinition$
|
|
27500
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
27511
27501
|
__type: 'event-definition';
|
|
27512
27502
|
type: Type;
|
|
27513
27503
|
isDomainEvent?: boolean;
|
|
27514
27504
|
transformations?: (envelope: unknown) => Payload;
|
|
27515
27505
|
__payload: Payload;
|
|
27516
27506
|
};
|
|
27517
|
-
declare function EventDefinition$
|
|
27518
|
-
type EventHandler$
|
|
27519
|
-
type BuildEventDefinition$
|
|
27507
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
27508
|
+
type EventHandler$4<T extends EventDefinition$4> = (payload: T['__payload']) => void | Promise<void>;
|
|
27509
|
+
type BuildEventDefinition$4<T extends EventDefinition$4<any, string>> = (handler: EventHandler$4<T>) => void;
|
|
27520
27510
|
|
|
27521
27511
|
declare global {
|
|
27522
27512
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -27525,7 +27515,7 @@ declare global {
|
|
|
27525
27515
|
}
|
|
27526
27516
|
}
|
|
27527
27517
|
|
|
27528
|
-
declare function createEventModule$
|
|
27518
|
+
declare function createEventModule$4<T extends EventDefinition$4<any, string>>(eventDefinition: T): BuildEventDefinition$4<T> & T;
|
|
27529
27519
|
|
|
27530
27520
|
declare const preparePaymentCollection: MaybeContext<BuildRESTFunction<typeof preparePaymentCollection$1> & typeof preparePaymentCollection$1>;
|
|
27531
27521
|
declare const getPaymentCollectabilityStatus: MaybeContext<BuildRESTFunction<typeof getPaymentCollectabilityStatus$1> & typeof getPaymentCollectabilityStatus$1>;
|
|
@@ -27543,32 +27533,32 @@ type _publicOnOrderPaymentStatusUpdatedType = typeof onOrderPaymentStatusUpdated
|
|
|
27543
27533
|
/**
|
|
27544
27534
|
* Triggered when an order's payment status is updated to `"PAID"`.
|
|
27545
27535
|
*/
|
|
27546
|
-
declare const onOrderPaymentStatusUpdated: ReturnType<typeof createEventModule$
|
|
27536
|
+
declare const onOrderPaymentStatusUpdated: ReturnType<typeof createEventModule$4<_publicOnOrderPaymentStatusUpdatedType>>;
|
|
27547
27537
|
|
|
27548
27538
|
type _publicOnOrderUpdatedType = typeof onOrderUpdated$1;
|
|
27549
27539
|
/** */
|
|
27550
|
-
declare const onOrderUpdated: ReturnType<typeof createEventModule$
|
|
27540
|
+
declare const onOrderUpdated: ReturnType<typeof createEventModule$4<_publicOnOrderUpdatedType>>;
|
|
27551
27541
|
|
|
27552
27542
|
type _publicOnOrderCreatedType = typeof onOrderCreated$1;
|
|
27553
27543
|
/**
|
|
27554
27544
|
* Triggered when an order is created.
|
|
27555
27545
|
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
27556
27546
|
*/
|
|
27557
|
-
declare const onOrderCreated: ReturnType<typeof createEventModule$
|
|
27547
|
+
declare const onOrderCreated: ReturnType<typeof createEventModule$4<_publicOnOrderCreatedType>>;
|
|
27558
27548
|
|
|
27559
27549
|
type _publicOnOrderCanceledType = typeof onOrderCanceled$1;
|
|
27560
27550
|
/**
|
|
27561
27551
|
* Triggered when an order is canceled.
|
|
27562
27552
|
* Learn more about [eCommerce webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
27563
27553
|
*/
|
|
27564
|
-
declare const onOrderCanceled: ReturnType<typeof createEventModule$
|
|
27554
|
+
declare const onOrderCanceled: ReturnType<typeof createEventModule$4<_publicOnOrderCanceledType>>;
|
|
27565
27555
|
|
|
27566
27556
|
type _publicOnOrderApprovedType = typeof onOrderApproved$1;
|
|
27567
27557
|
/**
|
|
27568
27558
|
* Triggered when an order is created and its status is updated to `"APPROVED"`.
|
|
27569
27559
|
* Learn more about [eCommerce webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
27570
27560
|
*/
|
|
27571
|
-
declare const onOrderApproved: ReturnType<typeof createEventModule$
|
|
27561
|
+
declare const onOrderApproved: ReturnType<typeof createEventModule$4<_publicOnOrderApprovedType>>;
|
|
27572
27562
|
|
|
27573
27563
|
type context$8_ActivityContentOneOf = ActivityContentOneOf;
|
|
27574
27564
|
type context$8_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -27996,7 +27986,7 @@ declare const context$8_searchOrders: typeof searchOrders;
|
|
|
27996
27986
|
declare const context$8_updateOrder: typeof updateOrder;
|
|
27997
27987
|
declare const context$8_voidAuthorizedPayments: typeof voidAuthorizedPayments;
|
|
27998
27988
|
declare namespace context$8 {
|
|
27999
|
-
export { type ActionEvent$6 as ActionEvent, ActionType$2 as ActionType, type Activity$1 as Activity, type context$8_ActivityContentOneOf as ActivityContentOneOf, ActivityType$1 as ActivityType, type context$8_AddActivitiesRequest as AddActivitiesRequest, type context$8_AddActivitiesResponse as AddActivitiesResponse, type context$8_AddActivityRequest as AddActivityRequest, type context$8_AddActivityResponse as AddActivityResponse, type context$8_AddInternalActivityRequest as AddInternalActivityRequest, type context$8_AddInternalActivityResponse as AddInternalActivityResponse, type AdditionalFee$1 as AdditionalFee, type context$8_AdditionalFeeDelta as AdditionalFeeDelta, type context$8_AdditionalFeeDeltaDeltaOneOf as AdditionalFeeDeltaDeltaOneOf, type AdditionalFeeRefund$2 as AdditionalFeeRefund, type Address$4 as Address, type context$8_AddressDescription as AddressDescription, type AddressLocation$2 as AddressLocation, type context$8_AddressWithContact as AddressWithContact, type context$8_AggregateOrdersRequest as AggregateOrdersRequest, type context$8_AggregateOrdersResponse as AggregateOrdersResponse, type AggregatedRefundSummary$2 as AggregatedRefundSummary, type context$8_App as App, type ApplicationError$3 as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type context$8_AppliedDiscountDelta as AppliedDiscountDelta, type context$8_AppliedDiscountDeltaDeltaOneOf as AppliedDiscountDeltaDeltaOneOf, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, type context$8_ArchiveOrderRequest as ArchiveOrderRequest, type context$8_ArchiveOrderResponse as ArchiveOrderResponse, context$8_AttributionSource as AttributionSource, type AuthorizationActionFailureDetails$2 as AuthorizationActionFailureDetails, type AuthorizationCapture$2 as AuthorizationCapture, AuthorizationCaptureStatus$2 as AuthorizationCaptureStatus, type AuthorizationDetails$2 as AuthorizationDetails, type AuthorizationVoid$2 as AuthorizationVoid, AuthorizationVoidStatus$2 as AuthorizationVoidStatus, type context$8_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type context$8_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type context$8_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type context$8_Balance as Balance, type context$8_BalanceSummary as BalanceSummary, type BaseEventMetadata$5 as BaseEventMetadata, type context$8_BatchOfTriggerReindexOrderRequest as BatchOfTriggerReindexOrderRequest, type context$8_BigDecimalWrapper as BigDecimalWrapper, type BulkActionMetadata$1 as BulkActionMetadata, type context$8_BulkArchiveOrdersByFilterRequest as BulkArchiveOrdersByFilterRequest, type context$8_BulkArchiveOrdersByFilterResponse as BulkArchiveOrdersByFilterResponse, type context$8_BulkArchiveOrdersRequest as BulkArchiveOrdersRequest, type context$8_BulkArchiveOrdersResponse as BulkArchiveOrdersResponse, type context$8_BulkMarkAsFulfilledByFilterRequest as BulkMarkAsFulfilledByFilterRequest, type context$8_BulkMarkAsFulfilledByFilterResponse as BulkMarkAsFulfilledByFilterResponse, type context$8_BulkMarkAsFulfilledRequest as BulkMarkAsFulfilledRequest, type context$8_BulkMarkAsFulfilledResponse as BulkMarkAsFulfilledResponse, type context$8_BulkMarkAsUnfulfilledByFilterRequest as BulkMarkAsUnfulfilledByFilterRequest, type context$8_BulkMarkAsUnfulfilledByFilterResponse as BulkMarkAsUnfulfilledByFilterResponse, type context$8_BulkMarkAsUnfulfilledRequest as BulkMarkAsUnfulfilledRequest, type context$8_BulkMarkAsUnfulfilledResponse as BulkMarkAsUnfulfilledResponse, type context$8_BulkMarkOrdersAsPaidRequest as BulkMarkOrdersAsPaidRequest, type context$8_BulkMarkOrdersAsPaidResponse as BulkMarkOrdersAsPaidResponse, type context$8_BulkOrderResult as BulkOrderResult, type context$8_BulkSendBuyerPickupConfirmationEmailsRequest as BulkSendBuyerPickupConfirmationEmailsRequest, type context$8_BulkSendBuyerPickupConfirmationEmailsResponse as BulkSendBuyerPickupConfirmationEmailsResponse, type context$8_BulkSendBuyerShippingConfirmationEmailsRequest as BulkSendBuyerShippingConfirmationEmailsRequest, type context$8_BulkSendBuyerShippingConfirmationEmailsResponse as BulkSendBuyerShippingConfirmationEmailsResponse, type context$8_BulkUnArchiveOrdersByFilterRequest as BulkUnArchiveOrdersByFilterRequest, type context$8_BulkUnArchiveOrdersByFilterResponse as BulkUnArchiveOrdersByFilterResponse, type context$8_BulkUnArchiveOrdersRequest as BulkUnArchiveOrdersRequest, type context$8_BulkUnArchiveOrdersResponse as BulkUnArchiveOrdersResponse, type context$8_BulkUpdateOrderTagsOptions as BulkUpdateOrderTagsOptions, type context$8_BulkUpdateOrderTagsRequest as BulkUpdateOrderTagsRequest, type context$8_BulkUpdateOrderTagsResponse as BulkUpdateOrderTagsResponse, type context$8_BulkUpdateOrderTagsResponseNonNullableFields as BulkUpdateOrderTagsResponseNonNullableFields, type context$8_BulkUpdateOrderTagsResult as BulkUpdateOrderTagsResult, type context$8_BulkUpdateOrdersOptions as BulkUpdateOrdersOptions, type context$8_BulkUpdateOrdersRequest as BulkUpdateOrdersRequest, type context$8_BulkUpdateOrdersResponse as BulkUpdateOrdersResponse, type context$8_BulkUpdateOrdersResponseNonNullableFields as BulkUpdateOrdersResponseNonNullableFields, type BuyerInfo$1 as BuyerInfo, type context$8_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type context$8_BuyerInfoUpdate as BuyerInfoUpdate, type CalculateRefundItemRequest$1 as CalculateRefundItemRequest, type CalculateRefundItemResponse$1 as CalculateRefundItemResponse, type CalculateRefundRequest$1 as CalculateRefundRequest, type CalculateRefundResponse$1 as CalculateRefundResponse, type context$8_CalculatedTax as CalculatedTax, type context$8_CalculatedTaxes as CalculatedTaxes, type context$8_Cancel as Cancel, type context$8_CancelOrderOptions as CancelOrderOptions, type context$8_CancelOrderRequest as CancelOrderRequest, type context$8_CancelOrderResponse as CancelOrderResponse, type context$8_CancelOrderResponseNonNullableFields as CancelOrderResponseNonNullableFields, type context$8_CaptureAuthorizedPaymentsRequest as CaptureAuthorizedPaymentsRequest, type context$8_CaptureAuthorizedPaymentsResponse as CaptureAuthorizedPaymentsResponse, type context$8_CaptureAuthorizedPaymentsResponseNonNullableFields as CaptureAuthorizedPaymentsResponseNonNullableFields, type CatalogReference$1 as CatalogReference, type ChannelInfo$1 as ChannelInfo, ChannelType$1 as ChannelType, type context$8_ChargeMembershipsRequest as ChargeMembershipsRequest, type context$8_ChargeMembershipsResponse as ChargeMembershipsResponse, type context$8_ChargeSavedPaymentMethodRequest as ChargeSavedPaymentMethodRequest, type context$8_ChargeSavedPaymentMethodResponse as ChargeSavedPaymentMethodResponse, type context$8_ChargedBy as ChargedBy, type context$8_Color as Color, type context$8_CommitDeltasRequest as CommitDeltasRequest, type context$8_CommitDeltasResponse as CommitDeltasResponse, type context$8_CommittedDiffs as CommittedDiffs, type context$8_CommittedDiffsShippingUpdateInfoOneOf as CommittedDiffsShippingUpdateInfoOneOf, type context$8_CommonAddress as CommonAddress, type context$8_CommonAddressStreetOneOf as CommonAddressStreetOneOf, type context$8_Company as Company, type context$8_Complete as Complete, type context$8_ContinueSideEffectsFlowInLegacyData as ContinueSideEffectsFlowInLegacyData, type Coupon$1 as Coupon, type context$8_CreateOrderRequest as CreateOrderRequest, type context$8_CreateOrderResponse as CreateOrderResponse, type context$8_CreateOrderResponseNonNullableFields as CreateOrderResponseNonNullableFields, type context$8_CreatePaymentGatewayOrderRequest as CreatePaymentGatewayOrderRequest, type context$8_CreatePaymentGatewayOrderResponse as CreatePaymentGatewayOrderResponse, type context$8_CreatedBy as CreatedBy, type context$8_CreatedByStringOneOf as CreatedByStringOneOf, type CreditCardPaymentMethodDetails$2 as CreditCardPaymentMethodDetails, type CursorPaging$5 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type context$8_CursorSearch as CursorSearch, type context$8_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$5 as Cursors, type context$8_CustomActivity as CustomActivity, type CustomField$1 as CustomField, context$8_CustomFieldGroup as CustomFieldGroup, type context$8_CustomFieldValue as CustomFieldValue, type context$8_Customer as Customer, type context$8_DecrementData as DecrementData, type context$8_DecrementItemsQuantityRequest as DecrementItemsQuantityRequest, type context$8_DecrementItemsQuantityResponse as DecrementItemsQuantityResponse, type context$8_DelayedCaptureSettings as DelayedCaptureSettings, type context$8_DeleteActivityRequest as DeleteActivityRequest, type context$8_DeleteActivityResponse as DeleteActivityResponse, type context$8_DeleteByFilterOperation as DeleteByFilterOperation, type context$8_DeleteByIdsOperation as DeleteByIdsOperation, type DeliveryLogistics$1 as DeliveryLogistics, type context$8_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot$1 as DeliveryTimeSlot, context$8_DeltaPaymentOptionType as DeltaPaymentOptionType, type context$8_Deposit as Deposit, context$8_DepositType as DepositType, type context$8_DescriptionLine as DescriptionLine, type context$8_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type context$8_DescriptionLineName as DescriptionLineName, context$8_DescriptionLineType as DescriptionLineType, type context$8_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type DiffmatokyPayload$2 as DiffmatokyPayload, type DigitalFile$1 as DigitalFile, type Discount$1 as Discount, type context$8_DiscountOneDiscountTypeOneOf as DiscountOneDiscountTypeOneOf, context$8_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type context$8_DownloadLinkSent as DownloadLinkSent, type context$8_DraftOrderChangesApplied as DraftOrderChangesApplied, type context$8_DraftOrderCommitSettings as DraftOrderCommitSettings, type context$8_DraftOrderDiffs as DraftOrderDiffs, type context$8_DraftOrderDiffsBillingUpdateInfoOneOf as DraftOrderDiffsBillingUpdateInfoOneOf, type context$8_DraftOrderDiffsBuyerUpdateInfoOneOf as DraftOrderDiffsBuyerUpdateInfoOneOf, type context$8_DraftOrderDiffsRecipientUpdateInfoOneOf as DraftOrderDiffsRecipientUpdateInfoOneOf, type context$8_DraftOrderDiffsShippingUpdateInfoOneOf as DraftOrderDiffsShippingUpdateInfoOneOf, type context$8_Duration as Duration, context$8_DurationUnit as DurationUnit, type context$8_Email as Email, type context$8_EmailEdited as EmailEdited, type Empty$4 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type ErrorInformation$2 as ErrorInformation, type EventMetadata$5 as EventMetadata, type ExtendedFields$3 as ExtendedFields, type context$8_ExternalUriMapping as ExternalUriMapping, type context$8_FulfillerEmailSent as FulfillerEmailSent, FulfillmentStatus$1 as FulfillmentStatus, type context$8_FulfillmentStatusUpdated as FulfillmentStatusUpdated, type context$8_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type context$8_FullAddressContactDetails as FullAddressContactDetails, type context$8_GetMetasiteDataRequest as GetMetasiteDataRequest, type context$8_GetMetasiteDataResponse as GetMetasiteDataResponse, type context$8_GetOrderForMetasiteRequest as GetOrderForMetasiteRequest, type context$8_GetOrderForMetasiteResponse as GetOrderForMetasiteResponse, type context$8_GetOrderRequest as GetOrderRequest, type context$8_GetOrderResponse as GetOrderResponse, type context$8_GetOrderResponseNonNullableFields as GetOrderResponseNonNullableFields, type context$8_GetPaymentCollectabilityStatusRequest as GetPaymentCollectabilityStatusRequest, type context$8_GetPaymentCollectabilityStatusResponse as GetPaymentCollectabilityStatusResponse, type context$8_GetPaymentCollectabilityStatusResponseNonNullableFields as GetPaymentCollectabilityStatusResponseNonNullableFields, type GetRefundabilityStatusRequest$1 as GetRefundabilityStatusRequest, type GetRefundabilityStatusResponse$1 as GetRefundabilityStatusResponse, type context$8_GetShipmentsRequest as GetShipmentsRequest, type context$8_GetShipmentsResponse as GetShipmentsResponse, type GiftCardPaymentDetails$2 as GiftCardPaymentDetails, type context$8_HtmlApplication as HtmlApplication, type context$8_IdAndVersion as IdAndVersion, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, type IndexingMessage$1 as IndexingMessage, type context$8_InternalActivity as InternalActivity, type context$8_InternalActivityContentOneOf as InternalActivityContentOneOf, type context$8_InternalDocument as InternalDocument, type context$8_InternalDocumentUpdateByFilterOperation as InternalDocumentUpdateByFilterOperation, type context$8_InternalDocumentUpdateOperation as InternalDocumentUpdateOperation, type context$8_InternalQueryOrdersRequest as InternalQueryOrdersRequest, type context$8_InternalQueryOrdersResponse as InternalQueryOrdersResponse, type context$8_InternalUpdateExistingOperation as InternalUpdateExistingOperation, context$8_InventoryAction as InventoryAction, type context$8_InventoryUpdateDetails as InventoryUpdateDetails, type context$8_InvoiceAdded as InvoiceAdded, type context$8_InvoiceDates as InvoiceDates, type context$8_InvoiceDynamicPriceTotals as InvoiceDynamicPriceTotals, type context$8_InvoiceFields as InvoiceFields, type context$8_InvoiceSent as InvoiceSent, type context$8_InvoiceSentEvent as InvoiceSentEvent, context$8_InvoiceStatus as InvoiceStatus, type context$8_InvoicesPayment as InvoicesPayment, type context$8_ItemChangedDetails as ItemChangedDetails, type ItemMetadata$1 as ItemMetadata, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, type context$8_ItemizedFee as ItemizedFee, JurisdictionType$1 as JurisdictionType, type LineItem$2 as LineItem, type context$8_LineItemAmount as LineItemAmount, type context$8_LineItemChanges as LineItemChanges, type context$8_LineItemDelta as LineItemDelta, type context$8_LineItemDeltaDeltaOneOf as LineItemDeltaDeltaOneOf, type LineItemDiscount$1 as LineItemDiscount, type context$8_LineItemExchangeData as LineItemExchangeData, type context$8_LineItemMetaData as LineItemMetaData, type context$8_LineItemPriceChange as LineItemPriceChange, type context$8_LineItemQuantityChange as LineItemQuantityChange, context$8_LineItemQuantityChangeType as LineItemQuantityChangeType, type LineItemRefund$2 as LineItemRefund, type context$8_LineItemTax as LineItemTax, type context$8_LineItemTaxBreakdown as LineItemTaxBreakdown, type context$8_LineItemTaxInfo as LineItemTaxInfo, type context$8_LineItemUpdate as LineItemUpdate, type context$8_LineItems as LineItems, type context$8_ListOrderTransactionsForMetasiteRequest as ListOrderTransactionsForMetasiteRequest, type context$8_ListOrderTransactionsForMetasiteResponse as ListOrderTransactionsForMetasiteResponse, type context$8_Locale as Locale, type context$8_LocationAndQuantity as LocationAndQuantity, type context$8_ManagedAdditionalFee as ManagedAdditionalFee, type context$8_ManagedDiscount as ManagedDiscount, type context$8_ManagedLineItem as ManagedLineItem, ManuallyRefundableReason$1 as ManuallyRefundableReason, type context$8_MarkAsFulfilledRequest as MarkAsFulfilledRequest, type context$8_MarkAsFulfilledResponse as MarkAsFulfilledResponse, type context$8_MarkAsUnfulfilledRequest as MarkAsUnfulfilledRequest, type context$8_MarkAsUnfulfilledResponse as MarkAsUnfulfilledResponse, type context$8_MarkOrderAsPaidRequest as MarkOrderAsPaidRequest, type context$8_MarkOrderAsPaidResponse as MarkOrderAsPaidResponse, type context$8_MarkOrderAsSeenByHumanRequest as MarkOrderAsSeenByHumanRequest, type context$8_MarkOrderAsSeenByHumanResponse as MarkOrderAsSeenByHumanResponse, type context$8_MaskedOrder as MaskedOrder, type context$8_MaskedOrderLineItem as MaskedOrderLineItem, type context$8_MembershipChargeItem as MembershipChargeItem, type MembershipName$3 as MembershipName, type MembershipPaymentDetails$2 as MembershipPaymentDetails, MembershipPaymentStatus$2 as MembershipPaymentStatus, type context$8_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type context$8_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope$6 as MessageEnvelope, type context$8_MetaData as MetaData, type context$8_MetaSite as MetaSite, type context$8_MetaTag as MetaTag, context$8_Namespace as Namespace, type context$8_NewExchangeOrderCreated as NewExchangeOrderCreated, NonRefundableReason$1 as NonRefundableReason, type Order$1 as Order, context$8_OrderApprovalStrategy as OrderApprovalStrategy, type context$8_OrderApproved as OrderApproved, type context$8_OrderApprovedEnvelope as OrderApprovedEnvelope, type context$8_OrderCanceled as OrderCanceled, type context$8_OrderCanceledEnvelope as OrderCanceledEnvelope, type context$8_OrderCanceledEventOrderCanceled as OrderCanceledEventOrderCanceled, type context$8_OrderChange as OrderChange, type context$8_OrderChangeValueOneOf as OrderChangeValueOneOf, type context$8_OrderCreateNotifications as OrderCreateNotifications, type context$8_OrderCreatedEnvelope as OrderCreatedEnvelope, type context$8_OrderCreatedFromExchange as OrderCreatedFromExchange, type context$8_OrderCreationSettings as OrderCreationSettings, type context$8_OrderDeltasCommitted as OrderDeltasCommitted, type context$8_OrderFulfilled as OrderFulfilled, type context$8_OrderItemsRestocked as OrderItemsRestocked, type context$8_OrderLineItem as OrderLineItem, type context$8_OrderLineItemChangedDetails as OrderLineItemChangedDetails, type context$8_OrderNonNullableFields as OrderNonNullableFields, type context$8_OrderNotFulfilled as OrderNotFulfilled, type context$8_OrderPaid as OrderPaid, type context$8_OrderPartiallyPaid as OrderPartiallyPaid, type context$8_OrderPaymentStatusUpdatedEnvelope as OrderPaymentStatusUpdatedEnvelope, type context$8_OrderPlaced as OrderPlaced, type OrderRefunded$1 as OrderRefunded, context$8_OrderStatus as OrderStatus, type context$8_OrderTaxBreakdown as OrderTaxBreakdown, type context$8_OrderTaxInfo as OrderTaxInfo, type OrderTransactions$2 as OrderTransactions, type context$8_OrderUpdatedEnvelope as OrderUpdatedEnvelope, type context$8_OrdersExperiments as OrdersExperiments, type Payment$2 as Payment, type context$8_PaymentCapture as PaymentCapture, context$8_PaymentCollectabilityStatus as PaymentCollectabilityStatus, PaymentOptionType$1 as PaymentOptionType, type PaymentPaymentDetailsOneOf$2 as PaymentPaymentDetailsOneOf, type PaymentRefund$1 as PaymentRefund, type context$8_PaymentRefundFailed as PaymentRefundFailed, type context$8_PaymentRefunded as PaymentRefunded, PaymentStatus$1 as PaymentStatus, type context$8_PaymentStatusUpdated as PaymentStatusUpdated, type context$8_Payments as Payments, type context$8_Phone as Phone, type PhysicalProperties$1 as PhysicalProperties, type PickupAddress$1 as PickupAddress, type PickupDetails$2 as PickupDetails, PickupMethod$1 as PickupMethod, type context$8_PickupReadyEmailSent as PickupReadyEmailSent, context$8_Placement as Placement, type context$8_PlainTextValue as PlainTextValue, type context$8_PlatformPaging as PlatformPaging, type context$8_PlatformPagingMetadata as PlatformPagingMetadata, type context$8_PlatformQuery as PlatformQuery, type context$8_PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOf, type context$8_PreparePaymentCollectionOptions as PreparePaymentCollectionOptions, type context$8_PreparePaymentCollectionRequest as PreparePaymentCollectionRequest, type context$8_PreparePaymentCollectionResponse as PreparePaymentCollectionResponse, type context$8_PreparePaymentCollectionResponseNonNullableFields as PreparePaymentCollectionResponseNonNullableFields, type context$8_PreviewBuyerConfirmationEmailRequest as PreviewBuyerConfirmationEmailRequest, type context$8_PreviewBuyerConfirmationEmailResponse as PreviewBuyerConfirmationEmailResponse, type context$8_PreviewBuyerPaymentsReceivedEmailRequest as PreviewBuyerPaymentsReceivedEmailRequest, type context$8_PreviewBuyerPaymentsReceivedEmailResponse as PreviewBuyerPaymentsReceivedEmailResponse, type context$8_PreviewBuyerPickupConfirmationEmailRequest as PreviewBuyerPickupConfirmationEmailRequest, type context$8_PreviewBuyerPickupConfirmationEmailResponse as PreviewBuyerPickupConfirmationEmailResponse, type context$8_PreviewCancelEmailRequest as PreviewCancelEmailRequest, type context$8_PreviewCancelEmailResponse as PreviewCancelEmailResponse, type context$8_PreviewCancelRefundEmailRequest as PreviewCancelRefundEmailRequest, type context$8_PreviewCancelRefundEmailResponse as PreviewCancelRefundEmailResponse, type context$8_PreviewEmailByTypeRequest as PreviewEmailByTypeRequest, type context$8_PreviewEmailByTypeResponse as PreviewEmailByTypeResponse, context$8_PreviewEmailType as PreviewEmailType, type context$8_PreviewRefundEmailRequest as PreviewRefundEmailRequest, type context$8_PreviewRefundEmailResponse as PreviewRefundEmailResponse, type context$8_PreviewResendDownloadLinksEmailRequest as PreviewResendDownloadLinksEmailRequest, type context$8_PreviewResendDownloadLinksEmailResponse as PreviewResendDownloadLinksEmailResponse, type context$8_PreviewShippingConfirmationEmailRequest as PreviewShippingConfirmationEmailRequest, type context$8_PreviewShippingConfirmationEmailResponse as PreviewShippingConfirmationEmailResponse, type Price$2 as Price, type context$8_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type context$8_ProductName as ProductName, type context$8_PublicActivity as PublicActivity, type context$8_PublicActivityContentOneOf as PublicActivityContentOneOf, type context$8_QueryOrderRequest as QueryOrderRequest, type context$8_QueryOrderResponse as QueryOrderResponse, type context$8_QueryOrdersForMetasiteRequest as QueryOrdersForMetasiteRequest, type context$8_QueryOrdersForMetasiteResponse as QueryOrdersForMetasiteResponse, type context$8_QuotesAddress as QuotesAddress, Reason$2 as Reason, type context$8_RecordManuallyCollectedPaymentRequest as RecordManuallyCollectedPaymentRequest, type context$8_RecordManuallyCollectedPaymentResponse as RecordManuallyCollectedPaymentResponse, type context$8_RedirectUrls as RedirectUrls, type Refund$2 as Refund, type RefundCreated$1 as RefundCreated, type RefundDetails$2 as RefundDetails, type context$8_RefundInitiated as RefundInitiated, type RefundItem$2 as RefundItem, type RefundSideEffects$1 as RefundSideEffects, RefundStatus$2 as RefundStatus, type RefundTransaction$2 as RefundTransaction, type Refundability$1 as Refundability, type RefundabilityAdditionalRefundabilityInfoOneOf$1 as RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus$1 as RefundableStatus, type context$8_RefundedAsStoreCredit as RefundedAsStoreCredit, type context$8_RefundedPayment as RefundedPayment, type context$8_RefundedPaymentKindOneOf as RefundedPaymentKindOneOf, type RegularPaymentDetails$2 as RegularPaymentDetails, type RegularPaymentDetailsPaymentMethodDetailsOneOf$2 as RegularPaymentDetailsPaymentMethodDetailsOneOf, type context$8_RegularPaymentRefund as RegularPaymentRefund, type context$8_Reschedule as Reschedule, type RestockInfo$1 as RestockInfo, type RestockItem$1 as RestockItem, RestockType$1 as RestockType, type RestoreInfo$6 as RestoreInfo, type context$8_SavedPaymentMethod as SavedPaymentMethod, ScheduledAction$2 as ScheduledAction, type context$8_SearchOrdersOptions as SearchOrdersOptions, type context$8_SearchOrdersRequest as SearchOrdersRequest, type context$8_SearchOrdersResponse as SearchOrdersResponse, type context$8_SearchOrdersResponseNonNullableFields as SearchOrdersResponseNonNullableFields, type context$8_SendBuyerConfirmationEmailRequest as SendBuyerConfirmationEmailRequest, type context$8_SendBuyerConfirmationEmailResponse as SendBuyerConfirmationEmailResponse, type context$8_SendBuyerPaymentsReceivedEmailRequest as SendBuyerPaymentsReceivedEmailRequest, type context$8_SendBuyerPaymentsReceivedEmailResponse as SendBuyerPaymentsReceivedEmailResponse, type context$8_SendBuyerPickupConfirmationEmailRequest as SendBuyerPickupConfirmationEmailRequest, type context$8_SendBuyerPickupConfirmationEmailResponse as SendBuyerPickupConfirmationEmailResponse, type context$8_SendBuyerShippingConfirmationEmailRequest as SendBuyerShippingConfirmationEmailRequest, type context$8_SendBuyerShippingConfirmationEmailResponse as SendBuyerShippingConfirmationEmailResponse, type context$8_SendCancelRefundEmailRequest as SendCancelRefundEmailRequest, type context$8_SendCancelRefundEmailResponse as SendCancelRefundEmailResponse, type context$8_SendMerchantOrderReceivedNotificationRequest as SendMerchantOrderReceivedNotificationRequest, type context$8_SendMerchantOrderReceivedNotificationResponse as SendMerchantOrderReceivedNotificationResponse, type context$8_SendMerchantOrderReceivedPushRequest as SendMerchantOrderReceivedPushRequest, type context$8_SendMerchantOrderReceivedPushResponse as SendMerchantOrderReceivedPushResponse, type context$8_SendRefundEmailRequest as SendRefundEmailRequest, type context$8_SendRefundEmailResponse as SendRefundEmailResponse, type context$8_SeoData as SeoData, type ServiceProperties$1 as ServiceProperties, type context$8_ShippingAddressEdited as ShippingAddressEdited, type context$8_ShippingConfirmationEmailSent as ShippingConfirmationEmailSent, type ShippingInformation$1 as ShippingInformation, type context$8_ShippingInformationChange as ShippingInformationChange, type ShippingPrice$1 as ShippingPrice, type ShippingRefund$2 as ShippingRefund, type ShippingRegion$1 as ShippingRegion, type SnapshotMessage$1 as SnapshotMessage, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, type Source$1 as Source, context$8_SourceType as SourceType, type context$8_StandardDetails as StandardDetails, context$8_State as State, type StreetAddress$3 as StreetAddress, type context$8_Subdivision as Subdivision, context$8_SubdivisionType as SubdivisionType, SubscriptionFrequency$2 as SubscriptionFrequency, type SubscriptionInfo$1 as SubscriptionInfo, type SubscriptionSettings$2 as SubscriptionSettings, type context$8_TagList as TagList, type context$8_Tags as Tags, type context$8_Task as Task, type context$8_TaskAction as TaskAction, type context$8_TaskActionActionOneOf as TaskActionActionOneOf, type context$8_TaskKey as TaskKey, type TaxSummary$1 as TaxSummary, type TaxableAddress$1 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$1 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$1 as TaxableAddressType, type context$8_TotalPrice as TotalPrice, type context$8_TotalPriceChange as TotalPriceChange, type context$8_TrackingLinkAdded as TrackingLinkAdded, type context$8_TrackingNumberAdded as TrackingNumberAdded, type context$8_TrackingNumberEdited as TrackingNumberEdited, TransactionStatus$2 as TransactionStatus, type context$8_TranslatedValue as TranslatedValue, type TriggerRefundRequest$1 as TriggerRefundRequest, type TriggerRefundResponse$1 as TriggerRefundResponse, type context$8_TriggerReindexOrderRequest as TriggerReindexOrderRequest, type context$8_TriggerReindexRequest as TriggerReindexRequest, type context$8_TriggerReindexResponse as TriggerReindexResponse, type context$8_TriggerSideEffectsFromLegacyData as TriggerSideEffectsFromLegacyData, type context$8_UnArchiveOrderRequest as UnArchiveOrderRequest, type context$8_UnArchiveOrderResponse as UnArchiveOrderResponse, type context$8_UpdateActivityRequest as UpdateActivityRequest, type context$8_UpdateActivityResponse as UpdateActivityResponse, type context$8_UpdateBillingContactDetailsRequest as UpdateBillingContactDetailsRequest, type context$8_UpdateBillingContactDetailsResponse as UpdateBillingContactDetailsResponse, type context$8_UpdateBuyerEmailRequest as UpdateBuyerEmailRequest, type context$8_UpdateBuyerEmailResponse as UpdateBuyerEmailResponse, type context$8_UpdateBuyerInfoRequest as UpdateBuyerInfoRequest, type context$8_UpdateBuyerInfoResponse as UpdateBuyerInfoResponse, type context$8_UpdateInternalDocumentsEvent as UpdateInternalDocumentsEvent, type context$8_UpdateInternalDocumentsEventOperationOneOf as UpdateInternalDocumentsEventOperationOneOf, type context$8_UpdateLineItemsDescriptionLinesRequest as UpdateLineItemsDescriptionLinesRequest, type context$8_UpdateLineItemsDescriptionLinesResponse as UpdateLineItemsDescriptionLinesResponse, type context$8_UpdateOrder as UpdateOrder, type context$8_UpdateOrderLineItemRequest as UpdateOrderLineItemRequest, type context$8_UpdateOrderLineItemResponse as UpdateOrderLineItemResponse, type context$8_UpdateOrderLineItemsRequest as UpdateOrderLineItemsRequest, type context$8_UpdateOrderLineItemsResponse as UpdateOrderLineItemsResponse, type context$8_UpdateOrderRequest as UpdateOrderRequest, type context$8_UpdateOrderResponse as UpdateOrderResponse, type context$8_UpdateOrderResponseNonNullableFields as UpdateOrderResponseNonNullableFields, type context$8_UpdateOrderShippingAddressRequest as UpdateOrderShippingAddressRequest, type context$8_UpdateOrderShippingAddressResponse as UpdateOrderShippingAddressResponse, type context$8_UpsertRefundRequest as UpsertRefundRequest, type context$8_UpsertRefundResponse as UpsertRefundResponse, type context$8_UserDataResponse as UserDataResponse, type context$8_V1BulkMarkOrdersAsPaidRequest as V1BulkMarkOrdersAsPaidRequest, type context$8_V1BulkMarkOrdersAsPaidResponse as V1BulkMarkOrdersAsPaidResponse, type context$8_V1CreatePaymentGatewayOrderRequest as V1CreatePaymentGatewayOrderRequest, type context$8_V1CreatePaymentGatewayOrderResponse as V1CreatePaymentGatewayOrderResponse, type context$8_V1LineItemDelta as V1LineItemDelta, type context$8_V1LineItemDeltaDeltaOneOf as V1LineItemDeltaDeltaOneOf, type context$8_V1MarkOrderAsPaidRequest as V1MarkOrderAsPaidRequest, type context$8_V1MarkOrderAsPaidResponse as V1MarkOrderAsPaidResponse, type context$8_V1RestockItem as V1RestockItem, type context$8_V1ScheduledAction as V1ScheduledAction, type context$8_V1ShippingInformation as V1ShippingInformation, type context$8_Value as Value, context$8_ValueType as ValueType, type VatId$1 as VatId, VatType$1 as VatType, type context$8_VersionedDeleteByIdsOperation as VersionedDeleteByIdsOperation, type context$8_VersionedDocumentId as VersionedDocumentId, type context$8_VersionedDocumentUpdateOperation as VersionedDocumentUpdateOperation, context$8_VersioningMode as VersioningMode, type context$8_VoidAuthorizedPaymentsRequest as VoidAuthorizedPaymentsRequest, type context$8_VoidAuthorizedPaymentsResponse as VoidAuthorizedPaymentsResponse, type context$8_VoidAuthorizedPaymentsResponseNonNullableFields as VoidAuthorizedPaymentsResponseNonNullableFields, WebhookIdentityType$6 as WebhookIdentityType, WeightUnit$2 as WeightUnit, type context$8__publicOnOrderApprovedType as _publicOnOrderApprovedType, type context$8__publicOnOrderCanceledType as _publicOnOrderCanceledType, type context$8__publicOnOrderCreatedType as _publicOnOrderCreatedType, type context$8__publicOnOrderPaymentStatusUpdatedType as _publicOnOrderPaymentStatusUpdatedType, type context$8__publicOnOrderUpdatedType as _publicOnOrderUpdatedType, context$8_bulkUpdateOrderTags as bulkUpdateOrderTags, context$8_bulkUpdateOrders as bulkUpdateOrders, context$8_cancelOrder as cancelOrder, context$8_captureAuthorizedPayments as captureAuthorizedPayments, context$8_createOrder as createOrder, context$8_getOrder as getOrder, context$8_getPaymentCollectabilityStatus as getPaymentCollectabilityStatus, context$8_onOrderApproved as onOrderApproved, context$8_onOrderCanceled as onOrderCanceled, context$8_onOrderCreated as onOrderCreated, context$8_onOrderPaymentStatusUpdated as onOrderPaymentStatusUpdated, context$8_onOrderUpdated as onOrderUpdated, context$8_preparePaymentCollection as preparePaymentCollection, onOrderApproved$1 as publicOnOrderApproved, onOrderCanceled$1 as publicOnOrderCanceled, onOrderCreated$1 as publicOnOrderCreated, onOrderPaymentStatusUpdated$1 as publicOnOrderPaymentStatusUpdated, onOrderUpdated$1 as publicOnOrderUpdated, context$8_searchOrders as searchOrders, context$8_updateOrder as updateOrder, context$8_voidAuthorizedPayments as voidAuthorizedPayments };
|
|
27989
|
+
export { type ActionEvent$6 as ActionEvent, ActionType$2 as ActionType, type Activity$1 as Activity, type context$8_ActivityContentOneOf as ActivityContentOneOf, ActivityType$1 as ActivityType, type context$8_AddActivitiesRequest as AddActivitiesRequest, type context$8_AddActivitiesResponse as AddActivitiesResponse, type context$8_AddActivityRequest as AddActivityRequest, type context$8_AddActivityResponse as AddActivityResponse, type context$8_AddInternalActivityRequest as AddInternalActivityRequest, type context$8_AddInternalActivityResponse as AddInternalActivityResponse, type AdditionalFee$1 as AdditionalFee, type context$8_AdditionalFeeDelta as AdditionalFeeDelta, type context$8_AdditionalFeeDeltaDeltaOneOf as AdditionalFeeDeltaDeltaOneOf, type AdditionalFeeRefund$2 as AdditionalFeeRefund, type Address$4 as Address, type context$8_AddressDescription as AddressDescription, type AddressLocation$2 as AddressLocation, type context$8_AddressWithContact as AddressWithContact, type context$8_AggregateOrdersRequest as AggregateOrdersRequest, type context$8_AggregateOrdersResponse as AggregateOrdersResponse, type AggregatedRefundSummary$2 as AggregatedRefundSummary, type context$8_App as App, type ApplicationError$3 as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type context$8_AppliedDiscountDelta as AppliedDiscountDelta, type context$8_AppliedDiscountDeltaDeltaOneOf as AppliedDiscountDeltaDeltaOneOf, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, type context$8_ArchiveOrderRequest as ArchiveOrderRequest, type context$8_ArchiveOrderResponse as ArchiveOrderResponse, context$8_AttributionSource as AttributionSource, type AuthorizationActionFailureDetails$2 as AuthorizationActionFailureDetails, type AuthorizationCapture$2 as AuthorizationCapture, AuthorizationCaptureStatus$2 as AuthorizationCaptureStatus, type AuthorizationDetails$2 as AuthorizationDetails, type AuthorizationVoid$2 as AuthorizationVoid, AuthorizationVoidStatus$2 as AuthorizationVoidStatus, type context$8_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type context$8_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type context$8_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type context$8_Balance as Balance, type context$8_BalanceSummary as BalanceSummary, type BaseEventMetadata$4 as BaseEventMetadata, type context$8_BatchOfTriggerReindexOrderRequest as BatchOfTriggerReindexOrderRequest, type context$8_BigDecimalWrapper as BigDecimalWrapper, type BulkActionMetadata$1 as BulkActionMetadata, type context$8_BulkArchiveOrdersByFilterRequest as BulkArchiveOrdersByFilterRequest, type context$8_BulkArchiveOrdersByFilterResponse as BulkArchiveOrdersByFilterResponse, type context$8_BulkArchiveOrdersRequest as BulkArchiveOrdersRequest, type context$8_BulkArchiveOrdersResponse as BulkArchiveOrdersResponse, type context$8_BulkMarkAsFulfilledByFilterRequest as BulkMarkAsFulfilledByFilterRequest, type context$8_BulkMarkAsFulfilledByFilterResponse as BulkMarkAsFulfilledByFilterResponse, type context$8_BulkMarkAsFulfilledRequest as BulkMarkAsFulfilledRequest, type context$8_BulkMarkAsFulfilledResponse as BulkMarkAsFulfilledResponse, type context$8_BulkMarkAsUnfulfilledByFilterRequest as BulkMarkAsUnfulfilledByFilterRequest, type context$8_BulkMarkAsUnfulfilledByFilterResponse as BulkMarkAsUnfulfilledByFilterResponse, type context$8_BulkMarkAsUnfulfilledRequest as BulkMarkAsUnfulfilledRequest, type context$8_BulkMarkAsUnfulfilledResponse as BulkMarkAsUnfulfilledResponse, type context$8_BulkMarkOrdersAsPaidRequest as BulkMarkOrdersAsPaidRequest, type context$8_BulkMarkOrdersAsPaidResponse as BulkMarkOrdersAsPaidResponse, type context$8_BulkOrderResult as BulkOrderResult, type context$8_BulkSendBuyerPickupConfirmationEmailsRequest as BulkSendBuyerPickupConfirmationEmailsRequest, type context$8_BulkSendBuyerPickupConfirmationEmailsResponse as BulkSendBuyerPickupConfirmationEmailsResponse, type context$8_BulkSendBuyerShippingConfirmationEmailsRequest as BulkSendBuyerShippingConfirmationEmailsRequest, type context$8_BulkSendBuyerShippingConfirmationEmailsResponse as BulkSendBuyerShippingConfirmationEmailsResponse, type context$8_BulkUnArchiveOrdersByFilterRequest as BulkUnArchiveOrdersByFilterRequest, type context$8_BulkUnArchiveOrdersByFilterResponse as BulkUnArchiveOrdersByFilterResponse, type context$8_BulkUnArchiveOrdersRequest as BulkUnArchiveOrdersRequest, type context$8_BulkUnArchiveOrdersResponse as BulkUnArchiveOrdersResponse, type context$8_BulkUpdateOrderTagsOptions as BulkUpdateOrderTagsOptions, type context$8_BulkUpdateOrderTagsRequest as BulkUpdateOrderTagsRequest, type context$8_BulkUpdateOrderTagsResponse as BulkUpdateOrderTagsResponse, type context$8_BulkUpdateOrderTagsResponseNonNullableFields as BulkUpdateOrderTagsResponseNonNullableFields, type context$8_BulkUpdateOrderTagsResult as BulkUpdateOrderTagsResult, type context$8_BulkUpdateOrdersOptions as BulkUpdateOrdersOptions, type context$8_BulkUpdateOrdersRequest as BulkUpdateOrdersRequest, type context$8_BulkUpdateOrdersResponse as BulkUpdateOrdersResponse, type context$8_BulkUpdateOrdersResponseNonNullableFields as BulkUpdateOrdersResponseNonNullableFields, type BuyerInfo$1 as BuyerInfo, type context$8_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type context$8_BuyerInfoUpdate as BuyerInfoUpdate, type CalculateRefundItemRequest$1 as CalculateRefundItemRequest, type CalculateRefundItemResponse$1 as CalculateRefundItemResponse, type CalculateRefundRequest$1 as CalculateRefundRequest, type CalculateRefundResponse$1 as CalculateRefundResponse, type context$8_CalculatedTax as CalculatedTax, type context$8_CalculatedTaxes as CalculatedTaxes, type context$8_Cancel as Cancel, type context$8_CancelOrderOptions as CancelOrderOptions, type context$8_CancelOrderRequest as CancelOrderRequest, type context$8_CancelOrderResponse as CancelOrderResponse, type context$8_CancelOrderResponseNonNullableFields as CancelOrderResponseNonNullableFields, type context$8_CaptureAuthorizedPaymentsRequest as CaptureAuthorizedPaymentsRequest, type context$8_CaptureAuthorizedPaymentsResponse as CaptureAuthorizedPaymentsResponse, type context$8_CaptureAuthorizedPaymentsResponseNonNullableFields as CaptureAuthorizedPaymentsResponseNonNullableFields, type CatalogReference$1 as CatalogReference, type ChannelInfo$1 as ChannelInfo, ChannelType$1 as ChannelType, type context$8_ChargeMembershipsRequest as ChargeMembershipsRequest, type context$8_ChargeMembershipsResponse as ChargeMembershipsResponse, type context$8_ChargeSavedPaymentMethodRequest as ChargeSavedPaymentMethodRequest, type context$8_ChargeSavedPaymentMethodResponse as ChargeSavedPaymentMethodResponse, type context$8_ChargedBy as ChargedBy, type context$8_Color as Color, type context$8_CommitDeltasRequest as CommitDeltasRequest, type context$8_CommitDeltasResponse as CommitDeltasResponse, type context$8_CommittedDiffs as CommittedDiffs, type context$8_CommittedDiffsShippingUpdateInfoOneOf as CommittedDiffsShippingUpdateInfoOneOf, type context$8_CommonAddress as CommonAddress, type context$8_CommonAddressStreetOneOf as CommonAddressStreetOneOf, type context$8_Company as Company, type context$8_Complete as Complete, type context$8_ContinueSideEffectsFlowInLegacyData as ContinueSideEffectsFlowInLegacyData, type Coupon$1 as Coupon, type context$8_CreateOrderRequest as CreateOrderRequest, type context$8_CreateOrderResponse as CreateOrderResponse, type context$8_CreateOrderResponseNonNullableFields as CreateOrderResponseNonNullableFields, type context$8_CreatePaymentGatewayOrderRequest as CreatePaymentGatewayOrderRequest, type context$8_CreatePaymentGatewayOrderResponse as CreatePaymentGatewayOrderResponse, type context$8_CreatedBy as CreatedBy, type context$8_CreatedByStringOneOf as CreatedByStringOneOf, type CreditCardPaymentMethodDetails$2 as CreditCardPaymentMethodDetails, type CursorPaging$5 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type context$8_CursorSearch as CursorSearch, type context$8_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$5 as Cursors, type context$8_CustomActivity as CustomActivity, type CustomField$1 as CustomField, context$8_CustomFieldGroup as CustomFieldGroup, type context$8_CustomFieldValue as CustomFieldValue, type context$8_Customer as Customer, type context$8_DecrementData as DecrementData, type context$8_DecrementItemsQuantityRequest as DecrementItemsQuantityRequest, type context$8_DecrementItemsQuantityResponse as DecrementItemsQuantityResponse, type context$8_DelayedCaptureSettings as DelayedCaptureSettings, type context$8_DeleteActivityRequest as DeleteActivityRequest, type context$8_DeleteActivityResponse as DeleteActivityResponse, type context$8_DeleteByFilterOperation as DeleteByFilterOperation, type context$8_DeleteByIdsOperation as DeleteByIdsOperation, type DeliveryLogistics$1 as DeliveryLogistics, type context$8_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot$1 as DeliveryTimeSlot, context$8_DeltaPaymentOptionType as DeltaPaymentOptionType, type context$8_Deposit as Deposit, context$8_DepositType as DepositType, type context$8_DescriptionLine as DescriptionLine, type context$8_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type context$8_DescriptionLineName as DescriptionLineName, context$8_DescriptionLineType as DescriptionLineType, type context$8_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type DiffmatokyPayload$2 as DiffmatokyPayload, type DigitalFile$1 as DigitalFile, type Discount$1 as Discount, type context$8_DiscountOneDiscountTypeOneOf as DiscountOneDiscountTypeOneOf, context$8_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type context$8_DownloadLinkSent as DownloadLinkSent, type context$8_DraftOrderChangesApplied as DraftOrderChangesApplied, type context$8_DraftOrderCommitSettings as DraftOrderCommitSettings, type context$8_DraftOrderDiffs as DraftOrderDiffs, type context$8_DraftOrderDiffsBillingUpdateInfoOneOf as DraftOrderDiffsBillingUpdateInfoOneOf, type context$8_DraftOrderDiffsBuyerUpdateInfoOneOf as DraftOrderDiffsBuyerUpdateInfoOneOf, type context$8_DraftOrderDiffsRecipientUpdateInfoOneOf as DraftOrderDiffsRecipientUpdateInfoOneOf, type context$8_DraftOrderDiffsShippingUpdateInfoOneOf as DraftOrderDiffsShippingUpdateInfoOneOf, type context$8_Duration as Duration, context$8_DurationUnit as DurationUnit, type context$8_Email as Email, type context$8_EmailEdited as EmailEdited, type Empty$4 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type ErrorInformation$2 as ErrorInformation, type EventMetadata$4 as EventMetadata, type ExtendedFields$3 as ExtendedFields, type context$8_ExternalUriMapping as ExternalUriMapping, type context$8_FulfillerEmailSent as FulfillerEmailSent, FulfillmentStatus$1 as FulfillmentStatus, type context$8_FulfillmentStatusUpdated as FulfillmentStatusUpdated, type context$8_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type context$8_FullAddressContactDetails as FullAddressContactDetails, type context$8_GetMetasiteDataRequest as GetMetasiteDataRequest, type context$8_GetMetasiteDataResponse as GetMetasiteDataResponse, type context$8_GetOrderForMetasiteRequest as GetOrderForMetasiteRequest, type context$8_GetOrderForMetasiteResponse as GetOrderForMetasiteResponse, type context$8_GetOrderRequest as GetOrderRequest, type context$8_GetOrderResponse as GetOrderResponse, type context$8_GetOrderResponseNonNullableFields as GetOrderResponseNonNullableFields, type context$8_GetPaymentCollectabilityStatusRequest as GetPaymentCollectabilityStatusRequest, type context$8_GetPaymentCollectabilityStatusResponse as GetPaymentCollectabilityStatusResponse, type context$8_GetPaymentCollectabilityStatusResponseNonNullableFields as GetPaymentCollectabilityStatusResponseNonNullableFields, type GetRefundabilityStatusRequest$1 as GetRefundabilityStatusRequest, type GetRefundabilityStatusResponse$1 as GetRefundabilityStatusResponse, type context$8_GetShipmentsRequest as GetShipmentsRequest, type context$8_GetShipmentsResponse as GetShipmentsResponse, type GiftCardPaymentDetails$2 as GiftCardPaymentDetails, type context$8_HtmlApplication as HtmlApplication, type context$8_IdAndVersion as IdAndVersion, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, type IndexingMessage$1 as IndexingMessage, type context$8_InternalActivity as InternalActivity, type context$8_InternalActivityContentOneOf as InternalActivityContentOneOf, type context$8_InternalDocument as InternalDocument, type context$8_InternalDocumentUpdateByFilterOperation as InternalDocumentUpdateByFilterOperation, type context$8_InternalDocumentUpdateOperation as InternalDocumentUpdateOperation, type context$8_InternalQueryOrdersRequest as InternalQueryOrdersRequest, type context$8_InternalQueryOrdersResponse as InternalQueryOrdersResponse, type context$8_InternalUpdateExistingOperation as InternalUpdateExistingOperation, context$8_InventoryAction as InventoryAction, type context$8_InventoryUpdateDetails as InventoryUpdateDetails, type context$8_InvoiceAdded as InvoiceAdded, type context$8_InvoiceDates as InvoiceDates, type context$8_InvoiceDynamicPriceTotals as InvoiceDynamicPriceTotals, type context$8_InvoiceFields as InvoiceFields, type context$8_InvoiceSent as InvoiceSent, type context$8_InvoiceSentEvent as InvoiceSentEvent, context$8_InvoiceStatus as InvoiceStatus, type context$8_InvoicesPayment as InvoicesPayment, type context$8_ItemChangedDetails as ItemChangedDetails, type ItemMetadata$1 as ItemMetadata, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, type context$8_ItemizedFee as ItemizedFee, JurisdictionType$1 as JurisdictionType, type LineItem$2 as LineItem, type context$8_LineItemAmount as LineItemAmount, type context$8_LineItemChanges as LineItemChanges, type context$8_LineItemDelta as LineItemDelta, type context$8_LineItemDeltaDeltaOneOf as LineItemDeltaDeltaOneOf, type LineItemDiscount$1 as LineItemDiscount, type context$8_LineItemExchangeData as LineItemExchangeData, type context$8_LineItemMetaData as LineItemMetaData, type context$8_LineItemPriceChange as LineItemPriceChange, type context$8_LineItemQuantityChange as LineItemQuantityChange, context$8_LineItemQuantityChangeType as LineItemQuantityChangeType, type LineItemRefund$2 as LineItemRefund, type context$8_LineItemTax as LineItemTax, type context$8_LineItemTaxBreakdown as LineItemTaxBreakdown, type context$8_LineItemTaxInfo as LineItemTaxInfo, type context$8_LineItemUpdate as LineItemUpdate, type context$8_LineItems as LineItems, type context$8_ListOrderTransactionsForMetasiteRequest as ListOrderTransactionsForMetasiteRequest, type context$8_ListOrderTransactionsForMetasiteResponse as ListOrderTransactionsForMetasiteResponse, type context$8_Locale as Locale, type context$8_LocationAndQuantity as LocationAndQuantity, type context$8_ManagedAdditionalFee as ManagedAdditionalFee, type context$8_ManagedDiscount as ManagedDiscount, type context$8_ManagedLineItem as ManagedLineItem, ManuallyRefundableReason$1 as ManuallyRefundableReason, type context$8_MarkAsFulfilledRequest as MarkAsFulfilledRequest, type context$8_MarkAsFulfilledResponse as MarkAsFulfilledResponse, type context$8_MarkAsUnfulfilledRequest as MarkAsUnfulfilledRequest, type context$8_MarkAsUnfulfilledResponse as MarkAsUnfulfilledResponse, type context$8_MarkOrderAsPaidRequest as MarkOrderAsPaidRequest, type context$8_MarkOrderAsPaidResponse as MarkOrderAsPaidResponse, type context$8_MarkOrderAsSeenByHumanRequest as MarkOrderAsSeenByHumanRequest, type context$8_MarkOrderAsSeenByHumanResponse as MarkOrderAsSeenByHumanResponse, type context$8_MaskedOrder as MaskedOrder, type context$8_MaskedOrderLineItem as MaskedOrderLineItem, type context$8_MembershipChargeItem as MembershipChargeItem, type MembershipName$3 as MembershipName, type MembershipPaymentDetails$2 as MembershipPaymentDetails, MembershipPaymentStatus$2 as MembershipPaymentStatus, type context$8_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type context$8_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope$6 as MessageEnvelope, type context$8_MetaData as MetaData, type context$8_MetaSite as MetaSite, type context$8_MetaTag as MetaTag, context$8_Namespace as Namespace, type context$8_NewExchangeOrderCreated as NewExchangeOrderCreated, NonRefundableReason$1 as NonRefundableReason, type Order$1 as Order, context$8_OrderApprovalStrategy as OrderApprovalStrategy, type context$8_OrderApproved as OrderApproved, type context$8_OrderApprovedEnvelope as OrderApprovedEnvelope, type context$8_OrderCanceled as OrderCanceled, type context$8_OrderCanceledEnvelope as OrderCanceledEnvelope, type context$8_OrderCanceledEventOrderCanceled as OrderCanceledEventOrderCanceled, type context$8_OrderChange as OrderChange, type context$8_OrderChangeValueOneOf as OrderChangeValueOneOf, type context$8_OrderCreateNotifications as OrderCreateNotifications, type context$8_OrderCreatedEnvelope as OrderCreatedEnvelope, type context$8_OrderCreatedFromExchange as OrderCreatedFromExchange, type context$8_OrderCreationSettings as OrderCreationSettings, type context$8_OrderDeltasCommitted as OrderDeltasCommitted, type context$8_OrderFulfilled as OrderFulfilled, type context$8_OrderItemsRestocked as OrderItemsRestocked, type context$8_OrderLineItem as OrderLineItem, type context$8_OrderLineItemChangedDetails as OrderLineItemChangedDetails, type context$8_OrderNonNullableFields as OrderNonNullableFields, type context$8_OrderNotFulfilled as OrderNotFulfilled, type context$8_OrderPaid as OrderPaid, type context$8_OrderPartiallyPaid as OrderPartiallyPaid, type context$8_OrderPaymentStatusUpdatedEnvelope as OrderPaymentStatusUpdatedEnvelope, type context$8_OrderPlaced as OrderPlaced, type OrderRefunded$1 as OrderRefunded, context$8_OrderStatus as OrderStatus, type context$8_OrderTaxBreakdown as OrderTaxBreakdown, type context$8_OrderTaxInfo as OrderTaxInfo, type OrderTransactions$2 as OrderTransactions, type context$8_OrderUpdatedEnvelope as OrderUpdatedEnvelope, type context$8_OrdersExperiments as OrdersExperiments, type Payment$2 as Payment, type context$8_PaymentCapture as PaymentCapture, context$8_PaymentCollectabilityStatus as PaymentCollectabilityStatus, PaymentOptionType$1 as PaymentOptionType, type PaymentPaymentDetailsOneOf$2 as PaymentPaymentDetailsOneOf, type PaymentRefund$1 as PaymentRefund, type context$8_PaymentRefundFailed as PaymentRefundFailed, type context$8_PaymentRefunded as PaymentRefunded, PaymentStatus$1 as PaymentStatus, type context$8_PaymentStatusUpdated as PaymentStatusUpdated, type context$8_Payments as Payments, type context$8_Phone as Phone, type PhysicalProperties$1 as PhysicalProperties, type PickupAddress$1 as PickupAddress, type PickupDetails$2 as PickupDetails, PickupMethod$1 as PickupMethod, type context$8_PickupReadyEmailSent as PickupReadyEmailSent, context$8_Placement as Placement, type context$8_PlainTextValue as PlainTextValue, type context$8_PlatformPaging as PlatformPaging, type context$8_PlatformPagingMetadata as PlatformPagingMetadata, type context$8_PlatformQuery as PlatformQuery, type context$8_PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOf, type context$8_PreparePaymentCollectionOptions as PreparePaymentCollectionOptions, type context$8_PreparePaymentCollectionRequest as PreparePaymentCollectionRequest, type context$8_PreparePaymentCollectionResponse as PreparePaymentCollectionResponse, type context$8_PreparePaymentCollectionResponseNonNullableFields as PreparePaymentCollectionResponseNonNullableFields, type context$8_PreviewBuyerConfirmationEmailRequest as PreviewBuyerConfirmationEmailRequest, type context$8_PreviewBuyerConfirmationEmailResponse as PreviewBuyerConfirmationEmailResponse, type context$8_PreviewBuyerPaymentsReceivedEmailRequest as PreviewBuyerPaymentsReceivedEmailRequest, type context$8_PreviewBuyerPaymentsReceivedEmailResponse as PreviewBuyerPaymentsReceivedEmailResponse, type context$8_PreviewBuyerPickupConfirmationEmailRequest as PreviewBuyerPickupConfirmationEmailRequest, type context$8_PreviewBuyerPickupConfirmationEmailResponse as PreviewBuyerPickupConfirmationEmailResponse, type context$8_PreviewCancelEmailRequest as PreviewCancelEmailRequest, type context$8_PreviewCancelEmailResponse as PreviewCancelEmailResponse, type context$8_PreviewCancelRefundEmailRequest as PreviewCancelRefundEmailRequest, type context$8_PreviewCancelRefundEmailResponse as PreviewCancelRefundEmailResponse, type context$8_PreviewEmailByTypeRequest as PreviewEmailByTypeRequest, type context$8_PreviewEmailByTypeResponse as PreviewEmailByTypeResponse, context$8_PreviewEmailType as PreviewEmailType, type context$8_PreviewRefundEmailRequest as PreviewRefundEmailRequest, type context$8_PreviewRefundEmailResponse as PreviewRefundEmailResponse, type context$8_PreviewResendDownloadLinksEmailRequest as PreviewResendDownloadLinksEmailRequest, type context$8_PreviewResendDownloadLinksEmailResponse as PreviewResendDownloadLinksEmailResponse, type context$8_PreviewShippingConfirmationEmailRequest as PreviewShippingConfirmationEmailRequest, type context$8_PreviewShippingConfirmationEmailResponse as PreviewShippingConfirmationEmailResponse, type Price$2 as Price, type context$8_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type context$8_ProductName as ProductName, type context$8_PublicActivity as PublicActivity, type context$8_PublicActivityContentOneOf as PublicActivityContentOneOf, type context$8_QueryOrderRequest as QueryOrderRequest, type context$8_QueryOrderResponse as QueryOrderResponse, type context$8_QueryOrdersForMetasiteRequest as QueryOrdersForMetasiteRequest, type context$8_QueryOrdersForMetasiteResponse as QueryOrdersForMetasiteResponse, type context$8_QuotesAddress as QuotesAddress, Reason$2 as Reason, type context$8_RecordManuallyCollectedPaymentRequest as RecordManuallyCollectedPaymentRequest, type context$8_RecordManuallyCollectedPaymentResponse as RecordManuallyCollectedPaymentResponse, type context$8_RedirectUrls as RedirectUrls, type Refund$2 as Refund, type RefundCreated$1 as RefundCreated, type RefundDetails$2 as RefundDetails, type context$8_RefundInitiated as RefundInitiated, type RefundItem$2 as RefundItem, type RefundSideEffects$1 as RefundSideEffects, RefundStatus$2 as RefundStatus, type RefundTransaction$2 as RefundTransaction, type Refundability$1 as Refundability, type RefundabilityAdditionalRefundabilityInfoOneOf$1 as RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus$1 as RefundableStatus, type context$8_RefundedAsStoreCredit as RefundedAsStoreCredit, type context$8_RefundedPayment as RefundedPayment, type context$8_RefundedPaymentKindOneOf as RefundedPaymentKindOneOf, type RegularPaymentDetails$2 as RegularPaymentDetails, type RegularPaymentDetailsPaymentMethodDetailsOneOf$2 as RegularPaymentDetailsPaymentMethodDetailsOneOf, type context$8_RegularPaymentRefund as RegularPaymentRefund, type context$8_Reschedule as Reschedule, type RestockInfo$1 as RestockInfo, type RestockItem$1 as RestockItem, RestockType$1 as RestockType, type RestoreInfo$6 as RestoreInfo, type context$8_SavedPaymentMethod as SavedPaymentMethod, ScheduledAction$2 as ScheduledAction, type context$8_SearchOrdersOptions as SearchOrdersOptions, type context$8_SearchOrdersRequest as SearchOrdersRequest, type context$8_SearchOrdersResponse as SearchOrdersResponse, type context$8_SearchOrdersResponseNonNullableFields as SearchOrdersResponseNonNullableFields, type context$8_SendBuyerConfirmationEmailRequest as SendBuyerConfirmationEmailRequest, type context$8_SendBuyerConfirmationEmailResponse as SendBuyerConfirmationEmailResponse, type context$8_SendBuyerPaymentsReceivedEmailRequest as SendBuyerPaymentsReceivedEmailRequest, type context$8_SendBuyerPaymentsReceivedEmailResponse as SendBuyerPaymentsReceivedEmailResponse, type context$8_SendBuyerPickupConfirmationEmailRequest as SendBuyerPickupConfirmationEmailRequest, type context$8_SendBuyerPickupConfirmationEmailResponse as SendBuyerPickupConfirmationEmailResponse, type context$8_SendBuyerShippingConfirmationEmailRequest as SendBuyerShippingConfirmationEmailRequest, type context$8_SendBuyerShippingConfirmationEmailResponse as SendBuyerShippingConfirmationEmailResponse, type context$8_SendCancelRefundEmailRequest as SendCancelRefundEmailRequest, type context$8_SendCancelRefundEmailResponse as SendCancelRefundEmailResponse, type context$8_SendMerchantOrderReceivedNotificationRequest as SendMerchantOrderReceivedNotificationRequest, type context$8_SendMerchantOrderReceivedNotificationResponse as SendMerchantOrderReceivedNotificationResponse, type context$8_SendMerchantOrderReceivedPushRequest as SendMerchantOrderReceivedPushRequest, type context$8_SendMerchantOrderReceivedPushResponse as SendMerchantOrderReceivedPushResponse, type context$8_SendRefundEmailRequest as SendRefundEmailRequest, type context$8_SendRefundEmailResponse as SendRefundEmailResponse, type context$8_SeoData as SeoData, type ServiceProperties$1 as ServiceProperties, type context$8_ShippingAddressEdited as ShippingAddressEdited, type context$8_ShippingConfirmationEmailSent as ShippingConfirmationEmailSent, type ShippingInformation$1 as ShippingInformation, type context$8_ShippingInformationChange as ShippingInformationChange, type ShippingPrice$1 as ShippingPrice, type ShippingRefund$2 as ShippingRefund, type ShippingRegion$1 as ShippingRegion, type SnapshotMessage$1 as SnapshotMessage, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, type Source$1 as Source, context$8_SourceType as SourceType, type context$8_StandardDetails as StandardDetails, context$8_State as State, type StreetAddress$3 as StreetAddress, type context$8_Subdivision as Subdivision, context$8_SubdivisionType as SubdivisionType, SubscriptionFrequency$2 as SubscriptionFrequency, type SubscriptionInfo$1 as SubscriptionInfo, type SubscriptionSettings$2 as SubscriptionSettings, type context$8_TagList as TagList, type context$8_Tags as Tags, type context$8_Task as Task, type context$8_TaskAction as TaskAction, type context$8_TaskActionActionOneOf as TaskActionActionOneOf, type context$8_TaskKey as TaskKey, type TaxSummary$1 as TaxSummary, type TaxableAddress$1 as TaxableAddress, type TaxableAddressTaxableAddressDataOneOf$1 as TaxableAddressTaxableAddressDataOneOf, TaxableAddressType$1 as TaxableAddressType, type context$8_TotalPrice as TotalPrice, type context$8_TotalPriceChange as TotalPriceChange, type context$8_TrackingLinkAdded as TrackingLinkAdded, type context$8_TrackingNumberAdded as TrackingNumberAdded, type context$8_TrackingNumberEdited as TrackingNumberEdited, TransactionStatus$2 as TransactionStatus, type context$8_TranslatedValue as TranslatedValue, type TriggerRefundRequest$1 as TriggerRefundRequest, type TriggerRefundResponse$1 as TriggerRefundResponse, type context$8_TriggerReindexOrderRequest as TriggerReindexOrderRequest, type context$8_TriggerReindexRequest as TriggerReindexRequest, type context$8_TriggerReindexResponse as TriggerReindexResponse, type context$8_TriggerSideEffectsFromLegacyData as TriggerSideEffectsFromLegacyData, type context$8_UnArchiveOrderRequest as UnArchiveOrderRequest, type context$8_UnArchiveOrderResponse as UnArchiveOrderResponse, type context$8_UpdateActivityRequest as UpdateActivityRequest, type context$8_UpdateActivityResponse as UpdateActivityResponse, type context$8_UpdateBillingContactDetailsRequest as UpdateBillingContactDetailsRequest, type context$8_UpdateBillingContactDetailsResponse as UpdateBillingContactDetailsResponse, type context$8_UpdateBuyerEmailRequest as UpdateBuyerEmailRequest, type context$8_UpdateBuyerEmailResponse as UpdateBuyerEmailResponse, type context$8_UpdateBuyerInfoRequest as UpdateBuyerInfoRequest, type context$8_UpdateBuyerInfoResponse as UpdateBuyerInfoResponse, type context$8_UpdateInternalDocumentsEvent as UpdateInternalDocumentsEvent, type context$8_UpdateInternalDocumentsEventOperationOneOf as UpdateInternalDocumentsEventOperationOneOf, type context$8_UpdateLineItemsDescriptionLinesRequest as UpdateLineItemsDescriptionLinesRequest, type context$8_UpdateLineItemsDescriptionLinesResponse as UpdateLineItemsDescriptionLinesResponse, type context$8_UpdateOrder as UpdateOrder, type context$8_UpdateOrderLineItemRequest as UpdateOrderLineItemRequest, type context$8_UpdateOrderLineItemResponse as UpdateOrderLineItemResponse, type context$8_UpdateOrderLineItemsRequest as UpdateOrderLineItemsRequest, type context$8_UpdateOrderLineItemsResponse as UpdateOrderLineItemsResponse, type context$8_UpdateOrderRequest as UpdateOrderRequest, type context$8_UpdateOrderResponse as UpdateOrderResponse, type context$8_UpdateOrderResponseNonNullableFields as UpdateOrderResponseNonNullableFields, type context$8_UpdateOrderShippingAddressRequest as UpdateOrderShippingAddressRequest, type context$8_UpdateOrderShippingAddressResponse as UpdateOrderShippingAddressResponse, type context$8_UpsertRefundRequest as UpsertRefundRequest, type context$8_UpsertRefundResponse as UpsertRefundResponse, type context$8_UserDataResponse as UserDataResponse, type context$8_V1BulkMarkOrdersAsPaidRequest as V1BulkMarkOrdersAsPaidRequest, type context$8_V1BulkMarkOrdersAsPaidResponse as V1BulkMarkOrdersAsPaidResponse, type context$8_V1CreatePaymentGatewayOrderRequest as V1CreatePaymentGatewayOrderRequest, type context$8_V1CreatePaymentGatewayOrderResponse as V1CreatePaymentGatewayOrderResponse, type context$8_V1LineItemDelta as V1LineItemDelta, type context$8_V1LineItemDeltaDeltaOneOf as V1LineItemDeltaDeltaOneOf, type context$8_V1MarkOrderAsPaidRequest as V1MarkOrderAsPaidRequest, type context$8_V1MarkOrderAsPaidResponse as V1MarkOrderAsPaidResponse, type context$8_V1RestockItem as V1RestockItem, type context$8_V1ScheduledAction as V1ScheduledAction, type context$8_V1ShippingInformation as V1ShippingInformation, type context$8_Value as Value, context$8_ValueType as ValueType, type VatId$1 as VatId, VatType$1 as VatType, type context$8_VersionedDeleteByIdsOperation as VersionedDeleteByIdsOperation, type context$8_VersionedDocumentId as VersionedDocumentId, type context$8_VersionedDocumentUpdateOperation as VersionedDocumentUpdateOperation, context$8_VersioningMode as VersioningMode, type context$8_VoidAuthorizedPaymentsRequest as VoidAuthorizedPaymentsRequest, type context$8_VoidAuthorizedPaymentsResponse as VoidAuthorizedPaymentsResponse, type context$8_VoidAuthorizedPaymentsResponseNonNullableFields as VoidAuthorizedPaymentsResponseNonNullableFields, WebhookIdentityType$6 as WebhookIdentityType, WeightUnit$2 as WeightUnit, type context$8__publicOnOrderApprovedType as _publicOnOrderApprovedType, type context$8__publicOnOrderCanceledType as _publicOnOrderCanceledType, type context$8__publicOnOrderCreatedType as _publicOnOrderCreatedType, type context$8__publicOnOrderPaymentStatusUpdatedType as _publicOnOrderPaymentStatusUpdatedType, type context$8__publicOnOrderUpdatedType as _publicOnOrderUpdatedType, context$8_bulkUpdateOrderTags as bulkUpdateOrderTags, context$8_bulkUpdateOrders as bulkUpdateOrders, context$8_cancelOrder as cancelOrder, context$8_captureAuthorizedPayments as captureAuthorizedPayments, context$8_createOrder as createOrder, context$8_getOrder as getOrder, context$8_getPaymentCollectabilityStatus as getPaymentCollectabilityStatus, context$8_onOrderApproved as onOrderApproved, context$8_onOrderCanceled as onOrderCanceled, context$8_onOrderCreated as onOrderCreated, context$8_onOrderPaymentStatusUpdated as onOrderPaymentStatusUpdated, context$8_onOrderUpdated as onOrderUpdated, context$8_preparePaymentCollection as preparePaymentCollection, onOrderApproved$1 as publicOnOrderApproved, onOrderCanceled$1 as publicOnOrderCanceled, onOrderCreated$1 as publicOnOrderCreated, onOrderPaymentStatusUpdated$1 as publicOnOrderPaymentStatusUpdated, onOrderUpdated$1 as publicOnOrderUpdated, context$8_searchOrders as searchOrders, context$8_updateOrder as updateOrder, context$8_voidAuthorizedPayments as voidAuthorizedPayments };
|
|
28000
27990
|
}
|
|
28001
27991
|
|
|
28002
27992
|
interface OrderPaymentRequest {
|
|
@@ -30690,7 +30680,7 @@ interface BulkUpdatePaymentStatusesResponseNonNullableFields {
|
|
|
30690
30680
|
results: BulkPaymentResultNonNullableFields[];
|
|
30691
30681
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
30692
30682
|
}
|
|
30693
|
-
interface BaseEventMetadata$
|
|
30683
|
+
interface BaseEventMetadata$3 {
|
|
30694
30684
|
/** App instance ID. */
|
|
30695
30685
|
instanceId?: string | null;
|
|
30696
30686
|
/** Event type. */
|
|
@@ -30698,7 +30688,7 @@ interface BaseEventMetadata$4 {
|
|
|
30698
30688
|
/** The identification type and identity data. */
|
|
30699
30689
|
identity?: IdentificationData$4;
|
|
30700
30690
|
}
|
|
30701
|
-
interface EventMetadata$
|
|
30691
|
+
interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
30702
30692
|
/**
|
|
30703
30693
|
* Unique event ID.
|
|
30704
30694
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -30738,7 +30728,7 @@ interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
|
30738
30728
|
}
|
|
30739
30729
|
interface OrderTransactionsUpdatedEnvelope {
|
|
30740
30730
|
data: PaymentsUpdated;
|
|
30741
|
-
metadata: EventMetadata$
|
|
30731
|
+
metadata: EventMetadata$3;
|
|
30742
30732
|
}
|
|
30743
30733
|
interface UpdatePaymentStatusIdentifiers {
|
|
30744
30734
|
/** Payment ID. */
|
|
@@ -30814,18 +30804,18 @@ interface BulkUpdatePaymentStatusesSignature {
|
|
|
30814
30804
|
*/
|
|
30815
30805
|
(paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions | undefined): Promise<BulkUpdatePaymentStatusesResponse & BulkUpdatePaymentStatusesResponseNonNullableFields>;
|
|
30816
30806
|
}
|
|
30817
|
-
declare const onOrderTransactionsUpdated$1: EventDefinition$
|
|
30807
|
+
declare const onOrderTransactionsUpdated$1: EventDefinition$g<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
30818
30808
|
|
|
30819
|
-
type EventDefinition$
|
|
30809
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
30820
30810
|
__type: 'event-definition';
|
|
30821
30811
|
type: Type;
|
|
30822
30812
|
isDomainEvent?: boolean;
|
|
30823
30813
|
transformations?: (envelope: unknown) => Payload;
|
|
30824
30814
|
__payload: Payload;
|
|
30825
30815
|
};
|
|
30826
|
-
declare function EventDefinition$
|
|
30827
|
-
type EventHandler$
|
|
30828
|
-
type BuildEventDefinition$
|
|
30816
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
30817
|
+
type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
|
|
30818
|
+
type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
|
|
30829
30819
|
|
|
30830
30820
|
declare global {
|
|
30831
30821
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -30834,7 +30824,7 @@ declare global {
|
|
|
30834
30824
|
}
|
|
30835
30825
|
}
|
|
30836
30826
|
|
|
30837
|
-
declare function createEventModule$
|
|
30827
|
+
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
30838
30828
|
|
|
30839
30829
|
declare const listTransactionsForSingleOrder: MaybeContext<BuildRESTFunction<typeof listTransactionsForSingleOrder$1> & typeof listTransactionsForSingleOrder$1>;
|
|
30840
30830
|
declare const listTransactionsForMultipleOrders: MaybeContext<BuildRESTFunction<typeof listTransactionsForMultipleOrders$1> & typeof listTransactionsForMultipleOrders$1>;
|
|
@@ -30844,7 +30834,7 @@ declare const bulkUpdatePaymentStatuses: MaybeContext<BuildRESTFunction<typeof b
|
|
|
30844
30834
|
|
|
30845
30835
|
type _publicOnOrderTransactionsUpdatedType = typeof onOrderTransactionsUpdated$1;
|
|
30846
30836
|
/** */
|
|
30847
|
-
declare const onOrderTransactionsUpdated: ReturnType<typeof createEventModule$
|
|
30837
|
+
declare const onOrderTransactionsUpdated: ReturnType<typeof createEventModule$3<_publicOnOrderTransactionsUpdatedType>>;
|
|
30848
30838
|
|
|
30849
30839
|
type context$6_ActionType = ActionType;
|
|
30850
30840
|
declare const context$6_ActionType: typeof ActionType;
|
|
@@ -31016,7 +31006,7 @@ declare const context$6_listTransactionsForSingleOrder: typeof listTransactionsF
|
|
|
31016
31006
|
declare const context$6_onOrderTransactionsUpdated: typeof onOrderTransactionsUpdated;
|
|
31017
31007
|
declare const context$6_updatePaymentStatus: typeof updatePaymentStatus;
|
|
31018
31008
|
declare namespace context$6 {
|
|
31019
|
-
export { type ActionEvent$4 as ActionEvent, context$6_ActionType as ActionType, type context$6_Activity as Activity, context$6_ActivityType as ActivityType, type context$6_AddInvoiceToOrderRequest as AddInvoiceToOrderRequest, type context$6_AddInvoiceToOrderResponse as AddInvoiceToOrderResponse, type context$6_AddPaymentsRequest as AddPaymentsRequest, type context$6_AddPaymentsResponse as AddPaymentsResponse, type context$6_AddPaymentsResponseNonNullableFields as AddPaymentsResponseNonNullableFields, type context$6_AddRefundRequest as AddRefundRequest, type context$6_AddRefundResponse as AddRefundResponse, type context$6_AdditionalFeeRefund as AdditionalFeeRefund, type Address$3 as Address, type context$6_AddressAddressLine1OptionsOneOf as AddressAddressLine1OptionsOneOf, type context$6_AggregatedRefundSummary as AggregatedRefundSummary, type ApplicationError$2 as ApplicationError, type context$6_AppliedCoupon as AppliedCoupon, type context$6_AuthorizationActionFailureDetails as AuthorizationActionFailureDetails, type context$6_AuthorizationCapture as AuthorizationCapture, context$6_AuthorizationCaptureStatus as AuthorizationCaptureStatus, type context$6_AuthorizationDetails as AuthorizationDetails, type context$6_AuthorizationVoid as AuthorizationVoid, context$6_AuthorizationVoidStatus as AuthorizationVoidStatus, type BaseEventMetadata$4 as BaseEventMetadata, type context$6_BillingInfo as BillingInfo, type context$6_BulkActionMetadata as BulkActionMetadata, type context$6_BulkGenerateInvoicesRequest as BulkGenerateInvoicesRequest, type context$6_BulkGenerateInvoicesResponse as BulkGenerateInvoicesResponse, type context$6_BulkInvoiceResult as BulkInvoiceResult, type context$6_BulkPaymentResult as BulkPaymentResult, type context$6_BulkUpdatePaymentStatusesOptions as BulkUpdatePaymentStatusesOptions, type context$6_BulkUpdatePaymentStatusesRequest as BulkUpdatePaymentStatusesRequest, type context$6_BulkUpdatePaymentStatusesResponse as BulkUpdatePaymentStatusesResponse, type context$6_BulkUpdatePaymentStatusesResponseNonNullableFields as BulkUpdatePaymentStatusesResponseNonNullableFields, type context$6_BuyerDetails as BuyerDetails, type context$6_BuyerInfo as BuyerInfo, type context$6_CalculateRefundItemRequest as CalculateRefundItemRequest, type context$6_CalculateRefundItemResponse as CalculateRefundItemResponse, type context$6_CalculateRefundRequest as CalculateRefundRequest, type context$6_CalculateRefundResponse as CalculateRefundResponse, type context$6_ChannelInfo as ChannelInfo, context$6_ChannelType as ChannelType, type context$6_CreditCardPaymentMethodDetails as CreditCardPaymentMethodDetails, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, type context$6_CustomField as CustomField, type context$6_CustomTextFieldSelection as CustomTextFieldSelection, type DiffmatokyPayload$1 as DiffmatokyPayload, type context$6_DigitalFile as DigitalFile, type context$6_Discount as Discount, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$6_EnteredBy as EnteredBy, context$6_EnteredByIdentityType as EnteredByIdentityType, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type ErrorInformation$1 as ErrorInformation, type EventMetadata$4 as EventMetadata, type context$6_Fulfillment as Fulfillment, type context$6_FulfillmentLineItem as FulfillmentLineItem, context$6_FulfillmentStatus as FulfillmentStatus, type context$6_FulfillmentTrackingInfo as FulfillmentTrackingInfo, type context$6_FullName as FullName, type context$6_GenerateInvoiceRequest as GenerateInvoiceRequest, type context$6_GenerateInvoiceResponse as GenerateInvoiceResponse, type context$6_GetRefundabilityStatusRequest as GetRefundabilityStatusRequest, type context$6_GetRefundabilityStatusResponse as GetRefundabilityStatusResponse, type GiftCard$1 as GiftCard, type context$6_GiftCardPaymentDetails as GiftCardPaymentDetails, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$6_IdentityType as IdentityType, type context$6_IndexingMessage as IndexingMessage, type context$6_InvoiceForOrder as InvoiceForOrder, type context$6_InvoiceInfo as InvoiceInfo, context$6_InvoiceSource as InvoiceSource, type context$6_InvoicesForOrder as InvoicesForOrder, type context$6_ItemMetadata as ItemMetadata, type LineItem$1 as LineItem, type context$6_LineItemPriceData as LineItemPriceData, type context$6_LineItemRefund as LineItemRefund, context$6_LineItemType as LineItemType, type context$6_ListInvoicesForMultipleOrdersRequest as ListInvoicesForMultipleOrdersRequest, type context$6_ListInvoicesForMultipleOrdersResponse as ListInvoicesForMultipleOrdersResponse, type context$6_ListInvoicesForSingleOrderRequest as ListInvoicesForSingleOrderRequest, type context$6_ListInvoicesForSingleOrderResponse as ListInvoicesForSingleOrderResponse, type context$6_ListTransactionsForMultipleOrdersRequest as ListTransactionsForMultipleOrdersRequest, type context$6_ListTransactionsForMultipleOrdersResponse as ListTransactionsForMultipleOrdersResponse, type context$6_ListTransactionsForMultipleOrdersResponseNonNullableFields as ListTransactionsForMultipleOrdersResponseNonNullableFields, type context$6_ListTransactionsForSingleOrderRequest as ListTransactionsForSingleOrderRequest, type context$6_ListTransactionsForSingleOrderResponse as ListTransactionsForSingleOrderResponse, type context$6_ListTransactionsForSingleOrderResponseNonNullableFields as ListTransactionsForSingleOrderResponseNonNullableFields, context$6_ManuallyRefundableReason as ManuallyRefundableReason, type context$6_MaskedPayment as MaskedPayment, type context$6_MediaItem as MediaItem, context$6_MediaItemType as MediaItemType, type MembershipName$1 as MembershipName, type context$6_MembershipPaymentDetails as MembershipPaymentDetails, context$6_MembershipPaymentStatus as MembershipPaymentStatus, type MessageEnvelope$4 as MessageEnvelope, context$6_NonRefundableReason as NonRefundableReason, type context$6_OptionSelection as OptionSelection, type context$6_Order as Order, type context$6_OrderRefunded as OrderRefunded, type context$6_OrderTransactions as OrderTransactions, type context$6_OrderTransactionsUpdatedEnvelope as OrderTransactionsUpdatedEnvelope, type context$6_Payment as Payment, type context$6_PaymentAndOrderId as PaymentAndOrderId, type context$6_PaymentPaymentDetailsOneOf as PaymentPaymentDetailsOneOf, type context$6_PaymentRefund as PaymentRefund, context$6_PaymentStatus as PaymentStatus, type context$6_PaymentsUpdated as PaymentsUpdated, type context$6_PickupAddress as PickupAddress, type PickupDetails$1 as PickupDetails, type context$6_Price as Price, type context$6_QueryOrderTransactionsRequest as QueryOrderTransactionsRequest, type context$6_QueryOrderTransactionsResponse as QueryOrderTransactionsResponse, context$6_Reason as Reason, type context$6_Refund as Refund, type context$6_RefundCreated as RefundCreated, type context$6_RefundDetails as RefundDetails, type context$6_RefundItem as RefundItem, type context$6_RefundSideEffects as RefundSideEffects, context$6_RefundStatus as RefundStatus, type context$6_RefundTransaction as RefundTransaction, type context$6_Refundability as Refundability, type context$6_RefundabilityAdditionalRefundabilityInfoOneOf as RefundabilityAdditionalRefundabilityInfoOneOf, context$6_RefundableStatus as RefundableStatus, type context$6_RegularPaymentDetails as RegularPaymentDetails, type context$6_RegularPaymentDetailsPaymentMethodDetailsOneOf as RegularPaymentDetailsPaymentMethodDetailsOneOf, type context$6_RestockInfo as RestockInfo, type context$6_RestockItem as RestockItem, context$6_RestockType as RestockType, type RestoreInfo$4 as RestoreInfo, type context$6_ScheduledAction as ScheduledAction, type context$6_ShipmentDetails as ShipmentDetails, type context$6_ShippingInfo as ShippingInfo, type context$6_ShippingInfoDetailsOneOf as ShippingInfoDetailsOneOf, type context$6_ShippingPriceData as ShippingPriceData, type context$6_ShippingRefund as ShippingRefund, type context$6_SnapshotMessage as SnapshotMessage, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type context$6_Street as Street, SubscriptionFrequency$1 as SubscriptionFrequency, type context$6_SubscriptionInfo as SubscriptionInfo, type context$6_SubscriptionOptionInfo as SubscriptionOptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, type context$6_Totals as Totals, type context$6_TrackingInfo as TrackingInfo, context$6_TransactionStatus as TransactionStatus, type context$6_TriggerRefundRequest as TriggerRefundRequest, type context$6_TriggerRefundResponse as TriggerRefundResponse, type context$6_UpdatePaymentStatusIdentifiers as UpdatePaymentStatusIdentifiers, type context$6_UpdatePaymentStatusOptions as UpdatePaymentStatusOptions, type context$6_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type context$6_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type context$6_UpdatePaymentStatusResponseNonNullableFields as UpdatePaymentStatusResponseNonNullableFields, type context$6_UpdatePaymentsRequest as UpdatePaymentsRequest, type context$6_UpdatePaymentsResponse as UpdatePaymentsResponse, type context$6_UpdateRefundTransactionRequest as UpdateRefundTransactionRequest, type context$6_UpdateRefundTransactionResponse as UpdateRefundTransactionResponse, type context$6_V2InvoiceInfo as V2InvoiceInfo, type context$6_V2Refund as V2Refund, type context$6_VatId as VatId, context$6_VatType as VatType, WebhookIdentityType$4 as WebhookIdentityType, WeightUnit$1 as WeightUnit, type context$6__publicOnOrderTransactionsUpdatedType as _publicOnOrderTransactionsUpdatedType, context$6_addPayments as addPayments, context$6_bulkUpdatePaymentStatuses as bulkUpdatePaymentStatuses, context$6_listTransactionsForMultipleOrders as listTransactionsForMultipleOrders, context$6_listTransactionsForSingleOrder as listTransactionsForSingleOrder, context$6_onOrderTransactionsUpdated as onOrderTransactionsUpdated, onOrderTransactionsUpdated$1 as publicOnOrderTransactionsUpdated, context$6_updatePaymentStatus as updatePaymentStatus };
|
|
31009
|
+
export { type ActionEvent$4 as ActionEvent, context$6_ActionType as ActionType, type context$6_Activity as Activity, context$6_ActivityType as ActivityType, type context$6_AddInvoiceToOrderRequest as AddInvoiceToOrderRequest, type context$6_AddInvoiceToOrderResponse as AddInvoiceToOrderResponse, type context$6_AddPaymentsRequest as AddPaymentsRequest, type context$6_AddPaymentsResponse as AddPaymentsResponse, type context$6_AddPaymentsResponseNonNullableFields as AddPaymentsResponseNonNullableFields, type context$6_AddRefundRequest as AddRefundRequest, type context$6_AddRefundResponse as AddRefundResponse, type context$6_AdditionalFeeRefund as AdditionalFeeRefund, type Address$3 as Address, type context$6_AddressAddressLine1OptionsOneOf as AddressAddressLine1OptionsOneOf, type context$6_AggregatedRefundSummary as AggregatedRefundSummary, type ApplicationError$2 as ApplicationError, type context$6_AppliedCoupon as AppliedCoupon, type context$6_AuthorizationActionFailureDetails as AuthorizationActionFailureDetails, type context$6_AuthorizationCapture as AuthorizationCapture, context$6_AuthorizationCaptureStatus as AuthorizationCaptureStatus, type context$6_AuthorizationDetails as AuthorizationDetails, type context$6_AuthorizationVoid as AuthorizationVoid, context$6_AuthorizationVoidStatus as AuthorizationVoidStatus, type BaseEventMetadata$3 as BaseEventMetadata, type context$6_BillingInfo as BillingInfo, type context$6_BulkActionMetadata as BulkActionMetadata, type context$6_BulkGenerateInvoicesRequest as BulkGenerateInvoicesRequest, type context$6_BulkGenerateInvoicesResponse as BulkGenerateInvoicesResponse, type context$6_BulkInvoiceResult as BulkInvoiceResult, type context$6_BulkPaymentResult as BulkPaymentResult, type context$6_BulkUpdatePaymentStatusesOptions as BulkUpdatePaymentStatusesOptions, type context$6_BulkUpdatePaymentStatusesRequest as BulkUpdatePaymentStatusesRequest, type context$6_BulkUpdatePaymentStatusesResponse as BulkUpdatePaymentStatusesResponse, type context$6_BulkUpdatePaymentStatusesResponseNonNullableFields as BulkUpdatePaymentStatusesResponseNonNullableFields, type context$6_BuyerDetails as BuyerDetails, type context$6_BuyerInfo as BuyerInfo, type context$6_CalculateRefundItemRequest as CalculateRefundItemRequest, type context$6_CalculateRefundItemResponse as CalculateRefundItemResponse, type context$6_CalculateRefundRequest as CalculateRefundRequest, type context$6_CalculateRefundResponse as CalculateRefundResponse, type context$6_ChannelInfo as ChannelInfo, context$6_ChannelType as ChannelType, type context$6_CreditCardPaymentMethodDetails as CreditCardPaymentMethodDetails, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, type context$6_CustomField as CustomField, type context$6_CustomTextFieldSelection as CustomTextFieldSelection, type DiffmatokyPayload$1 as DiffmatokyPayload, type context$6_DigitalFile as DigitalFile, type context$6_Discount as Discount, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$6_EnteredBy as EnteredBy, context$6_EnteredByIdentityType as EnteredByIdentityType, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type ErrorInformation$1 as ErrorInformation, type EventMetadata$3 as EventMetadata, type context$6_Fulfillment as Fulfillment, type context$6_FulfillmentLineItem as FulfillmentLineItem, context$6_FulfillmentStatus as FulfillmentStatus, type context$6_FulfillmentTrackingInfo as FulfillmentTrackingInfo, type context$6_FullName as FullName, type context$6_GenerateInvoiceRequest as GenerateInvoiceRequest, type context$6_GenerateInvoiceResponse as GenerateInvoiceResponse, type context$6_GetRefundabilityStatusRequest as GetRefundabilityStatusRequest, type context$6_GetRefundabilityStatusResponse as GetRefundabilityStatusResponse, type GiftCard$1 as GiftCard, type context$6_GiftCardPaymentDetails as GiftCardPaymentDetails, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$6_IdentityType as IdentityType, type context$6_IndexingMessage as IndexingMessage, type context$6_InvoiceForOrder as InvoiceForOrder, type context$6_InvoiceInfo as InvoiceInfo, context$6_InvoiceSource as InvoiceSource, type context$6_InvoicesForOrder as InvoicesForOrder, type context$6_ItemMetadata as ItemMetadata, type LineItem$1 as LineItem, type context$6_LineItemPriceData as LineItemPriceData, type context$6_LineItemRefund as LineItemRefund, context$6_LineItemType as LineItemType, type context$6_ListInvoicesForMultipleOrdersRequest as ListInvoicesForMultipleOrdersRequest, type context$6_ListInvoicesForMultipleOrdersResponse as ListInvoicesForMultipleOrdersResponse, type context$6_ListInvoicesForSingleOrderRequest as ListInvoicesForSingleOrderRequest, type context$6_ListInvoicesForSingleOrderResponse as ListInvoicesForSingleOrderResponse, type context$6_ListTransactionsForMultipleOrdersRequest as ListTransactionsForMultipleOrdersRequest, type context$6_ListTransactionsForMultipleOrdersResponse as ListTransactionsForMultipleOrdersResponse, type context$6_ListTransactionsForMultipleOrdersResponseNonNullableFields as ListTransactionsForMultipleOrdersResponseNonNullableFields, type context$6_ListTransactionsForSingleOrderRequest as ListTransactionsForSingleOrderRequest, type context$6_ListTransactionsForSingleOrderResponse as ListTransactionsForSingleOrderResponse, type context$6_ListTransactionsForSingleOrderResponseNonNullableFields as ListTransactionsForSingleOrderResponseNonNullableFields, context$6_ManuallyRefundableReason as ManuallyRefundableReason, type context$6_MaskedPayment as MaskedPayment, type context$6_MediaItem as MediaItem, context$6_MediaItemType as MediaItemType, type MembershipName$1 as MembershipName, type context$6_MembershipPaymentDetails as MembershipPaymentDetails, context$6_MembershipPaymentStatus as MembershipPaymentStatus, type MessageEnvelope$4 as MessageEnvelope, context$6_NonRefundableReason as NonRefundableReason, type context$6_OptionSelection as OptionSelection, type context$6_Order as Order, type context$6_OrderRefunded as OrderRefunded, type context$6_OrderTransactions as OrderTransactions, type context$6_OrderTransactionsUpdatedEnvelope as OrderTransactionsUpdatedEnvelope, type context$6_Payment as Payment, type context$6_PaymentAndOrderId as PaymentAndOrderId, type context$6_PaymentPaymentDetailsOneOf as PaymentPaymentDetailsOneOf, type context$6_PaymentRefund as PaymentRefund, context$6_PaymentStatus as PaymentStatus, type context$6_PaymentsUpdated as PaymentsUpdated, type context$6_PickupAddress as PickupAddress, type PickupDetails$1 as PickupDetails, type context$6_Price as Price, type context$6_QueryOrderTransactionsRequest as QueryOrderTransactionsRequest, type context$6_QueryOrderTransactionsResponse as QueryOrderTransactionsResponse, context$6_Reason as Reason, type context$6_Refund as Refund, type context$6_RefundCreated as RefundCreated, type context$6_RefundDetails as RefundDetails, type context$6_RefundItem as RefundItem, type context$6_RefundSideEffects as RefundSideEffects, context$6_RefundStatus as RefundStatus, type context$6_RefundTransaction as RefundTransaction, type context$6_Refundability as Refundability, type context$6_RefundabilityAdditionalRefundabilityInfoOneOf as RefundabilityAdditionalRefundabilityInfoOneOf, context$6_RefundableStatus as RefundableStatus, type context$6_RegularPaymentDetails as RegularPaymentDetails, type context$6_RegularPaymentDetailsPaymentMethodDetailsOneOf as RegularPaymentDetailsPaymentMethodDetailsOneOf, type context$6_RestockInfo as RestockInfo, type context$6_RestockItem as RestockItem, context$6_RestockType as RestockType, type RestoreInfo$4 as RestoreInfo, type context$6_ScheduledAction as ScheduledAction, type context$6_ShipmentDetails as ShipmentDetails, type context$6_ShippingInfo as ShippingInfo, type context$6_ShippingInfoDetailsOneOf as ShippingInfoDetailsOneOf, type context$6_ShippingPriceData as ShippingPriceData, type context$6_ShippingRefund as ShippingRefund, type context$6_SnapshotMessage as SnapshotMessage, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type context$6_Street as Street, SubscriptionFrequency$1 as SubscriptionFrequency, type context$6_SubscriptionInfo as SubscriptionInfo, type context$6_SubscriptionOptionInfo as SubscriptionOptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, type context$6_Totals as Totals, type context$6_TrackingInfo as TrackingInfo, context$6_TransactionStatus as TransactionStatus, type context$6_TriggerRefundRequest as TriggerRefundRequest, type context$6_TriggerRefundResponse as TriggerRefundResponse, type context$6_UpdatePaymentStatusIdentifiers as UpdatePaymentStatusIdentifiers, type context$6_UpdatePaymentStatusOptions as UpdatePaymentStatusOptions, type context$6_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type context$6_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type context$6_UpdatePaymentStatusResponseNonNullableFields as UpdatePaymentStatusResponseNonNullableFields, type context$6_UpdatePaymentsRequest as UpdatePaymentsRequest, type context$6_UpdatePaymentsResponse as UpdatePaymentsResponse, type context$6_UpdateRefundTransactionRequest as UpdateRefundTransactionRequest, type context$6_UpdateRefundTransactionResponse as UpdateRefundTransactionResponse, type context$6_V2InvoiceInfo as V2InvoiceInfo, type context$6_V2Refund as V2Refund, type context$6_VatId as VatId, context$6_VatType as VatType, WebhookIdentityType$4 as WebhookIdentityType, WeightUnit$1 as WeightUnit, type context$6__publicOnOrderTransactionsUpdatedType as _publicOnOrderTransactionsUpdatedType, context$6_addPayments as addPayments, context$6_bulkUpdatePaymentStatuses as bulkUpdatePaymentStatuses, context$6_listTransactionsForMultipleOrders as listTransactionsForMultipleOrders, context$6_listTransactionsForSingleOrder as listTransactionsForSingleOrder, context$6_onOrderTransactionsUpdated as onOrderTransactionsUpdated, onOrderTransactionsUpdated$1 as publicOnOrderTransactionsUpdated, context$6_updatePaymentStatus as updatePaymentStatus };
|
|
31020
31010
|
}
|
|
31021
31011
|
|
|
31022
31012
|
interface OrdersSettings {
|
|
@@ -31193,7 +31183,7 @@ interface GetOrdersSettingsResponseNonNullableFields {
|
|
|
31193
31183
|
interface UpdateOrdersSettingsResponseNonNullableFields {
|
|
31194
31184
|
ordersSettings?: OrdersSettingsNonNullableFields;
|
|
31195
31185
|
}
|
|
31196
|
-
interface BaseEventMetadata$
|
|
31186
|
+
interface BaseEventMetadata$2 {
|
|
31197
31187
|
/** App instance ID. */
|
|
31198
31188
|
instanceId?: string | null;
|
|
31199
31189
|
/** Event type. */
|
|
@@ -31201,7 +31191,7 @@ interface BaseEventMetadata$3 {
|
|
|
31201
31191
|
/** The identification type and identity data. */
|
|
31202
31192
|
identity?: IdentificationData$3;
|
|
31203
31193
|
}
|
|
31204
|
-
interface EventMetadata$
|
|
31194
|
+
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
31205
31195
|
/**
|
|
31206
31196
|
* Unique event ID.
|
|
31207
31197
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -31241,7 +31231,7 @@ interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
|
31241
31231
|
}
|
|
31242
31232
|
interface OrdersSettingsUpdatedEnvelope {
|
|
31243
31233
|
entity: OrdersSettings;
|
|
31244
|
-
metadata: EventMetadata$
|
|
31234
|
+
metadata: EventMetadata$2;
|
|
31245
31235
|
}
|
|
31246
31236
|
|
|
31247
31237
|
declare function getOrdersSettings$1(httpClient: HttpClient): GetOrdersSettingsSignature;
|
|
@@ -31267,18 +31257,18 @@ interface UpdateOrdersSettingsSignature {
|
|
|
31267
31257
|
*/
|
|
31268
31258
|
(ordersSettings: OrdersSettings): Promise<UpdateOrdersSettingsResponse & UpdateOrdersSettingsResponseNonNullableFields>;
|
|
31269
31259
|
}
|
|
31270
|
-
declare const onOrdersSettingsUpdated$1: EventDefinition$
|
|
31260
|
+
declare const onOrdersSettingsUpdated$1: EventDefinition$g<OrdersSettingsUpdatedEnvelope, "wix.ecom.v1.orders_settings_updated">;
|
|
31271
31261
|
|
|
31272
|
-
type EventDefinition$
|
|
31262
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
31273
31263
|
__type: 'event-definition';
|
|
31274
31264
|
type: Type;
|
|
31275
31265
|
isDomainEvent?: boolean;
|
|
31276
31266
|
transformations?: (envelope: unknown) => Payload;
|
|
31277
31267
|
__payload: Payload;
|
|
31278
31268
|
};
|
|
31279
|
-
declare function EventDefinition$
|
|
31280
|
-
type EventHandler$
|
|
31281
|
-
type BuildEventDefinition$
|
|
31269
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
31270
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
31271
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
31282
31272
|
|
|
31283
31273
|
declare global {
|
|
31284
31274
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -31287,7 +31277,7 @@ declare global {
|
|
|
31287
31277
|
}
|
|
31288
31278
|
}
|
|
31289
31279
|
|
|
31290
|
-
declare function createEventModule$
|
|
31280
|
+
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
31291
31281
|
|
|
31292
31282
|
declare const getOrdersSettings: MaybeContext<BuildRESTFunction<typeof getOrdersSettings$1> & typeof getOrdersSettings$1>;
|
|
31293
31283
|
declare const updateOrdersSettings: MaybeContext<BuildRESTFunction<typeof updateOrdersSettings$1> & typeof updateOrdersSettings$1>;
|
|
@@ -31296,7 +31286,7 @@ type _publicOnOrdersSettingsUpdatedType = typeof onOrdersSettingsUpdated$1;
|
|
|
31296
31286
|
/**
|
|
31297
31287
|
* Triggered when orders settings are updated.
|
|
31298
31288
|
*/
|
|
31299
|
-
declare const onOrdersSettingsUpdated: ReturnType<typeof createEventModule$
|
|
31289
|
+
declare const onOrdersSettingsUpdated: ReturnType<typeof createEventModule$2<_publicOnOrdersSettingsUpdatedType>>;
|
|
31300
31290
|
|
|
31301
31291
|
type context$5_DeleteOrdersSettingsRequest = DeleteOrdersSettingsRequest;
|
|
31302
31292
|
type context$5_DeleteOrdersSettingsResponse = DeleteOrdersSettingsResponse;
|
|
@@ -31317,7 +31307,7 @@ declare const context$5_getOrdersSettings: typeof getOrdersSettings;
|
|
|
31317
31307
|
declare const context$5_onOrdersSettingsUpdated: typeof onOrdersSettingsUpdated;
|
|
31318
31308
|
declare const context$5_updateOrdersSettings: typeof updateOrdersSettings;
|
|
31319
31309
|
declare namespace context$5 {
|
|
31320
|
-
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$
|
|
31310
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type context$5_DeleteOrdersSettingsRequest as DeleteOrdersSettingsRequest, type context$5_DeleteOrdersSettingsResponse as DeleteOrdersSettingsResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type context$5_GetOrdersSettingsRequest as GetOrdersSettingsRequest, type context$5_GetOrdersSettingsResponse as GetOrdersSettingsResponse, type context$5_GetOrdersSettingsResponseNonNullableFields as GetOrdersSettingsResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, context$5_InventoryUpdateTrigger as InventoryUpdateTrigger, type context$5_ListOrdersSettingsRequest as ListOrdersSettingsRequest, type context$5_ListOrdersSettingsResponse as ListOrdersSettingsResponse, type MessageEnvelope$3 as MessageEnvelope, type context$5_OrdersSettings as OrdersSettings, type context$5_OrdersSettingsUpdatedEnvelope as OrdersSettingsUpdatedEnvelope, type RestoreInfo$3 as RestoreInfo, type context$5_UpdateOrdersSettingsRequest as UpdateOrdersSettingsRequest, type context$5_UpdateOrdersSettingsResponse as UpdateOrdersSettingsResponse, type context$5_UpdateOrdersSettingsResponseNonNullableFields as UpdateOrdersSettingsResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, type context$5__publicOnOrdersSettingsUpdatedType as _publicOnOrdersSettingsUpdatedType, context$5_getOrdersSettings as getOrdersSettings, context$5_onOrdersSettingsUpdated as onOrdersSettingsUpdated, onOrdersSettingsUpdated$1 as publicOnOrdersSettingsUpdated, context$5_updateOrdersSettings as updateOrdersSettings };
|
|
31321
31311
|
}
|
|
31322
31312
|
|
|
31323
31313
|
/** PickupLocation is the main entity of PickupLocations that can be used for lorem ipsum dolor */
|
|
@@ -31327,9 +31317,10 @@ interface PickupLocation {
|
|
|
31327
31317
|
* @readonly
|
|
31328
31318
|
*/
|
|
31329
31319
|
_id?: string | null;
|
|
31330
|
-
/**
|
|
31331
|
-
|
|
31332
|
-
|
|
31320
|
+
/**
|
|
31321
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
|
|
31322
|
+
* @readonly
|
|
31323
|
+
*/
|
|
31333
31324
|
revision?: string | null;
|
|
31334
31325
|
/**
|
|
31335
31326
|
* Represents the time this PickupLocation was created
|
|
@@ -31353,6 +31344,8 @@ interface PickupLocation {
|
|
|
31353
31344
|
active?: boolean | null;
|
|
31354
31345
|
/** at runtime for a given pickup input, up to one rate (price) should be returned in an option. If more than one rate is valid then we return the lowest one. */
|
|
31355
31346
|
rates?: ConditionalRates$1[];
|
|
31347
|
+
/** This pickup location is active for the following delivery regions. */
|
|
31348
|
+
deliveryRegionIds?: string[];
|
|
31356
31349
|
}
|
|
31357
31350
|
/** Physical address */
|
|
31358
31351
|
interface Address$2 extends AddressStreetOneOf {
|
|
@@ -31519,7 +31512,7 @@ interface QueryPickupLocationResponse {
|
|
|
31519
31512
|
pagingMetadata?: CursorPagingMetadata$2;
|
|
31520
31513
|
}
|
|
31521
31514
|
interface CursorPagingMetadata$2 {
|
|
31522
|
-
/** Number of items returned in
|
|
31515
|
+
/** Number of items returned in current page. */
|
|
31523
31516
|
count?: number | null;
|
|
31524
31517
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
31525
31518
|
cursors?: Cursors$2;
|
|
@@ -31537,6 +31530,30 @@ interface Cursors$2 {
|
|
|
31537
31530
|
/** Cursor pointing to the previous page in the list of results. */
|
|
31538
31531
|
prev?: string | null;
|
|
31539
31532
|
}
|
|
31533
|
+
interface AddDeliveryRegionRequest {
|
|
31534
|
+
/** Id of the PickupLocation to add to the delivery region */
|
|
31535
|
+
pickupLocationId: string;
|
|
31536
|
+
/** Id of the DeliveryRegion to add the PickupLocation to */
|
|
31537
|
+
deliveryRegionId: string;
|
|
31538
|
+
/** Revision of the PickupLocation */
|
|
31539
|
+
revision: string | null;
|
|
31540
|
+
}
|
|
31541
|
+
interface AddDeliveryRegionResponse {
|
|
31542
|
+
/** The updated PickupLocation */
|
|
31543
|
+
pickupLocation?: PickupLocation;
|
|
31544
|
+
}
|
|
31545
|
+
interface RemoveDeliveryRegionRequest {
|
|
31546
|
+
/** Id of the PickupLocation to add to the delivery region */
|
|
31547
|
+
pickupLocationId: string;
|
|
31548
|
+
/** Id of the DeliveryRegion to add the PickupLocation to */
|
|
31549
|
+
deliveryRegionId: string;
|
|
31550
|
+
/** Revision of the PickupLocation */
|
|
31551
|
+
revision: string | null;
|
|
31552
|
+
}
|
|
31553
|
+
interface RemoveDeliveryRegionResponse {
|
|
31554
|
+
/** The updated PickupLocation */
|
|
31555
|
+
pickupLocation?: PickupLocation;
|
|
31556
|
+
}
|
|
31540
31557
|
interface BulkCreatePickupLocationRequest {
|
|
31541
31558
|
pickupLocations: PickupLocation[];
|
|
31542
31559
|
}
|
|
@@ -31701,6 +31718,7 @@ interface ConditionalRatesNonNullableFields$1 {
|
|
|
31701
31718
|
interface PickupLocationNonNullableFields {
|
|
31702
31719
|
address?: AddressNonNullableFields$2;
|
|
31703
31720
|
rates: ConditionalRatesNonNullableFields$1[];
|
|
31721
|
+
deliveryRegionIds: string[];
|
|
31704
31722
|
}
|
|
31705
31723
|
interface CreatePickupLocationResponseNonNullableFields {
|
|
31706
31724
|
pickupLocation?: PickupLocationNonNullableFields;
|
|
@@ -31714,6 +31732,12 @@ interface UpdatePickupLocationResponseNonNullableFields {
|
|
|
31714
31732
|
interface QueryPickupLocationResponseNonNullableFields {
|
|
31715
31733
|
pickupLocations: PickupLocationNonNullableFields[];
|
|
31716
31734
|
}
|
|
31735
|
+
interface AddDeliveryRegionResponseNonNullableFields {
|
|
31736
|
+
pickupLocation?: PickupLocationNonNullableFields;
|
|
31737
|
+
}
|
|
31738
|
+
interface RemoveDeliveryRegionResponseNonNullableFields {
|
|
31739
|
+
pickupLocation?: PickupLocationNonNullableFields;
|
|
31740
|
+
}
|
|
31717
31741
|
interface ApplicationErrorNonNullableFields$1 {
|
|
31718
31742
|
code: string;
|
|
31719
31743
|
description: string;
|
|
@@ -31733,73 +31757,16 @@ interface BulkUpdatePickupLocationResponseNonNullableFields {
|
|
|
31733
31757
|
interface BulkDeletePickupLocationResponseNonNullableFields {
|
|
31734
31758
|
errors: PickupLocationErrorNonNullableFields[];
|
|
31735
31759
|
}
|
|
31736
|
-
interface BaseEventMetadata$2 {
|
|
31737
|
-
/** App instance ID. */
|
|
31738
|
-
instanceId?: string | null;
|
|
31739
|
-
/** Event type. */
|
|
31740
|
-
eventType?: string;
|
|
31741
|
-
/** The identification type and identity data. */
|
|
31742
|
-
identity?: IdentificationData$2;
|
|
31743
|
-
}
|
|
31744
|
-
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
31745
|
-
/**
|
|
31746
|
-
* Unique event ID.
|
|
31747
|
-
* Allows clients to ignore duplicate webhooks.
|
|
31748
|
-
*/
|
|
31749
|
-
_id?: string;
|
|
31750
|
-
/**
|
|
31751
|
-
* Assumes actions are also always typed to an entity_type
|
|
31752
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
31753
|
-
*/
|
|
31754
|
-
entityFqdn?: string;
|
|
31755
|
-
/**
|
|
31756
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
31757
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
31758
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
31759
|
-
*/
|
|
31760
|
-
slug?: string;
|
|
31761
|
-
/** ID of the entity associated with the event. */
|
|
31762
|
-
entityId?: string;
|
|
31763
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
31764
|
-
eventTime?: Date;
|
|
31765
|
-
/**
|
|
31766
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
31767
|
-
* (for example, GDPR).
|
|
31768
|
-
*/
|
|
31769
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
31770
|
-
/** If present, indicates the action that triggered the event. */
|
|
31771
|
-
originatedFrom?: string | null;
|
|
31772
|
-
/**
|
|
31773
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
31774
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
31775
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
31776
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
31777
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
31778
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
31779
|
-
*/
|
|
31780
|
-
entityEventSequence?: string | null;
|
|
31781
|
-
}
|
|
31782
|
-
interface PickupLocationCreatedEnvelope {
|
|
31783
|
-
entity: PickupLocation;
|
|
31784
|
-
metadata: EventMetadata$2;
|
|
31785
|
-
}
|
|
31786
|
-
interface PickupLocationUpdatedEnvelope {
|
|
31787
|
-
entity: PickupLocation;
|
|
31788
|
-
metadata: EventMetadata$2;
|
|
31789
|
-
}
|
|
31790
|
-
interface PickupLocationDeletedEnvelope {
|
|
31791
|
-
entity: PickupLocation;
|
|
31792
|
-
metadata: EventMetadata$2;
|
|
31793
|
-
}
|
|
31794
31760
|
interface UpdatePickupLocation {
|
|
31795
31761
|
/**
|
|
31796
31762
|
* PickupLocation ID
|
|
31797
31763
|
* @readonly
|
|
31798
31764
|
*/
|
|
31799
31765
|
_id?: string | null;
|
|
31800
|
-
/**
|
|
31801
|
-
|
|
31802
|
-
|
|
31766
|
+
/**
|
|
31767
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
|
|
31768
|
+
* @readonly
|
|
31769
|
+
*/
|
|
31803
31770
|
revision?: string | null;
|
|
31804
31771
|
/**
|
|
31805
31772
|
* Represents the time this PickupLocation was created
|
|
@@ -31823,6 +31790,8 @@ interface UpdatePickupLocation {
|
|
|
31823
31790
|
active?: boolean | null;
|
|
31824
31791
|
/** at runtime for a given pickup input, up to one rate (price) should be returned in an option. If more than one rate is valid then we return the lowest one. */
|
|
31825
31792
|
rates?: ConditionalRates$1[];
|
|
31793
|
+
/** This pickup location is active for the following delivery regions. */
|
|
31794
|
+
deliveryRegionIds?: string[];
|
|
31826
31795
|
}
|
|
31827
31796
|
interface QueryCursorResult$2 {
|
|
31828
31797
|
cursors: Cursors$2;
|
|
@@ -31842,12 +31811,12 @@ interface PickupLocationsQueryBuilder {
|
|
|
31842
31811
|
* @param value - Value to compare against.
|
|
31843
31812
|
* @documentationMaturity preview
|
|
31844
31813
|
*/
|
|
31845
|
-
eq: (propertyName: '
|
|
31814
|
+
eq: (propertyName: '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city' | 'deliveryRegionIds', value: any) => PickupLocationsQueryBuilder;
|
|
31846
31815
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
31847
31816
|
* @param value - Value to compare against.
|
|
31848
31817
|
* @documentationMaturity preview
|
|
31849
31818
|
*/
|
|
31850
|
-
ne: (propertyName: '
|
|
31819
|
+
ne: (propertyName: '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city' | 'deliveryRegionIds', value: any) => PickupLocationsQueryBuilder;
|
|
31851
31820
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
31852
31821
|
* @param value - Value to compare against.
|
|
31853
31822
|
* @documentationMaturity preview
|
|
@@ -31872,24 +31841,21 @@ interface PickupLocationsQueryBuilder {
|
|
|
31872
31841
|
* @param string - String to compare against. Case-insensitive.
|
|
31873
31842
|
* @documentationMaturity preview
|
|
31874
31843
|
*/
|
|
31875
|
-
startsWith: (propertyName: '
|
|
31844
|
+
startsWith: (propertyName: 'name' | 'address.country' | 'address.subdivision' | 'address.city', value: string) => PickupLocationsQueryBuilder;
|
|
31876
31845
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
31877
31846
|
* @param values - List of values to compare against.
|
|
31878
31847
|
* @documentationMaturity preview
|
|
31879
31848
|
*/
|
|
31880
|
-
hasSome: (propertyName: '
|
|
31881
|
-
/** @
|
|
31882
|
-
|
|
31883
|
-
/** @documentationMaturity preview */
|
|
31884
|
-
exists: (propertyName: 'shippingRuleId' | '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city', value: boolean) => PickupLocationsQueryBuilder;
|
|
31885
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
31886
|
-
* @documentationMaturity preview
|
|
31887
|
-
*/
|
|
31888
|
-
ascending: (...propertyNames: Array<'shippingRuleId' | '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city'>) => PickupLocationsQueryBuilder;
|
|
31889
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
31849
|
+
hasSome: (propertyName: '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city' | 'deliveryRegionIds', value: any[]) => PickupLocationsQueryBuilder;
|
|
31850
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
31851
|
+
* @param values - List of values to compare against.
|
|
31890
31852
|
* @documentationMaturity preview
|
|
31891
31853
|
*/
|
|
31892
|
-
|
|
31854
|
+
hasAll: (propertyName: 'deliveryRegionIds', value: any[]) => PickupLocationsQueryBuilder;
|
|
31855
|
+
/** @documentationMaturity preview */
|
|
31856
|
+
in: (propertyName: '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city' | 'deliveryRegionIds', value: any) => PickupLocationsQueryBuilder;
|
|
31857
|
+
/** @documentationMaturity preview */
|
|
31858
|
+
exists: (propertyName: '_createdDate' | '_updatedDate' | 'name' | 'address.country' | 'address.subdivision' | 'address.city' | 'deliveryRegionIds', value: boolean) => PickupLocationsQueryBuilder;
|
|
31893
31859
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
31894
31860
|
* @documentationMaturity preview
|
|
31895
31861
|
*/
|
|
@@ -31901,6 +31867,14 @@ interface PickupLocationsQueryBuilder {
|
|
|
31901
31867
|
/** @documentationMaturity preview */
|
|
31902
31868
|
find: () => Promise<PickupLocationsQueryResult>;
|
|
31903
31869
|
}
|
|
31870
|
+
interface AddDeliveryRegionOptions {
|
|
31871
|
+
/** Revision of the PickupLocation */
|
|
31872
|
+
revision: string | null;
|
|
31873
|
+
}
|
|
31874
|
+
interface RemoveDeliveryRegionOptions {
|
|
31875
|
+
/** Revision of the PickupLocation */
|
|
31876
|
+
revision: string | null;
|
|
31877
|
+
}
|
|
31904
31878
|
|
|
31905
31879
|
declare function createPickupLocation$1(httpClient: HttpClient): CreatePickupLocationSignature;
|
|
31906
31880
|
interface CreatePickupLocationSignature {
|
|
@@ -31924,6 +31898,7 @@ declare function updatePickupLocation$1(httpClient: HttpClient): UpdatePickupLoc
|
|
|
31924
31898
|
interface UpdatePickupLocationSignature {
|
|
31925
31899
|
/**
|
|
31926
31900
|
* Update a PickupLocation
|
|
31901
|
+
* Delivery regions cannot be updated using this method, use AddDeliveryRegion and RemoveDeliveryRegion instead.
|
|
31927
31902
|
* @param - PickupLocation ID
|
|
31928
31903
|
* @returns The updated PickupLocation
|
|
31929
31904
|
*/
|
|
@@ -31944,6 +31919,24 @@ interface QueryPickupLocationSignature {
|
|
|
31944
31919
|
*/
|
|
31945
31920
|
(): PickupLocationsQueryBuilder;
|
|
31946
31921
|
}
|
|
31922
|
+
declare function addDeliveryRegion$1(httpClient: HttpClient): AddDeliveryRegionSignature;
|
|
31923
|
+
interface AddDeliveryRegionSignature {
|
|
31924
|
+
/**
|
|
31925
|
+
* Add a DeliveryRegion to a PickupLocation
|
|
31926
|
+
* @param - Id of the PickupLocation to add to the delivery region
|
|
31927
|
+
* @param - Id of the DeliveryRegion to add the PickupLocation to
|
|
31928
|
+
*/
|
|
31929
|
+
(pickupLocationId: string, deliveryRegionId: string, options: AddDeliveryRegionOptions): Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
|
|
31930
|
+
}
|
|
31931
|
+
declare function removeDeliveryRegion$1(httpClient: HttpClient): RemoveDeliveryRegionSignature;
|
|
31932
|
+
interface RemoveDeliveryRegionSignature {
|
|
31933
|
+
/**
|
|
31934
|
+
* Remove a DeliveryRegion from a PickupLocation
|
|
31935
|
+
* @param - Id of the PickupLocation to add to the delivery region
|
|
31936
|
+
* @param - Id of the DeliveryRegion to add the PickupLocation to
|
|
31937
|
+
*/
|
|
31938
|
+
(pickupLocationId: string, deliveryRegionId: string, options: RemoveDeliveryRegionOptions): Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
31939
|
+
}
|
|
31947
31940
|
declare function bulkCreatePickupLocation$1(httpClient: HttpClient): BulkCreatePickupLocationSignature;
|
|
31948
31941
|
interface BulkCreatePickupLocationSignature {
|
|
31949
31942
|
/**
|
|
@@ -31965,51 +31958,22 @@ interface BulkDeletePickupLocationSignature {
|
|
|
31965
31958
|
*/
|
|
31966
31959
|
(pickupLocationIds: string[]): Promise<BulkDeletePickupLocationResponse & BulkDeletePickupLocationResponseNonNullableFields>;
|
|
31967
31960
|
}
|
|
31968
|
-
declare const onPickupLocationCreated$1: EventDefinition$h<PickupLocationCreatedEnvelope, "wix.ecom.v1.pickup_location_created">;
|
|
31969
|
-
declare const onPickupLocationUpdated$1: EventDefinition$h<PickupLocationUpdatedEnvelope, "wix.ecom.v1.pickup_location_updated">;
|
|
31970
|
-
declare const onPickupLocationDeleted$1: EventDefinition$h<PickupLocationDeletedEnvelope, "wix.ecom.v1.pickup_location_deleted">;
|
|
31971
|
-
|
|
31972
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
31973
|
-
__type: 'event-definition';
|
|
31974
|
-
type: Type;
|
|
31975
|
-
isDomainEvent?: boolean;
|
|
31976
|
-
transformations?: (envelope: unknown) => Payload;
|
|
31977
|
-
__payload: Payload;
|
|
31978
|
-
};
|
|
31979
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
31980
|
-
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
31981
|
-
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
31982
|
-
|
|
31983
|
-
declare global {
|
|
31984
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
31985
|
-
interface SymbolConstructor {
|
|
31986
|
-
readonly observable: symbol;
|
|
31987
|
-
}
|
|
31988
|
-
}
|
|
31989
|
-
|
|
31990
|
-
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
31991
31961
|
|
|
31992
31962
|
declare const createPickupLocation: MaybeContext<BuildRESTFunction<typeof createPickupLocation$1> & typeof createPickupLocation$1>;
|
|
31993
31963
|
declare const getPickupLocation: MaybeContext<BuildRESTFunction<typeof getPickupLocation$1> & typeof getPickupLocation$1>;
|
|
31994
31964
|
declare const updatePickupLocation: MaybeContext<BuildRESTFunction<typeof updatePickupLocation$1> & typeof updatePickupLocation$1>;
|
|
31995
31965
|
declare const deletePickupLocation: MaybeContext<BuildRESTFunction<typeof deletePickupLocation$1> & typeof deletePickupLocation$1>;
|
|
31996
31966
|
declare const queryPickupLocation: MaybeContext<BuildRESTFunction<typeof queryPickupLocation$1> & typeof queryPickupLocation$1>;
|
|
31967
|
+
declare const addDeliveryRegion: MaybeContext<BuildRESTFunction<typeof addDeliveryRegion$1> & typeof addDeliveryRegion$1>;
|
|
31968
|
+
declare const removeDeliveryRegion: MaybeContext<BuildRESTFunction<typeof removeDeliveryRegion$1> & typeof removeDeliveryRegion$1>;
|
|
31997
31969
|
declare const bulkCreatePickupLocation: MaybeContext<BuildRESTFunction<typeof bulkCreatePickupLocation$1> & typeof bulkCreatePickupLocation$1>;
|
|
31998
31970
|
declare const bulkUpdatePickupLocation: MaybeContext<BuildRESTFunction<typeof bulkUpdatePickupLocation$1> & typeof bulkUpdatePickupLocation$1>;
|
|
31999
31971
|
declare const bulkDeletePickupLocation: MaybeContext<BuildRESTFunction<typeof bulkDeletePickupLocation$1> & typeof bulkDeletePickupLocation$1>;
|
|
32000
31972
|
|
|
32001
|
-
type
|
|
32002
|
-
|
|
32003
|
-
|
|
32004
|
-
|
|
32005
|
-
type _publicOnPickupLocationUpdatedType = typeof onPickupLocationUpdated$1;
|
|
32006
|
-
/** */
|
|
32007
|
-
declare const onPickupLocationUpdated: ReturnType<typeof createEventModule$2<_publicOnPickupLocationUpdatedType>>;
|
|
32008
|
-
|
|
32009
|
-
type _publicOnPickupLocationDeletedType = typeof onPickupLocationDeleted$1;
|
|
32010
|
-
/** */
|
|
32011
|
-
declare const onPickupLocationDeleted: ReturnType<typeof createEventModule$2<_publicOnPickupLocationDeletedType>>;
|
|
32012
|
-
|
|
31973
|
+
type context$4_AddDeliveryRegionOptions = AddDeliveryRegionOptions;
|
|
31974
|
+
type context$4_AddDeliveryRegionRequest = AddDeliveryRegionRequest;
|
|
31975
|
+
type context$4_AddDeliveryRegionResponse = AddDeliveryRegionResponse;
|
|
31976
|
+
type context$4_AddDeliveryRegionResponseNonNullableFields = AddDeliveryRegionResponseNonNullableFields;
|
|
32013
31977
|
type context$4_AddressStreetOneOf = AddressStreetOneOf;
|
|
32014
31978
|
type context$4_BulkCreatePickupLocationRequest = BulkCreatePickupLocationRequest;
|
|
32015
31979
|
type context$4_BulkCreatePickupLocationResponse = BulkCreatePickupLocationResponse;
|
|
@@ -32032,11 +31996,8 @@ type context$4_GetPickupLocationResponse = GetPickupLocationResponse;
|
|
|
32032
31996
|
type context$4_GetPickupLocationResponseNonNullableFields = GetPickupLocationResponseNonNullableFields;
|
|
32033
31997
|
type context$4_Paging = Paging;
|
|
32034
31998
|
type context$4_PickupLocation = PickupLocation;
|
|
32035
|
-
type context$4_PickupLocationCreatedEnvelope = PickupLocationCreatedEnvelope;
|
|
32036
|
-
type context$4_PickupLocationDeletedEnvelope = PickupLocationDeletedEnvelope;
|
|
32037
31999
|
type context$4_PickupLocationError = PickupLocationError;
|
|
32038
32000
|
type context$4_PickupLocationNonNullableFields = PickupLocationNonNullableFields;
|
|
32039
|
-
type context$4_PickupLocationUpdatedEnvelope = PickupLocationUpdatedEnvelope;
|
|
32040
32001
|
type context$4_PickupLocationsQueryBuilder = PickupLocationsQueryBuilder;
|
|
32041
32002
|
type context$4_PickupLocationsQueryResult = PickupLocationsQueryResult;
|
|
32042
32003
|
type context$4_QueryPickupLocationRequest = QueryPickupLocationRequest;
|
|
@@ -32044,26 +32005,26 @@ type context$4_QueryPickupLocationResponse = QueryPickupLocationResponse;
|
|
|
32044
32005
|
type context$4_QueryPickupLocationResponseNonNullableFields = QueryPickupLocationResponseNonNullableFields;
|
|
32045
32006
|
type context$4_QueryV2 = QueryV2;
|
|
32046
32007
|
type context$4_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
32008
|
+
type context$4_RemoveDeliveryRegionOptions = RemoveDeliveryRegionOptions;
|
|
32009
|
+
type context$4_RemoveDeliveryRegionRequest = RemoveDeliveryRegionRequest;
|
|
32010
|
+
type context$4_RemoveDeliveryRegionResponse = RemoveDeliveryRegionResponse;
|
|
32011
|
+
type context$4_RemoveDeliveryRegionResponseNonNullableFields = RemoveDeliveryRegionResponseNonNullableFields;
|
|
32047
32012
|
type context$4_UpdatePickupLocation = UpdatePickupLocation;
|
|
32048
32013
|
type context$4_UpdatePickupLocationRequest = UpdatePickupLocationRequest;
|
|
32049
32014
|
type context$4_UpdatePickupLocationResponse = UpdatePickupLocationResponse;
|
|
32050
32015
|
type context$4_UpdatePickupLocationResponseNonNullableFields = UpdatePickupLocationResponseNonNullableFields;
|
|
32051
|
-
|
|
32052
|
-
type context$4__publicOnPickupLocationDeletedType = _publicOnPickupLocationDeletedType;
|
|
32053
|
-
type context$4__publicOnPickupLocationUpdatedType = _publicOnPickupLocationUpdatedType;
|
|
32016
|
+
declare const context$4_addDeliveryRegion: typeof addDeliveryRegion;
|
|
32054
32017
|
declare const context$4_bulkCreatePickupLocation: typeof bulkCreatePickupLocation;
|
|
32055
32018
|
declare const context$4_bulkDeletePickupLocation: typeof bulkDeletePickupLocation;
|
|
32056
32019
|
declare const context$4_bulkUpdatePickupLocation: typeof bulkUpdatePickupLocation;
|
|
32057
32020
|
declare const context$4_createPickupLocation: typeof createPickupLocation;
|
|
32058
32021
|
declare const context$4_deletePickupLocation: typeof deletePickupLocation;
|
|
32059
32022
|
declare const context$4_getPickupLocation: typeof getPickupLocation;
|
|
32060
|
-
declare const context$4_onPickupLocationCreated: typeof onPickupLocationCreated;
|
|
32061
|
-
declare const context$4_onPickupLocationDeleted: typeof onPickupLocationDeleted;
|
|
32062
|
-
declare const context$4_onPickupLocationUpdated: typeof onPickupLocationUpdated;
|
|
32063
32023
|
declare const context$4_queryPickupLocation: typeof queryPickupLocation;
|
|
32024
|
+
declare const context$4_removeDeliveryRegion: typeof removeDeliveryRegion;
|
|
32064
32025
|
declare const context$4_updatePickupLocation: typeof updatePickupLocation;
|
|
32065
32026
|
declare namespace context$4 {
|
|
32066
|
-
export { type ActionEvent$2 as ActionEvent, type
|
|
32027
|
+
export { type ActionEvent$2 as ActionEvent, type context$4_AddDeliveryRegionOptions as AddDeliveryRegionOptions, type context$4_AddDeliveryRegionRequest as AddDeliveryRegionRequest, type context$4_AddDeliveryRegionResponse as AddDeliveryRegionResponse, type context$4_AddDeliveryRegionResponseNonNullableFields as AddDeliveryRegionResponseNonNullableFields, type Address$2 as Address, type context$4_AddressStreetOneOf as AddressStreetOneOf, type ApplicationError$1 as ApplicationError, type context$4_BulkCreatePickupLocationRequest as BulkCreatePickupLocationRequest, type context$4_BulkCreatePickupLocationResponse as BulkCreatePickupLocationResponse, type context$4_BulkCreatePickupLocationResponseNonNullableFields as BulkCreatePickupLocationResponseNonNullableFields, type context$4_BulkDeletePickupLocationRequest as BulkDeletePickupLocationRequest, type context$4_BulkDeletePickupLocationResponse as BulkDeletePickupLocationResponse, type context$4_BulkDeletePickupLocationResponseNonNullableFields as BulkDeletePickupLocationResponseNonNullableFields, type context$4_BulkUpdatePickupLocationRequest as BulkUpdatePickupLocationRequest, type context$4_BulkUpdatePickupLocationResponse as BulkUpdatePickupLocationResponse, type context$4_BulkUpdatePickupLocationResponseNonNullableFields as BulkUpdatePickupLocationResponseNonNullableFields, type Condition$1 as Condition, ConditionType$1 as ConditionType, type ConditionalRates$1 as ConditionalRates, type context$4_CreatePickupLocationRequest as CreatePickupLocationRequest, type context$4_CreatePickupLocationResponse as CreatePickupLocationResponse, type context$4_CreatePickupLocationResponseNonNullableFields as CreatePickupLocationResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$2 as Cursors, type context$4_DeletePickupLocationRequest as DeletePickupLocationRequest, type context$4_DeletePickupLocationResponse as DeletePickupLocationResponse, type context$4_DiffmatokyPayload as DiffmatokyPayload, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$4_ErrorInformation as ErrorInformation, type context$4_GetPickupLocationRequest as GetPickupLocationRequest, type context$4_GetPickupLocationResponse as GetPickupLocationResponse, type context$4_GetPickupLocationResponseNonNullableFields as GetPickupLocationResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, LogicalOperator$1 as LogicalOperator, type MessageEnvelope$2 as MessageEnvelope, type context$4_Paging as Paging, type context$4_PickupLocation as PickupLocation, type context$4_PickupLocationError as PickupLocationError, type context$4_PickupLocationNonNullableFields as PickupLocationNonNullableFields, type context$4_PickupLocationsQueryBuilder as PickupLocationsQueryBuilder, type context$4_PickupLocationsQueryResult as PickupLocationsQueryResult, type context$4_QueryPickupLocationRequest as QueryPickupLocationRequest, type context$4_QueryPickupLocationResponse as QueryPickupLocationResponse, type context$4_QueryPickupLocationResponseNonNullableFields as QueryPickupLocationResponseNonNullableFields, type context$4_QueryV2 as QueryV2, type context$4_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context$4_RemoveDeliveryRegionOptions as RemoveDeliveryRegionOptions, type context$4_RemoveDeliveryRegionRequest as RemoveDeliveryRegionRequest, type context$4_RemoveDeliveryRegionResponse as RemoveDeliveryRegionResponse, type context$4_RemoveDeliveryRegionResponseNonNullableFields as RemoveDeliveryRegionResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type StreetAddress$2 as StreetAddress, type context$4_UpdatePickupLocation as UpdatePickupLocation, type context$4_UpdatePickupLocationRequest as UpdatePickupLocationRequest, type context$4_UpdatePickupLocationResponse as UpdatePickupLocationResponse, type context$4_UpdatePickupLocationResponseNonNullableFields as UpdatePickupLocationResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, context$4_addDeliveryRegion as addDeliveryRegion, context$4_bulkCreatePickupLocation as bulkCreatePickupLocation, context$4_bulkDeletePickupLocation as bulkDeletePickupLocation, context$4_bulkUpdatePickupLocation as bulkUpdatePickupLocation, context$4_createPickupLocation as createPickupLocation, context$4_deletePickupLocation as deletePickupLocation, context$4_getPickupLocation as getPickupLocation, context$4_queryPickupLocation as queryPickupLocation, context$4_removeDeliveryRegion as removeDeliveryRegion, context$4_updatePickupLocation as updatePickupLocation };
|
|
32067
32028
|
}
|
|
32068
32029
|
|
|
32069
32030
|
interface ShippingOption$1 {
|
|
@@ -32623,9 +32584,9 @@ interface UpdateExtendedFieldsSignature$1 {
|
|
|
32623
32584
|
*/
|
|
32624
32585
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions$1): Promise<UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
32625
32586
|
}
|
|
32626
|
-
declare const onShippingOptionCreated$1: EventDefinition$
|
|
32627
|
-
declare const onShippingOptionUpdated$1: EventDefinition$
|
|
32628
|
-
declare const onShippingOptionDeleted$1: EventDefinition$
|
|
32587
|
+
declare const onShippingOptionCreated$1: EventDefinition$g<ShippingOptionCreatedEnvelope, "wix.ecom.v1.shipping_option_created">;
|
|
32588
|
+
declare const onShippingOptionUpdated$1: EventDefinition$g<ShippingOptionUpdatedEnvelope, "wix.ecom.v1.shipping_option_updated">;
|
|
32589
|
+
declare const onShippingOptionDeleted$1: EventDefinition$g<ShippingOptionDeletedEnvelope, "wix.ecom.v1.shipping_option_deleted">;
|
|
32629
32590
|
|
|
32630
32591
|
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
32631
32592
|
__type: 'event-definition';
|
|
@@ -33370,9 +33331,9 @@ interface UpdateExtendedFieldsSignature {
|
|
|
33370
33331
|
*/
|
|
33371
33332
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
33372
33333
|
}
|
|
33373
|
-
declare const onShippoConfigurationCreated$1: EventDefinition$
|
|
33374
|
-
declare const onShippoConfigurationUpdated$1: EventDefinition$
|
|
33375
|
-
declare const onShippoConfigurationDeleted$1: EventDefinition$
|
|
33334
|
+
declare const onShippoConfigurationCreated$1: EventDefinition$g<ShippoConfigurationCreatedEnvelope, "wix.ecom.v1.shippo_configuration_created">;
|
|
33335
|
+
declare const onShippoConfigurationUpdated$1: EventDefinition$g<ShippoConfigurationUpdatedEnvelope, "wix.ecom.v1.shippo_configuration_updated">;
|
|
33336
|
+
declare const onShippoConfigurationDeleted$1: EventDefinition$g<ShippoConfigurationDeletedEnvelope, "wix.ecom.v1.shippo_configuration_deleted">;
|
|
33376
33337
|
|
|
33377
33338
|
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
33378
33339
|
__type: 'event-definition';
|