@randock/nameshift-api-client 0.0.446 → 0.0.447
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/MarketApi.d.ts +71 -0
- package/dist/apis/MarketApi.js +299 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
- package/dist/models/LeadDto.d.ts +6 -0
- package/dist/models/LeadDto.js +4 -0
- package/dist/models/ListLeadsResultItem.d.ts +6 -0
- package/dist/models/ListLeadsResultItem.js +4 -0
- package/dist/models/PopularCategoryDto.d.ts +44 -0
- package/dist/models/PopularCategoryDto.js +59 -0
- package/dist/models/SellerLeadDetails.d.ts +6 -0
- package/dist/models/SellerLeadDetails.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/MarketApi.ts +204 -0
- package/src/apis/index.ts +1 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
- package/src/models/LeadDto.ts +9 -0
- package/src/models/ListLeadsResultItem.ts +9 -0
- package/src/models/PopularCategoryDto.ts +84 -0
- package/src/models/SellerLeadDetails.ts +9 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -20,6 +20,7 @@ src/apis/EppApi.ts
|
|
|
20
20
|
src/apis/InvoicesApi.ts
|
|
21
21
|
src/apis/LeadsApi.ts
|
|
22
22
|
src/apis/LeadsPublicApi.ts
|
|
23
|
+
src/apis/MarketApi.ts
|
|
23
24
|
src/apis/MarketingApi.ts
|
|
24
25
|
src/apis/NotificationsApi.ts
|
|
25
26
|
src/apis/OrdersPublicApi.ts
|
|
@@ -390,6 +391,7 @@ src/models/PartnerAuctionDto.ts
|
|
|
390
391
|
src/models/PartnerDomainFindDto.ts
|
|
391
392
|
src/models/PayAccountPaymentInput.ts
|
|
392
393
|
src/models/PaymentMethodsStatsDto.ts
|
|
394
|
+
src/models/PopularCategoryDto.ts
|
|
393
395
|
src/models/PrivateAccountGetMeResponse.ts
|
|
394
396
|
src/models/PublicAccountInformationDto.ts
|
|
395
397
|
src/models/PublicAuctionListItemDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.447
|
|
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.447 --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
|
+
b16518573bfed486629257b16565a7436b69e47de57a4687cf2b290774663712d2ca7860ddbea923af3e066d5a2b9b11
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { PopularCategoryDto, PublicDomainDto, PublicSaleDto } from '../models/index';
|
|
14
|
+
export interface MarketApiListPopularCategoriesRequest {
|
|
15
|
+
limit?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface MarketApiListRecentSalesRequest {
|
|
18
|
+
limit?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface MarketApiListShowcaseDomainsRequest {
|
|
21
|
+
limit?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface MarketApiListTopSalesRequest {
|
|
24
|
+
limit?: number;
|
|
25
|
+
months?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class MarketApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
33
|
+
* List popular domain categories
|
|
34
|
+
*/
|
|
35
|
+
listPopularCategoriesRaw(requestParameters: MarketApiListPopularCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PopularCategoryDto>>>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
38
|
+
* List popular domain categories
|
|
39
|
+
*/
|
|
40
|
+
listPopularCategories(requestParameters?: MarketApiListPopularCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PopularCategoryDto>>;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
43
|
+
* List recent sales
|
|
44
|
+
*/
|
|
45
|
+
listRecentSalesRaw(requestParameters: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
48
|
+
* List recent sales
|
|
49
|
+
*/
|
|
50
|
+
listRecentSales(requestParameters?: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
|
|
53
|
+
* List showcase domains
|
|
54
|
+
*/
|
|
55
|
+
listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
|
|
58
|
+
* List showcase domains
|
|
59
|
+
*/
|
|
60
|
+
listShowcaseDomains(requestParameters?: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>>;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
63
|
+
* List top sales
|
|
64
|
+
*/
|
|
65
|
+
listTopSalesRaw(requestParameters: MarketApiListTopSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>>;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
68
|
+
* List top sales
|
|
69
|
+
*/
|
|
70
|
+
listTopSales(requestParameters?: MarketApiListTopSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.MarketApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var MarketApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(MarketApi, _super);
|
|
75
|
+
function MarketApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
80
|
+
* List popular domain categories
|
|
81
|
+
*/
|
|
82
|
+
MarketApi.prototype.listPopularCategoriesRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
if (requestParameters['limit'] != null) {
|
|
90
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
91
|
+
}
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
+
_a = headerParameters;
|
|
95
|
+
_b = "apikey";
|
|
96
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
97
|
+
case 1:
|
|
98
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
99
|
+
_c.label = 2;
|
|
100
|
+
case 2: return [4 /*yield*/, this.request({
|
|
101
|
+
path: "/market/categories/popular",
|
|
102
|
+
method: 'GET',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides)];
|
|
106
|
+
case 3:
|
|
107
|
+
response = _c.sent();
|
|
108
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PopularCategoryDtoFromJSON); })];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
115
|
+
* List popular domain categories
|
|
116
|
+
*/
|
|
117
|
+
MarketApi.prototype.listPopularCategories = function () {
|
|
118
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
119
|
+
var response;
|
|
120
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0: return [4 /*yield*/, this.listPopularCategoriesRaw(requestParameters, initOverrides)];
|
|
124
|
+
case 1:
|
|
125
|
+
response = _a.sent();
|
|
126
|
+
return [4 /*yield*/, response.value()];
|
|
127
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
134
|
+
* List recent sales
|
|
135
|
+
*/
|
|
136
|
+
MarketApi.prototype.listRecentSalesRaw = function (requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
139
|
+
return __generator(this, function (_c) {
|
|
140
|
+
switch (_c.label) {
|
|
141
|
+
case 0:
|
|
142
|
+
queryParameters = {};
|
|
143
|
+
if (requestParameters['limit'] != null) {
|
|
144
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
145
|
+
}
|
|
146
|
+
headerParameters = {};
|
|
147
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
148
|
+
_a = headerParameters;
|
|
149
|
+
_b = "apikey";
|
|
150
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
151
|
+
case 1:
|
|
152
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
153
|
+
_c.label = 2;
|
|
154
|
+
case 2: return [4 /*yield*/, this.request({
|
|
155
|
+
path: "/market/sales/recent",
|
|
156
|
+
method: 'GET',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
}, initOverrides)];
|
|
160
|
+
case 3:
|
|
161
|
+
response = _c.sent();
|
|
162
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PublicSaleDtoFromJSON); })];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
169
|
+
* List recent sales
|
|
170
|
+
*/
|
|
171
|
+
MarketApi.prototype.listRecentSales = function () {
|
|
172
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
173
|
+
var response;
|
|
174
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0: return [4 /*yield*/, this.listRecentSalesRaw(requestParameters, initOverrides)];
|
|
178
|
+
case 1:
|
|
179
|
+
response = _a.sent();
|
|
180
|
+
return [4 /*yield*/, response.value()];
|
|
181
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
|
|
188
|
+
* List showcase domains
|
|
189
|
+
*/
|
|
190
|
+
MarketApi.prototype.listShowcaseDomainsRaw = function (requestParameters, initOverrides) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
193
|
+
return __generator(this, function (_c) {
|
|
194
|
+
switch (_c.label) {
|
|
195
|
+
case 0:
|
|
196
|
+
queryParameters = {};
|
|
197
|
+
if (requestParameters['limit'] != null) {
|
|
198
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
199
|
+
}
|
|
200
|
+
headerParameters = {};
|
|
201
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
202
|
+
_a = headerParameters;
|
|
203
|
+
_b = "apikey";
|
|
204
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
205
|
+
case 1:
|
|
206
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
207
|
+
_c.label = 2;
|
|
208
|
+
case 2: return [4 /*yield*/, this.request({
|
|
209
|
+
path: "/market/showcase",
|
|
210
|
+
method: 'GET',
|
|
211
|
+
headers: headerParameters,
|
|
212
|
+
query: queryParameters,
|
|
213
|
+
}, initOverrides)];
|
|
214
|
+
case 3:
|
|
215
|
+
response = _c.sent();
|
|
216
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PublicDomainDtoFromJSON); })];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
|
|
223
|
+
* List showcase domains
|
|
224
|
+
*/
|
|
225
|
+
MarketApi.prototype.listShowcaseDomains = function () {
|
|
226
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
227
|
+
var response;
|
|
228
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.listShowcaseDomainsRaw(requestParameters, 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
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
242
|
+
* List top sales
|
|
243
|
+
*/
|
|
244
|
+
MarketApi.prototype.listTopSalesRaw = function (requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
246
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
247
|
+
return __generator(this, function (_c) {
|
|
248
|
+
switch (_c.label) {
|
|
249
|
+
case 0:
|
|
250
|
+
queryParameters = {};
|
|
251
|
+
if (requestParameters['limit'] != null) {
|
|
252
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
253
|
+
}
|
|
254
|
+
if (requestParameters['months'] != null) {
|
|
255
|
+
queryParameters['months'] = requestParameters['months'];
|
|
256
|
+
}
|
|
257
|
+
headerParameters = {};
|
|
258
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
259
|
+
_a = headerParameters;
|
|
260
|
+
_b = "apikey";
|
|
261
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
262
|
+
case 1:
|
|
263
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
264
|
+
_c.label = 2;
|
|
265
|
+
case 2: return [4 /*yield*/, this.request({
|
|
266
|
+
path: "/market/sales/top",
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
}, initOverrides)];
|
|
271
|
+
case 3:
|
|
272
|
+
response = _c.sent();
|
|
273
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PublicSaleDtoFromJSON); })];
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
280
|
+
* List top sales
|
|
281
|
+
*/
|
|
282
|
+
MarketApi.prototype.listTopSales = function () {
|
|
283
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
284
|
+
var response;
|
|
285
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
286
|
+
return __generator(this, function (_a) {
|
|
287
|
+
switch (_a.label) {
|
|
288
|
+
case 0: return [4 /*yield*/, this.listTopSalesRaw(requestParameters, initOverrides)];
|
|
289
|
+
case 1:
|
|
290
|
+
response = _a.sent();
|
|
291
|
+
return [4 /*yield*/, response.value()];
|
|
292
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
return MarketApi;
|
|
298
|
+
}(runtime.BaseAPI));
|
|
299
|
+
exports.MarketApi = MarketApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './EppApi';
|
|
|
15
15
|
export * from './InvoicesApi';
|
|
16
16
|
export * from './LeadsApi';
|
|
17
17
|
export * from './LeadsPublicApi';
|
|
18
|
+
export * from './MarketApi';
|
|
18
19
|
export * from './MarketingApi';
|
|
19
20
|
export * from './NotificationsApi';
|
|
20
21
|
export * from './OrdersPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./EppApi"), exports);
|
|
|
33
33
|
__exportStar(require("./InvoicesApi"), exports);
|
|
34
34
|
__exportStar(require("./LeadsApi"), exports);
|
|
35
35
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
36
|
+
__exportStar(require("./MarketApi"), exports);
|
|
36
37
|
__exportStar(require("./MarketingApi"), exports);
|
|
37
38
|
__exportStar(require("./NotificationsApi"), exports);
|
|
38
39
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
@@ -88,6 +88,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
88
88
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
89
89
|
*/
|
|
90
90
|
unreadSellerMessagesNumber: number;
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
95
|
+
*/
|
|
96
|
+
messagesInRowLimit: number;
|
|
91
97
|
/**
|
|
92
98
|
* URL for completing order payment, if available.
|
|
93
99
|
* @type {string}
|
|
@@ -89,6 +89,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
|
|
|
89
89
|
return false;
|
|
90
90
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
91
91
|
return false;
|
|
92
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
93
|
+
return false;
|
|
92
94
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
93
95
|
return false;
|
|
94
96
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -134,6 +136,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
|
|
|
134
136
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
135
137
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
136
138
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
139
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
137
140
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
138
141
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
139
142
|
'manualType': json['manualType'],
|
|
@@ -168,6 +171,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
|
|
|
168
171
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
169
172
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
170
173
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
174
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
171
175
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
172
176
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
173
177
|
'manualType': value['manualType'],
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -87,6 +87,12 @@ export interface LeadDto {
|
|
|
87
87
|
* @memberof LeadDto
|
|
88
88
|
*/
|
|
89
89
|
unreadSellerMessagesNumber: number;
|
|
90
|
+
/**
|
|
91
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof LeadDto
|
|
94
|
+
*/
|
|
95
|
+
messagesInRowLimit: number;
|
|
90
96
|
/**
|
|
91
97
|
* URL for completing order payment, if available.
|
|
92
98
|
* @type {string}
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -88,6 +88,8 @@ function instanceOfLeadDto(value) {
|
|
|
88
88
|
return false;
|
|
89
89
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
90
90
|
return false;
|
|
91
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
92
|
+
return false;
|
|
91
93
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
92
94
|
return false;
|
|
93
95
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -131,6 +133,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
131
133
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
132
134
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
133
135
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
136
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
134
137
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
135
138
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
136
139
|
'manualType': json['manualType'],
|
|
@@ -164,6 +167,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
164
167
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
165
168
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
166
169
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
170
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
167
171
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
168
172
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
169
173
|
'manualType': value['manualType'],
|
|
@@ -88,6 +88,12 @@ export interface ListLeadsResultItem {
|
|
|
88
88
|
* @memberof ListLeadsResultItem
|
|
89
89
|
*/
|
|
90
90
|
unreadSellerMessagesNumber: number;
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ListLeadsResultItem
|
|
95
|
+
*/
|
|
96
|
+
messagesInRowLimit: number;
|
|
91
97
|
/**
|
|
92
98
|
* URL for completing order payment, if available.
|
|
93
99
|
* @type {string}
|
|
@@ -108,6 +108,8 @@ function instanceOfListLeadsResultItem(value) {
|
|
|
108
108
|
return false;
|
|
109
109
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
110
110
|
return false;
|
|
111
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
112
|
+
return false;
|
|
111
113
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
112
114
|
return false;
|
|
113
115
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -167,6 +169,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
167
169
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
168
170
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
169
171
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
172
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
170
173
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
171
174
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
172
175
|
'manualType': json['manualType'],
|
|
@@ -208,6 +211,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
|
|
|
208
211
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
209
212
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
210
213
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
214
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
211
215
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
212
216
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
213
217
|
'manualType': value['manualType'],
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 PopularCategoryDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PopularCategoryDto {
|
|
18
|
+
/**
|
|
19
|
+
* Category ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PopularCategoryDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Category name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PopularCategoryDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of domains linked to the category.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PopularCategoryDto
|
|
34
|
+
*/
|
|
35
|
+
domainCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PopularCategoryDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPopularCategoryDto(value: object): value is PopularCategoryDto;
|
|
41
|
+
export declare function PopularCategoryDtoFromJSON(json: any): PopularCategoryDto;
|
|
42
|
+
export declare function PopularCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PopularCategoryDto;
|
|
43
|
+
export declare function PopularCategoryDtoToJSON(json: any): PopularCategoryDto;
|
|
44
|
+
export declare function PopularCategoryDtoToJSONTyped(value?: PopularCategoryDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfPopularCategoryDto = instanceOfPopularCategoryDto;
|
|
17
|
+
exports.PopularCategoryDtoFromJSON = PopularCategoryDtoFromJSON;
|
|
18
|
+
exports.PopularCategoryDtoFromJSONTyped = PopularCategoryDtoFromJSONTyped;
|
|
19
|
+
exports.PopularCategoryDtoToJSON = PopularCategoryDtoToJSON;
|
|
20
|
+
exports.PopularCategoryDtoToJSONTyped = PopularCategoryDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PopularCategoryDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPopularCategoryDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('domainCount' in value) || value['domainCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PopularCategoryDtoFromJSON(json) {
|
|
34
|
+
return PopularCategoryDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PopularCategoryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'domainCount': json['domainCount'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PopularCategoryDtoToJSON(json) {
|
|
47
|
+
return PopularCategoryDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PopularCategoryDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'domainCount': value['domainCount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -89,6 +89,12 @@ export interface SellerLeadDetails {
|
|
|
89
89
|
* @memberof SellerLeadDetails
|
|
90
90
|
*/
|
|
91
91
|
unreadSellerMessagesNumber: number;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof SellerLeadDetails
|
|
96
|
+
*/
|
|
97
|
+
messagesInRowLimit: number;
|
|
92
98
|
/**
|
|
93
99
|
* URL for completing order payment, if available.
|
|
94
100
|
* @type {string}
|
|
@@ -90,6 +90,8 @@ function instanceOfSellerLeadDetails(value) {
|
|
|
90
90
|
return false;
|
|
91
91
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
92
92
|
return false;
|
|
93
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
94
|
+
return false;
|
|
93
95
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
94
96
|
return false;
|
|
95
97
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -139,6 +141,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
139
141
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
140
142
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
141
143
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
144
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
142
145
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
143
146
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
144
147
|
'manualType': json['manualType'],
|
|
@@ -175,6 +178,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
175
178
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
176
179
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
177
180
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
181
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
178
182
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
179
183
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
180
184
|
'manualType': value['manualType'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -354,6 +354,7 @@ export * from './PartnerAuctionDto';
|
|
|
354
354
|
export * from './PartnerDomainFindDto';
|
|
355
355
|
export * from './PayAccountPaymentInput';
|
|
356
356
|
export * from './PaymentMethodsStatsDto';
|
|
357
|
+
export * from './PopularCategoryDto';
|
|
357
358
|
export * from './PrivateAccountGetMeResponse';
|
|
358
359
|
export * from './PublicAccountInformationDto';
|
|
359
360
|
export * from './PublicAuctionListItemDto';
|
package/dist/models/index.js
CHANGED
|
@@ -372,6 +372,7 @@ __exportStar(require("./PartnerAuctionDto"), exports);
|
|
|
372
372
|
__exportStar(require("./PartnerDomainFindDto"), exports);
|
|
373
373
|
__exportStar(require("./PayAccountPaymentInput"), exports);
|
|
374
374
|
__exportStar(require("./PaymentMethodsStatsDto"), exports);
|
|
375
|
+
__exportStar(require("./PopularCategoryDto"), exports);
|
|
375
376
|
__exportStar(require("./PrivateAccountGetMeResponse"), exports);
|
|
376
377
|
__exportStar(require("./PublicAccountInformationDto"), exports);
|
|
377
378
|
__exportStar(require("./PublicAuctionListItemDto"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
PopularCategoryDto,
|
|
19
|
+
PublicDomainDto,
|
|
20
|
+
PublicSaleDto,
|
|
21
|
+
ValidationException,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
PopularCategoryDtoFromJSON,
|
|
25
|
+
PopularCategoryDtoToJSON,
|
|
26
|
+
PublicDomainDtoFromJSON,
|
|
27
|
+
PublicDomainDtoToJSON,
|
|
28
|
+
PublicSaleDtoFromJSON,
|
|
29
|
+
PublicSaleDtoToJSON,
|
|
30
|
+
ValidationExceptionFromJSON,
|
|
31
|
+
ValidationExceptionToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface MarketApiListPopularCategoriesRequest {
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface MarketApiListRecentSalesRequest {
|
|
39
|
+
limit?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface MarketApiListShowcaseDomainsRequest {
|
|
43
|
+
limit?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface MarketApiListTopSalesRequest {
|
|
47
|
+
limit?: number;
|
|
48
|
+
months?: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export class MarketApi extends runtime.BaseAPI {
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
58
|
+
* List popular domain categories
|
|
59
|
+
*/
|
|
60
|
+
async listPopularCategoriesRaw(requestParameters: MarketApiListPopularCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PopularCategoryDto>>> {
|
|
61
|
+
const queryParameters: any = {};
|
|
62
|
+
|
|
63
|
+
if (requestParameters['limit'] != null) {
|
|
64
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
+
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/market/categories/popular`,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PopularCategoryDtoFromJSON));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
85
|
+
* List popular domain categories
|
|
86
|
+
*/
|
|
87
|
+
async listPopularCategories(requestParameters: MarketApiListPopularCategoriesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PopularCategoryDto>> {
|
|
88
|
+
const response = await this.listPopularCategoriesRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
94
|
+
* List recent sales
|
|
95
|
+
*/
|
|
96
|
+
async listRecentSalesRaw(requestParameters: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>> {
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
if (requestParameters['limit'] != null) {
|
|
100
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/market/sales/recent`,
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicSaleDtoFromJSON));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
121
|
+
* List recent sales
|
|
122
|
+
*/
|
|
123
|
+
async listRecentSales(requestParameters: MarketApiListRecentSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>> {
|
|
124
|
+
const response = await this.listRecentSalesRaw(requestParameters, initOverrides);
|
|
125
|
+
return await response.value();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
|
|
130
|
+
* List showcase domains
|
|
131
|
+
*/
|
|
132
|
+
async listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>> {
|
|
133
|
+
const queryParameters: any = {};
|
|
134
|
+
|
|
135
|
+
if (requestParameters['limit'] != null) {
|
|
136
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
140
|
+
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const response = await this.request({
|
|
146
|
+
path: `/market/showcase`,
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicDomainDtoFromJSON));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Returns a showcase of listed domains: the public catalogue in its default ranking (domain authority).
|
|
157
|
+
* List showcase domains
|
|
158
|
+
*/
|
|
159
|
+
async listShowcaseDomains(requestParameters: MarketApiListShowcaseDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>> {
|
|
160
|
+
const response = await this.listShowcaseDomainsRaw(requestParameters, initOverrides);
|
|
161
|
+
return await response.value();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
166
|
+
* List top sales
|
|
167
|
+
*/
|
|
168
|
+
async listTopSalesRaw(requestParameters: MarketApiListTopSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>> {
|
|
169
|
+
const queryParameters: any = {};
|
|
170
|
+
|
|
171
|
+
if (requestParameters['limit'] != null) {
|
|
172
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (requestParameters['months'] != null) {
|
|
176
|
+
queryParameters['months'] = requestParameters['months'];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
180
|
+
|
|
181
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
182
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const response = await this.request({
|
|
186
|
+
path: `/market/sales/top`,
|
|
187
|
+
method: 'GET',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
}, initOverrides);
|
|
191
|
+
|
|
192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicSaleDtoFromJSON));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
197
|
+
* List top sales
|
|
198
|
+
*/
|
|
199
|
+
async listTopSales(requestParameters: MarketApiListTopSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>> {
|
|
200
|
+
const response = await this.listTopSalesRaw(requestParameters, initOverrides);
|
|
201
|
+
return await response.value();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './EppApi';
|
|
|
17
17
|
export * from './InvoicesApi';
|
|
18
18
|
export * from './LeadsApi';
|
|
19
19
|
export * from './LeadsPublicApi';
|
|
20
|
+
export * from './MarketApi';
|
|
20
21
|
export * from './MarketingApi';
|
|
21
22
|
export * from './NotificationsApi';
|
|
22
23
|
export * from './OrdersPublicApi';
|
|
@@ -135,6 +135,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
135
135
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
136
136
|
*/
|
|
137
137
|
unreadSellerMessagesNumber: number;
|
|
138
|
+
/**
|
|
139
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
142
|
+
*/
|
|
143
|
+
messagesInRowLimit: number;
|
|
138
144
|
/**
|
|
139
145
|
* URL for completing order payment, if available.
|
|
140
146
|
* @type {string}
|
|
@@ -271,6 +277,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
|
|
|
271
277
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
272
278
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
273
279
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
280
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
274
281
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
275
282
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
276
283
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -307,6 +314,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
307
314
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
|
|
308
315
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
309
316
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
317
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
310
318
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
311
319
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
312
320
|
'manualType': json['manualType'],
|
|
@@ -344,6 +352,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
344
352
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
|
|
345
353
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
346
354
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
355
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
347
356
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
348
357
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
349
358
|
'manualType': value['manualType'],
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -128,6 +128,12 @@ export interface LeadDto {
|
|
|
128
128
|
* @memberof LeadDto
|
|
129
129
|
*/
|
|
130
130
|
unreadSellerMessagesNumber: number;
|
|
131
|
+
/**
|
|
132
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof LeadDto
|
|
135
|
+
*/
|
|
136
|
+
messagesInRowLimit: number;
|
|
131
137
|
/**
|
|
132
138
|
* URL for completing order payment, if available.
|
|
133
139
|
* @type {string}
|
|
@@ -258,6 +264,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
258
264
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
259
265
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
260
266
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
267
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
261
268
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
262
269
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
263
270
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -293,6 +300,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
293
300
|
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
294
301
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
295
302
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
303
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
296
304
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
297
305
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
298
306
|
'manualType': json['manualType'],
|
|
@@ -329,6 +337,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
329
337
|
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
330
338
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
331
339
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
340
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
332
341
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
333
342
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
334
343
|
'manualType': value['manualType'],
|
|
@@ -135,6 +135,12 @@ export interface ListLeadsResultItem {
|
|
|
135
135
|
* @memberof ListLeadsResultItem
|
|
136
136
|
*/
|
|
137
137
|
unreadSellerMessagesNumber: number;
|
|
138
|
+
/**
|
|
139
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof ListLeadsResultItem
|
|
142
|
+
*/
|
|
143
|
+
messagesInRowLimit: number;
|
|
138
144
|
/**
|
|
139
145
|
* URL for completing order payment, if available.
|
|
140
146
|
* @type {string}
|
|
@@ -336,6 +342,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
|
|
|
336
342
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
337
343
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
338
344
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
345
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
339
346
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
340
347
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
341
348
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -379,6 +386,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
379
386
|
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
380
387
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
381
388
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
389
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
382
390
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
383
391
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
384
392
|
'manualType': json['manualType'],
|
|
@@ -423,6 +431,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
|
|
|
423
431
|
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
424
432
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
425
433
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
434
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
426
435
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
427
436
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
428
437
|
'manualType': value['manualType'],
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 PopularCategoryDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PopularCategoryDto {
|
|
22
|
+
/**
|
|
23
|
+
* Category ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PopularCategoryDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Category name.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PopularCategoryDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of domains linked to the category.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PopularCategoryDto
|
|
38
|
+
*/
|
|
39
|
+
domainCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PopularCategoryDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPopularCategoryDto(value: object): value is PopularCategoryDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('domainCount' in value) || value['domainCount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PopularCategoryDtoFromJSON(json: any): PopularCategoryDto {
|
|
53
|
+
return PopularCategoryDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PopularCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PopularCategoryDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'domainCount': json['domainCount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PopularCategoryDtoToJSON(json: any): PopularCategoryDto {
|
|
69
|
+
return PopularCategoryDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PopularCategoryDtoToJSONTyped(value?: PopularCategoryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'domainCount': value['domainCount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -142,6 +142,12 @@ export interface SellerLeadDetails {
|
|
|
142
142
|
* @memberof SellerLeadDetails
|
|
143
143
|
*/
|
|
144
144
|
unreadSellerMessagesNumber: number;
|
|
145
|
+
/**
|
|
146
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
147
|
+
* @type {number}
|
|
148
|
+
* @memberof SellerLeadDetails
|
|
149
|
+
*/
|
|
150
|
+
messagesInRowLimit: number;
|
|
145
151
|
/**
|
|
146
152
|
* URL for completing order payment, if available.
|
|
147
153
|
* @type {string}
|
|
@@ -290,6 +296,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
|
|
|
290
296
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
291
297
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
292
298
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
299
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
293
300
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
294
301
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
295
302
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -328,6 +335,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
328
335
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
|
|
329
336
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
330
337
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
338
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
331
339
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
332
340
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
333
341
|
'manualType': json['manualType'],
|
|
@@ -367,6 +375,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
367
375
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
|
|
368
376
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
369
377
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
378
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
370
379
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
371
380
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
372
381
|
'manualType': value['manualType'],
|
package/src/models/index.ts
CHANGED
|
@@ -356,6 +356,7 @@ export * from './PartnerAuctionDto';
|
|
|
356
356
|
export * from './PartnerDomainFindDto';
|
|
357
357
|
export * from './PayAccountPaymentInput';
|
|
358
358
|
export * from './PaymentMethodsStatsDto';
|
|
359
|
+
export * from './PopularCategoryDto';
|
|
359
360
|
export * from './PrivateAccountGetMeResponse';
|
|
360
361
|
export * from './PublicAccountInformationDto';
|
|
361
362
|
export * from './PublicAuctionListItemDto';
|