@randock/nameshift-api-client 0.0.39 → 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 +5 -2
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -46
- package/dist/apis/AccountsPublicApi.js +0 -181
- package/dist/apis/AdminApi.d.ts +13 -13
- package/dist/apis/AdminApi.js +43 -43
- package/dist/apis/DomainsApi.d.ts +15 -1
- package/dist/apis/DomainsApi.js +63 -0
- 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/AdminGetAllDomainTransfers200Response.d.ts +46 -0
- package/dist/models/AdminGetAllDomainTransfers200Response.js +58 -0
- package/dist/models/GetAllDomainTransfers200Response.d.ts +3 -3
- package/dist/models/GetAllDomainTransfers200Response.js +3 -3
- package/dist/models/LoginDto.d.ts +37 -0
- package/dist/models/LoginDto.js +51 -0
- package/dist/models/SellerDomainTransferDomainDto.d.ts +43 -0
- package/dist/models/SellerDomainTransferDomainDto.js +55 -0
- package/dist/models/SellerDomainTransferDto.d.ts +74 -0
- package/dist/models/SellerDomainTransferDto.js +80 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -184
- package/src/apis/AdminApi.ts +56 -56
- package/src/apis/DomainsApi.ts +60 -3
- package/src/apis/UsersPublicApi.ts +214 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminGetAllDomainTransfers200Response.ts +98 -0
- package/src/models/GetAllDomainTransfers200Response.ts +9 -9
- package/src/models/{TokenDto.ts → LoginDto.ts} +18 -9
- package/src/models/SellerDomainTransferDomainDto.ts +79 -0
- package/src/models/SellerDomainTransferDto.ts +126 -0
- package/src/models/index.ts +4 -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
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
PaginateResponseLinksFromJSONTyped,
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
} from './PaginateResponseLinks';
|
|
22
|
-
import type {
|
|
22
|
+
import type { SellerDomainTransferDto } from './SellerDomainTransferDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
SellerDomainTransferDtoFromJSON,
|
|
25
|
+
SellerDomainTransferDtoFromJSONTyped,
|
|
26
|
+
SellerDomainTransferDtoToJSON,
|
|
27
|
+
} from './SellerDomainTransferDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
export interface GetAllDomainTransfers200Response {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<SellerDomainTransferDto>}
|
|
44
44
|
* @memberof GetAllDomainTransfers200Response
|
|
45
45
|
*/
|
|
46
|
-
data: Array<
|
|
46
|
+
data: Array<SellerDomainTransferDto>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaginateResponseMeta}
|
|
@@ -78,7 +78,7 @@ export function GetAllDomainTransfers200ResponseFromJSONTyped(json: any, ignoreD
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'data': ((json['data'] as Array<any>).map(
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(SellerDomainTransferDtoFromJSON)),
|
|
82
82
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
83
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
84
|
};
|
|
@@ -90,7 +90,7 @@ export function GetAllDomainTransfers200ResponseToJSON(value?: GetAllDomainTrans
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
|
-
'data': ((value['data'] as Array<any>).map(
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(SellerDomainTransferDtoToJSON)),
|
|
94
94
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
95
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
96
|
};
|
|
@@ -16,46 +16,55 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface LoginDto
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface LoginDto {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof LoginDto
|
|
26
26
|
*/
|
|
27
27
|
token: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginDto
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the LoginDto interface.
|
|
32
38
|
*/
|
|
33
|
-
export function
|
|
39
|
+
export function instanceOfLoginDto(value: object): boolean {
|
|
34
40
|
if (!('token' in value)) return false;
|
|
41
|
+
if (!('locale' in value)) return false;
|
|
35
42
|
return true;
|
|
36
43
|
}
|
|
37
44
|
|
|
38
|
-
export function
|
|
39
|
-
return
|
|
45
|
+
export function LoginDtoFromJSON(json: any): LoginDto {
|
|
46
|
+
return LoginDtoFromJSONTyped(json, false);
|
|
40
47
|
}
|
|
41
48
|
|
|
42
|
-
export function
|
|
49
|
+
export function LoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginDto {
|
|
43
50
|
if (json == null) {
|
|
44
51
|
return json;
|
|
45
52
|
}
|
|
46
53
|
return {
|
|
47
54
|
|
|
48
55
|
'token': json['token'],
|
|
56
|
+
'locale': json['locale'],
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
52
|
-
export function
|
|
60
|
+
export function LoginDtoToJSON(value?: LoginDto | null): any {
|
|
53
61
|
if (value == null) {
|
|
54
62
|
return value;
|
|
55
63
|
}
|
|
56
64
|
return {
|
|
57
65
|
|
|
58
66
|
'token': value['token'],
|
|
67
|
+
'locale': value['locale'],
|
|
59
68
|
};
|
|
60
69
|
}
|
|
61
70
|
|
|
@@ -0,0 +1,79 @@
|
|
|
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 SellerDomainTransferDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerDomainTransferDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
* The domain ID
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof SellerDomainTransferDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
* The domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SellerDomainTransferDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The domain TLD
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SellerDomainTransferDomainDto
|
|
38
|
+
*/
|
|
39
|
+
tld: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SellerDomainTransferDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSellerDomainTransferDomainDto(value: object): boolean {
|
|
46
|
+
if (!('id' in value)) return false;
|
|
47
|
+
if (!('name' in value)) return false;
|
|
48
|
+
if (!('tld' in value)) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SellerDomainTransferDomainDtoFromJSON(json: any): SellerDomainTransferDomainDto {
|
|
53
|
+
return SellerDomainTransferDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SellerDomainTransferDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'tld': json['tld'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SellerDomainTransferDomainDtoToJSON(value?: SellerDomainTransferDomainDto | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'tld': value['tld'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
import type { SellerDomainTransferDomainDto } from './SellerDomainTransferDomainDto';
|
|
17
|
+
import {
|
|
18
|
+
SellerDomainTransferDomainDtoFromJSON,
|
|
19
|
+
SellerDomainTransferDomainDtoFromJSONTyped,
|
|
20
|
+
SellerDomainTransferDomainDtoToJSON,
|
|
21
|
+
} from './SellerDomainTransferDomainDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface SellerDomainTransferDto
|
|
27
|
+
*/
|
|
28
|
+
export interface SellerDomainTransferDto {
|
|
29
|
+
/**
|
|
30
|
+
* The domain transfer ID
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof SellerDomainTransferDto
|
|
33
|
+
*/
|
|
34
|
+
id: object;
|
|
35
|
+
/**
|
|
36
|
+
* The domain of transfer
|
|
37
|
+
* @type {SellerDomainTransferDomainDto}
|
|
38
|
+
* @memberof SellerDomainTransferDto
|
|
39
|
+
*/
|
|
40
|
+
domain: SellerDomainTransferDomainDto;
|
|
41
|
+
/**
|
|
42
|
+
* The domain transfer status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof SellerDomainTransferDto
|
|
45
|
+
*/
|
|
46
|
+
status: SellerDomainTransferDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The domain transfer requirements
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof SellerDomainTransferDto
|
|
51
|
+
*/
|
|
52
|
+
requirements: SellerDomainTransferDtoRequirementsEnum;
|
|
53
|
+
/**
|
|
54
|
+
* The domain transfer creation date
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof SellerDomainTransferDto
|
|
57
|
+
*/
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const SellerDomainTransferDtoStatusEnum = {
|
|
66
|
+
CREATED: 'created',
|
|
67
|
+
STARTED: 'started',
|
|
68
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
69
|
+
ERROR: 'error',
|
|
70
|
+
COMPLETED: 'completed'
|
|
71
|
+
} as const;
|
|
72
|
+
export type SellerDomainTransferDtoStatusEnum = typeof SellerDomainTransferDtoStatusEnum[keyof typeof SellerDomainTransferDtoStatusEnum];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const SellerDomainTransferDtoRequirementsEnum = {
|
|
78
|
+
AUTH_CODE: 'auth_code'
|
|
79
|
+
} as const;
|
|
80
|
+
export type SellerDomainTransferDtoRequirementsEnum = typeof SellerDomainTransferDtoRequirementsEnum[keyof typeof SellerDomainTransferDtoRequirementsEnum];
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the SellerDomainTransferDto interface.
|
|
85
|
+
*/
|
|
86
|
+
export function instanceOfSellerDomainTransferDto(value: object): boolean {
|
|
87
|
+
if (!('id' in value)) return false;
|
|
88
|
+
if (!('domain' in value)) return false;
|
|
89
|
+
if (!('status' in value)) return false;
|
|
90
|
+
if (!('requirements' in value)) return false;
|
|
91
|
+
if (!('createdAt' in value)) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function SellerDomainTransferDtoFromJSON(json: any): SellerDomainTransferDto {
|
|
96
|
+
return SellerDomainTransferDtoFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function SellerDomainTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferDto {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'id': json['id'],
|
|
106
|
+
'domain': SellerDomainTransferDomainDtoFromJSON(json['domain']),
|
|
107
|
+
'status': json['status'],
|
|
108
|
+
'requirements': json['requirements'],
|
|
109
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function SellerDomainTransferDtoToJSON(value?: SellerDomainTransferDto | null): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'domain': SellerDomainTransferDomainDtoToJSON(value['domain']),
|
|
121
|
+
'status': value['status'],
|
|
122
|
+
'requirements': value['requirements'],
|
|
123
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AccountAddressInput';
|
|
|
5
5
|
export * from './AccountDto';
|
|
6
6
|
export * from './AccountFinancialInput';
|
|
7
7
|
export * from './AccountSettingsInput';
|
|
8
|
+
export * from './AdminGetAllDomainTransfers200Response';
|
|
8
9
|
export * from './BatchUpdateDomainsInput';
|
|
9
10
|
export * from './BuyDomainInput';
|
|
10
11
|
export * from './ChangeOrderStatusInput';
|
|
@@ -40,6 +41,7 @@ export * from './List200Response';
|
|
|
40
41
|
export * from './ListAccountDto';
|
|
41
42
|
export * from './ListAccounts200Response';
|
|
42
43
|
export * from './ListLeadMessagesDto';
|
|
44
|
+
export * from './LoginDto';
|
|
43
45
|
export * from './LoginInput';
|
|
44
46
|
export * from './MoneyDto';
|
|
45
47
|
export * from './MoneyInput';
|
|
@@ -52,10 +54,10 @@ export * from './PutLeadInput';
|
|
|
52
54
|
export * from './RegisterAccountInput';
|
|
53
55
|
export * from './RelatedSellerDomain';
|
|
54
56
|
export * from './SecurityUserDto';
|
|
57
|
+
export * from './SellerDomainTransferDomainDto';
|
|
58
|
+
export * from './SellerDomainTransferDto';
|
|
55
59
|
export * from './SetNewPasswordInput';
|
|
56
60
|
export * from './ThrottlerException';
|
|
57
|
-
export * from './TokenDto';
|
|
58
|
-
export * from './UnauthorizedException';
|
|
59
61
|
export * from './UpdateDomainInput';
|
|
60
62
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
61
63
|
export * from './UserPasswordResetDto';
|
|
@@ -1,31 +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 TokenDto
|
|
16
|
-
*/
|
|
17
|
-
export interface TokenDto {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof TokenDto
|
|
22
|
-
*/
|
|
23
|
-
token: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the TokenDto interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfTokenDto(value: object): boolean;
|
|
29
|
-
export declare function TokenDtoFromJSON(json: any): TokenDto;
|
|
30
|
-
export declare function TokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenDto;
|
|
31
|
-
export declare function TokenDtoToJSON(value?: TokenDto | null): any;
|
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
|
-
|