@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.
Files changed (87) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AdminApi.d.ts +26 -0
  8. package/dist/apis/AdminApi.js +106 -0
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketApi.d.ts +2 -2
  26. package/dist/apis/MarketApi.js +2 -2
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +1 -0
  38. package/dist/apis/index.js +1 -0
  39. package/dist/models/AdminDomainListItemDto.d.ts +6 -0
  40. package/dist/models/AdminDomainListItemDto.js +4 -0
  41. package/dist/models/ApiKeyDto.d.ts +107 -0
  42. package/dist/models/ApiKeyDto.js +114 -0
  43. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  44. package/dist/models/ApiKeyScopeDto.js +98 -0
  45. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  46. package/dist/models/CreateApiKeyInput.js +96 -0
  47. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  48. package/dist/models/CreatedApiKeyDto.js +118 -0
  49. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  50. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  51. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  52. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  53. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  54. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  55. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  56. package/dist/models/UpdateApiKeyInput.js +90 -0
  57. package/dist/models/index.d.ts +5 -0
  58. package/dist/models/index.js +5 -0
  59. package/package.json +1 -1
  60. package/src/apis/APIKeysApi.ts +271 -0
  61. package/src/apis/AccountsApi.ts +108 -36
  62. package/src/apis/AdminApi.ts +92 -0
  63. package/src/apis/AuctionsApi.ts +12 -4
  64. package/src/apis/BankAccountsApi.ts +30 -10
  65. package/src/apis/ChallengesApi.ts +18 -6
  66. package/src/apis/DomainTransfersApi.ts +6 -2
  67. package/src/apis/DomainsApi.ts +132 -44
  68. package/src/apis/EppApi.ts +6 -2
  69. package/src/apis/InvoicesApi.ts +18 -6
  70. package/src/apis/LeadsApi.ts +114 -38
  71. package/src/apis/MarketApi.ts +2 -2
  72. package/src/apis/NotificationsApi.ts +24 -8
  73. package/src/apis/StatsApi.ts +42 -14
  74. package/src/apis/SubscriptionsApi.ts +6 -2
  75. package/src/apis/TasksApi.ts +18 -6
  76. package/src/apis/UsersApi.ts +30 -10
  77. package/src/apis/index.ts +1 -0
  78. package/src/models/AdminDomainListItemDto.ts +9 -0
  79. package/src/models/ApiKeyDto.ts +162 -0
  80. package/src/models/ApiKeyScopeDto.ts +126 -0
  81. package/src/models/CreateApiKeyInput.ts +125 -0
  82. package/src/models/CreatedApiKeyDto.ts +171 -0
  83. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  84. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  85. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  86. package/src/models/UpdateApiKeyInput.ts +115 -0
  87. package/src/models/index.ts +5 -0
@@ -76,41 +76,49 @@ var StatsApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Returns the total pending payout amounts grouped by currency for the seller.
79
+ * Returns the total pending payout amounts grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
80
80
  * Get pending payouts by currency
81
81
  */
82
82
  StatsApi.prototype.getPendingPayoutsByCurrencyRaw = function (initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, token, tokenString, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
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.accessToken)) return [3 /*break*/, 2];
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 1:
94
- tokenString = _a.sent();
101
+ case 3:
102
+ tokenString = _c.sent();
95
103
  if (tokenString) {
96
104
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
97
105
  }
98
- _a.label = 2;
99
- case 2: return [4 /*yield*/, this.request({
106
+ _c.label = 4;
107
+ case 4: return [4 /*yield*/, this.request({
100
108
  path: "/private/stats/pending-payouts-by-currency",
101
109
  method: 'GET',
102
110
  headers: headerParameters,
103
111
  query: queryParameters,
104
112
  }, initOverrides)];
105
- case 3:
106
- response = _a.sent();
113
+ case 5:
114
+ response = _c.sent();
107
115
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerPendingPayoutsByCurrencyStatsItemDtoFromJSON); })];
108
116
  }
109
117
  });
110
118
  });
111
119
  };
