@randock/nameshift-api-client 0.0.346 → 0.0.348
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -1
- package/README.md +3 -3
- package/dist/apis/PartnerApi.d.ts +43 -0
- package/dist/apis/{PartnerDomainsApi.js → PartnerApi.js} +78 -16
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/dist/models/ListAuctions200Response.d.ts +59 -0
- package/dist/models/ListAuctions200Response.js +70 -0
- package/dist/models/PartnerAuctionDto.d.ts +69 -0
- package/dist/models/PartnerAuctionDto.js +76 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/{PartnerDomainsApi.ts → PartnerApi.ts} +54 -4
- package/src/apis/index.ts +1 -1
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
- package/src/models/ListAuctions200Response.ts +117 -0
- package/src/models/PartnerAuctionDto.ts +128 -0
- package/src/models/index.ts +2 -0
- package/dist/apis/PartnerDomainsApi.d.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -20,7 +20,7 @@ src/apis/LeadsApi.ts
|
|
|
20
20
|
src/apis/LeadsPublicApi.ts
|
|
21
21
|
src/apis/NotificationsApi.ts
|
|
22
22
|
src/apis/OrdersPublicApi.ts
|
|
23
|
-
src/apis/
|
|
23
|
+
src/apis/PartnerApi.ts
|
|
24
24
|
src/apis/SalesPublicApi.ts
|
|
25
25
|
src/apis/StatsApi.ts
|
|
26
26
|
src/apis/StripePublicApi.ts
|
|
@@ -235,6 +235,7 @@ src/models/List200Response3.ts
|
|
|
235
235
|
src/models/ListAccountMetricsDto.ts
|
|
236
236
|
src/models/ListAccountUserDto.ts
|
|
237
237
|
src/models/ListAccounts200Response.ts
|
|
238
|
+
src/models/ListAuctions200Response.ts
|
|
238
239
|
src/models/ListBankAccounts200Response.ts
|
|
239
240
|
src/models/ListBuyerNotifications200Response.ts
|
|
240
241
|
src/models/ListDomains200Response.ts
|
|
@@ -268,6 +269,7 @@ src/models/PaginateResponse.ts
|
|
|
268
269
|
src/models/PaginateResponseLinks.ts
|
|
269
270
|
src/models/PaginateResponseMeta.ts
|
|
270
271
|
src/models/ParsedDomainDto.ts
|
|
272
|
+
src/models/PartnerAuctionDto.ts
|
|
271
273
|
src/models/PrivateAccountGetMeResponse.ts
|
|
272
274
|
src/models/PublicAccountInformationDto.ts
|
|
273
275
|
src/models/PublicDomainDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.348
|
|
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.348 --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
|
+
70bef346b71bd882a28888ca04dfa1796a96e123148a1a6be2a0965d7fd7886dc6cb4cbe2f4e08c1992f5e6bc969b344
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { ListAuctions200Response, ListDomainsWithUpdatedPricing200Response } from '../models/index';
|
|
14
|
+
export interface PartnerApiListAuctionsRequest {
|
|
15
|
+
limit?: number;
|
|
16
|
+
cursor?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PartnerApiListDomainsWithUpdatedPricingRequest {
|
|
19
|
+
dateFrom: string;
|
|
20
|
+
limit?: number;
|
|
21
|
+
cursor?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class PartnerApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
listAuctionsRaw(requestParameters: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAuctions200Response>>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
listAuctions(requestParameters?: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAuctions200Response>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
listDomainsWithUpdatedPricingRaw(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
listDomainsWithUpdatedPricing(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response>;
|
|
43
|
+
}
|
|
@@ -64,25 +64,80 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.PartnerApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var PartnerApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(PartnerApi, _super);
|
|
75
|
+
function PartnerApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
PartnerApi.prototype.listAuctionsRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, response;
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters['limit'] != null) {
|
|
89
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['cursor'] != null) {
|
|
92
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
93
|
+
}
|
|
94
|
+
headerParameters = {};
|
|
95
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
96
|
+
_a = headerParameters;
|
|
97
|
+
_b = "apikey";
|
|
98
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
99
|
+
case 1:
|
|
100
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
101
|
+
_c.label = 2;
|
|
102
|
+
case 2: return [4 /*yield*/, this.request({
|
|
103
|
+
path: "/partner/auctions",
|
|
104
|
+
method: 'GET',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
}, initOverrides)];
|
|
108
|
+
case 3:
|
|
109
|
+
response = _c.sent();
|
|
110
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListAuctions200ResponseFromJSON)(jsonValue); })];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
PartnerApi.prototype.listAuctions = function () {
|
|
119
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
120
|
+
var response;
|
|
121
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
84
122
|
return __generator(this, function (_a) {
|
|
85
123
|
switch (_a.label) {
|
|
124
|
+
case 0: return [4 /*yield*/, this.listAuctionsRaw(requestParameters, initOverrides)];
|
|
125
|
+
case 1:
|
|
126
|
+
response = _a.sent();
|
|
127
|
+
return [4 /*yield*/, response.value()];
|
|
128
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
PartnerApi.prototype.listDomainsWithUpdatedPricingRaw = 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) {
|
|
86
141
|
case 0:
|
|
87
142
|
if (requestParameters['dateFrom'] == null) {
|
|
88
143
|
throw new runtime.RequiredError('dateFrom', 'Required parameter "dateFrom" was null or undefined when calling listDomainsWithUpdatedPricing().');
|
|
@@ -98,14 +153,21 @@ var PartnerDomainsApi = /** @class */ (function (_super) {
|
|
|
98
153
|
queryParameters['cursor'] = requestParameters['cursor'];
|
|
99
154
|
}
|
|
100
155
|
headerParameters = {};
|
|
101
|
-
return [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
query: queryParameters,
|
|
106
|
-
}, initOverrides)];
|
|
156
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
157
|
+
_a = headerParameters;
|
|
158
|
+
_b = "apikey";
|
|
159
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
107
160
|
case 1:
|
|
108
|
-
|
|
161
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
162
|
+
_c.label = 2;
|
|
163
|
+
case 2: return [4 /*yield*/, this.request({
|
|
164
|
+
path: "/partner/domains/updated-prices",
|
|
165
|
+
method: 'GET',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides)];
|
|
169
|
+
case 3:
|
|
170
|
+
response = _c.sent();
|
|
109
171
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListDomainsWithUpdatedPricing200ResponseFromJSON)(jsonValue); })];
|
|
110
172
|
}
|
|
111
173
|
});
|
|
@@ -114,7 +176,7 @@ var PartnerDomainsApi = /** @class */ (function (_super) {
|
|
|
114
176
|
/**
|
|
115
177
|
*
|
|
116
178
|
*/
|
|
117
|
-
|
|
179
|
+
PartnerApi.prototype.listDomainsWithUpdatedPricing = function (requestParameters, initOverrides) {
|
|
118
180
|
return __awaiter(this, void 0, void 0, function () {
|
|
119
181
|
var response;
|
|
120
182
|
return __generator(this, function (_a) {
|
|
@@ -128,6 +190,6 @@ var PartnerDomainsApi = /** @class */ (function (_super) {
|
|
|
128
190
|
});
|
|
129
191
|
});
|
|
130
192
|
};
|
|
131
|
-
return
|
|
193
|
+
return PartnerApi;
|
|
132
194
|
}(runtime.BaseAPI));
|
|
133
|
-
exports.
|
|
195
|
+
exports.PartnerApi = PartnerApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './LeadsApi';
|
|
|
15
15
|
export * from './LeadsPublicApi';
|
|
16
16
|
export * from './NotificationsApi';
|
|
17
17
|
export * from './OrdersPublicApi';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './PartnerApi';
|
|
19
19
|
export * from './SalesPublicApi';
|
|
20
20
|
export * from './StatsApi';
|
|
21
21
|
export * from './StripePublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __exportStar(require("./LeadsApi"), exports);
|
|
|
33
33
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
34
34
|
__exportStar(require("./NotificationsApi"), exports);
|
|
35
35
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
36
|
-
__exportStar(require("./
|
|
36
|
+
__exportStar(require("./PartnerApi"), exports);
|
|
37
37
|
__exportStar(require("./SalesPublicApi"), exports);
|
|
38
38
|
__exportStar(require("./StatsApi"), exports);
|
|
39
39
|
__exportStar(require("./StripePublicApi"), exports);
|
|
@@ -143,6 +143,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
143
143
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
144
144
|
*/
|
|
145
145
|
auction: DomainAuctionDto | null;
|
|
146
|
+
/**
|
|
147
|
+
* Whether the domain has an open lead
|
|
148
|
+
* @type {boolean}
|
|
149
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
150
|
+
*/
|
|
151
|
+
hasAcceptedLead: boolean;
|
|
146
152
|
/**
|
|
147
153
|
*
|
|
148
154
|
* @type {AccountDto}
|
|
@@ -69,6 +69,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('auction' in value) || value['auction'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined)
|
|
73
|
+
return false;
|
|
72
74
|
if (!('account' in value) || value['account'] === undefined)
|
|
73
75
|
return false;
|
|
74
76
|
return true;
|
|
@@ -101,6 +103,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
101
103
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
102
104
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
|
|
103
105
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
|
|
106
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
104
107
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
105
108
|
};
|
|
106
109
|
}
|
|
@@ -133,6 +136,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
|
|
|
133
136
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
134
137
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
|
|
135
138
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
|
|
139
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
136
140
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
137
141
|
};
|
|
138
142
|
}
|
|
@@ -143,6 +143,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
143
143
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
144
144
|
*/
|
|
145
145
|
auction: DomainAuctionDto | null;
|
|
146
|
+
/**
|
|
147
|
+
* Whether the domain has an open lead
|
|
148
|
+
* @type {boolean}
|
|
149
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
150
|
+
*/
|
|
151
|
+
hasAcceptedLead: boolean;
|
|
146
152
|
/**
|
|
147
153
|
*
|
|
148
154
|
* @type {AccountDto}
|
|
@@ -69,6 +69,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('auction' in value) || value['auction'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined)
|
|
73
|
+
return false;
|
|
72
74
|
if (!('account' in value) || value['account'] === undefined)
|
|
73
75
|
return false;
|
|
74
76
|
if (!('hasAuction' in value) || value['hasAuction'] === undefined)
|
|
@@ -103,6 +105,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
|
|
|
103
105
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
104
106
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
|
|
105
107
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
|
|
108
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
106
109
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
107
110
|
'hasAuction': json['hasAuction'],
|
|
108
111
|
};
|
|
@@ -136,6 +139,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
|
|
|
136
139
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
137
140
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
|
|
138
141
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
|
|
142
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
139
143
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
140
144
|
'hasAuction': value['hasAuction'],
|
|
141
145
|
};
|
|
@@ -143,6 +143,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
143
143
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
144
144
|
*/
|
|
145
145
|
auction: DomainAuctionDto | null;
|
|
146
|
+
/**
|
|
147
|
+
* Whether the domain has an open lead
|
|
148
|
+
* @type {boolean}
|
|
149
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
150
|
+
*/
|
|
151
|
+
hasAcceptedLead: boolean;
|
|
146
152
|
/**
|
|
147
153
|
*
|
|
148
154
|
* @type {AccountDto}
|
|
@@ -69,6 +69,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('auction' in value) || value['auction'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined)
|
|
73
|
+
return false;
|
|
72
74
|
if (!('hijacker' in value) || value['hijacker'] === undefined)
|
|
73
75
|
return false;
|
|
74
76
|
if (!('account' in value) || value['account'] === undefined)
|
|
@@ -103,6 +105,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
103
105
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
104
106
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
|
|
105
107
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
|
|
108
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
106
109
|
'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
|
|
107
110
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
108
111
|
};
|
|
@@ -136,6 +139,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
|
|
|
136
139
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
137
140
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
|
|
138
141
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
|
|
142
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
139
143
|
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
|
|
140
144
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
141
145
|
};
|
|
@@ -149,6 +149,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
149
149
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
150
150
|
*/
|
|
151
151
|
auction: DomainAuctionDto | null;
|
|
152
|
+
/**
|
|
153
|
+
* Whether the domain has an open lead
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
156
|
+
*/
|
|
157
|
+
hasAcceptedLead: boolean;
|
|
152
158
|
}
|
|
153
159
|
/**
|
|
154
160
|
* Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDto interface.
|
|
@@ -71,6 +71,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
|
|
|
71
71
|
return false;
|
|
72
72
|
if (!('auction' in value) || value['auction'] === undefined)
|
|
73
73
|
return false;
|
|
74
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined)
|
|
75
|
+
return false;
|
|
74
76
|
return true;
|
|
75
77
|
}
|
|
76
78
|
function IntersectionDomainDtoWithSeoMetricsDtoFromJSON(json) {
|
|
@@ -102,6 +104,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
|
|
|
102
104
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
103
105
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
|
|
104
106
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
|
|
107
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
105
108
|
};
|
|
106
109
|
}
|
|
107
110
|
function IntersectionDomainDtoWithSeoMetricsDtoToJSON(json) {
|
|
@@ -134,5 +137,6 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
|
|
|
134
137
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
135
138
|
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
|
|
136
139
|
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
|
|
140
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
137
141
|
};
|
|
138
142
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
13
|
+
import type { PartnerAuctionDto } from './PartnerAuctionDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ListAuctions200Response
|
|
18
|
+
*/
|
|
19
|
+
export interface ListAuctions200Response {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ListAuctions200Response
|
|
24
|
+
*/
|
|
25
|
+
limit: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ListAuctions200Response
|
|
30
|
+
*/
|
|
31
|
+
type: ListAuctions200ResponseTypeEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CursorBasedPageInfo}
|
|
35
|
+
* @memberof ListAuctions200Response
|
|
36
|
+
*/
|
|
37
|
+
pagination: CursorBasedPageInfo;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<PartnerAuctionDto>}
|
|
41
|
+
* @memberof ListAuctions200Response
|
|
42
|
+
*/
|
|
43
|
+
data?: Array<PartnerAuctionDto>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const ListAuctions200ResponseTypeEnum: {
|
|
49
|
+
readonly CURSOR: "cursor";
|
|
50
|
+
};
|
|
51
|
+
export type ListAuctions200ResponseTypeEnum = typeof ListAuctions200ResponseTypeEnum[keyof typeof ListAuctions200ResponseTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ListAuctions200Response interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfListAuctions200Response(value: object): value is ListAuctions200Response;
|
|
56
|
+
export declare function ListAuctions200ResponseFromJSON(json: any): ListAuctions200Response;
|
|
57
|
+
export declare function ListAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuctions200Response;
|
|
58
|
+
export declare function ListAuctions200ResponseToJSON(json: any): ListAuctions200Response;
|
|
59
|
+
export declare function ListAuctions200ResponseToJSONTyped(value?: ListAuctions200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.ListAuctions200ResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfListAuctions200Response = instanceOfListAuctions200Response;
|
|
18
|
+
exports.ListAuctions200ResponseFromJSON = ListAuctions200ResponseFromJSON;
|
|
19
|
+
exports.ListAuctions200ResponseFromJSONTyped = ListAuctions200ResponseFromJSONTyped;
|
|
20
|
+
exports.ListAuctions200ResponseToJSON = ListAuctions200ResponseToJSON;
|
|
21
|
+
exports.ListAuctions200ResponseToJSONTyped = ListAuctions200ResponseToJSONTyped;
|
|
22
|
+
var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
|
|
23
|
+
var PartnerAuctionDto_1 = require("./PartnerAuctionDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ListAuctions200ResponseTypeEnum = {
|
|
28
|
+
CURSOR: 'cursor'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ListAuctions200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfListAuctions200Response(value) {
|
|
34
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('pagination' in value) || value['pagination'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ListAuctions200ResponseFromJSON(json) {
|
|
43
|
+
return ListAuctions200ResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ListAuctions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'limit': json['limit'],
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoFromJSON)(json['pagination']),
|
|
53
|
+
'data': json['data'] == null ? undefined : (json['data'].map(PartnerAuctionDto_1.PartnerAuctionDtoFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function ListAuctions200ResponseToJSON(json) {
|
|
57
|
+
return ListAuctions200ResponseToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function ListAuctions200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'limit': value['limit'],
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoToJSON)(value['pagination']),
|
|
68
|
+
'data': value['data'] == null ? undefined : (value['data'].map(PartnerAuctionDto_1.PartnerAuctionDtoToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 PartnerAuctionDto
|
|
17
|
+
*/
|
|
18
|
+
export interface PartnerAuctionDto {
|
|
19
|
+
/**
|
|
20
|
+
* Auction ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PartnerAuctionDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Domain display name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PartnerAuctionDto
|
|
29
|
+
*/
|
|
30
|
+
domainDisplayName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Number of bids
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PartnerAuctionDto
|
|
35
|
+
*/
|
|
36
|
+
numberOfBids: number;
|
|
37
|
+
/**
|
|
38
|
+
* Highest bid amount
|
|
39
|
+
* @type {MoneyDto}
|
|
40
|
+
* @memberof PartnerAuctionDto
|
|
41
|
+
*/
|
|
42
|
+
highestBid: MoneyDto | null;
|
|
43
|
+
/**
|
|
44
|
+
* Currency code
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PartnerAuctionDto
|
|
47
|
+
*/
|
|
48
|
+
currencyCode: string;
|
|
49
|
+
/**
|
|
50
|
+
* Auction end date
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof PartnerAuctionDto
|
|
53
|
+
*/
|
|
54
|
+
endDate: Date;
|
|
55
|
+
/**
|
|
56
|
+
* Auction start date
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof PartnerAuctionDto
|
|
59
|
+
*/
|
|
60
|
+
startDate: Date;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PartnerAuctionDto interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfPartnerAuctionDto(value: object): value is PartnerAuctionDto;
|
|
66
|
+
export declare function PartnerAuctionDtoFromJSON(json: any): PartnerAuctionDto;
|
|
67
|
+
export declare function PartnerAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerAuctionDto;
|
|
68
|
+
export declare function PartnerAuctionDtoToJSON(json: any): PartnerAuctionDto;
|
|
69
|
+
export declare function PartnerAuctionDtoToJSONTyped(value?: PartnerAuctionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfPartnerAuctionDto = instanceOfPartnerAuctionDto;
|
|
17
|
+
exports.PartnerAuctionDtoFromJSON = PartnerAuctionDtoFromJSON;
|
|
18
|
+
exports.PartnerAuctionDtoFromJSONTyped = PartnerAuctionDtoFromJSONTyped;
|
|
19
|
+
exports.PartnerAuctionDtoToJSON = PartnerAuctionDtoToJSON;
|
|
20
|
+
exports.PartnerAuctionDtoToJSONTyped = PartnerAuctionDtoToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PartnerAuctionDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPartnerAuctionDto(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function PartnerAuctionDtoFromJSON(json) {
|
|
43
|
+
return PartnerAuctionDtoFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PartnerAuctionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'domainDisplayName': json['domainDisplayName'],
|
|
52
|
+
'numberOfBids': json['numberOfBids'],
|
|
53
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
54
|
+
'currencyCode': json['currencyCode'],
|
|
55
|
+
'endDate': (new Date(json['endDate'])),
|
|
56
|
+
'startDate': (new Date(json['startDate'])),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function PartnerAuctionDtoToJSON(json) {
|
|
60
|
+
return PartnerAuctionDtoToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function PartnerAuctionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'domainDisplayName': value['domainDisplayName'],
|
|
70
|
+
'numberOfBids': value['numberOfBids'],
|
|
71
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
72
|
+
'currencyCode': value['currencyCode'],
|
|
73
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
74
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
75
|
+
};
|
|
76
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -201,6 +201,7 @@ export * from './List200Response3';
|
|
|
201
201
|
export * from './ListAccountMetricsDto';
|
|
202
202
|
export * from './ListAccountUserDto';
|
|
203
203
|
export * from './ListAccounts200Response';
|
|
204
|
+
export * from './ListAuctions200Response';
|
|
204
205
|
export * from './ListBankAccounts200Response';
|
|
205
206
|
export * from './ListBuyerNotifications200Response';
|
|
206
207
|
export * from './ListDomains200Response';
|
|
@@ -234,6 +235,7 @@ export * from './PaginateResponse';
|
|
|
234
235
|
export * from './PaginateResponseLinks';
|
|
235
236
|
export * from './PaginateResponseMeta';
|
|
236
237
|
export * from './ParsedDomainDto';
|
|
238
|
+
export * from './PartnerAuctionDto';
|
|
237
239
|
export * from './PrivateAccountGetMeResponse';
|
|
238
240
|
export * from './PublicAccountInformationDto';
|
|
239
241
|
export * from './PublicDomainDto';
|
package/dist/models/index.js
CHANGED
|
@@ -219,6 +219,7 @@ __exportStar(require("./List200Response3"), exports);
|
|
|
219
219
|
__exportStar(require("./ListAccountMetricsDto"), exports);
|
|
220
220
|
__exportStar(require("./ListAccountUserDto"), exports);
|
|
221
221
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
222
|
+
__exportStar(require("./ListAuctions200Response"), exports);
|
|
222
223
|
__exportStar(require("./ListBankAccounts200Response"), exports);
|
|
223
224
|
__exportStar(require("./ListBuyerNotifications200Response"), exports);
|
|
224
225
|
__exportStar(require("./ListDomains200Response"), exports);
|
|
@@ -252,6 +253,7 @@ __exportStar(require("./PaginateResponse"), exports);
|
|
|
252
253
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
253
254
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
254
255
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
256
|
+
__exportStar(require("./PartnerAuctionDto"), exports);
|
|
255
257
|
__exportStar(require("./PrivateAccountGetMeResponse"), exports);
|
|
256
258
|
__exportStar(require("./PublicAccountInformationDto"), exports);
|
|
257
259
|
__exportStar(require("./PublicDomainDto"), exports);
|
package/package.json
CHANGED
|
@@ -15,17 +15,25 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ListAuctions200Response,
|
|
18
19
|
ListDomainsWithUpdatedPricing200Response,
|
|
19
20
|
ValidationException,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
23
|
+
ListAuctions200ResponseFromJSON,
|
|
24
|
+
ListAuctions200ResponseToJSON,
|
|
22
25
|
ListDomainsWithUpdatedPricing200ResponseFromJSON,
|
|
23
26
|
ListDomainsWithUpdatedPricing200ResponseToJSON,
|
|
24
27
|
ValidationExceptionFromJSON,
|
|
25
28
|
ValidationExceptionToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
|
-
export interface
|
|
31
|
+
export interface PartnerApiListAuctionsRequest {
|
|
32
|
+
limit?: number;
|
|
33
|
+
cursor?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PartnerApiListDomainsWithUpdatedPricingRequest {
|
|
29
37
|
dateFrom: string;
|
|
30
38
|
limit?: number;
|
|
31
39
|
cursor?: string;
|
|
@@ -34,12 +42,50 @@ export interface PartnerDomainsApiListDomainsWithUpdatedPricingRequest {
|
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
44
|
*/
|
|
37
|
-
export class
|
|
45
|
+
export class PartnerApi extends runtime.BaseAPI {
|
|
38
46
|
|
|
39
47
|
/**
|
|
40
48
|
*
|
|
41
49
|
*/
|
|
42
|
-
async
|
|
50
|
+
async listAuctionsRaw(requestParameters: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAuctions200Response>> {
|
|
51
|
+
const queryParameters: any = {};
|
|
52
|
+
|
|
53
|
+
if (requestParameters['limit'] != null) {
|
|
54
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['cursor'] != null) {
|
|
58
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
62
|
+
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/partner/auctions`,
|
|
69
|
+
method: 'GET',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAuctions200ResponseFromJSON(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
async listAuctions(requestParameters: PartnerApiListAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAuctions200Response> {
|
|
81
|
+
const response = await this.listAuctionsRaw(requestParameters, initOverrides);
|
|
82
|
+
return await response.value();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
async listDomainsWithUpdatedPricingRaw(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>> {
|
|
43
89
|
if (requestParameters['dateFrom'] == null) {
|
|
44
90
|
throw new runtime.RequiredError(
|
|
45
91
|
'dateFrom',
|
|
@@ -63,6 +109,10 @@ export class PartnerDomainsApi extends runtime.BaseAPI {
|
|
|
63
109
|
|
|
64
110
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
65
111
|
|
|
112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
114
|
+
}
|
|
115
|
+
|
|
66
116
|
const response = await this.request({
|
|
67
117
|
path: `/partner/domains/updated-prices`,
|
|
68
118
|
method: 'GET',
|
|
@@ -76,7 +126,7 @@ export class PartnerDomainsApi extends runtime.BaseAPI {
|
|
|
76
126
|
/**
|
|
77
127
|
*
|
|
78
128
|
*/
|
|
79
|
-
async listDomainsWithUpdatedPricing(requestParameters:
|
|
129
|
+
async listDomainsWithUpdatedPricing(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response> {
|
|
80
130
|
const response = await this.listDomainsWithUpdatedPricingRaw(requestParameters, initOverrides);
|
|
81
131
|
return await response.value();
|
|
82
132
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ export * from './LeadsApi';
|
|
|
17
17
|
export * from './LeadsPublicApi';
|
|
18
18
|
export * from './NotificationsApi';
|
|
19
19
|
export * from './OrdersPublicApi';
|
|
20
|
-
export * from './
|
|
20
|
+
export * from './PartnerApi';
|
|
21
21
|
export * from './SalesPublicApi';
|
|
22
22
|
export * from './StatsApi';
|
|
23
23
|
export * from './StripePublicApi';
|
|
@@ -190,6 +190,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
190
190
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
191
191
|
*/
|
|
192
192
|
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the domain has an open lead
|
|
195
|
+
* @type {boolean}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
197
|
+
*/
|
|
198
|
+
hasAcceptedLead: boolean;
|
|
193
199
|
/**
|
|
194
200
|
*
|
|
195
201
|
* @type {AccountDto}
|
|
@@ -222,6 +228,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
222
228
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
223
229
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
224
230
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
231
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
225
232
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
226
233
|
return true;
|
|
227
234
|
}
|
|
@@ -256,6 +263,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
256
263
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
257
264
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
258
265
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
266
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
259
267
|
'account': AccountDtoFromJSON(json['account']),
|
|
260
268
|
};
|
|
261
269
|
}
|
|
@@ -291,6 +299,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
291
299
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
292
300
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
293
301
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
302
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
294
303
|
'account': AccountDtoToJSON(value['account']),
|
|
295
304
|
};
|
|
296
305
|
}
|
|
@@ -190,6 +190,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
190
190
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
191
191
|
*/
|
|
192
192
|
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the domain has an open lead
|
|
195
|
+
* @type {boolean}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
197
|
+
*/
|
|
198
|
+
hasAcceptedLead: boolean;
|
|
193
199
|
/**
|
|
194
200
|
*
|
|
195
201
|
* @type {AccountDto}
|
|
@@ -228,6 +234,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
228
234
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
229
235
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
230
236
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
237
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
231
238
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
232
239
|
if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
|
|
233
240
|
return true;
|
|
@@ -263,6 +270,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
263
270
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
264
271
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
265
272
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
273
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
266
274
|
'account': AccountDtoFromJSON(json['account']),
|
|
267
275
|
'hasAuction': json['hasAuction'],
|
|
268
276
|
};
|
|
@@ -299,6 +307,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
299
307
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
300
308
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
301
309
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
310
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
302
311
|
'account': AccountDtoToJSON(value['account']),
|
|
303
312
|
'hasAuction': value['hasAuction'],
|
|
304
313
|
};
|
|
@@ -190,6 +190,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
190
190
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
191
191
|
*/
|
|
192
192
|
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the domain has an open lead
|
|
195
|
+
* @type {boolean}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
197
|
+
*/
|
|
198
|
+
hasAcceptedLead: boolean;
|
|
193
199
|
/**
|
|
194
200
|
*
|
|
195
201
|
* @type {AccountDto}
|
|
@@ -228,6 +234,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
228
234
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
229
235
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
230
236
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
237
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
231
238
|
if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
|
|
232
239
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
233
240
|
return true;
|
|
@@ -263,6 +270,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
263
270
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
264
271
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
265
272
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
273
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
266
274
|
'hijacker': AccountDtoFromJSON(json['hijacker']),
|
|
267
275
|
'account': AccountDtoFromJSON(json['account']),
|
|
268
276
|
};
|
|
@@ -299,6 +307,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
299
307
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
300
308
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
301
309
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
310
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
302
311
|
'hijacker': AccountDtoToJSON(value['hijacker']),
|
|
303
312
|
'account': AccountDtoToJSON(value['account']),
|
|
304
313
|
};
|
|
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
196
196
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
197
197
|
*/
|
|
198
198
|
auction: DomainAuctionDto | null;
|
|
199
|
+
/**
|
|
200
|
+
* Whether the domain has an open lead
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
203
|
+
*/
|
|
204
|
+
hasAcceptedLead: boolean;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
/**
|
|
@@ -223,6 +229,7 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
|
|
|
223
229
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
224
230
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
225
231
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
232
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
226
233
|
return true;
|
|
227
234
|
}
|
|
228
235
|
|
|
@@ -257,6 +264,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
|
|
|
257
264
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
258
265
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
259
266
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
267
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
260
268
|
};
|
|
261
269
|
}
|
|
262
270
|
|
|
@@ -292,6 +300,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
|
|
|
292
300
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
293
301
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
294
302
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
303
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
295
304
|
};
|
|
296
305
|
}
|
|
297
306
|
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
17
|
+
import {
|
|
18
|
+
CursorBasedPageInfoFromJSON,
|
|
19
|
+
CursorBasedPageInfoFromJSONTyped,
|
|
20
|
+
CursorBasedPageInfoToJSON,
|
|
21
|
+
CursorBasedPageInfoToJSONTyped,
|
|
22
|
+
} from './CursorBasedPageInfo';
|
|
23
|
+
import type { PartnerAuctionDto } from './PartnerAuctionDto';
|
|
24
|
+
import {
|
|
25
|
+
PartnerAuctionDtoFromJSON,
|
|
26
|
+
PartnerAuctionDtoFromJSONTyped,
|
|
27
|
+
PartnerAuctionDtoToJSON,
|
|
28
|
+
PartnerAuctionDtoToJSONTyped,
|
|
29
|
+
} from './PartnerAuctionDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ListAuctions200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface ListAuctions200Response {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListAuctions200Response
|
|
41
|
+
*/
|
|
42
|
+
limit: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ListAuctions200Response
|
|
47
|
+
*/
|
|
48
|
+
type: ListAuctions200ResponseTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {CursorBasedPageInfo}
|
|
52
|
+
* @memberof ListAuctions200Response
|
|
53
|
+
*/
|
|
54
|
+
pagination: CursorBasedPageInfo;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<PartnerAuctionDto>}
|
|
58
|
+
* @memberof ListAuctions200Response
|
|
59
|
+
*/
|
|
60
|
+
data?: Array<PartnerAuctionDto>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const ListAuctions200ResponseTypeEnum = {
|
|
68
|
+
CURSOR: 'cursor'
|
|
69
|
+
} as const;
|
|
70
|
+
export type ListAuctions200ResponseTypeEnum = typeof ListAuctions200ResponseTypeEnum[keyof typeof ListAuctions200ResponseTypeEnum];
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the ListAuctions200Response interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfListAuctions200Response(value: object): value is ListAuctions200Response {
|
|
77
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
78
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
79
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ListAuctions200ResponseFromJSON(json: any): ListAuctions200Response {
|
|
84
|
+
return ListAuctions200ResponseFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ListAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuctions200Response {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'limit': json['limit'],
|
|
94
|
+
'type': json['type'],
|
|
95
|
+
'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
|
|
96
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PartnerAuctionDtoFromJSON)),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ListAuctions200ResponseToJSON(json: any): ListAuctions200Response {
|
|
101
|
+
return ListAuctions200ResponseToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ListAuctions200ResponseToJSONTyped(value?: ListAuctions200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'limit': value['limit'],
|
|
112
|
+
'type': value['type'],
|
|
113
|
+
'pagination': CursorBasedPageInfoToJSON(value['pagination']),
|
|
114
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PartnerAuctionDtoToJSON)),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
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 PartnerAuctionDto
|
|
28
|
+
*/
|
|
29
|
+
export interface PartnerAuctionDto {
|
|
30
|
+
/**
|
|
31
|
+
* Auction ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PartnerAuctionDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Domain display name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PartnerAuctionDto
|
|
40
|
+
*/
|
|
41
|
+
domainDisplayName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Number of bids
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PartnerAuctionDto
|
|
46
|
+
*/
|
|
47
|
+
numberOfBids: number;
|
|
48
|
+
/**
|
|
49
|
+
* Highest bid amount
|
|
50
|
+
* @type {MoneyDto}
|
|
51
|
+
* @memberof PartnerAuctionDto
|
|
52
|
+
*/
|
|
53
|
+
highestBid: MoneyDto | null;
|
|
54
|
+
/**
|
|
55
|
+
* Currency code
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PartnerAuctionDto
|
|
58
|
+
*/
|
|
59
|
+
currencyCode: string;
|
|
60
|
+
/**
|
|
61
|
+
* Auction end date
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof PartnerAuctionDto
|
|
64
|
+
*/
|
|
65
|
+
endDate: Date;
|
|
66
|
+
/**
|
|
67
|
+
* Auction start date
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof PartnerAuctionDto
|
|
70
|
+
*/
|
|
71
|
+
startDate: Date;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the PartnerAuctionDto interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfPartnerAuctionDto(value: object): value is PartnerAuctionDto {
|
|
78
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
+
if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
|
|
80
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
|
|
81
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
82
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
83
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
84
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PartnerAuctionDtoFromJSON(json: any): PartnerAuctionDto {
|
|
89
|
+
return PartnerAuctionDtoFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PartnerAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerAuctionDto {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'id': json['id'],
|
|
99
|
+
'domainDisplayName': json['domainDisplayName'],
|
|
100
|
+
'numberOfBids': json['numberOfBids'],
|
|
101
|
+
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
102
|
+
'currencyCode': json['currencyCode'],
|
|
103
|
+
'endDate': (new Date(json['endDate'])),
|
|
104
|
+
'startDate': (new Date(json['startDate'])),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function PartnerAuctionDtoToJSON(json: any): PartnerAuctionDto {
|
|
109
|
+
return PartnerAuctionDtoToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function PartnerAuctionDtoToJSONTyped(value?: PartnerAuctionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'domainDisplayName': value['domainDisplayName'],
|
|
121
|
+
'numberOfBids': value['numberOfBids'],
|
|
122
|
+
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
123
|
+
'currencyCode': value['currencyCode'],
|
|
124
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
125
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -203,6 +203,7 @@ export * from './List200Response3';
|
|
|
203
203
|
export * from './ListAccountMetricsDto';
|
|
204
204
|
export * from './ListAccountUserDto';
|
|
205
205
|
export * from './ListAccounts200Response';
|
|
206
|
+
export * from './ListAuctions200Response';
|
|
206
207
|
export * from './ListBankAccounts200Response';
|
|
207
208
|
export * from './ListBuyerNotifications200Response';
|
|
208
209
|
export * from './ListDomains200Response';
|
|
@@ -236,6 +237,7 @@ export * from './PaginateResponse';
|
|
|
236
237
|
export * from './PaginateResponseLinks';
|
|
237
238
|
export * from './PaginateResponseMeta';
|
|
238
239
|
export * from './ParsedDomainDto';
|
|
240
|
+
export * from './PartnerAuctionDto';
|
|
239
241
|
export * from './PrivateAccountGetMeResponse';
|
|
240
242
|
export * from './PublicAccountInformationDto';
|
|
241
243
|
export * from './PublicDomainDto';
|
|
@@ -1,31 +0,0 @@
|
|
|
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 { ListDomainsWithUpdatedPricing200Response } from '../models/index';
|
|
14
|
-
export interface PartnerDomainsApiListDomainsWithUpdatedPricingRequest {
|
|
15
|
-
dateFrom: string;
|
|
16
|
-
limit?: number;
|
|
17
|
-
cursor?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export declare class PartnerDomainsApi extends runtime.BaseAPI {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
listDomainsWithUpdatedPricingRaw(requestParameters: PartnerDomainsApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>>;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
listDomainsWithUpdatedPricing(requestParameters: PartnerDomainsApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response>;
|
|
31
|
-
}
|