@randock/nameshift-api-client 0.0.30 → 0.0.32
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 +9 -11
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +40 -0
- package/dist/apis/{AuthApi.js → AccountsPublicApi.js} +53 -9
- package/dist/apis/DomainsPublicApi.d.ts +9 -0
- package/dist/apis/DomainsPublicApi.js +40 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/ConflictException.d.ts +49 -0
- package/dist/models/ConflictException.js +59 -0
- package/dist/models/HttpException.d.ts +43 -0
- package/dist/models/{List401Response.js → HttpException.js} +15 -13
- package/dist/models/NotFoundException.d.ts +43 -0
- package/dist/models/NotFoundException.js +55 -0
- package/dist/models/RegisterAccountInput.d.ts +49 -0
- package/dist/models/RegisterAccountInput.js +59 -0
- package/dist/models/ThrottlerException.d.ts +43 -0
- package/dist/models/ThrottlerException.js +55 -0
- package/dist/models/UnauthorizedException.d.ts +43 -0
- package/dist/models/UnauthorizedException.js +55 -0
- package/dist/models/ValidationError.d.ts +43 -0
- package/dist/models/ValidationError.js +55 -0
- package/dist/models/ValidationException.d.ts +44 -0
- package/dist/models/ValidationException.js +56 -0
- package/dist/models/index.d.ts +8 -10
- package/dist/models/index.js +8 -10
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +9 -12
- package/src/apis/AccountsPublicApi.ts +127 -0
- package/src/apis/AdminApi.ts +6 -6
- package/src/apis/DashboardApi.ts +6 -6
- package/src/apis/DomainsApi.ts +12 -12
- package/src/apis/DomainsPublicApi.ts +43 -6
- package/src/apis/LeadsApi.ts +6 -6
- package/src/apis/LeadsPublicApi.ts +9 -9
- package/src/apis/index.ts +1 -1
- package/src/models/ConflictException.ts +88 -0
- package/src/models/{List401Response.ts → HttpException.ts} +22 -21
- package/src/models/{Login429Response.ts → NotFoundException.ts} +22 -21
- package/src/models/RegisterAccountInput.ts +88 -0
- package/src/models/{Login401Response.ts → ThrottlerException.ts} +22 -21
- package/src/models/{BatchUpdate404Response.ts → UnauthorizedException.ts} +21 -20
- package/src/models/ValidationError.ts +79 -0
- package/src/models/ValidationException.ts +86 -0
- package/src/models/index.ts +8 -10
- package/dist/apis/AuthApi.d.ts +0 -29
- package/dist/models/BatchUpdate404Response.d.ts +0 -43
- package/dist/models/BatchUpdate404Response.js +0 -53
- package/dist/models/GetDomainSalesInformation404Response.d.ts +0 -43
- package/dist/models/GetDomainSalesInformation404Response.js +0 -53
- package/dist/models/List400Response.d.ts +0 -43
- package/dist/models/List400Response.js +0 -53
- package/dist/models/List401Response.d.ts +0 -43
- package/dist/models/ListAccounts400Response.d.ts +0 -43
- package/dist/models/ListAccounts400Response.js +0 -53
- package/dist/models/ListAccounts429Response.d.ts +0 -43
- package/dist/models/ListAccounts429Response.js +0 -53
- package/dist/models/Login401Response.d.ts +0 -43
- package/dist/models/Login401Response.js +0 -53
- package/dist/models/Login429Response.d.ts +0 -43
- package/dist/models/Login429Response.js +0 -53
- package/dist/models/UpdateSettings400Response.d.ts +0 -43
- package/dist/models/UpdateSettings400Response.js +0 -53
- package/dist/models/UpdateSettings401Response.d.ts +0 -43
- package/dist/models/UpdateSettings401Response.js +0 -53
- package/src/apis/AuthApi.ts +0 -79
- package/src/models/GetDomainSalesInformation404Response.ts +0 -78
- package/src/models/List400Response.ts +0 -78
- package/src/models/ListAccounts400Response.ts +0 -78
- package/src/models/ListAccounts429Response.ts +0 -78
- package/src/models/UpdateSettings400Response.ts +0 -78
- package/src/models/UpdateSettings401Response.ts +0 -78
|
@@ -0,0 +1,59 @@
|
|
|
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.RegisterAccountInputToJSON = exports.RegisterAccountInputFromJSONTyped = exports.RegisterAccountInputFromJSON = exports.instanceOfRegisterAccountInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RegisterAccountInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfRegisterAccountInput(value) {
|
|
21
|
+
if (!('firstname' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('lastname' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('email' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfRegisterAccountInput = instanceOfRegisterAccountInput;
|
|
32
|
+
function RegisterAccountInputFromJSON(json) {
|
|
33
|
+
return RegisterAccountInputFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.RegisterAccountInputFromJSON = RegisterAccountInputFromJSON;
|
|
36
|
+
function RegisterAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'firstname': json['firstname'],
|
|
42
|
+
'lastname': json['lastname'],
|
|
43
|
+
'email': json['email'],
|
|
44
|
+
'password': json['password'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.RegisterAccountInputFromJSONTyped = RegisterAccountInputFromJSONTyped;
|
|
48
|
+
function RegisterAccountInputToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'firstname': value['firstname'],
|
|
54
|
+
'lastname': value['lastname'],
|
|
55
|
+
'email': value['email'],
|
|
56
|
+
'password': value['password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.RegisterAccountInputToJSON = RegisterAccountInputToJSON;
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ThrottlerException
|
|
16
|
+
*/
|
|
17
|
+
export interface ThrottlerException {
|
|
18
|
+
/**
|
|
19
|
+
* Exception name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ThrottlerException
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* http status code
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ThrottlerException
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number;
|
|
30
|
+
/**
|
|
31
|
+
* error message
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ThrottlerException
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ThrottlerException interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfThrottlerException(value: object): boolean;
|
|
41
|
+
export declare function ThrottlerExceptionFromJSON(json: any): ThrottlerException;
|
|
42
|
+
export declare function ThrottlerExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThrottlerException;
|
|
43
|
+
export declare function ThrottlerExceptionToJSON(value?: ThrottlerException | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.ThrottlerExceptionToJSON = exports.ThrottlerExceptionFromJSONTyped = exports.ThrottlerExceptionFromJSON = exports.instanceOfThrottlerException = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ThrottlerException interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfThrottlerException(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.instanceOfThrottlerException = instanceOfThrottlerException;
|
|
30
|
+
function ThrottlerExceptionFromJSON(json) {
|
|
31
|
+
return ThrottlerExceptionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ThrottlerExceptionFromJSON = ThrottlerExceptionFromJSON;
|
|
34
|
+
function ThrottlerExceptionFromJSONTyped(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.ThrottlerExceptionFromJSONTyped = ThrottlerExceptionFromJSONTyped;
|
|
45
|
+
function ThrottlerExceptionToJSON(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.ThrottlerExceptionToJSON = ThrottlerExceptionToJSON;
|
|
@@ -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
|
+
*
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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;
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidationError
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidationError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ValidationError
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ValidationError
|
|
28
|
+
*/
|
|
29
|
+
property: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ValidationError
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ValidationError interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfValidationError(value: object): boolean;
|
|
41
|
+
export declare function ValidationErrorFromJSON(json: any): ValidationError;
|
|
42
|
+
export declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
|
|
43
|
+
export declare function ValidationErrorToJSON(value?: ValidationError | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.ValidationErrorToJSON = exports.ValidationErrorFromJSONTyped = exports.ValidationErrorFromJSON = exports.instanceOfValidationError = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ValidationError interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfValidationError(value) {
|
|
21
|
+
if (!('code' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('property' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('message' in value))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfValidationError = instanceOfValidationError;
|
|
30
|
+
function ValidationErrorFromJSON(json) {
|
|
31
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
|
|
34
|
+
function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'code': json['code'],
|
|
40
|
+
'property': json['property'],
|
|
41
|
+
'message': json['message'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
|
|
45
|
+
function ValidationErrorToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'code': value['code'],
|
|
51
|
+
'property': value['property'],
|
|
52
|
+
'message': value['message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.ValidationErrorToJSON = ValidationErrorToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import type { ValidationError } from './ValidationError';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ValidationException
|
|
17
|
+
*/
|
|
18
|
+
export interface ValidationException {
|
|
19
|
+
/**
|
|
20
|
+
* Exception name
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ValidationException
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* http status code
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ValidationException
|
|
29
|
+
*/
|
|
30
|
+
statusCode: number;
|
|
31
|
+
/**
|
|
32
|
+
* array with validation errors
|
|
33
|
+
* @type {Array<ValidationError>}
|
|
34
|
+
* @memberof ValidationException
|
|
35
|
+
*/
|
|
36
|
+
errors: Array<ValidationError>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ValidationException interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfValidationException(value: object): boolean;
|
|
42
|
+
export declare function ValidationExceptionFromJSON(json: any): ValidationException;
|
|
43
|
+
export declare function ValidationExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationException;
|
|
44
|
+
export declare function ValidationExceptionToJSON(value?: ValidationException | 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.ValidationExceptionToJSON = exports.ValidationExceptionFromJSONTyped = exports.ValidationExceptionFromJSON = exports.instanceOfValidationException = void 0;
|
|
17
|
+
var ValidationError_1 = require("./ValidationError");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ValidationException interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfValidationException(value) {
|
|
22
|
+
if (!('name' in value))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('statusCode' in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!('errors' in value))
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfValidationException = instanceOfValidationException;
|
|
31
|
+
function ValidationExceptionFromJSON(json) {
|
|
32
|
+
return ValidationExceptionFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.ValidationExceptionFromJSON = ValidationExceptionFromJSON;
|
|
35
|
+
function ValidationExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'statusCode': json['statusCode'],
|
|
42
|
+
'errors': (json['errors'].map(ValidationError_1.ValidationErrorFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.ValidationExceptionFromJSONTyped = ValidationExceptionFromJSONTyped;
|
|
46
|
+
function ValidationExceptionToJSON(value) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
'errors': (value['errors'].map(ValidationError_1.ValidationErrorToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.ValidationExceptionToJSON = ValidationExceptionToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export * from './AccountAddressInput';
|
|
|
3
3
|
export * from './AccountDto';
|
|
4
4
|
export * from './AccountFinancialInput';
|
|
5
5
|
export * from './AccountSettingsInput';
|
|
6
|
-
export * from './BatchUpdate404Response';
|
|
7
6
|
export * from './BatchUpdateDomainsInput';
|
|
8
7
|
export * from './BuyDomainInput';
|
|
8
|
+
export * from './ConflictException';
|
|
9
9
|
export * from './CreateLeadInput';
|
|
10
10
|
export * from './CreateLeadMessageInput';
|
|
11
11
|
export * from './DashboardStatsDto';
|
|
@@ -13,7 +13,7 @@ export * from './DeleteDomainsInput';
|
|
|
13
13
|
export * from './DomainDto';
|
|
14
14
|
export * from './DomainSalesInformationDto';
|
|
15
15
|
export * from './DomainSellerDto';
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './HttpException';
|
|
17
17
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
18
18
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
19
19
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
@@ -26,31 +26,29 @@ export * from './LeadMessageDto';
|
|
|
26
26
|
export * from './LeadMessageDtoData';
|
|
27
27
|
export * from './LeadStatusDto';
|
|
28
28
|
export * from './List200Response';
|
|
29
|
-
export * from './List400Response';
|
|
30
|
-
export * from './List401Response';
|
|
31
29
|
export * from './ListAccountDto';
|
|
32
30
|
export * from './ListAccounts200Response';
|
|
33
|
-
export * from './ListAccounts400Response';
|
|
34
|
-
export * from './ListAccounts429Response';
|
|
35
31
|
export * from './ListLeadMessagesDto';
|
|
36
32
|
export * from './ListTransferDto';
|
|
37
33
|
export * from './ListTransfers200Response';
|
|
38
|
-
export * from './Login401Response';
|
|
39
|
-
export * from './Login429Response';
|
|
40
34
|
export * from './LoginInput';
|
|
41
35
|
export * from './MoneyDto';
|
|
42
36
|
export * from './MoneyInput';
|
|
37
|
+
export * from './NotFoundException';
|
|
43
38
|
export * from './ObjectId';
|
|
44
39
|
export * from './PaginateResponse';
|
|
45
40
|
export * from './PaginateResponseLinks';
|
|
46
41
|
export * from './PaginateResponseMeta';
|
|
47
42
|
export * from './PutLeadInput';
|
|
43
|
+
export * from './RegisterAccountInput';
|
|
48
44
|
export * from './RelatedSellerDomain';
|
|
49
45
|
export * from './SecurityUserDto';
|
|
46
|
+
export * from './ThrottlerException';
|
|
50
47
|
export * from './TokenDto';
|
|
48
|
+
export * from './UnauthorizedException';
|
|
51
49
|
export * from './UpdateDomainInput';
|
|
52
|
-
export * from './
|
|
53
|
-
export * from './
|
|
50
|
+
export * from './ValidationError';
|
|
51
|
+
export * from './ValidationException';
|
|
54
52
|
export * from './VerifyLeadInput';
|
|
55
53
|
export * from './WithFinancialDtoInner';
|
|
56
54
|
export * from './WithSettingsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -21,9 +21,9 @@ __exportStar(require("./AccountAddressInput"), exports);
|
|
|
21
21
|
__exportStar(require("./AccountDto"), exports);
|
|
22
22
|
__exportStar(require("./AccountFinancialInput"), exports);
|
|
23
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
24
|
-
__exportStar(require("./BatchUpdate404Response"), exports);
|
|
25
24
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
26
25
|
__exportStar(require("./BuyDomainInput"), exports);
|
|
26
|
+
__exportStar(require("./ConflictException"), exports);
|
|
27
27
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
28
28
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
29
29
|
__exportStar(require("./DashboardStatsDto"), exports);
|
|
@@ -31,7 +31,7 @@ __exportStar(require("./DeleteDomainsInput"), exports);
|
|
|
31
31
|
__exportStar(require("./DomainDto"), exports);
|
|
32
32
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
33
33
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
34
|
-
__exportStar(require("./
|
|
34
|
+
__exportStar(require("./HttpException"), exports);
|
|
35
35
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
36
36
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
37
37
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
@@ -44,31 +44,29 @@ __exportStar(require("./LeadMessageDto"), exports);
|
|
|
44
44
|
__exportStar(require("./LeadMessageDtoData"), exports);
|
|
45
45
|
__exportStar(require("./LeadStatusDto"), exports);
|
|
46
46
|
__exportStar(require("./List200Response"), exports);
|
|
47
|
-
__exportStar(require("./List400Response"), exports);
|
|
48
|
-
__exportStar(require("./List401Response"), exports);
|
|
49
47
|
__exportStar(require("./ListAccountDto"), exports);
|
|
50
48
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
51
|
-
__exportStar(require("./ListAccounts400Response"), exports);
|
|
52
|
-
__exportStar(require("./ListAccounts429Response"), exports);
|
|
53
49
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
54
50
|
__exportStar(require("./ListTransferDto"), exports);
|
|
55
51
|
__exportStar(require("./ListTransfers200Response"), exports);
|
|
56
|
-
__exportStar(require("./Login401Response"), exports);
|
|
57
|
-
__exportStar(require("./Login429Response"), exports);
|
|
58
52
|
__exportStar(require("./LoginInput"), exports);
|
|
59
53
|
__exportStar(require("./MoneyDto"), exports);
|
|
60
54
|
__exportStar(require("./MoneyInput"), exports);
|
|
55
|
+
__exportStar(require("./NotFoundException"), exports);
|
|
61
56
|
__exportStar(require("./ObjectId"), exports);
|
|
62
57
|
__exportStar(require("./PaginateResponse"), exports);
|
|
63
58
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
64
59
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
65
60
|
__exportStar(require("./PutLeadInput"), exports);
|
|
61
|
+
__exportStar(require("./RegisterAccountInput"), exports);
|
|
66
62
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
67
63
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
64
|
+
__exportStar(require("./ThrottlerException"), exports);
|
|
68
65
|
__exportStar(require("./TokenDto"), exports);
|
|
66
|
+
__exportStar(require("./UnauthorizedException"), exports);
|
|
69
67
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
70
|
-
__exportStar(require("./
|
|
71
|
-
__exportStar(require("./
|
|
68
|
+
__exportStar(require("./ValidationError"), exports);
|
|
69
|
+
__exportStar(require("./ValidationException"), exports);
|
|
72
70
|
__exportStar(require("./VerifyLeadInput"), exports);
|
|
73
71
|
__exportStar(require("./WithFinancialDtoInner"), exports);
|
|
74
72
|
__exportStar(require("./WithSettingsInner"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -19,10 +19,9 @@ import type {
|
|
|
19
19
|
AccountFinancialInput,
|
|
20
20
|
AccountSettingsInput,
|
|
21
21
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
UpdateSettings401Response,
|
|
22
|
+
ThrottlerException,
|
|
23
|
+
UnauthorizedException,
|
|
24
|
+
ValidationException,
|
|
26
25
|
} from '../models/index';
|
|
27
26
|
import {
|
|
28
27
|
AccountAddressInputFromJSON,
|
|
@@ -33,14 +32,12 @@ import {
|
|
|
33
32
|
AccountSettingsInputToJSON,
|
|
34
33
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
|
|
35
34
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
UpdateSettings401ResponseFromJSON,
|
|
43
|
-
UpdateSettings401ResponseToJSON,
|
|
35
|
+
ThrottlerExceptionFromJSON,
|
|
36
|
+
ThrottlerExceptionToJSON,
|
|
37
|
+
UnauthorizedExceptionFromJSON,
|
|
38
|
+
UnauthorizedExceptionToJSON,
|
|
39
|
+
ValidationExceptionFromJSON,
|
|
40
|
+
ValidationExceptionToJSON,
|
|
44
41
|
} from '../models/index';
|
|
45
42
|
|
|
46
43
|
export interface AccountsApiUpdateAddressRequest {
|