@randock/nameshift-api-client 0.0.1 → 0.0.2
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/.gitkeep +0 -0
- package/.openapi-generator/FILES +2 -3
- package/dist/apis/AuthApi.d.ts +5 -3
- package/dist/apis/AuthApi.js +6 -4
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +3 -3
- package/dist/models/Login401Response.d.ts +43 -0
- package/dist/models/Login401Response.js +56 -0
- package/dist/models/Login429Response.d.ts +43 -0
- package/dist/models/Login429Response.js +56 -0
- 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 +4 -4
- package/src/models/Login401Response.ts +83 -0
- package/src/models/Login429Response.ts +83 -0
- package/src/models/index.ts +2 -2
package/.gitkeep
ADDED
|
File without changes
|
package/.openapi-generator/FILES
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
|
-
.openapi-generator-ignore
|
|
4
3
|
README.md
|
|
5
4
|
package.json
|
|
6
5
|
src/apis/AccountsApi.ts
|
|
@@ -29,6 +28,8 @@ src/models/List200Response.ts
|
|
|
29
28
|
src/models/List400Response.ts
|
|
30
29
|
src/models/List401Response.ts
|
|
31
30
|
src/models/List429Response.ts
|
|
31
|
+
src/models/Login401Response.ts
|
|
32
|
+
src/models/Login429Response.ts
|
|
32
33
|
src/models/LoginInput.ts
|
|
33
34
|
src/models/MoneyDto.ts
|
|
34
35
|
src/models/MoneyInput.ts
|
|
@@ -38,8 +39,6 @@ src/models/PaginateResponseMeta.ts
|
|
|
38
39
|
src/models/TokenDto.ts
|
|
39
40
|
src/models/UpdateDomainInput.ts
|
|
40
41
|
src/models/UpdateSettings401Response.ts
|
|
41
|
-
src/models/UserAuthControllerLogin401Response.ts
|
|
42
|
-
src/models/UserAuthControllerLogin429Response.ts
|
|
43
42
|
src/models/index.ts
|
|
44
43
|
src/runtime.ts
|
|
45
44
|
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
|
}
|
|
@@ -37,11 +37,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsDto>>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
batchImport(requestParameters?: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsDto>;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
*/
|
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()];
|
|
@@ -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;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.Login401ResponseToJSON = exports.Login401ResponseFromJSONTyped = exports.Login401ResponseFromJSON = exports.instanceOfLogin401Response = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Login401Response interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLogin401Response(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "statusCode" in value;
|
|
24
|
+
isInstance = isInstance && "message" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfLogin401Response = instanceOfLogin401Response;
|
|
28
|
+
function Login401ResponseFromJSON(json) {
|
|
29
|
+
return Login401ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.Login401ResponseFromJSON = Login401ResponseFromJSON;
|
|
32
|
+
function Login401ResponseFromJSONTyped(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.Login401ResponseFromJSONTyped = Login401ResponseFromJSONTyped;
|
|
43
|
+
function Login401ResponseToJSON(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.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;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.Login429ResponseToJSON = exports.Login429ResponseFromJSONTyped = exports.Login429ResponseFromJSON = exports.instanceOfLogin429Response = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Login429Response interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLogin429Response(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "statusCode" in value;
|
|
24
|
+
isInstance = isInstance && "message" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfLogin429Response = instanceOfLogin429Response;
|
|
28
|
+
function Login429ResponseFromJSON(json) {
|
|
29
|
+
return Login429ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.Login429ResponseFromJSON = Login429ResponseFromJSON;
|
|
32
|
+
function Login429ResponseFromJSONTyped(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.Login429ResponseFromJSONTyped = Login429ResponseFromJSONTyped;
|
|
43
|
+
function Login429ResponseToJSON(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.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
|
}
|
|
@@ -78,7 +78,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
async
|
|
81
|
+
async batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsDto>> {
|
|
82
82
|
const queryParameters: any = {};
|
|
83
83
|
|
|
84
84
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -129,8 +129,8 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
131
|
*/
|
|
132
|
-
async
|
|
133
|
-
const response = await this.
|
|
132
|
+
async batchImport(requestParameters: BatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsDto> {
|
|
133
|
+
const response = await this.batchImportRaw(requestParameters, initOverrides);
|
|
134
134
|
return await response.value();
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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 Login401Response
|
|
20
|
+
*/
|
|
21
|
+
export interface Login401Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Login401Response
|
|
26
|
+
*/
|
|
27
|
+
statusCode: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Login401Response
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Login401Response
|
|
38
|
+
*/
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Login401Response interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLogin401Response(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 Login401ResponseFromJSON(json: any): Login401Response {
|
|
54
|
+
return Login401ResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function Login401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login401Response {
|
|
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 Login401ResponseToJSON(value?: Login401Response | 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
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 Login429Response
|
|
20
|
+
*/
|
|
21
|
+
export interface Login429Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Login429Response
|
|
26
|
+
*/
|
|
27
|
+
statusCode: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Login429Response
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Login429Response
|
|
38
|
+
*/
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Login429Response interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLogin429Response(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 Login429ResponseFromJSON(json: any): Login429Response {
|
|
54
|
+
return Login429ResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function Login429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login429Response {
|
|
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 Login429ResponseToJSON(value?: Login429Response | 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
|
+
|
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';
|