@randock/nameshift-api-client 0.0.30 → 0.0.31
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/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 +9 -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
package/.openapi-generator/FILES
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
package.json
|
|
6
6
|
src/apis/AccountsApi.ts
|
|
7
|
+
src/apis/AccountsPublicApi.ts
|
|
7
8
|
src/apis/AdminApi.ts
|
|
8
|
-
src/apis/AuthApi.ts
|
|
9
9
|
src/apis/DashboardApi.ts
|
|
10
10
|
src/apis/DomainsApi.ts
|
|
11
11
|
src/apis/DomainsPublicApi.ts
|
|
@@ -18,9 +18,9 @@ src/models/AccountAddressInput.ts
|
|
|
18
18
|
src/models/AccountDto.ts
|
|
19
19
|
src/models/AccountFinancialInput.ts
|
|
20
20
|
src/models/AccountSettingsInput.ts
|
|
21
|
-
src/models/BatchUpdate404Response.ts
|
|
22
21
|
src/models/BatchUpdateDomainsInput.ts
|
|
23
22
|
src/models/BuyDomainInput.ts
|
|
23
|
+
src/models/ConflictException.ts
|
|
24
24
|
src/models/CreateLeadInput.ts
|
|
25
25
|
src/models/CreateLeadMessageInput.ts
|
|
26
26
|
src/models/DashboardStatsDto.ts
|
|
@@ -28,7 +28,7 @@ src/models/DeleteDomainsInput.ts
|
|
|
28
28
|
src/models/DomainDto.ts
|
|
29
29
|
src/models/DomainSalesInformationDto.ts
|
|
30
30
|
src/models/DomainSellerDto.ts
|
|
31
|
-
src/models/
|
|
31
|
+
src/models/HttpException.ts
|
|
32
32
|
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
33
33
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
34
34
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
@@ -41,31 +41,29 @@ src/models/LeadMessageDto.ts
|
|
|
41
41
|
src/models/LeadMessageDtoData.ts
|
|
42
42
|
src/models/LeadStatusDto.ts
|
|
43
43
|
src/models/List200Response.ts
|
|
44
|
-
src/models/List400Response.ts
|
|
45
|
-
src/models/List401Response.ts
|
|
46
44
|
src/models/ListAccountDto.ts
|
|
47
45
|
src/models/ListAccounts200Response.ts
|
|
48
|
-
src/models/ListAccounts400Response.ts
|
|
49
|
-
src/models/ListAccounts429Response.ts
|
|
50
46
|
src/models/ListLeadMessagesDto.ts
|
|
51
47
|
src/models/ListTransferDto.ts
|
|
52
48
|
src/models/ListTransfers200Response.ts
|
|
53
|
-
src/models/Login401Response.ts
|
|
54
|
-
src/models/Login429Response.ts
|
|
55
49
|
src/models/LoginInput.ts
|
|
56
50
|
src/models/MoneyDto.ts
|
|
57
51
|
src/models/MoneyInput.ts
|
|
52
|
+
src/models/NotFoundException.ts
|
|
58
53
|
src/models/ObjectId.ts
|
|
59
54
|
src/models/PaginateResponse.ts
|
|
60
55
|
src/models/PaginateResponseLinks.ts
|
|
61
56
|
src/models/PaginateResponseMeta.ts
|
|
62
57
|
src/models/PutLeadInput.ts
|
|
58
|
+
src/models/RegisterAccountInput.ts
|
|
63
59
|
src/models/RelatedSellerDomain.ts
|
|
64
60
|
src/models/SecurityUserDto.ts
|
|
61
|
+
src/models/ThrottlerException.ts
|
|
65
62
|
src/models/TokenDto.ts
|
|
63
|
+
src/models/UnauthorizedException.ts
|
|
66
64
|
src/models/UpdateDomainInput.ts
|
|
67
|
-
src/models/
|
|
68
|
-
src/models/
|
|
65
|
+
src/models/ValidationError.ts
|
|
66
|
+
src/models/ValidationException.ts
|
|
69
67
|
src/models/VerifyLeadInput.ts
|
|
70
68
|
src/models/WithFinancialDtoInner.ts
|
|
71
69
|
src/models/WithSettingsInner.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.31
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
5e1608b7523fe7f986d5ece5e4752cdf44fba91585a15b083065720b5181b0421df28596d1ee5c9f2d60a5e8c1b3a121
|
|
@@ -0,0 +1,40 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { LoginInput, RegisterAccountInput, TokenDto } from '../models/index';
|
|
14
|
+
export interface AccountsPublicApiLoginRequest {
|
|
15
|
+
loginInput: LoginInput;
|
|
16
|
+
}
|
|
17
|
+
export interface AccountsPublicApiRegisterRequest {
|
|
18
|
+
registerAccountInput: RegisterAccountInput;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class AccountsPublicApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
loginRaw(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
login(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
register(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
40
|
+
}
|
|
@@ -64,21 +64,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.AccountsPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var AccountsPublicApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(AccountsPublicApi, _super);
|
|
75
|
+
function AccountsPublicApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
AccountsPublicApi.prototype.loginRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
@@ -91,7 +91,7 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
91
91
|
headerParameters = {};
|
|
92
92
|
headerParameters['Content-Type'] = 'application/json';
|
|
93
93
|
return [4 /*yield*/, this.request({
|
|
94
|
-
path: "/
|
|
94
|
+
path: "/accounts/login",
|
|
95
95
|
method: 'POST',
|
|
96
96
|
headers: headerParameters,
|
|
97
97
|
query: queryParameters,
|
|
@@ -107,7 +107,7 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
AccountsPublicApi.prototype.login = function (requestParameters, initOverrides) {
|
|
111
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
112
112
|
var response;
|
|
113
113
|
return __generator(this, function (_a) {
|
|
@@ -121,6 +121,50 @@ var AuthApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
AccountsPublicApi.prototype.registerRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['registerAccountInput'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('registerAccountInput', 'Required parameter "registerAccountInput" was null or undefined when calling register().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
return [4 /*yield*/, this.request({
|
|
140
|
+
path: "/accounts/register",
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
body: (0, index_1.RegisterAccountInputToJSON)(requestParameters['registerAccountInput']),
|
|
145
|
+
}, initOverrides)];
|
|
146
|
+
case 1:
|
|
147
|
+
response = _a.sent();
|
|
148
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
AccountsPublicApi.prototype.register = function (requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, this.registerRaw(requestParameters, initOverrides)];
|
|
161
|
+
case 1:
|
|
162
|
+
_a.sent();
|
|
163
|
+
return [2 /*return*/];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
return AccountsPublicApi;
|
|
125
169
|
}(runtime.BaseAPI));
|
|
126
|
-
exports.
|
|
170
|
+
exports.AccountsPublicApi = AccountsPublicApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountsApi"), exports);
|
|
20
|
+
__exportStar(require("./AccountsPublicApi"), exports);
|
|
20
21
|
__exportStar(require("./AdminApi"), exports);
|
|
21
|
-
__exportStar(require("./AuthApi"), exports);
|
|
22
22
|
__exportStar(require("./DashboardApi"), exports);
|
|
23
23
|
__exportStar(require("./DomainsApi"), exports);
|
|
24
24
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ConflictException
|
|
16
|
+
*/
|
|
17
|
+
export interface ConflictException {
|
|
18
|
+
/**
|
|
19
|
+
* Exception name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConflictException
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* http status code
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ConflictException
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number;
|
|
30
|
+
/**
|
|
31
|
+
* error message
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConflictException
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ConflictException
|
|
40
|
+
*/
|
|
41
|
+
code: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ConflictException interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfConflictException(value: object): boolean;
|
|
47
|
+
export declare function ConflictExceptionFromJSON(json: any): ConflictException;
|
|
48
|
+
export declare function ConflictExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConflictException;
|
|
49
|
+
export declare function ConflictExceptionToJSON(value?: ConflictException | null): any;
|
|
@@ -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.ConflictExceptionToJSON = exports.ConflictExceptionFromJSONTyped = exports.ConflictExceptionFromJSON = exports.instanceOfConflictException = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ConflictException interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfConflictException(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
|
+
if (!('code' in value))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfConflictException = instanceOfConflictException;
|
|
32
|
+
function ConflictExceptionFromJSON(json) {
|
|
33
|
+
return ConflictExceptionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.ConflictExceptionFromJSON = ConflictExceptionFromJSON;
|
|
36
|
+
function ConflictExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'statusCode': json['statusCode'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'code': json['code'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ConflictExceptionFromJSONTyped = ConflictExceptionFromJSONTyped;
|
|
48
|
+
function ConflictExceptionToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'statusCode': value['statusCode'],
|
|
55
|
+
'message': value['message'],
|
|
56
|
+
'code': value['code'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.ConflictExceptionToJSON = ConflictExceptionToJSON;
|
|
@@ -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 HttpException
|
|
16
|
+
*/
|
|
17
|
+
export interface HttpException {
|
|
18
|
+
/**
|
|
19
|
+
* Exception name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HttpException
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* http status code
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof HttpException
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number;
|
|
30
|
+
/**
|
|
31
|
+
* error message
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof HttpException
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the HttpException interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfHttpException(value: object): boolean;
|
|
41
|
+
export declare function HttpExceptionFromJSON(json: any): HttpException;
|
|
42
|
+
export declare function HttpExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpException;
|
|
43
|
+
export declare function HttpExceptionToJSON(value?: HttpException | null): any;
|
|
@@ -13,41 +13,43 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.HttpExceptionToJSON = exports.HttpExceptionFromJSONTyped = exports.HttpExceptionFromJSON = exports.instanceOfHttpException = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the HttpException interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfHttpException(value) {
|
|
21
|
+
if (!('name' in value))
|
|
22
|
+
return false;
|
|
21
23
|
if (!('statusCode' in value))
|
|
22
24
|
return false;
|
|
23
25
|
if (!('message' in value))
|
|
24
26
|
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
29
|
+
exports.instanceOfHttpException = instanceOfHttpException;
|
|
30
|
+
function HttpExceptionFromJSON(json) {
|
|
31
|
+
return HttpExceptionFromJSONTyped(json, false);
|
|
30
32
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
33
|
+
exports.HttpExceptionFromJSON = HttpExceptionFromJSON;
|
|
34
|
+
function HttpExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
35
|
if (json == null) {
|
|
34
36
|
return json;
|
|
35
37
|
}
|
|
36
38
|
return {
|
|
39
|
+
'name': json['name'],
|
|
37
40
|
'statusCode': json['statusCode'],
|
|
38
41
|
'message': json['message'],
|
|
39
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
44
|
+
exports.HttpExceptionFromJSONTyped = HttpExceptionFromJSONTyped;
|
|
45
|
+
function HttpExceptionToJSON(value) {
|
|
44
46
|
if (value == null) {
|
|
45
47
|
return value;
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
50
|
+
'name': value['name'],
|
|
48
51
|
'statusCode': value['statusCode'],
|
|
49
52
|
'message': value['message'],
|
|
50
|
-
'error': value['error'],
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
|
-
exports.
|
|
55
|
+
exports.HttpExceptionToJSON = HttpExceptionToJSON;
|
|
@@ -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 NotFoundException
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundException {
|
|
18
|
+
/**
|
|
19
|
+
* Exception name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundException
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* http status code
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof NotFoundException
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number;
|
|
30
|
+
/**
|
|
31
|
+
* error message
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NotFoundException
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the NotFoundException interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfNotFoundException(value: object): boolean;
|
|
41
|
+
export declare function NotFoundExceptionFromJSON(json: any): NotFoundException;
|
|
42
|
+
export declare function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException;
|
|
43
|
+
export declare function NotFoundExceptionToJSON(value?: NotFoundException | 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.NotFoundExceptionToJSON = exports.NotFoundExceptionFromJSONTyped = exports.NotFoundExceptionFromJSON = exports.instanceOfNotFoundException = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the NotFoundException interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfNotFoundException(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.instanceOfNotFoundException = instanceOfNotFoundException;
|
|
30
|
+
function NotFoundExceptionFromJSON(json) {
|
|
31
|
+
return NotFoundExceptionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.NotFoundExceptionFromJSON = NotFoundExceptionFromJSON;
|
|
34
|
+
function NotFoundExceptionFromJSONTyped(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.NotFoundExceptionFromJSONTyped = NotFoundExceptionFromJSONTyped;
|
|
45
|
+
function NotFoundExceptionToJSON(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.NotFoundExceptionToJSON = NotFoundExceptionToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 RegisterAccountInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RegisterAccountInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegisterAccountInput
|
|
22
|
+
*/
|
|
23
|
+
firstname: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RegisterAccountInput
|
|
28
|
+
*/
|
|
29
|
+
lastname: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RegisterAccountInput
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RegisterAccountInput
|
|
40
|
+
*/
|
|
41
|
+
password: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the RegisterAccountInput interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfRegisterAccountInput(value: object): boolean;
|
|
47
|
+
export declare function RegisterAccountInputFromJSON(json: any): RegisterAccountInput;
|
|
48
|
+
export declare function RegisterAccountInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterAccountInput;
|
|
49
|
+
export declare function RegisterAccountInputToJSON(value?: RegisterAccountInput | null): any;
|
|
@@ -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;
|