@randock/nameshift-api-client 0.0.2 → 0.0.3
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/dist/apis/DomainsApi.d.ts +2 -1
- package/dist/apis/DomainsApi.js +5 -2
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +8 -3
- package/.gitkeep +0 -0
- package/dist/models/UserAuthControllerLogin401Response.d.ts +0 -43
- package/dist/models/UserAuthControllerLogin401Response.js +0 -56
- package/dist/models/UserAuthControllerLogin429Response.d.ts +0 -43
- package/dist/models/UserAuthControllerLogin429Response.js +0 -56
- package/src/models/UserAuthControllerLogin401Response.ts +0 -83
- package/src/models/UserAuthControllerLogin429Response.ts +0 -83
package/.openapi-generator/FILES
CHANGED
|
@@ -22,9 +22,10 @@ export interface CheckDnsRequest {
|
|
|
22
22
|
domainId: string;
|
|
23
23
|
}
|
|
24
24
|
export interface ListRequest {
|
|
25
|
+
filter?: object;
|
|
25
26
|
page?: number;
|
|
26
27
|
limit?: number;
|
|
27
|
-
|
|
28
|
+
sortBy?: Array<string>;
|
|
28
29
|
}
|
|
29
30
|
export interface UpdateRequest {
|
|
30
31
|
domainId: string;
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -261,14 +261,17 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
261
261
|
switch (_a.label) {
|
|
262
262
|
case 0:
|
|
263
263
|
queryParameters = {};
|
|
264
|
+
if (requestParameters.filter !== undefined) {
|
|
265
|
+
queryParameters['filter'] = requestParameters.filter;
|
|
266
|
+
}
|
|
264
267
|
if (requestParameters.page !== undefined) {
|
|
265
268
|
queryParameters['page'] = requestParameters.page;
|
|
266
269
|
}
|
|
267
270
|
if (requestParameters.limit !== undefined) {
|
|
268
271
|
queryParameters['limit'] = requestParameters.limit;
|
|
269
272
|
}
|
|
270
|
-
if (requestParameters.
|
|
271
|
-
queryParameters['
|
|
273
|
+
if (requestParameters.sortBy) {
|
|
274
|
+
queryParameters['sortBy'] = requestParameters.sortBy;
|
|
272
275
|
}
|
|
273
276
|
headerParameters = {};
|
|
274
277
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -60,9 +60,10 @@ export interface CheckDnsRequest {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export interface ListRequest {
|
|
63
|
+
filter?: object;
|
|
63
64
|
page?: number;
|
|
64
65
|
limit?: number;
|
|
65
|
-
|
|
66
|
+
sortBy?: Array<string>;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
export interface UpdateRequest {
|
|
@@ -217,6 +218,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
217
218
|
async listRaw(requestParameters: ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
218
219
|
const queryParameters: any = {};
|
|
219
220
|
|
|
221
|
+
if (requestParameters.filter !== undefined) {
|
|
222
|
+
queryParameters['filter'] = requestParameters.filter;
|
|
223
|
+
}
|
|
224
|
+
|
|
220
225
|
if (requestParameters.page !== undefined) {
|
|
221
226
|
queryParameters['page'] = requestParameters.page;
|
|
222
227
|
}
|
|
@@ -225,8 +230,8 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
225
230
|
queryParameters['limit'] = requestParameters.limit;
|
|
226
231
|
}
|
|
227
232
|
|
|
228
|
-
if (requestParameters.
|
|
229
|
-
queryParameters['
|
|
233
|
+
if (requestParameters.sortBy) {
|
|
234
|
+
queryParameters['sortBy'] = requestParameters.sortBy;
|
|
230
235
|
}
|
|
231
236
|
|
|
232
237
|
const headerParameters: runtime.HTTPHeaders = {};
|
package/.gitkeep
DELETED
|
File without changes
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
* Returned if login is incorrect.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UserAuthControllerLogin401Response
|
|
16
|
-
*/
|
|
17
|
-
export interface UserAuthControllerLogin401Response {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UserAuthControllerLogin401Response
|
|
22
|
-
*/
|
|
23
|
-
statusCode: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserAuthControllerLogin401Response
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UserAuthControllerLogin401Response
|
|
34
|
-
*/
|
|
35
|
-
error?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the UserAuthControllerLogin401Response interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfUserAuthControllerLogin401Response(value: object): boolean;
|
|
41
|
-
export declare function UserAuthControllerLogin401ResponseFromJSON(json: any): UserAuthControllerLogin401Response;
|
|
42
|
-
export declare function UserAuthControllerLogin401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthControllerLogin401Response;
|
|
43
|
-
export declare function UserAuthControllerLogin401ResponseToJSON(value?: UserAuthControllerLogin401Response | null): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
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.UserAuthControllerLogin401ResponseToJSON = exports.UserAuthControllerLogin401ResponseFromJSONTyped = exports.UserAuthControllerLogin401ResponseFromJSON = exports.instanceOfUserAuthControllerLogin401Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the UserAuthControllerLogin401Response interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfUserAuthControllerLogin401Response(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "statusCode" in value;
|
|
24
|
-
isInstance = isInstance && "message" in value;
|
|
25
|
-
return isInstance;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfUserAuthControllerLogin401Response = instanceOfUserAuthControllerLogin401Response;
|
|
28
|
-
function UserAuthControllerLogin401ResponseFromJSON(json) {
|
|
29
|
-
return UserAuthControllerLogin401ResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.UserAuthControllerLogin401ResponseFromJSON = UserAuthControllerLogin401ResponseFromJSON;
|
|
32
|
-
function UserAuthControllerLogin401ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if ((json === undefined) || (json === null)) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'statusCode': json['statusCode'],
|
|
38
|
-
'message': json['message'],
|
|
39
|
-
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
exports.UserAuthControllerLogin401ResponseFromJSONTyped = UserAuthControllerLogin401ResponseFromJSONTyped;
|
|
43
|
-
function UserAuthControllerLogin401ResponseToJSON(value) {
|
|
44
|
-
if (value === undefined) {
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'statusCode': value.statusCode,
|
|
52
|
-
'message': value.message,
|
|
53
|
-
'error': value.error,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
exports.UserAuthControllerLogin401ResponseToJSON = UserAuthControllerLogin401ResponseToJSON;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
* Returned if more than 5 requests are made per minute.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UserAuthControllerLogin429Response
|
|
16
|
-
*/
|
|
17
|
-
export interface UserAuthControllerLogin429Response {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UserAuthControllerLogin429Response
|
|
22
|
-
*/
|
|
23
|
-
statusCode: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserAuthControllerLogin429Response
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UserAuthControllerLogin429Response
|
|
34
|
-
*/
|
|
35
|
-
error?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the UserAuthControllerLogin429Response interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfUserAuthControllerLogin429Response(value: object): boolean;
|
|
41
|
-
export declare function UserAuthControllerLogin429ResponseFromJSON(json: any): UserAuthControllerLogin429Response;
|
|
42
|
-
export declare function UserAuthControllerLogin429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthControllerLogin429Response;
|
|
43
|
-
export declare function UserAuthControllerLogin429ResponseToJSON(value?: UserAuthControllerLogin429Response | null): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
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.UserAuthControllerLogin429ResponseToJSON = exports.UserAuthControllerLogin429ResponseFromJSONTyped = exports.UserAuthControllerLogin429ResponseFromJSON = exports.instanceOfUserAuthControllerLogin429Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the UserAuthControllerLogin429Response interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfUserAuthControllerLogin429Response(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "statusCode" in value;
|
|
24
|
-
isInstance = isInstance && "message" in value;
|
|
25
|
-
return isInstance;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfUserAuthControllerLogin429Response = instanceOfUserAuthControllerLogin429Response;
|
|
28
|
-
function UserAuthControllerLogin429ResponseFromJSON(json) {
|
|
29
|
-
return UserAuthControllerLogin429ResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.UserAuthControllerLogin429ResponseFromJSON = UserAuthControllerLogin429ResponseFromJSON;
|
|
32
|
-
function UserAuthControllerLogin429ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if ((json === undefined) || (json === null)) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'statusCode': json['statusCode'],
|
|
38
|
-
'message': json['message'],
|
|
39
|
-
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
exports.UserAuthControllerLogin429ResponseFromJSONTyped = UserAuthControllerLogin429ResponseFromJSONTyped;
|
|
43
|
-
function UserAuthControllerLogin429ResponseToJSON(value) {
|
|
44
|
-
if (value === undefined) {
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'statusCode': value.statusCode,
|
|
52
|
-
'message': value.message,
|
|
53
|
-
'error': value.error,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
exports.UserAuthControllerLogin429ResponseToJSON = UserAuthControllerLogin429ResponseToJSON;
|
|
@@ -1,83 +0,0 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Returned if login is incorrect.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UserAuthControllerLogin401Response
|
|
20
|
-
*/
|
|
21
|
-
export interface UserAuthControllerLogin401Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof UserAuthControllerLogin401Response
|
|
26
|
-
*/
|
|
27
|
-
statusCode: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UserAuthControllerLogin401Response
|
|
32
|
-
*/
|
|
33
|
-
message: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UserAuthControllerLogin401Response
|
|
38
|
-
*/
|
|
39
|
-
error?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the UserAuthControllerLogin401Response interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfUserAuthControllerLogin401Response(value: object): boolean {
|
|
46
|
-
let isInstance = true;
|
|
47
|
-
isInstance = isInstance && "statusCode" in value;
|
|
48
|
-
isInstance = isInstance && "message" in value;
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function UserAuthControllerLogin401ResponseFromJSON(json: any): UserAuthControllerLogin401Response {
|
|
54
|
-
return UserAuthControllerLogin401ResponseFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function UserAuthControllerLogin401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthControllerLogin401Response {
|
|
58
|
-
if ((json === undefined) || (json === null)) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'statusCode': json['statusCode'],
|
|
64
|
-
'message': json['message'],
|
|
65
|
-
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function UserAuthControllerLogin401ResponseToJSON(value?: UserAuthControllerLogin401Response | null): any {
|
|
70
|
-
if (value === undefined) {
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'statusCode': value.statusCode,
|
|
79
|
-
'message': value.message,
|
|
80
|
-
'error': value.error,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Returned if more than 5 requests are made per minute.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UserAuthControllerLogin429Response
|
|
20
|
-
*/
|
|
21
|
-
export interface UserAuthControllerLogin429Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof UserAuthControllerLogin429Response
|
|
26
|
-
*/
|
|
27
|
-
statusCode: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UserAuthControllerLogin429Response
|
|
32
|
-
*/
|
|
33
|
-
message: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UserAuthControllerLogin429Response
|
|
38
|
-
*/
|
|
39
|
-
error?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the UserAuthControllerLogin429Response interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfUserAuthControllerLogin429Response(value: object): boolean {
|
|
46
|
-
let isInstance = true;
|
|
47
|
-
isInstance = isInstance && "statusCode" in value;
|
|
48
|
-
isInstance = isInstance && "message" in value;
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function UserAuthControllerLogin429ResponseFromJSON(json: any): UserAuthControllerLogin429Response {
|
|
54
|
-
return UserAuthControllerLogin429ResponseFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function UserAuthControllerLogin429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthControllerLogin429Response {
|
|
58
|
-
if ((json === undefined) || (json === null)) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'statusCode': json['statusCode'],
|
|
64
|
-
'message': json['message'],
|
|
65
|
-
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function UserAuthControllerLogin429ResponseToJSON(value?: UserAuthControllerLogin429Response | null): any {
|
|
70
|
-
if (value === undefined) {
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'statusCode': value.statusCode,
|
|
79
|
-
'message': value.message,
|
|
80
|
-
'error': value.error,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|