@randock/nameshift-api-client 0.0.303 → 0.0.305

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 (36) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +3 -3
  3. package/dist/apis/StatsApi.d.ts +75 -0
  4. package/dist/apis/StatsApi.js +392 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  8. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  9. package/dist/models/SellerPendingPayoutsByCurrencyStatsItemDto.d.ts +38 -0
  10. package/dist/models/SellerPendingPayoutsByCurrencyStatsItemDto.js +55 -0
  11. package/dist/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.d.ts +50 -0
  12. package/dist/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.js +63 -0
  13. package/dist/models/SellerSalesCountStatsItemDto.d.ts +44 -0
  14. package/dist/models/SellerSalesCountStatsItemDto.js +59 -0
  15. package/dist/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.d.ts +50 -0
  16. package/dist/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.js +63 -0
  17. package/dist/models/SellerTotalEarningsByCurrencyStatsItemDto.d.ts +44 -0
  18. package/dist/models/SellerTotalEarningsByCurrencyStatsItemDto.js +59 -0
  19. package/dist/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.d.ts +44 -0
  20. package/dist/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.js +59 -0
  21. package/dist/models/StatsFilterInputDateRange.d.ts +38 -0
  22. package/dist/models/StatsFilterInputDateRange.js +55 -0
  23. package/dist/models/index.d.ts +7 -0
  24. package/dist/models/index.js +7 -0
  25. package/package.json +1 -1
  26. package/src/apis/StatsApi.ts +279 -0
  27. package/src/apis/index.ts +1 -0
  28. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  29. package/src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts +75 -0
  30. package/src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts +93 -0
  31. package/src/models/SellerSalesCountStatsItemDto.ts +84 -0
  32. package/src/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.ts +93 -0
  33. package/src/models/SellerTotalEarningsByCurrencyStatsItemDto.ts +84 -0
  34. package/src/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.ts +84 -0
  35. package/src/models/StatsFilterInputDateRange.ts +75 -0
  36. package/src/models/index.ts +7 -0
@@ -17,6 +17,7 @@ src/apis/LeadsApi.ts
17
17
  src/apis/LeadsPublicApi.ts
18
18
  src/apis/OrdersPublicApi.ts
19
19
  src/apis/SalesPublicApi.ts
20
+ src/apis/StatsApi.ts
20
21
  src/apis/StripePublicApi.ts
21
22
  src/apis/SubscriptionsApi.ts
22
23
  src/apis/SubscriptionsPublicApi.ts
@@ -247,10 +248,16 @@ src/models/SellerDomainTransferListItemDto.ts
247
248
  src/models/SellerInvoiceDomainDto.ts
248
249
  src/models/SellerInvoiceDto.ts
249
250
  src/models/SellerInvoiceSellerAccountDto.ts
251
+ src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts
252
+ src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts
253
+ src/models/SellerSalesCountStatsItemDto.ts
250
254
  src/models/SellerSecurityUserAccountDto.ts
251
255
  src/models/SellerSecurityUserDto.ts
252
256
  src/models/SellerSubscriptionListItemDto.ts
253
257
  src/models/SellerSubscriptionListItemDtoDomainInformation.ts
258
+ src/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.ts
259
+ src/models/SellerTotalEarningsByCurrencyStatsItemDto.ts
260
+ src/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.ts
254
261
  src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts
255
262
  src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel.ts
256
263
  src/models/SeoMetricsDto.ts
@@ -259,6 +266,7 @@ src/models/SetDomainTransferConfirmationInput.ts
259
266
  src/models/SetNewPasswordInput.ts
260
267
  src/models/SetPayoutProviderInput.ts
261
268
  src/models/SortDto.ts
269
+ src/models/StatsFilterInputDateRange.ts
262
270
  src/models/StoreBuyerLocaleInput.ts
263
271
  src/models/StoreUserLocaleInput.ts
264
272
  src/models/SubscriptionBillingPeriodicityDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.303
