@wix/ecom 1.0.643 → 1.0.645
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -488,37 +488,44 @@ 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
|
+
|
|
513
|
+
declare global {
|
|
514
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
515
|
+
interface SymbolConstructor {
|
|
516
|
+
readonly observable: symbol;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
512
519
|
|
|
513
520
|
interface GetShippingRatesEnvelope {
|
|
514
521
|
request: GetShippingRatesRequest;
|
|
515
522
|
metadata: Context$4;
|
|
516
523
|
}
|
|
517
|
-
declare const provideHandlers$9: ServicePluginDefinition<{
|
|
524
|
+
declare const provideHandlers$9: ServicePluginDefinition$4<{
|
|
518
525
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
519
526
|
}>;
|
|
520
527
|
|
|
521
|
-
declare const provideHandlers$8: BuildServicePluginDefinition<typeof provideHandlers$9>;
|
|
528
|
+
declare const provideHandlers$8: BuildServicePluginDefinition$4<typeof provideHandlers$9>;
|
|
522
529
|
|
|
523
530
|
type context$4_AdditionalCharge = AdditionalCharge;
|
|
524
531
|
type context$4_AddressStreetOneOf = AddressStreetOneOf;
|
|
@@ -937,15 +944,44 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
937
944
|
appId?: string;
|
|
938
945
|
}
|
|
939
946
|
|
|
947
|
+
type ServicePluginMethodInput$3 = {
|
|
948
|
+
request: any;
|
|
949
|
+
metadata: any;
|
|
950
|
+
};
|
|
951
|
+
type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
|
|
952
|
+
type ServicePluginMethodMetadata$3 = {
|
|
953
|
+
name: string;
|
|
954
|
+
primaryHttpMappingPath: string;
|
|
955
|
+
transformations: {
|
|
956
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
|
|
957
|
+
toREST: (...args: unknown[]) => unknown;
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
|
|
961
|
+
__type: 'service-plugin-definition';
|
|
962
|
+
componentType: string;
|
|
963
|
+
methods: ServicePluginMethodMetadata$3[];
|
|
964
|
+
__contract: Contract;
|
|
965
|
+
};
|
|
966
|
+
declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
|
|
967
|
+
type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
|
|
968
|
+
|
|
969
|
+
declare global {
|
|
970
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
971
|
+
interface SymbolConstructor {
|
|
972
|
+
readonly observable: symbol;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
940
976
|
interface CalculateAdditionalFeesEnvelope {
|
|
941
977
|
request: CalculateAdditionalFeesRequest;
|
|
942
978
|
metadata: Context$3;
|
|
943
979
|
}
|
|
944
|
-
declare const provideHandlers$7: ServicePluginDefinition<{
|
|
980
|
+
declare const provideHandlers$7: ServicePluginDefinition$3<{
|
|
945
981
|
calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
|
|
946
982
|
}>;
|
|
947
983
|
|
|
948
|
-
declare const provideHandlers$6: BuildServicePluginDefinition<typeof provideHandlers$7>;
|
|
984
|
+
declare const provideHandlers$6: BuildServicePluginDefinition$3<typeof provideHandlers$7>;
|
|
949
985
|
|
|
950
986
|
type context$3_AdditionalFeesSPIConfig = AdditionalFeesSPIConfig;
|
|
951
987
|
type context$3_CalculateAdditionalFeesRequest = CalculateAdditionalFeesRequest;
|
|
@@ -1096,6 +1132,35 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1096
1132
|
appId?: string;
|
|
1097
1133
|
}
|
|
1098
1134
|
|
|
1135
|
+
type ServicePluginMethodInput$2 = {
|
|
1136
|
+
request: any;
|
|
1137
|
+
metadata: any;
|
|
1138
|
+
};
|
|
1139
|
+
type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
|
|
1140
|
+
type ServicePluginMethodMetadata$2 = {
|
|
1141
|
+
name: string;
|
|
1142
|
+
primaryHttpMappingPath: string;
|
|
1143
|
+
transformations: {
|
|
1144
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
|
|
1145
|
+
toREST: (...args: unknown[]) => unknown;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
|
|
1149
|
+
__type: 'service-plugin-definition';
|
|
1150
|
+
componentType: string;
|
|
1151
|
+
methods: ServicePluginMethodMetadata$2[];
|
|
1152
|
+
__contract: Contract;
|
|
1153
|
+
};
|
|
1154
|
+
declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
|
|
1155
|
+
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
|
|
1156
|
+
|
|
1157
|
+
declare global {
|
|
1158
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1159
|
+
interface SymbolConstructor {
|
|
1160
|
+
readonly observable: symbol;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1099
1164
|
interface ListTriggersEnvelope {
|
|
1100
1165
|
request: ListTriggersRequest;
|
|
1101
1166
|
metadata: Context$2;
|
|
@@ -1104,12 +1169,12 @@ interface GetEligibleTriggersEnvelope {
|
|
|
1104
1169
|
request: GetEligibleTriggersRequest;
|
|
1105
1170
|
metadata: Context$2;
|
|
1106
1171
|
}
|
|
1107
|
-
declare const provideHandlers$5: ServicePluginDefinition<{
|
|
1172
|
+
declare const provideHandlers$5: ServicePluginDefinition$2<{
|
|
1108
1173
|
listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
|
|
1109
1174
|
getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
|
|
1110
1175
|
}>;
|
|
1111
1176
|
|
|
1112
|
-
declare const provideHandlers$4: BuildServicePluginDefinition<typeof provideHandlers$5>;
|
|
1177
|
+
declare const provideHandlers$4: BuildServicePluginDefinition$2<typeof provideHandlers$5>;
|
|
1113
1178
|
|
|
1114
1179
|
type context$2_CustomTrigger = CustomTrigger;
|
|
1115
1180
|
type context$2_CustomTriggerConfig = CustomTriggerConfig;
|
|
@@ -2493,15 +2558,44 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2493
2558
|
appId?: string;
|
|
2494
2559
|
}
|
|
2495
2560
|
|
|
2561
|
+
type ServicePluginMethodInput$1 = {
|
|
2562
|
+
request: any;
|
|
2563
|
+
metadata: any;
|
|
2564
|
+
};
|
|
2565
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
2566
|
+
type ServicePluginMethodMetadata$1 = {
|
|
2567
|
+
name: string;
|
|
2568
|
+
primaryHttpMappingPath: string;
|
|
2569
|
+
transformations: {
|
|
2570
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
2571
|
+
toREST: (...args: unknown[]) => unknown;
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
2575
|
+
__type: 'service-plugin-definition';
|
|
2576
|
+
componentType: string;
|
|
2577
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
2578
|
+
__contract: Contract;
|
|
2579
|
+
};
|
|
2580
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
2581
|
+
type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
|
|
2582
|
+
|
|
2583
|
+
declare global {
|
|
2584
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2585
|
+
interface SymbolConstructor {
|
|
2586
|
+
readonly observable: symbol;
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2496
2590
|
interface GetPaymentSettingsEnvelope {
|
|
2497
2591
|
request: GetPaymentSettingsRequest;
|
|
2498
2592
|
metadata: Context$1;
|
|
2499
2593
|
}
|
|
2500
|
-
declare const provideHandlers$3: ServicePluginDefinition<{
|
|
2594
|
+
declare const provideHandlers$3: ServicePluginDefinition$1<{
|
|
2501
2595
|
getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
|
|
2502
2596
|
}>;
|
|
2503
2597
|
|
|
2504
|
-
declare const provideHandlers$2: BuildServicePluginDefinition<typeof provideHandlers$3>;
|
|
2598
|
+
declare const provideHandlers$2: BuildServicePluginDefinition$1<typeof provideHandlers$3>;
|
|
2505
2599
|
|
|
2506
2600
|
type context$1_Activity = Activity;
|
|
2507
2601
|
type context$1_ActivityContentOneOf = ActivityContentOneOf;
|
|
@@ -3192,6 +3286,35 @@ interface IdentificationDataIdOneOf {
|
|
|
3192
3286
|
appId?: string;
|
|
3193
3287
|
}
|
|
3194
3288
|
|
|
3289
|
+
type ServicePluginMethodInput = {
|
|
3290
|
+
request: any;
|
|
3291
|
+
metadata: any;
|
|
3292
|
+
};
|
|
3293
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
3294
|
+
type ServicePluginMethodMetadata = {
|
|
3295
|
+
name: string;
|
|
3296
|
+
primaryHttpMappingPath: string;
|
|
3297
|
+
transformations: {
|
|
3298
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
3299
|
+
toREST: (...args: unknown[]) => unknown;
|
|
3300
|
+
};
|
|
3301
|
+
};
|
|
3302
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
3303
|
+
__type: 'service-plugin-definition';
|
|
3304
|
+
componentType: string;
|
|
3305
|
+
methods: ServicePluginMethodMetadata[];
|
|
3306
|
+
__contract: Contract;
|
|
3307
|
+
};
|
|
3308
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
3309
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
3310
|
+
|
|
3311
|
+
declare global {
|
|
3312
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3313
|
+
interface SymbolConstructor {
|
|
3314
|
+
readonly observable: symbol;
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3195
3318
|
interface GetValidationViolationsEnvelope {
|
|
3196
3319
|
request: GetValidationViolationsRequest;
|
|
3197
3320
|
metadata: Context;
|
|
@@ -423,32 +423,39 @@ 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
|
+
|
|
447
|
+
declare global {
|
|
448
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
449
|
+
interface SymbolConstructor {
|
|
450
|
+
readonly observable: symbol;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
446
453
|
|
|
447
454
|
interface GetShippingRatesEnvelope {
|
|
448
455
|
request: GetShippingRatesRequest;
|
|
449
456
|
metadata: Context$4;
|
|
450
457
|
}
|
|
451
|
-
declare const provideHandlers$4: ServicePluginDefinition<{
|
|
458
|
+
declare const provideHandlers$4: ServicePluginDefinition$4<{
|
|
452
459
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
453
460
|
}>;
|
|
454
461
|
|
|
@@ -935,11 +942,39 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
935
942
|
appId?: string;
|
|
936
943
|
}
|
|
937
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
|
+
|
|
938
973
|
interface CalculateAdditionalFeesEnvelope {
|
|
939
974
|
request: CalculateAdditionalFeesRequest;
|
|
940
975
|
metadata: Context$3;
|
|
941
976
|
}
|
|
942
|
-
declare const provideHandlers$3: ServicePluginDefinition<{
|
|
977
|
+
declare const provideHandlers$3: ServicePluginDefinition$3<{
|
|
943
978
|
calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
|
|
944
979
|
}>;
|
|
945
980
|
|
|
@@ -1093,6 +1128,34 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1093
1128
|
appId?: string;
|
|
1094
1129
|
}
|
|
1095
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
|
+
|
|
1096
1159
|
interface ListTriggersEnvelope {
|
|
1097
1160
|
request: ListTriggersRequest;
|
|
1098
1161
|
metadata: Context$2;
|
|
@@ -1101,7 +1164,7 @@ interface GetEligibleTriggersEnvelope {
|
|
|
1101
1164
|
request: GetEligibleTriggersRequest;
|
|
1102
1165
|
metadata: Context$2;
|
|
1103
1166
|
}
|
|
1104
|
-
declare const provideHandlers$2: ServicePluginDefinition<{
|
|
1167
|
+
declare const provideHandlers$2: ServicePluginDefinition$2<{
|
|
1105
1168
|
listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
|
|
1106
1169
|
getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
|
|
1107
1170
|
}>;
|
|
@@ -2490,11 +2553,39 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2490
2553
|
appId?: string;
|
|
2491
2554
|
}
|
|
2492
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
|
+
|
|
2493
2584
|
interface GetPaymentSettingsEnvelope {
|
|
2494
2585
|
request: GetPaymentSettingsRequest;
|
|
2495
2586
|
metadata: Context$1;
|
|
2496
2587
|
}
|
|
2497
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
2588
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
2498
2589
|
getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
|
|
2499
2590
|
}>;
|
|
2500
2591
|
|
|
@@ -3188,6 +3279,34 @@ interface IdentificationDataIdOneOf {
|
|
|
3188
3279
|
appId?: string;
|
|
3189
3280
|
}
|
|
3190
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
|
+
|
|
3191
3310
|
interface GetValidationViolationsEnvelope {
|
|
3192
3311
|
request: GetValidationViolationsRequest;
|
|
3193
3312
|
metadata: Context;
|