@randock/nameshift-api-client 0.0.302 → 0.0.304
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 +5 -0
- package/README.md +3 -3
- package/dist/apis/StatsApi.d.ts +58 -0
- package/dist/apis/StatsApi.js +304 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BuyerDto.d.ts +6 -0
- package/dist/models/BuyerDto.js +4 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/LandingPageInput.d.ts +11 -2
- package/dist/models/LandingPageInput.js +9 -0
- package/dist/models/LandingPageSettingsDto.d.ts +11 -2
- package/dist/models/LandingPageSettingsDto.js +9 -0
- package/dist/models/LeadBuyerConfigDto.d.ts +11 -2
- package/dist/models/LeadBuyerConfigDto.js +9 -0
- package/dist/models/SellerPendingPayoutsByCurrencyStatsItemDto.d.ts +38 -0
- package/dist/models/SellerPendingPayoutsByCurrencyStatsItemDto.js +55 -0
- package/dist/models/SellerSalesCountStatsItemDto.d.ts +44 -0
- package/dist/models/SellerSalesCountStatsItemDto.js +59 -0
- package/dist/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.d.ts +50 -0
- package/dist/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.js +63 -0
- package/dist/models/SellerTotalEarningsByCurrencyStatsItemDto.d.ts +44 -0
- package/dist/models/SellerTotalEarningsByCurrencyStatsItemDto.js +59 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/StatsApi.ts +235 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BuyerDto.ts +9 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/LandingPageInput.ts +14 -2
- package/src/models/LandingPageSettingsDto.ts +14 -2
- package/src/models/LeadBuyerConfigDto.ts +14 -2
- package/src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts +75 -0
- package/src/models/SellerSalesCountStatsItemDto.ts +84 -0
- package/src/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.ts +93 -0
- package/src/models/SellerTotalEarningsByCurrencyStatsItemDto.ts +84 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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,14 @@ 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/SellerSalesCountStatsItemDto.ts
|
|
250
253
|
src/models/SellerSecurityUserAccountDto.ts
|
|
251
254
|
src/models/SellerSecurityUserDto.ts
|
|
252
255
|
src/models/SellerSubscriptionListItemDto.ts
|
|
253
256
|
src/models/SellerSubscriptionListItemDtoDomainInformation.ts
|
|
257
|
+
src/models/SellerTotalEarningsByCurrencyOverTimeStatsItemDto.ts
|
|
258
|
+
src/models/SellerTotalEarningsByCurrencyStatsItemDto.ts
|
|
254
259
|
src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts
|
|
255
260
|
src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel.ts
|
|
256
261
|
src/models/SeoMetricsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.304
|
|
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.304 --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
|
+
242943c1d12d8bf8992766764607ae4209e3f1c7971c4e5c2a2e3634fad00f44bedc6229bdc97790b094ebdfc50c2848
|
|
@@ -0,0 +1,58 @@
|
|
|
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, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto } from '../models/index';
|
|
14
|
+
export interface StatsApiGetSalesCountRequest {
|
|
15
|
+
startDate: Date;
|
|
16
|
+
endDate: Date;
|
|
17
|
+
}
|
|
18
|
+
export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
|
|
19
|
+
startDate: Date;
|
|
20
|
+
endDate: Date;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class StatsApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
getPendingPayoutsByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
getPendingPayoutsByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
getSalesCountRaw(requestParameters: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesCountStatsItemDto>>>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
getSalesCount(requestParameters: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
getTotalEarningsByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyStatsItemDto>>>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
getTotalEarningsByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyStatsItemDto>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
getTotalEarningsByCurrencyOverTimeRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
getTotalEarningsByCurrencyOverTime(requestParameters: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,304 @@
|
|
|
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.getSalesCountRaw = function (requestParameters, 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
|
+
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
|
+
queryParameters = {};
|
|
144
|
+
if (requestParameters['startDate'] != null) {
|
|
145
|
+
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
146
|
+
}
|
|
147
|
+
if (requestParameters['endDate'] != null) {
|
|
148
|
+
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
149
|
+
}
|
|
150
|
+
headerParameters = {};
|
|
151
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
152
|
+
token = this.configuration.accessToken;
|
|
153
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
154
|
+
case 1:
|
|
155
|
+
tokenString = _a.sent();
|
|
156
|
+
if (tokenString) {
|
|
157
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
158
|
+
}
|
|
159
|
+
_a.label = 2;
|
|
160
|
+
case 2: return [4 /*yield*/, this.request({
|
|
161
|
+
path: "/private/stats/sales-count",
|
|
162
|
+
method: 'GET',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides)];
|
|
166
|
+
case 3:
|
|
167
|
+
response = _a.sent();
|
|
168
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesCountStatsItemDtoFromJSON); })];
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
StatsApi.prototype.getSalesCount = function (requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
var response;
|
|
179
|
+
return __generator(this, function (_a) {
|
|
180
|
+
switch (_a.label) {
|
|
181
|
+
case 0: return [4 /*yield*/, this.getSalesCountRaw(requestParameters, initOverrides)];
|
|
182
|
+
case 1:
|
|
183
|
+
response = _a.sent();
|
|
184
|
+
return [4 /*yield*/, response.value()];
|
|
185
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
*/
|
|
193
|
+
StatsApi.prototype.getTotalEarningsByCurrencyRaw = function (initOverrides) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
195
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
196
|
+
return __generator(this, function (_a) {
|
|
197
|
+
switch (_a.label) {
|
|
198
|
+
case 0:
|
|
199
|
+
queryParameters = {};
|
|
200
|
+
headerParameters = {};
|
|
201
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
202
|
+
token = this.configuration.accessToken;
|
|
203
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
204
|
+
case 1:
|
|
205
|
+
tokenString = _a.sent();
|
|
206
|
+
if (tokenString) {
|
|
207
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
208
|
+
}
|
|
209
|
+
_a.label = 2;
|
|
210
|
+
case 2: return [4 /*yield*/, this.request({
|
|
211
|
+
path: "/private/stats/total-earnings-by-currency",
|
|
212
|
+
method: 'GET',
|
|
213
|
+
headers: headerParameters,
|
|
214
|
+
query: queryParameters,
|
|
215
|
+
}, initOverrides)];
|
|
216
|
+
case 3:
|
|
217
|
+
response = _a.sent();
|
|
218
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalEarningsByCurrencyStatsItemDtoFromJSON); })];
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
226
|
+
StatsApi.prototype.getTotalEarningsByCurrency = function (initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var response;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyRaw(initOverrides)];
|
|
232
|
+
case 1:
|
|
233
|
+
response = _a.sent();
|
|
234
|
+
return [4 /*yield*/, response.value()];
|
|
235
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
StatsApi.prototype.getTotalEarningsByCurrencyOverTimeRaw = function (requestParameters, initOverrides) {
|
|
244
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
245
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
246
|
+
return __generator(this, function (_a) {
|
|
247
|
+
switch (_a.label) {
|
|
248
|
+
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
|
+
queryParameters = {};
|
|
256
|
+
if (requestParameters['startDate'] != null) {
|
|
257
|
+
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
258
|
+
}
|
|
259
|
+
if (requestParameters['endDate'] != null) {
|
|
260
|
+
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
261
|
+
}
|
|
262
|
+
headerParameters = {};
|
|
263
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
264
|
+
token = this.configuration.accessToken;
|
|
265
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
266
|
+
case 1:
|
|
267
|
+
tokenString = _a.sent();
|
|
268
|
+
if (tokenString) {
|
|
269
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
270
|
+
}
|
|
271
|
+
_a.label = 2;
|
|
272
|
+
case 2: return [4 /*yield*/, this.request({
|
|
273
|
+
path: "/private/stats/total-earnings-by-currency-over-time",
|
|
274
|
+
method: 'GET',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
}, initOverrides)];
|
|
278
|
+
case 3:
|
|
279
|
+
response = _a.sent();
|
|
280
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerTotalEarningsByCurrencyOverTimeStatsItemDtoFromJSON); })];
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
*/
|
|
288
|
+
StatsApi.prototype.getTotalEarningsByCurrencyOverTime = function (requestParameters, initOverrides) {
|
|
289
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
290
|
+
var response;
|
|
291
|
+
return __generator(this, function (_a) {
|
|
292
|
+
switch (_a.label) {
|
|
293
|
+
case 0: return [4 /*yield*/, this.getTotalEarningsByCurrencyOverTimeRaw(requestParameters, initOverrides)];
|
|
294
|
+
case 1:
|
|
295
|
+
response = _a.sent();
|
|
296
|
+
return [4 /*yield*/, response.value()];
|
|
297
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
return StatsApi;
|
|
303
|
+
}(runtime.BaseAPI));
|
|
304
|
+
exports.StatsApi = StatsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/apis/index.js
CHANGED
|
@@ -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);
|
package/dist/models/BuyerDto.js
CHANGED
|
@@ -34,6 +34,8 @@ function instanceOfBuyerDto(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('emailDomain' in value) || value['emailDomain'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
return true;
|
|
38
40
|
}
|
|
39
41
|
function BuyerDtoFromJSON(json) {
|
|
@@ -50,6 +52,7 @@ function BuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'companyName': json['companyName'],
|
|
51
53
|
'buyerName': json['buyerName'],
|
|
52
54
|
'emailDomain': json['emailDomain'],
|
|
55
|
+
'phoneNumber': json['phoneNumber'],
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
function BuyerDtoToJSON(json) {
|
|
@@ -67,5 +70,6 @@ function BuyerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
70
|
'companyName': value['companyName'],
|
|
68
71
|
'buyerName': value['buyerName'],
|
|
69
72
|
'emailDomain': value['emailDomain'],
|
|
73
|
+
'phoneNumber': value['phoneNumber'],
|
|
70
74
|
};
|
|
71
75
|
}
|
|
@@ -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
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -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.
|
|
@@ -77,11 +77,20 @@ export interface LandingPageInput {
|
|
|
77
77
|
requestLeadBuyerCompanyName?: boolean | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
|
-
* @type {
|
|
80
|
+
* @type {string}
|
|
81
81
|
* @memberof LandingPageInput
|
|
82
82
|
*/
|
|
83
|
-
requestLeadBuyerPhoneNumber?:
|
|
83
|
+
requestLeadBuyerPhoneNumber?: LandingPageInputRequestLeadBuyerPhoneNumberEnum | null;
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const LandingPageInputRequestLeadBuyerPhoneNumberEnum: {
|
|
89
|
+
readonly NO: "no";
|
|
90
|
+
readonly REQUIRED: "required";
|
|
91
|
+
readonly OPTIONAL: "optional";
|
|
92
|
+
};
|
|
93
|
+
export type LandingPageInputRequestLeadBuyerPhoneNumberEnum = typeof LandingPageInputRequestLeadBuyerPhoneNumberEnum[keyof typeof LandingPageInputRequestLeadBuyerPhoneNumberEnum];
|
|
85
94
|
/**
|
|
86
95
|
* Check if a given object implements the LandingPageInput interface.
|
|
87
96
|
*/
|
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LandingPageInputRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
16
17
|
exports.instanceOfLandingPageInput = instanceOfLandingPageInput;
|
|
17
18
|
exports.LandingPageInputFromJSON = LandingPageInputFromJSON;
|
|
18
19
|
exports.LandingPageInputFromJSONTyped = LandingPageInputFromJSONTyped;
|
|
19
20
|
exports.LandingPageInputToJSON = LandingPageInputToJSON;
|
|
20
21
|
exports.LandingPageInputToJSONTyped = LandingPageInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LandingPageInputRequestLeadBuyerPhoneNumberEnum = {
|
|
26
|
+
NO: 'no',
|
|
27
|
+
REQUIRED: 'required',
|
|
28
|
+
OPTIONAL: 'optional'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the LandingPageInput interface.
|
|
23
32
|
*/
|
|
@@ -77,11 +77,20 @@ export interface LandingPageSettingsDto {
|
|
|
77
77
|
requestLeadBuyerCompanyName: boolean | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
|
-
* @type {
|
|
80
|
+
* @type {string}
|
|
81
81
|
* @memberof LandingPageSettingsDto
|
|
82
82
|
*/
|
|
83
|
-
requestLeadBuyerPhoneNumber:
|
|
83
|
+
requestLeadBuyerPhoneNumber: LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum | null;
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum: {
|
|
89
|
+
readonly NO: "no";
|
|
90
|
+
readonly REQUIRED: "required";
|
|
91
|
+
readonly OPTIONAL: "optional";
|
|
92
|
+
};
|
|
93
|
+
export type LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = typeof LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum[keyof typeof LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum];
|
|
85
94
|
/**
|
|
86
95
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
87
96
|
*/
|
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
16
17
|
exports.instanceOfLandingPageSettingsDto = instanceOfLandingPageSettingsDto;
|
|
17
18
|
exports.LandingPageSettingsDtoFromJSON = LandingPageSettingsDtoFromJSON;
|
|
18
19
|
exports.LandingPageSettingsDtoFromJSONTyped = LandingPageSettingsDtoFromJSONTyped;
|
|
19
20
|
exports.LandingPageSettingsDtoToJSON = LandingPageSettingsDtoToJSON;
|
|
20
21
|
exports.LandingPageSettingsDtoToJSONTyped = LandingPageSettingsDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = {
|
|
26
|
+
NO: 'no',
|
|
27
|
+
REQUIRED: 'required',
|
|
28
|
+
OPTIONAL: 'optional'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
23
32
|
*/
|
|
@@ -23,11 +23,20 @@ export interface LeadBuyerConfigDto {
|
|
|
23
23
|
requestLeadBuyerCompanyName: boolean;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof LeadBuyerConfigDto
|
|
28
28
|
*/
|
|
29
|
-
requestLeadBuyerPhoneNumber:
|
|
29
|
+
requestLeadBuyerPhoneNumber: LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum: {
|
|
35
|
+
readonly NO: "no";
|
|
36
|
+
readonly REQUIRED: "required";
|
|
37
|
+
readonly OPTIONAL: "optional";
|
|
38
|
+
};
|
|
39
|
+
export type LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum = typeof LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum[keyof typeof LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum];
|
|
31
40
|
/**
|
|
32
41
|
* Check if a given object implements the LeadBuyerConfigDto interface.
|
|
33
42
|
*/
|
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
16
17
|
exports.instanceOfLeadBuyerConfigDto = instanceOfLeadBuyerConfigDto;
|
|
17
18
|
exports.LeadBuyerConfigDtoFromJSON = LeadBuyerConfigDtoFromJSON;
|
|
18
19
|
exports.LeadBuyerConfigDtoFromJSONTyped = LeadBuyerConfigDtoFromJSONTyped;
|
|
19
20
|
exports.LeadBuyerConfigDtoToJSON = LeadBuyerConfigDtoToJSON;
|
|
20
21
|
exports.LeadBuyerConfigDtoToJSONTyped = LeadBuyerConfigDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LeadBuyerConfigDtoRequestLeadBuyerPhoneNumberEnum = {
|
|
26
|
+
NO: 'no',
|
|
27
|
+
REQUIRED: 'required',
|
|
28
|
+
OPTIONAL: 'optional'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the LeadBuyerConfigDto interface.
|
|
23
32
|
*/
|
|
@@ -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;
|