@wix/ecom 1.0.660 → 1.0.662
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.
|
@@ -488,27 +488,27 @@ declare class GenericShippingRatesWixError extends Error {
|
|
|
488
488
|
static readonly __type = "wix_spi_error";
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
type ServicePluginMethodInput = {
|
|
491
|
+
type ServicePluginMethodInput$4 = {
|
|
492
492
|
request: any;
|
|
493
493
|
metadata: any;
|
|
494
494
|
};
|
|
495
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
496
|
-
type ServicePluginMethodMetadata = {
|
|
495
|
+
type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
|
|
496
|
+
type ServicePluginMethodMetadata$4 = {
|
|
497
497
|
name: string;
|
|
498
498
|
primaryHttpMappingPath: string;
|
|
499
499
|
transformations: {
|
|
500
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
500
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
|
|
501
501
|
toREST: (...args: unknown[]) => unknown;
|
|
502
502
|
};
|
|
503
503
|
};
|
|
504
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
504
|
+
type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
|
|
505
505
|
__type: 'service-plugin-definition';
|
|
506
506
|
componentType: string;
|
|
507
|
-
methods: ServicePluginMethodMetadata[];
|
|
507
|
+
methods: ServicePluginMethodMetadata$4[];
|
|
508
508
|
__contract: Contract;
|
|
509
509
|
};
|
|
510
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
511
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
510
|
+
declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
|
|
511
|
+
type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
|
|
512
512
|
|
|
513
513
|
declare global {
|
|
514
514
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -517,15 +517,9 @@ declare global {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
|
|
521
|
-
request: GetShippingRatesRequest;
|
|
522
|
-
metadata: Context$4;
|
|
523
|
-
}
|
|
524
|
-
declare const provideHandlers$9: ServicePluginDefinition<{
|
|
525
|
-
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
526
|
-
}>;
|
|
520
|
+
declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
|
|
527
521
|
|
|
528
|
-
declare const provideHandlers$
|
|
522
|
+
declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$4<typeof publicProvideHandlers>>;
|
|
529
523
|
|
|
530
524
|
type context$4_AdditionalCharge = AdditionalCharge;
|
|
531
525
|
type context$4_AddressStreetOneOf = AddressStreetOneOf;
|
|
@@ -563,7 +557,7 @@ type context$4_Subdivision = Subdivision;
|
|
|
563
557
|
type context$4_SubdivisionType = SubdivisionType;
|
|
564
558
|
declare const context$4_SubdivisionType: typeof SubdivisionType;
|
|
565
559
|
declare namespace context$4 {
|
|
566
|
-
export { type context$4_AdditionalCharge as AdditionalCharge, type Address$3 as Address, type AddressLocation$3 as AddressLocation, type context$4_AddressStreetOneOf as AddressStreetOneOf, type context$4_ApplicationError as ApplicationError, type CatalogReference$4 as CatalogReference, ChargeType$1 as ChargeType, type context$4_Column as Column, type Context$4 as Context, type context$4_DashboardTable as DashboardTable, type DeliveryLogistics$2 as DeliveryLogistics, type context$4_DeliveryPreferences as DeliveryPreferences, type DeliveryTimeSlot$1 as DeliveryTimeSlot, type context$4_FieldViolation as FieldViolation, type FullAddressContactDetails$3 as FullAddressContactDetails, type context$4_GenericShippingRatesError as GenericShippingRatesError, context$4_GenericShippingRatesWixError as GenericShippingRatesWixError, type context$4_GetDashboardTablesRequest as GetDashboardTablesRequest, type context$4_GetDashboardTablesResponse as GetDashboardTablesResponse, type context$4_GetShippingRatesRequest as GetShippingRatesRequest, type context$4_GetShippingRatesResponse as GetShippingRatesResponse, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, IdentityType$4 as IdentityType, type context$4_InvalidAddressError as InvalidAddressError, context$4_InvalidAddressWixError as InvalidAddressWixError, type context$4_InvalidPostalCodeError as InvalidPostalCodeError, context$4_InvalidPostalCodeWixError as InvalidPostalCodeWixError, type context$4_MissingPostalCodeError as MissingPostalCodeError, context$4_MissingPostalCodeWixError as MissingPostalCodeWixError, type context$4_PartialOption as PartialOption, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$2 as PickupDetails, PickupMethod$2 as PickupMethod, type context$4_ProductItem as ProductItem, type context$4_RegionDashboardTables as RegionDashboardTables, type context$4_Row as Row, context$4_RuleType as RuleType, type context$4_ShippingOption as ShippingOption, type ShippingPrice$1 as ShippingPrice, type context$4_ShippingRatesConfig as ShippingRatesConfig, type context$4_StandardDetails as StandardDetails, type StreetAddress$3 as StreetAddress, type context$4_Subdivision as Subdivision, context$4_SubdivisionType as SubdivisionType, type VatId$3 as VatId, VatType$3 as VatType, WeightUnit$2 as WeightUnit, provideHandlers$
|
|
560
|
+
export { type context$4_AdditionalCharge as AdditionalCharge, type Address$3 as Address, type AddressLocation$3 as AddressLocation, type context$4_AddressStreetOneOf as AddressStreetOneOf, type context$4_ApplicationError as ApplicationError, type CatalogReference$4 as CatalogReference, ChargeType$1 as ChargeType, type context$4_Column as Column, type Context$4 as Context, type context$4_DashboardTable as DashboardTable, type DeliveryLogistics$2 as DeliveryLogistics, type context$4_DeliveryPreferences as DeliveryPreferences, type DeliveryTimeSlot$1 as DeliveryTimeSlot, type context$4_FieldViolation as FieldViolation, type FullAddressContactDetails$3 as FullAddressContactDetails, type context$4_GenericShippingRatesError as GenericShippingRatesError, context$4_GenericShippingRatesWixError as GenericShippingRatesWixError, type context$4_GetDashboardTablesRequest as GetDashboardTablesRequest, type context$4_GetDashboardTablesResponse as GetDashboardTablesResponse, type context$4_GetShippingRatesRequest as GetShippingRatesRequest, type context$4_GetShippingRatesResponse as GetShippingRatesResponse, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, IdentityType$4 as IdentityType, type context$4_InvalidAddressError as InvalidAddressError, context$4_InvalidAddressWixError as InvalidAddressWixError, type context$4_InvalidPostalCodeError as InvalidPostalCodeError, context$4_InvalidPostalCodeWixError as InvalidPostalCodeWixError, type context$4_MissingPostalCodeError as MissingPostalCodeError, context$4_MissingPostalCodeWixError as MissingPostalCodeWixError, type context$4_PartialOption as PartialOption, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$2 as PickupDetails, PickupMethod$2 as PickupMethod, type context$4_ProductItem as ProductItem, type context$4_RegionDashboardTables as RegionDashboardTables, type context$4_Row as Row, context$4_RuleType as RuleType, type context$4_ShippingOption as ShippingOption, type ShippingPrice$1 as ShippingPrice, type context$4_ShippingRatesConfig as ShippingRatesConfig, type context$4_StandardDetails as StandardDetails, type StreetAddress$3 as StreetAddress, type context$4_Subdivision as Subdivision, context$4_SubdivisionType as SubdivisionType, type VatId$3 as VatId, VatType$3 as VatType, WeightUnit$2 as WeightUnit, provideHandlers$4 as provideHandlers };
|
|
567
561
|
}
|
|
568
562
|
|
|
569
563
|
interface CalculateAdditionalFeesRequest {
|
|
@@ -944,15 +938,38 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
944
938
|
appId?: string;
|
|
945
939
|
}
|
|
946
940
|
|
|
947
|
-
|
|
948
|
-
request:
|
|
949
|
-
metadata:
|
|
941
|
+
type ServicePluginMethodInput$3 = {
|
|
942
|
+
request: any;
|
|
943
|
+
metadata: any;
|
|
944
|
+
};
|
|
945
|
+
type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
|
|
946
|
+
type ServicePluginMethodMetadata$3 = {
|
|
947
|
+
name: string;
|
|
948
|
+
primaryHttpMappingPath: string;
|
|
949
|
+
transformations: {
|
|
950
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
|
|
951
|
+
toREST: (...args: unknown[]) => unknown;
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
|
|
955
|
+
__type: 'service-plugin-definition';
|
|
956
|
+
componentType: string;
|
|
957
|
+
methods: ServicePluginMethodMetadata$3[];
|
|
958
|
+
__contract: Contract;
|
|
959
|
+
};
|
|
960
|
+
declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
|
|
961
|
+
type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
|
|
962
|
+
|
|
963
|
+
declare global {
|
|
964
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
965
|
+
interface SymbolConstructor {
|
|
966
|
+
readonly observable: symbol;
|
|
967
|
+
}
|
|
950
968
|
}
|
|
951
|
-
declare const provideHandlers$7: ServicePluginDefinition<{
|
|
952
|
-
calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
|
|
953
|
-
}>;
|
|
954
969
|
|
|
955
|
-
declare
|
|
970
|
+
declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
|
|
971
|
+
|
|
972
|
+
declare const provideHandlers$3: ReturnType<typeof createServicePluginModule$3<typeof publicProvideHandlers>>;
|
|
956
973
|
|
|
957
974
|
type context$3_AdditionalFeesSPIConfig = AdditionalFeesSPIConfig;
|
|
958
975
|
type context$3_CalculateAdditionalFeesRequest = CalculateAdditionalFeesRequest;
|
|
@@ -962,7 +979,7 @@ declare const context$3_ChargeType: typeof ChargeType;
|
|
|
962
979
|
type context$3_SelectedCarrierServiceOptionOtherCharge = SelectedCarrierServiceOptionOtherCharge;
|
|
963
980
|
type context$3_TaxDetails = TaxDetails;
|
|
964
981
|
declare namespace context$3 {
|
|
965
|
-
export { type AdditionalFee$1 as AdditionalFee, type context$3_AdditionalFeesSPIConfig as AdditionalFeesSPIConfig, type Address$2 as Address, type AddressLocation$2 as AddressLocation, type AppliedDiscount$2 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$2 as AppliedDiscountDiscountSourceOneOf, type BuyerDetails$1 as BuyerDetails, type context$3_CalculateAdditionalFeesRequest as CalculateAdditionalFeesRequest, type context$3_CalculateAdditionalFeesResponse as CalculateAdditionalFeesResponse, type CatalogReference$3 as CatalogReference, context$3_ChargeType as ChargeType, type Context$3 as Context, type Coupon$2 as Coupon, type DeliveryLogistics$1 as DeliveryLogistics, type DiscountRule$2 as DiscountRule, type DiscountRuleName$2 as DiscountRuleName, DiscountType$2 as DiscountType, type FullAddressContactDetails$2 as FullAddressContactDetails, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, IdentityType$3 as IdentityType, type LineItem$2 as LineItem, type MerchantDiscount$2 as MerchantDiscount, type PhysicalProperties$2 as PhysicalProperties, type PickupDetails$1 as PickupDetails, PickupMethod$1 as PickupMethod, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type context$3_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type ShippingInformation$1 as ShippingInformation, type StreetAddress$2 as StreetAddress, type context$3_TaxDetails as TaxDetails, type VatId$2 as VatId, VatType$2 as VatType, provideHandlers$
|
|
982
|
+
export { type AdditionalFee$1 as AdditionalFee, type context$3_AdditionalFeesSPIConfig as AdditionalFeesSPIConfig, type Address$2 as Address, type AddressLocation$2 as AddressLocation, type AppliedDiscount$2 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$2 as AppliedDiscountDiscountSourceOneOf, type BuyerDetails$1 as BuyerDetails, type context$3_CalculateAdditionalFeesRequest as CalculateAdditionalFeesRequest, type context$3_CalculateAdditionalFeesResponse as CalculateAdditionalFeesResponse, type CatalogReference$3 as CatalogReference, context$3_ChargeType as ChargeType, type Context$3 as Context, type Coupon$2 as Coupon, type DeliveryLogistics$1 as DeliveryLogistics, type DiscountRule$2 as DiscountRule, type DiscountRuleName$2 as DiscountRuleName, DiscountType$2 as DiscountType, type FullAddressContactDetails$2 as FullAddressContactDetails, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, IdentityType$3 as IdentityType, type LineItem$2 as LineItem, type MerchantDiscount$2 as MerchantDiscount, type PhysicalProperties$2 as PhysicalProperties, type PickupDetails$1 as PickupDetails, PickupMethod$1 as PickupMethod, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type context$3_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type ShippingInformation$1 as ShippingInformation, type StreetAddress$2 as StreetAddress, type context$3_TaxDetails as TaxDetails, type VatId$2 as VatId, VatType$2 as VatType, provideHandlers$3 as provideHandlers };
|
|
966
983
|
}
|
|
967
984
|
|
|
968
985
|
interface CustomTrigger {
|
|
@@ -1103,20 +1120,38 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1103
1120
|
appId?: string;
|
|
1104
1121
|
}
|
|
1105
1122
|
|
|
1106
|
-
|
|
1107
|
-
request:
|
|
1108
|
-
metadata:
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1123
|
+
type ServicePluginMethodInput$2 = {
|
|
1124
|
+
request: any;
|
|
1125
|
+
metadata: any;
|
|
1126
|
+
};
|
|
1127
|
+
type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
|
|
1128
|
+
type ServicePluginMethodMetadata$2 = {
|
|
1129
|
+
name: string;
|
|
1130
|
+
primaryHttpMappingPath: string;
|
|
1131
|
+
transformations: {
|
|
1132
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
|
|
1133
|
+
toREST: (...args: unknown[]) => unknown;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
|
|
1137
|
+
__type: 'service-plugin-definition';
|
|
1138
|
+
componentType: string;
|
|
1139
|
+
methods: ServicePluginMethodMetadata$2[];
|
|
1140
|
+
__contract: Contract;
|
|
1141
|
+
};
|
|
1142
|
+
declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
|
|
1143
|
+
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
|
|
1144
|
+
|
|
1145
|
+
declare global {
|
|
1146
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1147
|
+
interface SymbolConstructor {
|
|
1148
|
+
readonly observable: symbol;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
|
|
1118
1153
|
|
|
1119
|
-
declare const provideHandlers$
|
|
1154
|
+
declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$2<typeof publicProvideHandlers>>;
|
|
1120
1155
|
|
|
1121
1156
|
type context$2_CustomTrigger = CustomTrigger;
|
|
1122
1157
|
type context$2_CustomTriggerConfig = CustomTriggerConfig;
|
|
@@ -1128,7 +1163,7 @@ type context$2_ListTriggersResponse = ListTriggersResponse;
|
|
|
1128
1163
|
type context$2_ListTriggersResponseCustomTrigger = ListTriggersResponseCustomTrigger;
|
|
1129
1164
|
type context$2_TriggerToFilterBy = TriggerToFilterBy;
|
|
1130
1165
|
declare namespace context$2 {
|
|
1131
|
-
export { type CatalogReference$2 as CatalogReference, type Context$2 as Context, type context$2_CustomTrigger as CustomTrigger, type context$2_CustomTriggerConfig as CustomTriggerConfig, type context$2_EligibleTrigger as EligibleTrigger, type context$2_GetEligibleTriggersRequest as GetEligibleTriggersRequest, type context$2_GetEligibleTriggersResponse as GetEligibleTriggersResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type LineItem$1 as LineItem, type context$2_ListTriggersRequest as ListTriggersRequest, type context$2_ListTriggersResponse as ListTriggersResponse, type context$2_ListTriggersResponseCustomTrigger as ListTriggersResponseCustomTrigger, type context$2_TriggerToFilterBy as TriggerToFilterBy, provideHandlers$
|
|
1166
|
+
export { type CatalogReference$2 as CatalogReference, type Context$2 as Context, type context$2_CustomTrigger as CustomTrigger, type context$2_CustomTriggerConfig as CustomTriggerConfig, type context$2_EligibleTrigger as EligibleTrigger, type context$2_GetEligibleTriggersRequest as GetEligibleTriggersRequest, type context$2_GetEligibleTriggersResponse as GetEligibleTriggersResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type LineItem$1 as LineItem, type context$2_ListTriggersRequest as ListTriggersRequest, type context$2_ListTriggersResponse as ListTriggersResponse, type context$2_ListTriggersResponseCustomTrigger as ListTriggersResponseCustomTrigger, type context$2_TriggerToFilterBy as TriggerToFilterBy, provideHandlers$2 as provideHandlers };
|
|
1132
1167
|
}
|
|
1133
1168
|
|
|
1134
1169
|
interface GetPaymentSettingsRequest {
|
|
@@ -2500,15 +2535,38 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2500
2535
|
appId?: string;
|
|
2501
2536
|
}
|
|
2502
2537
|
|
|
2503
|
-
|
|
2504
|
-
request:
|
|
2505
|
-
metadata:
|
|
2538
|
+
type ServicePluginMethodInput$1 = {
|
|
2539
|
+
request: any;
|
|
2540
|
+
metadata: any;
|
|
2541
|
+
};
|
|
2542
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
2543
|
+
type ServicePluginMethodMetadata$1 = {
|
|
2544
|
+
name: string;
|
|
2545
|
+
primaryHttpMappingPath: string;
|
|
2546
|
+
transformations: {
|
|
2547
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
2548
|
+
toREST: (...args: unknown[]) => unknown;
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
2552
|
+
__type: 'service-plugin-definition';
|
|
2553
|
+
componentType: string;
|
|
2554
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
2555
|
+
__contract: Contract;
|
|
2556
|
+
};
|
|
2557
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
2558
|
+
type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
|
|
2559
|
+
|
|
2560
|
+
declare global {
|
|
2561
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2562
|
+
interface SymbolConstructor {
|
|
2563
|
+
readonly observable: symbol;
|
|
2564
|
+
}
|
|
2506
2565
|
}
|
|
2507
|
-
declare const provideHandlers$3: ServicePluginDefinition<{
|
|
2508
|
-
getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
|
|
2509
|
-
}>;
|
|
2510
2566
|
|
|
2511
|
-
declare
|
|
2567
|
+
declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
|
|
2568
|
+
|
|
2569
|
+
declare const provideHandlers$1: ReturnType<typeof createServicePluginModule$1<typeof publicProvideHandlers>>;
|
|
2512
2570
|
|
|
2513
2571
|
type context$1_Activity = Activity;
|
|
2514
2572
|
type context$1_ActivityContentOneOf = ActivityContentOneOf;
|
|
@@ -2600,7 +2658,7 @@ type context$1_TaxSummary = TaxSummary;
|
|
|
2600
2658
|
type context$1_TotalPriceChange = TotalPriceChange;
|
|
2601
2659
|
type context$1_TranslatedValue = TranslatedValue;
|
|
2602
2660
|
declare namespace context$1 {
|
|
2603
|
-
export { type context$1_Activity as Activity, type context$1_ActivityContentOneOf as ActivityContentOneOf, context$1_ActivityType as ActivityType, type context$1_AdditionalFee as AdditionalFee, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, context$1_AttributionSource as AttributionSource, type context$1_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type context$1_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type context$1_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type context$1_Balance as Balance, type context$1_BalanceSummary as BalanceSummary, type context$1_BuyerInfo as BuyerInfo, type context$1_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type CatalogReference$1 as CatalogReference, type context$1_ChannelInfo as ChannelInfo, context$1_ChannelType as ChannelType, type context$1_Color as Color, type Context$1 as Context, type Coupon$1 as Coupon, type context$1_CreatedBy as CreatedBy, type context$1_CreatedByStringOneOf as CreatedByStringOneOf, type context$1_CustomActivity as CustomActivity, type CustomField$1 as CustomField, type context$1_DeliveryLogistics as DeliveryLogistics, type context$1_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type context$1_DeliveryTimeSlot as DeliveryTimeSlot, type context$1_DescriptionLine as DescriptionLine, type context$1_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type context$1_DescriptionLineName as DescriptionLineName, context$1_DescriptionLineType as DescriptionLineType, type context$1_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type context$1_DigitalFile as DigitalFile, context$1_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type context$1_DraftOrderChangesApplied as DraftOrderChangesApplied, type ExtendedFields$1 as ExtendedFields, context$1_FulfillmentStatus as FulfillmentStatus, type context$1_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type FullAddressContactDetails$1 as FullAddressContactDetails, type context$1_GetPaymentSettingsRequest as GetPaymentSettingsRequest, type context$1_GetPaymentSettingsResponse as GetPaymentSettingsResponse, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, JurisdictionType$1 as JurisdictionType, type context$1_LineItemAmount as LineItemAmount, type context$1_LineItemChanges as LineItemChanges, type context$1_LineItemDiscount as LineItemDiscount, type context$1_LineItemExchangeData as LineItemExchangeData, type context$1_LineItemPriceChange as LineItemPriceChange, type context$1_LineItemQuantityChange as LineItemQuantityChange, context$1_LineItemQuantityChangeType as LineItemQuantityChangeType, type context$1_LineItemTaxBreakdown as LineItemTaxBreakdown, type context$1_LineItemTaxInfo as LineItemTaxInfo, type context$1_LocationAndQuantity as LocationAndQuantity, type context$1_ManagedAdditionalFee as ManagedAdditionalFee, type context$1_ManagedDiscount as ManagedDiscount, type context$1_ManagedLineItem as ManagedLineItem, type context$1_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type context$1_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type context$1_NewExchangeOrderCreated as NewExchangeOrderCreated, type context$1_Order as Order, type context$1_OrderChange as OrderChange, type context$1_OrderChangeValueOneOf as OrderChangeValueOneOf, type context$1_OrderCreatedFromExchange as OrderCreatedFromExchange, type context$1_OrderLineItem as OrderLineItem, type context$1_OrderRefunded as OrderRefunded, context$1_OrderStatus as OrderStatus, type context$1_OrderTaxBreakdown as OrderTaxBreakdown, type context$1_OrderTaxInfo as OrderTaxInfo, context$1_PaymentOptionType as PaymentOptionType, type context$1_PaymentSettings as PaymentSettings, type context$1_PaymentSettingsSPIConfig as PaymentSettingsSPIConfig, context$1_PaymentStatus as PaymentStatus, type PhysicalProperties$1 as PhysicalProperties, type context$1_PickupAddress as PickupAddress, type context$1_PickupDetails as PickupDetails, context$1_PickupMethod as PickupMethod, type context$1_PlainTextValue as PlainTextValue, type context$1_Price as Price, type context$1_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, type context$1_SavedPaymentMethod as SavedPaymentMethod, type context$1_ShippingInformation as ShippingInformation, type context$1_ShippingPrice as ShippingPrice, type context$1_ShippingRegion as ShippingRegion, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$1 as SubscriptionFrequency, type context$1_SubscriptionInfo as SubscriptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, type context$1_TagList as TagList, type context$1_Tags as Tags, type context$1_TaxSummary as TaxSummary, type context$1_TotalPriceChange as TotalPriceChange, type context$1_TranslatedValue as TranslatedValue, type VatId$1 as VatId, VatType$1 as VatType, WeightUnit$1 as WeightUnit, provideHandlers$
|
|
2661
|
+
export { type context$1_Activity as Activity, type context$1_ActivityContentOneOf as ActivityContentOneOf, context$1_ActivityType as ActivityType, type context$1_AdditionalFee as AdditionalFee, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, context$1_AttributionSource as AttributionSource, type context$1_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type context$1_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type context$1_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type context$1_Balance as Balance, type context$1_BalanceSummary as BalanceSummary, type context$1_BuyerInfo as BuyerInfo, type context$1_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type CatalogReference$1 as CatalogReference, type context$1_ChannelInfo as ChannelInfo, context$1_ChannelType as ChannelType, type context$1_Color as Color, type Context$1 as Context, type Coupon$1 as Coupon, type context$1_CreatedBy as CreatedBy, type context$1_CreatedByStringOneOf as CreatedByStringOneOf, type context$1_CustomActivity as CustomActivity, type CustomField$1 as CustomField, type context$1_DeliveryLogistics as DeliveryLogistics, type context$1_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type context$1_DeliveryTimeSlot as DeliveryTimeSlot, type context$1_DescriptionLine as DescriptionLine, type context$1_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type context$1_DescriptionLineName as DescriptionLineName, context$1_DescriptionLineType as DescriptionLineType, type context$1_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type context$1_DigitalFile as DigitalFile, context$1_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type context$1_DraftOrderChangesApplied as DraftOrderChangesApplied, type ExtendedFields$1 as ExtendedFields, context$1_FulfillmentStatus as FulfillmentStatus, type context$1_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type FullAddressContactDetails$1 as FullAddressContactDetails, type context$1_GetPaymentSettingsRequest as GetPaymentSettingsRequest, type context$1_GetPaymentSettingsResponse as GetPaymentSettingsResponse, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, JurisdictionType$1 as JurisdictionType, type context$1_LineItemAmount as LineItemAmount, type context$1_LineItemChanges as LineItemChanges, type context$1_LineItemDiscount as LineItemDiscount, type context$1_LineItemExchangeData as LineItemExchangeData, type context$1_LineItemPriceChange as LineItemPriceChange, type context$1_LineItemQuantityChange as LineItemQuantityChange, context$1_LineItemQuantityChangeType as LineItemQuantityChangeType, type context$1_LineItemTaxBreakdown as LineItemTaxBreakdown, type context$1_LineItemTaxInfo as LineItemTaxInfo, type context$1_LocationAndQuantity as LocationAndQuantity, type context$1_ManagedAdditionalFee as ManagedAdditionalFee, type context$1_ManagedDiscount as ManagedDiscount, type context$1_ManagedLineItem as ManagedLineItem, type context$1_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type context$1_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type context$1_NewExchangeOrderCreated as NewExchangeOrderCreated, type context$1_Order as Order, type context$1_OrderChange as OrderChange, type context$1_OrderChangeValueOneOf as OrderChangeValueOneOf, type context$1_OrderCreatedFromExchange as OrderCreatedFromExchange, type context$1_OrderLineItem as OrderLineItem, type context$1_OrderRefunded as OrderRefunded, context$1_OrderStatus as OrderStatus, type context$1_OrderTaxBreakdown as OrderTaxBreakdown, type context$1_OrderTaxInfo as OrderTaxInfo, context$1_PaymentOptionType as PaymentOptionType, type context$1_PaymentSettings as PaymentSettings, type context$1_PaymentSettingsSPIConfig as PaymentSettingsSPIConfig, context$1_PaymentStatus as PaymentStatus, type PhysicalProperties$1 as PhysicalProperties, type context$1_PickupAddress as PickupAddress, type context$1_PickupDetails as PickupDetails, context$1_PickupMethod as PickupMethod, type context$1_PlainTextValue as PlainTextValue, type context$1_Price as Price, type context$1_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, type context$1_SavedPaymentMethod as SavedPaymentMethod, type context$1_ShippingInformation as ShippingInformation, type context$1_ShippingPrice as ShippingPrice, type context$1_ShippingRegion as ShippingRegion, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$1 as SubscriptionFrequency, type context$1_SubscriptionInfo as SubscriptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, type context$1_TagList as TagList, type context$1_Tags as Tags, type context$1_TaxSummary as TaxSummary, type context$1_TotalPriceChange as TotalPriceChange, type context$1_TranslatedValue as TranslatedValue, type VatId$1 as VatId, VatType$1 as VatType, WeightUnit$1 as WeightUnit, provideHandlers$1 as provideHandlers };
|
|
2604
2662
|
}
|
|
2605
2663
|
|
|
2606
2664
|
interface GetValidationViolationsRequest {
|
|
@@ -3199,15 +3257,38 @@ interface IdentificationDataIdOneOf {
|
|
|
3199
3257
|
appId?: string;
|
|
3200
3258
|
}
|
|
3201
3259
|
|
|
3202
|
-
|
|
3203
|
-
request:
|
|
3204
|
-
metadata:
|
|
3260
|
+
type ServicePluginMethodInput = {
|
|
3261
|
+
request: any;
|
|
3262
|
+
metadata: any;
|
|
3263
|
+
};
|
|
3264
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
3265
|
+
type ServicePluginMethodMetadata = {
|
|
3266
|
+
name: string;
|
|
3267
|
+
primaryHttpMappingPath: string;
|
|
3268
|
+
transformations: {
|
|
3269
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
3270
|
+
toREST: (...args: unknown[]) => unknown;
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
3274
|
+
__type: 'service-plugin-definition';
|
|
3275
|
+
componentType: string;
|
|
3276
|
+
methods: ServicePluginMethodMetadata[];
|
|
3277
|
+
__contract: Contract;
|
|
3278
|
+
};
|
|
3279
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
3280
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
3281
|
+
|
|
3282
|
+
declare global {
|
|
3283
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3284
|
+
interface SymbolConstructor {
|
|
3285
|
+
readonly observable: symbol;
|
|
3286
|
+
}
|
|
3205
3287
|
}
|
|
3206
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
3207
|
-
getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
|
|
3208
|
-
}>;
|
|
3209
3288
|
|
|
3210
|
-
declare
|
|
3289
|
+
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
3290
|
+
|
|
3291
|
+
declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
|
|
3211
3292
|
|
|
3212
3293
|
type context_Address = Address;
|
|
3213
3294
|
type context_AddressLocation = AddressLocation;
|
|
@@ -423,26 +423,26 @@ interface IdentificationDataIdOneOf$4 {
|
|
|
423
423
|
appId?: string;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
type ServicePluginMethodInput = {
|
|
426
|
+
type ServicePluginMethodInput$4 = {
|
|
427
427
|
request: any;
|
|
428
428
|
metadata: any;
|
|
429
429
|
};
|
|
430
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
431
|
-
type ServicePluginMethodMetadata = {
|
|
430
|
+
type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
|
|
431
|
+
type ServicePluginMethodMetadata$4 = {
|
|
432
432
|
name: string;
|
|
433
433
|
primaryHttpMappingPath: string;
|
|
434
434
|
transformations: {
|
|
435
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
435
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
|
|
436
436
|
toREST: (...args: unknown[]) => unknown;
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
439
|
+
type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
|
|
440
440
|
__type: 'service-plugin-definition';
|
|
441
441
|
componentType: string;
|
|
442
|
-
methods: ServicePluginMethodMetadata[];
|
|
442
|
+
methods: ServicePluginMethodMetadata$4[];
|
|
443
443
|
__contract: Contract;
|
|
444
444
|
};
|
|
445
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
445
|
+
declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
|
|
446
446
|
|
|
447
447
|
declare global {
|
|
448
448
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -455,7 +455,7 @@ interface GetShippingRatesEnvelope {
|
|
|
455
455
|
request: GetShippingRatesRequest;
|
|
456
456
|
metadata: Context$4;
|
|
457
457
|
}
|
|
458
|
-
declare const provideHandlers$4: ServicePluginDefinition<{
|
|
458
|
+
declare const provideHandlers$4: ServicePluginDefinition$4<{
|
|
459
459
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
460
460
|
}>;
|
|
461
461
|
|
|
@@ -942,11 +942,39 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
942
942
|
appId?: string;
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
+
type ServicePluginMethodInput$3 = {
|
|
946
|
+
request: any;
|
|
947
|
+
metadata: any;
|
|
948
|
+
};
|
|
949
|
+
type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
|
|
950
|
+
type ServicePluginMethodMetadata$3 = {
|
|
951
|
+
name: string;
|
|
952
|
+
primaryHttpMappingPath: string;
|
|
953
|
+
transformations: {
|
|
954
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
|
|
955
|
+
toREST: (...args: unknown[]) => unknown;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
|
|
959
|
+
__type: 'service-plugin-definition';
|
|
960
|
+
componentType: string;
|
|
961
|
+
methods: ServicePluginMethodMetadata$3[];
|
|
962
|
+
__contract: Contract;
|
|
963
|
+
};
|
|
964
|
+
declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
|
|
965
|
+
|
|
966
|
+
declare global {
|
|
967
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
968
|
+
interface SymbolConstructor {
|
|
969
|
+
readonly observable: symbol;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
945
973
|
interface CalculateAdditionalFeesEnvelope {
|
|
946
974
|
request: CalculateAdditionalFeesRequest;
|
|
947
975
|
metadata: Context$3;
|
|
948
976
|
}
|
|
949
|
-
declare const provideHandlers$3: ServicePluginDefinition<{
|
|
977
|
+
declare const provideHandlers$3: ServicePluginDefinition$3<{
|
|
950
978
|
calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
|
|
951
979
|
}>;
|
|
952
980
|
|
|
@@ -1100,6 +1128,34 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1100
1128
|
appId?: string;
|
|
1101
1129
|
}
|
|
1102
1130
|
|
|
1131
|
+
type ServicePluginMethodInput$2 = {
|
|
1132
|
+
request: any;
|
|
1133
|
+
metadata: any;
|
|
1134
|
+
};
|
|
1135
|
+
type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
|
|
1136
|
+
type ServicePluginMethodMetadata$2 = {
|
|
1137
|
+
name: string;
|
|
1138
|
+
primaryHttpMappingPath: string;
|
|
1139
|
+
transformations: {
|
|
1140
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
|
|
1141
|
+
toREST: (...args: unknown[]) => unknown;
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
|
|
1145
|
+
__type: 'service-plugin-definition';
|
|
1146
|
+
componentType: string;
|
|
1147
|
+
methods: ServicePluginMethodMetadata$2[];
|
|
1148
|
+
__contract: Contract;
|
|
1149
|
+
};
|
|
1150
|
+
declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
|
|
1151
|
+
|
|
1152
|
+
declare global {
|
|
1153
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1154
|
+
interface SymbolConstructor {
|
|
1155
|
+
readonly observable: symbol;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1103
1159
|
interface ListTriggersEnvelope {
|
|
1104
1160
|
request: ListTriggersRequest;
|
|
1105
1161
|
metadata: Context$2;
|
|
@@ -1108,7 +1164,7 @@ interface GetEligibleTriggersEnvelope {
|
|
|
1108
1164
|
request: GetEligibleTriggersRequest;
|
|
1109
1165
|
metadata: Context$2;
|
|
1110
1166
|
}
|
|
1111
|
-
declare const provideHandlers$2: ServicePluginDefinition<{
|
|
1167
|
+
declare const provideHandlers$2: ServicePluginDefinition$2<{
|
|
1112
1168
|
listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
|
|
1113
1169
|
getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
|
|
1114
1170
|
}>;
|
|
@@ -2497,11 +2553,39 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2497
2553
|
appId?: string;
|
|
2498
2554
|
}
|
|
2499
2555
|
|
|
2556
|
+
type ServicePluginMethodInput$1 = {
|
|
2557
|
+
request: any;
|
|
2558
|
+
metadata: any;
|
|
2559
|
+
};
|
|
2560
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
2561
|
+
type ServicePluginMethodMetadata$1 = {
|
|
2562
|
+
name: string;
|
|
2563
|
+
primaryHttpMappingPath: string;
|
|
2564
|
+
transformations: {
|
|
2565
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
2566
|
+
toREST: (...args: unknown[]) => unknown;
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
2570
|
+
__type: 'service-plugin-definition';
|
|
2571
|
+
componentType: string;
|
|
2572
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
2573
|
+
__contract: Contract;
|
|
2574
|
+
};
|
|
2575
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
2576
|
+
|
|
2577
|
+
declare global {
|
|
2578
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2579
|
+
interface SymbolConstructor {
|
|
2580
|
+
readonly observable: symbol;
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2500
2584
|
interface GetPaymentSettingsEnvelope {
|
|
2501
2585
|
request: GetPaymentSettingsRequest;
|
|
2502
2586
|
metadata: Context$1;
|
|
2503
2587
|
}
|
|
2504
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
2588
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
2505
2589
|
getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
|
|
2506
2590
|
}>;
|
|
2507
2591
|
|
|
@@ -3195,6 +3279,34 @@ interface IdentificationDataIdOneOf {
|
|
|
3195
3279
|
appId?: string;
|
|
3196
3280
|
}
|
|
3197
3281
|
|
|
3282
|
+
type ServicePluginMethodInput = {
|
|
3283
|
+
request: any;
|
|
3284
|
+
metadata: any;
|
|
3285
|
+
};
|
|
3286
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
3287
|
+
type ServicePluginMethodMetadata = {
|
|
3288
|
+
name: string;
|
|
3289
|
+
primaryHttpMappingPath: string;
|
|
3290
|
+
transformations: {
|
|
3291
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
3292
|
+
toREST: (...args: unknown[]) => unknown;
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
3296
|
+
__type: 'service-plugin-definition';
|
|
3297
|
+
componentType: string;
|
|
3298
|
+
methods: ServicePluginMethodMetadata[];
|
|
3299
|
+
__contract: Contract;
|
|
3300
|
+
};
|
|
3301
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
3302
|
+
|
|
3303
|
+
declare global {
|
|
3304
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3305
|
+
interface SymbolConstructor {
|
|
3306
|
+
readonly observable: symbol;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3198
3310
|
interface GetValidationViolationsEnvelope {
|
|
3199
3311
|
request: GetValidationViolationsRequest;
|
|
3200
3312
|
metadata: Context;
|