@wix/ecom 1.0.655 → 1.0.657

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$4 = {
491
+ type ServicePluginMethodInput = {
492
492
  request: any;
493
493
  metadata: any;
494
494
  };
495
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
496
- type ServicePluginMethodMetadata$4 = {
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$4;
500
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
501
501
  toREST: (...args: unknown[]) => unknown;
502
502
  };
503
503
  };
504
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
504
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
505
505
  __type: 'service-plugin-definition';
506
506
  componentType: string;
507
- methods: ServicePluginMethodMetadata$4[];
507
+ methods: ServicePluginMethodMetadata[];
508
508
  __contract: Contract;
509
509
  };
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;
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.
@@ -521,11 +521,11 @@ interface GetShippingRatesEnvelope {
521
521
  request: GetShippingRatesRequest;
522
522
  metadata: Context$4;
523
523
  }
524
- declare const provideHandlers$9: ServicePluginDefinition$4<{
524
+ declare const provideHandlers$9: ServicePluginDefinition<{
525
525
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
526
526
  }>;
527
527
 
528
- declare const provideHandlers$8: BuildServicePluginDefinition$4<typeof provideHandlers$9>;
528
+ declare const provideHandlers$8: BuildServicePluginDefinition<typeof provideHandlers$9>;
529
529
 
530
530
  type context$4_AdditionalCharge = AdditionalCharge;
531
531
  type context$4_AddressStreetOneOf = AddressStreetOneOf;
@@ -944,44 +944,15 @@ interface IdentificationDataIdOneOf$3 {
944
944
  appId?: string;
945
945
  }
946
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
-
976
947
  interface CalculateAdditionalFeesEnvelope {
977
948
  request: CalculateAdditionalFeesRequest;
978
949
  metadata: Context$3;
979
950
  }
980
- declare const provideHandlers$7: ServicePluginDefinition$3<{
951
+ declare const provideHandlers$7: ServicePluginDefinition<{
981
952
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
982
953
  }>;
983
954
 
984
- declare const provideHandlers$6: BuildServicePluginDefinition$3<typeof provideHandlers$7>;
955
+ declare const provideHandlers$6: BuildServicePluginDefinition<typeof provideHandlers$7>;
985
956
 
986
957
  type context$3_AdditionalFeesSPIConfig = AdditionalFeesSPIConfig;
987
958
  type context$3_CalculateAdditionalFeesRequest = CalculateAdditionalFeesRequest;
@@ -1132,35 +1103,6 @@ interface IdentificationDataIdOneOf$2 {
1132
1103
  appId?: string;
1133
1104
  }
1134
1105
 
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
-
1164
1106
  interface ListTriggersEnvelope {
1165
1107
  request: ListTriggersRequest;
1166
1108
  metadata: Context$2;
@@ -1169,12 +1111,12 @@ interface GetEligibleTriggersEnvelope {
1169
1111
  request: GetEligibleTriggersRequest;
1170
1112
  metadata: Context$2;
1171
1113
  }
1172
- declare const provideHandlers$5: ServicePluginDefinition$2<{
1114
+ declare const provideHandlers$5: ServicePluginDefinition<{
1173
1115
  listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
1174
1116
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
1175
1117
  }>;
1176
1118
 
1177
- declare const provideHandlers$4: BuildServicePluginDefinition$2<typeof provideHandlers$5>;
1119
+ declare const provideHandlers$4: BuildServicePluginDefinition<typeof provideHandlers$5>;
1178
1120
 
1179
1121
  type context$2_CustomTrigger = CustomTrigger;
1180
1122
  type context$2_CustomTriggerConfig = CustomTriggerConfig;
@@ -2558,44 +2500,15 @@ interface IdentificationDataIdOneOf$1 {
2558
2500
  appId?: string;
2559
2501
  }
2560
2502
 
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
-
2590
2503
  interface GetPaymentSettingsEnvelope {
2591
2504
  request: GetPaymentSettingsRequest;
2592
2505
  metadata: Context$1;
2593
2506
  }
2594
- declare const provideHandlers$3: ServicePluginDefinition$1<{
2507
+ declare const provideHandlers$3: ServicePluginDefinition<{
2595
2508
  getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
2596
2509
  }>;
2597
2510
 
2598
- declare const provideHandlers$2: BuildServicePluginDefinition$1<typeof provideHandlers$3>;
2511
+ declare const provideHandlers$2: BuildServicePluginDefinition<typeof provideHandlers$3>;
2599
2512
 
2600
2513
  type context$1_Activity = Activity;
2601
2514
  type context$1_ActivityContentOneOf = ActivityContentOneOf;
@@ -3286,35 +3199,6 @@ interface IdentificationDataIdOneOf {
3286
3199
  appId?: string;
3287
3200
  }
3288
3201
 
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
-
3318
3202
  interface GetValidationViolationsEnvelope {
3319
3203
  request: GetValidationViolationsRequest;
3320
3204
  metadata: Context;
@@ -423,26 +423,26 @@ interface IdentificationDataIdOneOf$4 {
423
423
  appId?: string;
424
424
  }
425
425
 
426
- type ServicePluginMethodInput$4 = {
426
+ type ServicePluginMethodInput = {
427
427
  request: any;
428
428
  metadata: any;
429
429
  };
430
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
431
- type ServicePluginMethodMetadata$4 = {
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$4;
435
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
436
436
  toREST: (...args: unknown[]) => unknown;
437
437
  };
438
438
  };
439
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
439
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
440
440
  __type: 'service-plugin-definition';
441
441
  componentType: string;
442
- methods: ServicePluginMethodMetadata$4[];
442
+ methods: ServicePluginMethodMetadata[];
443
443
  __contract: Contract;
444
444
  };
445
- declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
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$4<{
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$3<{
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$2<{
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$1<{
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;