@randock/nameshift-api-client 0.0.1 → 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 +2 -2
- package/dist/apis/AuthApi.d.ts +5 -3
- package/dist/apis/AuthApi.js +6 -4
- package/dist/apis/DomainsApi.d.ts +5 -4
- package/dist/apis/DomainsApi.js +8 -5
- package/dist/models/Login401Response.d.ts +43 -0
- package/dist/models/{UserAuthControllerLogin401Response.js → Login401Response.js} +11 -11
- package/dist/models/Login429Response.d.ts +43 -0
- package/dist/models/{UserAuthControllerLogin429Response.js → Login429Response.js} +11 -11
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +13 -11
- package/src/apis/DomainsApi.ts +12 -7
- package/src/models/{UserAuthControllerLogin401Response.ts → Login401Response.ts} +11 -11
- package/src/models/{UserAuthControllerLogin429Response.ts → Login429Response.ts} +11 -11
- package/src/models/index.ts +2 -2
- package/dist/models/UserAuthControllerLogin401Response.d.ts +0 -43
- package/dist/models/UserAuthControllerLogin429Response.d.ts +0 -43
package/.openapi-generator/FILES
CHANGED
|
@@ -29,6 +29,8 @@ src/models/List200Response.ts
|
|
|
29
29
|
src/models/List400Response.ts
|
|
30
30
|
src/models/List401Response.ts
|
|
31
31
|
src/models/List429Response.ts
|
|
32
|
+
src/models/Login401Response.ts
|
|
33
|
+
src/models/Login429Response.ts
|
|
32
34
|
src/models/LoginInput.ts
|
|
33
35
|
src/models/MoneyDto.ts
|
|
34
36
|
src/models/MoneyInput.ts
|
|
@@ -38,8 +40,6 @@ src/models/PaginateResponseMeta.ts
|
|
|
38
40
|
src/models/TokenDto.ts
|
|
39
41
|
src/models/UpdateDomainInput.ts
|
|
40
42
|
src/models/UpdateSettings401Response.ts
|
|
41
|
-
src/models/UserAuthControllerLogin401Response.ts
|
|
42
|
-
src/models/UserAuthControllerLogin429Response.ts
|
|
43
43
|
src/models/index.ts
|
|
44
44
|
src/runtime.ts
|
|
45
45
|
tsconfig.json
|
package/dist/apis/AuthApi.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { LoginInput, TokenDto } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface LoginRequest {
|
|
15
15
|
loginInput: LoginInput;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -19,9 +19,11 @@ export interface UserAuthControllerLoginRequest {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class AuthApi extends runtime.BaseAPI {
|
|
21
21
|
/**
|
|
22
|
+
*
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>>;
|
|
24
25
|
/**
|
|
26
|
+
*
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto>;
|
|
27
29
|
}
|
package/dist/apis/AuthApi.js
CHANGED
|
@@ -76,15 +76,16 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
+
*
|
|
79
80
|
*/
|
|
80
|
-
AuthApi.prototype.
|
|
81
|
+
AuthApi.prototype.loginRaw = function (requestParameters, initOverrides) {
|
|
81
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
83
|
var queryParameters, headerParameters, response;
|
|
83
84
|
return __generator(this, function (_a) {
|
|
84
85
|
switch (_a.label) {
|
|
85
86
|
case 0:
|
|
86
87
|
if (requestParameters.loginInput === null || requestParameters.loginInput === undefined) {
|
|
87
|
-
throw new runtime.RequiredError('loginInput', 'Required parameter requestParameters.loginInput was null or undefined when calling
|
|
88
|
+
throw new runtime.RequiredError('loginInput', 'Required parameter requestParameters.loginInput was null or undefined when calling login.');
|
|
88
89
|
}
|
|
89
90
|
queryParameters = {};
|
|
90
91
|
headerParameters = {};
|
|
@@ -104,13 +105,14 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
104
105
|
});
|
|
105
106
|
};
|
|
106
107
|
/**
|
|
108
|
+
*
|
|
107
109
|
*/
|
|
108
|
-
AuthApi.prototype.
|
|
110
|
+
AuthApi.prototype.login = function (requestParameters, initOverrides) {
|
|
109
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
110
112
|
var response;
|
|
111
113
|
return __generator(this, function (_a) {
|
|
112
114
|
switch (_a.label) {
|
|
113
|
-
case 0: return [4 /*yield*/, this.
|
|
115
|
+
case 0: return [4 /*yield*/, this.loginRaw(requestParameters, initOverrides)];
|
|
114
116
|
case 1:
|
|
115
117
|
response = _a.sent();
|
|
116
118
|
return [4 /*yield*/, response.value()];
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { BatchUpdateDomainsInput, DomainDto, ImportDomainsDto, List200Response, UpdateDomainInput } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface BatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
17
17
|
}
|
|
@@ -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;
|
|
@@ -37,11 +38,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsDto>>;
|
|
41
42
|
/**
|
|
42
43
|
*
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
+
batchImport(requestParameters?: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsDto>;
|
|
45
46
|
/**
|
|
46
47
|
*
|
|
47
48
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -78,7 +78,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
DomainsApi.prototype.
|
|
81
|
+
DomainsApi.prototype.batchImportRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
@@ -132,13 +132,13 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
132
132
|
/**
|
|
133
133
|
*
|
|
134
134
|
*/
|
|
135
|
-
DomainsApi.prototype.
|
|
135
|
+
DomainsApi.prototype.batchImport = function (requestParameters, initOverrides) {
|
|
136
136
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
137
137
|
return __awaiter(this, void 0, void 0, function () {
|
|
138
138
|
var response;
|
|
139
139
|
return __generator(this, function (_a) {
|
|
140
140
|
switch (_a.label) {
|
|
141
|
-
case 0: return [4 /*yield*/, this.
|
|
141
|
+
case 0: return [4 /*yield*/, this.batchImportRaw(requestParameters, initOverrides)];
|
|
142
142
|
case 1:
|
|
143
143
|
response = _a.sent();
|
|
144
144
|
return [4 /*yield*/, response.value()];
|
|
@@ -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];
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Login401Response
|
|
16
|
+
*/
|
|
17
|
+
export interface Login401Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Login401Response
|
|
22
|
+
*/
|
|
23
|
+
statusCode: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Login401Response
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Login401Response
|
|
34
|
+
*/
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Login401Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLogin401Response(value: object): boolean;
|
|
41
|
+
export declare function Login401ResponseFromJSON(json: any): Login401Response;
|
|
42
|
+
export declare function Login401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login401Response;
|
|
43
|
+
export declare function Login401ResponseToJSON(value?: Login401Response | null): any;
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.Login401ResponseToJSON = exports.Login401ResponseFromJSONTyped = exports.Login401ResponseFromJSON = exports.instanceOfLogin401Response = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the Login401Response interface.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function instanceOfLogin401Response(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
23
|
isInstance = isInstance && "statusCode" in value;
|
|
24
24
|
isInstance = isInstance && "message" in value;
|
|
25
25
|
return isInstance;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfLogin401Response = instanceOfLogin401Response;
|
|
28
|
+
function Login401ResponseFromJSON(json) {
|
|
29
|
+
return Login401ResponseFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.Login401ResponseFromJSON = Login401ResponseFromJSON;
|
|
32
|
+
function Login401ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if ((json === undefined) || (json === null)) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -39,8 +39,8 @@ function UserAuthControllerLogin401ResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
39
39
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.Login401ResponseFromJSONTyped = Login401ResponseFromJSONTyped;
|
|
43
|
+
function Login401ResponseToJSON(value) {
|
|
44
44
|
if (value === undefined) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -53,4 +53,4 @@ function UserAuthControllerLogin401ResponseToJSON(value) {
|
|
|
53
53
|
'error': value.error,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
exports.
|
|
56
|
+
exports.Login401ResponseToJSON = Login401ResponseToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Login429Response
|
|
16
|
+
*/
|
|
17
|
+
export interface Login429Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Login429Response
|
|
22
|
+
*/
|
|
23
|
+
statusCode: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Login429Response
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Login429Response
|
|
34
|
+
*/
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Login429Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLogin429Response(value: object): boolean;
|
|
41
|
+
export declare function Login429ResponseFromJSON(json: any): Login429Response;
|
|
42
|
+
export declare function Login429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login429Response;
|
|
43
|
+
export declare function Login429ResponseToJSON(value?: Login429Response | null): any;
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.Login429ResponseToJSON = exports.Login429ResponseFromJSONTyped = exports.Login429ResponseFromJSON = exports.instanceOfLogin429Response = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the Login429Response interface.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function instanceOfLogin429Response(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
23
|
isInstance = isInstance && "statusCode" in value;
|
|
24
24
|
isInstance = isInstance && "message" in value;
|
|
25
25
|
return isInstance;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfLogin429Response = instanceOfLogin429Response;
|
|
28
|
+
function Login429ResponseFromJSON(json) {
|
|
29
|
+
return Login429ResponseFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.Login429ResponseFromJSON = Login429ResponseFromJSON;
|
|
32
|
+
function Login429ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if ((json === undefined) || (json === null)) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -39,8 +39,8 @@ function UserAuthControllerLogin429ResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
39
39
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.Login429ResponseFromJSONTyped = Login429ResponseFromJSONTyped;
|
|
43
|
+
function Login429ResponseToJSON(value) {
|
|
44
44
|
if (value === undefined) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -53,4 +53,4 @@ function UserAuthControllerLogin429ResponseToJSON(value) {
|
|
|
53
53
|
'error': value.error,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
exports.
|
|
56
|
+
exports.Login429ResponseToJSON = Login429ResponseToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './List200Response';
|
|
|
17
17
|
export * from './List400Response';
|
|
18
18
|
export * from './List401Response';
|
|
19
19
|
export * from './List429Response';
|
|
20
|
+
export * from './Login401Response';
|
|
21
|
+
export * from './Login429Response';
|
|
20
22
|
export * from './LoginInput';
|
|
21
23
|
export * from './MoneyDto';
|
|
22
24
|
export * from './MoneyInput';
|
|
@@ -26,5 +28,3 @@ export * from './PaginateResponseMeta';
|
|
|
26
28
|
export * from './TokenDto';
|
|
27
29
|
export * from './UpdateDomainInput';
|
|
28
30
|
export * from './UpdateSettings401Response';
|
|
29
|
-
export * from './UserAuthControllerLogin401Response';
|
|
30
|
-
export * from './UserAuthControllerLogin429Response';
|
package/dist/models/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __exportStar(require("./List200Response"), exports);
|
|
|
35
35
|
__exportStar(require("./List400Response"), exports);
|
|
36
36
|
__exportStar(require("./List401Response"), exports);
|
|
37
37
|
__exportStar(require("./List429Response"), exports);
|
|
38
|
+
__exportStar(require("./Login401Response"), exports);
|
|
39
|
+
__exportStar(require("./Login429Response"), exports);
|
|
38
40
|
__exportStar(require("./LoginInput"), exports);
|
|
39
41
|
__exportStar(require("./MoneyDto"), exports);
|
|
40
42
|
__exportStar(require("./MoneyInput"), exports);
|
|
@@ -44,5 +46,3 @@ __exportStar(require("./PaginateResponseMeta"), exports);
|
|
|
44
46
|
__exportStar(require("./TokenDto"), exports);
|
|
45
47
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
46
48
|
__exportStar(require("./UpdateSettings401Response"), exports);
|
|
47
|
-
__exportStar(require("./UserAuthControllerLogin401Response"), exports);
|
|
48
|
-
__exportStar(require("./UserAuthControllerLogin429Response"), exports);
|
package/package.json
CHANGED
package/src/apis/AuthApi.ts
CHANGED
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
Login401Response,
|
|
19
|
+
Login429Response,
|
|
18
20
|
LoginInput,
|
|
19
21
|
TokenDto,
|
|
20
|
-
UserAuthControllerLogin401Response,
|
|
21
|
-
UserAuthControllerLogin429Response,
|
|
22
22
|
} from '../models/index';
|
|
23
23
|
import {
|
|
24
|
+
Login401ResponseFromJSON,
|
|
25
|
+
Login401ResponseToJSON,
|
|
26
|
+
Login429ResponseFromJSON,
|
|
27
|
+
Login429ResponseToJSON,
|
|
24
28
|
LoginInputFromJSON,
|
|
25
29
|
LoginInputToJSON,
|
|
26
30
|
TokenDtoFromJSON,
|
|
27
31
|
TokenDtoToJSON,
|
|
28
|
-
UserAuthControllerLogin401ResponseFromJSON,
|
|
29
|
-
UserAuthControllerLogin401ResponseToJSON,
|
|
30
|
-
UserAuthControllerLogin429ResponseFromJSON,
|
|
31
|
-
UserAuthControllerLogin429ResponseToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
-
export interface
|
|
34
|
+
export interface LoginRequest {
|
|
35
35
|
loginInput: LoginInput;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -41,10 +41,11 @@ export interface UserAuthControllerLoginRequest {
|
|
|
41
41
|
export class AuthApi extends runtime.BaseAPI {
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
+
*
|
|
44
45
|
*/
|
|
45
|
-
async
|
|
46
|
+
async loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
|
|
46
47
|
if (requestParameters.loginInput === null || requestParameters.loginInput === undefined) {
|
|
47
|
-
throw new runtime.RequiredError('loginInput','Required parameter requestParameters.loginInput was null or undefined when calling
|
|
48
|
+
throw new runtime.RequiredError('loginInput','Required parameter requestParameters.loginInput was null or undefined when calling login.');
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
const queryParameters: any = {};
|
|
@@ -65,9 +66,10 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
/**
|
|
69
|
+
*
|
|
68
70
|
*/
|
|
69
|
-
async
|
|
70
|
-
const response = await this.
|
|
71
|
+
async login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto> {
|
|
72
|
+
const response = await this.loginRaw(requestParameters, initOverrides);
|
|
71
73
|
return await response.value();
|
|
72
74
|
}
|
|
73
75
|
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
UpdateDomainInputToJSON,
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
|
-
export interface
|
|
49
|
+
export interface BatchImportRequest {
|
|
50
50
|
file?: Blob | null;
|
|
51
51
|
domains?: Array<string>;
|
|
52
52
|
}
|
|
@@ -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 {
|
|
@@ -78,7 +79,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
78
79
|
/**
|
|
79
80
|
*
|
|
80
81
|
*/
|
|
81
|
-
async
|
|
82
|
+
async batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsDto>> {
|
|
82
83
|
const queryParameters: any = {};
|
|
83
84
|
|
|
84
85
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -129,8 +130,8 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
129
130
|
/**
|
|
130
131
|
*
|
|
131
132
|
*/
|
|
132
|
-
async
|
|
133
|
-
const response = await this.
|
|
133
|
+
async batchImport(requestParameters: BatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsDto> {
|
|
134
|
+
const response = await this.batchImportRaw(requestParameters, initOverrides);
|
|
134
135
|
return await response.value();
|
|
135
136
|
}
|
|
136
137
|
|
|
@@ -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 = {};
|
|
@@ -16,33 +16,33 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
* Returned if login is incorrect.
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface Login401Response
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface Login401Response {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof Login401Response
|
|
26
26
|
*/
|
|
27
27
|
statusCode: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof Login401Response
|
|
32
32
|
*/
|
|
33
33
|
message: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof Login401Response
|
|
38
38
|
*/
|
|
39
39
|
error?: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the Login401Response interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfLogin401Response(value: object): boolean {
|
|
46
46
|
let isInstance = true;
|
|
47
47
|
isInstance = isInstance && "statusCode" in value;
|
|
48
48
|
isInstance = isInstance && "message" in value;
|
|
@@ -50,11 +50,11 @@ export function instanceOfUserAuthControllerLogin401Response(value: object): boo
|
|
|
50
50
|
return isInstance;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export function
|
|
54
|
-
return
|
|
53
|
+
export function Login401ResponseFromJSON(json: any): Login401Response {
|
|
54
|
+
return Login401ResponseFromJSONTyped(json, false);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export function
|
|
57
|
+
export function Login401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login401Response {
|
|
58
58
|
if ((json === undefined) || (json === null)) {
|
|
59
59
|
return json;
|
|
60
60
|
}
|
|
@@ -66,7 +66,7 @@ export function UserAuthControllerLogin401ResponseFromJSONTyped(json: any, ignor
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
69
|
+
export function Login401ResponseToJSON(value?: Login401Response | null): any {
|
|
70
70
|
if (value === undefined) {
|
|
71
71
|
return undefined;
|
|
72
72
|
}
|
|
@@ -16,33 +16,33 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
* Returned if more than 5 requests are made per minute.
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface Login429Response
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface Login429Response {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof Login429Response
|
|
26
26
|
*/
|
|
27
27
|
statusCode: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof Login429Response
|
|
32
32
|
*/
|
|
33
33
|
message: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof Login429Response
|
|
38
38
|
*/
|
|
39
39
|
error?: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the Login429Response interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfLogin429Response(value: object): boolean {
|
|
46
46
|
let isInstance = true;
|
|
47
47
|
isInstance = isInstance && "statusCode" in value;
|
|
48
48
|
isInstance = isInstance && "message" in value;
|
|
@@ -50,11 +50,11 @@ export function instanceOfUserAuthControllerLogin429Response(value: object): boo
|
|
|
50
50
|
return isInstance;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export function
|
|
54
|
-
return
|
|
53
|
+
export function Login429ResponseFromJSON(json: any): Login429Response {
|
|
54
|
+
return Login429ResponseFromJSONTyped(json, false);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export function
|
|
57
|
+
export function Login429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login429Response {
|
|
58
58
|
if ((json === undefined) || (json === null)) {
|
|
59
59
|
return json;
|
|
60
60
|
}
|
|
@@ -66,7 +66,7 @@ export function UserAuthControllerLogin429ResponseFromJSONTyped(json: any, ignor
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
69
|
+
export function Login429ResponseToJSON(value?: Login429Response | null): any {
|
|
70
70
|
if (value === undefined) {
|
|
71
71
|
return undefined;
|
|
72
72
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -19,6 +19,8 @@ export * from './List200Response';
|
|
|
19
19
|
export * from './List400Response';
|
|
20
20
|
export * from './List401Response';
|
|
21
21
|
export * from './List429Response';
|
|
22
|
+
export * from './Login401Response';
|
|
23
|
+
export * from './Login429Response';
|
|
22
24
|
export * from './LoginInput';
|
|
23
25
|
export * from './MoneyDto';
|
|
24
26
|
export * from './MoneyInput';
|
|
@@ -28,5 +30,3 @@ export * from './PaginateResponseMeta';
|
|
|
28
30
|
export * from './TokenDto';
|
|
29
31
|
export * from './UpdateDomainInput';
|
|
30
32
|
export * from './UpdateSettings401Response';
|
|
31
|
-
export * from './UserAuthControllerLogin401Response';
|
|
32
|
-
export * from './UserAuthControllerLogin429Response';
|
|
@@ -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,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;
|