@wix/ecom 1.0.786 → 1.0.788

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.
@@ -141,6 +141,8 @@ declare class GiftCardNotFoundWixError extends Error {
141
141
  applicationCode: string;
142
142
  /** @hidden */
143
143
  name: string;
144
+ /** @hidden */
145
+ errorType: string;
144
146
  constructor();
145
147
  /** @hidden */
146
148
  static readonly __type = "wix_spi_error";
@@ -157,6 +159,8 @@ declare class GiftCardDisabledWixError extends Error {
157
159
  applicationCode: string;
158
160
  /** @hidden */
159
161
  name: string;
162
+ /** @hidden */
163
+ errorType: string;
160
164
  constructor();
161
165
  /** @hidden */
162
166
  static readonly __type = "wix_spi_error";
@@ -173,6 +177,8 @@ declare class GiftCardExpiredWixError extends Error {
173
177
  applicationCode: string;
174
178
  /** @hidden */
175
179
  name: string;
180
+ /** @hidden */
181
+ errorType: string;
176
182
  constructor();
177
183
  /** @hidden */
178
184
  static readonly __type = "wix_spi_error";
@@ -189,6 +195,8 @@ declare class InsufficientFundsWixError extends Error {
189
195
  applicationCode: string;
190
196
  /** @hidden */
191
197
  name: string;
198
+ /** @hidden */
199
+ errorType: string;
192
200
  constructor();
193
201
  /** @hidden */
194
202
  static readonly __type = "wix_spi_error";
@@ -205,6 +213,8 @@ declare class AlreadyRedeemedWixError extends Error {
205
213
  applicationCode: string;
206
214
  /** @hidden */
207
215
  name: string;
216
+ /** @hidden */
217
+ errorType: string;
208
218
  constructor();
209
219
  /** @hidden */
210
220
  static readonly __type = "wix_spi_error";
@@ -221,6 +231,8 @@ declare class CurrencyNotSupportedWixError extends Error {
221
231
  applicationCode: string;
222
232
  /** @hidden */
223
233
  name: string;
234
+ /** @hidden */
235
+ errorType: string;
224
236
  constructor();
225
237
  /** @hidden */
226
238
  static readonly __type = "wix_spi_error";
@@ -237,6 +249,8 @@ declare class TransactionNotFoundWixError$1 extends Error {
237
249
  applicationCode: string;
238
250
  /** @hidden */
239
251
  name: string;
252
+ /** @hidden */
253
+ errorType: string;
240
254
  constructor();
241
255
  /** @hidden */
242
256
  static readonly __type = "wix_spi_error";
@@ -253,32 +267,34 @@ declare class AlreadyVoidedWixError extends Error {
253
267
  applicationCode: string;
254
268
  /** @hidden */
255
269
  name: string;
270
+ /** @hidden */
271
+ errorType: string;
256
272
  constructor();
257
273
  /** @hidden */
258
274
  static readonly __type = "wix_spi_error";
259
275
  }
260
276
 
261
- type ServicePluginMethodInput$8 = {
277
+ type ServicePluginMethodInput = {
262
278
  request: any;
263
279
  metadata: any;
264
280
  };
265
- type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
266
- type ServicePluginMethodMetadata$8 = {
281
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
282
+ type ServicePluginMethodMetadata = {
267
283
  name: string;
268
284
  primaryHttpMappingPath: string;
269
285
  transformations: {
270
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
286
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
271
287
  toREST: (...args: unknown[]) => unknown;
272
288
  };
273
289
  };
274
- type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
290
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
275
291
  __type: 'service-plugin-definition';
276
292
  componentType: string;
277
- methods: ServicePluginMethodMetadata$8[];
293
+ methods: ServicePluginMethodMetadata[];
278
294
  __contract: Contract;
279
295
  };
280
- declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
281
- type BuildServicePluginDefinition$8<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
296
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
297
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
282
298
 
283
299
  declare global {
284
300
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -304,7 +320,7 @@ interface _voidEnvelope {
304
320
  request: VoidRequest;
305
321
  metadata: Context$8;
306
322
  }
307
- declare const provideHandlers$h: ServicePluginDefinition$8<{
323
+ declare const provideHandlers$h: ServicePluginDefinition<{
308
324
  /**
309
325
  *
310
326
  * This method retrieves gift card data from your app.
@@ -322,7 +338,7 @@ declare const provideHandlers$h: ServicePluginDefinition$8<{
322
338
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
323
339
  }>;
324
340
 
325
- declare function createServicePluginModule$8<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$8<T> & T;
341
+ declare function createServicePluginModule$8<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
326
342
 
327
343
  type _publicProvideHandlersType$8 = typeof provideHandlers$h;
328
344
  declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
@@ -413,7 +429,7 @@ interface ServiceProperties$1 {
413
429
  * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
414
430
  * For example, the start time of a class.
415
431
  */
416
- scheduledDate?: Date;
432
+ scheduledDate?: Date | null;
417
433
  /** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
418
434
  numberOfParticipants?: number | null;
419
435
  }
@@ -445,7 +461,7 @@ interface Membership$1 {
445
461
  /** Total and remaining membership credits. */
446
462
  credits?: MembershipPaymentCredits$1;
447
463
  /** Membership expiration date. */
448
- expirationDate?: Date;
464
+ expirationDate?: Date | null;
449
465
  /** Additional data about this membership. */
450
466
  additionalData?: Record<string, any> | null;
451
467
  }
@@ -597,11 +613,11 @@ interface OutOfCredits {
597
613
  }
598
614
  interface NotStartedYet {
599
615
  /** Start date of the membership. */
600
- membershipStartDate?: Date;
616
+ membershipStartDate?: Date | null;
601
617
  }
602
618
  interface Ended {
603
619
  /** End date of the membership. */
604
- endDate?: Date;
620
+ endDate?: Date | null;
605
621
  }
606
622
  interface MembershipAlreadyChargedError {
607
623
  /** ID of the transaction that was already used for membership charge. */
@@ -702,6 +718,10 @@ declare class InvalidSelectionWixError extends Error {
702
718
  name: string;
703
719
  /** @hidden */
704
720
  errorSchemaName: string;
721
+ /** @hidden */
722
+ errorType: string;
723
+ /** @hidden */
724
+ spiErrorData: object;
705
725
  data: MembershipInvalidSelectionErrors;
706
726
  constructor(data: MembershipInvalidSelectionErrors);
707
727
  /** @hidden */
@@ -719,6 +739,10 @@ declare class MembershipDoesNotApplyToItemWixError extends Error {
719
739
  applicationCode: string;
720
740
  /** @hidden */
721
741
  name: string;
742
+ /** @hidden */
743
+ errorType: string;
744
+ /** @hidden */
745
+ spiErrorData: object;
722
746
  constructor();
723
747
  /** @hidden */
724
748
  static readonly __type = "wix_spi_error";
@@ -737,6 +761,10 @@ declare class MembershipCannotBeUsedWixError extends Error {
737
761
  name: string;
738
762
  /** @hidden */
739
763
  errorSchemaName: string;
764
+ /** @hidden */
765
+ errorType: string;
766
+ /** @hidden */
767
+ spiErrorData: object;
740
768
  data: MembershipCannotBeChargedError;
741
769
  constructor(data: MembershipCannotBeChargedError);
742
770
  /** @hidden */
@@ -756,6 +784,10 @@ declare class MembershipAlreadyChargedWixError extends Error {
756
784
  name: string;
757
785
  /** @hidden */
758
786
  errorSchemaName: string;
787
+ /** @hidden */
788
+ errorType: string;
789
+ /** @hidden */
790
+ spiErrorData: object;
759
791
  data: MembershipAlreadyChargedError;
760
792
  constructor(data: MembershipAlreadyChargedError);
761
793
  /** @hidden */
@@ -773,6 +805,10 @@ declare class TransactionNotFoundWixError extends Error {
773
805
  applicationCode: string;
774
806
  /** @hidden */
775
807
  name: string;
808
+ /** @hidden */
809
+ errorType: string;
810
+ /** @hidden */
811
+ spiErrorData: object;
776
812
  constructor();
777
813
  /** @hidden */
778
814
  static readonly __type = "wix_spi_error";
@@ -789,6 +825,10 @@ declare class TransactionCannotBeVoidedWixError extends Error {
789
825
  applicationCode: string;
790
826
  /** @hidden */
791
827
  name: string;
828
+ /** @hidden */
829
+ errorType: string;
830
+ /** @hidden */
831
+ spiErrorData: object;
792
832
  constructor();
793
833
  /** @hidden */
794
834
  static readonly __type = "wix_spi_error";
@@ -805,45 +845,15 @@ declare class TransactionAlreadyVoidedWixError extends Error {
805
845
  applicationCode: string;
806
846
  /** @hidden */
807
847
  name: string;
848
+ /** @hidden */
849
+ errorType: string;
850
+ /** @hidden */
851
+ spiErrorData: object;
808
852
  constructor();
809
853
  /** @hidden */
810
854
  static readonly __type = "wix_spi_error";
811
855
  }
812
856
 
813
- type ServicePluginMethodInput$7 = {
814
- request: any;
815
- metadata: any;
816
- };
817
- type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
818
- type ServicePluginMethodMetadata$7 = {
819
- name: string;
820
- primaryHttpMappingPath: string;
821
- transformations: {
822
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
823
- toREST: (...args: unknown[]) => unknown;
824
- };
825
- };
826
- type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
827
- __type: 'service-plugin-definition';
828
- componentType: string;
829
- methods: ServicePluginMethodMetadata$7[];
830
- __contract: Contract;
831
- };
832
- declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
833
- type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
834
-
835
- declare global {
836
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
837
- interface SymbolConstructor {
838
- readonly observable: symbol;
839
- }
840
- }
841
-
842
- declare global {
843
- interface ContextualClient {
844
- }
845
- }
846
-
847
857
  interface ListEligibleMembershipsEnvelope {
848
858
  request: ListEligibleMembershipsRequest;
849
859
  metadata: Context$7;
@@ -860,7 +870,7 @@ interface VoidMembershipChargeEnvelope {
860
870
  request: VoidMembershipChargeRequest;
861
871
  metadata: Context$7;
862
872
  }
863
- declare const provideHandlers$f: ServicePluginDefinition$7<{
873
+ declare const provideHandlers$f: ServicePluginDefinition<{
864
874
  /**
865
875
  *
866
876
  * This method retrieves eligible memberships from your app. */
@@ -879,7 +889,7 @@ declare const provideHandlers$f: ServicePluginDefinition$7<{
879
889
  voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
880
890
  }>;
881
891
 
882
- declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
892
+ declare function createServicePluginModule$7<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
883
893
 
884
894
  type _publicProvideHandlersType$7 = typeof provideHandlers$f;
885
895
  declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
@@ -1074,6 +1084,8 @@ declare class AlgorithmNotSupportedWixError extends Error {
1074
1084
  name: string;
1075
1085
  /** @hidden */
1076
1086
  errorSchemaName: string;
1087
+ /** @hidden */
1088
+ errorType: string;
1077
1089
  data: RecommendationAlgorithmNotSupported;
1078
1090
  constructor(data: RecommendationAlgorithmNotSupported);
1079
1091
  /** @hidden */
@@ -1090,51 +1102,19 @@ declare class ItemAppIdNotSupportedWixError extends Error {
1090
1102
  name: string;
1091
1103
  /** @hidden */
1092
1104
  errorSchemaName: string;
1105
+ /** @hidden */
1106
+ errorType: string;
1093
1107
  data: ItemAppIdNotSupportedError;
1094
1108
  constructor(data: ItemAppIdNotSupportedError);
1095
1109
  /** @hidden */
1096
1110
  static readonly __type = "wix_spi_error";
1097
1111
  }
1098
1112
 
1099
- type ServicePluginMethodInput$6 = {
1100
- request: any;
1101
- metadata: any;
1102
- };
1103
- type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1104
- type ServicePluginMethodMetadata$6 = {
1105
- name: string;
1106
- primaryHttpMappingPath: string;
1107
- transformations: {
1108
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1109
- toREST: (...args: unknown[]) => unknown;
1110
- };
1111
- };
1112
- type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1113
- __type: 'service-plugin-definition';
1114
- componentType: string;
1115
- methods: ServicePluginMethodMetadata$6[];
1116
- __contract: Contract;
1117
- };
1118
- declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1119
- type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1120
-
1121
- declare global {
1122
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1123
- interface SymbolConstructor {
1124
- readonly observable: symbol;
1125
- }
1126
- }
1127
-
1128
- declare global {
1129
- interface ContextualClient {
1130
- }
1131
- }
1132
-
1133
1113
  interface GetRecommendationsEnvelope {
1134
1114
  request: GetRecommendationsRequest;
1135
1115
  metadata: Context$6;
1136
1116
  }
1137
- declare const provideHandlers$d: ServicePluginDefinition$6<{
1117
+ declare const provideHandlers$d: ServicePluginDefinition<{
1138
1118
  /**
1139
1119
  *
1140
1120
  * Returns lists of items recommended by each requested algorithm.
@@ -1144,7 +1124,7 @@ declare const provideHandlers$d: ServicePluginDefinition$6<{
1144
1124
  getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
1145
1125
  }>;
1146
1126
 
1147
- declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
1127
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1148
1128
 
1149
1129
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
1150
1130
  declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
@@ -1414,9 +1394,9 @@ declare enum PickupMethod$2 {
1414
1394
  }
1415
1395
  interface DeliveryTimeSlot$1 {
1416
1396
  /** starting time of the delivery time slot */
1417
- from?: Date;
1397
+ from?: Date | null;
1418
1398
  /** ending time of the delivery time slot */
1419
- to?: Date;
1399
+ to?: Date | null;
1420
1400
  }
1421
1401
  interface ShippingPrice$1 {
1422
1402
  /** The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). */
@@ -1628,6 +1608,8 @@ declare class MissingPostalCodeWixError extends Error {
1628
1608
  name: string;
1629
1609
  /** @hidden */
1630
1610
  errorSchemaName: string;
1611
+ /** @hidden */
1612
+ errorType: string;
1631
1613
  data: MissingPostalCodeError;
1632
1614
  constructor(data: MissingPostalCodeError);
1633
1615
  /** @hidden */
@@ -1653,6 +1635,8 @@ declare class InvalidPostalCodeWixError extends Error {
1653
1635
  name: string;
1654
1636
  /** @hidden */
1655
1637
  errorSchemaName: string;
1638
+ /** @hidden */
1639
+ errorType: string;
1656
1640
  data: InvalidPostalCodeError;
1657
1641
  constructor(data: InvalidPostalCodeError);
1658
1642
  /** @hidden */
@@ -1677,6 +1661,8 @@ declare class InvalidAddressWixError extends Error {
1677
1661
  name: string;
1678
1662
  /** @hidden */
1679
1663
  errorSchemaName: string;
1664
+ /** @hidden */
1665
+ errorType: string;
1680
1666
  data: InvalidAddressError;
1681
1667
  constructor(data: InvalidAddressError);
1682
1668
  /** @hidden */
@@ -1701,51 +1687,19 @@ declare class GenericShippingRatesWixError extends Error {
1701
1687
  name: string;
1702
1688
  /** @hidden */
1703
1689
  errorSchemaName: string;
1690
+ /** @hidden */
1691
+ errorType: string;
1704
1692
  data: GenericShippingRatesError;
1705
1693
  constructor(data: GenericShippingRatesError);
1706
1694
  /** @hidden */
1707
1695
  static readonly __type = "wix_spi_error";
1708
1696
  }
1709
1697
 
1710
- type ServicePluginMethodInput$5 = {
1711
- request: any;
1712
- metadata: any;
1713
- };
1714
- type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
1715
- type ServicePluginMethodMetadata$5 = {
1716
- name: string;
1717
- primaryHttpMappingPath: string;
1718
- transformations: {
1719
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
1720
- toREST: (...args: unknown[]) => unknown;
1721
- };
1722
- };
1723
- type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
1724
- __type: 'service-plugin-definition';
1725
- componentType: string;
1726
- methods: ServicePluginMethodMetadata$5[];
1727
- __contract: Contract;
1728
- };
1729
- declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
1730
- type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
1731
-
1732
- declare global {
1733
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1734
- interface SymbolConstructor {
1735
- readonly observable: symbol;
1736
- }
1737
- }
1738
-
1739
- declare global {
1740
- interface ContextualClient {
1741
- }
1742
- }
1743
-
1744
1698
  interface GetShippingRatesEnvelope {
1745
1699
  request: GetShippingRatesRequest;
1746
1700
  metadata: Context$5;
1747
1701
  }
1748
- declare const provideHandlers$b: ServicePluginDefinition$5<{
1702
+ declare const provideHandlers$b: ServicePluginDefinition<{
1749
1703
  /**
1750
1704
  *
1751
1705
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -1756,7 +1710,7 @@ declare const provideHandlers$b: ServicePluginDefinition$5<{
1756
1710
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1757
1711
  }>;
1758
1712
 
1759
- declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1713
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1760
1714
 
1761
1715
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
1762
1716
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -2173,45 +2127,11 @@ interface IdentificationDataIdOneOf$4 {
2173
2127
  appId?: string;
2174
2128
  }
2175
2129
 
2176
- type ServicePluginMethodInput$4 = {
2177
- request: any;
2178
- metadata: any;
2179
- };
2180
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2181
- type ServicePluginMethodMetadata$4 = {
2182
- name: string;
2183
- primaryHttpMappingPath: string;
2184
- transformations: {
2185
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2186
- toREST: (...args: unknown[]) => unknown;
2187
- };
2188
- };
2189
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2190
- __type: 'service-plugin-definition';
2191
- componentType: string;
2192
- methods: ServicePluginMethodMetadata$4[];
2193
- __contract: Contract;
2194
- };
2195
- declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2196
- type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2197
-
2198
- declare global {
2199
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2200
- interface SymbolConstructor {
2201
- readonly observable: symbol;
2202
- }
2203
- }
2204
-
2205
- declare global {
2206
- interface ContextualClient {
2207
- }
2208
- }
2209
-
2210
2130
  interface CalculateAdditionalFeesEnvelope {
2211
2131
  request: CalculateAdditionalFeesRequest;
2212
2132
  metadata: Context$4;
2213
2133
  }
2214
- declare const provideHandlers$9: ServicePluginDefinition$4<{
2134
+ declare const provideHandlers$9: ServicePluginDefinition<{
2215
2135
  /**
2216
2136
  *
2217
2137
  * This method retrieves additional fees calculated by your app.
@@ -2225,7 +2145,7 @@ declare const provideHandlers$9: ServicePluginDefinition$4<{
2225
2145
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
2226
2146
  }>;
2227
2147
 
2228
- declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
2148
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2229
2149
 
2230
2150
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
2231
2151
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -2376,40 +2296,6 @@ interface IdentificationDataIdOneOf$3 {
2376
2296
  appId?: string;
2377
2297
  }
2378
2298
 
2379
- type ServicePluginMethodInput$3 = {
2380
- request: any;
2381
- metadata: any;
2382
- };
2383
- type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
2384
- type ServicePluginMethodMetadata$3 = {
2385
- name: string;
2386
- primaryHttpMappingPath: string;
2387
- transformations: {
2388
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
2389
- toREST: (...args: unknown[]) => unknown;
2390
- };
2391
- };
2392
- type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
2393
- __type: 'service-plugin-definition';
2394
- componentType: string;
2395
- methods: ServicePluginMethodMetadata$3[];
2396
- __contract: Contract;
2397
- };
2398
- declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
2399
- type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
2400
-
2401
- declare global {
2402
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2403
- interface SymbolConstructor {
2404
- readonly observable: symbol;
2405
- }
2406
- }
2407
-
2408
- declare global {
2409
- interface ContextualClient {
2410
- }
2411
- }
2412
-
2413
2299
  interface ListTriggersEnvelope {
2414
2300
  request: ListTriggersRequest;
2415
2301
  metadata: Context$3;
@@ -2418,7 +2304,7 @@ interface GetEligibleTriggersEnvelope {
2418
2304
  request: GetEligibleTriggersRequest;
2419
2305
  metadata: Context$3;
2420
2306
  }
2421
- declare const provideHandlers$7: ServicePluginDefinition$3<{
2307
+ declare const provideHandlers$7: ServicePluginDefinition<{
2422
2308
  /**
2423
2309
  *
2424
2310
  * Lists all custom triggers provided by your service plugin integration.
@@ -2434,7 +2320,7 @@ declare const provideHandlers$7: ServicePluginDefinition$3<{
2434
2320
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
2435
2321
  }>;
2436
2322
 
2437
- declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
2323
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2438
2324
 
2439
2325
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
2440
2326
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -2663,6 +2549,8 @@ declare class CouponLimitPerCustomerExceededWixError extends Error {
2663
2549
  applicationCode: string;
2664
2550
  /** @hidden */
2665
2551
  name: string;
2552
+ /** @hidden */
2553
+ errorType: string;
2666
2554
  constructor();
2667
2555
  /** @hidden */
2668
2556
  static readonly __type = "wix_spi_error";
@@ -2676,6 +2564,8 @@ declare class CouponIsDisabledWixError extends Error {
2676
2564
  applicationCode: string;
2677
2565
  /** @hidden */
2678
2566
  name: string;
2567
+ /** @hidden */
2568
+ errorType: string;
2679
2569
  constructor();
2680
2570
  /** @hidden */
2681
2571
  static readonly __type = "wix_spi_error";
@@ -2689,6 +2579,8 @@ declare class CouponUsageExceededWixError extends Error {
2689
2579
  applicationCode: string;
2690
2580
  /** @hidden */
2691
2581
  name: string;
2582
+ /** @hidden */
2583
+ errorType: string;
2692
2584
  constructor();
2693
2585
  /** @hidden */
2694
2586
  static readonly __type = "wix_spi_error";
@@ -2702,6 +2594,8 @@ declare class CouponHasExpiredWixError extends Error {
2702
2594
  applicationCode: string;
2703
2595
  /** @hidden */
2704
2596
  name: string;
2597
+ /** @hidden */
2598
+ errorType: string;
2705
2599
  constructor();
2706
2600
  /** @hidden */
2707
2601
  static readonly __type = "wix_spi_error";
@@ -2715,6 +2609,8 @@ declare class CouponIsNotActiveYetWixError extends Error {
2715
2609
  applicationCode: string;
2716
2610
  /** @hidden */
2717
2611
  name: string;
2612
+ /** @hidden */
2613
+ errorType: string;
2718
2614
  constructor();
2719
2615
  /** @hidden */
2720
2616
  static readonly __type = "wix_spi_error";
@@ -2728,50 +2624,18 @@ declare class CouponDoesNotExistWixError extends Error {
2728
2624
  applicationCode: string;
2729
2625
  /** @hidden */
2730
2626
  name: string;
2627
+ /** @hidden */
2628
+ errorType: string;
2731
2629
  constructor();
2732
2630
  /** @hidden */
2733
2631
  static readonly __type = "wix_spi_error";
2734
2632
  }
2735
2633
 
2736
- type ServicePluginMethodInput$2 = {
2737
- request: any;
2738
- metadata: any;
2739
- };
2740
- type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
2741
- type ServicePluginMethodMetadata$2 = {
2742
- name: string;
2743
- primaryHttpMappingPath: string;
2744
- transformations: {
2745
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
2746
- toREST: (...args: unknown[]) => unknown;
2747
- };
2748
- };
2749
- type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
2750
- __type: 'service-plugin-definition';
2751
- componentType: string;
2752
- methods: ServicePluginMethodMetadata$2[];
2753
- __contract: Contract;
2754
- };
2755
- declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
2756
- type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
2757
-
2758
- declare global {
2759
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2760
- interface SymbolConstructor {
2761
- readonly observable: symbol;
2762
- }
2763
- }
2764
-
2765
- declare global {
2766
- interface ContextualClient {
2767
- }
2768
- }
2769
-
2770
2634
  interface GetEligibleDiscountsEnvelope {
2771
2635
  request: GetEligibleDiscountsRequest;
2772
2636
  metadata: Context$2;
2773
2637
  }
2774
- declare const provideHandlers$5: ServicePluginDefinition$2<{
2638
+ declare const provideHandlers$5: ServicePluginDefinition<{
2775
2639
  /**
2776
2640
  *
2777
2641
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -2779,7 +2643,7 @@ declare const provideHandlers$5: ServicePluginDefinition$2<{
2779
2643
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2780
2644
  }>;
2781
2645
 
2782
- declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2646
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2783
2647
 
2784
2648
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
2785
2649
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -2838,12 +2702,12 @@ interface Order {
2838
2702
  * Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
2839
2703
  * @readonly
2840
2704
  */
2841
- _createdDate?: Date;
2705
+ _createdDate?: Date | null;
2842
2706
  /**
2843
2707
  * Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
2844
2708
  * @readonly
2845
2709
  */
2846
- _updatedDate?: Date;
2710
+ _updatedDate?: Date | null;
2847
2711
  /**
2848
2712
  * Order line items.
2849
2713
  * @readonly
@@ -3269,7 +3133,7 @@ interface DigitalFile {
3269
3133
  * Link expiration time and date.
3270
3134
  * @readonly
3271
3135
  */
3272
- expirationDate?: Date;
3136
+ expirationDate?: Date | null;
3273
3137
  }
3274
3138
  interface SubscriptionInfo {
3275
3139
  /** Subscription ID. */
@@ -3499,7 +3363,7 @@ interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
3499
3363
  * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
3500
3364
  * @deprecated
3501
3365
  */
3502
- deliverByDate?: Date;
3366
+ deliverByDate?: Date | null;
3503
3367
  /** Expected delivery time. */
3504
3368
  deliveryTimeSlot?: DeliveryTimeSlot;
3505
3369
  }
@@ -3540,9 +3404,9 @@ declare enum PickupMethod {
3540
3404
  }
3541
3405
  interface DeliveryTimeSlot {
3542
3406
  /** Delivery slot starting time. */
3543
- from?: Date;
3407
+ from?: Date | null;
3544
3408
  /** Delivery slot ending time. */
3545
- to?: Date;
3409
+ to?: Date | null;
3546
3410
  }
3547
3411
  interface ShippingPrice {
3548
3412
  /** Shipping price for display purposes. */
@@ -3722,7 +3586,7 @@ interface Activity extends ActivityContentOneOf {
3722
3586
  * Activity creation date and time.
3723
3587
  * @readonly
3724
3588
  */
3725
- _createdDate?: Date;
3589
+ _createdDate?: Date | null;
3726
3590
  /** Activity type. */
3727
3591
  type?: ActivityType;
3728
3592
  }
@@ -4365,12 +4229,12 @@ interface Checkout {
4365
4229
  * Date and time the checkout was created.
4366
4230
  * @readonly
4367
4231
  */
4368
- _createdDate?: Date;
4232
+ _createdDate?: Date | null;
4369
4233
  /**
4370
4234
  * Date and time the checkout was updated.
4371
4235
  * @readonly
4372
4236
  */
4373
- _updatedDate?: Date;
4237
+ _updatedDate?: Date | null;
4374
4238
  /**
4375
4239
  * Minimal amount to pay in order to place the order.
4376
4240
  * @readonly
@@ -4735,7 +4599,7 @@ interface ServiceProperties {
4735
4599
  * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
4736
4600
  * For example, the start time of a class.
4737
4601
  */
4738
- scheduledDate?: Date;
4602
+ scheduledDate?: Date | null;
4739
4603
  /** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
4740
4604
  numberOfParticipants?: number | null;
4741
4605
  }
@@ -4837,9 +4701,9 @@ declare enum PickupDetailsPickupMethod {
4837
4701
  }
4838
4702
  interface V1DeliveryTimeSlot {
4839
4703
  /** starting time of the delivery time slot */
4840
- from?: Date;
4704
+ from?: Date | null;
4841
4705
  /** ending time of the delivery time slot */
4842
- to?: Date;
4706
+ to?: Date | null;
4843
4707
  }
4844
4708
  interface SelectedCarrierServiceOptionPrices$1 {
4845
4709
  /** Total shipping price, after discount and after tax. */
@@ -5301,7 +5165,7 @@ interface Membership {
5301
5165
  /** Optional - For a membership that has limited credits, information about credit usage. */
5302
5166
  credits?: MembershipPaymentCredits;
5303
5167
  /** Optional - TMembership expiry date. */
5304
- expirationDate?: Date;
5168
+ expirationDate?: Date | null;
5305
5169
  /** Additional data about this membership. */
5306
5170
  additionalData?: Record<string, any> | null;
5307
5171
  }
@@ -5556,40 +5420,6 @@ interface IdentificationDataIdOneOf$1 {
5556
5420
  appId?: string;
5557
5421
  }
5558
5422
 
5559
- type ServicePluginMethodInput$1 = {
5560
- request: any;
5561
- metadata: any;
5562
- };
5563
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
5564
- type ServicePluginMethodMetadata$1 = {
5565
- name: string;
5566
- primaryHttpMappingPath: string;
5567
- transformations: {
5568
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
5569
- toREST: (...args: unknown[]) => unknown;
5570
- };
5571
- };
5572
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
5573
- __type: 'service-plugin-definition';
5574
- componentType: string;
5575
- methods: ServicePluginMethodMetadata$1[];
5576
- __contract: Contract;
5577
- };
5578
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
5579
- type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
5580
-
5581
- declare global {
5582
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5583
- interface SymbolConstructor {
5584
- readonly observable: symbol;
5585
- }
5586
- }
5587
-
5588
- declare global {
5589
- interface ContextualClient {
5590
- }
5591
- }
5592
-
5593
5423
  interface GetPaymentSettingsEnvelope {
5594
5424
  request: GetPaymentSettingsRequest;
5595
5425
  metadata: Context$1;
@@ -5598,7 +5428,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
5598
5428
  request: GetPaymentSettingsForCheckoutRequest;
5599
5429
  metadata: Context$1;
5600
5430
  }
5601
- declare const provideHandlers$3: ServicePluginDefinition$1<{
5431
+ declare const provideHandlers$3: ServicePluginDefinition<{
5602
5432
  /**
5603
5433
  *
5604
5434
  * This method retrieves payment settings from your app.
@@ -5611,7 +5441,7 @@ declare const provideHandlers$3: ServicePluginDefinition$1<{
5611
5441
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5612
5442
  }>;
5613
5443
 
5614
- declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
5444
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5615
5445
 
5616
5446
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
5617
5447
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -6454,40 +6284,6 @@ interface IdentificationDataIdOneOf {
6454
6284
  appId?: string;
6455
6285
  }
6456
6286
 
6457
- type ServicePluginMethodInput = {
6458
- request: any;
6459
- metadata: any;
6460
- };
6461
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
6462
- type ServicePluginMethodMetadata = {
6463
- name: string;
6464
- primaryHttpMappingPath: string;
6465
- transformations: {
6466
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
6467
- toREST: (...args: unknown[]) => unknown;
6468
- };
6469
- };
6470
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
6471
- __type: 'service-plugin-definition';
6472
- componentType: string;
6473
- methods: ServicePluginMethodMetadata[];
6474
- __contract: Contract;
6475
- };
6476
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
6477
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
6478
-
6479
- declare global {
6480
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6481
- interface SymbolConstructor {
6482
- readonly observable: symbol;
6483
- }
6484
- }
6485
-
6486
- declare global {
6487
- interface ContextualClient {
6488
- }
6489
- }
6490
-
6491
6287
  interface GetValidationViolationsEnvelope {
6492
6288
  request: GetValidationViolationsRequest;
6493
6289
  metadata: Context;