@randock/nameshift-api-client 0.0.304 → 0.0.306
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -6
- package/dist/apis/AdminApi.js +62 -25
- package/dist/apis/StatsApi.d.ts +26 -9
- package/dist/apis/StatsApi.js +118 -30
- package/dist/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.d.ts +50 -0
- package/dist/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.js +63 -0
- package/dist/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.d.ts +44 -0
- package/dist/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.js +59 -0
- package/dist/models/StatsFilterInputDateRange.d.ts +38 -0
- package/dist/models/StatsFilterInputDateRange.js +55 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +54 -47
- package/src/apis/StatsApi.ts +91 -47
- package/src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts +93 -0
- package/src/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.ts +84 -0
- package/src/models/StatsFilterInputDateRange.ts +75 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -249,6 +249,7 @@ src/models/SellerInvoiceDomainDto.ts
|
|
|
249
249
|
src/models/SellerInvoiceDto.ts
|
|
250
250
|
src/models/SellerInvoiceSellerAccountDto.ts
|
|
251
251
|
src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts
|
|
252
|
+
src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts
|
|
252
253
|
src/models/SellerSalesCountStatsItemDto.ts
|
|
253
254
|
src/models/SellerSecurityUserAccountDto.ts
|
|
254
255
|
src/models/SellerSecurityUserDto.ts
|
|
@@ -256,6 +257,7 @@ src/models/SellerSubscriptionListItemDto.ts
|
|
|
256
257
|
src/models/SellerSubscriptionListItemDtoDomainInformation.ts
|
|
257
258
|
src/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.ts
|
|
258
259
|
src/models/SellerTotalEarningsByCurrencyStatsItemDto.ts
|
|
260
|
+
src/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.ts
|
|
259
261
|
src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts
|
|
260
262
|
src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel.ts
|
|
261
263
|
src/models/SeoMetricsDto.ts
|
|
@@ -264,6 +266,7 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
264
266
|
src/models/SetNewPasswordInput.ts
|
|
265
267
|
src/models/SetPayoutProviderInput.ts
|
|
266
268
|
src/models/SortDto.ts
|
|
269
|
+
src/models/StatsFilterInputDateRange.ts
|
|
267
270
|
src/models/StoreBuyerLocaleInput.ts
|
|
268
271
|
src/models/StoreUserLocaleInput.ts
|
|
269
272
|
src/models/SubscriptionBillingPeriodicityDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.306
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.306 --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
|
-
|
|
47
|
+
77e5f1dc359626bc79fb59243fb4de109f43d55bfabc037d411b9da561a1354eab6aa98c4cad06b3ac80a970c655041f
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -40,6 +40,9 @@ export interface AdminApiGetAccountSettingsRequest {
|
|
|
40
40
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
41
41
|
domainTransferId: string;
|
|
42
42
|
}
|
|
43
|
+
export interface AdminApiGetAllAccountsSalesCountRequest {
|
|
44
|
+
dateRange?: any | null;
|
|
45
|
+
}
|
|
43
46
|
export interface AdminApiGetAllInvoicesRequest {
|
|
44
47
|
filter?: object;
|
|
45
48
|
page?: number;
|
|
@@ -65,8 +68,7 @@ export interface AdminApiGetAllSubscriptionsRequest {
|
|
|
65
68
|
sortBy?: Array<string>;
|
|
66
69
|
}
|
|
67
70
|
export interface AdminApiGetCompanyStatsRequest {
|
|
68
|
-
|
|
69
|
-
endDate: Date;
|
|
71
|
+
dateRange?: any | null;
|
|
70
72
|
}
|
|
71
73
|
export interface AdminApiGetSubscriptionDetailsRequest {
|
|
72
74
|
subscriptionId: string;
|
|
@@ -90,11 +92,10 @@ export interface AdminApiListDomainsRequest {
|
|
|
90
92
|
sortBy?: Array<string>;
|
|
91
93
|
}
|
|
92
94
|
export interface AdminApiListLedgerMutationsRequest {
|
|
93
|
-
startDate: Date;
|
|
94
|
-
endDate: Date;
|
|
95
95
|
ledgerId: string;
|
|
96
96
|
page: number;
|
|
97
97
|
limit: number;
|
|
98
|
+
dateRange?: any | null;
|
|
98
99
|
}
|
|
99
100
|
export interface AdminApiLoginAsRequest {
|
|
100
101
|
accountId: string;
|
|
@@ -195,6 +196,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
195
196
|
*
|
|
196
197
|
*/
|
|
197
198
|
getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto>;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
getAllAccountsSalesCountRaw(requestParameters: AdminApiGetAllAccountsSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesCountStatsItemDto>>>;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
*/
|
|
206
|
+
getAllAccountsSalesCount(requestParameters?: AdminApiGetAllAccountsSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
|
|
198
207
|
/**
|
|
199
208
|
*
|
|
200
209
|
*/
|
|
@@ -234,7 +243,7 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
234
243
|
/**
|
|
235
244
|
*
|
|
236
245
|
*/
|
|
237
|
-
getCompanyStats(requestParameters
|
|
246
|
+
getCompanyStats(requestParameters?: AdminApiGetCompanyStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminCompanyStatsDto>;
|
|
238
247
|
/**
|
|
239
248
|
*
|
|
240
249
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -515,6 +515,60 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
515
515
|
});
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
*/
|
|
521
|
+
AdminApi.prototype.getAllAccountsSalesCountRaw = function (requestParameters, initOverrides) {
|
|
522
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
523
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
524
|
+
return __generator(this, function (_a) {
|
|
525
|
+
switch (_a.label) {
|
|
526
|
+
case 0:
|
|
527
|
+
queryParameters = {};
|
|
528
|
+
if (requestParameters['dateRange'] != null) {
|
|
529
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
530
|
+
}
|
|
531
|
+
headerParameters = {};
|
|
532
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
533
|
+
token = this.configuration.accessToken;
|
|
534
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
535
|
+
case 1:
|
|
536
|
+
tokenString = _a.sent();
|
|
537
|
+
if (tokenString) {
|
|
538
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
539
|
+
}
|
|
540
|
+
_a.label = 2;
|
|
541
|
+
case 2: return [4 /*yield*/, this.request({
|
|
542
|
+
path: "/admin/stats/sales-count",
|
|
543
|
+
method: 'GET',
|
|
544
|
+
headers: headerParameters,
|
|
545
|
+
query: queryParameters,
|
|
546
|
+
}, initOverrides)];
|
|
547
|
+
case 3:
|
|
548
|
+
response = _a.sent();
|
|
549
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesCountStatsItemDtoFromJSON); })];
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
*/
|
|
557
|
+
AdminApi.prototype.getAllAccountsSalesCount = function () {
|
|
558
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
559
|
+
var response;
|
|
560
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
561
|
+
return __generator(this, function (_a) {
|
|
562
|
+
switch (_a.label) {
|
|
563
|
+
case 0: return [4 /*yield*/, this.getAllAccountsSalesCountRaw(requestParameters, initOverrides)];
|
|
564
|
+
case 1:
|
|
565
|
+
response = _a.sent();
|
|
566
|
+
return [4 /*yield*/, response.value()];
|
|
567
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
};
|
|
518
572
|
/**
|
|
519
573
|
*
|
|
520
574
|
*/
|
|
@@ -776,18 +830,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
776
830
|
return __generator(this, function (_a) {
|
|
777
831
|
switch (_a.label) {
|
|
778
832
|
case 0:
|
|
779
|
-
if (requestParameters['startDate'] == null) {
|
|
780
|
-
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling getCompanyStats().');
|
|
781
|
-
}
|
|
782
|
-
if (requestParameters['endDate'] == null) {
|
|
783
|
-
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling getCompanyStats().');
|
|
784
|
-
}
|
|
785
833
|
queryParameters = {};
|
|
786
|
-
if (requestParameters['
|
|
787
|
-
queryParameters['
|
|
788
|
-
}
|
|
789
|
-
if (requestParameters['endDate'] != null) {
|
|
790
|
-
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
834
|
+
if (requestParameters['dateRange'] != null) {
|
|
835
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
791
836
|
}
|
|
792
837
|
headerParameters = {};
|
|
793
838
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -815,9 +860,10 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
815
860
|
/**
|
|
816
861
|
*
|
|
817
862
|
*/
|
|
818
|
-
AdminApi.prototype.getCompanyStats = function (
|
|
819
|
-
return __awaiter(this,
|
|
863
|
+
AdminApi.prototype.getCompanyStats = function () {
|
|
864
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
820
865
|
var response;
|
|
866
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
821
867
|
return __generator(this, function (_a) {
|
|
822
868
|
switch (_a.label) {
|
|
823
869
|
case 0: return [4 /*yield*/, this.getCompanyStatsRaw(requestParameters, initOverrides)];
|
|
@@ -1080,12 +1126,6 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1080
1126
|
return __generator(this, function (_a) {
|
|
1081
1127
|
switch (_a.label) {
|
|
1082
1128
|
case 0:
|
|
1083
|
-
if (requestParameters['startDate'] == null) {
|
|
1084
|
-
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling listLedgerMutations().');
|
|
1085
|
-
}
|
|
1086
|
-
if (requestParameters['endDate'] == null) {
|
|
1087
|
-
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling listLedgerMutations().');
|
|
1088
|
-
}
|
|
1089
1129
|
if (requestParameters['ledgerId'] == null) {
|
|
1090
1130
|
throw new runtime.RequiredError('ledgerId', 'Required parameter "ledgerId" was null or undefined when calling listLedgerMutations().');
|
|
1091
1131
|
}
|
|
@@ -1096,12 +1136,6 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1096
1136
|
throw new runtime.RequiredError('limit', 'Required parameter "limit" was null or undefined when calling listLedgerMutations().');
|
|
1097
1137
|
}
|
|
1098
1138
|
queryParameters = {};
|
|
1099
|
-
if (requestParameters['startDate'] != null) {
|
|
1100
|
-
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
1101
|
-
}
|
|
1102
|
-
if (requestParameters['endDate'] != null) {
|
|
1103
|
-
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
1104
|
-
}
|
|
1105
1139
|
if (requestParameters['ledgerId'] != null) {
|
|
1106
1140
|
queryParameters['ledgerId'] = requestParameters['ledgerId'];
|
|
1107
1141
|
}
|
|
@@ -1111,6 +1145,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1111
1145
|
if (requestParameters['limit'] != null) {
|
|
1112
1146
|
queryParameters['limit'] = requestParameters['limit'];
|
|
1113
1147
|
}
|
|
1148
|
+
if (requestParameters['dateRange'] != null) {
|
|
1149
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
1150
|
+
}
|
|
1114
1151
|
headerParameters = {};
|
|
1115
1152
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1116
1153
|
token = this.configuration.accessToken;
|
package/dist/apis/StatsApi.d.ts
CHANGED
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto } from '../models/index';
|
|
13
|
+
import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto, SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto } from '../models/index';
|
|
14
14
|
export interface StatsApiGetSalesCountRequest {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
dateRange?: any | null;
|
|
16
|
+
}
|
|
17
|
+
export interface StatsApiGetTotalEarningsByCurrencyRequest {
|
|
18
|
+
dateRange?: any | null;
|
|
17
19
|
}
|
|
18
20
|
export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
|
|
19
|
-
|
|
20
|
-
endDate: Date;
|
|
21
|
+
dateRange?: any | null;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
@@ -31,6 +32,14 @@ export declare class StatsApi extends runtime.BaseAPI {
|
|
|
31
32
|
*
|
|
32
33
|
*/
|
|
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>>;
|
|
34
43
|
/**
|
|
35
44
|
*
|
|
36
45
|
*/
|
|
@@ -38,15 +47,15 @@ export declare class StatsApi extends runtime.BaseAPI {
|
|
|
38
47
|
/**
|
|
39
48
|
*
|
|
40
49
|
*/
|
|
41
|
-
getSalesCount(requestParameters
|
|
50
|
+
getSalesCount(requestParameters?: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
|
|
42
51
|
/**
|
|
43
52
|
*
|
|
44
53
|
*/
|
|
45
|
-
getTotalEarningsByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyStatsItemDto>>>;
|
|
54
|
+
getTotalEarningsByCurrencyRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyStatsItemDto>>>;
|
|
46
55
|
/**
|
|
47
56
|
*
|
|
48
57
|
*/
|
|
49
|
-
getTotalEarningsByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyStatsItemDto>>;
|
|
58
|
+
getTotalEarningsByCurrency(requestParameters?: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyStatsItemDto>>;
|
|
50
59
|
/**
|
|
51
60
|
*
|
|
52
61
|
*/
|
|
@@ -54,5 +63,13 @@ export declare class StatsApi extends runtime.BaseAPI {
|
|
|
54
63
|
/**
|
|
55
64
|
*
|
|
56
65
|
*/
|
|
57
|
-
getTotalEarningsByCurrencyOverTime(requestParameters
|
|
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>>;
|
|
58
75
|
}
|
package/dist/apis/StatsApi.js
CHANGED
|
@@ -128,24 +128,65 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
128
128
|
/**
|
|
129
129
|
*
|
|
130
130
|
*/
|
|
131
|
-
StatsApi.prototype.
|
|
131
|
+
StatsApi.prototype.getRemainingVsTotalLeaseToOwnByCurrencyRaw = function (initOverrides) {
|
|
132
132
|
return __awaiter(this, void 0, void 0, function () {
|
|
133
133
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
134
134
|
return __generator(this, function (_a) {
|
|
135
135
|
switch (_a.label) {
|
|
136
136
|
case 0:
|
|
137
|
-
if (requestParameters['startDate'] == null) {
|
|
138
|
-
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling getSalesCount().');
|
|
139
|
-
}
|
|
140
|
-
if (requestParameters['endDate'] == null) {
|
|
141
|
-
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling getSalesCount().');
|
|
142
|
-
}
|
|
143
137
|
queryParameters = {};
|
|
144
|
-
|
|
145
|
-
|
|
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
146
|
}
|
|
147
|
-
|
|
148
|
-
|
|
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'];
|
|
149
190
|
}
|
|
150
191
|
headerParameters = {};
|
|
151
192
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -173,9 +214,10 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
173
214
|
/**
|
|
174
215
|
*
|
|
175
216
|
*/
|
|
176
|
-
StatsApi.prototype.getSalesCount = function (
|
|
177
|
-
return __awaiter(this,
|
|
217
|
+
StatsApi.prototype.getSalesCount = function () {
|
|
218
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
178
219
|
var response;
|
|
220
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
179
221
|
return __generator(this, function (_a) {
|
|
180
222
|
switch (_a.label) {
|
|
181
223
|
case 0: return [4 /*yield*/, this.getSalesCountRaw(requestParameters, initOverrides)];
|
|
@@ -190,13 +232,16 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
190
232
|
/**
|
|
191
233
|
*
|
|
192
234
|
*/
|
|
193
|
-
StatsApi.prototype.getTotalEarningsByCurrencyRaw = function (initOverrides) {
|
|
235
|
+
StatsApi.prototype.getTotalEarningsByCurrencyRaw = function (requestParameters, initOverrides) {
|
|
194
236
|
return __awaiter(this, void 0, void 0, function () {
|
|
195
237
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
196
238
|
return __generator(this, function (_a) {
|
|
197
239
|
switch (_a.label) {
|
|
198
240
|
case 0:
|
|
199
241
|
queryParameters = {};
|
|
242
|
+
if (requestParameters['dateRange'] != null) {
|
|
243
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
244
|
+
}
|
|
200
245
|
headerParameters = {};
|
|
201
246
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
202
247
|
token = this.configuration.accessToken;
|
|
@@ -223,12 +268,13 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
223
268
|
/**
|
|
224
269
|
*
|
|
225
270
|
*/
|
|
226
|
-
StatsApi.prototype.getTotalEarningsByCurrency = function (
|
|
227
|
-
return __awaiter(this,
|
|
271
|
+
StatsApi.prototype.getTotalEarningsByCurrency = function () {
|
|
272
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
228
273
|
var response;
|
|
274
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
229
275
|
return __generator(this, function (_a) {
|
|
230
276
|
switch (_a.label) {
|
|
231
|
-
case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyRaw(initOverrides)];
|
|
277
|
+
case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyRaw(requestParameters, initOverrides)];
|
|
232
278
|
case 1:
|
|
233
279
|
response = _a.sent();
|
|
234
280
|
return [4 /*yield*/, response.value()];
|
|
@@ -246,18 +292,9 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
246
292
|
return __generator(this, function (_a) {
|
|
247
293
|
switch (_a.label) {
|
|
248
294
|
case 0:
|
|
249
|
-
if (requestParameters['startDate'] == null) {
|
|
250
|
-
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling getTotalEarningsByCurrencyOverTime().');
|
|
251
|
-
}
|
|
252
|
-
if (requestParameters['endDate'] == null) {
|
|
253
|
-
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling getTotalEarningsByCurrencyOverTime().');
|
|
254
|
-
}
|
|
255
295
|
queryParameters = {};
|
|
256
|
-
if (requestParameters['
|
|
257
|
-
queryParameters['
|
|
258
|
-
}
|
|
259
|
-
if (requestParameters['endDate'] != null) {
|
|
260
|
-
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
296
|
+
if (requestParameters['dateRange'] != null) {
|
|
297
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
261
298
|
}
|
|
262
299
|
headerParameters = {};
|
|
263
300
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -285,9 +322,10 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
285
322
|
/**
|
|
286
323
|
*
|
|
287
324
|
*/
|
|
288
|
-
StatsApi.prototype.getTotalEarningsByCurrencyOverTime = function (
|
|
289
|
-
return __awaiter(this,
|
|
325
|
+
StatsApi.prototype.getTotalEarningsByCurrencyOverTime = function () {
|
|
326
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
290
327
|
var response;
|
|
328
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
291
329
|
return __generator(this, function (_a) {
|
|
292
330
|
switch (_a.label) {
|
|
293
331
|
case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyOverTimeRaw(requestParameters, initOverrides)];
|
|
@@ -299,6 +337,56 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
299
337
|
});
|
|
300
338
|
});
|
|
301
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
|
+
};
|
|
302
390
|
return StatsApi;
|
|
303
391
|
}(runtime.BaseAPI));
|
|
304
392
|
exports.StatsApi = StatsApi;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto
|
|
22
|
+
*/
|
|
23
|
+
total: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto
|
|
28
|
+
*/
|
|
29
|
+
remaining: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto
|
|
34
|
+
*/
|
|
35
|
+
currency: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto
|
|
40
|
+
*/
|
|
41
|
+
count: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto(value: object): value is SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto;
|
|
47
|
+
export declare function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON(json: any): SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto;
|
|
48
|
+
export declare function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto;
|
|
49
|
+
export declare function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSON(json: any): SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto;
|
|
50
|
+
export declare function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSONTyped(value?: SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfSellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto = instanceOfSellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto;
|
|
17
|
+
exports.SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON = SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON;
|
|
18
|
+
exports.SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSONTyped = SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSONTyped;
|
|
19
|
+
exports.SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSON = SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSON;
|
|
20
|
+
exports.SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSONTyped = SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto(value) {
|
|
25
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('remaining' in value) || value['remaining'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON(json) {
|
|
36
|
+
return SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'total': json['total'],
|
|
44
|
+
'remaining': json['remaining'],
|
|
45
|
+
'currency': json['currency'],
|
|
46
|
+
'count': json['count'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSON(json) {
|
|
50
|
+
return SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'total': value['total'],
|
|
59
|
+
'remaining': value['remaining'],
|
|
60
|
+
'currency': value['currency'],
|
|
61
|
+
'count': value['count'],
|
|
62
|
+
};
|
|
63
|
+
}
|