@randock/nameshift-api-client 0.0.21 → 0.0.23
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 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +46 -0
- package/dist/apis/AdminApi.js +206 -0
- package/dist/apis/DashboardApi.d.ts +26 -0
- package/dist/apis/DashboardApi.js +130 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/DashboardStatsDto.d.ts +43 -0
- package/dist/models/DashboardStatsDto.js +55 -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/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/DashboardApi.ts +70 -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 +2 -0
- package/src/models/DashboardStatsDto.ts +79 -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/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,7 +4,9 @@
|
|
|
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
|
|
9
|
+
src/apis/DashboardApi.ts
|
|
8
10
|
src/apis/DomainsApi.ts
|
|
9
11
|
src/apis/DomainsPublicApi.ts
|
|
10
12
|
src/apis/LeadsApi.ts
|
|
@@ -20,6 +22,7 @@ src/models/BatchUpdate404Response.ts
|
|
|
20
22
|
src/models/BatchUpdateDomainsInput.ts
|
|
21
23
|
src/models/CreateLeadInput.ts
|
|
22
24
|
src/models/CreateLeadMessageInput.ts
|
|
25
|
+
src/models/DashboardStatsDto.ts
|
|
23
26
|
src/models/DeleteDomainsInput.ts
|
|
24
27
|
src/models/DomainDto.ts
|
|
25
28
|
src/models/DomainSalesInformationDto.ts
|
|
@@ -37,7 +40,13 @@ src/models/LeadMessageDtoData.ts
|
|
|
37
40
|
src/models/List200Response.ts
|
|
38
41
|
src/models/List400Response.ts
|
|
39
42
|
src/models/List401Response.ts
|
|
43
|
+
src/models/ListAccountDto.ts
|
|
44
|
+
src/models/ListAccounts200Response.ts
|
|
45
|
+
src/models/ListAccounts400Response.ts
|
|
46
|
+
src/models/ListAccounts429Response.ts
|
|
40
47
|
src/models/ListLeadMessagesDto.ts
|
|
48
|
+
src/models/ListTransferDto.ts
|
|
49
|
+
src/models/ListTransfers200Response.ts
|
|
41
50
|
src/models/Login401Response.ts
|
|
42
51
|
src/models/Login429Response.ts
|
|
43
52
|
src/models/LoginInput.ts
|
|
@@ -52,10 +61,8 @@ src/models/PutLeadInput.ts
|
|
|
52
61
|
src/models/SecurityUserDto.ts
|
|
53
62
|
src/models/TokenDto.ts
|
|
54
63
|
src/models/UpdateDomainInput.ts
|
|
55
|
-
src/models/UpdateFinancial400Response.ts
|
|
56
64
|
src/models/UpdateSettings400Response.ts
|
|
57
65
|
src/models/UpdateSettings401Response.ts
|
|
58
|
-
src/models/UpdateSettings429Response.ts
|
|
59
66
|
src/models/WithFinancialDtoInner.ts
|
|
60
67
|
src/models/WithSettingsInner.ts
|
|
61
68
|
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.23
|
|
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.23 --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
|
+
435ed382baac40796cb073264b1d9675be955b662d65434fcdf5b3a9e36350682fac2a3da9648f7411b8908839ff3f7d
|
|
@@ -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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { DashboardStatsDto } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class DashboardApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
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.DashboardApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DashboardApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DashboardApi, _super);
|
|
75
|
+
function DashboardApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
DashboardApi.prototype.statsRaw = function (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
|
+
headerParameters = {};
|
|
89
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
|
+
token = this.configuration.accessToken;
|
|
91
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
92
|
+
case 1:
|
|
93
|
+
tokenString = _a.sent();
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
96
|
+
}
|
|
97
|
+
_a.label = 2;
|
|
98
|
+
case 2: return [4 /*yield*/, this.request({
|
|
99
|
+
path: "/dashboard/stats",
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 3:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DashboardStatsDtoFromJSON)(jsonValue); })];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
DashboardApi.prototype.stats = function (initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var response;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4 /*yield*/, this.statsRaw(initOverrides)];
|
|
120
|
+
case 1:
|
|
121
|
+
response = _a.sent();
|
|
122
|
+
return [4 /*yield*/, response.value()];
|
|
123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
return DashboardApi;
|
|
129
|
+
}(runtime.BaseAPI));
|
|
130
|
+
exports.DashboardApi = DashboardApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -17,7 +17,9 @@ 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);
|
|
22
|
+
__exportStar(require("./DashboardApi"), exports);
|
|
21
23
|
__exportStar(require("./DomainsApi"), exports);
|
|
22
24
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
23
25
|
__exportStar(require("./LeadsApi"), exports);
|
|
@@ -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 DashboardStatsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DashboardStatsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DashboardStatsDto
|
|
22
|
+
*/
|
|
23
|
+
domains: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DashboardStatsDto
|
|
28
|
+
*/
|
|
29
|
+
leads: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof DashboardStatsDto
|
|
34
|
+
*/
|
|
35
|
+
transactions: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DashboardStatsDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfDashboardStatsDto(value: object): boolean;
|
|
41
|
+
export declare function DashboardStatsDtoFromJSON(json: any): DashboardStatsDto;
|
|
42
|
+
export declare function DashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardStatsDto;
|
|
43
|
+
export declare function DashboardStatsDtoToJSON(value?: DashboardStatsDto | 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.DashboardStatsDtoToJSON = exports.DashboardStatsDtoFromJSONTyped = exports.DashboardStatsDtoFromJSON = exports.instanceOfDashboardStatsDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the DashboardStatsDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfDashboardStatsDto(value) {
|
|
21
|
+
if (!('domains' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('leads' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('transactions' in value))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfDashboardStatsDto = instanceOfDashboardStatsDto;
|
|
30
|
+
function DashboardStatsDtoFromJSON(json) {
|
|
31
|
+
return DashboardStatsDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.DashboardStatsDtoFromJSON = DashboardStatsDtoFromJSON;
|
|
34
|
+
function DashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'domains': json['domains'],
|
|
40
|
+
'leads': json['leads'],
|
|
41
|
+
'transactions': json['transactions'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.DashboardStatsDtoFromJSONTyped = DashboardStatsDtoFromJSONTyped;
|
|
45
|
+
function DashboardStatsDtoToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'domains': value['domains'],
|
|
51
|
+
'leads': value['leads'],
|
|
52
|
+
'transactions': value['transactions'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.DashboardStatsDtoToJSON = DashboardStatsDtoToJSON;
|
|
@@ -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;
|