@wix/app-management 1.0.38 → 1.0.39
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/build/cjs/context.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/service-plugins-context.js +1 -0
- package/build/cjs/service-plugins-context.js.map +1 -0
- package/build/cjs/service-plugins.js +1 -0
- package/build/cjs/service-plugins.js.map +1 -0
- package/package.json +8 -8
- package/type-bundles/context.bundle.d.ts +433 -174
- package/type-bundles/index.bundle.d.ts +433 -174
- package/type-bundles/meta.bundle.d.ts +20 -2
- package/type-bundles/service-plugins-context.bundle.d.ts +42 -9
- package/type-bundles/service-plugins.bundle.d.ts +42 -9
|
@@ -16,6 +16,14 @@ declare enum DiscountType$1 {
|
|
|
16
16
|
/** Discount is a percentage of the total price. */
|
|
17
17
|
PERCENTAGE = "PERCENTAGE"
|
|
18
18
|
}
|
|
19
|
+
declare enum SaleType$1 {
|
|
20
|
+
/** Default value, can be used when no specific sale is associated. */
|
|
21
|
+
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
22
|
+
CYBER_MONDAY = "CYBER_MONDAY",
|
|
23
|
+
NOVEMBER_SALE = "NOVEMBER_SALE",
|
|
24
|
+
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
25
|
+
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
26
|
+
}
|
|
19
27
|
interface Cycle$1 {
|
|
20
28
|
/**
|
|
21
29
|
* Type of the billing cycle.
|
|
@@ -77,7 +85,6 @@ interface Discount$1 {
|
|
|
77
85
|
type?: DiscountType$1;
|
|
78
86
|
/** Discount amount */
|
|
79
87
|
amount?: string;
|
|
80
|
-
/** if a discount is applied to a specific sale */
|
|
81
88
|
saleId?: string | null;
|
|
82
89
|
/**
|
|
83
90
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -93,6 +100,7 @@ interface Discount$1 {
|
|
|
93
100
|
* Max: 1024 characters
|
|
94
101
|
*/
|
|
95
102
|
totalPrice?: string;
|
|
103
|
+
saleType?: SaleType$1;
|
|
96
104
|
}
|
|
97
105
|
interface Price$1 {
|
|
98
106
|
/**
|
|
@@ -237,6 +245,7 @@ interface DiscountNonNullableFields$1 {
|
|
|
237
245
|
amount: string;
|
|
238
246
|
priceBeforeTax: string;
|
|
239
247
|
totalPrice: string;
|
|
248
|
+
saleType: SaleType$1;
|
|
240
249
|
}
|
|
241
250
|
interface PriceNonNullableFields$1 {
|
|
242
251
|
priceBeforeTax: string;
|
|
@@ -280,6 +289,14 @@ declare enum DiscountType {
|
|
|
280
289
|
/** Discount is a percentage of the total price. */
|
|
281
290
|
PERCENTAGE = "PERCENTAGE"
|
|
282
291
|
}
|
|
292
|
+
declare enum SaleType {
|
|
293
|
+
/** Default value, can be used when no specific sale is associated. */
|
|
294
|
+
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
295
|
+
CYBER_MONDAY = "CYBER_MONDAY",
|
|
296
|
+
NOVEMBER_SALE = "NOVEMBER_SALE",
|
|
297
|
+
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
298
|
+
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
299
|
+
}
|
|
283
300
|
interface Cycle {
|
|
284
301
|
/**
|
|
285
302
|
* Type of the billing cycle.
|
|
@@ -341,7 +358,6 @@ interface Discount {
|
|
|
341
358
|
type?: DiscountType;
|
|
342
359
|
/** Discount amount */
|
|
343
360
|
amount?: string;
|
|
344
|
-
/** if a discount is applied to a specific sale */
|
|
345
361
|
saleId?: string | null;
|
|
346
362
|
/**
|
|
347
363
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
@@ -357,6 +373,7 @@ interface Discount {
|
|
|
357
373
|
* Max: 1024 characters
|
|
358
374
|
*/
|
|
359
375
|
totalPrice?: string;
|
|
376
|
+
saleType?: SaleType;
|
|
360
377
|
}
|
|
361
378
|
interface Price {
|
|
362
379
|
/**
|
|
@@ -501,6 +518,7 @@ interface DiscountNonNullableFields {
|
|
|
501
518
|
amount: string;
|
|
502
519
|
priceBeforeTax: string;
|
|
503
520
|
totalPrice: string;
|
|
521
|
+
saleType: SaleType;
|
|
504
522
|
}
|
|
505
523
|
interface PriceNonNullableFields {
|
|
506
524
|
priceBeforeTax: string;
|
|
@@ -280,27 +280,26 @@ interface IdentificationDataIdOneOf {
|
|
|
280
280
|
appId?: string;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
type ServicePluginMethodInput = {
|
|
283
|
+
type ServicePluginMethodInput$1 = {
|
|
284
284
|
request: any;
|
|
285
285
|
metadata: any;
|
|
286
286
|
};
|
|
287
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
288
|
-
type ServicePluginMethodMetadata = {
|
|
287
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
288
|
+
type ServicePluginMethodMetadata$1 = {
|
|
289
289
|
name: string;
|
|
290
290
|
primaryHttpMappingPath: string;
|
|
291
291
|
transformations: {
|
|
292
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
292
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
293
293
|
toREST: (...args: unknown[]) => unknown;
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
296
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
297
297
|
__type: 'service-plugin-definition';
|
|
298
298
|
componentType: string;
|
|
299
|
-
methods: ServicePluginMethodMetadata[];
|
|
299
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
300
300
|
__contract: Contract;
|
|
301
301
|
};
|
|
302
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
303
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
302
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
304
303
|
|
|
305
304
|
declare global {
|
|
306
305
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -309,6 +308,11 @@ declare global {
|
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
310
|
|
|
311
|
+
declare global {
|
|
312
|
+
interface ContextualClient {
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
312
316
|
interface GetChargeLimitEnvelope {
|
|
313
317
|
request: GetChargeLimitRequest;
|
|
314
318
|
metadata: Context;
|
|
@@ -329,7 +333,7 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
329
333
|
request: ChargeLimitUpdatedRequest;
|
|
330
334
|
metadata: Context;
|
|
331
335
|
}
|
|
332
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
336
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
333
337
|
/**
|
|
334
338
|
*
|
|
335
339
|
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
@@ -387,6 +391,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
387
391
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
388
392
|
}>;
|
|
389
393
|
|
|
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
|
+
|
|
390
423
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
391
424
|
|
|
392
425
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -280,27 +280,26 @@ interface IdentificationDataIdOneOf {
|
|
|
280
280
|
appId?: string;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
type ServicePluginMethodInput = {
|
|
283
|
+
type ServicePluginMethodInput$1 = {
|
|
284
284
|
request: any;
|
|
285
285
|
metadata: any;
|
|
286
286
|
};
|
|
287
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
288
|
-
type ServicePluginMethodMetadata = {
|
|
287
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
288
|
+
type ServicePluginMethodMetadata$1 = {
|
|
289
289
|
name: string;
|
|
290
290
|
primaryHttpMappingPath: string;
|
|
291
291
|
transformations: {
|
|
292
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
292
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
293
293
|
toREST: (...args: unknown[]) => unknown;
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
296
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
297
297
|
__type: 'service-plugin-definition';
|
|
298
298
|
componentType: string;
|
|
299
|
-
methods: ServicePluginMethodMetadata[];
|
|
299
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
300
300
|
__contract: Contract;
|
|
301
301
|
};
|
|
302
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
303
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
302
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
304
303
|
|
|
305
304
|
declare global {
|
|
306
305
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -309,6 +308,11 @@ declare global {
|
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
310
|
|
|
311
|
+
declare global {
|
|
312
|
+
interface ContextualClient {
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
312
316
|
interface GetChargeLimitEnvelope {
|
|
313
317
|
request: GetChargeLimitRequest;
|
|
314
318
|
metadata: Context;
|
|
@@ -329,7 +333,7 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
329
333
|
request: ChargeLimitUpdatedRequest;
|
|
330
334
|
metadata: Context;
|
|
331
335
|
}
|
|
332
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
336
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
333
337
|
/**
|
|
334
338
|
*
|
|
335
339
|
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
@@ -387,6 +391,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
387
391
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
388
392
|
}>;
|
|
389
393
|
|
|
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
|
+
|
|
390
423
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
391
424
|
|
|
392
425
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|