@randock/nameshift-api-client 0.0.68 → 0.0.70
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/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +40 -2
- package/dist/apis/AccountsApi.js +56 -4
- package/dist/apis/AccountsPublicApi.d.ts +9 -0
- package/dist/apis/AccountsPublicApi.js +14 -1
- package/dist/apis/AdminApi.d.ts +39 -3
- package/dist/apis/AdminApi.js +59 -10
- package/dist/apis/BuyersApi.d.ts +64 -6
- package/dist/apis/BuyersApi.js +126 -11
- package/dist/apis/BuyersPublicApi.d.ts +18 -0
- package/dist/apis/BuyersPublicApi.js +27 -1
- package/dist/apis/DashboardApi.d.ts +13 -2
- package/dist/apis/DashboardApi.js +17 -4
- package/dist/apis/DomainsApi.d.ts +98 -9
- package/dist/apis/DomainsApi.js +156 -34
- package/dist/apis/DomainsPublicApi.d.ts +9 -1
- package/dist/apis/DomainsPublicApi.js +13 -6
- package/dist/apis/LeadsApi.d.ts +61 -5
- package/dist/apis/LeadsApi.js +86 -8
- package/dist/apis/LeadsPublicApi.d.ts +51 -6
- package/dist/apis/LeadsPublicApi.js +78 -13
- package/dist/apis/OrdersPublicApi.d.ts +27 -0
- package/dist/apis/OrdersPublicApi.js +40 -1
- package/dist/apis/UsersApi.d.ts +12 -3
- package/dist/apis/UsersApi.js +18 -5
- package/dist/apis/UsersPublicApi.d.ts +36 -0
- package/dist/apis/UsersPublicApi.js +53 -1
- package/dist/models/DomainSellerDto.d.ts +15 -3
- package/dist/models/DomainSellerDto.js +11 -3
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +87 -3
- package/src/apis/AccountsPublicApi.ts +21 -0
- package/src/apis/AdminApi.ts +84 -3
- package/src/apis/BuyersApi.ts +157 -9
- package/src/apis/BuyersPublicApi.ts +41 -0
- package/src/apis/DashboardApi.ts +27 -3
- package/src/apis/DomainsApi.ts +228 -39
- package/src/apis/DomainsPublicApi.ts +17 -8
- package/src/apis/LeadsApi.ts +132 -8
- package/src/apis/LeadsPublicApi.ts +115 -14
- package/src/apis/OrdersPublicApi.ts +61 -0
- package/src/apis/UsersApi.ts +26 -5
- package/src/apis/UsersPublicApi.ts +81 -0
- package/src/models/DomainSellerDto.ts +24 -6
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.BuyersApi = void 0;
|
|
67
|
+
exports.SetBuyerLocaleXLocaleEnum = exports.GetTransferAuthCodeXLocaleEnum = exports.GetBuyerTransfersXLocaleEnum = exports.ConfirmDomainTransferXLocaleEnum = exports.BuyerMeXLocaleEnum = exports.BuyersApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -78,14 +78,20 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
BuyersApi.prototype.buyerMeRaw = function (initOverrides) {
|
|
81
|
+
BuyersApi.prototype.buyerMeRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['xLocale'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling buyerMe().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
92
|
+
if (requestParameters['xLocale'] != null) {
|
|
93
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
94
|
+
}
|
|
89
95
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
96
|
token = this.configuration.accessToken;
|
|
91
97
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -111,12 +117,12 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
111
117
|
/**
|
|
112
118
|
*
|
|
113
119
|
*/
|
|
114
|
-
BuyersApi.prototype.buyerMe = function (initOverrides) {
|
|
120
|
+
BuyersApi.prototype.buyerMe = function (requestParameters, initOverrides) {
|
|
115
121
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
122
|
var response;
|
|
117
123
|
return __generator(this, function (_a) {
|
|
118
124
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4 /*yield*/, this.buyerMeRaw(initOverrides)];
|
|
125
|
+
case 0: return [4 /*yield*/, this.buyerMeRaw(requestParameters, initOverrides)];
|
|
120
126
|
case 1:
|
|
121
127
|
response = _a.sent();
|
|
122
128
|
return [4 /*yield*/, response.value()];
|
|
@@ -125,6 +131,63 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
125
131
|
});
|
|
126
132
|
});
|
|
127
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
BuyersApi.prototype.confirmDomainTransferRaw = function (requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
switch (_a.label) {
|
|
142
|
+
case 0:
|
|
143
|
+
if (requestParameters['transferId'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling confirmDomainTransfer().');
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['xLocale'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling confirmDomainTransfer().');
|
|
148
|
+
}
|
|
149
|
+
queryParameters = {};
|
|
150
|
+
headerParameters = {};
|
|
151
|
+
if (requestParameters['xLocale'] != null) {
|
|
152
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
153
|
+
}
|
|
154
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
155
|
+
token = this.configuration.accessToken;
|
|
156
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
157
|
+
case 1:
|
|
158
|
+
tokenString = _a.sent();
|
|
159
|
+
if (tokenString) {
|
|
160
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
161
|
+
}
|
|
162
|
+
_a.label = 2;
|
|
163
|
+
case 2: return [4 /*yield*/, this.request({
|
|
164
|
+
path: "/buyers/private/transfers/{transferId}/confirm".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
165
|
+
method: 'PATCH',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides)];
|
|
169
|
+
case 3:
|
|
170
|
+
response = _a.sent();
|
|
171
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
BuyersApi.prototype.confirmDomainTransfer = function (requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
+
return __generator(this, function (_a) {
|
|
182
|
+
switch (_a.label) {
|
|
183
|
+
case 0: return [4 /*yield*/, this.confirmDomainTransferRaw(requestParameters, initOverrides)];
|
|
184
|
+
case 1:
|
|
185
|
+
_a.sent();
|
|
186
|
+
return [2 /*return*/];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
};
|
|
128
191
|
/**
|
|
129
192
|
*
|
|
130
193
|
*/
|
|
@@ -134,6 +197,9 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
134
197
|
return __generator(this, function (_a) {
|
|
135
198
|
switch (_a.label) {
|
|
136
199
|
case 0:
|
|
200
|
+
if (requestParameters['xLocale'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getBuyerTransfers().');
|
|
202
|
+
}
|
|
137
203
|
queryParameters = {};
|
|
138
204
|
if (requestParameters['filter'] != null) {
|
|
139
205
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -148,6 +214,9 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
148
214
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
149
215
|
}
|
|
150
216
|
headerParameters = {};
|
|
217
|
+
if (requestParameters['xLocale'] != null) {
|
|
218
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
219
|
+
}
|
|
151
220
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
152
221
|
token = this.configuration.accessToken;
|
|
153
222
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -173,10 +242,9 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
173
242
|
/**
|
|
174
243
|
*
|
|
175
244
|
*/
|
|
176
|
-
BuyersApi.prototype.getBuyerTransfers = function () {
|
|
177
|
-
return __awaiter(this,
|
|
245
|
+
BuyersApi.prototype.getBuyerTransfers = function (requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
247
|
var response;
|
|
179
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
180
248
|
return __generator(this, function (_a) {
|
|
181
249
|
switch (_a.label) {
|
|
182
250
|
case 0: return [4 /*yield*/, this.getBuyerTransfersRaw(requestParameters, initOverrides)];
|
|
@@ -200,8 +268,14 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
200
268
|
if (requestParameters['transferId'] == null) {
|
|
201
269
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getTransferAuthCode().');
|
|
202
270
|
}
|
|
271
|
+
if (requestParameters['xLocale'] == null) {
|
|
272
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getTransferAuthCode().');
|
|
273
|
+
}
|
|
203
274
|
queryParameters = {};
|
|
204
275
|
headerParameters = {};
|
|
276
|
+
if (requestParameters['xLocale'] != null) {
|
|
277
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
278
|
+
}
|
|
205
279
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
206
280
|
token = this.configuration.accessToken;
|
|
207
281
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -244,18 +318,24 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
244
318
|
/**
|
|
245
319
|
*
|
|
246
320
|
*/
|
|
247
|
-
BuyersApi.prototype.
|
|
321
|
+
BuyersApi.prototype.setBuyerLocaleRaw = function (requestParameters, initOverrides) {
|
|
248
322
|
return __awaiter(this, void 0, void 0, function () {
|
|
249
323
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
250
324
|
return __generator(this, function (_a) {
|
|
251
325
|
switch (_a.label) {
|
|
252
326
|
case 0:
|
|
327
|
+
if (requestParameters['xLocale'] == null) {
|
|
328
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling setBuyerLocale().');
|
|
329
|
+
}
|
|
253
330
|
if (requestParameters['storeBuyerLocaleInput'] == null) {
|
|
254
|
-
throw new runtime.RequiredError('storeBuyerLocaleInput', 'Required parameter "storeBuyerLocaleInput" was null or undefined when calling
|
|
331
|
+
throw new runtime.RequiredError('storeBuyerLocaleInput', 'Required parameter "storeBuyerLocaleInput" was null or undefined when calling setBuyerLocale().');
|
|
255
332
|
}
|
|
256
333
|
queryParameters = {};
|
|
257
334
|
headerParameters = {};
|
|
258
335
|
headerParameters['Content-Type'] = 'application/json';
|
|
336
|
+
if (requestParameters['xLocale'] != null) {
|
|
337
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
338
|
+
}
|
|
259
339
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
260
340
|
token = this.configuration.accessToken;
|
|
261
341
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -282,11 +362,11 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
282
362
|
/**
|
|
283
363
|
*
|
|
284
364
|
*/
|
|
285
|
-
BuyersApi.prototype.
|
|
365
|
+
BuyersApi.prototype.setBuyerLocale = function (requestParameters, initOverrides) {
|
|
286
366
|
return __awaiter(this, void 0, void 0, function () {
|
|
287
367
|
return __generator(this, function (_a) {
|
|
288
368
|
switch (_a.label) {
|
|
289
|
-
case 0: return [4 /*yield*/, this.
|
|
369
|
+
case 0: return [4 /*yield*/, this.setBuyerLocaleRaw(requestParameters, initOverrides)];
|
|
290
370
|
case 1:
|
|
291
371
|
_a.sent();
|
|
292
372
|
return [2 /*return*/];
|
|
@@ -297,3 +377,38 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
297
377
|
return BuyersApi;
|
|
298
378
|
}(runtime.BaseAPI));
|
|
299
379
|
exports.BuyersApi = BuyersApi;
|
|
380
|
+
/**
|
|
381
|
+
* @export
|
|
382
|
+
*/
|
|
383
|
+
exports.BuyerMeXLocaleEnum = {
|
|
384
|
+
NL_NL: 'nl-nl',
|
|
385
|
+
EN_GB: 'en-gb'
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* @export
|
|
389
|
+
*/
|
|
390
|
+
exports.ConfirmDomainTransferXLocaleEnum = {
|
|
391
|
+
NL_NL: 'nl-nl',
|
|
392
|
+
EN_GB: 'en-gb'
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* @export
|
|
396
|
+
*/
|
|
397
|
+
exports.GetBuyerTransfersXLocaleEnum = {
|
|
398
|
+
NL_NL: 'nl-nl',
|
|
399
|
+
EN_GB: 'en-gb'
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* @export
|
|
403
|
+
*/
|
|
404
|
+
exports.GetTransferAuthCodeXLocaleEnum = {
|
|
405
|
+
NL_NL: 'nl-nl',
|
|
406
|
+
EN_GB: 'en-gb'
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* @export
|
|
410
|
+
*/
|
|
411
|
+
exports.SetBuyerLocaleXLocaleEnum = {
|
|
412
|
+
NL_NL: 'nl-nl',
|
|
413
|
+
EN_GB: 'en-gb'
|
|
414
|
+
};
|
|
@@ -12,9 +12,11 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { LoginDto, LoginInput, RequestAccessTokenInput } from '../models/index';
|
|
14
14
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
15
|
+
xLocale: BuyerLoginXLocaleEnum;
|
|
15
16
|
loginInput: LoginInput;
|
|
16
17
|
}
|
|
17
18
|
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
19
|
+
xLocale: RequestAccessTokenXLocaleEnum;
|
|
18
20
|
requestAccessTokenInput: RequestAccessTokenInput;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
@@ -38,3 +40,19 @@ export declare class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
38
40
|
*/
|
|
39
41
|
requestAccessToken(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
40
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const BuyerLoginXLocaleEnum: {
|
|
47
|
+
readonly NL_NL: "nl-nl";
|
|
48
|
+
readonly EN_GB: "en-gb";
|
|
49
|
+
};
|
|
50
|
+
export type BuyerLoginXLocaleEnum = typeof BuyerLoginXLocaleEnum[keyof typeof BuyerLoginXLocaleEnum];
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const RequestAccessTokenXLocaleEnum: {
|
|
55
|
+
readonly NL_NL: "nl-nl";
|
|
56
|
+
readonly EN_GB: "en-gb";
|
|
57
|
+
};
|
|
58
|
+
export type RequestAccessTokenXLocaleEnum = typeof RequestAccessTokenXLocaleEnum[keyof typeof RequestAccessTokenXLocaleEnum];
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.BuyersPublicApi = void 0;
|
|
67
|
+
exports.RequestAccessTokenXLocaleEnum = exports.BuyerLoginXLocaleEnum = exports.BuyersPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,12 +84,18 @@ var BuyersPublicApi = /** @class */ (function (_super) {
|
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['xLocale'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling buyerLogin().');
|
|
89
|
+
}
|
|
87
90
|
if (requestParameters['loginInput'] == null) {
|
|
88
91
|
throw new runtime.RequiredError('loginInput', 'Required parameter "loginInput" was null or undefined when calling buyerLogin().');
|
|
89
92
|
}
|
|
90
93
|
queryParameters = {};
|
|
91
94
|
headerParameters = {};
|
|
92
95
|
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
if (requestParameters['xLocale'] != null) {
|
|
97
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
98
|
+
}
|
|
93
99
|
return [4 /*yield*/, this.request({
|
|
94
100
|
path: "/buyers/login",
|
|
95
101
|
method: 'POST',
|
|
@@ -130,12 +136,18 @@ var BuyersPublicApi = /** @class */ (function (_super) {
|
|
|
130
136
|
return __generator(this, function (_a) {
|
|
131
137
|
switch (_a.label) {
|
|
132
138
|
case 0:
|
|
139
|
+
if (requestParameters['xLocale'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling requestAccessToken().');
|
|
141
|
+
}
|
|
133
142
|
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
134
143
|
throw new runtime.RequiredError('requestAccessTokenInput', 'Required parameter "requestAccessTokenInput" was null or undefined when calling requestAccessToken().');
|
|
135
144
|
}
|
|
136
145
|
queryParameters = {};
|
|
137
146
|
headerParameters = {};
|
|
138
147
|
headerParameters['Content-Type'] = 'application/json';
|
|
148
|
+
if (requestParameters['xLocale'] != null) {
|
|
149
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
150
|
+
}
|
|
139
151
|
return [4 /*yield*/, this.request({
|
|
140
152
|
path: "/buyers/request-access-token",
|
|
141
153
|
method: 'POST',
|
|
@@ -168,3 +180,17 @@ var BuyersPublicApi = /** @class */ (function (_super) {
|
|
|
168
180
|
return BuyersPublicApi;
|
|
169
181
|
}(runtime.BaseAPI));
|
|
170
182
|
exports.BuyersPublicApi = BuyersPublicApi;
|
|
183
|
+
/**
|
|
184
|
+
* @export
|
|
185
|
+
*/
|
|
186
|
+
exports.BuyerLoginXLocaleEnum = {
|
|
187
|
+
NL_NL: 'nl-nl',
|
|
188
|
+
EN_GB: 'en-gb'
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* @export
|
|
192
|
+
*/
|
|
193
|
+
exports.RequestAccessTokenXLocaleEnum = {
|
|
194
|
+
NL_NL: 'nl-nl',
|
|
195
|
+
EN_GB: 'en-gb'
|
|
196
|
+
};
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { DashboardStatsDto } from '../models/index';
|
|
14
|
+
export interface DashboardApiStatsRequest {
|
|
15
|
+
xLocale: StatsXLocaleEnum;
|
|
16
|
+
}
|
|
14
17
|
/**
|
|
15
18
|
*
|
|
16
19
|
*/
|
|
@@ -18,9 +21,17 @@ export declare class DashboardApi extends runtime.BaseAPI {
|
|
|
18
21
|
/**
|
|
19
22
|
*
|
|
20
23
|
*/
|
|
21
|
-
statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>>;
|
|
24
|
+
statsRaw(requestParameters: DashboardApiStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>>;
|
|
22
25
|
/**
|
|
23
26
|
*
|
|
24
27
|
*/
|
|
25
|
-
stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto>;
|
|
28
|
+
stats(requestParameters: DashboardApiStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto>;
|
|
26
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const StatsXLocaleEnum: {
|
|
34
|
+
readonly NL_NL: "nl-nl";
|
|
35
|
+
readonly EN_GB: "en-gb";
|
|
36
|
+
};
|
|
37
|
+
export type StatsXLocaleEnum = typeof StatsXLocaleEnum[keyof typeof StatsXLocaleEnum];
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.DashboardApi = void 0;
|
|
67
|
+
exports.StatsXLocaleEnum = exports.DashboardApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -78,14 +78,20 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
DashboardApi.prototype.statsRaw = function (initOverrides) {
|
|
81
|
+
DashboardApi.prototype.statsRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['xLocale'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling stats().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
92
|
+
if (requestParameters['xLocale'] != null) {
|
|
93
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
94
|
+
}
|
|
89
95
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
96
|
token = this.configuration.accessToken;
|
|
91
97
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -111,12 +117,12 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
111
117
|
/**
|
|
112
118
|
*
|
|
113
119
|
*/
|
|
114
|
-
DashboardApi.prototype.stats = function (initOverrides) {
|
|
120
|
+
DashboardApi.prototype.stats = function (requestParameters, initOverrides) {
|
|
115
121
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
122
|
var response;
|
|
117
123
|
return __generator(this, function (_a) {
|
|
118
124
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4 /*yield*/, this.statsRaw(initOverrides)];
|
|
125
|
+
case 0: return [4 /*yield*/, this.statsRaw(requestParameters, initOverrides)];
|
|
120
126
|
case 1:
|
|
121
127
|
response = _a.sent();
|
|
122
128
|
return [4 /*yield*/, response.value()];
|
|
@@ -128,3 +134,10 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
128
134
|
return DashboardApi;
|
|
129
135
|
}(runtime.BaseAPI));
|
|
130
136
|
exports.DashboardApi = DashboardApi;
|
|
137
|
+
/**
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
exports.StatsXLocaleEnum = {
|
|
141
|
+
NL_NL: 'nl-nl',
|
|
142
|
+
EN_GB: 'en-gb'
|
|
143
|
+
};
|
|
@@ -12,32 +12,39 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
|
+
xLocale: BatchImportXLocaleEnum;
|
|
15
16
|
file?: Blob;
|
|
16
17
|
domains?: Array<string>;
|
|
17
18
|
}
|
|
18
19
|
export interface DomainsApiBatchUpdateRequest {
|
|
20
|
+
xLocale: BatchUpdateXLocaleEnum;
|
|
19
21
|
batchUpdateDomainsInput: BatchUpdateDomainsInput;
|
|
20
22
|
}
|
|
21
23
|
export interface DomainsApiCheckDnsRequest {
|
|
22
24
|
domainId: string;
|
|
25
|
+
xLocale: CheckDnsXLocaleEnum;
|
|
23
26
|
}
|
|
24
27
|
export interface DomainsApiDeleteDomainsRequest {
|
|
28
|
+
xLocale: DeleteDomainsXLocaleEnum;
|
|
25
29
|
deleteDomainsInput: DeleteDomainsInput;
|
|
26
30
|
}
|
|
27
|
-
export interface DomainsApiGetRequest {
|
|
28
|
-
domainId: string;
|
|
29
|
-
}
|
|
30
31
|
export interface DomainsApiGetAllDomainTransfersRequest {
|
|
32
|
+
xLocale: GetAllDomainTransfersXLocaleEnum;
|
|
31
33
|
filter?: object;
|
|
32
34
|
page?: number;
|
|
33
35
|
limit?: number;
|
|
34
36
|
sortBy?: Array<string>;
|
|
35
37
|
}
|
|
38
|
+
export interface DomainsApiGetDomainRequest {
|
|
39
|
+
domainId: string;
|
|
40
|
+
xLocale: GetDomainXLocaleEnum;
|
|
41
|
+
}
|
|
36
42
|
export interface DomainsApiGetDomainTransferRequest {
|
|
37
43
|
transferId: string;
|
|
44
|
+
xLocale: GetDomainTransferXLocaleEnum;
|
|
38
45
|
}
|
|
39
46
|
export interface DomainsApiListRequest {
|
|
40
|
-
|
|
47
|
+
xLocale: ListXLocaleEnum;
|
|
41
48
|
filter?: object;
|
|
42
49
|
page?: number;
|
|
43
50
|
limit?: number;
|
|
@@ -45,10 +52,12 @@ export interface DomainsApiListRequest {
|
|
|
45
52
|
}
|
|
46
53
|
export interface DomainsApiUpdateRequest {
|
|
47
54
|
domainId: string;
|
|
55
|
+
xLocale: UpdateXLocaleEnum;
|
|
48
56
|
updateDomainInput: UpdateDomainInput;
|
|
49
57
|
}
|
|
50
58
|
export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
|
|
51
59
|
transferId: string;
|
|
60
|
+
xLocale: UpdateDomainTransferAuthCodeXLocaleEnum;
|
|
52
61
|
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
53
62
|
}
|
|
54
63
|
/**
|
|
@@ -62,7 +71,7 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
62
71
|
/**
|
|
63
72
|
*
|
|
64
73
|
*/
|
|
65
|
-
batchImport(requestParameters
|
|
74
|
+
batchImport(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
75
|
/**
|
|
67
76
|
*
|
|
68
77
|
*/
|
|
@@ -90,19 +99,19 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
90
99
|
/**
|
|
91
100
|
*
|
|
92
101
|
*/
|
|
93
|
-
|
|
102
|
+
getAllDomainTransfersRaw(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllDomainTransfers200Response>>;
|
|
94
103
|
/**
|
|
95
104
|
*
|
|
96
105
|
*/
|
|
97
|
-
|
|
106
|
+
getAllDomainTransfers(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllDomainTransfers200Response>;
|
|
98
107
|
/**
|
|
99
108
|
*
|
|
100
109
|
*/
|
|
101
|
-
|
|
110
|
+
getDomainRaw(requestParameters: DomainsApiGetDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainDtoWithHijackerDtoWithAccountDto>>;
|
|
102
111
|
/**
|
|
103
112
|
*
|
|
104
113
|
*/
|
|
105
|
-
|
|
114
|
+
getDomain(requestParameters: DomainsApiGetDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainDtoWithHijackerDtoWithAccountDto>;
|
|
106
115
|
/**
|
|
107
116
|
*
|
|
108
117
|
*/
|
|
@@ -136,3 +145,83 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
136
145
|
*/
|
|
137
146
|
updateDomainTransferAuthCode(requestParameters: DomainsApiUpdateDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
138
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* @export
|
|
150
|
+
*/
|
|
151
|
+
export declare const BatchImportXLocaleEnum: {
|
|
152
|
+
readonly NL_NL: "nl-nl";
|
|
153
|
+
readonly EN_GB: "en-gb";
|
|
154
|
+
};
|
|
155
|
+
export type BatchImportXLocaleEnum = typeof BatchImportXLocaleEnum[keyof typeof BatchImportXLocaleEnum];
|
|
156
|
+
/**
|
|
157
|
+
* @export
|
|
158
|
+
*/
|
|
159
|
+
export declare const BatchUpdateXLocaleEnum: {
|
|
160
|
+
readonly NL_NL: "nl-nl";
|
|
161
|
+
readonly EN_GB: "en-gb";
|
|
162
|
+
};
|
|
163
|
+
export type BatchUpdateXLocaleEnum = typeof BatchUpdateXLocaleEnum[keyof typeof BatchUpdateXLocaleEnum];
|
|
164
|
+
/**
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export declare const CheckDnsXLocaleEnum: {
|
|
168
|
+
readonly NL_NL: "nl-nl";
|
|
169
|
+
readonly EN_GB: "en-gb";
|
|
170
|
+
};
|
|
171
|
+
export type CheckDnsXLocaleEnum = typeof CheckDnsXLocaleEnum[keyof typeof CheckDnsXLocaleEnum];
|
|
172
|
+
/**
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
export declare const DeleteDomainsXLocaleEnum: {
|
|
176
|
+
readonly NL_NL: "nl-nl";
|
|
177
|
+
readonly EN_GB: "en-gb";
|
|
178
|
+
};
|
|
179
|
+
export type DeleteDomainsXLocaleEnum = typeof DeleteDomainsXLocaleEnum[keyof typeof DeleteDomainsXLocaleEnum];
|
|
180
|
+
/**
|
|
181
|
+
* @export
|
|
182
|
+
*/
|
|
183
|
+
export declare const GetAllDomainTransfersXLocaleEnum: {
|
|
184
|
+
readonly NL_NL: "nl-nl";
|
|
185
|
+
readonly EN_GB: "en-gb";
|
|
186
|
+
};
|
|
187
|
+
export type GetAllDomainTransfersXLocaleEnum = typeof GetAllDomainTransfersXLocaleEnum[keyof typeof GetAllDomainTransfersXLocaleEnum];
|
|
188
|
+
/**
|
|
189
|
+
* @export
|
|
190
|
+
*/
|
|
191
|
+
export declare const GetDomainXLocaleEnum: {
|
|
192
|
+
readonly NL_NL: "nl-nl";
|
|
193
|
+
readonly EN_GB: "en-gb";
|
|
194
|
+
};
|
|
195
|
+
export type GetDomainXLocaleEnum = typeof GetDomainXLocaleEnum[keyof typeof GetDomainXLocaleEnum];
|
|
196
|
+
/**
|
|
197
|
+
* @export
|
|
198
|
+
*/
|
|
199
|
+
export declare const GetDomainTransferXLocaleEnum: {
|
|
200
|
+
readonly NL_NL: "nl-nl";
|
|
201
|
+
readonly EN_GB: "en-gb";
|
|
202
|
+
};
|
|
203
|
+
export type GetDomainTransferXLocaleEnum = typeof GetDomainTransferXLocaleEnum[keyof typeof GetDomainTransferXLocaleEnum];
|
|
204
|
+
/**
|
|
205
|
+
* @export
|
|
206
|
+
*/
|
|
207
|
+
export declare const ListXLocaleEnum: {
|
|
208
|
+
readonly NL_NL: "nl-nl";
|
|
209
|
+
readonly EN_GB: "en-gb";
|
|
210
|
+
};
|
|
211
|
+
export type ListXLocaleEnum = typeof ListXLocaleEnum[keyof typeof ListXLocaleEnum];
|
|
212
|
+
/**
|
|
213
|
+
* @export
|
|
214
|
+
*/
|
|
215
|
+
export declare const UpdateXLocaleEnum: {
|
|
216
|
+
readonly NL_NL: "nl-nl";
|
|
217
|
+
readonly EN_GB: "en-gb";
|
|
218
|
+
};
|
|
219
|
+
export type UpdateXLocaleEnum = typeof UpdateXLocaleEnum[keyof typeof UpdateXLocaleEnum];
|
|
220
|
+
/**
|
|
221
|
+
* @export
|
|
222
|
+
*/
|
|
223
|
+
export declare const UpdateDomainTransferAuthCodeXLocaleEnum: {
|
|
224
|
+
readonly NL_NL: "nl-nl";
|
|
225
|
+
readonly EN_GB: "en-gb";
|
|
226
|
+
};
|
|
227
|
+
export type UpdateDomainTransferAuthCodeXLocaleEnum = typeof UpdateDomainTransferAuthCodeXLocaleEnum[keyof typeof UpdateDomainTransferAuthCodeXLocaleEnum];
|