@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.
- package/package.json +36 -36
- package/type-bundles/context.bundle.d.ts +1396 -14302
- package/type-bundles/index.bundle.d.ts +1396 -14302
- package/type-bundles/meta.bundle.d.ts +156 -156
- package/type-bundles/service-plugins-context.bundle.d.ts +111 -315
- package/type-bundles/service-plugins.bundle.d.ts +111 -315
|
@@ -129,27 +129,27 @@ interface IdentificationDataIdOneOf$8 {
|
|
|
129
129
|
appId?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
type ServicePluginMethodInput
|
|
132
|
+
type ServicePluginMethodInput = {
|
|
133
133
|
request: any;
|
|
134
134
|
metadata: any;
|
|
135
135
|
};
|
|
136
|
-
type ServicePluginContract
|
|
137
|
-
type ServicePluginMethodMetadata
|
|
136
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
137
|
+
type ServicePluginMethodMetadata = {
|
|
138
138
|
name: string;
|
|
139
139
|
primaryHttpMappingPath: string;
|
|
140
140
|
transformations: {
|
|
141
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
141
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
142
142
|
toREST: (...args: unknown[]) => unknown;
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
type ServicePluginDefinition
|
|
145
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
146
146
|
__type: 'service-plugin-definition';
|
|
147
147
|
componentType: string;
|
|
148
|
-
methods: ServicePluginMethodMetadata
|
|
148
|
+
methods: ServicePluginMethodMetadata[];
|
|
149
149
|
__contract: Contract;
|
|
150
150
|
};
|
|
151
|
-
declare function ServicePluginDefinition
|
|
152
|
-
type BuildServicePluginDefinition
|
|
151
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
152
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
153
153
|
|
|
154
154
|
declare global {
|
|
155
155
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -175,7 +175,7 @@ interface _voidEnvelope {
|
|
|
175
175
|
request: VoidRequest;
|
|
176
176
|
metadata: Context$8;
|
|
177
177
|
}
|
|
178
|
-
declare const provideHandlers$h: ServicePluginDefinition
|
|
178
|
+
declare const provideHandlers$h: ServicePluginDefinition<{
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
181
|
* This method retrieves gift card data from your app.
|
|
@@ -193,7 +193,7 @@ declare const provideHandlers$h: ServicePluginDefinition$8<{
|
|
|
193
193
|
_void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
|
|
194
194
|
}>;
|
|
195
195
|
|
|
196
|
-
declare function createServicePluginModule$8<T extends ServicePluginDefinition
|
|
196
|
+
declare function createServicePluginModule$8<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
197
197
|
|
|
198
198
|
type _publicProvideHandlersType$8 = typeof provideHandlers$h;
|
|
199
199
|
declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
|
|
@@ -210,6 +210,8 @@ declare class GiftCardNotFoundWixError extends Error {
|
|
|
210
210
|
applicationCode: string;
|
|
211
211
|
/** @hidden */
|
|
212
212
|
name: string;
|
|
213
|
+
/** @hidden */
|
|
214
|
+
errorType: string;
|
|
213
215
|
constructor();
|
|
214
216
|
/** @hidden */
|
|
215
217
|
static readonly __type = "wix_spi_error";
|
|
@@ -226,6 +228,8 @@ declare class GiftCardDisabledWixError extends Error {
|
|
|
226
228
|
applicationCode: string;
|
|
227
229
|
/** @hidden */
|
|
228
230
|
name: string;
|
|
231
|
+
/** @hidden */
|
|
232
|
+
errorType: string;
|
|
229
233
|
constructor();
|
|
230
234
|
/** @hidden */
|
|
231
235
|
static readonly __type = "wix_spi_error";
|
|
@@ -242,6 +246,8 @@ declare class GiftCardExpiredWixError extends Error {
|
|
|
242
246
|
applicationCode: string;
|
|
243
247
|
/** @hidden */
|
|
244
248
|
name: string;
|
|
249
|
+
/** @hidden */
|
|
250
|
+
errorType: string;
|
|
245
251
|
constructor();
|
|
246
252
|
/** @hidden */
|
|
247
253
|
static readonly __type = "wix_spi_error";
|
|
@@ -258,6 +264,8 @@ declare class InsufficientFundsWixError extends Error {
|
|
|
258
264
|
applicationCode: string;
|
|
259
265
|
/** @hidden */
|
|
260
266
|
name: string;
|
|
267
|
+
/** @hidden */
|
|
268
|
+
errorType: string;
|
|
261
269
|
constructor();
|
|
262
270
|
/** @hidden */
|
|
263
271
|
static readonly __type = "wix_spi_error";
|
|
@@ -274,6 +282,8 @@ declare class AlreadyRedeemedWixError extends Error {
|
|
|
274
282
|
applicationCode: string;
|
|
275
283
|
/** @hidden */
|
|
276
284
|
name: string;
|
|
285
|
+
/** @hidden */
|
|
286
|
+
errorType: string;
|
|
277
287
|
constructor();
|
|
278
288
|
/** @hidden */
|
|
279
289
|
static readonly __type = "wix_spi_error";
|
|
@@ -290,6 +300,8 @@ declare class CurrencyNotSupportedWixError extends Error {
|
|
|
290
300
|
applicationCode: string;
|
|
291
301
|
/** @hidden */
|
|
292
302
|
name: string;
|
|
303
|
+
/** @hidden */
|
|
304
|
+
errorType: string;
|
|
293
305
|
constructor();
|
|
294
306
|
/** @hidden */
|
|
295
307
|
static readonly __type = "wix_spi_error";
|
|
@@ -306,6 +318,8 @@ declare class TransactionNotFoundWixError$1 extends Error {
|
|
|
306
318
|
applicationCode: string;
|
|
307
319
|
/** @hidden */
|
|
308
320
|
name: string;
|
|
321
|
+
/** @hidden */
|
|
322
|
+
errorType: string;
|
|
309
323
|
constructor();
|
|
310
324
|
/** @hidden */
|
|
311
325
|
static readonly __type = "wix_spi_error";
|
|
@@ -322,6 +336,8 @@ declare class AlreadyVoidedWixError extends Error {
|
|
|
322
336
|
applicationCode: string;
|
|
323
337
|
/** @hidden */
|
|
324
338
|
name: string;
|
|
339
|
+
/** @hidden */
|
|
340
|
+
errorType: string;
|
|
325
341
|
constructor();
|
|
326
342
|
/** @hidden */
|
|
327
343
|
static readonly __type = "wix_spi_error";
|
|
@@ -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. */
|
|
@@ -688,40 +704,6 @@ interface IdentificationDataIdOneOf$7 {
|
|
|
688
704
|
appId?: string;
|
|
689
705
|
}
|
|
690
706
|
|
|
691
|
-
type ServicePluginMethodInput$7 = {
|
|
692
|
-
request: any;
|
|
693
|
-
metadata: any;
|
|
694
|
-
};
|
|
695
|
-
type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
|
|
696
|
-
type ServicePluginMethodMetadata$7 = {
|
|
697
|
-
name: string;
|
|
698
|
-
primaryHttpMappingPath: string;
|
|
699
|
-
transformations: {
|
|
700
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
|
|
701
|
-
toREST: (...args: unknown[]) => unknown;
|
|
702
|
-
};
|
|
703
|
-
};
|
|
704
|
-
type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
|
|
705
|
-
__type: 'service-plugin-definition';
|
|
706
|
-
componentType: string;
|
|
707
|
-
methods: ServicePluginMethodMetadata$7[];
|
|
708
|
-
__contract: Contract;
|
|
709
|
-
};
|
|
710
|
-
declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
|
|
711
|
-
type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
|
|
712
|
-
|
|
713
|
-
declare global {
|
|
714
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
715
|
-
interface SymbolConstructor {
|
|
716
|
-
readonly observable: symbol;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
declare global {
|
|
721
|
-
interface ContextualClient {
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
|
|
725
707
|
interface ListEligibleMembershipsEnvelope {
|
|
726
708
|
request: ListEligibleMembershipsRequest;
|
|
727
709
|
metadata: Context$7;
|
|
@@ -738,7 +720,7 @@ interface VoidMembershipChargeEnvelope {
|
|
|
738
720
|
request: VoidMembershipChargeRequest;
|
|
739
721
|
metadata: Context$7;
|
|
740
722
|
}
|
|
741
|
-
declare const provideHandlers$f: ServicePluginDefinition
|
|
723
|
+
declare const provideHandlers$f: ServicePluginDefinition<{
|
|
742
724
|
/**
|
|
743
725
|
*
|
|
744
726
|
* This method retrieves eligible memberships from your app. */
|
|
@@ -757,7 +739,7 @@ declare const provideHandlers$f: ServicePluginDefinition$7<{
|
|
|
757
739
|
voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
|
|
758
740
|
}>;
|
|
759
741
|
|
|
760
|
-
declare function createServicePluginModule$7<T extends ServicePluginDefinition
|
|
742
|
+
declare function createServicePluginModule$7<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
761
743
|
|
|
762
744
|
type _publicProvideHandlersType$7 = typeof provideHandlers$f;
|
|
763
745
|
declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
|
|
@@ -776,6 +758,10 @@ declare class InvalidSelectionWixError extends Error {
|
|
|
776
758
|
name: string;
|
|
777
759
|
/** @hidden */
|
|
778
760
|
errorSchemaName: string;
|
|
761
|
+
/** @hidden */
|
|
762
|
+
errorType: string;
|
|
763
|
+
/** @hidden */
|
|
764
|
+
spiErrorData: object;
|
|
779
765
|
data: MembershipInvalidSelectionErrors;
|
|
780
766
|
constructor(data: MembershipInvalidSelectionErrors);
|
|
781
767
|
/** @hidden */
|
|
@@ -793,6 +779,10 @@ declare class MembershipDoesNotApplyToItemWixError extends Error {
|
|
|
793
779
|
applicationCode: string;
|
|
794
780
|
/** @hidden */
|
|
795
781
|
name: string;
|
|
782
|
+
/** @hidden */
|
|
783
|
+
errorType: string;
|
|
784
|
+
/** @hidden */
|
|
785
|
+
spiErrorData: object;
|
|
796
786
|
constructor();
|
|
797
787
|
/** @hidden */
|
|
798
788
|
static readonly __type = "wix_spi_error";
|
|
@@ -811,6 +801,10 @@ declare class MembershipCannotBeUsedWixError extends Error {
|
|
|
811
801
|
name: string;
|
|
812
802
|
/** @hidden */
|
|
813
803
|
errorSchemaName: string;
|
|
804
|
+
/** @hidden */
|
|
805
|
+
errorType: string;
|
|
806
|
+
/** @hidden */
|
|
807
|
+
spiErrorData: object;
|
|
814
808
|
data: MembershipCannotBeChargedError;
|
|
815
809
|
constructor(data: MembershipCannotBeChargedError);
|
|
816
810
|
/** @hidden */
|
|
@@ -830,6 +824,10 @@ declare class MembershipAlreadyChargedWixError extends Error {
|
|
|
830
824
|
name: string;
|
|
831
825
|
/** @hidden */
|
|
832
826
|
errorSchemaName: string;
|
|
827
|
+
/** @hidden */
|
|
828
|
+
errorType: string;
|
|
829
|
+
/** @hidden */
|
|
830
|
+
spiErrorData: object;
|
|
833
831
|
data: MembershipAlreadyChargedError;
|
|
834
832
|
constructor(data: MembershipAlreadyChargedError);
|
|
835
833
|
/** @hidden */
|
|
@@ -847,6 +845,10 @@ declare class TransactionNotFoundWixError extends Error {
|
|
|
847
845
|
applicationCode: string;
|
|
848
846
|
/** @hidden */
|
|
849
847
|
name: string;
|
|
848
|
+
/** @hidden */
|
|
849
|
+
errorType: string;
|
|
850
|
+
/** @hidden */
|
|
851
|
+
spiErrorData: object;
|
|
850
852
|
constructor();
|
|
851
853
|
/** @hidden */
|
|
852
854
|
static readonly __type = "wix_spi_error";
|
|
@@ -863,6 +865,10 @@ declare class TransactionCannotBeVoidedWixError extends Error {
|
|
|
863
865
|
applicationCode: string;
|
|
864
866
|
/** @hidden */
|
|
865
867
|
name: string;
|
|
868
|
+
/** @hidden */
|
|
869
|
+
errorType: string;
|
|
870
|
+
/** @hidden */
|
|
871
|
+
spiErrorData: object;
|
|
866
872
|
constructor();
|
|
867
873
|
/** @hidden */
|
|
868
874
|
static readonly __type = "wix_spi_error";
|
|
@@ -879,6 +885,10 @@ declare class TransactionAlreadyVoidedWixError extends Error {
|
|
|
879
885
|
applicationCode: string;
|
|
880
886
|
/** @hidden */
|
|
881
887
|
name: string;
|
|
888
|
+
/** @hidden */
|
|
889
|
+
errorType: string;
|
|
890
|
+
/** @hidden */
|
|
891
|
+
spiErrorData: object;
|
|
882
892
|
constructor();
|
|
883
893
|
/** @hidden */
|
|
884
894
|
static readonly __type = "wix_spi_error";
|
|
@@ -1063,45 +1073,11 @@ interface IdentificationDataIdOneOf$6 {
|
|
|
1063
1073
|
appId?: string;
|
|
1064
1074
|
}
|
|
1065
1075
|
|
|
1066
|
-
type ServicePluginMethodInput$6 = {
|
|
1067
|
-
request: any;
|
|
1068
|
-
metadata: any;
|
|
1069
|
-
};
|
|
1070
|
-
type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
|
|
1071
|
-
type ServicePluginMethodMetadata$6 = {
|
|
1072
|
-
name: string;
|
|
1073
|
-
primaryHttpMappingPath: string;
|
|
1074
|
-
transformations: {
|
|
1075
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
|
|
1076
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
|
-
type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
|
|
1080
|
-
__type: 'service-plugin-definition';
|
|
1081
|
-
componentType: string;
|
|
1082
|
-
methods: ServicePluginMethodMetadata$6[];
|
|
1083
|
-
__contract: Contract;
|
|
1084
|
-
};
|
|
1085
|
-
declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
|
|
1086
|
-
type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
|
|
1087
|
-
|
|
1088
|
-
declare global {
|
|
1089
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1090
|
-
interface SymbolConstructor {
|
|
1091
|
-
readonly observable: symbol;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
declare global {
|
|
1096
|
-
interface ContextualClient {
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
1076
|
interface GetRecommendationsEnvelope {
|
|
1101
1077
|
request: GetRecommendationsRequest;
|
|
1102
1078
|
metadata: Context$6;
|
|
1103
1079
|
}
|
|
1104
|
-
declare const provideHandlers$d: ServicePluginDefinition
|
|
1080
|
+
declare const provideHandlers$d: ServicePluginDefinition<{
|
|
1105
1081
|
/**
|
|
1106
1082
|
*
|
|
1107
1083
|
* Returns lists of items recommended by each requested algorithm.
|
|
@@ -1111,7 +1087,7 @@ declare const provideHandlers$d: ServicePluginDefinition$6<{
|
|
|
1111
1087
|
getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
|
|
1112
1088
|
}>;
|
|
1113
1089
|
|
|
1114
|
-
declare function createServicePluginModule$6<T extends ServicePluginDefinition
|
|
1090
|
+
declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1115
1091
|
|
|
1116
1092
|
type _publicProvideHandlersType$6 = typeof provideHandlers$d;
|
|
1117
1093
|
declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
|
|
@@ -1127,6 +1103,8 @@ declare class AlgorithmNotSupportedWixError extends Error {
|
|
|
1127
1103
|
name: string;
|
|
1128
1104
|
/** @hidden */
|
|
1129
1105
|
errorSchemaName: string;
|
|
1106
|
+
/** @hidden */
|
|
1107
|
+
errorType: string;
|
|
1130
1108
|
data: RecommendationAlgorithmNotSupported;
|
|
1131
1109
|
constructor(data: RecommendationAlgorithmNotSupported);
|
|
1132
1110
|
/** @hidden */
|
|
@@ -1143,6 +1121,8 @@ declare class ItemAppIdNotSupportedWixError extends Error {
|
|
|
1143
1121
|
name: string;
|
|
1144
1122
|
/** @hidden */
|
|
1145
1123
|
errorSchemaName: string;
|
|
1124
|
+
/** @hidden */
|
|
1125
|
+
errorType: string;
|
|
1146
1126
|
data: ItemAppIdNotSupportedError;
|
|
1147
1127
|
constructor(data: ItemAppIdNotSupportedError);
|
|
1148
1128
|
/** @hidden */
|
|
@@ -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). */
|
|
@@ -1608,45 +1588,11 @@ interface IdentificationDataIdOneOf$5 {
|
|
|
1608
1588
|
appId?: string;
|
|
1609
1589
|
}
|
|
1610
1590
|
|
|
1611
|
-
type ServicePluginMethodInput$5 = {
|
|
1612
|
-
request: any;
|
|
1613
|
-
metadata: any;
|
|
1614
|
-
};
|
|
1615
|
-
type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
|
|
1616
|
-
type ServicePluginMethodMetadata$5 = {
|
|
1617
|
-
name: string;
|
|
1618
|
-
primaryHttpMappingPath: string;
|
|
1619
|
-
transformations: {
|
|
1620
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
|
|
1621
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1622
|
-
};
|
|
1623
|
-
};
|
|
1624
|
-
type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
|
|
1625
|
-
__type: 'service-plugin-definition';
|
|
1626
|
-
componentType: string;
|
|
1627
|
-
methods: ServicePluginMethodMetadata$5[];
|
|
1628
|
-
__contract: Contract;
|
|
1629
|
-
};
|
|
1630
|
-
declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
|
|
1631
|
-
type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
|
|
1632
|
-
|
|
1633
|
-
declare global {
|
|
1634
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1635
|
-
interface SymbolConstructor {
|
|
1636
|
-
readonly observable: symbol;
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
declare global {
|
|
1641
|
-
interface ContextualClient {
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
1591
|
interface GetShippingRatesEnvelope {
|
|
1646
1592
|
request: GetShippingRatesRequest;
|
|
1647
1593
|
metadata: Context$5;
|
|
1648
1594
|
}
|
|
1649
|
-
declare const provideHandlers$b: ServicePluginDefinition
|
|
1595
|
+
declare const provideHandlers$b: ServicePluginDefinition<{
|
|
1650
1596
|
/**
|
|
1651
1597
|
*
|
|
1652
1598
|
* This method retrieves applicable shipping rates for a delivery from your app.
|
|
@@ -1657,7 +1603,7 @@ declare const provideHandlers$b: ServicePluginDefinition$5<{
|
|
|
1657
1603
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
1658
1604
|
}>;
|
|
1659
1605
|
|
|
1660
|
-
declare function createServicePluginModule$5<T extends ServicePluginDefinition
|
|
1606
|
+
declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1661
1607
|
|
|
1662
1608
|
type _publicProvideHandlersType$5 = typeof provideHandlers$b;
|
|
1663
1609
|
declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
|
|
@@ -1682,6 +1628,8 @@ declare class MissingPostalCodeWixError extends Error {
|
|
|
1682
1628
|
name: string;
|
|
1683
1629
|
/** @hidden */
|
|
1684
1630
|
errorSchemaName: string;
|
|
1631
|
+
/** @hidden */
|
|
1632
|
+
errorType: string;
|
|
1685
1633
|
data: MissingPostalCodeError;
|
|
1686
1634
|
constructor(data: MissingPostalCodeError);
|
|
1687
1635
|
/** @hidden */
|
|
@@ -1707,6 +1655,8 @@ declare class InvalidPostalCodeWixError extends Error {
|
|
|
1707
1655
|
name: string;
|
|
1708
1656
|
/** @hidden */
|
|
1709
1657
|
errorSchemaName: string;
|
|
1658
|
+
/** @hidden */
|
|
1659
|
+
errorType: string;
|
|
1710
1660
|
data: InvalidPostalCodeError;
|
|
1711
1661
|
constructor(data: InvalidPostalCodeError);
|
|
1712
1662
|
/** @hidden */
|
|
@@ -1731,6 +1681,8 @@ declare class InvalidAddressWixError extends Error {
|
|
|
1731
1681
|
name: string;
|
|
1732
1682
|
/** @hidden */
|
|
1733
1683
|
errorSchemaName: string;
|
|
1684
|
+
/** @hidden */
|
|
1685
|
+
errorType: string;
|
|
1734
1686
|
data: InvalidAddressError;
|
|
1735
1687
|
constructor(data: InvalidAddressError);
|
|
1736
1688
|
/** @hidden */
|
|
@@ -1755,6 +1707,8 @@ declare class GenericShippingRatesWixError extends Error {
|
|
|
1755
1707
|
name: string;
|
|
1756
1708
|
/** @hidden */
|
|
1757
1709
|
errorSchemaName: string;
|
|
1710
|
+
/** @hidden */
|
|
1711
|
+
errorType: string;
|
|
1758
1712
|
data: GenericShippingRatesError;
|
|
1759
1713
|
constructor(data: GenericShippingRatesError);
|
|
1760
1714
|
/** @hidden */
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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>>;
|
|
@@ -2654,45 +2540,11 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
2654
2540
|
appId?: string;
|
|
2655
2541
|
}
|
|
2656
2542
|
|
|
2657
|
-
type ServicePluginMethodInput$2 = {
|
|
2658
|
-
request: any;
|
|
2659
|
-
metadata: any;
|
|
2660
|
-
};
|
|
2661
|
-
type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
|
|
2662
|
-
type ServicePluginMethodMetadata$2 = {
|
|
2663
|
-
name: string;
|
|
2664
|
-
primaryHttpMappingPath: string;
|
|
2665
|
-
transformations: {
|
|
2666
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
|
|
2667
|
-
toREST: (...args: unknown[]) => unknown;
|
|
2668
|
-
};
|
|
2669
|
-
};
|
|
2670
|
-
type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
|
|
2671
|
-
__type: 'service-plugin-definition';
|
|
2672
|
-
componentType: string;
|
|
2673
|
-
methods: ServicePluginMethodMetadata$2[];
|
|
2674
|
-
__contract: Contract;
|
|
2675
|
-
};
|
|
2676
|
-
declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
|
|
2677
|
-
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
|
|
2678
|
-
|
|
2679
|
-
declare global {
|
|
2680
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2681
|
-
interface SymbolConstructor {
|
|
2682
|
-
readonly observable: symbol;
|
|
2683
|
-
}
|
|
2684
|
-
}
|
|
2685
|
-
|
|
2686
|
-
declare global {
|
|
2687
|
-
interface ContextualClient {
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
2543
|
interface GetEligibleDiscountsEnvelope {
|
|
2692
2544
|
request: GetEligibleDiscountsRequest;
|
|
2693
2545
|
metadata: Context$2;
|
|
2694
2546
|
}
|
|
2695
|
-
declare const provideHandlers$5: ServicePluginDefinition
|
|
2547
|
+
declare const provideHandlers$5: ServicePluginDefinition<{
|
|
2696
2548
|
/**
|
|
2697
2549
|
*
|
|
2698
2550
|
* Wix calls this method when certain actions are performed on the cart or checkout.
|
|
@@ -2700,7 +2552,7 @@ declare const provideHandlers$5: ServicePluginDefinition$2<{
|
|
|
2700
2552
|
getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
|
|
2701
2553
|
}>;
|
|
2702
2554
|
|
|
2703
|
-
declare function createServicePluginModule$2<T extends ServicePluginDefinition
|
|
2555
|
+
declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
2704
2556
|
|
|
2705
2557
|
type _publicProvideHandlersType$2 = typeof provideHandlers$5;
|
|
2706
2558
|
declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
|
|
@@ -2714,6 +2566,8 @@ declare class CouponLimitPerCustomerExceededWixError extends Error {
|
|
|
2714
2566
|
applicationCode: string;
|
|
2715
2567
|
/** @hidden */
|
|
2716
2568
|
name: string;
|
|
2569
|
+
/** @hidden */
|
|
2570
|
+
errorType: string;
|
|
2717
2571
|
constructor();
|
|
2718
2572
|
/** @hidden */
|
|
2719
2573
|
static readonly __type = "wix_spi_error";
|
|
@@ -2727,6 +2581,8 @@ declare class CouponIsDisabledWixError extends Error {
|
|
|
2727
2581
|
applicationCode: string;
|
|
2728
2582
|
/** @hidden */
|
|
2729
2583
|
name: string;
|
|
2584
|
+
/** @hidden */
|
|
2585
|
+
errorType: string;
|
|
2730
2586
|
constructor();
|
|
2731
2587
|
/** @hidden */
|
|
2732
2588
|
static readonly __type = "wix_spi_error";
|
|
@@ -2740,6 +2596,8 @@ declare class CouponUsageExceededWixError extends Error {
|
|
|
2740
2596
|
applicationCode: string;
|
|
2741
2597
|
/** @hidden */
|
|
2742
2598
|
name: string;
|
|
2599
|
+
/** @hidden */
|
|
2600
|
+
errorType: string;
|
|
2743
2601
|
constructor();
|
|
2744
2602
|
/** @hidden */
|
|
2745
2603
|
static readonly __type = "wix_spi_error";
|
|
@@ -2753,6 +2611,8 @@ declare class CouponHasExpiredWixError extends Error {
|
|
|
2753
2611
|
applicationCode: string;
|
|
2754
2612
|
/** @hidden */
|
|
2755
2613
|
name: string;
|
|
2614
|
+
/** @hidden */
|
|
2615
|
+
errorType: string;
|
|
2756
2616
|
constructor();
|
|
2757
2617
|
/** @hidden */
|
|
2758
2618
|
static readonly __type = "wix_spi_error";
|
|
@@ -2766,6 +2626,8 @@ declare class CouponIsNotActiveYetWixError extends Error {
|
|
|
2766
2626
|
applicationCode: string;
|
|
2767
2627
|
/** @hidden */
|
|
2768
2628
|
name: string;
|
|
2629
|
+
/** @hidden */
|
|
2630
|
+
errorType: string;
|
|
2769
2631
|
constructor();
|
|
2770
2632
|
/** @hidden */
|
|
2771
2633
|
static readonly __type = "wix_spi_error";
|
|
@@ -2779,6 +2641,8 @@ declare class CouponDoesNotExistWixError extends Error {
|
|
|
2779
2641
|
applicationCode: string;
|
|
2780
2642
|
/** @hidden */
|
|
2781
2643
|
name: string;
|
|
2644
|
+
/** @hidden */
|
|
2645
|
+
errorType: string;
|
|
2782
2646
|
constructor();
|
|
2783
2647
|
/** @hidden */
|
|
2784
2648
|
static readonly __type = "wix_spi_error";
|
|
@@ -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
|
|
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
|
|
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;
|