@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
@@ -49,12 +49,12 @@ export declare class MarketApi extends runtime.BaseAPI {
49
49
  */
50
50
  listRecentSales(requestParameters?: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>>;
51
51
  /**
52
- * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
52
+ * Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
53
53
  * List showcase domains
54
54
  */
55
55
  listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>>;
56
56
  /**
57
- * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
57
+ * Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
58
58
  * List showcase domains
59
59
  */
60
60
  listShowcaseDomains(requestParameters?: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>>;
@@ -184,7 +184,7 @@ var MarketApi = /** @class */ (function (_super) {
184
184
  });
185
185
  };
186
186
  /**
187
- * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
187
+ * Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
188
188
  * List showcase domains
189
189
  */
190
190
  MarketApi.prototype.listShowcaseDomainsRaw = function (requestParameters, initOverrides) {
@@ -219,7 +219,7 @@ var MarketApi = /** @class */ (function (_super) {
219
219
  });
220
220
  };
221
221
  /**
222
- * Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
222
+ * Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
223
223
  * List showcase domains
224
224
  */
225
225
  MarketApi.prototype.listShowcaseDomains = function () {
@@ -36,42 +36,42 @@ export interface NotificationsApiListNotificationsRequest {
36
36
  */
37
37
  export declare class NotificationsApi extends runtime.BaseAPI {
38
38
  /**
39
- * Marks multiple seller notifications as read or unread based on the readStatus parameter.
39
+ * Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
40
40
  * Bulk mark notifications as read or unread
41
41
  */
42
42
  bulkMarkNotificationsAsReadRaw(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
43
43
  /**
44
- * Marks multiple seller notifications as read or unread based on the readStatus parameter.
44
+ * Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
45
45
  * Bulk mark notifications as read or unread
46
46
  */
47
47
  bulkMarkNotificationsAsRead(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
48
48
  /**
49
- * Downloads a file attachment from a seller notification.
49
+ * Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
50
50
  * Download notification attachment
51
51
  */
52
52
  downloadNotificationAttachmentRaw(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
53
53
  /**
54
- * Downloads a file attachment from a seller notification.
54
+ * Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
55
55
  * Download notification attachment
56
56
  */
57
57
  downloadNotificationAttachment(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
58
58
  /**
59
- * Returns notification information for the seller user.
59
+ * Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
60
60
  * Get notification details
61
61
  */
62
62
  getNotificationByIdRaw(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationDto>>;
63
63
  /**
64
- * Returns notification information for the seller user.
64
+ * Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
65
65
  * Get notification details
66
66
  */
67
67
  getNotificationById(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationDto>;
68
68
  /**
69
- * Lists notifications for the seller user.
69
+ * Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
70
70
  * List seller notifications
71
71
  */
72
72
  listNotificationsRaw(requestParameters: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListNotifications200Response>>;
73
73
  /**
74
- * Lists notifications for the seller user.
74
+ * Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
75
75
  * List seller notifications
76
76
  */
77
77
  listNotifications(requestParameters?: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListNotifications200Response>;
@@ -76,14 +76,14 @@ var NotificationsApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Marks multiple seller notifications as read or unread based on the readStatus parameter.
79
+ * Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
80
80
  * Bulk mark notifications as read or unread
81
81
  */
82
82
  NotificationsApi.prototype.bulkMarkNotificationsAsReadRaw = 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
  if (requestParameters['bulkMarkNotificationsAsReadInputDto'] == null) {
89
89
  throw new runtime.RequiredError('bulkMarkNotificationsAsReadInputDto', 'Required parameter "bulkMarkNotificationsAsReadInputDto" was null or undefined when calling bulkMarkNotificationsAsRead().');
@@ -91,31 +91,39 @@ var NotificationsApi = /** @class */ (function (_super) {
91
91
  queryParameters = {};
92
92
  headerParameters = {};
93
93
  headerParameters['Content-Type'] = 'application/json';
94
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
94
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
95
+ _a = headerParameters;
96
+ _b = "apikey";
97
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
98
+ case 1:
99
+ _a[_b] = _c.sent(); // api_key authentication
100
+ _c.label = 2;
101
+ case 2:
102
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
95
103
  token = this.configuration.accessToken;
96
104
  return [4 /*yield*/, token("bearer", [])];
97
- case 1:
98
- tokenString = _a.sent();
105
+ case 3:
106
+ tokenString = _c.sent();
99
107
  if (tokenString) {
100
108
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
109
  }
102
- _a.label = 2;
103
- case 2: return [4 /*yield*/, this.request({
110
+ _c.label = 4;
111
+ case 4: return [4 /*yield*/, this.request({
104
112
  path: "/private/notifications/bulk-mark-as-read",
105
113
  method: 'PATCH',
106
114
  headers: headerParameters,
107
115
  query: queryParameters,
108
116
  body: (0, index_1.BulkMarkNotificationsAsReadInputDtoToJSON)(requestParameters['bulkMarkNotificationsAsReadInputDto']),
109
117
  }, initOverrides)];
110
- case 3:
111
- response = _a.sent();
118
+ case 5:
119
+ response = _c.sent();
112
120
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
113
121
  }
114
122
  });
115
123
  });
116
124
  };
117
125
  /**
118
- * Marks multiple seller notifications as read or unread based on the readStatus parameter.
126
+ * Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
119
127
  * Bulk mark notifications as read or unread
120
128
  */
121
129
  NotificationsApi.prototype.bulkMarkNotificationsAsRead = function (requestParameters, initOverrides) {
@@ -131,14 +139,14 @@ var NotificationsApi = /** @class */ (function (_super) {
131
139
  });
132
140
  };
133
141
  /**
134
- * Downloads a file attachment from a seller notification.
142
+ * Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
135
143
  * Download notification attachment
136
144
  */
137
145
  NotificationsApi.prototype.downloadNotificationAttachmentRaw = function (requestParameters, initOverrides) {
138
146
  return __awaiter(this, void 0, void 0, function () {
139
- var queryParameters, headerParameters, token, tokenString, response;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
147
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
148
+ return __generator(this, function (_c) {
149
+ switch (_c.label) {
142
150
  case 0:
143
151
  if (requestParameters['notificationId'] == null) {
144
152
  throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling downloadNotificationAttachment().');
@@ -148,30 +156,38 @@ var NotificationsApi = /** @class */ (function (_super) {
148
156
  }
149
157
  queryParameters = {};
150
158
  headerParameters = {};
151
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
159
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
160
+ _a = headerParameters;
161
+ _b = "apikey";
162
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
163
+ case 1:
164
+ _a[_b] = _c.sent(); // api_key authentication
165
+ _c.label = 2;
166
+ case 2:
167
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
152
168
  token = this.configuration.accessToken;
153
169
  return [4 /*yield*/, token("bearer", [])];
154
- case 1:
155
- tokenString = _a.sent();
170
+ case 3:
171
+ tokenString = _c.sent();
156
172
  if (tokenString) {
157
173
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
158
174
  }
159
- _a.label = 2;
160
- case 2: return [4 /*yield*/, this.request({
175
+ _c.label = 4;
176
+ case 4: return [4 /*yield*/, this.request({
161
177
  path: "/private/notifications/{notificationId}/attachments/{attachmentId}/download".replace("{".concat("notificationId", "}"), encodeURIComponent(String(requestParameters['notificationId']))).replace("{".concat("attachmentId", "}"), encodeURIComponent(String(requestParameters['attachmentId']))),
162
178
  method: 'GET',
163
179
  headers: headerParameters,
164
180
  query: queryParameters,
165
181
  }, initOverrides)];
166
- case 3:
167
- response = _a.sent();
182
+ case 5:
183
+ response = _c.sent();
168
184
  return [2 /*return*/, new runtime.BlobApiResponse(response)];
169
185
  }
170
186
  });
171
187
  });
172
188
  };
173
189
  /**
174
- * Downloads a file attachment from a seller notification.
190
+ * Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
175
191
  * Download notification attachment
176
192
  */
177
193
  NotificationsApi.prototype.downloadNotificationAttachment = function (requestParameters, initOverrides) {
@@ -189,44 +205,52 @@ var NotificationsApi = /** @class */ (function (_super) {
189
205
  });
190
206
  };
191
207
  /**
192
- * Returns notification information for the seller user.
208
+ * Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
193
209
  * Get notification details
194
210
  */
195
211
  NotificationsApi.prototype.getNotificationByIdRaw = function (requestParameters, initOverrides) {
196
212
  return __awaiter(this, void 0, void 0, function () {
197
- var queryParameters, headerParameters, token, tokenString, response;
198
- return __generator(this, function (_a) {
199
- switch (_a.label) {
213
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
214
+ return __generator(this, function (_c) {
215
+ switch (_c.label) {
200
216
  case 0:
201
217
  if (requestParameters['notificationId'] == null) {
202
218
  throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling getNotificationById().');
203
219
  }
204
220
  queryParameters = {};
205
221
  headerParameters = {};
206
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
222
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
223
+ _a = headerParameters;
224
+ _b = "apikey";
225
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
226
+ case 1:
227
+ _a[_b] = _c.sent(); // api_key authentication
228
+ _c.label = 2;
229
+ case 2:
230
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
207
231
  token = this.configuration.accessToken;
208
232
  return [4 /*yield*/, token("bearer", [])];
209
- case 1:
210
- tokenString = _a.sent();
233
+ case 3:
234
+ tokenString = _c.sent();
211
235
  if (tokenString) {
212
236
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
213
237
  }
214
- _a.label = 2;
215
- case 2: return [4 /*yield*/, this.request({
238
+ _c.label = 4;
239
+ case 4: return [4 /*yield*/, this.request({
216
240
  path: "/private/notifications/{notificationId}".replace("{".concat("notificationId", "}"), encodeURIComponent(String(requestParameters['notificationId']))),
217
241
  method: 'GET',
218
242
  headers: headerParameters,
219
243
  query: queryParameters,
220
244
  }, initOverrides)];
221
- case 3:
222
- response = _a.sent();
245
+ case 5:
246
+ response = _c.sent();
223
247
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserNotificationDtoFromJSON)(jsonValue); })];
224
248
  }
225
249
  });
226
250
  });
227
251
  };
228
252
  /**
229
- * Returns notification information for the seller user.
253
+ * Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
230
254
  * Get notification details
231
255
  */
232
256
  NotificationsApi.prototype.getNotificationById = function (requestParameters, initOverrides) {
@@ -244,14 +268,14 @@ var NotificationsApi = /** @class */ (function (_super) {
244
268
  });
245
269
  };
246
270
  /**
247
- * Lists notifications for the seller user.
271
+ * Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
248
272
  * List seller notifications
249
273
  */
250
274
  NotificationsApi.prototype.listNotificationsRaw = function (requestParameters, initOverrides) {
251
275
  return __awaiter(this, void 0, void 0, function () {
252
- var queryParameters, headerParameters, token, tokenString, response;
253
- return __generator(this, function (_a) {
254
- switch (_a.label) {
276
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
277
+ return __generator(this, function (_c) {
278
+ switch (_c.label) {
255
279
  case 0:
256
280
  queryParameters = {};
257
281
  if (requestParameters['filter'] != null) {
@@ -273,30 +297,38 @@ var NotificationsApi = /** @class */ (function (_super) {
273
297
  queryParameters['filter[type]'] = requestParameters['filterType'];
274
298
  }
275
299
  headerParameters = {};
276
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
300
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
301
+ _a = headerParameters;
302
+ _b = "apikey";
303
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
304
+ case 1:
305
+ _a[_b] = _c.sent(); // api_key authentication
306
+ _c.label = 2;
307
+ case 2:
308
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
277
309
  token = this.configuration.accessToken;
278
310
  return [4 /*yield*/, token("bearer", [])];
279
- case 1:
280
- tokenString = _a.sent();
311
+ case 3:
312
+ tokenString = _c.sent();
281
313
  if (tokenString) {
282
314
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
283
315
  }
284
- _a.label = 2;
285
- case 2: return [4 /*yield*/, this.request({
316
+ _c.label = 4;
317
+ case 4: return [4 /*yield*/, this.request({
286
318
  path: "/private/notifications",
287
319
  method: 'GET',
288
320
  headers: headerParameters,
289
321
  query: queryParameters,
290
322
  }, initOverrides)];
291
- case 3:
292
- response = _a.sent();
323
+ case 5:
324
+ response = _c.sent();
293
325
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListNotifications200ResponseFromJSON)(jsonValue); })];
294
326
  }
295
327
  });
296
328
  });
297
329
  };
298
330
  /**
299
- * Lists notifications for the seller user.
331
+ * Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
300
332
  * List seller notifications
301
333
  */
302
334
  NotificationsApi.prototype.listNotifications = function () {
@@ -29,72 +29,72 @@ export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
29
29
  */
30
30
  export declare class StatsApi extends runtime.BaseAPI {
31
31
  /**
32
- * Returns the total pending payout amounts grouped by currency for the seller.
32
+ * 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.
33
33
  * Get pending payouts by currency
34
34
  */
35
35
  getPendingPayoutsByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>>;
36
36
  /**
37
- * Returns the total pending payout amounts grouped by currency for the seller.
37
+ * 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.
38
38
  * Get pending payouts by currency
39
39
  */
40
40
  getPendingPayoutsByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>;
41
41
  /**
42
- * Returns remaining versus total lease-to-own income grouped by currency for the seller.
42
+ * 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.
43
43
  * Get lease-to-own income comparison
44
44
  */
45
45
  getRemainingVsTotalLeaseToOwnByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>>;
46
46
  /**
47
- * Returns remaining versus total lease-to-own income grouped by currency for the seller.
47
+ * 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.
48
48
  * Get lease-to-own income comparison
49
49
  */
50
50
  getRemainingVsTotalLeaseToOwnByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>;
51
51
  /**
52
- * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency.
52
+ * 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.
53
53
  * Get sales by TLD
54
54
  */
55
55
  getSalesByTldRaw(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>>;
56
56
  /**
57
- * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency.
57
+ * 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.
58
58
  * Get sales by TLD
59
59
  */
60
60
  getSalesByTld(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>>;
61
61
  /**
62
- * Returns the number of sales for the current seller account within the specified date range.
62
+ * 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.
63
63
  * Get sales count stats
64
64
  */
65
65
  getSalesCountRaw(requestParameters: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesCountStatsItemDto>>>;
66
66
  /**
67
- * Returns the number of sales for the current seller account within the specified date range.
67
+ * 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.
68
68
  * Get sales count stats
69
69
  */
70
70
  getSalesCount(requestParameters?: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
71
71
  /**
72
- * Returns total earnings grouped by currency for the seller, optionally filtered by date range.
72
+ * 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.
73
73
  * Get total earnings by currency
74
74
  */
75
75
  getTotalEarningsByCurrencyRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyStatsItemDto>>>;
76
76
  /**
77
- * Returns total earnings grouped by currency for the seller, optionally filtered by date range.
77
+ * 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.
78
78
  * Get total earnings by currency
79
79
  */
80
80
  getTotalEarningsByCurrency(requestParameters?: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyStatsItemDto>>;
81
81
  /**
82
- * Returns total earnings over time grouped by currency for the seller within the specified date range.
82
+ * 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.
83
83
  * Get earnings over time by currency
84
84
  */
85
85
  getTotalEarningsByCurrencyOverTimeRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>>;
86
86
  /**
87
- * Returns total earnings over time grouped by currency for the seller within the specified date range.
87
+ * 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.
88
88
  * Get earnings over time by currency
89
89
  */
90
90
  getTotalEarningsByCurrencyOverTime(requestParameters?: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>;
91
91
  /**
92
- * Returns the total monthly rent income grouped by currency for the seller.
92
+ * 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.
93
93
  * Get monthly rent income by currency
94
94
  */
95
95
  getTotalMonthlyRentIncomeByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto>>>;
96
96
  /**
97
- * Returns the total monthly rent income grouped by currency for the seller.
97
+ * 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.
98
98
  * Get monthly rent income by currency
99
99
  */
100
100
  getTotalMonthlyRentIncomeByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto>>;