@wix/app-management 1.0.41 → 1.0.43
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.
|
@@ -102,6 +102,13 @@ interface Discount$1 {
|
|
|
102
102
|
totalPrice?: string;
|
|
103
103
|
saleType?: SaleType$1;
|
|
104
104
|
}
|
|
105
|
+
declare enum BillingSource$1 {
|
|
106
|
+
UNKNOWN = "UNKNOWN",
|
|
107
|
+
/** plan billing and charges is managed by Wix */
|
|
108
|
+
WIX = "WIX",
|
|
109
|
+
/** plan billing and charges is managed by the app */
|
|
110
|
+
EXTERNAL = "EXTERNAL"
|
|
111
|
+
}
|
|
105
112
|
interface Price$1 {
|
|
106
113
|
/**
|
|
107
114
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -128,6 +135,7 @@ interface Price$1 {
|
|
|
128
135
|
*/
|
|
129
136
|
usageBaseOptions?: UsageBasedDetails$1;
|
|
130
137
|
discount?: Discount$1;
|
|
138
|
+
billingSource?: BillingSource$1;
|
|
131
139
|
}
|
|
132
140
|
interface Plan$1 {
|
|
133
141
|
/**
|
|
@@ -252,6 +260,7 @@ interface PriceNonNullableFields$1 {
|
|
|
252
260
|
totalPrice: string;
|
|
253
261
|
billingCycle?: CycleNonNullableFields$1;
|
|
254
262
|
discount?: DiscountNonNullableFields$1;
|
|
263
|
+
billingSource: BillingSource$1;
|
|
255
264
|
}
|
|
256
265
|
interface PlanNonNullableFields$1 {
|
|
257
266
|
id: string;
|
|
@@ -375,6 +384,13 @@ interface Discount {
|
|
|
375
384
|
totalPrice?: string;
|
|
376
385
|
saleType?: SaleType;
|
|
377
386
|
}
|
|
387
|
+
declare enum BillingSource {
|
|
388
|
+
UNKNOWN = "UNKNOWN",
|
|
389
|
+
/** plan billing and charges is managed by Wix */
|
|
390
|
+
WIX = "WIX",
|
|
391
|
+
/** plan billing and charges is managed by the app */
|
|
392
|
+
EXTERNAL = "EXTERNAL"
|
|
393
|
+
}
|
|
378
394
|
interface Price {
|
|
379
395
|
/**
|
|
380
396
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -401,6 +417,7 @@ interface Price {
|
|
|
401
417
|
*/
|
|
402
418
|
usageBaseOptions?: UsageBasedDetails;
|
|
403
419
|
discount?: Discount;
|
|
420
|
+
billingSource?: BillingSource;
|
|
404
421
|
}
|
|
405
422
|
interface Plan {
|
|
406
423
|
/**
|
|
@@ -525,6 +542,7 @@ interface PriceNonNullableFields {
|
|
|
525
542
|
totalPrice: string;
|
|
526
543
|
billingCycle?: CycleNonNullableFields;
|
|
527
544
|
discount?: DiscountNonNullableFields;
|
|
545
|
+
billingSource: BillingSource;
|
|
528
546
|
}
|
|
529
547
|
interface PlanNonNullableFields {
|
|
530
548
|
_id: string;
|
|
@@ -685,7 +703,7 @@ interface FreeTrialInfo$1 {
|
|
|
685
703
|
* When the free trial has ended. Populated only once the free trial is over.
|
|
686
704
|
* @readonly
|
|
687
705
|
*/
|
|
688
|
-
endDate?: Date;
|
|
706
|
+
endDate?: Date | null;
|
|
689
707
|
}
|
|
690
708
|
declare enum FreeTrialStatus$1 {
|
|
691
709
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
@@ -960,7 +978,7 @@ interface FreeTrialInfo {
|
|
|
960
978
|
* When the free trial has ended. Populated only once the free trial is over.
|
|
961
979
|
* @readonly
|
|
962
980
|
*/
|
|
963
|
-
endDate?: Date;
|
|
981
|
+
endDate?: Date | null;
|
|
964
982
|
}
|
|
965
983
|
declare enum FreeTrialStatus {
|
|
966
984
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
@@ -1267,7 +1285,7 @@ interface PurchasedItem$1 {
|
|
|
1267
1285
|
* Date and time the site onwers have purchased your app's paid plan in
|
|
1268
1286
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
1269
1287
|
*/
|
|
1270
|
-
dateCreated?: Date;
|
|
1288
|
+
dateCreated?: Date | null;
|
|
1271
1289
|
}
|
|
1272
1290
|
declare enum PaymentCycle$1 {
|
|
1273
1291
|
NO_CYCLE = "NO_CYCLE",
|
|
@@ -1361,7 +1379,7 @@ interface PurchasedItem {
|
|
|
1361
1379
|
* Date and time the site onwers have purchased your app's paid plan in
|
|
1362
1380
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
1363
1381
|
*/
|
|
1364
|
-
dateCreated?: Date;
|
|
1382
|
+
dateCreated?: Date | null;
|
|
1365
1383
|
}
|
|
1366
1384
|
declare enum PaymentCycle {
|
|
1367
1385
|
NO_CYCLE = "NO_CYCLE",
|
|
@@ -42,12 +42,12 @@ interface ListChargesRequest {
|
|
|
42
42
|
* Begin of the period Wix retrieves the app instance's charges for in
|
|
43
43
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
44
44
|
*/
|
|
45
|
-
periodStart?: Date;
|
|
45
|
+
periodStart?: Date | null;
|
|
46
46
|
/**
|
|
47
47
|
* End of the period Wix retrieves the app instance's charges for in
|
|
48
48
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
49
49
|
*/
|
|
50
|
-
periodEnd?: Date;
|
|
50
|
+
periodEnd?: Date | null;
|
|
51
51
|
/**
|
|
52
52
|
* Information about what Wix intends to do with the retrieved charges.
|
|
53
53
|
*
|
|
@@ -280,26 +280,27 @@ interface IdentificationDataIdOneOf {
|
|
|
280
280
|
appId?: string;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
type ServicePluginMethodInput
|
|
283
|
+
type ServicePluginMethodInput = {
|
|
284
284
|
request: any;
|
|
285
285
|
metadata: any;
|
|
286
286
|
};
|
|
287
|
-
type ServicePluginContract
|
|
288
|
-
type ServicePluginMethodMetadata
|
|
287
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
288
|
+
type ServicePluginMethodMetadata = {
|
|
289
289
|
name: string;
|
|
290
290
|
primaryHttpMappingPath: string;
|
|
291
291
|
transformations: {
|
|
292
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
292
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
293
293
|
toREST: (...args: unknown[]) => unknown;
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
type ServicePluginDefinition
|
|
296
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
297
297
|
__type: 'service-plugin-definition';
|
|
298
298
|
componentType: string;
|
|
299
|
-
methods: ServicePluginMethodMetadata
|
|
299
|
+
methods: ServicePluginMethodMetadata[];
|
|
300
300
|
__contract: Contract;
|
|
301
301
|
};
|
|
302
|
-
declare function ServicePluginDefinition
|
|
302
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
303
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
303
304
|
|
|
304
305
|
declare global {
|
|
305
306
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -333,7 +334,7 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
333
334
|
request: ChargeLimitUpdatedRequest;
|
|
334
335
|
metadata: Context;
|
|
335
336
|
}
|
|
336
|
-
declare const provideHandlers$1: ServicePluginDefinition
|
|
337
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
337
338
|
/**
|
|
338
339
|
*
|
|
339
340
|
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
@@ -391,35 +392,6 @@ declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
|
391
392
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
392
393
|
}>;
|
|
393
394
|
|
|
394
|
-
type ServicePluginMethodInput = {
|
|
395
|
-
request: any;
|
|
396
|
-
metadata: any;
|
|
397
|
-
};
|
|
398
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
399
|
-
type ServicePluginMethodMetadata = {
|
|
400
|
-
name: string;
|
|
401
|
-
primaryHttpMappingPath: string;
|
|
402
|
-
transformations: {
|
|
403
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
404
|
-
toREST: (...args: unknown[]) => unknown;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
408
|
-
__type: 'service-plugin-definition';
|
|
409
|
-
componentType: string;
|
|
410
|
-
methods: ServicePluginMethodMetadata[];
|
|
411
|
-
__contract: Contract;
|
|
412
|
-
};
|
|
413
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
414
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
415
|
-
|
|
416
|
-
declare global {
|
|
417
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
418
|
-
interface SymbolConstructor {
|
|
419
|
-
readonly observable: symbol;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
395
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
424
396
|
|
|
425
397
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -42,12 +42,12 @@ interface ListChargesRequest {
|
|
|
42
42
|
* Begin of the period Wix retrieves the app instance's charges for in
|
|
43
43
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
44
44
|
*/
|
|
45
|
-
periodStart?: Date;
|
|
45
|
+
periodStart?: Date | null;
|
|
46
46
|
/**
|
|
47
47
|
* End of the period Wix retrieves the app instance's charges for in
|
|
48
48
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
49
49
|
*/
|
|
50
|
-
periodEnd?: Date;
|
|
50
|
+
periodEnd?: Date | null;
|
|
51
51
|
/**
|
|
52
52
|
* Information about what Wix intends to do with the retrieved charges.
|
|
53
53
|
*
|
|
@@ -280,26 +280,27 @@ interface IdentificationDataIdOneOf {
|
|
|
280
280
|
appId?: string;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
type ServicePluginMethodInput
|
|
283
|
+
type ServicePluginMethodInput = {
|
|
284
284
|
request: any;
|
|
285
285
|
metadata: any;
|
|
286
286
|
};
|
|
287
|
-
type ServicePluginContract
|
|
288
|
-
type ServicePluginMethodMetadata
|
|
287
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
288
|
+
type ServicePluginMethodMetadata = {
|
|
289
289
|
name: string;
|
|
290
290
|
primaryHttpMappingPath: string;
|
|
291
291
|
transformations: {
|
|
292
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
292
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
293
293
|
toREST: (...args: unknown[]) => unknown;
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
type ServicePluginDefinition
|
|
296
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
297
297
|
__type: 'service-plugin-definition';
|
|
298
298
|
componentType: string;
|
|
299
|
-
methods: ServicePluginMethodMetadata
|
|
299
|
+
methods: ServicePluginMethodMetadata[];
|
|
300
300
|
__contract: Contract;
|
|
301
301
|
};
|
|
302
|
-
declare function ServicePluginDefinition
|
|
302
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
303
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
303
304
|
|
|
304
305
|
declare global {
|
|
305
306
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -333,7 +334,7 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
333
334
|
request: ChargeLimitUpdatedRequest;
|
|
334
335
|
metadata: Context;
|
|
335
336
|
}
|
|
336
|
-
declare const provideHandlers$1: ServicePluginDefinition
|
|
337
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
337
338
|
/**
|
|
338
339
|
*
|
|
339
340
|
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
@@ -391,35 +392,6 @@ declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
|
391
392
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
392
393
|
}>;
|
|
393
394
|
|
|
394
|
-
type ServicePluginMethodInput = {
|
|
395
|
-
request: any;
|
|
396
|
-
metadata: any;
|
|
397
|
-
};
|
|
398
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
399
|
-
type ServicePluginMethodMetadata = {
|
|
400
|
-
name: string;
|
|
401
|
-
primaryHttpMappingPath: string;
|
|
402
|
-
transformations: {
|
|
403
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
404
|
-
toREST: (...args: unknown[]) => unknown;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
408
|
-
__type: 'service-plugin-definition';
|
|
409
|
-
componentType: string;
|
|
410
|
-
methods: ServicePluginMethodMetadata[];
|
|
411
|
-
__contract: Contract;
|
|
412
|
-
};
|
|
413
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
414
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
415
|
-
|
|
416
|
-
declare global {
|
|
417
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
418
|
-
interface SymbolConstructor {
|
|
419
|
-
readonly observable: symbol;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
395
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
424
396
|
|
|
425
397
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|