@randock/nameshift-api-client 0.0.343 → 0.0.345
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/AuctionsApi.d.ts +5 -2
- package/dist/apis/AuctionsApi.js +7 -4
- package/dist/models/DomainAuctionDto.d.ts +17 -0
- package/dist/models/DomainAuctionDto.js +15 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +166 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +142 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +3 -3
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +3 -3
- package/dist/models/LeadDomainDto.d.ts +6 -0
- package/dist/models/LeadDomainDto.js +4 -0
- package/dist/models/SellerLeadDetails.d.ts +3 -3
- package/dist/models/SellerLeadDetails.js +3 -3
- package/dist/models/StartAuctionInput.d.ts +1 -1
- package/dist/models/StartAuctionInput.js +1 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AuctionsApi.ts +15 -4
- package/src/models/DomainAuctionDto.ts +23 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +306 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +11 -11
- package/src/models/LeadDomainDto.ts +9 -0
- package/src/models/SellerLeadDetails.ts +11 -11
- package/src/models/StartAuctionInput.ts +2 -3
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -195,6 +195,7 @@ src/models/HistoricalMetrics.ts
|
|
|
195
195
|
src/models/HttpException.ts
|
|
196
196
|
src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
|
|
197
197
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
198
|
+
src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts
|
|
198
199
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
199
200
|
src/models/IntersectionDomainDtoWithSeoMetricsDto.ts
|
|
200
201
|
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.345
|
|
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.345 --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
|
+
5a0cd81ec73e304c78ba572c26d11623bccca7dbcfe296114a8e800a69aedfe64ac3ac982e33e707e351280b6f814aea
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { GetAllAuctions200Response1 } from '../models/index';
|
|
14
|
+
export interface AuctionsApiDeleteAuctionRequest {
|
|
15
|
+
auctionId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface AuctionsApiGetAllAuctionsRequest {
|
|
15
18
|
filter?: object;
|
|
16
19
|
page?: number;
|
|
@@ -24,11 +27,11 @@ export declare class AuctionsApi extends runtime.BaseAPI {
|
|
|
24
27
|
/**
|
|
25
28
|
*
|
|
26
29
|
*/
|
|
27
|
-
deleteAuctionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
30
|
+
deleteAuctionRaw(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
31
|
-
deleteAuction(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
34
|
+
deleteAuction(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
32
35
|
/**
|
|
33
36
|
*
|
|
34
37
|
*/
|
package/dist/apis/AuctionsApi.js
CHANGED
|
@@ -78,12 +78,15 @@ var AuctionsApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
AuctionsApi.prototype.deleteAuctionRaw = function (initOverrides) {
|
|
81
|
+
AuctionsApi.prototype.deleteAuctionRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['auctionId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling deleteAuction().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
89
92
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -96,7 +99,7 @@ var AuctionsApi = /** @class */ (function (_super) {
|
|
|
96
99
|
}
|
|
97
100
|
_a.label = 2;
|
|
98
101
|
case 2: return [4 /*yield*/, this.request({
|
|
99
|
-
path: "/private/auctions/{auctionId}",
|
|
102
|
+
path: "/private/auctions/{auctionId}".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
|
|
100
103
|
method: 'DELETE',
|
|
101
104
|
headers: headerParameters,
|
|
102
105
|
query: queryParameters,
|
|
@@ -111,11 +114,11 @@ var AuctionsApi = /** @class */ (function (_super) {
|
|
|
111
114
|
/**
|
|
112
115
|
*
|
|
113
116
|
*/
|
|
114
|
-
AuctionsApi.prototype.deleteAuction = function (initOverrides) {
|
|
117
|
+
AuctionsApi.prototype.deleteAuction = function (requestParameters, initOverrides) {
|
|
115
118
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
119
|
return __generator(this, function (_a) {
|
|
117
120
|
switch (_a.label) {
|
|
118
|
-
case 0: return [4 /*yield*/, this.deleteAuctionRaw(initOverrides)];
|
|
121
|
+
case 0: return [4 /*yield*/, this.deleteAuctionRaw(requestParameters, initOverrides)];
|
|
119
122
|
case 1:
|
|
120
123
|
_a.sent();
|
|
121
124
|
return [2 /*return*/];
|
|
@@ -52,7 +52,24 @@ export interface DomainAuctionDto {
|
|
|
52
52
|
* @memberof DomainAuctionDto
|
|
53
53
|
*/
|
|
54
54
|
highestBid: MoneyDto | null;
|
|
55
|
+
/**
|
|
56
|
+
* The auction status
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof DomainAuctionDto
|
|
59
|
+
*/
|
|
60
|
+
status: DomainAuctionDtoStatusEnum;
|
|
55
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const DomainAuctionDtoStatusEnum: {
|
|
66
|
+
readonly SCHEDULED: "scheduled";
|
|
67
|
+
readonly ACTIVE: "active";
|
|
68
|
+
readonly ENDED: "ended";
|
|
69
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
70
|
+
readonly FINISHED: "finished";
|
|
71
|
+
};
|
|
72
|
+
export type DomainAuctionDtoStatusEnum = typeof DomainAuctionDtoStatusEnum[keyof typeof DomainAuctionDtoStatusEnum];
|
|
56
73
|
/**
|
|
57
74
|
* Check if a given object implements the DomainAuctionDto interface.
|
|
58
75
|
*/
|
|
@@ -13,12 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DomainAuctionDtoStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfDomainAuctionDto = instanceOfDomainAuctionDto;
|
|
17
18
|
exports.DomainAuctionDtoFromJSON = DomainAuctionDtoFromJSON;
|
|
18
19
|
exports.DomainAuctionDtoFromJSONTyped = DomainAuctionDtoFromJSONTyped;
|
|
19
20
|
exports.DomainAuctionDtoToJSON = DomainAuctionDtoToJSON;
|
|
20
21
|
exports.DomainAuctionDtoToJSONTyped = DomainAuctionDtoToJSONTyped;
|
|
21
22
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.DomainAuctionDtoStatusEnum = {
|
|
27
|
+
SCHEDULED: 'scheduled',
|
|
28
|
+
ACTIVE: 'active',
|
|
29
|
+
ENDED: 'ended',
|
|
30
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
31
|
+
FINISHED: 'finished'
|
|
32
|
+
};
|
|
22
33
|
/**
|
|
23
34
|
* Check if a given object implements the DomainAuctionDto interface.
|
|
24
35
|
*/
|
|
@@ -35,6 +46,8 @@ function instanceOfDomainAuctionDto(value) {
|
|
|
35
46
|
return false;
|
|
36
47
|
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
37
48
|
return false;
|
|
49
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
50
|
+
return false;
|
|
38
51
|
return true;
|
|
39
52
|
}
|
|
40
53
|
function DomainAuctionDtoFromJSON(json) {
|
|
@@ -51,6 +64,7 @@ function DomainAuctionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
64
|
'startDate': (new Date(json['startDate'])),
|
|
52
65
|
'endDate': (new Date(json['endDate'])),
|
|
53
66
|
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
67
|
+
'status': json['status'],
|
|
54
68
|
};
|
|
55
69
|
}
|
|
56
70
|
function DomainAuctionDtoToJSON(json) {
|
|
@@ -68,5 +82,6 @@ function DomainAuctionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
82
|
'startDate': ((value['startDate']).toISOString()),
|
|
69
83
|
'endDate': ((value['endDate']).toISOString()),
|
|
70
84
|
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
85
|
+
'status': value['status'],
|
|
71
86
|
};
|
|
72
87
|
}
|
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
import type { RentConfigurationDto } from './RentConfigurationDto';
|
|
14
|
+
import type { DomainAuctionDto } from './DomainAuctionDto';
|
|
15
|
+
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
16
|
+
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
17
|
+
import type { AccountDto } from './AccountDto';
|
|
18
|
+
import type { DomainLeadPriceNegotiatorAiAgentConfigurationDto } from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
23
|
+
*/
|
|
24
|
+
export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
25
|
+
/**
|
|
26
|
+
* The uuid for this domain.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The current owner for the domain
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
35
|
+
*/
|
|
36
|
+
accountId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The hijacker for the domain
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
41
|
+
*/
|
|
42
|
+
hijackerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The TLD for this domain.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
47
|
+
*/
|
|
48
|
+
tld: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
53
|
+
*/
|
|
54
|
+
verified: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the nameservers (ns1,ns2) are set or not.
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
59
|
+
*/
|
|
60
|
+
nameservers: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* The unicode domain name (example.com, mañana.com)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
71
|
+
*/
|
|
72
|
+
displayName: string;
|
|
73
|
+
/**
|
|
74
|
+
* /**
|
|
75
|
+
* The domain's currency code (ISO 4217)
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
78
|
+
*/
|
|
79
|
+
currencyCode: string;
|
|
80
|
+
/**
|
|
81
|
+
* The BIN
|
|
82
|
+
* @type {MoneyDto}
|
|
83
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
84
|
+
*/
|
|
85
|
+
buyNow: MoneyDto;
|
|
86
|
+
/**
|
|
87
|
+
* The lease to own configuration
|
|
88
|
+
* @type {LeaseToOwnConfigurationDto}
|
|
89
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
90
|
+
*/
|
|
91
|
+
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
92
|
+
/**
|
|
93
|
+
* The rent configuration
|
|
94
|
+
* @type {RentConfigurationDto}
|
|
95
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
96
|
+
*/
|
|
97
|
+
rent: RentConfigurationDto;
|
|
98
|
+
/**
|
|
99
|
+
* The lease to own configuration
|
|
100
|
+
* @type {LandingPageSettingsDto}
|
|
101
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
102
|
+
*/
|
|
103
|
+
landingPageSettings: LandingPageSettingsDto;
|
|
104
|
+
/**
|
|
105
|
+
* The minimum offer
|
|
106
|
+
* @type {MoneyDto}
|
|
107
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
108
|
+
*/
|
|
109
|
+
minOffer: MoneyDto;
|
|
110
|
+
/**
|
|
111
|
+
* The creation date
|
|
112
|
+
* @type {Date}
|
|
113
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
114
|
+
*/
|
|
115
|
+
createdAt: Date;
|
|
116
|
+
/**
|
|
117
|
+
* The deletion date
|
|
118
|
+
* @type {Date}
|
|
119
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
120
|
+
*/
|
|
121
|
+
deletedAt: Date | null;
|
|
122
|
+
/**
|
|
123
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
124
|
+
* @type {number}
|
|
125
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
126
|
+
*/
|
|
127
|
+
pageviews: number;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the third party sales data sharing is enabled.
|
|
130
|
+
* @type {boolean}
|
|
131
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
132
|
+
*/
|
|
133
|
+
allowThirdPartySalesDataSharing: boolean | null;
|
|
134
|
+
/**
|
|
135
|
+
* The lead price negotiator configuration (AI Agent)
|
|
136
|
+
* @type {DomainLeadPriceNegotiatorAiAgentConfigurationDto}
|
|
137
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
138
|
+
*/
|
|
139
|
+
leadPriceNegotiator: DomainLeadPriceNegotiatorAiAgentConfigurationDto | null;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the domain has auction
|
|
142
|
+
* @type {DomainAuctionDto}
|
|
143
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
144
|
+
*/
|
|
145
|
+
auction: DomainAuctionDto | null;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {AccountDto}
|
|
149
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
150
|
+
*/
|
|
151
|
+
account: AccountDto;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
156
|
+
*/
|
|
157
|
+
hasAuction: boolean;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Check if a given object implements the IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto interface.
|
|
161
|
+
*/
|
|
162
|
+
export declare function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value: object): value is IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
163
|
+
export declare function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json: any): IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
164
|
+
export declare function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
165
|
+
export declare function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(json: any): IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
166
|
+
export declare function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value?: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,142 @@
|
|
|
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.instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto = instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
17
|
+
exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON = IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON;
|
|
18
|
+
exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped = IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped;
|
|
19
|
+
exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON = IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON;
|
|
20
|
+
exports.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped = IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var RentConfigurationDto_1 = require("./RentConfigurationDto");
|
|
23
|
+
var DomainAuctionDto_1 = require("./DomainAuctionDto");
|
|
24
|
+
var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
|
|
25
|
+
var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
|
|
26
|
+
var AccountDto_1 = require("./AccountDto");
|
|
27
|
+
var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('hijackerId' in value) || value['hijackerId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('rent' in value) || value['rent'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('auction' in value) || value['auction'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('hasAuction' in value) || value['hasAuction'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json) {
|
|
79
|
+
return IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': json['id'],
|
|
87
|
+
'accountId': json['accountId'],
|
|
88
|
+
'hijackerId': json['hijackerId'],
|
|
89
|
+
'tld': json['tld'],
|
|
90
|
+
'verified': json['verified'],
|
|
91
|
+
'nameservers': json['nameservers'],
|
|
92
|
+
'name': json['name'],
|
|
93
|
+
'displayName': json['displayName'],
|
|
94
|
+
'currencyCode': json['currencyCode'],
|
|
95
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
96
|
+
'leaseToOwn': (0, LeaseToOwnConfigurationDto_1.LeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
97
|
+
'rent': (0, RentConfigurationDto_1.RentConfigurationDtoFromJSON)(json['rent']),
|
|
98
|
+
'landingPageSettings': (0, LandingPageSettingsDto_1.LandingPageSettingsDtoFromJSON)(json['landingPageSettings']),
|
|
99
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
100
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
101
|
+
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
102
|
+
'pageviews': json['pageviews'],
|
|
103
|
+
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
104
|
+
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
|
|
105
|
+
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
|
|
106
|
+
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
107
|
+
'hasAuction': json['hasAuction'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(json) {
|
|
111
|
+
return IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
114
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'accountId': value['accountId'],
|
|
121
|
+
'hijackerId': value['hijackerId'],
|
|
122
|
+
'tld': value['tld'],
|
|
123
|
+
'verified': value['verified'],
|
|
124
|
+
'nameservers': value['nameservers'],
|
|
125
|
+
'name': value['name'],
|
|
126
|
+
'displayName': value['displayName'],
|
|
127
|
+
'currencyCode': value['currencyCode'],
|
|
128
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
129
|
+
'leaseToOwn': (0, LeaseToOwnConfigurationDto_1.LeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
130
|
+
'rent': (0, RentConfigurationDto_1.RentConfigurationDtoToJSON)(value['rent']),
|
|
131
|
+
'landingPageSettings': (0, LandingPageSettingsDto_1.LandingPageSettingsDtoToJSON)(value['landingPageSettings']),
|
|
132
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
133
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
134
|
+
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
135
|
+
'pageviews': value['pageviews'],
|
|
136
|
+
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
137
|
+
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
|
|
138
|
+
'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
|
|
139
|
+
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
140
|
+
'hasAuction': value['hasAuction'],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
13
12
|
import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
|
|
14
13
|
import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
|
|
15
14
|
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
16
16
|
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
17
17
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
18
18
|
/**
|
|
@@ -53,10 +53,10 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
53
53
|
lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
|
|
57
57
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
58
58
|
*/
|
|
59
|
-
domain:
|
|
59
|
+
domain: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -19,10 +19,10 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJS
|
|
|
19
19
|
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped;
|
|
20
20
|
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON;
|
|
21
21
|
exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped;
|
|
22
|
-
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
23
22
|
var ManualLeadBuyerDto_1 = require("./ManualLeadBuyerDto");
|
|
24
23
|
var ManualLeadLeaseToOwnDto_1 = require("./ManualLeadLeaseToOwnDto");
|
|
25
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1 = require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto");
|
|
26
26
|
var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
|
|
27
27
|
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
28
28
|
/**
|
|
@@ -121,7 +121,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
|
|
|
121
121
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
122
122
|
'lastOfferBy': json['lastOfferBy'],
|
|
123
123
|
'lastOfferType': json['lastOfferType'],
|
|
124
|
-
'domain': (0,
|
|
124
|
+
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
125
125
|
'manualType': json['manualType'],
|
|
126
126
|
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
|
|
127
127
|
'leaseToOwn': (0, ManualLeadLeaseToOwnDto_1.ManualLeadLeaseToOwnDtoFromJSON)(json['leaseToOwn']),
|
|
@@ -152,7 +152,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
|
|
|
152
152
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
153
153
|
'lastOfferBy': value['lastOfferBy'],
|
|
154
154
|
'lastOfferType': value['lastOfferType'],
|
|
155
|
-
'domain': (0,
|
|
155
|
+
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
156
156
|
'manualType': value['manualType'],
|
|
157
157
|
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
|
|
158
158
|
'leaseToOwn': (0, ManualLeadLeaseToOwnDto_1.ManualLeadLeaseToOwnDtoToJSON)(value['leaseToOwn']),
|
|
@@ -52,6 +52,12 @@ export interface LeadDomainDto {
|
|
|
52
52
|
* @memberof LeadDomainDto
|
|
53
53
|
*/
|
|
54
54
|
deletedAt: Date | null;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the domain has an auction
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof LeadDomainDto
|
|
59
|
+
*/
|
|
60
|
+
hasAuction: boolean;
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
63
|
* Check if a given object implements the LeadDomainDto interface.
|
|
@@ -35,6 +35,8 @@ function instanceOfLeadDomainDto(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('hasAuction' in value) || value['hasAuction'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
return true;
|
|
39
41
|
}
|
|
40
42
|
function LeadDomainDtoFromJSON(json) {
|
|
@@ -51,6 +53,7 @@ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'currencyCode': json['currencyCode'],
|
|
52
54
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
53
55
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
56
|
+
'hasAuction': json['hasAuction'],
|
|
54
57
|
};
|
|
55
58
|
}
|
|
56
59
|
function LeadDomainDtoToJSON(json) {
|
|
@@ -68,5 +71,6 @@ function LeadDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
71
|
'currencyCode': value['currencyCode'],
|
|
69
72
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
70
73
|
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
74
|
+
'hasAuction': value['hasAuction'],
|
|
71
75
|
};
|
|
72
76
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
|
|
13
|
-
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
14
13
|
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
15
15
|
import type { BuyerDto } from './BuyerDto';
|
|
16
16
|
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
17
17
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
@@ -53,10 +53,10 @@ export interface SellerLeadDetails {
|
|
|
53
53
|
lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
|
|
57
57
|
* @memberof SellerLeadDetails
|
|
58
58
|
*/
|
|
59
|
-
domain:
|
|
59
|
+
domain: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -20,8 +20,8 @@ exports.SellerLeadDetailsFromJSONTyped = SellerLeadDetailsFromJSONTyped;
|
|
|
20
20
|
exports.SellerLeadDetailsToJSON = SellerLeadDetailsToJSON;
|
|
21
21
|
exports.SellerLeadDetailsToJSONTyped = SellerLeadDetailsToJSONTyped;
|
|
22
22
|
var LeadLeaseToOwnConfigurationDto_1 = require("./LeadLeaseToOwnConfigurationDto");
|
|
23
|
-
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
24
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
var IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1 = require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto");
|
|
25
25
|
var BuyerDto_1 = require("./BuyerDto");
|
|
26
26
|
var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
|
|
27
27
|
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
@@ -123,7 +123,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
123
123
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
124
124
|
'lastOfferBy': json['lastOfferBy'],
|
|
125
125
|
'lastOfferType': json['lastOfferType'],
|
|
126
|
-
'domain': (0,
|
|
126
|
+
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
127
127
|
'manualType': json['manualType'],
|
|
128
128
|
'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
|
|
129
129
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
@@ -155,7 +155,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
155
155
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
156
156
|
'lastOfferBy': value['lastOfferBy'],
|
|
157
157
|
'lastOfferType': value['lastOfferType'],
|
|
158
|
-
'domain': (0,
|
|
158
|
+
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
159
159
|
'manualType': value['manualType'],
|
|
160
160
|
'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
|
|
161
161
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
@@ -23,8 +23,6 @@ var MoneyInput_1 = require("./MoneyInput");
|
|
|
23
23
|
* Check if a given object implements the StartAuctionInput interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfStartAuctionInput(value) {
|
|
26
|
-
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
27
|
-
return false;
|
|
28
26
|
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
29
27
|
return false;
|
|
30
28
|
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
@@ -39,7 +37,7 @@ function StartAuctionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
return json;
|
|
40
38
|
}
|
|
41
39
|
return {
|
|
42
|
-
'minimumBid': (0, MoneyInput_1.MoneyInputFromJSON)(json['minimumBid']),
|
|
40
|
+
'minimumBid': json['minimumBid'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['minimumBid']),
|
|
43
41
|
'reservePrice': json['reservePrice'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['reservePrice']),
|
|
44
42
|
'startDate': json['startDate'],
|
|
45
43
|
'endDate': json['endDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export * from './HistoricalMetrics';
|
|
|
161
161
|
export * from './HttpException';
|
|
162
162
|
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
163
163
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
164
|
+
export * from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
164
165
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
165
166
|
export * from './IntersectionDomainDtoWithSeoMetricsDto';
|
|
166
167
|
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto';
|
package/dist/models/index.js
CHANGED
|
@@ -179,6 +179,7 @@ __exportStar(require("./HistoricalMetrics"), exports);
|
|
|
179
179
|
__exportStar(require("./HttpException"), exports);
|
|
180
180
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
|
|
181
181
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
182
|
+
__exportStar(require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto"), exports);
|
|
182
183
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
183
184
|
__exportStar(require("./IntersectionDomainDtoWithSeoMetricsDto"), exports);
|
|
184
185
|
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AuctionsApi.ts
CHANGED
|
@@ -31,6 +31,10 @@ import {
|
|
|
31
31
|
ValidationExceptionToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
+
export interface AuctionsApiDeleteAuctionRequest {
|
|
35
|
+
auctionId: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
export interface AuctionsApiGetAllAuctionsRequest {
|
|
35
39
|
filter?: object;
|
|
36
40
|
page?: number;
|
|
@@ -46,7 +50,14 @@ export class AuctionsApi extends runtime.BaseAPI {
|
|
|
46
50
|
/**
|
|
47
51
|
*
|
|
48
52
|
*/
|
|
49
|
-
async deleteAuctionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
53
|
+
async deleteAuctionRaw(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
54
|
+
if (requestParameters['auctionId'] == null) {
|
|
55
|
+
throw new runtime.RequiredError(
|
|
56
|
+
'auctionId',
|
|
57
|
+
'Required parameter "auctionId" was null or undefined when calling deleteAuction().'
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
50
61
|
const queryParameters: any = {};
|
|
51
62
|
|
|
52
63
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -60,7 +71,7 @@ export class AuctionsApi extends runtime.BaseAPI {
|
|
|
60
71
|
}
|
|
61
72
|
}
|
|
62
73
|
const response = await this.request({
|
|
63
|
-
path: `/private/auctions/{auctionId}`,
|
|
74
|
+
path: `/private/auctions/{auctionId}`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
|
|
64
75
|
method: 'DELETE',
|
|
65
76
|
headers: headerParameters,
|
|
66
77
|
query: queryParameters,
|
|
@@ -72,8 +83,8 @@ export class AuctionsApi extends runtime.BaseAPI {
|
|
|
72
83
|
/**
|
|
73
84
|
*
|
|
74
85
|
*/
|
|
75
|
-
async deleteAuction(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
76
|
-
await this.deleteAuctionRaw(initOverrides);
|
|
86
|
+
async deleteAuction(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
87
|
+
await this.deleteAuctionRaw(requestParameters, initOverrides);
|
|
77
88
|
}
|
|
78
89
|
|
|
79
90
|
/**
|
|
@@ -63,8 +63,28 @@ export interface DomainAuctionDto {
|
|
|
63
63
|
* @memberof DomainAuctionDto
|
|
64
64
|
*/
|
|
65
65
|
highestBid: MoneyDto | null;
|
|
66
|
+
/**
|
|
67
|
+
* The auction status
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof DomainAuctionDto
|
|
70
|
+
*/
|
|
71
|
+
status: DomainAuctionDtoStatusEnum;
|
|
66
72
|
}
|
|
67
73
|
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const DomainAuctionDtoStatusEnum = {
|
|
79
|
+
SCHEDULED: 'scheduled',
|
|
80
|
+
ACTIVE: 'active',
|
|
81
|
+
ENDED: 'ended',
|
|
82
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
83
|
+
FINISHED: 'finished'
|
|
84
|
+
} as const;
|
|
85
|
+
export type DomainAuctionDtoStatusEnum = typeof DomainAuctionDtoStatusEnum[keyof typeof DomainAuctionDtoStatusEnum];
|
|
86
|
+
|
|
87
|
+
|
|
68
88
|
/**
|
|
69
89
|
* Check if a given object implements the DomainAuctionDto interface.
|
|
70
90
|
*/
|
|
@@ -75,6 +95,7 @@ export function instanceOfDomainAuctionDto(value: object): value is DomainAuctio
|
|
|
75
95
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
76
96
|
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
77
97
|
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
98
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
78
99
|
return true;
|
|
79
100
|
}
|
|
80
101
|
|
|
@@ -94,6 +115,7 @@ export function DomainAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
94
115
|
'startDate': (new Date(json['startDate'])),
|
|
95
116
|
'endDate': (new Date(json['endDate'])),
|
|
96
117
|
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
118
|
+
'status': json['status'],
|
|
97
119
|
};
|
|
98
120
|
}
|
|
99
121
|
|
|
@@ -114,6 +136,7 @@ export function DomainAuctionDtoToJSONTyped(value?: DomainAuctionDto | null, ign
|
|
|
114
136
|
'startDate': ((value['startDate']).toISOString()),
|
|
115
137
|
'endDate': ((value['endDate']).toISOString()),
|
|
116
138
|
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
139
|
+
'status': value['status'],
|
|
117
140
|
};
|
|
118
141
|
}
|
|
119
142
|
|
|
@@ -0,0 +1,306 @@
|
|
|
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
|
+
import type { RentConfigurationDto } from './RentConfigurationDto';
|
|
24
|
+
import {
|
|
25
|
+
RentConfigurationDtoFromJSON,
|
|
26
|
+
RentConfigurationDtoFromJSONTyped,
|
|
27
|
+
RentConfigurationDtoToJSON,
|
|
28
|
+
RentConfigurationDtoToJSONTyped,
|
|
29
|
+
} from './RentConfigurationDto';
|
|
30
|
+
import type { DomainAuctionDto } from './DomainAuctionDto';
|
|
31
|
+
import {
|
|
32
|
+
DomainAuctionDtoFromJSON,
|
|
33
|
+
DomainAuctionDtoFromJSONTyped,
|
|
34
|
+
DomainAuctionDtoToJSON,
|
|
35
|
+
DomainAuctionDtoToJSONTyped,
|
|
36
|
+
} from './DomainAuctionDto';
|
|
37
|
+
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
38
|
+
import {
|
|
39
|
+
LeaseToOwnConfigurationDtoFromJSON,
|
|
40
|
+
LeaseToOwnConfigurationDtoFromJSONTyped,
|
|
41
|
+
LeaseToOwnConfigurationDtoToJSON,
|
|
42
|
+
LeaseToOwnConfigurationDtoToJSONTyped,
|
|
43
|
+
} from './LeaseToOwnConfigurationDto';
|
|
44
|
+
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
45
|
+
import {
|
|
46
|
+
LandingPageSettingsDtoFromJSON,
|
|
47
|
+
LandingPageSettingsDtoFromJSONTyped,
|
|
48
|
+
LandingPageSettingsDtoToJSON,
|
|
49
|
+
LandingPageSettingsDtoToJSONTyped,
|
|
50
|
+
} from './LandingPageSettingsDto';
|
|
51
|
+
import type { AccountDto } from './AccountDto';
|
|
52
|
+
import {
|
|
53
|
+
AccountDtoFromJSON,
|
|
54
|
+
AccountDtoFromJSONTyped,
|
|
55
|
+
AccountDtoToJSON,
|
|
56
|
+
AccountDtoToJSONTyped,
|
|
57
|
+
} from './AccountDto';
|
|
58
|
+
import type { DomainLeadPriceNegotiatorAiAgentConfigurationDto } from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
59
|
+
import {
|
|
60
|
+
DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON,
|
|
61
|
+
DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped,
|
|
62
|
+
DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON,
|
|
63
|
+
DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped,
|
|
64
|
+
} from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
70
|
+
*/
|
|
71
|
+
export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
72
|
+
/**
|
|
73
|
+
* The uuid for this domain.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* The current owner for the domain
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
82
|
+
*/
|
|
83
|
+
accountId: string;
|
|
84
|
+
/**
|
|
85
|
+
* The hijacker for the domain
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
88
|
+
*/
|
|
89
|
+
hijackerId: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* The TLD for this domain.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
94
|
+
*/
|
|
95
|
+
tld: string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
100
|
+
*/
|
|
101
|
+
verified: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the nameservers (ns1,ns2) are set or not.
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
106
|
+
*/
|
|
107
|
+
nameservers: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
/**
|
|
115
|
+
* The unicode domain name (example.com, mañana.com)
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
118
|
+
*/
|
|
119
|
+
displayName: string;
|
|
120
|
+
/**
|
|
121
|
+
* /**
|
|
122
|
+
* The domain's currency code (ISO 4217)
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
125
|
+
*/
|
|
126
|
+
currencyCode: string;
|
|
127
|
+
/**
|
|
128
|
+
* The BIN
|
|
129
|
+
* @type {MoneyDto}
|
|
130
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
131
|
+
*/
|
|
132
|
+
buyNow: MoneyDto;
|
|
133
|
+
/**
|
|
134
|
+
* The lease to own configuration
|
|
135
|
+
* @type {LeaseToOwnConfigurationDto}
|
|
136
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
137
|
+
*/
|
|
138
|
+
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
139
|
+
/**
|
|
140
|
+
* The rent configuration
|
|
141
|
+
* @type {RentConfigurationDto}
|
|
142
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
143
|
+
*/
|
|
144
|
+
rent: RentConfigurationDto;
|
|
145
|
+
/**
|
|
146
|
+
* The lease to own configuration
|
|
147
|
+
* @type {LandingPageSettingsDto}
|
|
148
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
149
|
+
*/
|
|
150
|
+
landingPageSettings: LandingPageSettingsDto;
|
|
151
|
+
/**
|
|
152
|
+
* The minimum offer
|
|
153
|
+
* @type {MoneyDto}
|
|
154
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
155
|
+
*/
|
|
156
|
+
minOffer: MoneyDto;
|
|
157
|
+
/**
|
|
158
|
+
* The creation date
|
|
159
|
+
* @type {Date}
|
|
160
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
161
|
+
*/
|
|
162
|
+
createdAt: Date;
|
|
163
|
+
/**
|
|
164
|
+
* The deletion date
|
|
165
|
+
* @type {Date}
|
|
166
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
167
|
+
*/
|
|
168
|
+
deletedAt: Date | null;
|
|
169
|
+
/**
|
|
170
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
171
|
+
* @type {number}
|
|
172
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
173
|
+
*/
|
|
174
|
+
pageviews: number;
|
|
175
|
+
/**
|
|
176
|
+
* Whether the third party sales data sharing is enabled.
|
|
177
|
+
* @type {boolean}
|
|
178
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
179
|
+
*/
|
|
180
|
+
allowThirdPartySalesDataSharing: boolean | null;
|
|
181
|
+
/**
|
|
182
|
+
* The lead price negotiator configuration (AI Agent)
|
|
183
|
+
* @type {DomainLeadPriceNegotiatorAiAgentConfigurationDto}
|
|
184
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
185
|
+
*/
|
|
186
|
+
leadPriceNegotiator: DomainLeadPriceNegotiatorAiAgentConfigurationDto | null;
|
|
187
|
+
/**
|
|
188
|
+
* Whether the domain has auction
|
|
189
|
+
* @type {DomainAuctionDto}
|
|
190
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
191
|
+
*/
|
|
192
|
+
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {AccountDto}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
197
|
+
*/
|
|
198
|
+
account: AccountDto;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
203
|
+
*/
|
|
204
|
+
hasAuction: boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Check if a given object implements the IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto interface.
|
|
209
|
+
*/
|
|
210
|
+
export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value: object): value is IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
211
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
212
|
+
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
213
|
+
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
214
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
215
|
+
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
216
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
217
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
218
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
219
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
220
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
221
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
222
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
223
|
+
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined) return false;
|
|
224
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
225
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
226
|
+
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
227
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
|
|
228
|
+
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
229
|
+
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
230
|
+
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
231
|
+
if (!('account' in value) || value['account'] === undefined) return false;
|
|
232
|
+
if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
|
|
233
|
+
return true;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json: any): IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
237
|
+
return IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json, false);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
241
|
+
if (json == null) {
|
|
242
|
+
return json;
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
|
|
246
|
+
'id': json['id'],
|
|
247
|
+
'accountId': json['accountId'],
|
|
248
|
+
'hijackerId': json['hijackerId'],
|
|
249
|
+
'tld': json['tld'],
|
|
250
|
+
'verified': json['verified'],
|
|
251
|
+
'nameservers': json['nameservers'],
|
|
252
|
+
'name': json['name'],
|
|
253
|
+
'displayName': json['displayName'],
|
|
254
|
+
'currencyCode': json['currencyCode'],
|
|
255
|
+
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
256
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
257
|
+
'rent': RentConfigurationDtoFromJSON(json['rent']),
|
|
258
|
+
'landingPageSettings': LandingPageSettingsDtoFromJSON(json['landingPageSettings']),
|
|
259
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
260
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
261
|
+
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
262
|
+
'pageviews': json['pageviews'],
|
|
263
|
+
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
264
|
+
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
265
|
+
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
266
|
+
'account': AccountDtoFromJSON(json['account']),
|
|
267
|
+
'hasAuction': json['hasAuction'],
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(json: any): IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
272
|
+
return IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(json, false);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value?: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto | null, ignoreDiscriminator: boolean = false): any {
|
|
276
|
+
if (value == null) {
|
|
277
|
+
return value;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
return {
|
|
281
|
+
|
|
282
|
+
'id': value['id'],
|
|
283
|
+
'accountId': value['accountId'],
|
|
284
|
+
'hijackerId': value['hijackerId'],
|
|
285
|
+
'tld': value['tld'],
|
|
286
|
+
'verified': value['verified'],
|
|
287
|
+
'nameservers': value['nameservers'],
|
|
288
|
+
'name': value['name'],
|
|
289
|
+
'displayName': value['displayName'],
|
|
290
|
+
'currencyCode': value['currencyCode'],
|
|
291
|
+
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
292
|
+
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
293
|
+
'rent': RentConfigurationDtoToJSON(value['rent']),
|
|
294
|
+
'landingPageSettings': LandingPageSettingsDtoToJSON(value['landingPageSettings']),
|
|
295
|
+
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
296
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
297
|
+
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
298
|
+
'pageviews': value['pageviews'],
|
|
299
|
+
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
300
|
+
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
301
|
+
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
302
|
+
'account': AccountDtoToJSON(value['account']),
|
|
303
|
+
'hasAuction': value['hasAuction'],
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
17
|
-
import {
|
|
18
|
-
IntersectionDomainDtoWithAccountDtoFromJSON,
|
|
19
|
-
IntersectionDomainDtoWithAccountDtoFromJSONTyped,
|
|
20
|
-
IntersectionDomainDtoWithAccountDtoToJSON,
|
|
21
|
-
IntersectionDomainDtoWithAccountDtoToJSONTyped,
|
|
22
|
-
} from './IntersectionDomainDtoWithAccountDto';
|
|
23
16
|
import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
|
|
24
17
|
import {
|
|
25
18
|
ManualLeadBuyerDtoFromJSON,
|
|
@@ -41,6 +34,13 @@ import {
|
|
|
41
34
|
MoneyDtoToJSON,
|
|
42
35
|
MoneyDtoToJSONTyped,
|
|
43
36
|
} from './MoneyDto';
|
|
37
|
+
import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
38
|
+
import {
|
|
39
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON,
|
|
40
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped,
|
|
41
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON,
|
|
42
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped,
|
|
43
|
+
} from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
44
44
|
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
45
45
|
import {
|
|
46
46
|
LeadRentConfigurationDtoFromJSON,
|
|
@@ -94,10 +94,10 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
94
94
|
lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @type {
|
|
97
|
+
* @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
|
|
98
98
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
99
99
|
*/
|
|
100
|
-
domain:
|
|
100
|
+
domain: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -273,7 +273,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
273
273
|
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
274
274
|
'lastOfferBy': json['lastOfferBy'],
|
|
275
275
|
'lastOfferType': json['lastOfferType'],
|
|
276
|
-
'domain':
|
|
276
|
+
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
|
|
277
277
|
'manualType': json['manualType'],
|
|
278
278
|
'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
|
|
279
279
|
'leaseToOwn': ManualLeadLeaseToOwnDtoFromJSON(json['leaseToOwn']),
|
|
@@ -307,7 +307,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
307
307
|
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
308
308
|
'lastOfferBy': value['lastOfferBy'],
|
|
309
309
|
'lastOfferType': value['lastOfferType'],
|
|
310
|
-
'domain':
|
|
310
|
+
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
|
|
311
311
|
'manualType': value['manualType'],
|
|
312
312
|
'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
|
|
313
313
|
'leaseToOwn': ManualLeadLeaseToOwnDtoToJSON(value['leaseToOwn']),
|
|
@@ -63,6 +63,12 @@ export interface LeadDomainDto {
|
|
|
63
63
|
* @memberof LeadDomainDto
|
|
64
64
|
*/
|
|
65
65
|
deletedAt: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the domain has an auction
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof LeadDomainDto
|
|
70
|
+
*/
|
|
71
|
+
hasAuction: boolean;
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
/**
|
|
@@ -75,6 +81,7 @@ export function instanceOfLeadDomainDto(value: object): value is LeadDomainDto {
|
|
|
75
81
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
76
82
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
77
83
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
84
|
+
if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
|
|
78
85
|
return true;
|
|
79
86
|
}
|
|
80
87
|
|
|
@@ -94,6 +101,7 @@ export function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
94
101
|
'currencyCode': json['currencyCode'],
|
|
95
102
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
96
103
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
104
|
+
'hasAuction': json['hasAuction'],
|
|
97
105
|
};
|
|
98
106
|
}
|
|
99
107
|
|
|
@@ -114,6 +122,7 @@ export function LeadDomainDtoToJSONTyped(value?: LeadDomainDto | null, ignoreDis
|
|
|
114
122
|
'currencyCode': value['currencyCode'],
|
|
115
123
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
116
124
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
125
|
+
'hasAuction': value['hasAuction'],
|
|
117
126
|
};
|
|
118
127
|
}
|
|
119
128
|
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
LeadLeaseToOwnConfigurationDtoToJSON,
|
|
21
21
|
LeadLeaseToOwnConfigurationDtoToJSONTyped,
|
|
22
22
|
} from './LeadLeaseToOwnConfigurationDto';
|
|
23
|
-
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
24
|
-
import {
|
|
25
|
-
IntersectionDomainDtoWithAccountDtoFromJSON,
|
|
26
|
-
IntersectionDomainDtoWithAccountDtoFromJSONTyped,
|
|
27
|
-
IntersectionDomainDtoWithAccountDtoToJSON,
|
|
28
|
-
IntersectionDomainDtoWithAccountDtoToJSONTyped,
|
|
29
|
-
} from './IntersectionDomainDtoWithAccountDto';
|
|
30
23
|
import type { MoneyDto } from './MoneyDto';
|
|
31
24
|
import {
|
|
32
25
|
MoneyDtoFromJSON,
|
|
@@ -34,6 +27,13 @@ import {
|
|
|
34
27
|
MoneyDtoToJSON,
|
|
35
28
|
MoneyDtoToJSONTyped,
|
|
36
29
|
} from './MoneyDto';
|
|
30
|
+
import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
31
|
+
import {
|
|
32
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON,
|
|
33
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped,
|
|
34
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON,
|
|
35
|
+
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped,
|
|
36
|
+
} from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
37
37
|
import type { BuyerDto } from './BuyerDto';
|
|
38
38
|
import {
|
|
39
39
|
BuyerDtoFromJSON,
|
|
@@ -94,10 +94,10 @@ export interface SellerLeadDetails {
|
|
|
94
94
|
lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @type {
|
|
97
|
+
* @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
|
|
98
98
|
* @memberof SellerLeadDetails
|
|
99
99
|
*/
|
|
100
|
-
domain:
|
|
100
|
+
domain: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -280,7 +280,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
280
280
|
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
281
281
|
'lastOfferBy': json['lastOfferBy'],
|
|
282
282
|
'lastOfferType': json['lastOfferType'],
|
|
283
|
-
'domain':
|
|
283
|
+
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
|
|
284
284
|
'manualType': json['manualType'],
|
|
285
285
|
'buyer': BuyerDtoFromJSON(json['buyer']),
|
|
286
286
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
@@ -315,7 +315,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
315
315
|
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
316
316
|
'lastOfferBy': value['lastOfferBy'],
|
|
317
317
|
'lastOfferType': value['lastOfferType'],
|
|
318
|
-
'domain':
|
|
318
|
+
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
|
|
319
319
|
'manualType': value['manualType'],
|
|
320
320
|
'buyer': BuyerDtoToJSON(value['buyer']),
|
|
321
321
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
@@ -32,7 +32,7 @@ export interface StartAuctionInput {
|
|
|
32
32
|
* @type {MoneyInput}
|
|
33
33
|
* @memberof StartAuctionInput
|
|
34
34
|
*/
|
|
35
|
-
minimumBid
|
|
35
|
+
minimumBid?: MoneyInput;
|
|
36
36
|
/**
|
|
37
37
|
* Reserve price (optional)
|
|
38
38
|
* @type {MoneyInput}
|
|
@@ -57,7 +57,6 @@ export interface StartAuctionInput {
|
|
|
57
57
|
* Check if a given object implements the StartAuctionInput interface.
|
|
58
58
|
*/
|
|
59
59
|
export function instanceOfStartAuctionInput(value: object): value is StartAuctionInput {
|
|
60
|
-
if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
|
|
61
60
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
62
61
|
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -73,7 +72,7 @@ export function StartAuctionInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
74
|
|
|
76
|
-
'minimumBid': MoneyInputFromJSON(json['minimumBid']),
|
|
75
|
+
'minimumBid': json['minimumBid'] == null ? undefined : MoneyInputFromJSON(json['minimumBid']),
|
|
77
76
|
'reservePrice': json['reservePrice'] == null ? undefined : MoneyInputFromJSON(json['reservePrice']),
|
|
78
77
|
'startDate': json['startDate'],
|
|
79
78
|
'endDate': json['endDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -163,6 +163,7 @@ export * from './HistoricalMetrics';
|
|
|
163
163
|
export * from './HttpException';
|
|
164
164
|
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
165
165
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
166
|
+
export * from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
166
167
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
167
168
|
export * from './IntersectionDomainDtoWithSeoMetricsDto';
|
|
168
169
|
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto';
|