@randock/nameshift-api-client 0.0.40 → 0.0.41
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/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -46
- package/dist/apis/AccountsPublicApi.js +0 -181
- package/dist/apis/UsersPublicApi.d.ts +63 -0
- package/dist/apis/UsersPublicApi.js +261 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/LoginDto.d.ts +37 -0
- package/dist/models/LoginDto.js +51 -0
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -184
- package/src/apis/DomainsApi.ts +0 -3
- package/src/apis/UsersPublicApi.ts +214 -0
- package/src/apis/index.ts +1 -0
- package/src/models/{TokenDto.ts → LoginDto.ts} +18 -9
- package/src/models/index.ts +1 -2
- package/dist/models/TokenDto.d.ts +0 -31
- package/dist/models/TokenDto.js +0 -47
- package/dist/models/UnauthorizedException.d.ts +0 -43
- package/dist/models/UnauthorizedException.js +0 -55
- package/src/models/UnauthorizedException.ts +0 -79
package/dist/models/TokenDto.js
DELETED
|
@@ -1,47 +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.TokenDtoToJSON = exports.TokenDtoFromJSONTyped = exports.TokenDtoFromJSON = exports.instanceOfTokenDto = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the TokenDto interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfTokenDto(value) {
|
|
21
|
-
if (!('token' in value))
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfTokenDto = instanceOfTokenDto;
|
|
26
|
-
function TokenDtoFromJSON(json) {
|
|
27
|
-
return TokenDtoFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.TokenDtoFromJSON = TokenDtoFromJSON;
|
|
30
|
-
function TokenDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'token': json['token'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.TokenDtoFromJSONTyped = TokenDtoFromJSONTyped;
|
|
39
|
-
function TokenDtoToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'token': value['token'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.TokenDtoToJSON = TokenDtoToJSON;
|
|
@@ -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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UnauthorizedException
|
|
16
|
-
*/
|
|
17
|
-
export interface UnauthorizedException {
|
|
18
|
-
/**
|
|
19
|
-
* Exception name
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UnauthorizedException
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* http status code
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof UnauthorizedException
|
|
28
|
-
*/
|
|
29
|
-
statusCode: number;
|
|
30
|
-
/**
|
|
31
|
-
* error message
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UnauthorizedException
|
|
34
|
-
*/
|
|
35
|
-
message: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the UnauthorizedException interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfUnauthorizedException(value: object): boolean;
|
|
41
|
-
export declare function UnauthorizedExceptionFromJSON(json: any): UnauthorizedException;
|
|
42
|
-
export declare function UnauthorizedExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnauthorizedException;
|
|
43
|
-
export declare function UnauthorizedExceptionToJSON(value?: UnauthorizedException | null): any;
|
|
@@ -1,55 +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.UnauthorizedExceptionToJSON = exports.UnauthorizedExceptionFromJSONTyped = exports.UnauthorizedExceptionFromJSON = exports.instanceOfUnauthorizedException = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the UnauthorizedException interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfUnauthorizedException(value) {
|
|
21
|
-
if (!('name' in value))
|
|
22
|
-
return false;
|
|
23
|
-
if (!('statusCode' in value))
|
|
24
|
-
return false;
|
|
25
|
-
if (!('message' in value))
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
exports.instanceOfUnauthorizedException = instanceOfUnauthorizedException;
|
|
30
|
-
function UnauthorizedExceptionFromJSON(json) {
|
|
31
|
-
return UnauthorizedExceptionFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.UnauthorizedExceptionFromJSON = UnauthorizedExceptionFromJSON;
|
|
34
|
-
function UnauthorizedExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'name': json['name'],
|
|
40
|
-
'statusCode': json['statusCode'],
|
|
41
|
-
'message': json['message'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.UnauthorizedExceptionFromJSONTyped = UnauthorizedExceptionFromJSONTyped;
|
|
45
|
-
function UnauthorizedExceptionToJSON(value) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'name': value['name'],
|
|
51
|
-
'statusCode': value['statusCode'],
|
|
52
|
-
'message': value['message'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.UnauthorizedExceptionToJSON = UnauthorizedExceptionToJSON;
|
|
@@ -1,79 +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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UnauthorizedException
|
|
20
|
-
*/
|
|
21
|
-
export interface UnauthorizedException {
|
|
22
|
-
/**
|
|
23
|
-
* Exception name
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof UnauthorizedException
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* http status code
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof UnauthorizedException
|
|
32
|
-
*/
|
|
33
|
-
statusCode: number;
|
|
34
|
-
/**
|
|
35
|
-
* error message
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UnauthorizedException
|
|
38
|
-
*/
|
|
39
|
-
message: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the UnauthorizedException interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfUnauthorizedException(value: object): boolean {
|
|
46
|
-
if (!('name' in value)) return false;
|
|
47
|
-
if (!('statusCode' in value)) return false;
|
|
48
|
-
if (!('message' in value)) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function UnauthorizedExceptionFromJSON(json: any): UnauthorizedException {
|
|
53
|
-
return UnauthorizedExceptionFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function UnauthorizedExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnauthorizedException {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'name': json['name'],
|
|
63
|
-
'statusCode': json['statusCode'],
|
|
64
|
-
'message': json['message'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function UnauthorizedExceptionToJSON(value?: UnauthorizedException | null): any {
|
|
69
|
-
if (value == null) {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'name': value['name'],
|
|
75
|
-
'statusCode': value['statusCode'],
|
|
76
|
-
'message': value['message'],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|