@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
|
@@ -76,14 +76,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Adds a new bank account for payouts to the current seller account.
|
|
79
|
+
* Adds a new bank account for payouts to the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
80
|
* Create bank account
|
|
81
81
|
*/
|
|
82
82
|
BankAccountsApi.prototype.createBankAccountRaw = function (requestParameters, initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
if (requestParameters['accountId'] == null) {
|
|
89
89
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling createBankAccount().');
|
|
@@ -94,31 +94,39 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
94
94
|
queryParameters = {};
|
|
95
95
|
headerParameters = {};
|
|
96
96
|
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
-
if (!(this.configuration && this.configuration.
|
|
97
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
98
|
+
_a = headerParameters;
|
|
99
|
+
_b = "apikey";
|
|
100
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
101
|
+
case 1:
|
|
102
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
103
|
+
_c.label = 2;
|
|
104
|
+
case 2:
|
|
105
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
98
106
|
token = this.configuration.accessToken;
|
|
99
107
|
return [4 /*yield*/, token("bearer", [])];
|
|
100
|
-
case
|
|
101
|
-
tokenString =
|
|
108
|
+
case 3:
|
|
109
|
+
tokenString = _c.sent();
|
|
102
110
|
if (tokenString) {
|
|
103
111
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
104
112
|
}
|
|
105
|
-
|
|
106
|
-
case
|
|
113
|
+
_c.label = 4;
|
|
114
|
+
case 4: return [4 /*yield*/, this.request({
|
|
107
115
|
path: "/private/accounts/{accountId}/bank-accounts".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
108
116
|
method: 'POST',
|
|
109
117
|
headers: headerParameters,
|
|
110
118
|
query: queryParameters,
|
|
111
119
|
body: (0, index_1.CreateBankAccountInputToJSON)(requestParameters['createBankAccountInput']),
|
|
112
120
|
}, initOverrides)];
|
|
113
|
-
case
|
|
114
|
-
response =
|
|
121
|
+
case 5:
|
|
122
|
+
response = _c.sent();
|
|
115
123
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
116
124
|
}
|
|
117
125
|
});
|
|
118
126
|
});
|
|
119
127
|
};
|
|
120
128
|
/**
|
|
121
|
-
* Adds a new bank account for payouts to the current seller account.
|
|
129
|
+
* Adds a new bank account for payouts to the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
122
130
|
* Create bank account
|
|
123
131
|
*/
|
|
124
132
|
BankAccountsApi.prototype.createBankAccount = function (requestParameters, initOverrides) {
|
|
@@ -134,14 +142,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
134
142
|
});
|
|
135
143
|
};
|
|
136
144
|
/**
|
|
137
|
-
* Removes a bank account from the current seller account.
|
|
145
|
+
* Removes a bank account from the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
138
146
|
* Delete bank account
|
|
139
147
|
*/
|
|
140
148
|
BankAccountsApi.prototype.deleteBankAccountRaw = function (requestParameters, initOverrides) {
|
|
141
149
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
143
|
-
return __generator(this, function (
|
|
144
|
-
switch (
|
|
150
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
151
|
+
return __generator(this, function (_c) {
|
|
152
|
+
switch (_c.label) {
|
|
145
153
|
case 0:
|
|
146
154
|
if (requestParameters['accountId'] == null) {
|
|
147
155
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling deleteBankAccount().');
|
|
@@ -151,30 +159,38 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
151
159
|
}
|
|
152
160
|
queryParameters = {};
|
|
153
161
|
headerParameters = {};
|
|
154
|
-
if (!(this.configuration && this.configuration.
|
|
162
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
163
|
+
_a = headerParameters;
|
|
164
|
+
_b = "apikey";
|
|
165
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
166
|
+
case 1:
|
|
167
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
168
|
+
_c.label = 2;
|
|
169
|
+
case 2:
|
|
170
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
155
171
|
token = this.configuration.accessToken;
|
|
156
172
|
return [4 /*yield*/, token("bearer", [])];
|
|
157
|
-
case
|
|
158
|
-
tokenString =
|
|
173
|
+
case 3:
|
|
174
|
+
tokenString = _c.sent();
|
|
159
175
|
if (tokenString) {
|
|
160
176
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
161
177
|
}
|
|
162
|
-
|
|
163
|
-
case
|
|
178
|
+
_c.label = 4;
|
|
179
|
+
case 4: return [4 /*yield*/, this.request({
|
|
164
180
|
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
165
181
|
method: 'DELETE',
|
|
166
182
|
headers: headerParameters,
|
|
167
183
|
query: queryParameters,
|
|
168
184
|
}, initOverrides)];
|
|
169
|
-
case
|
|
170
|
-
response =
|
|
185
|
+
case 5:
|
|
186
|
+
response = _c.sent();
|
|
171
187
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
172
188
|
}
|
|
173
189
|
});
|
|
174
190
|
});
|
|
175
191
|
};
|
|
176
192
|
/**
|
|
177
|
-
* Removes a bank account from the current seller account.
|
|
193
|
+
* Removes a bank account from the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
178
194
|
* Delete bank account
|
|
179
195
|
*/
|
|
180
196
|
BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, initOverrides) {
|
|
@@ -190,14 +206,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
190
206
|
});
|
|
191
207
|
};
|
|
192
208
|
/**
|
|
193
|
-
* Returns bank account details to use for microdeposit verification.
|
|
209
|
+
* Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
194
210
|
* Get microdeposit bank account details
|
|
195
211
|
*/
|
|
196
212
|
BankAccountsApi.prototype.getBankAccountToUseForMicrodepositRaw = function (requestParameters, initOverrides) {
|
|
197
213
|
return __awaiter(this, void 0, void 0, function () {
|
|
198
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
199
|
-
return __generator(this, function (
|
|
200
|
-
switch (
|
|
214
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
215
|
+
return __generator(this, function (_c) {
|
|
216
|
+
switch (_c.label) {
|
|
201
217
|
case 0:
|
|
202
218
|
if (requestParameters['bankAccountId'] == null) {
|
|
203
219
|
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
|
|
@@ -207,30 +223,38 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
207
223
|
}
|
|
208
224
|
queryParameters = {};
|
|
209
225
|
headerParameters = {};
|
|
210
|
-
if (!(this.configuration && this.configuration.
|
|
226
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
227
|
+
_a = headerParameters;
|
|
228
|
+
_b = "apikey";
|
|
229
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
230
|
+
case 1:
|
|
231
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
232
|
+
_c.label = 2;
|
|
233
|
+
case 2:
|
|
234
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
211
235
|
token = this.configuration.accessToken;
|
|
212
236
|
return [4 /*yield*/, token("bearer", [])];
|
|
213
|
-
case
|
|
214
|
-
tokenString =
|
|
237
|
+
case 3:
|
|
238
|
+
tokenString = _c.sent();
|
|
215
239
|
if (tokenString) {
|
|
216
240
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
217
241
|
}
|
|
218
|
-
|
|
219
|
-
case
|
|
242
|
+
_c.label = 4;
|
|
243
|
+
case 4: return [4 /*yield*/, this.request({
|
|
220
244
|
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit".replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))).replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
221
245
|
method: 'GET',
|
|
222
246
|
headers: headerParameters,
|
|
223
247
|
query: queryParameters,
|
|
224
248
|
}, initOverrides)];
|
|
225
|
-
case
|
|
226
|
-
response =
|
|
249
|
+
case 5:
|
|
250
|
+
response = _c.sent();
|
|
227
251
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AirwallexBankAccountDetailsDtoFromJSON)(jsonValue); })];
|
|
228
252
|
}
|
|
229
253
|
});
|
|
230
254
|
});
|
|
231
255
|
};
|
|
232
256
|
/**
|
|
233
|
-
* Returns bank account details to use for microdeposit verification.
|
|
257
|
+
* Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
234
258
|
* Get microdeposit bank account details
|
|
235
259
|
*/
|
|
236
260
|
BankAccountsApi.prototype.getBankAccountToUseForMicrodeposit = function (requestParameters, initOverrides) {
|
|
@@ -248,44 +272,52 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
248
272
|
});
|
|
249
273
|
};
|
|
250
274
|
/**
|
|
251
|
-
* Returns all bank accounts configured for the current seller account.
|
|
275
|
+
* Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
252
276
|
* List bank accounts
|
|
253
277
|
*/
|
|
254
278
|
BankAccountsApi.prototype.listBankAccountsRaw = function (requestParameters, initOverrides) {
|
|
255
279
|
return __awaiter(this, void 0, void 0, function () {
|
|
256
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
257
|
-
return __generator(this, function (
|
|
258
|
-
switch (
|
|
280
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
281
|
+
return __generator(this, function (_c) {
|
|
282
|
+
switch (_c.label) {
|
|
259
283
|
case 0:
|
|
260
284
|
if (requestParameters['accountId'] == null) {
|
|
261
285
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling listBankAccounts().');
|
|
262
286
|
}
|
|
263
287
|
queryParameters = {};
|
|
264
288
|
headerParameters = {};
|
|
265
|
-
if (!(this.configuration && this.configuration.
|
|
289
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
290
|
+
_a = headerParameters;
|
|
291
|
+
_b = "apikey";
|
|
292
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
293
|
+
case 1:
|
|
294
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
295
|
+
_c.label = 2;
|
|
296
|
+
case 2:
|
|
297
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
266
298
|
token = this.configuration.accessToken;
|
|
267
299
|
return [4 /*yield*/, token("bearer", [])];
|
|
268
|
-
case
|
|
269
|
-
tokenString =
|
|
300
|
+
case 3:
|
|
301
|
+
tokenString = _c.sent();
|
|
270
302
|
if (tokenString) {
|
|
271
303
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
272
304
|
}
|
|
273
|
-
|
|
274
|
-
case
|
|
305
|
+
_c.label = 4;
|
|
306
|
+
case 4: return [4 /*yield*/, this.request({
|
|
275
307
|
path: "/private/accounts/{accountId}/bank-accounts".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
276
308
|
method: 'GET',
|
|
277
309
|
headers: headerParameters,
|
|
278
310
|
query: queryParameters,
|
|
279
311
|
}, initOverrides)];
|
|
280
|
-
case
|
|
281
|
-
response =
|
|
312
|
+
case 5:
|
|
313
|
+
response = _c.sent();
|
|
282
314
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountBankAccountDtoFromJSON); })];
|
|
283
315
|
}
|
|
284
316
|
});
|
|
285
317
|
});
|
|
286
318
|
};
|
|
287
319
|
/**
|
|
288
|
-
* Returns all bank accounts configured for the current seller account.
|
|
320
|
+
* Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
289
321
|
* List bank accounts
|
|
290
322
|
*/
|
|
291
323
|
BankAccountsApi.prototype.listBankAccounts = function (requestParameters, initOverrides) {
|
|
@@ -303,14 +335,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
303
335
|
});
|
|
304
336
|
};
|
|
305
337
|
/**
|
|
306
|
-
* Sets the specified bank account as the primary payout destination.
|
|
338
|
+
* Sets the specified bank account as the primary payout destination. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
307
339
|
* Set primary bank account
|
|
308
340
|
*/
|
|
309
341
|
BankAccountsApi.prototype.makeBankAccountPrimaryRaw = function (requestParameters, initOverrides) {
|
|
310
342
|
return __awaiter(this, void 0, void 0, function () {
|
|
311
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
312
|
-
return __generator(this, function (
|
|
313
|
-
switch (
|
|
343
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
344
|
+
return __generator(this, function (_c) {
|
|
345
|
+
switch (_c.label) {
|
|
314
346
|
case 0:
|
|
315
347
|
if (requestParameters['accountId'] == null) {
|
|
316
348
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling makeBankAccountPrimary().');
|
|
@@ -320,30 +352,38 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
320
352
|
}
|
|
321
353
|
queryParameters = {};
|
|
322
354
|
headerParameters = {};
|
|
323
|
-
if (!(this.configuration && this.configuration.
|
|
355
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
356
|
+
_a = headerParameters;
|
|
357
|
+
_b = "apikey";
|
|
358
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
359
|
+
case 1:
|
|
360
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
361
|
+
_c.label = 2;
|
|
362
|
+
case 2:
|
|
363
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
324
364
|
token = this.configuration.accessToken;
|
|
325
365
|
return [4 /*yield*/, token("bearer", [])];
|
|
326
|
-
case
|
|
327
|
-
tokenString =
|
|
366
|
+
case 3:
|
|
367
|
+
tokenString = _c.sent();
|
|
328
368
|
if (tokenString) {
|
|
329
369
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
330
370
|
}
|
|
331
|
-
|
|
332
|
-
case
|
|
371
|
+
_c.label = 4;
|
|
372
|
+
case 4: return [4 /*yield*/, this.request({
|
|
333
373
|
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/make-primary".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
334
374
|
method: 'POST',
|
|
335
375
|
headers: headerParameters,
|
|
336
376
|
query: queryParameters,
|
|
337
377
|
}, initOverrides)];
|
|
338
|
-
case
|
|
339
|
-
response =
|
|
378
|
+
case 5:
|
|
379
|
+
response = _c.sent();
|
|
340
380
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
341
381
|
}
|
|
342
382
|
});
|
|
343
383
|
});
|
|
344
384
|
};
|
|
345
385
|
/**
|
|
346
|
-
* Sets the specified bank account as the primary payout destination.
|
|
386
|
+
* Sets the specified bank account as the primary payout destination. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
347
387
|
* Set primary bank account
|
|
348
388
|
*/
|
|
349
389
|
BankAccountsApi.prototype.makeBankAccountPrimary = function (requestParameters, initOverrides) {
|
|
@@ -20,32 +20,32 @@ export interface ChallengesApiCollectChallengeRewardRequest {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class ChallengesApi extends runtime.BaseAPI {
|
|
22
22
|
/**
|
|
23
|
-
* Collects the reward points for a completed challenge progress entry.
|
|
23
|
+
* Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
24
24
|
* Collect challenge reward
|
|
25
25
|
*/
|
|
26
26
|
collectChallengeRewardRaw(requestParameters: ChallengesApiCollectChallengeRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
27
27
|
/**
|
|
28
|
-
* Collects the reward points for a completed challenge progress entry.
|
|
28
|
+
* Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
29
29
|
* Collect challenge reward
|
|
30
30
|
*/
|
|
31
31
|
collectChallengeReward(requestParameters: ChallengesApiCollectChallengeRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
32
32
|
/**
|
|
33
|
-
* Returns the list of challenge reward usages for the current seller account.
|
|
33
|
+
* Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
34
34
|
* Get challenge reward usages
|
|
35
35
|
*/
|
|
36
36
|
getAccountChallengeRewardUsagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAccountChallengeRewardUsagesListDto>>;
|
|
37
37
|
/**
|
|
38
|
-
* Returns the list of challenge reward usages for the current seller account.
|
|
38
|
+
* Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
39
39
|
* Get challenge reward usages
|
|
40
40
|
*/
|
|
41
41
|
getAccountChallengeRewardUsages(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAccountChallengeRewardUsagesListDto>;
|
|
42
42
|
/**
|
|
43
|
-
* Lists active challenges for the seller account.
|
|
43
|
+
* Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
44
44
|
* Get seller challenges
|
|
45
45
|
*/
|
|
46
46
|
getChallengesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSellerChallengesListDto>>;
|
|
47
47
|
/**
|
|
48
|
-
* Lists active challenges for the seller account.
|
|
48
|
+
* Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
49
49
|
* Get seller challenges
|
|
50
50
|
*/
|
|
51
51
|
getChallenges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSellerChallengesListDto>;
|
|
@@ -76,14 +76,14 @@ var ChallengesApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Collects the reward points for a completed challenge progress entry.
|
|
79
|
+
* Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
80
|
* Collect challenge reward
|
|
81
81
|
*/
|
|
82
82
|
ChallengesApi.prototype.collectChallengeRewardRaw = function (requestParameters, initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
if (requestParameters['challengeId'] == null) {
|
|
89
89
|
throw new runtime.RequiredError('challengeId', 'Required parameter "challengeId" was null or undefined when calling collectChallengeReward().');
|
|
@@ -93,30 +93,38 @@ var ChallengesApi = /** @class */ (function (_super) {
|
|
|
93
93
|
}
|
|
94
94
|
queryParameters = {};
|
|
95
95
|
headerParameters = {};
|
|
96
|
-
if (!(this.configuration && this.configuration.
|
|
96
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
97
|
+
_a = headerParameters;
|
|
98
|
+
_b = "apikey";
|
|
99
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
100
|
+
case 1:
|
|
101
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
102
|
+
_c.label = 2;
|
|
103
|
+
case 2:
|
|
104
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
97
105
|
token = this.configuration.accessToken;
|
|
98
106
|
return [4 /*yield*/, token("bearer", [])];
|
|
99
|
-
case
|
|
100
|
-
tokenString =
|
|
107
|
+
case 3:
|
|
108
|
+
tokenString = _c.sent();
|
|
101
109
|
if (tokenString) {
|
|
102
110
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
103
111
|
}
|
|
104
|
-
|
|
105
|
-
case
|
|
112
|
+
_c.label = 4;
|
|
113
|
+
case 4: return [4 /*yield*/, this.request({
|
|
106
114
|
path: "/private/challenges/{challengeId}/progress/{progressId}/collect".replace("{".concat("challengeId", "}"), encodeURIComponent(String(requestParameters['challengeId']))).replace("{".concat("progressId", "}"), encodeURIComponent(String(requestParameters['progressId']))),
|
|
107
115
|
method: 'POST',
|
|
108
116
|
headers: headerParameters,
|
|
109
117
|
query: queryParameters,
|
|
110
118
|
}, initOverrides)];
|
|
111
|
-
case
|
|
112
|
-
response =
|
|
119
|
+
case 5:
|
|
120
|
+
response = _c.sent();
|
|
113
121
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
114
122
|
}
|
|
115
123
|
});
|
|
116
124
|
});
|
|
117
125
|
};
|
|
118
126
|
/**
|
|
119
|
-
* Collects the reward points for a completed challenge progress entry.
|
|
127
|
+
* Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
120
128
|
* Collect challenge reward
|
|
121
129
|
*/
|
|
122
130
|
ChallengesApi.prototype.collectChallengeReward = function (requestParameters, initOverrides) {
|
|
@@ -132,41 +140,49 @@ var ChallengesApi = /** @class */ (function (_super) {
|
|
|
132
140
|
});
|
|
133
141
|
};
|
|
134
142
|
/**
|
|
135
|
-
* Returns the list of challenge reward usages for the current seller account.
|
|
143
|
+
* Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
136
144
|
* Get challenge reward usages
|
|
137
145
|
*/
|
|
138
146
|
ChallengesApi.prototype.getAccountChallengeRewardUsagesRaw = function (initOverrides) {
|
|
139
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
141
|
-
return __generator(this, function (
|
|
142
|
-
switch (
|
|
148
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
149
|
+
return __generator(this, function (_c) {
|
|
150
|
+
switch (_c.label) {
|
|
143
151
|
case 0:
|
|
144
152
|
queryParameters = {};
|
|
145
153
|
headerParameters = {};
|
|
146
|
-
if (!(this.configuration && this.configuration.
|
|
154
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
155
|
+
_a = headerParameters;
|
|
156
|
+
_b = "apikey";
|
|
157
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
158
|
+
case 1:
|
|
159
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
160
|
+
_c.label = 2;
|
|
161
|
+
case 2:
|
|
162
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
147
163
|
token = this.configuration.accessToken;
|
|
148
164
|
return [4 /*yield*/, token("bearer", [])];
|
|
149
|
-
case
|
|
150
|
-
tokenString =
|
|
165
|
+
case 3:
|
|
166
|
+
tokenString = _c.sent();
|
|
151
167
|
if (tokenString) {
|
|
152
168
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
153
169
|
}
|
|
154
|
-
|
|
155
|
-
case
|
|
170
|
+
_c.label = 4;
|
|
171
|
+
case 4: return [4 /*yield*/, this.request({
|
|
156
172
|
path: "/private/challenges/reward-usages",
|
|
157
173
|
method: 'GET',
|
|
158
174
|
headers: headerParameters,
|
|
159
175
|
query: queryParameters,
|
|
160
176
|
}, initOverrides)];
|
|
161
|
-
case
|
|
162
|
-
response =
|
|
177
|
+
case 5:
|
|
178
|
+
response = _c.sent();
|
|
163
179
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAccountChallengeRewardUsagesListDtoFromJSON)(jsonValue); })];
|
|
164
180
|
}
|
|
165
181
|
});
|
|
166
182
|
});
|
|
167
183
|
};
|
|
168
184
|
/**
|
|
169
|
-
* Returns the list of challenge reward usages for the current seller account.
|
|
185
|
+
* Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
170
186
|
* Get challenge reward usages
|
|
171
187
|
*/
|
|
172
188
|
ChallengesApi.prototype.getAccountChallengeRewardUsages = function (initOverrides) {
|
|
@@ -184,41 +200,49 @@ var ChallengesApi = /** @class */ (function (_super) {
|
|
|
184
200
|
});
|
|
185
201
|
};
|
|
186
202
|
/**
|
|
187
|
-
* Lists active challenges for the seller account.
|
|
203
|
+
* Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
188
204
|
* Get seller challenges
|
|
189
205
|
*/
|
|
190
206
|
ChallengesApi.prototype.getChallengesRaw = function (initOverrides) {
|
|
191
207
|
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
193
|
-
return __generator(this, function (
|
|
194
|
-
switch (
|
|
208
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
209
|
+
return __generator(this, function (_c) {
|
|
210
|
+
switch (_c.label) {
|
|
195
211
|
case 0:
|
|
196
212
|
queryParameters = {};
|
|
197
213
|
headerParameters = {};
|
|
198
|
-
if (!(this.configuration && this.configuration.
|
|
214
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
215
|
+
_a = headerParameters;
|
|
216
|
+
_b = "apikey";
|
|
217
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
218
|
+
case 1:
|
|
219
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
220
|
+
_c.label = 2;
|
|
221
|
+
case 2:
|
|
222
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
199
223
|
token = this.configuration.accessToken;
|
|
200
224
|
return [4 /*yield*/, token("bearer", [])];
|
|
201
|
-
case
|
|
202
|
-
tokenString =
|
|
225
|
+
case 3:
|
|
226
|
+
tokenString = _c.sent();
|
|
203
227
|
if (tokenString) {
|
|
204
228
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
205
229
|
}
|
|
206
|
-
|
|
207
|
-
case
|
|
230
|
+
_c.label = 4;
|
|
231
|
+
case 4: return [4 /*yield*/, this.request({
|
|
208
232
|
path: "/private/challenges",
|
|
209
233
|
method: 'GET',
|
|
210
234
|
headers: headerParameters,
|
|
211
235
|
query: queryParameters,
|
|
212
236
|
}, initOverrides)];
|
|
213
|
-
case
|
|
214
|
-
response =
|
|
237
|
+
case 5:
|
|
238
|
+
response = _c.sent();
|
|
215
239
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetSellerChallengesListDtoFromJSON)(jsonValue); })];
|
|
216
240
|
}
|
|
217
241
|
});
|
|
218
242
|
});
|
|
219
243
|
};
|
|
220
244
|
/**
|
|
221
|
-
* Lists active challenges for the seller account.
|
|
245
|
+
* Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
|
|
222
246
|
* Get seller challenges
|
|
223
247
|
*/
|
|
224
248
|
ChallengesApi.prototype.getChallenges = function (initOverrides) {
|
|
@@ -16,12 +16,12 @@ import type { DomainTransferTldInformationDto } from '../models/index';
|
|
|
16
16
|
*/
|
|
17
17
|
export declare class DomainTransfersApi extends runtime.BaseAPI {
|
|
18
18
|
/**
|
|
19
|
-
* Returns TLD-specific transfer requirements and information for the current seller account.
|
|
19
|
+
* Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
20
20
|
* Get domain transfer TLD information
|
|
21
21
|
*/
|
|
22
22
|
getDomainTransferTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferTldInformationDto>>;
|
|
23
23
|
/**
|
|
24
|
-
* Returns TLD-specific transfer requirements and information for the current seller account.
|
|
24
|
+
* Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
25
25
|
* Get domain transfer TLD information
|
|
26
26
|
*/
|
|
27
27
|
getDomainTransferTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferTldInformationDto>;
|
|
@@ -76,41 +76,49 @@ var DomainTransfersApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Returns TLD-specific transfer requirements and information for the current seller account.
|
|
79
|
+
* Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
80
80
|
* Get domain transfer TLD information
|
|
81
81
|
*/
|
|
82
82
|
DomainTransfersApi.prototype.getDomainTransferTldsRaw = function (initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, 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: return [4 /*yield*/, this.request({
|
|
100
108
|
path: "/private/domain-transfers/tlds",
|
|
101
109
|
method: 'GET',
|
|
102
110
|
headers: headerParameters,
|
|
103
111
|
query: queryParameters,
|
|
104
112
|
}, initOverrides)];
|
|
105
|
-
case
|
|
106
|
-
response =
|
|
113
|
+
case 5:
|
|
114
|
+
response = _c.sent();
|
|
107
115
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTransferTldInformationDtoFromJSON)(jsonValue); })];
|
|
108
116
|
}
|
|
109
117
|
});
|
|
110
118
|
});
|
|
111
119
|
};
|
|
112
120
|
/**
|
|
113
|
-
* Returns TLD-specific transfer requirements and information for the current seller account.
|
|
121
|
+
* Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
114
122
|
* Get domain transfer TLD information
|
|
115
123
|
*/
|
|
116
124
|
DomainTransfersApi.prototype.getDomainTransferTlds = function (initOverrides) {
|