@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
package/dist/apis/StatsApi.js
CHANGED
|
@@ -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 (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
queryParameters = {};
|
|
89
89
|
headerParameters = {};
|
|
90
|
-
if (!(this.configuration && this.configuration.
|
|
90
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
91
|
+
_a = headerParameters;
|
|
92
|
+
_b = "apikey";
|
|
93
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
94
|
+
case 1:
|
|
95
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
96
|
+
_c.label = 2;
|
|
97
|
+
case 2:
|
|
98
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
91
99
|
token = this.configuration.accessToken;
|
|
92
100
|
return [4 /*yield*/, token("bearer", [])];
|
|
93
|
-
case
|
|
94
|
-
tokenString =
|
|
101
|
+
case 3:
|
|
102
|
+
tokenString = _c.sent();
|
|
95
103
|
if (tokenString) {
|
|
96
104
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
105
|
}
|
|
98
|
-
|
|
99
|
-
case
|
|
106
|
+
_c.label = 4;
|
|
107
|
+
case 4: return [4 /*yield*/, this.request({
|
|
100
108
|
path: "/private/stats/pending-payouts-by-currency",
|
|
101
109
|
method: 'GET',
|
|
102
110
|
headers: headerParameters,
|
|
103
111
|
query: queryParameters,
|
|
104
112
|
}, initOverrides)];
|
|
105
|
-
case
|
|
106
|
-
response =
|
|
113
|
+
case 5:
|
|
114
|
+
response = _c.sent();
|
|
107
115
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return 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 (
|
|
138
|
-
switch (
|
|
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.
|
|
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
|
|
146
|
-
tokenString =
|
|
161
|
+
case 3:
|
|
162
|
+
tokenString = _c.sent();
|
|
147
163
|
if (tokenString) {
|
|
148
164
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
149
165
|
}
|
|
150
|
-
|
|
151
|
-
case
|
|
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
|
|
158
|
-
response =
|
|
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 (
|
|
190
|
-
switch (
|
|
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.
|
|
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
|
|
207
|
-
tokenString =
|
|
230
|
+
case 3:
|
|
231
|
+
tokenString = _c.sent();
|
|
208
232
|
if (tokenString) {
|
|
209
233
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
210
234
|
}
|
|
211
|
-
|
|
212
|
-
case
|
|
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
|
|
219
|
-
response =
|
|
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 (
|
|
251
|
-
switch (
|
|
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.
|
|
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
|
|
262
|
-
tokenString =
|
|
293
|
+
case 3:
|
|
294
|
+
tokenString = _c.sent();
|
|
263
295
|
if (tokenString) {
|
|
264
296
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
265
297
|
}
|
|
266
|
-
|
|
267
|
-
case
|
|
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
|
|
274
|
-
response =
|
|
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 (
|
|
307
|
-
switch (
|
|
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.
|
|
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
|
|
318
|
-
tokenString =
|
|
357
|
+
case 3:
|
|
358
|
+
tokenString = _c.sent();
|
|
319
359
|
if (tokenString) {
|
|
320
360
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
321
361
|
}
|
|
322
|
-
|
|
323
|
-
case
|
|
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
|
|
330
|
-
response =
|
|
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 (
|
|
363
|
-
switch (
|
|
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.
|
|
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
|
|
374
|
-
tokenString =
|
|
421
|
+
case 3:
|
|
422
|
+
tokenString = _c.sent();
|
|
375
423
|
if (tokenString) {
|
|
376
424
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
377
425
|
}
|
|
378
|
-
|
|
379
|
-
case
|
|
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
|
|
386
|
-
response =
|
|
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 (
|
|
419
|
-
switch (
|
|
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.
|
|
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
|
|
427
|
-
tokenString =
|
|
482
|
+
case 3:
|
|
483
|
+
tokenString = _c.sent();
|
|
428
484
|
if (tokenString) {
|
|
429
485
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
430
486
|
}
|
|
431
|
-
|
|
432
|
-
case
|
|
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
|
|
439
|
-
response =
|
|
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 (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
queryParameters = {};
|
|
89
89
|
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.
|
|
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
|
|
112
|
-
tokenString =
|
|
119
|
+
case 3:
|
|
120
|
+
tokenString = _c.sent();
|
|
113
121
|
if (tokenString) {
|
|
114
122
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
115
123
|
}
|
|
116
|
-
|
|
117
|
-
case
|
|
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
|
|
124
|
-
response =
|
|
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 () {
|
package/dist/apis/TasksApi.d.ts
CHANGED
|
@@ -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>;
|