@randock/nameshift-api-client 0.0.20 → 0.0.22
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 +8 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +46 -0
- package/dist/apis/AdminApi.js +206 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ListAccountDto.d.ts +49 -0
- package/dist/models/ListAccountDto.js +59 -0
- package/dist/models/ListAccounts200Response.d.ts +46 -0
- package/dist/models/ListAccounts200Response.js +58 -0
- package/dist/models/ListAccounts400Response.d.ts +43 -0
- package/dist/models/{UpdateSettings429Response.js → ListAccounts400Response.js} +11 -11
- package/dist/models/ListAccounts429Response.d.ts +43 -0
- package/dist/models/{UpdateFinancial400Response.js → ListAccounts429Response.js} +11 -11
- package/dist/models/ListTransferDto.d.ts +72 -0
- package/dist/models/ListTransferDto.js +77 -0
- package/dist/models/ListTransfers200Response.d.ts +46 -0
- package/dist/models/ListTransfers200Response.js +58 -0
- package/dist/models/SecurityUserDto.d.ts +55 -0
- package/dist/models/SecurityUserDto.js +63 -0
- package/dist/models/index.d.ts +7 -2
- package/dist/models/index.js +7 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +6 -6
- package/src/apis/AdminApi.ts +153 -0
- package/src/apis/DomainsApi.ts +3 -3
- package/src/apis/LeadsApi.ts +6 -6
- package/src/apis/LeadsPublicApi.ts +6 -6
- package/src/apis/index.ts +1 -0
- package/src/models/ListAccountDto.ts +88 -0
- package/src/models/ListAccounts200Response.ts +98 -0
- package/src/models/{UpdateFinancial400Response.ts → ListAccounts400Response.ts} +11 -11
- package/src/models/{UpdateSettings429Response.ts → ListAccounts429Response.ts} +11 -11
- package/src/models/ListTransferDto.ts +120 -0
- package/src/models/ListTransfers200Response.ts +98 -0
- package/src/models/SecurityUserDto.ts +97 -0
- package/src/models/index.ts +7 -2
- package/dist/models/UpdateFinancial400Response.d.ts +0 -43
- package/dist/models/UpdateSettings429Response.d.ts +0 -43
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
package.json
|
|
6
6
|
src/apis/AccountsApi.ts
|
|
7
|
+
src/apis/AdminApi.ts
|
|
7
8
|
src/apis/AuthApi.ts
|
|
8
9
|
src/apis/DomainsApi.ts
|
|
9
10
|
src/apis/DomainsPublicApi.ts
|
|
@@ -37,7 +38,13 @@ src/models/LeadMessageDtoData.ts
|
|
|
37
38
|
src/models/List200Response.ts
|
|
38
39
|
src/models/List400Response.ts
|
|
39
40
|
src/models/List401Response.ts
|
|
41
|
+
src/models/ListAccountDto.ts
|
|
42
|
+
src/models/ListAccounts200Response.ts
|
|
43
|
+
src/models/ListAccounts400Response.ts
|
|
44
|
+
src/models/ListAccounts429Response.ts
|
|
40
45
|
src/models/ListLeadMessagesDto.ts
|
|
46
|
+
src/models/ListTransferDto.ts
|
|
47
|
+
src/models/ListTransfers200Response.ts
|
|
41
48
|
src/models/Login401Response.ts
|
|
42
49
|
src/models/Login429Response.ts
|
|
43
50
|
src/models/LoginInput.ts
|
|
@@ -49,12 +56,11 @@ src/models/PaginateResponseLinks.ts
|
|
|
49
56
|
src/models/PaginateResponseMeta.ts
|
|
50
57
|
src/models/PublicDomainControllerGetDomainSalesInformation404Response.ts
|
|
51
58
|
src/models/PutLeadInput.ts
|
|
59
|
+
src/models/SecurityUserDto.ts
|
|
52
60
|
src/models/TokenDto.ts
|
|
53
61
|
src/models/UpdateDomainInput.ts
|
|
54
|
-
src/models/UpdateFinancial400Response.ts
|
|
55
62
|
src/models/UpdateSettings400Response.ts
|
|
56
63
|
src/models/UpdateSettings401Response.ts
|
|
57
|
-
src/models/UpdateSettings429Response.ts
|
|
58
64
|
src/models/WithFinancialDtoInner.ts
|
|
59
65
|
src/models/WithSettingsInner.ts
|
|
60
66
|
src/models/index.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.22
|
|
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.22 --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
|
+
880a4211a2b79de85cf58b2819c91e32411338c62a527b19d4ce79fa9a0768b701dd82b355b73adb063932fca6c66f12
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ListAccounts200Response, ListTransfers200Response } from '../models/index';
|
|
14
|
+
export interface AdminApiListAccountsRequest {
|
|
15
|
+
filter?: object;
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
sortBy?: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
export interface AdminApiListTransfersRequest {
|
|
21
|
+
filter?: object;
|
|
22
|
+
page?: number;
|
|
23
|
+
limit?: number;
|
|
24
|
+
sortBy?: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class AdminApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
listAccountsRaw(requestParameters: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAccounts200Response>>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
listTransfersRaw(requestParameters: AdminApiListTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTransfers200Response>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
listTransfers(requestParameters?: AdminApiListTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTransfers200Response>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.AdminApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var AdminApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(AdminApi, _super);
|
|
75
|
+
function AdminApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
AdminApi.prototype.listAccountsRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters['filter'] != null) {
|
|
89
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['page'] != null) {
|
|
92
|
+
queryParameters['page'] = requestParameters['page'];
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['limit'] != null) {
|
|
95
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['sortBy'] != null) {
|
|
98
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
99
|
+
}
|
|
100
|
+
headerParameters = {};
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
102
|
+
token = this.configuration.accessToken;
|
|
103
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
104
|
+
case 1:
|
|
105
|
+
tokenString = _a.sent();
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
+
}
|
|
109
|
+
_a.label = 2;
|
|
110
|
+
case 2: return [4 /*yield*/, this.request({
|
|
111
|
+
path: "/admin/accounts",
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 3:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListAccounts200ResponseFromJSON)(jsonValue); })];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
AdminApi.prototype.listAccounts = function (requestParameters, initOverrides) {
|
|
127
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0: return [4 /*yield*/, this.listAccountsRaw(requestParameters, initOverrides)];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _a.sent();
|
|
135
|
+
return [4 /*yield*/, response.value()];
|
|
136
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
AdminApi.prototype.listTransfersRaw = function (requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
147
|
+
return __generator(this, function (_a) {
|
|
148
|
+
switch (_a.label) {
|
|
149
|
+
case 0:
|
|
150
|
+
queryParameters = {};
|
|
151
|
+
if (requestParameters['filter'] != null) {
|
|
152
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
153
|
+
}
|
|
154
|
+
if (requestParameters['page'] != null) {
|
|
155
|
+
queryParameters['page'] = requestParameters['page'];
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters['limit'] != null) {
|
|
158
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
159
|
+
}
|
|
160
|
+
if (requestParameters['sortBy'] != null) {
|
|
161
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
162
|
+
}
|
|
163
|
+
headerParameters = {};
|
|
164
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
165
|
+
token = this.configuration.accessToken;
|
|
166
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
167
|
+
case 1:
|
|
168
|
+
tokenString = _a.sent();
|
|
169
|
+
if (tokenString) {
|
|
170
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
171
|
+
}
|
|
172
|
+
_a.label = 2;
|
|
173
|
+
case 2: return [4 /*yield*/, this.request({
|
|
174
|
+
path: "/admin/transfers",
|
|
175
|
+
method: 'GET',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
}, initOverrides)];
|
|
179
|
+
case 3:
|
|
180
|
+
response = _a.sent();
|
|
181
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListTransfers200ResponseFromJSON)(jsonValue); })];
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
AdminApi.prototype.listTransfers = function (requestParameters, initOverrides) {
|
|
190
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
191
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
+
var response;
|
|
193
|
+
return __generator(this, function (_a) {
|
|
194
|
+
switch (_a.label) {
|
|
195
|
+
case 0: return [4 /*yield*/, this.listTransfersRaw(requestParameters, initOverrides)];
|
|
196
|
+
case 1:
|
|
197
|
+
response = _a.sent();
|
|
198
|
+
return [4 /*yield*/, response.value()];
|
|
199
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
return AdminApi;
|
|
205
|
+
}(runtime.BaseAPI));
|
|
206
|
+
exports.AdminApi = AdminApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountsApi"), exports);
|
|
20
|
+
__exportStar(require("./AdminApi"), exports);
|
|
20
21
|
__exportStar(require("./AuthApi"), exports);
|
|
21
22
|
__exportStar(require("./DomainsApi"), exports);
|
|
22
23
|
__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 ListAccountDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ListAccountDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ListAccountDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ListAccountDto
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListAccountDto
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListAccountDto
|
|
40
|
+
*/
|
|
41
|
+
companyName: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ListAccountDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfListAccountDto(value: object): boolean;
|
|
47
|
+
export declare function ListAccountDtoFromJSON(json: any): ListAccountDto;
|
|
48
|
+
export declare function ListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountDto;
|
|
49
|
+
export declare function ListAccountDtoToJSON(value?: ListAccountDto | 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.ListAccountDtoToJSON = exports.ListAccountDtoFromJSONTyped = exports.ListAccountDtoFromJSON = exports.instanceOfListAccountDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ListAccountDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfListAccountDto(value) {
|
|
21
|
+
if (!('id' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('createdAt' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('name' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('companyName' in value))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfListAccountDto = instanceOfListAccountDto;
|
|
32
|
+
function ListAccountDtoFromJSON(json) {
|
|
33
|
+
return ListAccountDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.ListAccountDtoFromJSON = ListAccountDtoFromJSON;
|
|
36
|
+
function ListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'companyName': json['companyName'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ListAccountDtoFromJSONTyped = ListAccountDtoFromJSONTyped;
|
|
48
|
+
function ListAccountDtoToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'companyName': value['companyName'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.ListAccountDtoToJSON = ListAccountDtoToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ListAccountDto } from './ListAccountDto';
|
|
13
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListAccounts200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListAccounts200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<ListAccountDto>}
|
|
24
|
+
* @memberof ListAccounts200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<ListAccountDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListAccounts200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListAccounts200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListAccounts200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListAccounts200Response(value: object): boolean;
|
|
44
|
+
export declare function ListAccounts200ResponseFromJSON(json: any): ListAccounts200Response;
|
|
45
|
+
export declare function ListAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts200Response;
|
|
46
|
+
export declare function ListAccounts200ResponseToJSON(value?: ListAccounts200Response | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ListAccounts200ResponseToJSON = exports.ListAccounts200ResponseFromJSONTyped = exports.ListAccounts200ResponseFromJSON = exports.instanceOfListAccounts200Response = void 0;
|
|
17
|
+
var ListAccountDto_1 = require("./ListAccountDto");
|
|
18
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
19
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ListAccounts200Response interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfListAccounts200Response(value) {
|
|
24
|
+
if (!('data' in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!('meta' in value))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('links' in value))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfListAccounts200Response = instanceOfListAccounts200Response;
|
|
33
|
+
function ListAccounts200ResponseFromJSON(json) {
|
|
34
|
+
return ListAccounts200ResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.ListAccounts200ResponseFromJSON = ListAccounts200ResponseFromJSON;
|
|
37
|
+
function ListAccounts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'data': (json['data'].map(ListAccountDto_1.ListAccountDtoFromJSON)),
|
|
43
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ListAccounts200ResponseFromJSONTyped = ListAccounts200ResponseFromJSONTyped;
|
|
48
|
+
function ListAccounts200ResponseToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'data': (value['data'].map(ListAccountDto_1.ListAccountDtoToJSON)),
|
|
54
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
55
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.ListAccounts200ResponseToJSON = ListAccounts200ResponseToJSON;
|
|
@@ -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
|
+
* Thrown in case of requestion validation errors.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListAccounts400Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ListAccounts400Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ListAccounts400Response
|
|
22
|
+
*/
|
|
23
|
+
statusCode: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<object>}
|
|
27
|
+
* @memberof ListAccounts400Response
|
|
28
|
+
*/
|
|
29
|
+
message: Array<object>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListAccounts400Response
|
|
34
|
+
*/
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ListAccounts400Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfListAccounts400Response(value: object): boolean;
|
|
41
|
+
export declare function ListAccounts400ResponseFromJSON(json: any): ListAccounts400Response;
|
|
42
|
+
export declare function ListAccounts400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts400Response;
|
|
43
|
+
export declare function ListAccounts400ResponseToJSON(value?: ListAccounts400Response | null): any;
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ListAccounts400ResponseToJSON = exports.ListAccounts400ResponseFromJSONTyped = exports.ListAccounts400ResponseFromJSON = exports.instanceOfListAccounts400Response = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the ListAccounts400Response interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfListAccounts400Response(value) {
|
|
21
21
|
if (!('statusCode' in value))
|
|
22
22
|
return false;
|
|
23
23
|
if (!('message' in value))
|
|
24
24
|
return false;
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfListAccounts400Response = instanceOfListAccounts400Response;
|
|
28
|
+
function ListAccounts400ResponseFromJSON(json) {
|
|
29
|
+
return ListAccounts400ResponseFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.ListAccounts400ResponseFromJSON = ListAccounts400ResponseFromJSON;
|
|
32
|
+
function ListAccounts400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if (json == null) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -39,8 +39,8 @@ function UpdateSettings429ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'error': json['error'] == null ? undefined : json['error'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.ListAccounts400ResponseFromJSONTyped = ListAccounts400ResponseFromJSONTyped;
|
|
43
|
+
function ListAccounts400ResponseToJSON(value) {
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
@@ -50,4 +50,4 @@ function UpdateSettings429ResponseToJSON(value) {
|
|
|
50
50
|
'error': value['error'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
exports.
|
|
53
|
+
exports.ListAccounts400ResponseToJSON = ListAccounts400ResponseToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Returned if more than 300 requests are made per minute.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListAccounts429Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ListAccounts429Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ListAccounts429Response
|
|
22
|
+
*/
|
|
23
|
+
statusCode: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ListAccounts429Response
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListAccounts429Response
|
|
34
|
+
*/
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ListAccounts429Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfListAccounts429Response(value: object): boolean;
|
|
41
|
+
export declare function ListAccounts429ResponseFromJSON(json: any): ListAccounts429Response;
|
|
42
|
+
export declare function ListAccounts429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts429Response;
|
|
43
|
+
export declare function ListAccounts429ResponseToJSON(value?: ListAccounts429Response | null): any;
|