@randock/nameshift-api-client 0.0.430 → 0.0.431
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/MarketingApi.d.ts +40 -0
- package/dist/apis/MarketingApi.js +193 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/GetMarketingSales200Response.d.ts +47 -0
- package/dist/models/GetMarketingSales200Response.js +62 -0
- package/dist/models/MarketingOrderListItemDto.d.ts +57 -0
- package/dist/models/MarketingOrderListItemDto.js +68 -0
- package/dist/models/MarketingSalesFiltersDto.d.ts +38 -0
- package/dist/models/MarketingSalesFiltersDto.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/MarketingApi.ts +127 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetMarketingSales200Response.ts +106 -0
- package/src/models/MarketingOrderListItemDto.ts +110 -0
- package/src/models/MarketingSalesFiltersDto.ts +75 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -21,6 +21,7 @@ src/apis/InvoicesApi.ts
|
|
|
21
21
|
src/apis/LeadsApi.ts
|
|
22
22
|
src/apis/LeadsPublicApi.ts
|
|
23
23
|
src/apis/MandrillPublicApi.ts
|
|
24
|
+
src/apis/MarketingApi.ts
|
|
24
25
|
src/apis/MolliePublicApi.ts
|
|
25
26
|
src/apis/NickyPublicApi.ts
|
|
26
27
|
src/apis/NotificationsApi.ts
|
|
@@ -266,6 +267,7 @@ src/models/GetBuyerLeads200Response.ts
|
|
|
266
267
|
src/models/GetBuyerSubscriptions200Response.ts
|
|
267
268
|
src/models/GetBuyerTransfers200Response.ts
|
|
268
269
|
src/models/GetInvoices200Response.ts
|
|
270
|
+
src/models/GetMarketingSales200Response.ts
|
|
269
271
|
src/models/GetSellerChallengesListDto.ts
|
|
270
272
|
src/models/GetSellerChallengesListDtoChallengesInner.ts
|
|
271
273
|
src/models/HistoricalMetrics.ts
|
|
@@ -337,6 +339,8 @@ src/models/MajesticMetrics.ts
|
|
|
337
339
|
src/models/MajesticTopicTrustFlow.ts
|
|
338
340
|
src/models/ManualLeadBuyerDto.ts
|
|
339
341
|
src/models/ManualLeadLeaseToOwnDto.ts
|
|
342
|
+
src/models/MarketingOrderListItemDto.ts
|
|
343
|
+
src/models/MarketingSalesFiltersDto.ts
|
|
340
344
|
src/models/MoneyDecimalDto.ts
|
|
341
345
|
src/models/MoneyDto.ts
|
|
342
346
|
src/models/MoneyInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.431
|
|
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.431 --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
|
+
0c3662be0785f8309624046749dca0e4f682fdd2173e1d732a91e906390005edb06013623a932b4165c871a1e60b963c
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { GetMarketingSales200Response, MarketingSalesFiltersDto } from '../models/index';
|
|
14
|
+
export interface MarketingApiGetMarketingSalesRequest {
|
|
15
|
+
filter?: object;
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
sortBy?: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class MarketingApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
getMarketingSalesRaw(requestParameters: MarketingApiGetMarketingSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMarketingSales200Response>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
getMarketingSales(requestParameters?: MarketingApiGetMarketingSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMarketingSales200Response>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
getMarketingSalesFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketingSalesFiltersDto>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getMarketingSalesFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketingSalesFiltersDto>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
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.MarketingApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var MarketingApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(MarketingApi, _super);
|
|
75
|
+
function MarketingApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
MarketingApi.prototype.getMarketingSalesRaw = function (requestParameters, 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
|
+
if (requestParameters['filter'] != null) {
|
|
89
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['page'] != null) {
|
|
92
|
+
queryParameters['page'] = requestParameters['page'];
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['limit'] != null) {
|
|
95
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['sortBy'] != null) {
|
|
98
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
99
|
+
}
|
|
100
|
+
headerParameters = {};
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
102
|
+
token = this.configuration.accessToken;
|
|
103
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
104
|
+
case 1:
|
|
105
|
+
tokenString = _a.sent();
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
+
}
|
|
109
|
+
_a.label = 2;
|
|
110
|
+
case 2: return [4 /*yield*/, this.request({
|
|
111
|
+
path: "/marketing/sales",
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 3:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetMarketingSales200ResponseFromJSON)(jsonValue); })];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
MarketingApi.prototype.getMarketingSales = function () {
|
|
127
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
128
|
+
var response;
|
|
129
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0: return [4 /*yield*/, this.getMarketingSalesRaw(requestParameters, initOverrides)];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _a.sent();
|
|
135
|
+
return [4 /*yield*/, response.value()];
|
|
136
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
MarketingApi.prototype.getMarketingSalesFiltersRaw = function (initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
147
|
+
return __generator(this, function (_a) {
|
|
148
|
+
switch (_a.label) {
|
|
149
|
+
case 0:
|
|
150
|
+
queryParameters = {};
|
|
151
|
+
headerParameters = {};
|
|
152
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
153
|
+
token = this.configuration.accessToken;
|
|
154
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
155
|
+
case 1:
|
|
156
|
+
tokenString = _a.sent();
|
|
157
|
+
if (tokenString) {
|
|
158
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
159
|
+
}
|
|
160
|
+
_a.label = 2;
|
|
161
|
+
case 2: return [4 /*yield*/, this.request({
|
|
162
|
+
path: "/marketing/sales/filters",
|
|
163
|
+
method: 'GET',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
query: queryParameters,
|
|
166
|
+
}, initOverrides)];
|
|
167
|
+
case 3:
|
|
168
|
+
response = _a.sent();
|
|
169
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MarketingSalesFiltersDtoFromJSON)(jsonValue); })];
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
177
|
+
MarketingApi.prototype.getMarketingSalesFilters = function (initOverrides) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
+
var response;
|
|
180
|
+
return __generator(this, function (_a) {
|
|
181
|
+
switch (_a.label) {
|
|
182
|
+
case 0: return [4 /*yield*/, this.getMarketingSalesFiltersRaw(initOverrides)];
|
|
183
|
+
case 1:
|
|
184
|
+
response = _a.sent();
|
|
185
|
+
return [4 /*yield*/, response.value()];
|
|
186
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
return MarketingApi;
|
|
192
|
+
}(runtime.BaseAPI));
|
|
193
|
+
exports.MarketingApi = MarketingApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './InvoicesApi';
|
|
|
16
16
|
export * from './LeadsApi';
|
|
17
17
|
export * from './LeadsPublicApi';
|
|
18
18
|
export * from './MandrillPublicApi';
|
|
19
|
+
export * from './MarketingApi';
|
|
19
20
|
export * from './MolliePublicApi';
|
|
20
21
|
export * from './NickyPublicApi';
|
|
21
22
|
export * from './NotificationsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./InvoicesApi"), exports);
|
|
|
34
34
|
__exportStar(require("./LeadsApi"), exports);
|
|
35
35
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
36
36
|
__exportStar(require("./MandrillPublicApi"), exports);
|
|
37
|
+
__exportStar(require("./MarketingApi"), exports);
|
|
37
38
|
__exportStar(require("./MolliePublicApi"), exports);
|
|
38
39
|
__exportStar(require("./NickyPublicApi"), exports);
|
|
39
40
|
__exportStar(require("./NotificationsApi"), exports);
|
|
@@ -0,0 +1,47 @@
|
|
|
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 type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { MarketingOrderListItemDto } from './MarketingOrderListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetMarketingSales200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface GetMarketingSales200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<MarketingOrderListItemDto>}
|
|
24
|
+
* @memberof GetMarketingSales200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<MarketingOrderListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof GetMarketingSales200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof GetMarketingSales200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetMarketingSales200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetMarketingSales200Response(value: object): value is GetMarketingSales200Response;
|
|
44
|
+
export declare function GetMarketingSales200ResponseFromJSON(json: any): GetMarketingSales200Response;
|
|
45
|
+
export declare function GetMarketingSales200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMarketingSales200Response;
|
|
46
|
+
export declare function GetMarketingSales200ResponseToJSON(json: any): GetMarketingSales200Response;
|
|
47
|
+
export declare function GetMarketingSales200ResponseToJSONTyped(value?: GetMarketingSales200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfGetMarketingSales200Response = instanceOfGetMarketingSales200Response;
|
|
17
|
+
exports.GetMarketingSales200ResponseFromJSON = GetMarketingSales200ResponseFromJSON;
|
|
18
|
+
exports.GetMarketingSales200ResponseFromJSONTyped = GetMarketingSales200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetMarketingSales200ResponseToJSON = GetMarketingSales200ResponseToJSON;
|
|
20
|
+
exports.GetMarketingSales200ResponseToJSONTyped = GetMarketingSales200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var MarketingOrderListItemDto_1 = require("./MarketingOrderListItemDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetMarketingSales200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetMarketingSales200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetMarketingSales200ResponseFromJSON(json) {
|
|
37
|
+
return GetMarketingSales200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetMarketingSales200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(MarketingOrderListItemDto_1.MarketingOrderListItemDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetMarketingSales200ResponseToJSON(json) {
|
|
50
|
+
return GetMarketingSales200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetMarketingSales200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(MarketingOrderListItemDto_1.MarketingOrderListItemDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MarketingOrderListItemDto
|
|
17
|
+
*/
|
|
18
|
+
export interface MarketingOrderListItemDto {
|
|
19
|
+
/**
|
|
20
|
+
* The order domain ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MarketingOrderListItemDto
|
|
23
|
+
*/
|
|
24
|
+
domainId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The order domain name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MarketingOrderListItemDto
|
|
29
|
+
*/
|
|
30
|
+
domainName: string;
|
|
31
|
+
/**
|
|
32
|
+
* The order base price
|
|
33
|
+
* @type {MoneyDto}
|
|
34
|
+
* @memberof MarketingOrderListItemDto
|
|
35
|
+
*/
|
|
36
|
+
basePrice: MoneyDto;
|
|
37
|
+
/**
|
|
38
|
+
* The order base price converted to EUR
|
|
39
|
+
* @type {MoneyDto}
|
|
40
|
+
* @memberof MarketingOrderListItemDto
|
|
41
|
+
*/
|
|
42
|
+
basePriceEur: MoneyDto | null;
|
|
43
|
+
/**
|
|
44
|
+
* The buyer invoice paid date
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof MarketingOrderListItemDto
|
|
47
|
+
*/
|
|
48
|
+
paidAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the MarketingOrderListItemDto interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfMarketingOrderListItemDto(value: object): value is MarketingOrderListItemDto;
|
|
54
|
+
export declare function MarketingOrderListItemDtoFromJSON(json: any): MarketingOrderListItemDto;
|
|
55
|
+
export declare function MarketingOrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingOrderListItemDto;
|
|
56
|
+
export declare function MarketingOrderListItemDtoToJSON(json: any): MarketingOrderListItemDto;
|
|
57
|
+
export declare function MarketingOrderListItemDtoToJSONTyped(value?: MarketingOrderListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfMarketingOrderListItemDto = instanceOfMarketingOrderListItemDto;
|
|
17
|
+
exports.MarketingOrderListItemDtoFromJSON = MarketingOrderListItemDtoFromJSON;
|
|
18
|
+
exports.MarketingOrderListItemDtoFromJSONTyped = MarketingOrderListItemDtoFromJSONTyped;
|
|
19
|
+
exports.MarketingOrderListItemDtoToJSON = MarketingOrderListItemDtoToJSON;
|
|
20
|
+
exports.MarketingOrderListItemDtoToJSONTyped = MarketingOrderListItemDtoToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MarketingOrderListItemDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMarketingOrderListItemDto(value) {
|
|
26
|
+
if (!('domainId' in value) || value['domainId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('basePriceEur' in value) || value['basePriceEur'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('paidAt' in value) || value['paidAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function MarketingOrderListItemDtoFromJSON(json) {
|
|
39
|
+
return MarketingOrderListItemDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function MarketingOrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'domainId': json['domainId'],
|
|
47
|
+
'domainName': json['domainName'],
|
|
48
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
49
|
+
'basePriceEur': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePriceEur']),
|
|
50
|
+
'paidAt': (new Date(json['paidAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function MarketingOrderListItemDtoToJSON(json) {
|
|
54
|
+
return MarketingOrderListItemDtoToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function MarketingOrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'domainId': value['domainId'],
|
|
63
|
+
'domainName': value['domainName'],
|
|
64
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
65
|
+
'basePriceEur': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePriceEur']),
|
|
66
|
+
'paidAt': ((value['paidAt']).toISOString()),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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 MarketingSalesFiltersDto
|
|
16
|
+
*/
|
|
17
|
+
export interface MarketingSalesFiltersDto {
|
|
18
|
+
/**
|
|
19
|
+
* List of existing TLDs in marketing sales
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof MarketingSalesFiltersDto
|
|
22
|
+
*/
|
|
23
|
+
existingTldList: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* List of existing currencies in marketing sales
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof MarketingSalesFiltersDto
|
|
28
|
+
*/
|
|
29
|
+
existingCurrencies: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MarketingSalesFiltersDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMarketingSalesFiltersDto(value: object): value is MarketingSalesFiltersDto;
|
|
35
|
+
export declare function MarketingSalesFiltersDtoFromJSON(json: any): MarketingSalesFiltersDto;
|
|
36
|
+
export declare function MarketingSalesFiltersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingSalesFiltersDto;
|
|
37
|
+
export declare function MarketingSalesFiltersDtoToJSON(json: any): MarketingSalesFiltersDto;
|
|
38
|
+
export declare function MarketingSalesFiltersDtoToJSONTyped(value?: MarketingSalesFiltersDto | 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.instanceOfMarketingSalesFiltersDto = instanceOfMarketingSalesFiltersDto;
|
|
17
|
+
exports.MarketingSalesFiltersDtoFromJSON = MarketingSalesFiltersDtoFromJSON;
|
|
18
|
+
exports.MarketingSalesFiltersDtoFromJSONTyped = MarketingSalesFiltersDtoFromJSONTyped;
|
|
19
|
+
exports.MarketingSalesFiltersDtoToJSON = MarketingSalesFiltersDtoToJSON;
|
|
20
|
+
exports.MarketingSalesFiltersDtoToJSONTyped = MarketingSalesFiltersDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MarketingSalesFiltersDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMarketingSalesFiltersDto(value) {
|
|
25
|
+
if (!('existingTldList' in value) || value['existingTldList'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('existingCurrencies' in value) || value['existingCurrencies'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function MarketingSalesFiltersDtoFromJSON(json) {
|
|
32
|
+
return MarketingSalesFiltersDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function MarketingSalesFiltersDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'existingTldList': json['existingTldList'],
|
|
40
|
+
'existingCurrencies': json['existingCurrencies'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MarketingSalesFiltersDtoToJSON(json) {
|
|
44
|
+
return MarketingSalesFiltersDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MarketingSalesFiltersDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'existingTldList': value['existingTldList'],
|
|
53
|
+
'existingCurrencies': value['existingCurrencies'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -227,6 +227,7 @@ export * from './GetBuyerLeads200Response';
|
|
|
227
227
|
export * from './GetBuyerSubscriptions200Response';
|
|
228
228
|
export * from './GetBuyerTransfers200Response';
|
|
229
229
|
export * from './GetInvoices200Response';
|
|
230
|
+
export * from './GetMarketingSales200Response';
|
|
230
231
|
export * from './GetSellerChallengesListDto';
|
|
231
232
|
export * from './GetSellerChallengesListDtoChallengesInner';
|
|
232
233
|
export * from './HistoricalMetrics';
|
|
@@ -298,6 +299,8 @@ export * from './MajesticMetrics';
|
|
|
298
299
|
export * from './MajesticTopicTrustFlow';
|
|
299
300
|
export * from './ManualLeadBuyerDto';
|
|
300
301
|
export * from './ManualLeadLeaseToOwnDto';
|
|
302
|
+
export * from './MarketingOrderListItemDto';
|
|
303
|
+
export * from './MarketingSalesFiltersDto';
|
|
301
304
|
export * from './MoneyDecimalDto';
|
|
302
305
|
export * from './MoneyDto';
|
|
303
306
|
export * from './MoneyInput';
|
package/dist/models/index.js
CHANGED
|
@@ -245,6 +245,7 @@ __exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
|
245
245
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
|
246
246
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
247
247
|
__exportStar(require("./GetInvoices200Response"), exports);
|
|
248
|
+
__exportStar(require("./GetMarketingSales200Response"), exports);
|
|
248
249
|
__exportStar(require("./GetSellerChallengesListDto"), exports);
|
|
249
250
|
__exportStar(require("./GetSellerChallengesListDtoChallengesInner"), exports);
|
|
250
251
|
__exportStar(require("./HistoricalMetrics"), exports);
|
|
@@ -316,6 +317,8 @@ __exportStar(require("./MajesticMetrics"), exports);
|
|
|
316
317
|
__exportStar(require("./MajesticTopicTrustFlow"), exports);
|
|
317
318
|
__exportStar(require("./ManualLeadBuyerDto"), exports);
|
|
318
319
|
__exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
320
|
+
__exportStar(require("./MarketingOrderListItemDto"), exports);
|
|
321
|
+
__exportStar(require("./MarketingSalesFiltersDto"), exports);
|
|
319
322
|
__exportStar(require("./MoneyDecimalDto"), exports);
|
|
320
323
|
__exportStar(require("./MoneyDto"), exports);
|
|
321
324
|
__exportStar(require("./MoneyInput"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GetMarketingSales200Response,
|
|
19
|
+
MarketingSalesFiltersDto,
|
|
20
|
+
ValidationException,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
GetMarketingSales200ResponseFromJSON,
|
|
24
|
+
GetMarketingSales200ResponseToJSON,
|
|
25
|
+
MarketingSalesFiltersDtoFromJSON,
|
|
26
|
+
MarketingSalesFiltersDtoToJSON,
|
|
27
|
+
ValidationExceptionFromJSON,
|
|
28
|
+
ValidationExceptionToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface MarketingApiGetMarketingSalesRequest {
|
|
32
|
+
filter?: object;
|
|
33
|
+
page?: number;
|
|
34
|
+
limit?: number;
|
|
35
|
+
sortBy?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class MarketingApi extends runtime.BaseAPI {
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
async getMarketingSalesRaw(requestParameters: MarketingApiGetMarketingSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMarketingSales200Response>> {
|
|
47
|
+
const queryParameters: any = {};
|
|
48
|
+
|
|
49
|
+
if (requestParameters['filter'] != null) {
|
|
50
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (requestParameters['page'] != null) {
|
|
54
|
+
queryParameters['page'] = requestParameters['page'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['limit'] != null) {
|
|
58
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (requestParameters['sortBy'] != null) {
|
|
62
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
|
+
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("bearer", []);
|
|
70
|
+
|
|
71
|
+
if (tokenString) {
|
|
72
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const response = await this.request({
|
|
76
|
+
path: `/marketing/sales`,
|
|
77
|
+
method: 'GET',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
}, initOverrides);
|
|
81
|
+
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetMarketingSales200ResponseFromJSON(jsonValue));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
async getMarketingSales(requestParameters: MarketingApiGetMarketingSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMarketingSales200Response> {
|
|
89
|
+
const response = await this.getMarketingSalesRaw(requestParameters, initOverrides);
|
|
90
|
+
return await response.value();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
async getMarketingSalesFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketingSalesFiltersDto>> {
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
102
|
+
const token = this.configuration.accessToken;
|
|
103
|
+
const tokenString = await token("bearer", []);
|
|
104
|
+
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/marketing/sales/filters`,
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MarketingSalesFiltersDtoFromJSON(jsonValue));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
async getMarketingSalesFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketingSalesFiltersDto> {
|
|
123
|
+
const response = await this.getMarketingSalesFiltersRaw(initOverrides);
|
|
124
|
+
return await response.value();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './InvoicesApi';
|
|
|
18
18
|
export * from './LeadsApi';
|
|
19
19
|
export * from './LeadsPublicApi';
|
|
20
20
|
export * from './MandrillPublicApi';
|
|
21
|
+
export * from './MarketingApi';
|
|
21
22
|
export * from './MolliePublicApi';
|
|
22
23
|
export * from './NickyPublicApi';
|
|
23
24
|
export * from './NotificationsApi';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { MarketingOrderListItemDto } from './MarketingOrderListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
MarketingOrderListItemDtoFromJSON,
|
|
26
|
+
MarketingOrderListItemDtoFromJSONTyped,
|
|
27
|
+
MarketingOrderListItemDtoToJSON,
|
|
28
|
+
MarketingOrderListItemDtoToJSONTyped,
|
|
29
|
+
} from './MarketingOrderListItemDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetMarketingSales200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetMarketingSales200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<MarketingOrderListItemDto>}
|
|
47
|
+
* @memberof GetMarketingSales200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<MarketingOrderListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetMarketingSales200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetMarketingSales200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetMarketingSales200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetMarketingSales200Response(value: object): value is GetMarketingSales200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetMarketingSales200ResponseFromJSON(json: any): GetMarketingSales200Response {
|
|
75
|
+
return GetMarketingSales200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetMarketingSales200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMarketingSales200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(MarketingOrderListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetMarketingSales200ResponseToJSON(json: any): GetMarketingSales200Response {
|
|
91
|
+
return GetMarketingSales200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetMarketingSales200ResponseToJSONTyped(value?: GetMarketingSales200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(MarketingOrderListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MarketingOrderListItemDto
|
|
28
|
+
*/
|
|
29
|
+
export interface MarketingOrderListItemDto {
|
|
30
|
+
/**
|
|
31
|
+
* The order domain ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MarketingOrderListItemDto
|
|
34
|
+
*/
|
|
35
|
+
domainId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The order domain name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MarketingOrderListItemDto
|
|
40
|
+
*/
|
|
41
|
+
domainName: string;
|
|
42
|
+
/**
|
|
43
|
+
* The order base price
|
|
44
|
+
* @type {MoneyDto}
|
|
45
|
+
* @memberof MarketingOrderListItemDto
|
|
46
|
+
*/
|
|
47
|
+
basePrice: MoneyDto;
|
|
48
|
+
/**
|
|
49
|
+
* The order base price converted to EUR
|
|
50
|
+
* @type {MoneyDto}
|
|
51
|
+
* @memberof MarketingOrderListItemDto
|
|
52
|
+
*/
|
|
53
|
+
basePriceEur: MoneyDto | null;
|
|
54
|
+
/**
|
|
55
|
+
* The buyer invoice paid date
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof MarketingOrderListItemDto
|
|
58
|
+
*/
|
|
59
|
+
paidAt: Date;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the MarketingOrderListItemDto interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfMarketingOrderListItemDto(value: object): value is MarketingOrderListItemDto {
|
|
66
|
+
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
67
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
68
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
69
|
+
if (!('basePriceEur' in value) || value['basePriceEur'] === undefined) return false;
|
|
70
|
+
if (!('paidAt' in value) || value['paidAt'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function MarketingOrderListItemDtoFromJSON(json: any): MarketingOrderListItemDto {
|
|
75
|
+
return MarketingOrderListItemDtoFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function MarketingOrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingOrderListItemDto {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'domainId': json['domainId'],
|
|
85
|
+
'domainName': json['domainName'],
|
|
86
|
+
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
87
|
+
'basePriceEur': MoneyDtoFromJSON(json['basePriceEur']),
|
|
88
|
+
'paidAt': (new Date(json['paidAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function MarketingOrderListItemDtoToJSON(json: any): MarketingOrderListItemDto {
|
|
93
|
+
return MarketingOrderListItemDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function MarketingOrderListItemDtoToJSONTyped(value?: MarketingOrderListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'domainId': value['domainId'],
|
|
104
|
+
'domainName': value['domainName'],
|
|
105
|
+
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
106
|
+
'basePriceEur': MoneyDtoToJSON(value['basePriceEur']),
|
|
107
|
+
'paidAt': ((value['paidAt']).toISOString()),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MarketingSalesFiltersDto
|
|
20
|
+
*/
|
|
21
|
+
export interface MarketingSalesFiltersDto {
|
|
22
|
+
/**
|
|
23
|
+
* List of existing TLDs in marketing sales
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof MarketingSalesFiltersDto
|
|
26
|
+
*/
|
|
27
|
+
existingTldList: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* List of existing currencies in marketing sales
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof MarketingSalesFiltersDto
|
|
32
|
+
*/
|
|
33
|
+
existingCurrencies: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MarketingSalesFiltersDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMarketingSalesFiltersDto(value: object): value is MarketingSalesFiltersDto {
|
|
40
|
+
if (!('existingTldList' in value) || value['existingTldList'] === undefined) return false;
|
|
41
|
+
if (!('existingCurrencies' in value) || value['existingCurrencies'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MarketingSalesFiltersDtoFromJSON(json: any): MarketingSalesFiltersDto {
|
|
46
|
+
return MarketingSalesFiltersDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MarketingSalesFiltersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingSalesFiltersDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'existingTldList': json['existingTldList'],
|
|
56
|
+
'existingCurrencies': json['existingCurrencies'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MarketingSalesFiltersDtoToJSON(json: any): MarketingSalesFiltersDto {
|
|
61
|
+
return MarketingSalesFiltersDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MarketingSalesFiltersDtoToJSONTyped(value?: MarketingSalesFiltersDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'existingTldList': value['existingTldList'],
|
|
72
|
+
'existingCurrencies': value['existingCurrencies'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -229,6 +229,7 @@ export * from './GetBuyerLeads200Response';
|
|
|
229
229
|
export * from './GetBuyerSubscriptions200Response';
|
|
230
230
|
export * from './GetBuyerTransfers200Response';
|
|
231
231
|
export * from './GetInvoices200Response';
|
|
232
|
+
export * from './GetMarketingSales200Response';
|
|
232
233
|
export * from './GetSellerChallengesListDto';
|
|
233
234
|
export * from './GetSellerChallengesListDtoChallengesInner';
|
|
234
235
|
export * from './HistoricalMetrics';
|
|
@@ -300,6 +301,8 @@ export * from './MajesticMetrics';
|
|
|
300
301
|
export * from './MajesticTopicTrustFlow';
|
|
301
302
|
export * from './ManualLeadBuyerDto';
|
|
302
303
|
export * from './ManualLeadLeaseToOwnDto';
|
|
304
|
+
export * from './MarketingOrderListItemDto';
|
|
305
|
+
export * from './MarketingSalesFiltersDto';
|
|
303
306
|
export * from './MoneyDecimalDto';
|
|
304
307
|
export * from './MoneyDto';
|
|
305
308
|
export * from './MoneyInput';
|