1
+ ## @randock/nameshift-api-client@0.0.305
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.303 --save
39
+ npm install @randock/nameshift-api-client@0.0.305 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 601223b8bcfb50d2e9d14e759d04aae91e2a2fa98b35ebadb1364cd51d65f00df5ec11b2acc73685af9c4c7ef8ca50db
47
+ 7be38143a61b2cd647ddd83a96830df50fa28469e9fab8b71021ff3e960fa96ef738a9939a86d9d9508053255e950557
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto, SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto } from '../models/index';
14
+ export interface StatsApiGetSalesCountRequest {
15
+ dateRange?: any | null;
16
+ }
17
+ export interface StatsApiGetTotalEarningsByCurrencyRequest {
18
+ dateRange?: any | null;
19
+ }
20
+ export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
21
+ dateRange?: any | null;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class StatsApi extends runtime.BaseAPI {
27
+ /**
28
+ *
29
+ */
30
+ getPendingPayoutsByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>>;
31
+ /**
32
+ *
33
+ */
34
+ getPendingPayoutsByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>;
35
+ /**
36
+ *
37
+ */
38
+ getRemainingVsTotalLeaseToOwnByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>>;
39
+ /**
40
+ *
41
+ */
42
+ getRemainingVsTotalLeaseToOwnByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>;
43
+ /**
44
+ *
45
+ */
46
+ getSalesCountRaw(requestParameters: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesCountStatsItemDto>>>;
47
+ /**
48
+ *
49
+ */
50
+ getSalesCount(requestParameters?: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
51
+ /**
52
+ *
53
+ */
54
+ getTotalEarningsByCurrencyRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyStatsItemDto>>>;
55
+ /**
56
+ *
57
+ */
58
+ getTotalEarningsByCurrency(requestParameters?: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyStatsItemDto>>;
59
+ /**
60
+ *
61
+ */
62
+ getTotalEarningsByCurrencyOverTimeRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>>;
63
+ /**
64
+ *
65
+ */
66
+ getTotalEarningsByCurrencyOverTime(requestParameters?: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>;
67
+ /**
68
+ *
69
+ */
70
+ getTotalMonthlyRentIncomeByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto>>>;
71
+ /**
72
+ *
73
+ */
74
+ getTotalMonthlyRentIncomeByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto>>;
75
+ }
@@ -0,0 +1,392 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.StatsApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var StatsApi = /** @class */ (function (_super) {
74
+ __extends(StatsApi, _super);
75
+ function StatsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ StatsApi.prototype.getPendingPayoutsByCurrencyRaw = function (initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
90
+ token = this.configuration.accessToken;
91
+ return [4 /*yield*/, token("bearer", [])];
92
+ case 1:
93
+ tokenString = _a.sent();
94
+ if (tokenString) {
95
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
96
+ }
97
+ _a.label = 2;
98
+ case 2: return [4 /*yield*/, this.request({
99
+ path: "/private/stats/pending-payouts-by-currency",
100
+ method: 'GET',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ }, initOverrides)];
104
+ case 3:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerPendingPayoutsByCurrencyStatsItemDtoFromJSON); })];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ *
113
+ */
114
+ StatsApi.prototype.getPendingPayoutsByCurrency = function (initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ var response;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.getPendingPayoutsByCurrencyRaw(initOverrides)];
120
+ case 1:
121
+ response = _a.sent();
122
+ return [4 /*yield*/, response.value()];
123
+ case 2: return [2 /*return*/, _a.sent()];
124
+ }
125
+ });
126
+ });
127
+ };
128
+ /**
129
+ *
130
+ */
131
+ StatsApi.prototype.getRemainingVsTotalLeaseToOwnByCurrencyRaw = function (initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function () {
133
+ var queryParameters, headerParameters, token, tokenString, response;
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0:
137
+ queryParameters = {};
138
+ headerParameters = {};
139
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
140
+ token = this.configuration.accessToken;
141
+ return [4 /*yield*/, token("bearer", [])];
142
+ case 1:
143
+ tokenString = _a.sent();
144
+ if (tokenString) {
145
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
146
+ }
147
+ _a.label = 2;
148
+ case 2: return [4 /*yield*/, this.request({
149
+ path: "/private/stats/remaining-vs-total-lease-to-own-by-currency",
150
+ method: 'GET',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides)];
154
+ case 3:
155
+ response = _a.sent();
156
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON); })];
157
+ }
158
+ });
159
+ });
160
+ };
161
+ /**
162
+ *
163
+ */
164
+ StatsApi.prototype.getRemainingVsTotalLeaseToOwnByCurrency = function (initOverrides) {
165
+ return __awaiter(this, void 0, void 0, function () {
166
+ var response;
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
169
+ case 0: return [4 /*yield*/, this.getRemainingVsTotalLeaseToOwnByCurrencyRaw(initOverrides)];
170
+ case 1:
171
+ response = _a.sent();
172
+ return [4 /*yield*/, response.value()];
173
+ case 2: return [2 /*return*/, _a.sent()];
174
+ }
175
+ });
176
+ });
177
+ };
178
+ /**
179
+ *
180
+ */
181
+ StatsApi.prototype.getSalesCountRaw = function (requestParameters, initOverrides) {
182
+ return __awaiter(this, void 0, void 0, function () {
183
+ var queryParameters, headerParameters, token, tokenString, response;
184
+ return __generator(this, function (_a) {
185
+ switch (_a.label) {
186
+ case 0:
187
+ queryParameters = {};
188
+ if (requestParameters['dateRange'] != null) {
189
+ queryParameters['dateRange'] = requestParameters['dateRange'];
190
+ }
191
+ headerParameters = {};
192
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
193
+ token = this.configuration.accessToken;
194
+ return [4 /*yield*/, token("bearer", [])];
195
+ case 1:
196
+ tokenString = _a.sent();
197
+ if (tokenString) {
198
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
199
+ }
200
+ _a.label = 2;
201
+ case 2: return [4 /*yield*/, this.request({
202
+ path: "/private/stats/sales-count",
203
+ method: 'GET',
204
+ headers: headerParameters,
205
+ query: queryParameters,
206
+ }, initOverrides)];
207
+ case 3:
208
+ response = _a.sent();
209
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesCountStatsItemDtoFromJSON); })];
210
+ }
211
+ });
212
+ });
213
+ };
214
+ /**
215
+ *
216
+ */
217
+ StatsApi.prototype.getSalesCount = function () {
218
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
219
+ var response;
220
+ if (requestParameters === void 0) { requestParameters = {}; }
221
+ return __generator(this, function (_a) {
222
+ switch (_a.label) {
223
+ case 0: return [4 /*yield*/, this.getSalesCountRaw(requestParameters, initOverrides)];
224
+ case 1:
225
+ response = _a.sent();
226
+ return [4 /*yield*/, response.value()];
227
+ case 2: return [2 /*return*/, _a.sent()];
228
+ }
229
+ });
230
+ });
231
+ };
232
+ /**
233
+ *
234
+ */
235
+ StatsApi.prototype.getTotalEarningsByCurrencyRaw = function (requestParameters, initOverrides) {
236
+ return __awaiter(this, void 0, void 0, function () {
237
+ var queryParameters, headerParameters, token, tokenString, response;
238
+ return __generator(this, function (_a) {
239
+ switch (_a.label) {
240
+ case 0:
241
+ queryParameters = {};
242
+ if (requestParameters['dateRange'] != null) {
243
+ queryParameters['dateRange'] = requestParameters['dateRange'];
244
+ }
245
+ headerParameters = {};
246
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
247
+ token = this.configuration.accessToken;
248
+ return [4 /*yield*/, token("bearer", [])];
249
+ case 1:
250
+ tokenString = _a.sent();
251
+ if (tokenString) {
252
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
253
+ }
254
+ _a.label = 2;
255
+ case 2: return [4 /*yield*/, this.request({
256
+ path: "/private/stats/total-earnings-by-currency",
257
+ method: 'GET',
258
+ headers: headerParameters,
259
+ query: queryParameters,
260
+ }, initOverrides)];
261
+ case 3:
262
+ response = _a.sent();
263
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalEarningsByCurrencyStatsItemDtoFromJSON); })];
264
+ }
265
+ });
266
+ });
267
+ };
268
+ /**
269
+ *
270
+ */
271
+ StatsApi.prototype.getTotalEarningsByCurrency = function () {
272
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
273
+ var response;
274
+ if (requestParameters === void 0) { requestParameters = {}; }
275
+ return __generator(this, function (_a) {
276
+ switch (_a.label) {
277
+ case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyRaw(requestParameters, initOverrides)];
278
+ case 1:
279
+ response = _a.sent();
280
+ return [4 /*yield*/, response.value()];
281
+ case 2: return [2 /*return*/, _a.sent()];
282
+ }
283
+ });
284
+ });
285
+ };
286
+ /**
287
+ *
288
+ */
289
+ StatsApi.prototype.getTotalEarningsByCurrencyOverTimeRaw = function (requestParameters, initOverrides) {
290
+ return __awaiter(this, void 0, void 0, function () {
291
+ var queryParameters, headerParameters, token, tokenString, response;
292
+ return __generator(this, function (_a) {
293
+ switch (_a.label) {
294
+ case 0:
295
+ queryParameters = {};
296
+ if (requestParameters['dateRange'] != null) {
297
+ queryParameters['dateRange'] = requestParameters['dateRange'];
298
+ }
299
+ headerParameters = {};
300
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
301
+ token = this.configuration.accessToken;
302
+ return [4 /*yield*/, token("bearer", [])];
303
+ case 1:
304
+ tokenString = _a.sent();
305
+ if (tokenString) {
306
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
307
+ }
308
+ _a.label = 2;
309
+ case 2: return [4 /*yield*/, this.request({
310
+ path: "/private/stats/total-earnings-by-currency-over-time",
311
+ method: 'GET',
312
+ headers: headerParameters,
313
+ query: queryParameters,
314
+ }, initOverrides)];
315
+ case 3:
316
+ response = _a.sent();
317
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalEarningsByCurrencyOverTimeStatsItemDtoFromJSON); })];
318
+ }
319
+ });
320
+ });
321
+ };
322
+ /**
323
+ *
324
+ */
325
+ StatsApi.prototype.getTotalEarningsByCurrencyOverTime = function () {
326
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
327
+ var response;
328
+ if (requestParameters === void 0) { requestParameters = {}; }
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyOverTimeRaw(requestParameters, initOverrides)];
332
+ case 1:
333
+ response = _a.sent();
334
+ return [4 /*yield*/, response.value()];
335
+ case 2: return [2 /*return*/, _a.sent()];
336
+ }
337
+ });
338
+ });
339
+ };
340
+ /**
341
+ *
342
+ */
343
+ StatsApi.prototype.getTotalMonthlyRentIncomeByCurrencyRaw = function (initOverrides) {
344
+ return __awaiter(this, void 0, void 0, function () {
345
+ var queryParameters, headerParameters, token, tokenString, response;
346
+ return __generator(this, function (_a) {
347
+ switch (_a.label) {
348
+ case 0:
349
+ queryParameters = {};
350
+ headerParameters = {};
351
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
352
+ token = this.configuration.accessToken;
353
+ return [4 /*yield*/, token("bearer", [])];
354
+ case 1:
355
+ tokenString = _a.sent();
356
+ if (tokenString) {
357
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
358
+ }
359
+ _a.label = 2;
360
+ case 2: return [4 /*yield*/, this.request({
361
+ path: "/private/stats/total-monthly-rent-income-by-currency",
362
+ method: 'GET',
363
+ headers: headerParameters,
364
+ query: queryParameters,
365
+ }, initOverrides)];
366
+ case 3:
367
+ response = _a.sent();
368
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalRentMonthlyIncomeByCurrencyStatsItemDtoFromJSON); })];
369
+ }
370
+ });
371
+ });
372
+ };
373
+ /**
374
+ *
375
+ */
376
+ StatsApi.prototype.getTotalMonthlyRentIncomeByCurrency = function (initOverrides) {
377
+ return __awaiter(this, void 0, void 0, function () {
378
+ var response;
379
+ return __generator(this, function (_a) {
380
+ switch (_a.label) {
381
+ case 0: return [4 /*yield*/, this.getTotalMonthlyRentIncomeByCurrencyRaw(initOverrides)];
382
+ case 1:
383
+ response = _a.sent();
384
+ return [4 /*yield*/, response.value()];
385
+ case 2: return [2 /*return*/, _a.sent()];
386
+ }
387
+ });
388
+ });
389
+ };
390
+ return StatsApi;
391
+ }(runtime.BaseAPI));
392
+ exports.StatsApi = StatsApi;
@@ -12,6 +12,7 @@ export * from './LeadsApi';
12
12
  export * from './LeadsPublicApi';
