@randock/nameshift-api-client 0.0.347 → 0.0.349
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 +9 -1
- package/README.md +3 -3
- package/dist/apis/AuctionsPublicApi.d.ts +16 -1
- package/dist/apis/AuctionsPublicApi.js +57 -0
- 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/List200Response4.d.ts +65 -0
- package/dist/models/List200Response4.js +74 -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/PublicAuctionListItemDto.d.ts +93 -0
- package/dist/models/PublicAuctionListItemDto.js +96 -0
- package/dist/models/PublicAuctionListItemDtoDomainInformation.d.ts +63 -0
- package/dist/models/PublicAuctionListItemDtoDomainInformation.js +72 -0
- package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.d.ts +56 -0
- package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.js +67 -0
- package/dist/models/PublicAuctionListItemDtoDomainSeo.d.ts +33 -0
- package/dist/models/PublicAuctionListItemDtoDomainSeo.js +52 -0
- package/dist/models/PublicDomainDto.d.ts +7 -0
- package/dist/models/PublicDomainDto.js +5 -0
- package/dist/models/PublicDomainDtoAuction.d.ts +39 -0
- package/dist/models/PublicDomainDtoAuction.js +56 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AuctionsPublicApi.ts +63 -0
- package/src/apis/{PartnerDomainsApi.ts → PartnerApi.ts} +54 -4
- package/src/apis/index.ts +1 -1
- package/src/models/List200Response4.ts +126 -0
- package/src/models/ListAuctions200Response.ts +117 -0
- package/src/models/PartnerAuctionDto.ts +128 -0
- package/src/models/PublicAuctionListItemDto.ts +167 -0
- package/src/models/PublicAuctionListItemDtoDomainInformation.ts +119 -0
- package/src/models/PublicAuctionListItemDtoDomainMozMetrics.ts +102 -0
- package/src/models/PublicAuctionListItemDtoDomainSeo.ts +74 -0
- package/src/models/PublicDomainDto.ts +16 -0
- package/src/models/PublicDomainDtoAuction.ts +83 -0
- package/src/models/index.ts +8 -0
- package/dist/apis/PartnerDomainsApi.d.ts +0 -31
|
@@ -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
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
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 { PublicAuctionListItemDtoDomainInformation } from './PublicAuctionListItemDtoDomainInformation';
|
|
24
|
+
import {
|
|
25
|
+
PublicAuctionListItemDtoDomainInformationFromJSON,
|
|
26
|
+
PublicAuctionListItemDtoDomainInformationFromJSONTyped,
|
|
27
|
+
PublicAuctionListItemDtoDomainInformationToJSON,
|
|
28
|
+
PublicAuctionListItemDtoDomainInformationToJSONTyped,
|
|
29
|
+
} from './PublicAuctionListItemDtoDomainInformation';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PublicAuctionListItemDto
|
|
35
|
+
*/
|
|
36
|
+
export interface PublicAuctionListItemDto {
|
|
37
|
+
/**
|
|
38
|
+
* Auction Id
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PublicAuctionListItemDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Auction status
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PublicAuctionListItemDto
|
|
47
|
+
*/
|
|
48
|
+
status: PublicAuctionListItemDtoStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Auction minimum bid
|
|
51
|
+
* @type {MoneyDto}
|
|
52
|
+
* @memberof PublicAuctionListItemDto
|
|
53
|
+
*/
|
|
54
|
+
minimumBid: MoneyDto;
|
|
55
|
+
/**
|
|
56
|
+
* Auction reserve price
|
|
57
|
+
* @type {MoneyDto}
|
|
58
|
+
* @memberof PublicAuctionListItemDto
|
|
59
|
+
*/
|
|
60
|
+
reservePrice: MoneyDto | null;
|
|
61
|
+
/**
|
|
62
|
+
* Auction highest bid
|
|
63
|
+
* @type {MoneyDto}
|
|
64
|
+
* @memberof PublicAuctionListItemDto
|
|
65
|
+
*/
|
|
66
|
+
highestBid: MoneyDto | null;
|
|
67
|
+
/**
|
|
68
|
+
* Auction start date
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof PublicAuctionListItemDto
|
|
71
|
+
*/
|
|
72
|
+
startDate: Date;
|
|
73
|
+
/**
|
|
74
|
+
* Auction end date
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof PublicAuctionListItemDto
|
|
77
|
+
*/
|
|
78
|
+
endDate: Date;
|
|
79
|
+
/**
|
|
80
|
+
* Auction domain information
|
|
81
|
+
* @type {PublicAuctionListItemDtoDomainInformation}
|
|
82
|
+
* @memberof PublicAuctionListItemDto
|
|
83
|
+
*/
|
|
84
|
+
domain: PublicAuctionListItemDtoDomainInformation;
|
|
85
|
+
/**
|
|
86
|
+
* Auction number of bids
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof PublicAuctionListItemDto
|
|
89
|
+
*/
|
|
90
|
+
numberOfBids: number;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const PublicAuctionListItemDtoStatusEnum = {
|
|
98
|
+
SCHEDULED: 'scheduled',
|
|
99
|
+
ACTIVE: 'active',
|
|
100
|
+
ENDED: 'ended',
|
|
101
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
102
|
+
FINISHED: 'finished'
|
|
103
|
+
} as const;
|
|
104
|
+
export type PublicAuctionListItemDtoStatusEnum = typeof PublicAuctionListItemDtoStatusEnum[keyof typeof PublicAuctionListItemDtoStatusEnum];
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the PublicAuctionListItemDto interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfPublicAuctionListItemDto(value: object): value is PublicAuctionListItemDto {
|
|
111
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
112
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
113
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
|
|
114
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined) return false;
|
|
115
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
116
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
117
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
118
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
119
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function PublicAuctionListItemDtoFromJSON(json: any): PublicAuctionListItemDto {
|
|
124
|
+
return PublicAuctionListItemDtoFromJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function PublicAuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDto {
|
|
128
|
+
if (json == null) {
|
|
129
|
+
return json;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'id': json['id'],
|
|
134
|
+
'status': json['status'],
|
|
135
|
+
'minimumBid': MoneyDtoFromJSON(json['minimumBid']),
|
|
136
|
+
'reservePrice': MoneyDtoFromJSON(json['reservePrice']),
|
|
137
|
+
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
138
|
+
'startDate': (new Date(json['startDate'])),
|
|
139
|
+
'endDate': (new Date(json['endDate'])),
|
|
140
|
+
'domain': PublicAuctionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
141
|
+
'numberOfBids': json['numberOfBids'],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function PublicAuctionListItemDtoToJSON(json: any): PublicAuctionListItemDto {
|
|
146
|
+
return PublicAuctionListItemDtoToJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function PublicAuctionListItemDtoToJSONTyped(value?: PublicAuctionListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
150
|
+
if (value == null) {
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
|
|
156
|
+
'id': value['id'],
|
|
157
|
+
'status': value['status'],
|
|
158
|
+
'minimumBid': MoneyDtoToJSON(value['minimumBid']),
|
|
159
|
+
'reservePrice': MoneyDtoToJSON(value['reservePrice']),
|
|
160
|
+
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
161
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
162
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
163
|
+
'domain': PublicAuctionListItemDtoDomainInformationToJSON(value['domain']),
|
|
164
|
+
'numberOfBids': value['numberOfBids'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { PublicAuctionListItemDtoDomainSeo } from './PublicAuctionListItemDtoDomainSeo';
|
|
17
|
+
import {
|
|
18
|
+
PublicAuctionListItemDtoDomainSeoFromJSON,
|
|
19
|
+
PublicAuctionListItemDtoDomainSeoFromJSONTyped,
|
|
20
|
+
PublicAuctionListItemDtoDomainSeoToJSON,
|
|
21
|
+
PublicAuctionListItemDtoDomainSeoToJSONTyped,
|
|
22
|
+
} from './PublicAuctionListItemDtoDomainSeo';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PublicAuctionListItemDtoDomainInformation
|
|
28
|
+
*/
|
|
29
|
+
export interface PublicAuctionListItemDtoDomainInformation {
|
|
30
|
+
/**
|
|
31
|
+
* Domain TLD
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
34
|
+
*/
|
|
35
|
+
tld: string;
|
|
36
|
+
/**
|
|
37
|
+
* Domain name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Domain display name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
46
|
+
*/
|
|
47
|
+
displayName: string;
|
|
48
|
+
/**
|
|
49
|
+
* Seller name
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
52
|
+
*/
|
|
53
|
+
seller: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Domain SEO metrics
|
|
56
|
+
* @type {PublicAuctionListItemDtoDomainSeo}
|
|
57
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
58
|
+
*/
|
|
59
|
+
seo: PublicAuctionListItemDtoDomainSeo;
|
|
60
|
+
/**
|
|
61
|
+
* Domain URL
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
64
|
+
*/
|
|
65
|
+
url: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the PublicAuctionListItemDtoDomainInformation interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfPublicAuctionListItemDtoDomainInformation(value: object): value is PublicAuctionListItemDtoDomainInformation {
|
|
72
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
73
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
74
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
75
|
+
if (!('seller' in value) || value['seller'] === undefined) return false;
|
|
76
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
77
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function PublicAuctionListItemDtoDomainInformationFromJSON(json: any): PublicAuctionListItemDtoDomainInformation {
|
|
82
|
+
return PublicAuctionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function PublicAuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainInformation {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'tld': json['tld'],
|
|
92
|
+
'name': json['name'],
|
|
93
|
+
'displayName': json['displayName'],
|
|
94
|
+
'seller': json['seller'],
|
|
95
|
+
'seo': PublicAuctionListItemDtoDomainSeoFromJSON(json['seo']),
|
|
96
|
+
'url': json['url'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PublicAuctionListItemDtoDomainInformationToJSON(json: any): PublicAuctionListItemDtoDomainInformation {
|
|
101
|
+
return PublicAuctionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PublicAuctionListItemDtoDomainInformationToJSONTyped(value?: PublicAuctionListItemDtoDomainInformation | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'tld': value['tld'],
|
|
112
|
+
'name': value['name'],
|
|
113
|
+
'displayName': value['displayName'],
|
|
114
|
+
'seller': value['seller'],
|
|
115
|
+
'seo': PublicAuctionListItemDtoDomainSeoToJSON(value['seo']),
|
|
116
|
+
'url': value['url'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PublicAuctionListItemDtoDomainMozMetrics
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicAuctionListItemDtoDomainMozMetrics {
|
|
22
|
+
/**
|
|
23
|
+
* Domain authority
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
26
|
+
*/
|
|
27
|
+
domainAuthority: number;
|
|
28
|
+
/**
|
|
29
|
+
* Page authority
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
32
|
+
*/
|
|
33
|
+
pageAuthority: number;
|
|
34
|
+
/**
|
|
35
|
+
* Backlinks count
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
38
|
+
*/
|
|
39
|
+
backlinks: number;
|
|
40
|
+
/**
|
|
41
|
+
* Spam score
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
44
|
+
*/
|
|
45
|
+
spamScore: number;
|
|
46
|
+
/**
|
|
47
|
+
* Root domains count
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
50
|
+
*/
|
|
51
|
+
rootDomains: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PublicAuctionListItemDtoDomainMozMetrics interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPublicAuctionListItemDtoDomainMozMetrics(value: object): value is PublicAuctionListItemDtoDomainMozMetrics {
|
|
58
|
+
if (!('domainAuthority' in value) || value['domainAuthority'] === undefined) return false;
|
|
59
|
+
if (!('pageAuthority' in value) || value['pageAuthority'] === undefined) return false;
|
|
60
|
+
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
61
|
+
if (!('spamScore' in value) || value['spamScore'] === undefined) return false;
|
|
62
|
+
if (!('rootDomains' in value) || value['rootDomains'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PublicAuctionListItemDtoDomainMozMetricsFromJSON(json: any): PublicAuctionListItemDtoDomainMozMetrics {
|
|
67
|
+
return PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainMozMetrics {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'domainAuthority': json['domainAuthority'],
|
|
77
|
+
'pageAuthority': json['pageAuthority'],
|
|
78
|
+
'backlinks': json['backlinks'],
|
|
79
|
+
'spamScore': json['spamScore'],
|
|
80
|
+
'rootDomains': json['rootDomains'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PublicAuctionListItemDtoDomainMozMetricsToJSON(json: any): PublicAuctionListItemDtoDomainMozMetrics {
|
|
85
|
+
return PublicAuctionListItemDtoDomainMozMetricsToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PublicAuctionListItemDtoDomainMozMetricsToJSONTyped(value?: PublicAuctionListItemDtoDomainMozMetrics | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'domainAuthority': value['domainAuthority'],
|
|
96
|
+
'pageAuthority': value['pageAuthority'],
|
|
97
|
+
'backlinks': value['backlinks'],
|
|
98
|
+
'spamScore': value['spamScore'],
|
|
99
|
+
'rootDomains': value['rootDomains'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { PublicAuctionListItemDtoDomainMozMetrics } from './PublicAuctionListItemDtoDomainMozMetrics';
|
|
17
|
+
import {
|
|
18
|
+
PublicAuctionListItemDtoDomainMozMetricsFromJSON,
|
|
19
|
+
PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped,
|
|
20
|
+
PublicAuctionListItemDtoDomainMozMetricsToJSON,
|
|
21
|
+
PublicAuctionListItemDtoDomainMozMetricsToJSONTyped,
|
|
22
|
+
} from './PublicAuctionListItemDtoDomainMozMetrics';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PublicAuctionListItemDtoDomainSeo
|
|
28
|
+
*/
|
|
29
|
+
export interface PublicAuctionListItemDtoDomainSeo {
|
|
30
|
+
/**
|
|
31
|
+
* MOZ metrics
|
|
32
|
+
* @type {PublicAuctionListItemDtoDomainMozMetrics}
|
|
33
|
+
* @memberof PublicAuctionListItemDtoDomainSeo
|
|
34
|
+
*/
|
|
35
|
+
moz: PublicAuctionListItemDtoDomainMozMetrics;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PublicAuctionListItemDtoDomainSeo interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPublicAuctionListItemDtoDomainSeo(value: object): value is PublicAuctionListItemDtoDomainSeo {
|
|
42
|
+
if (!('moz' in value) || value['moz'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PublicAuctionListItemDtoDomainSeoFromJSON(json: any): PublicAuctionListItemDtoDomainSeo {
|
|
47
|
+
return PublicAuctionListItemDtoDomainSeoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PublicAuctionListItemDtoDomainSeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainSeo {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'moz': PublicAuctionListItemDtoDomainMozMetricsFromJSON(json['moz']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PublicAuctionListItemDtoDomainSeoToJSON(json: any): PublicAuctionListItemDtoDomainSeo {
|
|
61
|
+
return PublicAuctionListItemDtoDomainSeoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PublicAuctionListItemDtoDomainSeoToJSONTyped(value?: PublicAuctionListItemDtoDomainSeo | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'moz': PublicAuctionListItemDtoDomainMozMetricsToJSON(value['moz']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PublicDomainDtoSeoToJSON,
|
|
21
21
|
PublicDomainDtoSeoToJSONTyped,
|
|
22
22
|
} from './PublicDomainDtoSeo';
|
|
23
|
+
import type { PublicDomainDtoAuction } from './PublicDomainDtoAuction';
|
|
24
|
+
import {
|
|
25
|
+
PublicDomainDtoAuctionFromJSON,
|
|
26
|
+
PublicDomainDtoAuctionFromJSONTyped,
|
|
27
|
+
PublicDomainDtoAuctionToJSON,
|
|
28
|
+
PublicDomainDtoAuctionToJSONTyped,
|
|
29
|
+
} from './PublicDomainDtoAuction';
|
|
23
30
|
import type { MoneyDto } from './MoneyDto';
|
|
24
31
|
import {
|
|
25
32
|
MoneyDtoFromJSON,
|
|
@@ -58,6 +65,12 @@ export interface PublicDomainDto {
|
|
|
58
65
|
* @memberof PublicDomainDto
|
|
59
66
|
*/
|
|
60
67
|
seo: PublicDomainDtoSeo;
|
|
68
|
+
/**
|
|
69
|
+
* The auction data if the domain has an auction
|
|
70
|
+
* @type {PublicDomainDtoAuction}
|
|
71
|
+
* @memberof PublicDomainDto
|
|
72
|
+
*/
|
|
73
|
+
auction: PublicDomainDtoAuction | null;
|
|
61
74
|
/**
|
|
62
75
|
* The TLD for this domain.
|
|
63
76
|
* @type {string}
|
|
@@ -105,6 +118,7 @@ export function instanceOfPublicDomainDto(value: object): value is PublicDomainD
|
|
|
105
118
|
if (!('seller' in value) || value['seller'] === undefined) return false;
|
|
106
119
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
107
120
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
121
|
+
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
108
122
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
109
123
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
124
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
@@ -128,6 +142,7 @@ export function PublicDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
128
142
|
'seller': json['seller'],
|
|
129
143
|
'url': json['url'],
|
|
130
144
|
'seo': PublicDomainDtoSeoFromJSON(json['seo']),
|
|
145
|
+
'auction': PublicDomainDtoAuctionFromJSON(json['auction']),
|
|
131
146
|
'tld': json['tld'],
|
|
132
147
|
'name': json['name'],
|
|
133
148
|
'displayName': json['displayName'],
|
|
@@ -152,6 +167,7 @@ export function PublicDomainDtoToJSONTyped(value?: PublicDomainDto | null, ignor
|
|
|
152
167
|
'seller': value['seller'],
|
|
153
168
|
'url': value['url'],
|
|
154
169
|
'seo': PublicDomainDtoSeoToJSON(value['seo']),
|
|
170
|
+
'auction': PublicDomainDtoAuctionToJSON(value['auction']),
|
|
155
171
|
'tld': value['tld'],
|
|
156
172
|
'name': value['name'],
|
|
157
173
|
'displayName': value['displayName'],
|