@wix/ecom 1.0.662 → 1.0.663
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 = {
|
|
492
492
|
request: any;
|
|
493
493
|
metadata: any;
|
|
494
494
|
};
|
|
495
|
-
type ServicePluginContract
|
|
496
|
-
type ServicePluginMethodMetadata
|
|
495
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
496
|
+
type ServicePluginMethodMetadata = {
|
|
497
497
|
name: string;
|
|
498
498
|
primaryHttpMappingPath: string;
|
|
499
499
|
transformations: {
|
|
500
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
500
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
501
501
|
toREST: (...args: unknown[]) => unknown;
|
|
502
502
|
};
|
|
503
503
|
};
|
|
504
|
-
type ServicePluginDefinition
|
|
504
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
505
505
|
__type: 'service-plugin-definition';
|
|
506
506
|
componentType: string;
|
|
507
|
-
methods: ServicePluginMethodMetadata
|
|
507
|
+
methods: ServicePluginMethodMetadata[];
|
|
508
508
|
__contract: Contract;
|
|
509
509
|
};
|
|
510
|
-
declare function ServicePluginDefinition
|
|
511
|
-
type BuildServicePluginDefinition
|
|
510
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
511
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<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,7 +517,7 @@ declare global {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
declare function createServicePluginModule$4<T extends ServicePluginDefinition
|
|
520
|
+
declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
521
521
|
|
|
522
522
|
declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$4<typeof publicProvideHandlers>>;
|
|
523
523
|
|
|
@@ -938,36 +938,7 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
938
938
|
appId?: string;
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
|
|
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
|
-
}
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
|
|
941
|
+
declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
971
942
|
|
|
972
943
|
declare const provideHandlers$3: ReturnType<typeof createServicePluginModule$3<typeof publicProvideHandlers>>;
|
|
973
944
|
|
|
@@ -1120,36 +1091,7 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1120
1091
|
appId?: string;
|
|
1121
1092
|
}
|
|
1122
1093
|
|
|
1123
|
-
|
|
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;
|
|
1094
|
+
declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1153
1095
|
|
|
1154
1096
|
declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$2<typeof publicProvideHandlers>>;
|
|
1155
1097
|
|
|
@@ -2535,36 +2477,7 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2535
2477
|
appId?: string;
|
|
2536
2478
|
}
|
|
2537
2479
|
|
|
2538
|
-
|
|
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
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
|
|
2480
|
+
declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
2568
2481
|
|
|
2569
2482
|
declare const provideHandlers$1: ReturnType<typeof createServicePluginModule$1<typeof publicProvideHandlers>>;
|
|
2570
2483
|
|
|
@@ -3257,35 +3170,6 @@ interface IdentificationDataIdOneOf {
|
|
|
3257
3170
|
appId?: string;
|
|
3258
3171
|
}
|
|
3259
3172
|
|
|
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
|
-
}
|
|
3287
|
-
}
|
|
3288
|
-
|
|
3289
3173
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
3290
3174
|
|
|
3291
3175
|
declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
|
|
@@ -423,26 +423,26 @@ interface IdentificationDataIdOneOf$4 {
|
|
|
423
423
|
appId?: string;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
type ServicePluginMethodInput
|
|
426
|
+
type ServicePluginMethodInput = {
|
|
427
427
|
request: any;
|
|
428
428
|
metadata: any;
|
|
429
429
|
};
|
|
430
|
-
type ServicePluginContract
|
|
431
|
-
type ServicePluginMethodMetadata
|
|
430
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
431
|
+
type ServicePluginMethodMetadata = {
|
|
432
432
|
name: string;
|
|
433
433
|
primaryHttpMappingPath: string;
|
|
434
434
|
transformations: {
|
|
435
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
435
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
436
436
|
toREST: (...args: unknown[]) => unknown;
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
type ServicePluginDefinition
|
|
439
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
440
440
|
__type: 'service-plugin-definition';
|
|
441
441
|
componentType: string;
|
|
442
|
-
methods: ServicePluginMethodMetadata
|
|
442
|
+
methods: ServicePluginMethodMetadata[];
|
|
443
443
|
__contract: Contract;
|
|
444
444
|
};
|
|
445
|
-
declare function ServicePluginDefinition
|
|
445
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<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<{
|
|
459
459
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
460
460
|
}>;
|
|
461
461
|
|
|
@@ -942,39 +942,11 @@ 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
|
-
|
|
973
945
|
interface CalculateAdditionalFeesEnvelope {
|
|
974
946
|
request: CalculateAdditionalFeesRequest;
|
|
975
947
|
metadata: Context$3;
|
|
976
948
|
}
|
|
977
|
-
declare const provideHandlers$3: ServicePluginDefinition
|
|
949
|
+
declare const provideHandlers$3: ServicePluginDefinition<{
|
|
978
950
|
calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
|
|
979
951
|
}>;
|
|
980
952
|
|
|
@@ -1128,34 +1100,6 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1128
1100
|
appId?: string;
|
|
1129
1101
|
}
|
|
1130
1102
|
|
|
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
|
-
|
|
1159
1103
|
interface ListTriggersEnvelope {
|
|
1160
1104
|
request: ListTriggersRequest;
|
|
1161
1105
|
metadata: Context$2;
|
|
@@ -1164,7 +1108,7 @@ interface GetEligibleTriggersEnvelope {
|
|
|
1164
1108
|
request: GetEligibleTriggersRequest;
|
|
1165
1109
|
metadata: Context$2;
|
|
1166
1110
|
}
|
|
1167
|
-
declare const provideHandlers$2: ServicePluginDefinition
|
|
1111
|
+
declare const provideHandlers$2: ServicePluginDefinition<{
|
|
1168
1112
|
listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
|
|
1169
1113
|
getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
|
|
1170
1114
|
}>;
|
|
@@ -2553,39 +2497,11 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2553
2497
|
appId?: string;
|
|
2554
2498
|
}
|
|
2555
2499
|
|
|
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
|
-
|
|
2584
2500
|
interface GetPaymentSettingsEnvelope {
|
|
2585
2501
|
request: GetPaymentSettingsRequest;
|
|
2586
2502
|
metadata: Context$1;
|
|
2587
2503
|
}
|
|
2588
|
-
declare const provideHandlers$1: ServicePluginDefinition
|
|
2504
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
2589
2505
|
getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
|
|
2590
2506
|
}>;
|
|
2591
2507
|
|
|
@@ -3279,34 +3195,6 @@ interface IdentificationDataIdOneOf {
|
|
|
3279
3195
|
appId?: string;
|
|
3280
3196
|
}
|
|
3281
3197
|
|
|
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
|
-
|
|
3310
3198
|
interface GetValidationViolationsEnvelope {
|
|
3311
3199
|
request: GetValidationViolationsRequest;
|
|
3312
3200
|
metadata: Context;
|