112
120
  /**
113
- * Returns the total pending payout amounts grouped by currency for the seller.
121
+ * Returns the total pending payout amounts grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
114
122
  * Get pending payouts by currency
115
123
  */
116
124
  StatsApi.prototype.getPendingPayoutsByCurrency = function (initOverrides) {
@@ -128,41 +136,49 @@ var StatsApi = /** @class */ (function (_super) {
128
136
  });
129
137
  };
130
138
  /**
131
- * Returns remaining versus total lease-to-own income grouped by currency for the seller.
139
+ * Returns remaining versus total lease-to-own income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
132
140
  * Get lease-to-own income comparison
133
141
  */
134
142
  StatsApi.prototype.getRemainingVsTotalLeaseToOwnByCurrencyRaw = function (initOverrides) {
135
143
  return __awaiter(this, void 0, void 0, function () {
136
- var queryParameters, headerParameters, token, tokenString, response;
137
- return __generator(this, function (_a) {
138
- switch (_a.label) {
144
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
145
+ return __generator(this, function (_c) {
146
+ switch (_c.label) {
139
147
  case 0:
140
148
  queryParameters = {};
141
149
  headerParameters = {};
142
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
150
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
151
+ _a = headerParameters;
152
+ _b = "apikey";
153
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
154
+ case 1:
155
+ _a[_b] = _c.sent(); // api_key authentication
156
+ _c.label = 2;
157
+ case 2:
158
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
143
159
  token = this.configuration.accessToken;
144
160
  return [4 /*yield*/, token("bearer", [])];
145
- case 1:
146
- tokenString = _a.sent();
161
+ case 3:
162
+ tokenString = _c.sent();
147
163
  if (tokenString) {
148
164
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
149
165
  }
150
- _a.label = 2;
151
- case 2: return [4 /*yield*/, this.request({
166
+ _c.label = 4;
167
+ case 4: return [4 /*yield*/, this.request({
152
168
  path: "/private/stats/remaining-vs-total-lease-to-own-by-currency",
153
169
  method: 'GET',
154
170
  headers: headerParameters,
155
171
  query: queryParameters,
156
172
  }, initOverrides)];
157
- case 3:
158
- response = _a.sent();
173
+ case 5:
174
+ response = _c.sent();
159
175
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON); })];
160
176
  }
161
177
  });
162
178
  });
163
179
  };
164
180
  /**
165
- * Returns remaining versus total lease-to-own income grouped by currency for the seller.
181
+ * Returns remaining versus total lease-to-own income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
166
182
  * Get lease-to-own income comparison
167
183
  */
168
184
  StatsApi.prototype.getRemainingVsTotalLeaseToOwnByCurrency = function (initOverrides) {
@@ -180,14 +196,14 @@ var StatsApi = /** @class */ (function (_super) {
180
196
  });
181
197
  };
182
198
  /**
183
- * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency.
199
+ * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
184
200
  * Get sales by TLD
185
201
  */
186
202
  StatsApi.prototype.getSalesByTldRaw = function (requestParameters, initOverrides) {
187
203
  return __awaiter(this, void 0, void 0, function () {
188
- var queryParameters, headerParameters, token, tokenString, response;
189
- return __generator(this, function (_a) {
190
- switch (_a.label) {
204
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
205
+ return __generator(this, function (_c) {
206
+ switch (_c.label) {
191
207
  case 0:
192
208
  if (requestParameters['currency'] == null) {
193
209
  throw new runtime.RequiredError('currency', 'Required parameter "currency" was null or undefined when calling getSalesByTld().');
@@ -200,30 +216,38 @@ var StatsApi = /** @class */ (function (_super) {
200
216
  queryParameters['dateRange'] = requestParameters['dateRange'];
201
217
  }
202
218
  headerParameters = {};
203
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
219
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
220
+ _a = headerParameters;
221
+ _b = "apikey";
222
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
223
+ case 1:
224
+ _a[_b] = _c.sent(); // api_key authentication
225
+ _c.label = 2;
226
+ case 2:
227
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
204
228
  token = this.configuration.accessToken;
205
229
  return [4 /*yield*/, token("bearer", [])];
206
- case 1:
207
- tokenString = _a.sent();
230
+ case 3:
231
+ tokenString = _c.sent();
208
232
  if (tokenString) {
209
233
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
210
234
  }
211
- _a.label = 2;
212
- case 2: return [4 /*yield*/, this.request({
235
+ _c.label = 4;
236
+ case 4: return [4 /*yield*/, this.request({
213
237
  path: "/private/stats/sales-by-tld",
214
238
  method: 'GET',
215
239
  headers: headerParameters,
216
240
  query: queryParameters,
217
241
  }, initOverrides)];
218
- case 3:
219
- response = _a.sent();
242
+ case 5:
243
+ response = _c.sent();
220
244
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesByTldStatsItemDtoFromJSON); })];
221
245
  }
222
246
  });
223
247
  });
224
248
  };
225
249
  /**
226
- * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency.
250
+ * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
227
251
  * Get sales by TLD
228
252
  */
229
253
  StatsApi.prototype.getSalesByTld = function (requestParameters, initOverrides) {
@@ -241,44 +265,52 @@ var StatsApi = /** @class */ (function (_super) {
241
265
  });
242
266
  };
243
267
  /**
244
- * Returns the number of sales for the current seller account within the specified date range.
268
+ * Returns the number of sales for the current seller account within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
245
269
  * Get sales count stats
246
270
  */
247
271
  StatsApi.prototype.getSalesCountRaw = function (requestParameters, initOverrides) {
248
272
  return __awaiter(this, void 0, void 0, function () {
249
- var queryParameters, headerParameters, token, tokenString, response;
250
- return __generator(this, function (_a) {
251
- switch (_a.label) {
273
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
274
+ return __generator(this, function (_c) {
275
+ switch (_c.label) {
252
276
  case 0:
253
277
  queryParameters = {};
254
278
  if (requestParameters['dateRange'] != null) {
255
279
  queryParameters['dateRange'] = requestParameters['dateRange'];
256
280
  }
257
281
  headerParameters = {};
258
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
282
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
283
+ _a = headerParameters;
284
+ _b = "apikey";
285
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
286
+ case 1:
287
+ _a[_b] = _c.sent(); // api_key authentication
288
+ _c.label = 2;
289
+ case 2:
290
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
259
291
  token = this.configuration.accessToken;
260
292
  return [4 /*yield*/, token("bearer", [])];
261
- case 1:
262
- tokenString = _a.sent();
293
+ case 3:
294
+ tokenString = _c.sent();
263
295
  if (tokenString) {
264
296
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
265
297
  }
266
- _a.label = 2;
267
- case 2: return [4 /*yield*/, this.request({
298
+ _c.label = 4;
299
+ case 4: return [4 /*yield*/, this.request({
268
300
  path: "/private/stats/sales-count",
269
301
  method: 'GET',
270
302
  headers: headerParameters,
271
303
  query: queryParameters,
272
304
  }, initOverrides)];
273
- case 3:
274
- response = _a.sent();
305
+ case 5:
306
+ response = _c.sent();
275
307
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesCountStatsItemDtoFromJSON); })];
276
308
  }
277
309
  });
278
310
  });
279
311
  };
280
312
  /**
281
- * Returns the number of sales for the current seller account within the specified date range.
313
+ * Returns the number of sales for the current seller account within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
282
314
  * Get sales count stats
283
315
  */
284
316
  StatsApi.prototype.getSalesCount = function () {
@@ -297,44 +329,52 @@ var StatsApi = /** @class */ (function (_super) {
297
329
  });
298
330
  };
299
331
  /**
300
- * Returns total earnings grouped by currency for the seller, optionally filtered by date range.
332
+ * Returns total earnings grouped by currency for the seller, optionally filtered by date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
301
333
  * Get total earnings by currency
302
334
  */
303
335
  StatsApi.prototype.getTotalEarningsByCurrencyRaw = function (requestParameters, initOverrides) {
304
336
  return __awaiter(this, void 0, void 0, function () {
305
- var queryParameters, headerParameters, token, tokenString, response;
306
- return __generator(this, function (_a) {
307
- switch (_a.label) {
337
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
338
+ return __generator(this, function (_c) {
339
+ switch (_c.label) {
308
340
  case 0:
309
341
  queryParameters = {};
310
342
  if (requestParameters['dateRange'] != null) {
311
343
  queryParameters['dateRange'] = requestParameters['dateRange'];
312
344
  }
313
345
  headerParameters = {};
314
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
346
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
347
+ _a = headerParameters;
348
+ _b = "apikey";
349
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
350
+ case 1:
351
+ _a[_b] = _c.sent(); // api_key authentication
352
+ _c.label = 2;
353
+ case 2:
354
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
315
355
  token = this.configuration.accessToken;
316
356
  return [4 /*yield*/, token("bearer", [])];
317
- case 1:
318
- tokenString = _a.sent();
357
+ case 3:
358
+ tokenString = _c.sent();
319
359
  if (tokenString) {
320
360
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
321
361
  }
322
- _a.label = 2;
323
- case 2: return [4 /*yield*/, this.request({
362
+ _c.label = 4;
363
+ case 4: return [4 /*yield*/, this.request({
324
364
  path: "/private/stats/total-earnings-by-currency",
325
365
  method: 'GET',
326
366
  headers: headerParameters,
327
367
  query: queryParameters,
328
368
  }, initOverrides)];
329
- case 3:
330
- response = _a.sent();
369
+ case 5:
370
+ response = _c.sent();
331
371
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalEarningsByCurrencyStatsItemDtoFromJSON); })];
332
372
  }
333
373
  });
334
374
  });
335
375
  };
336
376
  /**
337
- * Returns total earnings grouped by currency for the seller, optionally filtered by date range.
377
+ * Returns total earnings grouped by currency for the seller, optionally filtered by date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
338
378
  * Get total earnings by currency
339
379
  */
340
380
  StatsApi.prototype.getTotalEarningsByCurrency = function () {
@@ -353,44 +393,52 @@ var StatsApi = /** @class */ (function (_super) {
353
393
  });
354
394
  };
355
395
  /**
356
- * Returns total earnings over time grouped by currency for the seller within the specified date range.
396
+ * Returns total earnings over time grouped by currency for the seller within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
357
397
  * Get earnings over time by currency
358
398
  */
359
399
  StatsApi.prototype.getTotalEarningsByCurrencyOverTimeRaw = function (requestParameters, initOverrides) {
360
400
  return __awaiter(this, void 0, void 0, function () {
361
- var queryParameters, headerParameters, token, tokenString, response;
362
- return __generator(this, function (_a) {
363
- switch (_a.label) {
401
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
402
+ return __generator(this, function (_c) {
403
+ switch (_c.label) {
364
404
  case 0:
365
405
  queryParameters = {};
366
406
  if (requestParameters['dateRange'] != null) {
367
407
  queryParameters['dateRange'] = requestParameters['dateRange'];
368
408
  }
369
409
  headerParameters = {};
370
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
410
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
411
+ _a = headerParameters;
412
+ _b = "apikey";
413
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
414
+ case 1:
415
+ _a[_b] = _c.sent(); // api_key authentication
416
+ _c.label = 2;
417
+ case 2:
418
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
371
419
  token = this.configuration.accessToken;
372
420
  return [4 /*yield*/, token("bearer", [])];
373
- case 1:
374
- tokenString = _a.sent();
421
+ case 3:
422
+ tokenString = _c.sent();
375
423
  if (tokenString) {
376
424
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
377
425
  }
378
- _a.label = 2;
379
- case 2: return [4 /*yield*/, this.request({
426
+ _c.label = 4;
427
+ case 4: return [4 /*yield*/, this.request({
380
428
  path: "/private/stats/total-earnings-by-currency-over-time",
381
429
  method: 'GET',
382
430
  headers: headerParameters,
383
431
  query: queryParameters,
384
432
  }, initOverrides)];
385
- case 3:
386
- response = _a.sent();
433
+ case 5:
434
+ response = _c.sent();
387
435
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalEarningsByCurrencyOverTimeStatsItemDtoFromJSON); })];
388
436
  }
389
437
  });
390
438
  });
391
439
  };
392
440
  /**
393
- * Returns total earnings over time grouped by currency for the seller within the specified date range.
441
+ * Returns total earnings over time grouped by currency for the seller within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
394
442
  * Get earnings over time by currency
395
443
  */
396
444
  StatsApi.prototype.getTotalEarningsByCurrencyOverTime = function () {
@@ -409,41 +457,49 @@ var StatsApi = /** @class */ (function (_super) {
409
457
  });
410
458
  };
411
459
  /**
412
- * Returns the total monthly rent income grouped by currency for the seller.
460
+ * Returns the total monthly rent income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
413
461
  * Get monthly rent income by currency
414
462
  */
415
463
  StatsApi.prototype.getTotalMonthlyRentIncomeByCurrencyRaw = function (initOverrides) {
416
464
  return __awaiter(this, void 0, void 0, function () {
417
- var queryParameters, headerParameters, token, tokenString, response;
418
- return __generator(this, function (_a) {
419
- switch (_a.label) {
465
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
466
+ return __generator(this, function (_c) {
467
+ switch (_c.label) {
420
468
  case 0:
421
469
  queryParameters = {};
422
470
  headerParameters = {};
423
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
471
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
472
+ _a = headerParameters;
473
+ _b = "apikey";
474
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
475
+ case 1:
476
+ _a[_b] = _c.sent(); // api_key authentication
477
+ _c.label = 2;
478
+ case 2:
479
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
424
480
  token = this.configuration.accessToken;
425
481
  return [4 /*yield*/, token("bearer", [])];
426
- case 1:
427
- tokenString = _a.sent();
482
+ case 3:
483
+ tokenString = _c.sent();
428
484
  if (tokenString) {
429
485
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
430
486
  }
431
- _a.label = 2;
432
- case 2: return [4 /*yield*/, this.request({
487
+ _c.label = 4;
488
+ case 4: return [4 /*yield*/, this.request({
433
489
  path: "/private/stats/total-monthly-rent-income-by-currency",
434
490
  method: 'GET',
435
491
  headers: headerParameters,
436
492
  query: queryParameters,
437
493
  }, initOverrides)];
438
- case 3:
439
- response = _a.sent();
494
+ case 5:
495
+ response = _c.sent();
440
496
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalRentMonthlyIncomeByCurrencyStatsItemDtoFromJSON); })];
441
497
  }
442
498
  });
443
499
  });
444
500
  };
445
501
  /**
446
- * Returns the total monthly rent income grouped by currency for the seller.
502
+ * Returns the total monthly rent income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
447
503
  * Get monthly rent income by currency
448
504
  */
449
505
  StatsApi.prototype.getTotalMonthlyRentIncomeByCurrency = function (initOverrides) {
@@ -26,12 +26,12 @@ export interface SubscriptionsApiGetAllSubscriptionsRequest {
26
26
  */
27
27
  export declare class SubscriptionsApi extends runtime.BaseAPI {
28
28
  /**
29
- * Lists subscriptions for the seller account.
29
+ * Lists subscriptions for the seller account. **API key scope required:** `SUBSCRIPTIONS_READ`. Requests authenticated with a seller session do not need any scope.
30
30
  * List seller subscriptions
31
31
  */
32
32
  getAllSubscriptionsRaw(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response1>>;
33
33
  /**
34
- * Lists subscriptions for the seller account.
34
+ * Lists subscriptions for the seller account. **API key scope required:** `SUBSCRIPTIONS_READ`. Requests authenticated with a seller session do not need any scope.
35
35
  * List seller subscriptions
36
36
  */
37
37
  getAllSubscriptions(requestParameters?: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response1>;
@@ -76,14 +76,14 @@ var SubscriptionsApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Lists subscriptions for the seller account.
79
+ * Lists subscriptions for the seller account. **API key scope required:** `SUBSCRIPTIONS_READ`. Requests authenticated with a seller session do not need any scope.
80
80
  * List seller subscriptions
81
81
  */
82
82
  SubscriptionsApi.prototype.getAllSubscriptionsRaw = 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 (_a) {
86
- switch (_a.label) {
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
  if (requestParameters['filter'] != null) {
@@ -105,30 +105,38 @@ var SubscriptionsApi = /** @class */ (function (_super) {
105
105
  queryParameters['filter[status]'] = requestParameters['filterStatus'];
106
106
  }
107
107
  headerParameters = {};
108
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
108
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
109
+ _a = headerParameters;
110
+ _b = "apikey";
111
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
112
+ case 1:
113
+ _a[_b] = _c.sent(); // api_key authentication
114
+ _c.label = 2;
115
+ case 2:
116
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
109
117
  token = this.configuration.accessToken;
110
118
  return [4 /*yield*/, token("bearer", [])];
111
- case 1:
112
- tokenString = _a.sent();
119
+ case 3:
120
+ tokenString = _c.sent();
113
121
  if (tokenString) {
114
122
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
115
123
  }
116
- _a.label = 2;
117
- case 2: return [4 /*yield*/, this.request({
124
+ _c.label = 4;
125
+ case 4: return [4 /*yield*/, this.request({
118
126
  path: "/private/subscriptions",
119
127
  method: 'GET',
120
128
  headers: headerParameters,
121
129
  query: queryParameters,
122
130
  }, initOverrides)];
123
- case 3:
124
- response = _a.sent();
131
+ case 5:
132
+ response = _c.sent();
125
133
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllSubscriptions200Response1FromJSON)(jsonValue); })];
126
134
  }
127
135
  });
128
136
  });
129
137
  };
130
138
  /**
131
- * Lists subscriptions for the seller account.
139
+ * Lists subscriptions for the seller account. **API key scope required:** `SUBSCRIPTIONS_READ`. Requests authenticated with a seller session do not need any scope.
132
140
  * List seller subscriptions
133
141
  */
134
142
  SubscriptionsApi.prototype.getAllSubscriptions = function () {
@@ -33,32 +33,32 @@ export interface TasksApiUpdateTaskMuteStatusRequest {
33
33
  */
34
34
  export declare class TasksApi extends runtime.BaseAPI {
35
35
  /**
36
- * Returns task information for the seller.
36
+ * Returns task information for the seller. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
37
37
  * Get task details
38
38
  */
39
39
  getTaskRaw(requestParameters: TasksApiGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDetailsDto>>;
40
40
  /**
41
- * Returns task information for the seller.
41
+ * Returns task information for the seller. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
42
42
  * Get task details
43
43
  */
44
44
  getTask(requestParameters: TasksApiGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDetailsDto>;
45
45
  /**
46
- * Lists tasks for the seller account.
46
+ * Lists tasks for the seller account. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
47
47
  * List seller tasks
48
48
  */
49
49
  listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
50
50
  /**
51
- * Lists tasks for the seller account.
51
+ * Lists tasks for the seller account. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
52
52
  * List seller tasks
53
53
  */
54
54
  list(requestParameters?: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
55
55
  /**
56
- * Mutes or unmutes task notifications for the seller.
56
+ * Mutes or unmutes task notifications for the seller. **API key scope required:** `TASKS_WRITE`. Requests authenticated with a seller session do not need any scope.
57
57
  * Update task mute status
58
58
  */
59
59
  updateTaskMuteStatusRaw(requestParameters: TasksApiUpdateTaskMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
60
  /**
61
- * Mutes or unmutes task notifications for the seller.
61
+ * Mutes or unmutes task notifications for the seller. **API key scope required:** `TASKS_WRITE`. Requests authenticated with a seller session do not need any scope.
62
62
  * Update task mute status
63
63
  */
64
64
  updateTaskMuteStatus(requestParameters: TasksApiUpdateTaskMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;