@randock/nameshift-api-client 0.0.447 → 0.0.449
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/APIKeysApi.d.ts +78 -0
- package/dist/apis/APIKeysApi.js +354 -0
- package/dist/apis/AccountsApi.d.ts +36 -36
- package/dist/apis/AccountsApi.js +360 -216
- package/dist/apis/AdminApi.d.ts +26 -0
- package/dist/apis/AdminApi.js +106 -0
- package/dist/apis/AuctionsApi.d.ts +4 -4
- package/dist/apis/AuctionsApi.js +40 -24
- package/dist/apis/BankAccountsApi.d.ts +10 -10
- package/dist/apis/BankAccountsApi.js +100 -60
- package/dist/apis/ChallengesApi.d.ts +6 -6
- package/dist/apis/ChallengesApi.js +60 -36
- package/dist/apis/DomainTransfersApi.d.ts +2 -2
- package/dist/apis/DomainTransfersApi.js +20 -12
- package/dist/apis/DomainsApi.d.ts +44 -44
- package/dist/apis/DomainsApi.js +440 -264
- package/dist/apis/EppApi.d.ts +2 -2
- package/dist/apis/EppApi.js +20 -12
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +60 -36
- package/dist/apis/LeadsApi.d.ts +38 -38
- package/dist/apis/LeadsApi.js +380 -228
- package/dist/apis/MarketApi.d.ts +2 -2
- package/dist/apis/MarketApi.js +2 -2
- package/dist/apis/NotificationsApi.d.ts +8 -8
- package/dist/apis/NotificationsApi.js +80 -48
- package/dist/apis/StatsApi.d.ts +14 -14
- package/dist/apis/StatsApi.js +140 -84
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +20 -12
- package/dist/apis/TasksApi.d.ts +6 -6
- package/dist/apis/TasksApi.js +60 -36
- package/dist/apis/UsersApi.d.ts +10 -10
- package/dist/apis/UsersApi.js +100 -60
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminDomainListItemDto.d.ts +6 -0
- package/dist/models/AdminDomainListItemDto.js +4 -0
- package/dist/models/ApiKeyDto.d.ts +107 -0
- package/dist/models/ApiKeyDto.js +114 -0
- package/dist/models/ApiKeyScopeDto.d.ts +83 -0
- package/dist/models/ApiKeyScopeDto.js +98 -0
- package/dist/models/CreateApiKeyInput.d.ts +83 -0
- package/dist/models/CreateApiKeyInput.js +96 -0
- package/dist/models/CreatedApiKeyDto.d.ts +113 -0
- package/dist/models/CreatedApiKeyDto.js +118 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/dist/models/UpdateApiKeyInput.d.ts +77 -0
- package/dist/models/UpdateApiKeyInput.js +90 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/APIKeysApi.ts +271 -0
- package/src/apis/AccountsApi.ts +108 -36
- package/src/apis/AdminApi.ts +92 -0
- package/src/apis/AuctionsApi.ts +12 -4
- package/src/apis/BankAccountsApi.ts +30 -10
- package/src/apis/ChallengesApi.ts +18 -6
- package/src/apis/DomainTransfersApi.ts +6 -2
- package/src/apis/DomainsApi.ts +132 -44
- package/src/apis/EppApi.ts +6 -2
- package/src/apis/InvoicesApi.ts +18 -6
- package/src/apis/LeadsApi.ts +114 -38
- package/src/apis/MarketApi.ts +2 -2
- package/src/apis/NotificationsApi.ts +24 -8
- package/src/apis/StatsApi.ts +42 -14
- package/src/apis/SubscriptionsApi.ts +6 -2
- package/src/apis/TasksApi.ts +18 -6
- package/src/apis/UsersApi.ts +30 -10
- package/src/apis/index.ts +1 -0
- package/src/models/AdminDomainListItemDto.ts +9 -0
- package/src/models/ApiKeyDto.ts +162 -0
- package/src/models/ApiKeyScopeDto.ts +126 -0
- package/src/models/CreateApiKeyInput.ts +125 -0
- package/src/models/CreatedApiKeyDto.ts +171 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
- package/src/models/UpdateApiKeyInput.ts +115 -0
- package/src/models/index.ts +5 -0
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -76,27 +76,35 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Imports domains from an uploaded file or a list of domain names and queues them for processing.
|
|
79
|
+
* Imports domains from an uploaded file or a list of domain names and queues them for processing. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
80
|
* Import domains
|
|
81
81
|
*/
|
|
82
82
|
DomainsApi.prototype.batchImportRaw = function (requestParameters, initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
queryParameters = {};
|
|
89
89
|
headerParameters = {};
|
|
90
|
-
if (!(this.configuration && this.configuration.
|
|
90
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
91
|
+
_a = headerParameters;
|
|
92
|
+
_b = "apikey";
|
|
93
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
94
|
+
case 1:
|
|
95
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
96
|
+
_c.label = 2;
|
|
97
|
+
case 2:
|
|
98
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
91
99
|
token = this.configuration.accessToken;
|
|
92
100
|
return [4 /*yield*/, token("bearer", [])];
|
|
93
|
-
case
|
|
94
|
-
tokenString =
|
|
101
|
+
case 3:
|
|
102
|
+
tokenString = _c.sent();
|
|
95
103
|
if (tokenString) {
|
|
96
104
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
105
|
}
|
|
98
|
-
|
|
99
|
-
case
|
|
106
|
+
_c.label = 4;
|
|
107
|
+
case 4:
|
|
100
108
|
consumes = [
|
|
101
109
|
{ contentType: 'multipart/form-data' },
|
|
102
110
|
];
|
|
@@ -123,15 +131,15 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
123
131
|
query: queryParameters,
|
|
124
132
|
body: formParams,
|
|
125
133
|
}, initOverrides)];
|
|
126
|
-
case
|
|
127
|
-
response =
|
|
134
|
+
case 5:
|
|
135
|
+
response = _c.sent();
|
|
128
136
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
129
137
|
}
|
|
130
138
|
});
|
|
131
139
|
});
|
|
132
140
|
};
|
|
133
141
|
/**
|
|
134
|
-
* Imports domains from an uploaded file or a list of domain names and queues them for processing.
|
|
142
|
+
* Imports domains from an uploaded file or a list of domain names and queues them for processing. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
135
143
|
* Import domains
|
|
136
144
|
*/
|
|
137
145
|
DomainsApi.prototype.batchImport = function () {
|
|
@@ -148,27 +156,35 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
148
156
|
});
|
|
149
157
|
};
|
|
150
158
|
/**
|
|
151
|
-
* Uploads a domain import file and returns a preview of parsed domains before import.
|
|
159
|
+
* Uploads a domain import file and returns a preview of parsed domains before import. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
152
160
|
* Preview domain import
|
|
153
161
|
*/
|
|
154
162
|
DomainsApi.prototype.batchImportPreviewRaw = function (requestParameters, initOverrides) {
|
|
155
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
-
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
157
|
-
return __generator(this, function (
|
|
158
|
-
switch (
|
|
164
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
165
|
+
return __generator(this, function (_c) {
|
|
166
|
+
switch (_c.label) {
|
|
159
167
|
case 0:
|
|
160
168
|
queryParameters = {};
|
|
161
169
|
headerParameters = {};
|
|
162
|
-
if (!(this.configuration && this.configuration.
|
|
170
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
171
|
+
_a = headerParameters;
|
|
172
|
+
_b = "apikey";
|
|
173
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
174
|
+
case 1:
|
|
175
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
176
|
+
_c.label = 2;
|
|
177
|
+
case 2:
|
|
178
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
163
179
|
token = this.configuration.accessToken;
|
|
164
180
|
return [4 /*yield*/, token("bearer", [])];
|
|
165
|
-
case
|
|
166
|
-
tokenString =
|
|
181
|
+
case 3:
|
|
182
|
+
tokenString = _c.sent();
|
|
167
183
|
if (tokenString) {
|
|
168
184
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
169
185
|
}
|
|
170
|
-
|
|
171
|
-
case
|
|
186
|
+
_c.label = 4;
|
|
187
|
+
case 4:
|
|
172
188
|
consumes = [
|
|
173
189
|
{ contentType: 'multipart/form-data' },
|
|
174
190
|
];
|
|
@@ -192,15 +208,15 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
192
208
|
query: queryParameters,
|
|
193
209
|
body: formParams,
|
|
194
210
|
}, initOverrides)];
|
|
195
|
-
case
|
|
196
|
-
response =
|
|
211
|
+
case 5:
|
|
212
|
+
response = _c.sent();
|
|
197
213
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BatchImportPreviewDtoFromJSON)(jsonValue); })];
|
|
198
214
|
}
|
|
199
215
|
});
|
|
200
216
|
});
|
|
201
217
|
};
|
|
202
218
|
/**
|
|
203
|
-
* Uploads a domain import file and returns a preview of parsed domains before import.
|
|
219
|
+
* Uploads a domain import file and returns a preview of parsed domains before import. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
204
220
|
* Preview domain import
|
|
205
221
|
*/
|
|
206
222
|
DomainsApi.prototype.batchImportPreview = function () {
|
|
@@ -219,14 +235,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
219
235
|
});
|
|
220
236
|
};
|
|
221
237
|
/**
|
|
222
|
-
* Applies the same settings update to multiple domains by ID.
|
|
238
|
+
* Applies the same settings update to multiple domains by ID. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
223
239
|
* Batch update domains
|
|
224
240
|
*/
|
|
225
241
|
DomainsApi.prototype.batchUpdateRaw = function (requestParameters, initOverrides) {
|
|
226
242
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
228
|
-
return __generator(this, function (
|
|
229
|
-
switch (
|
|
243
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
244
|
+
return __generator(this, function (_c) {
|
|
245
|
+
switch (_c.label) {
|
|
230
246
|
case 0:
|
|
231
247
|
if (requestParameters['batchUpdateDomainsInput'] == null) {
|
|
232
248
|
throw new runtime.RequiredError('batchUpdateDomainsInput', 'Required parameter "batchUpdateDomainsInput" was null or undefined when calling batchUpdate().');
|
|
@@ -234,31 +250,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
234
250
|
queryParameters = {};
|
|
235
251
|
headerParameters = {};
|
|
236
252
|
headerParameters['Content-Type'] = 'application/json';
|
|
237
|
-
if (!(this.configuration && this.configuration.
|
|
253
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
254
|
+
_a = headerParameters;
|
|
255
|
+
_b = "apikey";
|
|
256
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
257
|
+
case 1:
|
|
258
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
259
|
+
_c.label = 2;
|
|
260
|
+
case 2:
|
|
261
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
238
262
|
token = this.configuration.accessToken;
|
|
239
263
|
return [4 /*yield*/, token("bearer", [])];
|
|
240
|
-
case
|
|
241
|
-
tokenString =
|
|
264
|
+
case 3:
|
|
265
|
+
tokenString = _c.sent();
|
|
242
266
|
if (tokenString) {
|
|
243
267
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
244
268
|
}
|
|
245
|
-
|
|
246
|
-
case
|
|
269
|
+
_c.label = 4;
|
|
270
|
+
case 4: return [4 /*yield*/, this.request({
|
|
247
271
|
path: "/private/domains",
|
|
248
272
|
method: 'PATCH',
|
|
249
273
|
headers: headerParameters,
|
|
250
274
|
query: queryParameters,
|
|
251
275
|
body: (0, index_1.BatchUpdateDomainsInputToJSON)(requestParameters['batchUpdateDomainsInput']),
|
|
252
276
|
}, initOverrides)];
|
|
253
|
-
case
|
|
254
|
-
response =
|
|
277
|
+
case 5:
|
|
278
|
+
response = _c.sent();
|
|
255
279
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
256
280
|
}
|
|
257
281
|
});
|
|
258
282
|
});
|
|
259
283
|
};
|
|
260
284
|
/**
|
|
261
|
-
* Applies the same settings update to multiple domains by ID.
|
|
285
|
+
* Applies the same settings update to multiple domains by ID. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
262
286
|
* Batch update domains
|
|
263
287
|
*/
|
|
264
288
|
DomainsApi.prototype.batchUpdate = function (requestParameters, initOverrides) {
|
|
@@ -274,14 +298,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
274
298
|
});
|
|
275
299
|
};
|
|
276
300
|
/**
|
|
277
|
-
* Applies pricing and configuration updates to all domains matching the provided filter criteria.
|
|
301
|
+
* Applies pricing and configuration updates to all domains matching the provided filter criteria. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
278
302
|
* Bulk update domains with filters
|
|
279
303
|
*/
|
|
280
304
|
DomainsApi.prototype.bulkUpdateDomainsWithFiltersRaw = function (requestParameters, initOverrides) {
|
|
281
305
|
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
283
|
-
return __generator(this, function (
|
|
284
|
-
switch (
|
|
306
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
307
|
+
return __generator(this, function (_c) {
|
|
308
|
+
switch (_c.label) {
|
|
285
309
|
case 0:
|
|
286
310
|
if (requestParameters['bulkUpdateDomainsWithFiltersInput'] == null) {
|
|
287
311
|
throw new runtime.RequiredError('bulkUpdateDomainsWithFiltersInput', 'Required parameter "bulkUpdateDomainsWithFiltersInput" was null or undefined when calling bulkUpdateDomainsWithFilters().');
|
|
@@ -292,31 +316,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
292
316
|
}
|
|
293
317
|
headerParameters = {};
|
|
294
318
|
headerParameters['Content-Type'] = 'application/json';
|
|
295
|
-
if (!(this.configuration && this.configuration.
|
|
319
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
320
|
+
_a = headerParameters;
|
|
321
|
+
_b = "apikey";
|
|
322
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
323
|
+
case 1:
|
|
324
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
325
|
+
_c.label = 2;
|
|
326
|
+
case 2:
|
|
327
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
296
328
|
token = this.configuration.accessToken;
|
|
297
329
|
return [4 /*yield*/, token("bearer", [])];
|
|
298
|
-
case
|
|
299
|
-
tokenString =
|
|
330
|
+
case 3:
|
|
331
|
+
tokenString = _c.sent();
|
|
300
332
|
if (tokenString) {
|
|
301
333
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
302
334
|
}
|
|
303
|
-
|
|
304
|
-
case
|
|
335
|
+
_c.label = 4;
|
|
336
|
+
case 4: return [4 /*yield*/, this.request({
|
|
305
337
|
path: "/private/domains/bulk-update",
|
|
306
338
|
method: 'PATCH',
|
|
307
339
|
headers: headerParameters,
|
|
308
340
|
query: queryParameters,
|
|
309
341
|
body: (0, index_1.BulkUpdateDomainsWithFiltersInputToJSON)(requestParameters['bulkUpdateDomainsWithFiltersInput']),
|
|
310
342
|
}, initOverrides)];
|
|
311
|
-
case
|
|
312
|
-
response =
|
|
343
|
+
case 5:
|
|
344
|
+
response = _c.sent();
|
|
313
345
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
314
346
|
}
|
|
315
347
|
});
|
|
316
348
|
});
|
|
317
349
|
};
|
|
318
350
|
/**
|
|
319
|
-
* Applies pricing and configuration updates to all domains matching the provided filter criteria.
|
|
351
|
+
* Applies pricing and configuration updates to all domains matching the provided filter criteria. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
320
352
|
* Bulk update domains with filters
|
|
321
353
|
*/
|
|
322
354
|
DomainsApi.prototype.bulkUpdateDomainsWithFilters = function (requestParameters, initOverrides) {
|
|
@@ -332,44 +364,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
332
364
|
});
|
|
333
365
|
};
|
|
334
366
|
/**
|
|
335
|
-
* Starts a nameserver verification check for a single domain.
|
|
367
|
+
* Starts a nameserver verification check for a single domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
336
368
|
* Check domain nameservers
|
|
337
369
|
*/
|
|
338
370
|
DomainsApi.prototype.checkDnsRaw = function (requestParameters, initOverrides) {
|
|
339
371
|
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
341
|
-
return __generator(this, function (
|
|
342
|
-
switch (
|
|
372
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
373
|
+
return __generator(this, function (_c) {
|
|
374
|
+
switch (_c.label) {
|
|
343
375
|
case 0:
|
|
344
376
|
if (requestParameters['domainId'] == null) {
|
|
345
377
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDns().');
|
|
346
378
|
}
|
|
347
379
|
queryParameters = {};
|
|
348
380
|
headerParameters = {};
|
|
349
|
-
if (!(this.configuration && this.configuration.
|
|
381
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
382
|
+
_a = headerParameters;
|
|
383
|
+
_b = "apikey";
|
|
384
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
385
|
+
case 1:
|
|
386
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
387
|
+
_c.label = 2;
|
|
388
|
+
case 2:
|
|
389
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
350
390
|
token = this.configuration.accessToken;
|
|
351
391
|
return [4 /*yield*/, token("bearer", [])];
|
|
352
|
-
case
|
|
353
|
-
tokenString =
|
|
392
|
+
case 3:
|
|
393
|
+
tokenString = _c.sent();
|
|
354
394
|
if (tokenString) {
|
|
355
395
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
356
396
|
}
|
|
357
|
-
|
|
358
|
-
case
|
|
397
|
+
_c.label = 4;
|
|
398
|
+
case 4: return [4 /*yield*/, this.request({
|
|
359
399
|
path: "/private/domains/{domainId}/check_ns".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
360
400
|
method: 'POST',
|
|
361
401
|
headers: headerParameters,
|
|
362
402
|
query: queryParameters,
|
|
363
403
|
}, initOverrides)];
|
|
364
|
-
case
|
|
365
|
-
response =
|
|
404
|
+
case 5:
|
|
405
|
+
response = _c.sent();
|
|
366
406
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
367
407
|
}
|
|
368
408
|
});
|
|
369
409
|
});
|
|
370
410
|
};
|
|
371
411
|
/**
|
|
372
|
-
* Starts a nameserver verification check for a single domain.
|
|
412
|
+
* Starts a nameserver verification check for a single domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
373
413
|
* Check domain nameservers
|
|
374
414
|
*/
|
|
375
415
|
DomainsApi.prototype.checkDns = function (requestParameters, initOverrides) {
|
|
@@ -385,14 +425,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
385
425
|
});
|
|
386
426
|
};
|
|
387
427
|
/**
|
|
388
|
-
* Starts a nameserver verification check for the specified domain IDs.
|
|
428
|
+
* Starts a nameserver verification check for the specified domain IDs. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
389
429
|
* Check nameservers for multiple domains
|
|
390
430
|
*/
|
|
391
431
|
DomainsApi.prototype.checkDnsBatchRaw = function (requestParameters, initOverrides) {
|
|
392
432
|
return __awaiter(this, void 0, void 0, function () {
|
|
393
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
394
|
-
return __generator(this, function (
|
|
395
|
-
switch (
|
|
433
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
434
|
+
return __generator(this, function (_c) {
|
|
435
|
+
switch (_c.label) {
|
|
396
436
|
case 0:
|
|
397
437
|
if (requestParameters['checkDomainsNsInput'] == null) {
|
|
398
438
|
throw new runtime.RequiredError('checkDomainsNsInput', 'Required parameter "checkDomainsNsInput" was null or undefined when calling checkDnsBatch().');
|
|
@@ -400,31 +440,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
400
440
|
queryParameters = {};
|
|
401
441
|
headerParameters = {};
|
|
402
442
|
headerParameters['Content-Type'] = 'application/json';
|
|
403
|
-
if (!(this.configuration && this.configuration.
|
|
443
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
444
|
+
_a = headerParameters;
|
|
445
|
+
_b = "apikey";
|
|
446
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
447
|
+
case 1:
|
|
448
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
449
|
+
_c.label = 2;
|
|
450
|
+
case 2:
|
|
451
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
404
452
|
token = this.configuration.accessToken;
|
|
405
453
|
return [4 /*yield*/, token("bearer", [])];
|
|
406
|
-
case
|
|
407
|
-
tokenString =
|
|
454
|
+
case 3:
|
|
455
|
+
tokenString = _c.sent();
|
|
408
456
|
if (tokenString) {
|
|
409
457
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
410
458
|
}
|
|
411
|
-
|
|
412
|
-
case
|
|
459
|
+
_c.label = 4;
|
|
460
|
+
case 4: return [4 /*yield*/, this.request({
|
|
413
461
|
path: "/private/domains/check_ns",
|
|
414
462
|
method: 'POST',
|
|
415
463
|
headers: headerParameters,
|
|
416
464
|
query: queryParameters,
|
|
417
465
|
body: (0, index_1.CheckDomainsNsInputToJSON)(requestParameters['checkDomainsNsInput']),
|
|
418
466
|
}, initOverrides)];
|
|
419
|
-
case
|
|
420
|
-
response =
|
|
467
|
+
case 5:
|
|
468
|
+
response = _c.sent();
|
|
421
469
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
422
470
|
}
|
|
423
471
|
});
|
|
424
472
|
});
|
|
425
473
|
};
|
|
426
474
|
/**
|
|
427
|
-
* Starts a nameserver verification check for the specified domain IDs.
|
|
475
|
+
* Starts a nameserver verification check for the specified domain IDs. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
428
476
|
* Check nameservers for multiple domains
|
|
429
477
|
*/
|
|
430
478
|
DomainsApi.prototype.checkDnsBatch = function (requestParameters, initOverrides) {
|
|
@@ -440,44 +488,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
440
488
|
});
|
|
441
489
|
};
|
|
442
490
|
/**
|
|
443
|
-
* Checks and updates the verification status of a domain owned by the seller.
|
|
491
|
+
* Checks and updates the verification status of a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
444
492
|
* Check domain verification
|
|
445
493
|
*/
|
|
446
494
|
DomainsApi.prototype.checkDomainVerificationRaw = function (requestParameters, initOverrides) {
|
|
447
495
|
return __awaiter(this, void 0, void 0, function () {
|
|
448
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
449
|
-
return __generator(this, function (
|
|
450
|
-
switch (
|
|
496
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
497
|
+
return __generator(this, function (_c) {
|
|
498
|
+
switch (_c.label) {
|
|
451
499
|
case 0:
|
|
452
500
|
if (requestParameters['domainId'] == null) {
|
|
453
501
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDomainVerification().');
|
|
454
502
|
}
|
|
455
503
|
queryParameters = {};
|
|
456
504
|
headerParameters = {};
|
|
457
|
-
if (!(this.configuration && this.configuration.
|
|
505
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
506
|
+
_a = headerParameters;
|
|
507
|
+
_b = "apikey";
|
|
508
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
509
|
+
case 1:
|
|
510
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
511
|
+
_c.label = 2;
|
|
512
|
+
case 2:
|
|
513
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
458
514
|
token = this.configuration.accessToken;
|
|
459
515
|
return [4 /*yield*/, token("bearer", [])];
|
|
460
|
-
case
|
|
461
|
-
tokenString =
|
|
516
|
+
case 3:
|
|
517
|
+
tokenString = _c.sent();
|
|
462
518
|
if (tokenString) {
|
|
463
519
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
464
520
|
}
|
|
465
|
-
|
|
466
|
-
case
|
|
521
|
+
_c.label = 4;
|
|
522
|
+
case 4: return [4 /*yield*/, this.request({
|
|
467
523
|
path: "/private/domains/{domainId}/check-verification".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
468
524
|
method: 'POST',
|
|
469
525
|
headers: headerParameters,
|
|
470
526
|
query: queryParameters,
|
|
471
527
|
}, initOverrides)];
|
|
472
|
-
case
|
|
473
|
-
response =
|
|
528
|
+
case 5:
|
|
529
|
+
response = _c.sent();
|
|
474
530
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainVerificationStatusDtoFromJSON)(jsonValue); })];
|
|
475
531
|
}
|
|
476
532
|
});
|
|
477
533
|
});
|
|
478
534
|
};
|
|
479
535
|
/**
|
|
480
|
-
* Checks and updates the verification status of a domain owned by the seller.
|
|
536
|
+
* Checks and updates the verification status of a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
481
537
|
* Check domain verification
|
|
482
538
|
*/
|
|
483
539
|
DomainsApi.prototype.checkDomainVerification = function (requestParameters, initOverrides) {
|
|
@@ -495,14 +551,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
495
551
|
});
|
|
496
552
|
};
|
|
497
553
|
/**
|
|
498
|
-
* Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted.
|
|
554
|
+
* Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
499
555
|
* Delete domains
|
|
500
556
|
*/
|
|
501
557
|
DomainsApi.prototype.deleteDomainsRaw = function (requestParameters, initOverrides) {
|
|
502
558
|
return __awaiter(this, void 0, void 0, function () {
|
|
503
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
504
|
-
return __generator(this, function (
|
|
505
|
-
switch (
|
|
559
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
560
|
+
return __generator(this, function (_c) {
|
|
561
|
+
switch (_c.label) {
|
|
506
562
|
case 0:
|
|
507
563
|
if (requestParameters['deleteDomainsInput'] == null) {
|
|
508
564
|
throw new runtime.RequiredError('deleteDomainsInput', 'Required parameter "deleteDomainsInput" was null or undefined when calling deleteDomains().');
|
|
@@ -510,31 +566,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
510
566
|
queryParameters = {};
|
|
511
567
|
headerParameters = {};
|
|
512
568
|
headerParameters['Content-Type'] = 'application/json';
|
|
513
|
-
if (!(this.configuration && this.configuration.
|
|
569
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
570
|
+
_a = headerParameters;
|
|
571
|
+
_b = "apikey";
|
|
572
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
573
|
+
case 1:
|
|
574
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
575
|
+
_c.label = 2;
|
|
576
|
+
case 2:
|
|
577
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
514
578
|
token = this.configuration.accessToken;
|
|
515
579
|
return [4 /*yield*/, token("bearer", [])];
|
|
516
|
-
case
|
|
517
|
-
tokenString =
|
|
580
|
+
case 3:
|
|
581
|
+
tokenString = _c.sent();
|
|
518
582
|
if (tokenString) {
|
|
519
583
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
520
584
|
}
|
|
521
|
-
|
|
522
|
-
case
|
|
585
|
+
_c.label = 4;
|
|
586
|
+
case 4: return [4 /*yield*/, this.request({
|
|
523
587
|
path: "/private/domains",
|
|
524
588
|
method: 'DELETE',
|
|
525
589
|
headers: headerParameters,
|
|
526
590
|
query: queryParameters,
|
|
527
591
|
body: (0, index_1.DeleteDomainsInputToJSON)(requestParameters['deleteDomainsInput']),
|
|
528
592
|
}, initOverrides)];
|
|
529
|
-
case
|
|
530
|
-
response =
|
|
593
|
+
case 5:
|
|
594
|
+
response = _c.sent();
|
|
531
595
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
532
596
|
}
|
|
533
597
|
});
|
|
534
598
|
});
|
|
535
599
|
};
|
|
536
600
|
/**
|
|
537
|
-
* Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted.
|
|
601
|
+
* Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
538
602
|
* Delete domains
|
|
539
603
|
*/
|
|
540
604
|
DomainsApi.prototype.deleteDomains = function (requestParameters, initOverrides) {
|
|
@@ -550,41 +614,49 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
550
614
|
});
|
|
551
615
|
};
|
|
552
616
|
/**
|
|
553
|
-
* Queues an export of all domains for the current seller account.
|
|
617
|
+
* Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
554
618
|
* Export domains
|
|
555
619
|
*/
|
|
556
620
|
DomainsApi.prototype.exportDomainsRaw = function (initOverrides) {
|
|
557
621
|
return __awaiter(this, void 0, void 0, function () {
|
|
558
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
559
|
-
return __generator(this, function (
|
|
560
|
-
switch (
|
|
622
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
623
|
+
return __generator(this, function (_c) {
|
|
624
|
+
switch (_c.label) {
|
|
561
625
|
case 0:
|
|
562
626
|
queryParameters = {};
|
|
563
627
|
headerParameters = {};
|
|
564
|
-
if (!(this.configuration && this.configuration.
|
|
628
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
629
|
+
_a = headerParameters;
|
|
630
|
+
_b = "apikey";
|
|
631
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
632
|
+
case 1:
|
|
633
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
634
|
+
_c.label = 2;
|
|
635
|
+
case 2:
|
|
636
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
565
637
|
token = this.configuration.accessToken;
|
|
566
638
|
return [4 /*yield*/, token("bearer", [])];
|
|
567
|
-
case
|
|
568
|
-
tokenString =
|
|
639
|
+
case 3:
|
|
640
|
+
tokenString = _c.sent();
|
|
569
641
|
if (tokenString) {
|
|
570
642
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
571
643
|
}
|
|
572
|
-
|
|
573
|
-
case
|
|
644
|
+
_c.label = 4;
|
|
645
|
+
case 4: return [4 /*yield*/, this.request({
|
|
574
646
|
path: "/private/domains/export",
|
|
575
647
|
method: 'POST',
|
|
576
648
|
headers: headerParameters,
|
|
577
649
|
query: queryParameters,
|
|
578
650
|
}, initOverrides)];
|
|
579
|
-
case
|
|
580
|
-
response =
|
|
651
|
+
case 5:
|
|
652
|
+
response = _c.sent();
|
|
581
653
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
582
654
|
}
|
|
583
655
|
});
|
|
584
656
|
});
|
|
585
657
|
};
|
|
586
658
|
/**
|
|
587
|
-
* Queues an export of all domains for the current seller account.
|
|
659
|
+
* Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
588
660
|
* Export domains
|
|
589
661
|
*/
|
|
590
662
|
DomainsApi.prototype.exportDomains = function (initOverrides) {
|
|
@@ -600,14 +672,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
600
672
|
});
|
|
601
673
|
};
|
|
602
674
|
/**
|
|
603
|
-
* Returns the affiliate commission information for a domain owned by the seller.
|
|
675
|
+
* Returns the affiliate commission information for a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
604
676
|
* Get domain affiliate commission
|
|
605
677
|
*/
|
|
606
678
|
DomainsApi.prototype.getAffiliateCommissionRaw = function (requestParameters, initOverrides) {
|
|
607
679
|
return __awaiter(this, void 0, void 0, function () {
|
|
608
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
609
|
-
return __generator(this, function (
|
|
610
|
-
switch (
|
|
680
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
681
|
+
return __generator(this, function (_c) {
|
|
682
|
+
switch (_c.label) {
|
|
611
683
|
case 0:
|
|
612
684
|
if (requestParameters['domainName'] == null) {
|
|
613
685
|
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getAffiliateCommission().');
|
|
@@ -617,30 +689,38 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
617
689
|
queryParameters['domainName'] = requestParameters['domainName'];
|
|
618
690
|
}
|
|
619
691
|
headerParameters = {};
|
|
620
|
-
if (!(this.configuration && this.configuration.
|
|
692
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
693
|
+
_a = headerParameters;
|
|
694
|
+
_b = "apikey";
|
|
695
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
696
|
+
case 1:
|
|
697
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
698
|
+
_c.label = 2;
|
|
699
|
+
case 2:
|
|
700
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
621
701
|
token = this.configuration.accessToken;
|
|
622
702
|
return [4 /*yield*/, token("bearer", [])];
|
|
623
|
-
case
|
|
624
|
-
tokenString =
|
|
703
|
+
case 3:
|
|
704
|
+
tokenString = _c.sent();
|
|
625
705
|
if (tokenString) {
|
|
626
706
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
627
707
|
}
|
|
628
|
-
|
|
629
|
-
case
|
|
708
|
+
_c.label = 4;
|
|
709
|
+
case 4: return [4 /*yield*/, this.request({
|
|
630
710
|
path: "/private/domains/affiliate-commission",
|
|
631
711
|
method: 'GET',
|
|
632
712
|
headers: headerParameters,
|
|
633
713
|
query: queryParameters,
|
|
634
714
|
}, initOverrides)];
|
|
635
|
-
case
|
|
636
|
-
response =
|
|
715
|
+
case 5:
|
|
716
|
+
response = _c.sent();
|
|
637
717
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerDomainAffiliateCommissionDtoFromJSON)(jsonValue); })];
|
|
638
718
|
}
|
|
639
719
|
});
|
|
640
720
|
});
|
|
641
721
|
};
|
|
642
722
|
/**
|
|
643
|
-
* Returns the affiliate commission information for a domain owned by the seller.
|
|
723
|
+
* Returns the affiliate commission information for a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
644
724
|
* Get domain affiliate commission
|
|
645
725
|
*/
|
|
646
726
|
DomainsApi.prototype.getAffiliateCommission = function (requestParameters, initOverrides) {
|
|
@@ -658,14 +738,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
658
738
|
});
|
|
659
739
|
};
|
|
660
740
|
/**
|
|
661
|
-
* Lists domain transfers for the seller account.
|
|
741
|
+
* Lists domain transfers for the seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
662
742
|
* List domain transfers
|
|
663
743
|
*/
|
|
664
744
|
DomainsApi.prototype.getAllDomainTransfersRaw = function (requestParameters, initOverrides) {
|
|
665
745
|
return __awaiter(this, void 0, void 0, function () {
|
|
666
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
667
|
-
return __generator(this, function (
|
|
668
|
-
switch (
|
|
746
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
747
|
+
return __generator(this, function (_c) {
|
|
748
|
+
switch (_c.label) {
|
|
669
749
|
case 0:
|
|
670
750
|
queryParameters = {};
|
|
671
751
|
if (requestParameters['filter'] != null) {
|
|
@@ -687,30 +767,38 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
687
767
|
queryParameters['filter[domainId]'] = requestParameters['filterDomainId'];
|
|
688
768
|
}
|
|
689
769
|
headerParameters = {};
|
|
690
|
-
if (!(this.configuration && this.configuration.
|
|
770
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
771
|
+
_a = headerParameters;
|
|
772
|
+
_b = "apikey";
|
|
773
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
774
|
+
case 1:
|
|
775
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
776
|
+
_c.label = 2;
|
|
777
|
+
case 2:
|
|
778
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
691
779
|
token = this.configuration.accessToken;
|
|
692
780
|
return [4 /*yield*/, token("bearer", [])];
|
|
693
|
-
case
|
|
694
|
-
tokenString =
|
|
781
|
+
case 3:
|
|
782
|
+
tokenString = _c.sent();
|
|
695
783
|
if (tokenString) {
|
|
696
784
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
697
785
|
}
|
|
698
|
-
|
|
699
|
-
case
|
|
786
|
+
_c.label = 4;
|
|
787
|
+
case 4: return [4 /*yield*/, this.request({
|
|
700
788
|
path: "/private/domains/transfers",
|
|
701
789
|
method: 'GET',
|
|
702
790
|
headers: headerParameters,
|
|
703
791
|
query: queryParameters,
|
|
704
792
|
}, initOverrides)];
|
|
705
|
-
case
|
|
706
|
-
response =
|
|
793
|
+
case 5:
|
|
794
|
+
response = _c.sent();
|
|
707
795
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllDomainTransfers200ResponseFromJSON)(jsonValue); })];
|
|
708
796
|
}
|
|
709
797
|
});
|
|
710
798
|
});
|
|
711
799
|
};
|
|
712
800
|
/**
|
|
713
|
-
* Lists domain transfers for the seller account.
|
|
801
|
+
* Lists domain transfers for the seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
714
802
|
* List domain transfers
|
|
715
803
|
*/
|
|
716
804
|
DomainsApi.prototype.getAllDomainTransfers = function () {
|
|
@@ -729,44 +817,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
729
817
|
});
|
|
730
818
|
};
|
|
731
819
|
/**
|
|
732
|
-
* Returns domain information.
|
|
820
|
+
* Returns domain information. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
733
821
|
* Get domain
|
|
734
822
|
*/
|
|
735
823
|
DomainsApi.prototype.getDomainRaw = function (requestParameters, initOverrides) {
|
|
736
824
|
return __awaiter(this, void 0, void 0, function () {
|
|
737
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
738
|
-
return __generator(this, function (
|
|
739
|
-
switch (
|
|
825
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
826
|
+
return __generator(this, function (_c) {
|
|
827
|
+
switch (_c.label) {
|
|
740
828
|
case 0:
|
|
741
829
|
if (requestParameters['domainId'] == null) {
|
|
742
830
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomain().');
|
|
743
831
|
}
|
|
744
832
|
queryParameters = {};
|
|
745
833
|
headerParameters = {};
|
|
746
|
-
if (!(this.configuration && this.configuration.
|
|
834
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
835
|
+
_a = headerParameters;
|
|
836
|
+
_b = "apikey";
|
|
837
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
838
|
+
case 1:
|
|
839
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
840
|
+
_c.label = 2;
|
|
841
|
+
case 2:
|
|
842
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
747
843
|
token = this.configuration.accessToken;
|
|
748
844
|
return [4 /*yield*/, token("bearer", [])];
|
|
749
|
-
case
|
|
750
|
-
tokenString =
|
|
845
|
+
case 3:
|
|
846
|
+
tokenString = _c.sent();
|
|
751
847
|
if (tokenString) {
|
|
752
848
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
753
849
|
}
|
|
754
|
-
|
|
755
|
-
case
|
|
850
|
+
_c.label = 4;
|
|
851
|
+
case 4: return [4 /*yield*/, this.request({
|
|
756
852
|
path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
757
853
|
method: 'GET',
|
|
758
854
|
headers: headerParameters,
|
|
759
855
|
query: queryParameters,
|
|
760
856
|
}, initOverrides)];
|
|
761
|
-
case
|
|
762
|
-
response =
|
|
857
|
+
case 5:
|
|
858
|
+
response = _c.sent();
|
|
763
859
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON)(jsonValue); })];
|
|
764
860
|
}
|
|
765
861
|
});
|
|
766
862
|
});
|
|
767
863
|
};
|
|
768
864
|
/**
|
|
769
|
-
* Returns domain information.
|
|
865
|
+
* Returns domain information. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
770
866
|
* Get domain
|
|
771
867
|
*/
|
|
772
868
|
DomainsApi.prototype.getDomain = function (requestParameters, initOverrides) {
|
|
@@ -784,44 +880,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
784
880
|
});
|
|
785
881
|
};
|
|
786
882
|
/**
|
|
787
|
-
* Returns the currency exchange rate applicable to the specified domain.
|
|
883
|
+
* Returns the currency exchange rate applicable to the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
788
884
|
* Get domain exchange rate
|
|
789
885
|
*/
|
|
790
886
|
DomainsApi.prototype.getDomainExchangeRateRaw = function (requestParameters, initOverrides) {
|
|
791
887
|
return __awaiter(this, void 0, void 0, function () {
|
|
792
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
793
|
-
return __generator(this, function (
|
|
794
|
-
switch (
|
|
888
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
889
|
+
return __generator(this, function (_c) {
|
|
890
|
+
switch (_c.label) {
|
|
795
891
|
case 0:
|
|
796
892
|
if (requestParameters['domainId'] == null) {
|
|
797
893
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomainExchangeRate().');
|
|
798
894
|
}
|
|
799
895
|
queryParameters = {};
|
|
800
896
|
headerParameters = {};
|
|
801
|
-
if (!(this.configuration && this.configuration.
|
|
897
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
898
|
+
_a = headerParameters;
|
|
899
|
+
_b = "apikey";
|
|
900
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
901
|
+
case 1:
|
|
902
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
903
|
+
_c.label = 2;
|
|
904
|
+
case 2:
|
|
905
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
802
906
|
token = this.configuration.accessToken;
|
|
803
907
|
return [4 /*yield*/, token("bearer", [])];
|
|
804
|
-
case
|
|
805
|
-
tokenString =
|
|
908
|
+
case 3:
|
|
909
|
+
tokenString = _c.sent();
|
|
806
910
|
if (tokenString) {
|
|
807
911
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
808
912
|
}
|
|
809
|
-
|
|
810
|
-
case
|
|
913
|
+
_c.label = 4;
|
|
914
|
+
case 4: return [4 /*yield*/, this.request({
|
|
811
915
|
path: "/private/domains/{domainId}/exchange-rate".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
812
916
|
method: 'GET',
|
|
813
917
|
headers: headerParameters,
|
|
814
918
|
query: queryParameters,
|
|
815
919
|
}, initOverrides)];
|
|
816
|
-
case
|
|
817
|
-
response =
|
|
920
|
+
case 5:
|
|
921
|
+
response = _c.sent();
|
|
818
922
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainExchangeRateDtoFromJSON)(jsonValue); })];
|
|
819
923
|
}
|
|
820
924
|
});
|
|
821
925
|
});
|
|
822
926
|
};
|
|
823
927
|
/**
|
|
824
|
-
* Returns the currency exchange rate applicable to the specified domain.
|
|
928
|
+
* Returns the currency exchange rate applicable to the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
825
929
|
* Get domain exchange rate
|
|
826
930
|
*/
|
|
827
931
|
DomainsApi.prototype.getDomainExchangeRate = function (requestParameters, initOverrides) {
|
|
@@ -839,41 +943,49 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
839
943
|
});
|
|
840
944
|
};
|
|
841
945
|
/**
|
|
842
|
-
* Returns available filter options for the seller domain inventory.
|
|
946
|
+
* Returns available filter options for the seller domain inventory. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
843
947
|
* Get domain filters
|
|
844
948
|
*/
|
|
845
949
|
DomainsApi.prototype.getDomainFiltersRaw = function (initOverrides) {
|
|
846
950
|
return __awaiter(this, void 0, void 0, function () {
|
|
847
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
848
|
-
return __generator(this, function (
|
|
849
|
-
switch (
|
|
951
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
952
|
+
return __generator(this, function (_c) {
|
|
953
|
+
switch (_c.label) {
|
|
850
954
|
case 0:
|
|
851
955
|
queryParameters = {};
|
|
852
956
|
headerParameters = {};
|
|
853
|
-
if (!(this.configuration && this.configuration.
|
|
957
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
958
|
+
_a = headerParameters;
|
|
959
|
+
_b = "apikey";
|
|
960
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
961
|
+
case 1:
|
|
962
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
963
|
+
_c.label = 2;
|
|
964
|
+
case 2:
|
|
965
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
854
966
|
token = this.configuration.accessToken;
|
|
855
967
|
return [4 /*yield*/, token("bearer", [])];
|
|
856
|
-
case
|
|
857
|
-
tokenString =
|
|
968
|
+
case 3:
|
|
969
|
+
tokenString = _c.sent();
|
|
858
970
|
if (tokenString) {
|
|
859
971
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
860
972
|
}
|
|
861
|
-
|
|
862
|
-
case
|
|
973
|
+
_c.label = 4;
|
|
974
|
+
case 4: return [4 /*yield*/, this.request({
|
|
863
975
|
path: "/private/domains/filters",
|
|
864
976
|
method: 'GET',
|
|
865
977
|
headers: headerParameters,
|
|
866
978
|
query: queryParameters,
|
|
867
979
|
}, initOverrides)];
|
|
868
|
-
case
|
|
869
|
-
response =
|
|
980
|
+
case 5:
|
|
981
|
+
response = _c.sent();
|
|
870
982
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainFiltersDtoFromJSON)(jsonValue); })];
|
|
871
983
|
}
|
|
872
984
|
});
|
|
873
985
|
});
|
|
874
986
|
};
|
|
875
987
|
/**
|
|
876
|
-
* Returns available filter options for the seller domain inventory.
|
|
988
|
+
* Returns available filter options for the seller domain inventory. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
877
989
|
* Get domain filters
|
|
878
990
|
*/
|
|
879
991
|
DomainsApi.prototype.getDomainFilters = function (initOverrides) {
|
|
@@ -891,44 +1003,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
891
1003
|
});
|
|
892
1004
|
};
|
|
893
1005
|
/**
|
|
894
|
-
* Returns the list of currencies available for the current domain filter selection.
|
|
1006
|
+
* Returns the list of currencies available for the current domain filter selection. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
895
1007
|
* Get domain filter currencies
|
|
896
1008
|
*/
|
|
897
1009
|
DomainsApi.prototype.getDomainFiltersCurrenciesRaw = function (requestParameters, initOverrides) {
|
|
898
1010
|
return __awaiter(this, void 0, void 0, function () {
|
|
899
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
900
|
-
return __generator(this, function (
|
|
901
|
-
switch (
|
|
1011
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1012
|
+
return __generator(this, function (_c) {
|
|
1013
|
+
switch (_c.label) {
|
|
902
1014
|
case 0:
|
|
903
1015
|
queryParameters = {};
|
|
904
1016
|
if (requestParameters['filter'] != null) {
|
|
905
1017
|
queryParameters['filter'] = requestParameters['filter'];
|
|
906
1018
|
}
|
|
907
1019
|
headerParameters = {};
|
|
908
|
-
if (!(this.configuration && this.configuration.
|
|
1020
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1021
|
+
_a = headerParameters;
|
|
1022
|
+
_b = "apikey";
|
|
1023
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1024
|
+
case 1:
|
|
1025
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1026
|
+
_c.label = 2;
|
|
1027
|
+
case 2:
|
|
1028
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
909
1029
|
token = this.configuration.accessToken;
|
|
910
1030
|
return [4 /*yield*/, token("bearer", [])];
|
|
911
|
-
case
|
|
912
|
-
tokenString =
|
|
1031
|
+
case 3:
|
|
1032
|
+
tokenString = _c.sent();
|
|
913
1033
|
if (tokenString) {
|
|
914
1034
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
915
1035
|
}
|
|
916
|
-
|
|
917
|
-
case
|
|
1036
|
+
_c.label = 4;
|
|
1037
|
+
case 4: return [4 /*yield*/, this.request({
|
|
918
1038
|
path: "/private/domains/filters/currencies",
|
|
919
1039
|
method: 'GET',
|
|
920
1040
|
headers: headerParameters,
|
|
921
1041
|
query: queryParameters,
|
|
922
1042
|
}, initOverrides)];
|
|
923
|
-
case
|
|
924
|
-
response =
|
|
1043
|
+
case 5:
|
|
1044
|
+
response = _c.sent();
|
|
925
1045
|
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
926
1046
|
}
|
|
927
1047
|
});
|
|
928
1048
|
});
|
|
929
1049
|
};
|
|
930
1050
|
/**
|
|
931
|
-
* Returns the list of currencies available for the current domain filter selection.
|
|
1051
|
+
* Returns the list of currencies available for the current domain filter selection. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
932
1052
|
* Get domain filter currencies
|
|
933
1053
|
*/
|
|
934
1054
|
DomainsApi.prototype.getDomainFiltersCurrencies = function () {
|
|
@@ -947,44 +1067,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
947
1067
|
});
|
|
948
1068
|
};
|
|
949
1069
|
/**
|
|
950
|
-
* Returns domain transfer information.
|
|
1070
|
+
* Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
951
1071
|
* Get domain transfer
|
|
952
1072
|
*/
|
|
953
1073
|
DomainsApi.prototype.getDomainTransferRaw = function (requestParameters, initOverrides) {
|
|
954
1074
|
return __awaiter(this, void 0, void 0, function () {
|
|
955
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
956
|
-
return __generator(this, function (
|
|
957
|
-
switch (
|
|
1075
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1076
|
+
return __generator(this, function (_c) {
|
|
1077
|
+
switch (_c.label) {
|
|
958
1078
|
case 0:
|
|
959
1079
|
if (requestParameters['transferId'] == null) {
|
|
960
1080
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getDomainTransfer().');
|
|
961
1081
|
}
|
|
962
1082
|
queryParameters = {};
|
|
963
1083
|
headerParameters = {};
|
|
964
|
-
if (!(this.configuration && this.configuration.
|
|
1084
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1085
|
+
_a = headerParameters;
|
|
1086
|
+
_b = "apikey";
|
|
1087
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1088
|
+
case 1:
|
|
1089
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1090
|
+
_c.label = 2;
|
|
1091
|
+
case 2:
|
|
1092
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
965
1093
|
token = this.configuration.accessToken;
|
|
966
1094
|
return [4 /*yield*/, token("bearer", [])];
|
|
967
|
-
case
|
|
968
|
-
tokenString =
|
|
1095
|
+
case 3:
|
|
1096
|
+
tokenString = _c.sent();
|
|
969
1097
|
if (tokenString) {
|
|
970
1098
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
971
1099
|
}
|
|
972
|
-
|
|
973
|
-
case
|
|
1100
|
+
_c.label = 4;
|
|
1101
|
+
case 4: return [4 /*yield*/, this.request({
|
|
974
1102
|
path: "/private/domains/transfers/{transferId}".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
975
1103
|
method: 'GET',
|
|
976
1104
|
headers: headerParameters,
|
|
977
1105
|
query: queryParameters,
|
|
978
1106
|
}, initOverrides)];
|
|
979
|
-
case
|
|
980
|
-
response =
|
|
1107
|
+
case 5:
|
|
1108
|
+
response = _c.sent();
|
|
981
1109
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerDomainTransferDtoFromJSON)(jsonValue); })];
|
|
982
1110
|
}
|
|
983
1111
|
});
|
|
984
1112
|
});
|
|
985
1113
|
};
|
|
986
1114
|
/**
|
|
987
|
-
* Returns domain transfer information.
|
|
1115
|
+
* Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
988
1116
|
* Get domain transfer
|
|
989
1117
|
*/
|
|
990
1118
|
DomainsApi.prototype.getDomainTransfer = function (requestParameters, initOverrides) {
|
|
@@ -1002,44 +1130,52 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1002
1130
|
});
|
|
1003
1131
|
};
|
|
1004
1132
|
/**
|
|
1005
|
-
* Returns the public landing page URL for the specified domain.
|
|
1133
|
+
* Returns the public landing page URL for the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
1006
1134
|
* Get domain URL
|
|
1007
1135
|
*/
|
|
1008
1136
|
DomainsApi.prototype.getDomainUrlRaw = function (requestParameters, initOverrides) {
|
|
1009
1137
|
return __awaiter(this, void 0, void 0, function () {
|
|
1010
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
1011
|
-
return __generator(this, function (
|
|
1012
|
-
switch (
|
|
1138
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1139
|
+
return __generator(this, function (_c) {
|
|
1140
|
+
switch (_c.label) {
|
|
1013
1141
|
case 0:
|
|
1014
1142
|
if (requestParameters['domainId'] == null) {
|
|
1015
1143
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomainUrl().');
|
|
1016
1144
|
}
|
|
1017
1145
|
queryParameters = {};
|
|
1018
1146
|
headerParameters = {};
|
|
1019
|
-
if (!(this.configuration && this.configuration.
|
|
1147
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1148
|
+
_a = headerParameters;
|
|
1149
|
+
_b = "apikey";
|
|
1150
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1151
|
+
case 1:
|
|
1152
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1153
|
+
_c.label = 2;
|
|
1154
|
+
case 2:
|
|
1155
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1020
1156
|
token = this.configuration.accessToken;
|
|
1021
1157
|
return [4 /*yield*/, token("bearer", [])];
|
|
1022
|
-
case
|
|
1023
|
-
tokenString =
|
|
1158
|
+
case 3:
|
|
1159
|
+
tokenString = _c.sent();
|
|
1024
1160
|
if (tokenString) {
|
|
1025
1161
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1026
1162
|
}
|
|
1027
|
-
|
|
1028
|
-
case
|
|
1163
|
+
_c.label = 4;
|
|
1164
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1029
1165
|
path: "/private/domains/{domainId}/url".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
1030
1166
|
method: 'GET',
|
|
1031
1167
|
headers: headerParameters,
|
|
1032
1168
|
query: queryParameters,
|
|
1033
1169
|
}, initOverrides)];
|
|
1034
|
-
case
|
|
1035
|
-
response =
|
|
1170
|
+
case 5:
|
|
1171
|
+
response = _c.sent();
|
|
1036
1172
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainUrlDtoFromJSON)(jsonValue); })];
|
|
1037
1173
|
}
|
|
1038
1174
|
});
|
|
1039
1175
|
});
|
|
1040
1176
|
};
|
|
1041
1177
|
/**
|
|
1042
|
-
* Returns the public landing page URL for the specified domain.
|
|
1178
|
+
* Returns the public landing page URL for the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
1043
1179
|
* Get domain URL
|
|
1044
1180
|
*/
|
|
1045
1181
|
DomainsApi.prototype.getDomainUrl = function (requestParameters, initOverrides) {
|
|
@@ -1057,14 +1193,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1057
1193
|
});
|
|
1058
1194
|
};
|
|
1059
1195
|
/**
|
|
1060
|
-
* Lists domains for the seller account.
|
|
1196
|
+
* Lists domains for the seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
1061
1197
|
* List domains
|
|
1062
1198
|
*/
|
|
1063
1199
|
DomainsApi.prototype.listRaw = function (requestParameters, initOverrides) {
|
|
1064
1200
|
return __awaiter(this, void 0, void 0, function () {
|
|
1065
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
1066
|
-
return __generator(this, function (
|
|
1067
|
-
switch (
|
|
1201
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1202
|
+
return __generator(this, function (_c) {
|
|
1203
|
+
switch (_c.label) {
|
|
1068
1204
|
case 0:
|
|
1069
1205
|
queryParameters = {};
|
|
1070
1206
|
if (requestParameters['filter'] != null) {
|
|
@@ -1098,30 +1234,38 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1098
1234
|
queryParameters['filter[name]'] = requestParameters['filterName'];
|
|
1099
1235
|
}
|
|
1100
1236
|
headerParameters = {};
|
|
1101
|
-
if (!(this.configuration && this.configuration.
|
|
1237
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1238
|
+
_a = headerParameters;
|
|
1239
|
+
_b = "apikey";
|
|
1240
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1241
|
+
case 1:
|
|
1242
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1243
|
+
_c.label = 2;
|
|
1244
|
+
case 2:
|
|
1245
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1102
1246
|
token = this.configuration.accessToken;
|
|
1103
1247
|
return [4 /*yield*/, token("bearer", [])];
|
|
1104
|
-
case
|
|
1105
|
-
tokenString =
|
|
1248
|
+
case 3:
|
|
1249
|
+
tokenString = _c.sent();
|
|
1106
1250
|
if (tokenString) {
|
|
1107
1251
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1108
1252
|
}
|
|
1109
|
-
|
|
1110
|
-
case
|
|
1253
|
+
_c.label = 4;
|
|
1254
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1111
1255
|
path: "/private/domains",
|
|
1112
1256
|
method: 'GET',
|
|
1113
1257
|
headers: headerParameters,
|
|
1114
1258
|
query: queryParameters,
|
|
1115
1259
|
}, initOverrides)];
|
|
1116
|
-
case
|
|
1117
|
-
response =
|
|
1260
|
+
case 5:
|
|
1261
|
+
response = _c.sent();
|
|
1118
1262
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
|
|
1119
1263
|
}
|
|
1120
1264
|
});
|
|
1121
1265
|
});
|
|
1122
1266
|
};
|
|
1123
1267
|
/**
|
|
1124
|
-
* Lists domains for the seller account.
|
|
1268
|
+
* Lists domains for the seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
1125
1269
|
* List domains
|
|
1126
1270
|
*/
|
|
1127
1271
|
DomainsApi.prototype.list = function () {
|
|
@@ -1140,14 +1284,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1140
1284
|
});
|
|
1141
1285
|
};
|
|
1142
1286
|
/**
|
|
1143
|
-
* Creates and starts an auction for the specified verified domain.
|
|
1287
|
+
* Creates and starts an auction for the specified verified domain. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1144
1288
|
* Start domain auction
|
|
1145
1289
|
*/
|
|
1146
1290
|
DomainsApi.prototype.startAuctionRaw = function (requestParameters, initOverrides) {
|
|
1147
1291
|
return __awaiter(this, void 0, void 0, function () {
|
|
1148
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
1149
|
-
return __generator(this, function (
|
|
1150
|
-
switch (
|
|
1292
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1293
|
+
return __generator(this, function (_c) {
|
|
1294
|
+
switch (_c.label) {
|
|
1151
1295
|
case 0:
|
|
1152
1296
|
if (requestParameters['domainId'] == null) {
|
|
1153
1297
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling startAuction().');
|
|
@@ -1158,31 +1302,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1158
1302
|
queryParameters = {};
|
|
1159
1303
|
headerParameters = {};
|
|
1160
1304
|
headerParameters['Content-Type'] = 'application/json';
|
|
1161
|
-
if (!(this.configuration && this.configuration.
|
|
1305
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1306
|
+
_a = headerParameters;
|
|
1307
|
+
_b = "apikey";
|
|
1308
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1309
|
+
case 1:
|
|
1310
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1311
|
+
_c.label = 2;
|
|
1312
|
+
case 2:
|
|
1313
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1162
1314
|
token = this.configuration.accessToken;
|
|
1163
1315
|
return [4 /*yield*/, token("bearer", [])];
|
|
1164
|
-
case
|
|
1165
|
-
tokenString =
|
|
1316
|
+
case 3:
|
|
1317
|
+
tokenString = _c.sent();
|
|
1166
1318
|
if (tokenString) {
|
|
1167
1319
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1168
1320
|
}
|
|
1169
|
-
|
|
1170
|
-
case
|
|
1321
|
+
_c.label = 4;
|
|
1322
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1171
1323
|
path: "/private/domains/{domainId}/start-auction".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
1172
1324
|
method: 'POST',
|
|
1173
1325
|
headers: headerParameters,
|
|
1174
1326
|
query: queryParameters,
|
|
1175
1327
|
body: (0, index_1.StartAuctionInputToJSON)(requestParameters['startAuctionInput']),
|
|
1176
1328
|
}, initOverrides)];
|
|
1177
|
-
case
|
|
1178
|
-
response =
|
|
1329
|
+
case 5:
|
|
1330
|
+
response = _c.sent();
|
|
1179
1331
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1180
1332
|
}
|
|
1181
1333
|
});
|
|
1182
1334
|
});
|
|
1183
1335
|
};
|
|
1184
1336
|
/**
|
|
1185
|
-
* Creates and starts an auction for the specified verified domain.
|
|
1337
|
+
* Creates and starts an auction for the specified verified domain. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1186
1338
|
* Start domain auction
|
|
1187
1339
|
*/
|
|
1188
1340
|
DomainsApi.prototype.startAuction = function (requestParameters, initOverrides) {
|
|
@@ -1198,14 +1350,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1198
1350
|
});
|
|
1199
1351
|
};
|
|
1200
1352
|
/**
|
|
1201
|
-
* Updates pricing, landing page, and other settings for a single domain.
|
|
1353
|
+
* Updates pricing, landing page, and other settings for a single domain. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1202
1354
|
* Update domain
|
|
1203
1355
|
*/
|
|
1204
1356
|
DomainsApi.prototype.updateRaw = function (requestParameters, initOverrides) {
|
|
1205
1357
|
return __awaiter(this, void 0, void 0, function () {
|
|
1206
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
1207
|
-
return __generator(this, function (
|
|
1208
|
-
switch (
|
|
1358
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1359
|
+
return __generator(this, function (_c) {
|
|
1360
|
+
switch (_c.label) {
|
|
1209
1361
|
case 0:
|
|
1210
1362
|
if (requestParameters['domainId'] == null) {
|
|
1211
1363
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling update().');
|
|
@@ -1216,31 +1368,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1216
1368
|
queryParameters = {};
|
|
1217
1369
|
headerParameters = {};
|
|
1218
1370
|
headerParameters['Content-Type'] = 'application/json';
|
|
1219
|
-
if (!(this.configuration && this.configuration.
|
|
1371
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1372
|
+
_a = headerParameters;
|
|
1373
|
+
_b = "apikey";
|
|
1374
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1375
|
+
case 1:
|
|
1376
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1377
|
+
_c.label = 2;
|
|
1378
|
+
case 2:
|
|
1379
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1220
1380
|
token = this.configuration.accessToken;
|
|
1221
1381
|
return [4 /*yield*/, token("bearer", [])];
|
|
1222
|
-
case
|
|
1223
|
-
tokenString =
|
|
1382
|
+
case 3:
|
|
1383
|
+
tokenString = _c.sent();
|
|
1224
1384
|
if (tokenString) {
|
|
1225
1385
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1226
1386
|
}
|
|
1227
|
-
|
|
1228
|
-
case
|
|
1387
|
+
_c.label = 4;
|
|
1388
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1229
1389
|
path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
1230
1390
|
method: 'PATCH',
|
|
1231
1391
|
headers: headerParameters,
|
|
1232
1392
|
query: queryParameters,
|
|
1233
1393
|
body: (0, index_1.UpdateDomainInputToJSON)(requestParameters['updateDomainInput']),
|
|
1234
1394
|
}, initOverrides)];
|
|
1235
|
-
case
|
|
1236
|
-
response =
|
|
1395
|
+
case 5:
|
|
1396
|
+
response = _c.sent();
|
|
1237
1397
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1238
1398
|
}
|
|
1239
1399
|
});
|
|
1240
1400
|
});
|
|
1241
1401
|
};
|
|
1242
1402
|
/**
|
|
1243
|
-
* Updates pricing, landing page, and other settings for a single domain.
|
|
1403
|
+
* Updates pricing, landing page, and other settings for a single domain. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1244
1404
|
* Update domain
|
|
1245
1405
|
*/
|
|
1246
1406
|
DomainsApi.prototype.update = function (requestParameters, initOverrides) {
|
|
@@ -1256,14 +1416,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1256
1416
|
});
|
|
1257
1417
|
};
|
|
1258
1418
|
/**
|
|
1259
|
-
* Updates the authorization code for a domain transfer in progress.
|
|
1419
|
+
* Updates the authorization code for a domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1260
1420
|
* Update domain transfer auth code
|
|
1261
1421
|
*/
|
|
1262
1422
|
DomainsApi.prototype.updateDomainTransferAuthCodeRaw = function (requestParameters, initOverrides) {
|
|
1263
1423
|
return __awaiter(this, void 0, void 0, function () {
|
|
1264
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
1265
|
-
return __generator(this, function (
|
|
1266
|
-
switch (
|
|
1424
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1425
|
+
return __generator(this, function (_c) {
|
|
1426
|
+
switch (_c.label) {
|
|
1267
1427
|
case 0:
|
|
1268
1428
|
if (requestParameters['transferId'] == null) {
|
|
1269
1429
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
@@ -1274,31 +1434,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1274
1434
|
queryParameters = {};
|
|
1275
1435
|
headerParameters = {};
|
|
1276
1436
|
headerParameters['Content-Type'] = 'application/json';
|
|
1277
|
-
if (!(this.configuration && this.configuration.
|
|
1437
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1438
|
+
_a = headerParameters;
|
|
1439
|
+
_b = "apikey";
|
|
1440
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1441
|
+
case 1:
|
|
1442
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1443
|
+
_c.label = 2;
|
|
1444
|
+
case 2:
|
|
1445
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1278
1446
|
token = this.configuration.accessToken;
|
|
1279
1447
|
return [4 /*yield*/, token("bearer", [])];
|
|
1280
|
-
case
|
|
1281
|
-
tokenString =
|
|
1448
|
+
case 3:
|
|
1449
|
+
tokenString = _c.sent();
|
|
1282
1450
|
if (tokenString) {
|
|
1283
1451
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1284
1452
|
}
|
|
1285
|
-
|
|
1286
|
-
case
|
|
1453
|
+
_c.label = 4;
|
|
1454
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1287
1455
|
path: "/private/domains/transfers/{transferId}/auth-code".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
1288
1456
|
method: 'PATCH',
|
|
1289
1457
|
headers: headerParameters,
|
|
1290
1458
|
query: queryParameters,
|
|
1291
1459
|
body: (0, index_1.UpdateDomainTransferAuthCodeInputToJSON)(requestParameters['updateDomainTransferAuthCodeInput']),
|
|
1292
1460
|
}, initOverrides)];
|
|
1293
|
-
case
|
|
1294
|
-
response =
|
|
1461
|
+
case 5:
|
|
1462
|
+
response = _c.sent();
|
|
1295
1463
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1296
1464
|
}
|
|
1297
1465
|
});
|
|
1298
1466
|
});
|
|
1299
1467
|
};
|
|
1300
1468
|
/**
|
|
1301
|
-
* Updates the authorization code for a domain transfer in progress.
|
|
1469
|
+
* Updates the authorization code for a domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1302
1470
|
* Update domain transfer auth code
|
|
1303
1471
|
*/
|
|
1304
1472
|
DomainsApi.prototype.updateDomainTransferAuthCode = function (requestParameters, initOverrides) {
|
|
@@ -1314,14 +1482,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1314
1482
|
});
|
|
1315
1483
|
};
|
|
1316
1484
|
/**
|
|
1317
|
-
* Updates the IPS tag for a .uk domain transfer in progress.
|
|
1485
|
+
* Updates the IPS tag for a .uk domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1318
1486
|
* Update domain transfer IPS tag
|
|
1319
1487
|
*/
|
|
1320
1488
|
DomainsApi.prototype.updateDomainTransferIpsTagRaw = function (requestParameters, initOverrides) {
|
|
1321
1489
|
return __awaiter(this, void 0, void 0, function () {
|
|
1322
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
1323
|
-
return __generator(this, function (
|
|
1324
|
-
switch (
|
|
1490
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1491
|
+
return __generator(this, function (_c) {
|
|
1492
|
+
switch (_c.label) {
|
|
1325
1493
|
case 0:
|
|
1326
1494
|
if (requestParameters['transferId'] == null) {
|
|
1327
1495
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferIpsTag().');
|
|
@@ -1332,31 +1500,39 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1332
1500
|
queryParameters = {};
|
|
1333
1501
|
headerParameters = {};
|
|
1334
1502
|
headerParameters['Content-Type'] = 'application/json';
|
|
1335
|
-
if (!(this.configuration && this.configuration.
|
|
1503
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1504
|
+
_a = headerParameters;
|
|
1505
|
+
_b = "apikey";
|
|
1506
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1507
|
+
case 1:
|
|
1508
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1509
|
+
_c.label = 2;
|
|
1510
|
+
case 2:
|
|
1511
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1336
1512
|
token = this.configuration.accessToken;
|
|
1337
1513
|
return [4 /*yield*/, token("bearer", [])];
|
|
1338
|
-
case
|
|
1339
|
-
tokenString =
|
|
1514
|
+
case 3:
|
|
1515
|
+
tokenString = _c.sent();
|
|
1340
1516
|
if (tokenString) {
|
|
1341
1517
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1342
1518
|
}
|
|
1343
|
-
|
|
1344
|
-
case
|
|
1519
|
+
_c.label = 4;
|
|
1520
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1345
1521
|
path: "/private/domains/transfers/{transferId}/ips-tag".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
1346
1522
|
method: 'PATCH',
|
|
1347
1523
|
headers: headerParameters,
|
|
1348
1524
|
query: queryParameters,
|
|
1349
1525
|
body: (0, index_1.UpdateDomainTransferIpsTagInputToJSON)(requestParameters['updateDomainTransferIpsTagInput']),
|
|
1350
1526
|
}, initOverrides)];
|
|
1351
|
-
case
|
|
1352
|
-
response =
|
|
1527
|
+
case 5:
|
|
1528
|
+
response = _c.sent();
|
|
1353
1529
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1354
1530
|
}
|
|
1355
1531
|
});
|
|
1356
1532
|
});
|
|
1357
1533
|
};
|
|
1358
1534
|
/**
|
|
1359
|
-
* Updates the IPS tag for a .uk domain transfer in progress.
|
|
1535
|
+
* Updates the IPS tag for a .uk domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1360
1536
|
* Update domain transfer IPS tag
|
|
1361
1537
|
*/
|
|
1362
1538
|
DomainsApi.prototype.updateDomainTransferIpsTag = function (requestParameters, initOverrides) {
|