13
13
  export * from './OrdersPublicApi';
14
14
  export * from './SalesPublicApi';
15
+ export * from './StatsApi';
15
16
  export * from './StripePublicApi';
16
17
  export * from './SubscriptionsApi';
17
18
  export * from './SubscriptionsPublicApi';
@@ -30,6 +30,7 @@ __exportStar(require("./LeadsApi"), exports);
30
30
  __exportStar(require("./LeadsPublicApi"), exports);
31
31
  __exportStar(require("./OrdersPublicApi"), exports);
32
32
  __exportStar(require("./SalesPublicApi"), exports);
33
+ __exportStar(require("./StatsApi"), exports);
33
34
  __exportStar(require("./StripePublicApi"), exports);
34
35
  __exportStar(require("./SubscriptionsApi"), exports);
35
36
  __exportStar(require("./SubscriptionsPublicApi"), exports);
@@ -99,6 +99,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
99
99
  readonly ZERO_COMMISSION: "ZERO_COMMISSION";
100
100
  readonly LEAD_PRICE_NEGOTIATOR_AI_AGENT: "LEAD_PRICE_NEGOTIATOR_AI_AGENT";
101
101
  readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
102
+ readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
102
103
  };
103
104
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
104
105
  /**
@@ -35,7 +35,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
35
35
  BANK_PAYOUTS: 'BANK_PAYOUTS',
36
36
  ZERO_COMMISSION: 'ZERO_COMMISSION',
37
37
  LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
38
- AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM'
38
+ AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
39
+ SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
39
40
  };
40
41
  /**
41
42
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SellerPendingPayoutsByCurrencyStatsItemDto
16
+ */
17
+ export interface SellerPendingPayoutsByCurrencyStatsItemDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SellerPendingPayoutsByCurrencyStatsItemDto
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SellerPendingPayoutsByCurrencyStatsItemDto
28
+ */
29
+ currency: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SellerPendingPayoutsByCurrencyStatsItemDto interface.
33
+ */
34
+ export declare function instanceOfSellerPendingPayoutsByCurrencyStatsItemDto(value: object): value is SellerPendingPayoutsByCurrencyStatsItemDto;
35
+ export declare function SellerPendingPayoutsByCurrencyStatsItemDtoFromJSON(json: any): SellerPendingPayoutsByCurrencyStatsItemDto;
36
+ export declare function SellerPendingPayoutsByCurrencyStatsItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerPendingPayoutsByCurrencyStatsItemDto;
37
+ export declare function SellerPendingPayoutsByCurrencyStatsItemDtoToJSON(json: any): SellerPendingPayoutsByCurrencyStatsItemDto;
38
+ export declare function SellerPendingPayoutsByCurrencyStatsItemDtoToJSONTyped(value?: SellerPendingPayoutsByCurrencyStatsItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSellerPendingPayoutsByCurrencyStatsItemDto = instanceOfSellerPendingPayoutsByCurrencyStatsItemDto;
17
+ exports.SellerPendingPayoutsByCurrencyStatsItemDtoFromJSON = SellerPendingPayoutsByCurrencyStatsItemDtoFromJSON;
18
+ exports.SellerPendingPayoutsByCurrencyStatsItemDtoFromJSONTyped = SellerPendingPayoutsByCurrencyStatsItemDtoFromJSONTyped;
19
+ exports.SellerPendingPayoutsByCurrencyStatsItemDtoToJSON = SellerPendingPayoutsByCurrencyStatsItemDtoToJSON;
20
+ exports.SellerPendingPayoutsByCurrencyStatsItemDtoToJSONTyped = SellerPendingPayoutsByCurrencyStatsItemDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SellerPendingPayoutsByCurrencyStatsItemDto interface.
23
+ */
24
+ function instanceOfSellerPendingPayoutsByCurrencyStatsItemDto(value) {
25
+ if (!('amount' in value) || value['amount'] === undefined)
26
+ return false;
27
+ if (!('currency' in value) || value['currency'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SellerPendingPayoutsByCurrencyStatsItemDtoFromJSON(json) {
32
+ return SellerPendingPayoutsByCurrencyStatsItemDtoFromJSONTyped(json, false);
33
+ }
34
+ function SellerPendingPayoutsByCurrencyStatsItemDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'amount': json['amount'],
40
+ 'currency': json['currency'],
41
+ };
42
+ }
43
+ function SellerPendingPayoutsByCurrencyStatsItemDtoToJSON(json) {
44
+ return SellerPendingPayoutsByCurrencyStatsItemDtoToJSONTyped(json, false);
45
+ }
46
+ function SellerPendingPayoutsByCurrencyStatsItemDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'amount': value['amount'],
53
+ 'currency': value['currency'],
54
+ };
55
+ }