@dynamic-labs/sdk-api 0.0.378 → 0.0.379
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 +1 -1
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/BillingSubscription.cjs +7 -0
- package/src/models/BillingSubscription.d.ts +19 -0
- package/src/models/BillingSubscription.js +7 -0
- package/src/models/BillingSubscriptionPeriod.cjs +37 -0
- package/src/models/BillingSubscriptionPeriod.d.ts +39 -0
- package/src/models/BillingSubscriptionPeriod.js +31 -0
- package/src/models/BillingSubscriptionPlanTypeEnum.cjs +1 -0
- package/src/models/BillingSubscriptionPlanTypeEnum.d.ts +2 -1
- package/src/models/BillingSubscriptionPlanTypeEnum.js +1 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ var AuthenticatorTransportProtocol = require('./models/AuthenticatorTransportPro
|
|
|
37
37
|
var BadRequest = require('./models/BadRequest.cjs');
|
|
38
38
|
var BaseUser = require('./models/BaseUser.cjs');
|
|
39
39
|
var BillingSubscription = require('./models/BillingSubscription.cjs');
|
|
40
|
+
var BillingSubscriptionPeriod = require('./models/BillingSubscriptionPeriod.cjs');
|
|
40
41
|
var BillingSubscriptionPlanTypeEnum = require('./models/BillingSubscriptionPlanTypeEnum.cjs');
|
|
41
42
|
var ChainConfiguration = require('./models/ChainConfiguration.cjs');
|
|
42
43
|
var ChainEnum = require('./models/ChainEnum.cjs');
|
|
@@ -352,6 +353,9 @@ exports.BaseUserToJSON = BaseUser.BaseUserToJSON;
|
|
|
352
353
|
exports.BillingSubscriptionFromJSON = BillingSubscription.BillingSubscriptionFromJSON;
|
|
353
354
|
exports.BillingSubscriptionFromJSONTyped = BillingSubscription.BillingSubscriptionFromJSONTyped;
|
|
354
355
|
exports.BillingSubscriptionToJSON = BillingSubscription.BillingSubscriptionToJSON;
|
|
356
|
+
exports.BillingSubscriptionPeriodFromJSON = BillingSubscriptionPeriod.BillingSubscriptionPeriodFromJSON;
|
|
357
|
+
exports.BillingSubscriptionPeriodFromJSONTyped = BillingSubscriptionPeriod.BillingSubscriptionPeriodFromJSONTyped;
|
|
358
|
+
exports.BillingSubscriptionPeriodToJSON = BillingSubscriptionPeriod.BillingSubscriptionPeriodToJSON;
|
|
355
359
|
Object.defineProperty(exports, 'BillingSubscriptionPlanTypeEnum', {
|
|
356
360
|
enumerable: true,
|
|
357
361
|
get: function () { return BillingSubscriptionPlanTypeEnum.BillingSubscriptionPlanTypeEnum; }
|
package/src/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export { AuthenticatorTransportProtocol, AuthenticatorTransportProtocolFromJSON,
|
|
|
33
33
|
export { BadRequestFromJSON, BadRequestFromJSONTyped, BadRequestToJSON } from './models/BadRequest.js';
|
|
34
34
|
export { BaseUserFromJSON, BaseUserFromJSONTyped, BaseUserToJSON } from './models/BaseUser.js';
|
|
35
35
|
export { BillingSubscriptionFromJSON, BillingSubscriptionFromJSONTyped, BillingSubscriptionToJSON } from './models/BillingSubscription.js';
|
|
36
|
+
export { BillingSubscriptionPeriodFromJSON, BillingSubscriptionPeriodFromJSONTyped, BillingSubscriptionPeriodToJSON } from './models/BillingSubscriptionPeriod.js';
|
|
36
37
|
export { BillingSubscriptionPlanTypeEnum, BillingSubscriptionPlanTypeEnumFromJSON, BillingSubscriptionPlanTypeEnumFromJSONTyped, BillingSubscriptionPlanTypeEnumToJSON } from './models/BillingSubscriptionPlanTypeEnum.js';
|
|
37
38
|
export { ChainConfigurationFromJSON, ChainConfigurationFromJSONTyped, ChainConfigurationToJSON } from './models/ChainConfiguration.js';
|
|
38
39
|
export { ChainEnum, ChainEnumFromJSON, ChainEnumFromJSONTyped, ChainEnumToJSON } from './models/ChainEnum.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BillingSubscriptionPeriod = require('./BillingSubscriptionPeriod.cjs');
|
|
6
7
|
var BillingSubscriptionPlanTypeEnum = require('./BillingSubscriptionPlanTypeEnum.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -23,6 +24,9 @@ function BillingSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
'trialStart': !runtime.exists(json, 'trialStart') ? undefined : (new Date(json['trialStart'])),
|
|
24
25
|
'trialEnd': !runtime.exists(json, 'trialEnd') ? undefined : (new Date(json['trialEnd'])),
|
|
25
26
|
'trialDaysLeft': !runtime.exists(json, 'trialDaysLeft') ? undefined : json['trialDaysLeft'],
|
|
27
|
+
'currentBillingPeriod': !runtime.exists(json, 'currentBillingPeriod') ? undefined : BillingSubscriptionPeriod.BillingSubscriptionPeriodFromJSON(json['currentBillingPeriod']),
|
|
28
|
+
'version': json['version'],
|
|
29
|
+
'shouldLockEnvironmentSwitch': !runtime.exists(json, 'shouldLockEnvironmentSwitch') ? undefined : json['shouldLockEnvironmentSwitch'],
|
|
26
30
|
};
|
|
27
31
|
}
|
|
28
32
|
function BillingSubscriptionToJSON(value) {
|
|
@@ -42,6 +46,9 @@ function BillingSubscriptionToJSON(value) {
|
|
|
42
46
|
'trialStart': value.trialStart === undefined ? undefined : (value.trialStart.toISOString()),
|
|
43
47
|
'trialEnd': value.trialEnd === undefined ? undefined : (value.trialEnd.toISOString()),
|
|
44
48
|
'trialDaysLeft': value.trialDaysLeft,
|
|
49
|
+
'currentBillingPeriod': BillingSubscriptionPeriod.BillingSubscriptionPeriodToJSON(value.currentBillingPeriod),
|
|
50
|
+
'version': value.version,
|
|
51
|
+
'shouldLockEnvironmentSwitch': value.shouldLockEnvironmentSwitch,
|
|
45
52
|
};
|
|
46
53
|
}
|
|
47
54
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { BillingSubscriptionPeriod } from './BillingSubscriptionPeriod';
|
|
12
13
|
import { BillingSubscriptionPlanTypeEnum } from './BillingSubscriptionPlanTypeEnum';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -70,6 +71,24 @@ export interface BillingSubscription {
|
|
|
70
71
|
* @memberof BillingSubscription
|
|
71
72
|
*/
|
|
72
73
|
trialDaysLeft?: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {BillingSubscriptionPeriod}
|
|
77
|
+
* @memberof BillingSubscription
|
|
78
|
+
*/
|
|
79
|
+
currentBillingPeriod?: BillingSubscriptionPeriod;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof BillingSubscription
|
|
84
|
+
*/
|
|
85
|
+
version: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof BillingSubscription
|
|
90
|
+
*/
|
|
91
|
+
shouldLockEnvironmentSwitch?: boolean;
|
|
73
92
|
}
|
|
74
93
|
export declare function BillingSubscriptionFromJSON(json: any): BillingSubscription;
|
|
75
94
|
export declare function BillingSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSubscription;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { BillingSubscriptionPeriodFromJSON, BillingSubscriptionPeriodToJSON } from './BillingSubscriptionPeriod.js';
|
|
2
3
|
import { BillingSubscriptionPlanTypeEnumFromJSON, BillingSubscriptionPlanTypeEnumToJSON } from './BillingSubscriptionPlanTypeEnum.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -19,6 +20,9 @@ function BillingSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'trialStart': !exists(json, 'trialStart') ? undefined : (new Date(json['trialStart'])),
|
|
20
21
|
'trialEnd': !exists(json, 'trialEnd') ? undefined : (new Date(json['trialEnd'])),
|
|
21
22
|
'trialDaysLeft': !exists(json, 'trialDaysLeft') ? undefined : json['trialDaysLeft'],
|
|
23
|
+
'currentBillingPeriod': !exists(json, 'currentBillingPeriod') ? undefined : BillingSubscriptionPeriodFromJSON(json['currentBillingPeriod']),
|
|
24
|
+
'version': json['version'],
|
|
25
|
+
'shouldLockEnvironmentSwitch': !exists(json, 'shouldLockEnvironmentSwitch') ? undefined : json['shouldLockEnvironmentSwitch'],
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
function BillingSubscriptionToJSON(value) {
|
|
@@ -38,6 +42,9 @@ function BillingSubscriptionToJSON(value) {
|
|
|
38
42
|
'trialStart': value.trialStart === undefined ? undefined : (value.trialStart.toISOString()),
|
|
39
43
|
'trialEnd': value.trialEnd === undefined ? undefined : (value.trialEnd.toISOString()),
|
|
40
44
|
'trialDaysLeft': value.trialDaysLeft,
|
|
45
|
+
'currentBillingPeriod': BillingSubscriptionPeriodToJSON(value.currentBillingPeriod),
|
|
46
|
+
'version': value.version,
|
|
47
|
+
'shouldLockEnvironmentSwitch': value.shouldLockEnvironmentSwitch,
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BillingSubscriptionPeriodFromJSON(json) {
|
|
9
|
+
return BillingSubscriptionPeriodFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BillingSubscriptionPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'startDate': (new Date(json['startDate'])),
|
|
17
|
+
'endDate': (new Date(json['endDate'])),
|
|
18
|
+
'usagesCount': !runtime.exists(json, 'usagesCount') ? undefined : json['usagesCount'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BillingSubscriptionPeriodToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'startDate': (value.startDate.toISOString()),
|
|
30
|
+
'endDate': (value.endDate.toISOString()),
|
|
31
|
+
'usagesCount': value.usagesCount,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.BillingSubscriptionPeriodFromJSON = BillingSubscriptionPeriodFromJSON;
|
|
36
|
+
exports.BillingSubscriptionPeriodFromJSONTyped = BillingSubscriptionPeriodFromJSONTyped;
|
|
37
|
+
exports.BillingSubscriptionPeriodToJSON = BillingSubscriptionPeriodToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BillingSubscriptionPeriod
|
|
16
|
+
*/
|
|
17
|
+
export interface BillingSubscriptionPeriod {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof BillingSubscriptionPeriod
|
|
22
|
+
*/
|
|
23
|
+
startDate: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BillingSubscriptionPeriod
|
|
28
|
+
*/
|
|
29
|
+
endDate: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BillingSubscriptionPeriod
|
|
34
|
+
*/
|
|
35
|
+
usagesCount?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function BillingSubscriptionPeriodFromJSON(json: any): BillingSubscriptionPeriod;
|
|
38
|
+
export declare function BillingSubscriptionPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSubscriptionPeriod;
|
|
39
|
+
export declare function BillingSubscriptionPeriodToJSON(value?: BillingSubscriptionPeriod | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BillingSubscriptionPeriodFromJSON(json) {
|
|
5
|
+
return BillingSubscriptionPeriodFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BillingSubscriptionPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'startDate': (new Date(json['startDate'])),
|
|
13
|
+
'endDate': (new Date(json['endDate'])),
|
|
14
|
+
'usagesCount': !exists(json, 'usagesCount') ? undefined : json['usagesCount'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function BillingSubscriptionPeriodToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'startDate': (value.startDate.toISOString()),
|
|
26
|
+
'endDate': (value.endDate.toISOString()),
|
|
27
|
+
'usagesCount': value.usagesCount,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { BillingSubscriptionPeriodFromJSON, BillingSubscriptionPeriodFromJSONTyped, BillingSubscriptionPeriodToJSON };
|
|
@@ -25,6 +25,7 @@ exports.BillingSubscriptionPlanTypeEnum = void 0;
|
|
|
25
25
|
BillingSubscriptionPlanTypeEnum["Free"] = "free";
|
|
26
26
|
BillingSubscriptionPlanTypeEnum["Advanced"] = "advanced";
|
|
27
27
|
BillingSubscriptionPlanTypeEnum["Enterprise"] = "enterprise";
|
|
28
|
+
BillingSubscriptionPlanTypeEnum["Standard"] = "standard";
|
|
28
29
|
})(exports.BillingSubscriptionPlanTypeEnum || (exports.BillingSubscriptionPlanTypeEnum = {}));
|
|
29
30
|
function BillingSubscriptionPlanTypeEnumFromJSON(json) {
|
|
30
31
|
return BillingSubscriptionPlanTypeEnumFromJSONTyped(json);
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
export declare enum BillingSubscriptionPlanTypeEnum {
|
|
18
18
|
Free = "free",
|
|
19
19
|
Advanced = "advanced",
|
|
20
|
-
Enterprise = "enterprise"
|
|
20
|
+
Enterprise = "enterprise",
|
|
21
|
+
Standard = "standard"
|
|
21
22
|
}
|
|
22
23
|
export declare function BillingSubscriptionPlanTypeEnumFromJSON(json: any): BillingSubscriptionPlanTypeEnum;
|
|
23
24
|
export declare function BillingSubscriptionPlanTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSubscriptionPlanTypeEnum;
|
|
@@ -21,6 +21,7 @@ var BillingSubscriptionPlanTypeEnum;
|
|
|
21
21
|
BillingSubscriptionPlanTypeEnum["Free"] = "free";
|
|
22
22
|
BillingSubscriptionPlanTypeEnum["Advanced"] = "advanced";
|
|
23
23
|
BillingSubscriptionPlanTypeEnum["Enterprise"] = "enterprise";
|
|
24
|
+
BillingSubscriptionPlanTypeEnum["Standard"] = "standard";
|
|
24
25
|
})(BillingSubscriptionPlanTypeEnum || (BillingSubscriptionPlanTypeEnum = {}));
|
|
25
26
|
function BillingSubscriptionPlanTypeEnumFromJSON(json) {
|
|
26
27
|
return BillingSubscriptionPlanTypeEnumFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './AuthenticatorTransportProtocol';
|
|
|
10
10
|
export * from './BadRequest';
|
|
11
11
|
export * from './BaseUser';
|
|
12
12
|
export * from './BillingSubscription';
|
|
13
|
+
export * from './BillingSubscriptionPeriod';
|
|
13
14
|
export * from './BillingSubscriptionPlanTypeEnum';
|
|
14
15
|
export * from './ChainConfiguration';
|
|
15
16
|
export * from './ChainEnum';
|