@randock/nameshift-api-client 0.0.448 → 0.0.450
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 +12 -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 +37 -1
- package/dist/apis/AdminApi.js +122 -1
- 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/MarketplacesApi.d.ts +89 -0
- package/dist/apis/MarketplacesApi.js +332 -0
- 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 +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountMarketplaceDto.d.ts +56 -0
- package/dist/models/AccountMarketplaceDto.js +71 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +18 -0
- package/dist/models/AccountSettingsDto.js +16 -0
- package/dist/models/AccountSettingsInput.d.ts +18 -0
- package/dist/models/AccountSettingsInput.js +14 -0
- package/dist/models/AdminDomainListItemDto.d.ts +19 -0
- package/dist/models/AdminDomainListItemDto.js +17 -1
- package/dist/models/AdminMarketplaceDto.d.ts +86 -0
- package/dist/models/AdminMarketplaceDto.js +91 -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/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +1 -0
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +1 -0
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +1 -0
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +1 -0
- package/dist/models/CreateApiKeyInput.d.ts +83 -0
- package/dist/models/CreateApiKeyInput.js +96 -0
- package/dist/models/CreateOrderInput.d.ts +6 -0
- package/dist/models/CreateOrderInput.js +2 -0
- package/dist/models/CreateSubscriptionInput.d.ts +6 -0
- package/dist/models/CreateSubscriptionInput.js +2 -0
- package/dist/models/CreatedApiKeyDto.d.ts +113 -0
- package/dist/models/CreatedApiKeyDto.js +118 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
- package/dist/models/MarketplaceDto.d.ts +74 -0
- package/dist/models/MarketplaceDto.js +83 -0
- package/dist/models/OrderDto.d.ts +7 -1
- package/dist/models/OrderDto.js +4 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
- package/dist/models/SetAccountMarketplaceInput.js +51 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +1 -0
- package/dist/models/SubscriptionDto.d.ts +7 -1
- package/dist/models/SubscriptionDto.js +4 -0
- package/dist/models/UpdateApiKeyInput.d.ts +77 -0
- package/dist/models/UpdateApiKeyInput.js +90 -0
- package/dist/models/UpdateDomainInput.d.ts +18 -0
- package/dist/models/UpdateDomainInput.js +14 -0
- package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
- package/dist/models/UpdateMarketplaceInput.js +53 -0
- package/dist/models/UpdateOrderInput.d.ts +6 -0
- package/dist/models/UpdateOrderInput.js +2 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
- package/dist/models/UpdateSubscriptionInput.js +2 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -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 +112 -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/MarketplacesApi.ts +240 -0
- 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 +2 -0
- package/src/models/AccountMarketplaceDto.ts +99 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
- package/src/models/AccountSettingsDto.ts +24 -0
- package/src/models/AccountSettingsInput.ts +23 -0
- package/src/models/AdminDomainListItemDto.ts +23 -0
- package/src/models/AdminMarketplaceDto.ts +144 -0
- package/src/models/ApiKeyDto.ts +162 -0
- package/src/models/ApiKeyScopeDto.ts +126 -0
- package/src/models/CommissionDto.ts +1 -0
- package/src/models/CommissionPayloadInput.ts +1 -0
- package/src/models/CommissionReasonDto.ts +1 -0
- package/src/models/CommissionSimulationItemInput.ts +1 -0
- package/src/models/CreateApiKeyInput.ts +125 -0
- package/src/models/CreateOrderInput.ts +8 -0
- package/src/models/CreateSubscriptionInput.ts +8 -0
- package/src/models/CreatedApiKeyDto.ts +171 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
- package/src/models/MarketplaceDto.ts +126 -0
- package/src/models/OrderDto.ts +10 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SetAccountMarketplaceInput.ts +66 -0
- package/src/models/SimulateCommissionInput.ts +1 -0
- package/src/models/SubscriptionDto.ts +10 -1
- package/src/models/UpdateApiKeyInput.ts +115 -0
- package/src/models/UpdateDomainInput.ts +23 -0
- package/src/models/UpdateMarketplaceInput.ts +81 -0
- package/src/models/UpdateOrderInput.ts +8 -0
- package/src/models/UpdateSubscriptionInput.ts +8 -0
- package/src/models/index.ts +10 -0
|
@@ -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 (
|
|
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['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.
|
|
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
|
|
98
|
-
tokenString =
|
|
105
|
+
case 3:
|
|
106
|
+
tokenString = _c.sent();
|
|
99
107
|
if (tokenString) {
|
|
100
108
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
109
|
}
|
|
102
|
-
|
|
103
|
-
case
|
|
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
|
|
111
|
-
response =
|
|
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 (
|
|
141
|
-
switch (
|
|
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.
|
|
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
|
|
155
|
-
tokenString =
|
|
170
|
+
case 3:
|
|
171
|
+
tokenString = _c.sent();
|
|
156
172
|
if (tokenString) {
|
|
157
173
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
158
174
|
}
|
|
159
|
-
|
|
160
|
-
case
|
|
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
|
|
167
|
-
response =
|
|
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 (
|
|
199
|
-
switch (
|
|
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.
|
|
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
|
|
210
|
-
tokenString =
|
|
233
|
+
case 3:
|
|
234
|
+
tokenString = _c.sent();
|
|
211
235
|
if (tokenString) {
|
|
212
236
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
213
237
|
}
|
|
214
|
-
|
|
215
|
-
case
|
|
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
|
|
222
|
-
response =
|
|
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 (
|
|
254
|
-
switch (
|
|
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.
|
|
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
|
|
280
|
-
tokenString =
|
|
311
|
+
case 3:
|
|
312
|
+
tokenString = _c.sent();
|
|
281
313
|
if (tokenString) {
|
|
282
314
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
283
315
|
}
|
|
284
|
-
|
|
285
|
-
case
|
|
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
|
|
292
|
-
response =
|
|
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 () {
|
package/dist/apis/StatsApi.d.ts
CHANGED
|
@@ -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>>;
|