@randock/nameshift-api-client 0.0.180 → 0.0.182
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/.openapi-generator/FILES +1 -0
- package/README.md +3 -3
- package/dist/models/DomainUrlDto.d.ts +6 -0
- package/dist/models/DomainUrlDto.js +4 -0
- package/dist/models/ListAccountDto.d.ts +7 -0
- package/dist/models/ListAccountDto.js +5 -0
- package/dist/models/ListAccountUserDto.d.ts +38 -0
- package/dist/models/ListAccountUserDto.js +55 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/DomainUrlDto.ts +9 -0
- package/src/models/ListAccountDto.ts +16 -0
- package/src/models/ListAccountUserDto.ts +75 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -111,6 +111,7 @@ src/models/List200Response2.ts
|
|
|
111
111
|
src/models/List200Response3.ts
|
|
112
112
|
src/models/ListAccountDto.ts
|
|
113
113
|
src/models/ListAccountMetricsDto.ts
|
|
114
|
+
src/models/ListAccountUserDto.ts
|
|
114
115
|
src/models/ListAccounts200Response.ts
|
|
115
116
|
src/models/ListDomains200Response.ts
|
|
116
117
|
src/models/ListLeadMessagesDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.182
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.182 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
1703842523ca3362f9de32b2aa2210a9d9e0250ed3c67f04fc7a7dddf7b5d54fd70193fe3138db0f3f23e7f8c1850dec
|
|
@@ -27,6 +27,12 @@ export interface DomainUrlDto {
|
|
|
27
27
|
* @memberof DomainUrlDto
|
|
28
28
|
*/
|
|
29
29
|
nameservers: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DomainUrlDto
|
|
34
|
+
*/
|
|
35
|
+
certificate: boolean;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the DomainUrlDto interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfDomainUrlDto(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('nameservers' in value) || value['nameservers'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('certificate' in value) || value['certificate'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function DomainUrlDtoFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ function DomainUrlDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'url': json['url'],
|
|
40
42
|
'nameservers': json['nameservers'],
|
|
43
|
+
'certificate': json['certificate'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function DomainUrlDtoToJSON(json) {
|
|
@@ -51,5 +54,6 @@ function DomainUrlDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
54
|
return {
|
|
52
55
|
'url': value['url'],
|
|
53
56
|
'nameservers': value['nameservers'],
|
|
57
|
+
'certificate': value['certificate'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ListAccountMetricsDto } from './ListAccountMetricsDto';
|
|
13
|
+
import type { ListAccountUserDto } from './ListAccountUserDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -58,6 +59,12 @@ export interface ListAccountDto {
|
|
|
58
59
|
* @memberof ListAccountDto
|
|
59
60
|
*/
|
|
60
61
|
lastOnline: Date;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<ListAccountUserDto>}
|
|
65
|
+
* @memberof ListAccountDto
|
|
66
|
+
*/
|
|
67
|
+
users: Array<ListAccountUserDto>;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Check if a given object implements the ListAccountDto interface.
|
|
@@ -19,6 +19,7 @@ exports.ListAccountDtoFromJSONTyped = ListAccountDtoFromJSONTyped;
|
|
|
19
19
|
exports.ListAccountDtoToJSON = ListAccountDtoToJSON;
|
|
20
20
|
exports.ListAccountDtoToJSONTyped = ListAccountDtoToJSONTyped;
|
|
21
21
|
var ListAccountMetricsDto_1 = require("./ListAccountMetricsDto");
|
|
22
|
+
var ListAccountUserDto_1 = require("./ListAccountUserDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ListAccountDto interface.
|
|
24
25
|
*/
|
|
@@ -37,6 +38,8 @@ function instanceOfListAccountDto(value) {
|
|
|
37
38
|
return false;
|
|
38
39
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined)
|
|
39
40
|
return false;
|
|
41
|
+
if (!('users' in value) || value['users'] === undefined)
|
|
42
|
+
return false;
|
|
40
43
|
return true;
|
|
41
44
|
}
|
|
42
45
|
function ListAccountDtoFromJSON(json) {
|
|
@@ -54,6 +57,7 @@ function ListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
57
|
'type': json['type'],
|
|
55
58
|
'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoFromJSON)(json['metrics']),
|
|
56
59
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
60
|
+
'users': (json['users'].map(ListAccountUserDto_1.ListAccountUserDtoFromJSON)),
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
function ListAccountDtoToJSON(json) {
|
|
@@ -72,5 +76,6 @@ function ListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
76
|
'type': value['type'],
|
|
73
77
|
'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoToJSON)(value['metrics']),
|
|
74
78
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
79
|
+
'users': (value['users'].map(ListAccountUserDto_1.ListAccountUserDtoToJSON)),
|
|
75
80
|
};
|
|
76
81
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 ListAccountUserDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ListAccountUserDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ListAccountUserDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ListAccountUserDto
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ListAccountUserDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfListAccountUserDto(value: object): value is ListAccountUserDto;
|
|
35
|
+
export declare function ListAccountUserDtoFromJSON(json: any): ListAccountUserDto;
|
|
36
|
+
export declare function ListAccountUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountUserDto;
|
|
37
|
+
export declare function ListAccountUserDtoToJSON(json: any): ListAccountUserDto;
|
|
38
|
+
export declare function ListAccountUserDtoToJSONTyped(value?: ListAccountUserDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListAccountUserDto = instanceOfListAccountUserDto;
|
|
17
|
+
exports.ListAccountUserDtoFromJSON = ListAccountUserDtoFromJSON;
|
|
18
|
+
exports.ListAccountUserDtoFromJSONTyped = ListAccountUserDtoFromJSONTyped;
|
|
19
|
+
exports.ListAccountUserDtoToJSON = ListAccountUserDtoToJSON;
|
|
20
|
+
exports.ListAccountUserDtoToJSONTyped = ListAccountUserDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ListAccountUserDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfListAccountUserDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ListAccountUserDtoFromJSON(json) {
|
|
32
|
+
return ListAccountUserDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ListAccountUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'email': json['email'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ListAccountUserDtoToJSON(json) {
|
|
44
|
+
return ListAccountUserDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ListAccountUserDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'email': value['email'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export * from './List200Response2';
|
|
|
89
89
|
export * from './List200Response3';
|
|
90
90
|
export * from './ListAccountDto';
|
|
91
91
|
export * from './ListAccountMetricsDto';
|
|
92
|
+
export * from './ListAccountUserDto';
|
|
92
93
|
export * from './ListAccounts200Response';
|
|
93
94
|
export * from './ListDomains200Response';
|
|
94
95
|
export * from './ListLeadMessagesDto';
|
package/dist/models/index.js
CHANGED
|
@@ -107,6 +107,7 @@ __exportStar(require("./List200Response2"), exports);
|
|
|
107
107
|
__exportStar(require("./List200Response3"), exports);
|
|
108
108
|
__exportStar(require("./ListAccountDto"), exports);
|
|
109
109
|
__exportStar(require("./ListAccountMetricsDto"), exports);
|
|
110
|
+
__exportStar(require("./ListAccountUserDto"), exports);
|
|
110
111
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
111
112
|
__exportStar(require("./ListDomains200Response"), exports);
|
|
112
113
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
package/package.json
CHANGED
|
@@ -31,6 +31,12 @@ export interface DomainUrlDto {
|
|
|
31
31
|
* @memberof DomainUrlDto
|
|
32
32
|
*/
|
|
33
33
|
nameservers: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof DomainUrlDto
|
|
38
|
+
*/
|
|
39
|
+
certificate: boolean;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface DomainUrlDto {
|
|
|
39
45
|
export function instanceOfDomainUrlDto(value: object): value is DomainUrlDto {
|
|
40
46
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
41
47
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
48
|
+
if (!('certificate' in value) || value['certificate'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function DomainUrlDtoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
54
61
|
|
|
55
62
|
'url': json['url'],
|
|
56
63
|
'nameservers': json['nameservers'],
|
|
64
|
+
'certificate': json['certificate'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -70,6 +78,7 @@ export function DomainUrlDtoToJSONTyped(value?: DomainUrlDto | null, ignoreDiscr
|
|
|
70
78
|
|
|
71
79
|
'url': value['url'],
|
|
72
80
|
'nameservers': value['nameservers'],
|
|
81
|
+
'certificate': value['certificate'],
|
|
73
82
|
};
|
|
74
83
|
}
|
|
75
84
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ListAccountMetricsDtoToJSON,
|
|
21
21
|
ListAccountMetricsDtoToJSONTyped,
|
|
22
22
|
} from './ListAccountMetricsDto';
|
|
23
|
+
import type { ListAccountUserDto } from './ListAccountUserDto';
|
|
24
|
+
import {
|
|
25
|
+
ListAccountUserDtoFromJSON,
|
|
26
|
+
ListAccountUserDtoFromJSONTyped,
|
|
27
|
+
ListAccountUserDtoToJSON,
|
|
28
|
+
ListAccountUserDtoToJSONTyped,
|
|
29
|
+
} from './ListAccountUserDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -69,6 +76,12 @@ export interface ListAccountDto {
|
|
|
69
76
|
* @memberof ListAccountDto
|
|
70
77
|
*/
|
|
71
78
|
lastOnline: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<ListAccountUserDto>}
|
|
82
|
+
* @memberof ListAccountDto
|
|
83
|
+
*/
|
|
84
|
+
users: Array<ListAccountUserDto>;
|
|
72
85
|
}
|
|
73
86
|
|
|
74
87
|
/**
|
|
@@ -82,6 +95,7 @@ export function instanceOfListAccountDto(value: object): value is ListAccountDto
|
|
|
82
95
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
83
96
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
84
97
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
98
|
+
if (!('users' in value) || value['users'] === undefined) return false;
|
|
85
99
|
return true;
|
|
86
100
|
}
|
|
87
101
|
|
|
@@ -102,6 +116,7 @@ export function ListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
102
116
|
'type': json['type'],
|
|
103
117
|
'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
|
|
104
118
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
119
|
+
'users': ((json['users'] as Array<any>).map(ListAccountUserDtoFromJSON)),
|
|
105
120
|
};
|
|
106
121
|
}
|
|
107
122
|
|
|
@@ -123,6 +138,7 @@ export function ListAccountDtoToJSONTyped(value?: ListAccountDto | null, ignoreD
|
|
|
123
138
|
'type': value['type'],
|
|
124
139
|
'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
|
|
125
140
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
141
|
+
'users': ((value['users'] as Array<any>).map(ListAccountUserDtoToJSON)),
|
|
126
142
|
};
|
|
127
143
|
}
|
|
128
144
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ListAccountUserDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ListAccountUserDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListAccountUserDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ListAccountUserDto
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ListAccountUserDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfListAccountUserDto(value: object): value is ListAccountUserDto {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ListAccountUserDtoFromJSON(json: any): ListAccountUserDto {
|
|
46
|
+
return ListAccountUserDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ListAccountUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountUserDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'email': json['email'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ListAccountUserDtoToJSON(json: any): ListAccountUserDto {
|
|
61
|
+
return ListAccountUserDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ListAccountUserDtoToJSONTyped(value?: ListAccountUserDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'email': value['email'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -91,6 +91,7 @@ export * from './List200Response2';
|
|
|
91
91
|
export * from './List200Response3';
|
|
92
92
|
export * from './ListAccountDto';
|
|
93
93
|
export * from './ListAccountMetricsDto';
|
|
94
|
+
export * from './ListAccountUserDto';
|
|
94
95
|
export * from './ListAccounts200Response';
|
|
95
96
|
export * from './ListDomains200Response';
|
|
96
97
|
export * from './ListLeadMessagesDto';
|