@randock/nameshift-api-client 0.0.348 → 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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AuctionsPublicApi.d.ts +16 -1
- package/dist/apis/AuctionsPublicApi.js +57 -0
- package/dist/models/List200Response4.d.ts +65 -0
- package/dist/models/List200Response4.js +74 -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 +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/AuctionsPublicApi.ts +63 -0
- package/src/models/List200Response4.ts +126 -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 +6 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -232,6 +232,7 @@ src/models/List200Response.ts
|
|
|
232
232
|
src/models/List200Response1.ts
|
|
233
233
|
src/models/List200Response2.ts
|
|
234
234
|
src/models/List200Response3.ts
|
|
235
|
+
src/models/List200Response4.ts
|
|
235
236
|
src/models/ListAccountMetricsDto.ts
|
|
236
237
|
src/models/ListAccountUserDto.ts
|
|
237
238
|
src/models/ListAccounts200Response.ts
|
|
@@ -272,7 +273,12 @@ src/models/ParsedDomainDto.ts
|
|
|
272
273
|
src/models/PartnerAuctionDto.ts
|
|
273
274
|
src/models/PrivateAccountGetMeResponse.ts
|
|
274
275
|
src/models/PublicAccountInformationDto.ts
|
|
276
|
+
src/models/PublicAuctionListItemDto.ts
|
|
277
|
+
src/models/PublicAuctionListItemDtoDomainInformation.ts
|
|
278
|
+
src/models/PublicAuctionListItemDtoDomainMozMetrics.ts
|
|
279
|
+
src/models/PublicAuctionListItemDtoDomainSeo.ts
|
|
275
280
|
src/models/PublicDomainDto.ts
|
|
281
|
+
src/models/PublicDomainDtoAuction.ts
|
|
276
282
|
src/models/PublicDomainDtoSeo.ts
|
|
277
283
|
src/models/PublicDomainDtoSeoMoz.ts
|
|
278
284
|
src/models/PublicLeadBuyerDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.349
|
|
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.349 --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
|
+
c64965be3b97a522b135e88ba750eeec1bc92a52029b2bd59bb6d426e9703e254a405a00dca3b7991ad0c3b32d0eb2ff
|
|
@@ -10,10 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AuctionDto } from '../models/index';
|
|
13
|
+
import type { AuctionDto, List200Response4, SortDto } from '../models/index';
|
|
14
14
|
export interface AuctionsPublicApiGetAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface AuctionsPublicApiListRequest {
|
|
18
|
+
limit?: number;
|
|
19
|
+
sort?: Array<SortDto>;
|
|
20
|
+
filter?: string;
|
|
21
|
+
search?: string;
|
|
22
|
+
cursor?: string;
|
|
23
|
+
}
|
|
17
24
|
/**
|
|
18
25
|
*
|
|
19
26
|
*/
|
|
@@ -26,4 +33,12 @@ export declare class AuctionsPublicApi extends runtime.BaseAPI {
|
|
|
26
33
|
*
|
|
27
34
|
*/
|
|
28
35
|
getAuction(requestParameters: AuctionsPublicApiGetAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionDto>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
listRaw(requestParameters: AuctionsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response4>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
list(requestParameters?: AuctionsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response4>;
|
|
29
44
|
}
|
|
@@ -119,6 +119,63 @@ var AuctionsPublicApi = /** @class */ (function (_super) {
|
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
AuctionsPublicApi.prototype.listRaw = function (requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var queryParameters, headerParameters, response;
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
switch (_a.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
queryParameters = {};
|
|
132
|
+
if (requestParameters['limit'] != null) {
|
|
133
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters['sort'] != null) {
|
|
136
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
137
|
+
}
|
|
138
|
+
if (requestParameters['filter'] != null) {
|
|
139
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['search'] != null) {
|
|
142
|
+
queryParameters['search'] = requestParameters['search'];
|
|
143
|
+
}
|
|
144
|
+
if (requestParameters['cursor'] != null) {
|
|
145
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
146
|
+
}
|
|
147
|
+
headerParameters = {};
|
|
148
|
+
return [4 /*yield*/, this.request({
|
|
149
|
+
path: "/auctions",
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
}, initOverrides)];
|
|
154
|
+
case 1:
|
|
155
|
+
response = _a.sent();
|
|
156
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response4FromJSON)(jsonValue); })];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
AuctionsPublicApi.prototype.list = function () {
|
|
165
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
166
|
+
var response;
|
|
167
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
171
|
+
case 1:
|
|
172
|
+
response = _a.sent();
|
|
173
|
+
return [4 /*yield*/, response.value()];
|
|
174
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
};
|
|
122
179
|
return AuctionsPublicApi;
|
|
123
180
|
}(runtime.BaseAPI));
|
|
124
181
|
exports.AuctionsPublicApi = AuctionsPublicApi;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CursorBasedPageInfo } from './CursorBasedPageInfo';
|
|
13
|
+
import type { PublicAuctionListItemDto } from './PublicAuctionListItemDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface List200Response4
|
|
18
|
+
*/
|
|
19
|
+
export interface List200Response4 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof List200Response4
|
|
24
|
+
*/
|
|
25
|
+
limit: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof List200Response4
|
|
30
|
+
*/
|
|
31
|
+
type: List200Response4TypeEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CursorBasedPageInfo}
|
|
35
|
+
* @memberof List200Response4
|
|
36
|
+
*/
|
|
37
|
+
pagination: CursorBasedPageInfo;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {object}
|
|
41
|
+
* @memberof List200Response4
|
|
42
|
+
*/
|
|
43
|
+
aggregations: object;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<PublicAuctionListItemDto>}
|
|
47
|
+
* @memberof List200Response4
|
|
48
|
+
*/
|
|
49
|
+
data?: Array<PublicAuctionListItemDto>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const List200Response4TypeEnum: {
|
|
55
|
+
readonly CURSOR: "cursor";
|
|
56
|
+
};
|
|
57
|
+
export type List200Response4TypeEnum = typeof List200Response4TypeEnum[keyof typeof List200Response4TypeEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the List200Response4 interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfList200Response4(value: object): value is List200Response4;
|
|
62
|
+
export declare function List200Response4FromJSON(json: any): List200Response4;
|
|
63
|
+
export declare function List200Response4FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response4;
|
|
64
|
+
export declare function List200Response4ToJSON(json: any): List200Response4;
|
|
65
|
+
export declare function List200Response4ToJSONTyped(value?: List200Response4 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.List200Response4TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfList200Response4 = instanceOfList200Response4;
|
|
18
|
+
exports.List200Response4FromJSON = List200Response4FromJSON;
|
|
19
|
+
exports.List200Response4FromJSONTyped = List200Response4FromJSONTyped;
|
|
20
|
+
exports.List200Response4ToJSON = List200Response4ToJSON;
|
|
21
|
+
exports.List200Response4ToJSONTyped = List200Response4ToJSONTyped;
|
|
22
|
+
var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
|
|
23
|
+
var PublicAuctionListItemDto_1 = require("./PublicAuctionListItemDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.List200Response4TypeEnum = {
|
|
28
|
+
CURSOR: 'cursor'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the List200Response4 interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfList200Response4(value) {
|
|
34
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('pagination' in value) || value['pagination'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('aggregations' in value) || value['aggregations'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function List200Response4FromJSON(json) {
|
|
45
|
+
return List200Response4FromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function List200Response4FromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'limit': json['limit'],
|
|
53
|
+
'type': json['type'],
|
|
54
|
+
'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoFromJSON)(json['pagination']),
|
|
55
|
+
'aggregations': json['aggregations'],
|
|
56
|
+
'data': json['data'] == null ? undefined : (json['data'].map(PublicAuctionListItemDto_1.PublicAuctionListItemDtoFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function List200Response4ToJSON(json) {
|
|
60
|
+
return List200Response4ToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function List200Response4ToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'limit': value['limit'],
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoToJSON)(value['pagination']),
|
|
71
|
+
'aggregations': value['aggregations'],
|
|
72
|
+
'data': value['data'] == null ? undefined : (value['data'].map(PublicAuctionListItemDto_1.PublicAuctionListItemDtoToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { PublicAuctionListItemDtoDomainInformation } from './PublicAuctionListItemDtoDomainInformation';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PublicAuctionListItemDto
|
|
18
|
+
*/
|
|
19
|
+
export interface PublicAuctionListItemDto {
|
|
20
|
+
/**
|
|
21
|
+
* Auction Id
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PublicAuctionListItemDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Auction status
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PublicAuctionListItemDto
|
|
30
|
+
*/
|
|
31
|
+
status: PublicAuctionListItemDtoStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Auction minimum bid
|
|
34
|
+
* @type {MoneyDto}
|
|
35
|
+
* @memberof PublicAuctionListItemDto
|
|
36
|
+
*/
|
|
37
|
+
minimumBid: MoneyDto;
|
|
38
|
+
/**
|
|
39
|
+
* Auction reserve price
|
|
40
|
+
* @type {MoneyDto}
|
|
41
|
+
* @memberof PublicAuctionListItemDto
|
|
42
|
+
*/
|
|
43
|
+
reservePrice: MoneyDto | null;
|
|
44
|
+
/**
|
|
45
|
+
* Auction highest bid
|
|
46
|
+
* @type {MoneyDto}
|
|
47
|
+
* @memberof PublicAuctionListItemDto
|
|
48
|
+
*/
|
|
49
|
+
highestBid: MoneyDto | null;
|
|
50
|
+
/**
|
|
51
|
+
* Auction start date
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof PublicAuctionListItemDto
|
|
54
|
+
*/
|
|
55
|
+
startDate: Date;
|
|
56
|
+
/**
|
|
57
|
+
* Auction end date
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof PublicAuctionListItemDto
|
|
60
|
+
*/
|
|
61
|
+
endDate: Date;
|
|
62
|
+
/**
|
|
63
|
+
* Auction domain information
|
|
64
|
+
* @type {PublicAuctionListItemDtoDomainInformation}
|
|
65
|
+
* @memberof PublicAuctionListItemDto
|
|
66
|
+
*/
|
|
67
|
+
domain: PublicAuctionListItemDtoDomainInformation;
|
|
68
|
+
/**
|
|
69
|
+
* Auction number of bids
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof PublicAuctionListItemDto
|
|
72
|
+
*/
|
|
73
|
+
numberOfBids: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const PublicAuctionListItemDtoStatusEnum: {
|
|
79
|
+
readonly SCHEDULED: "scheduled";
|
|
80
|
+
readonly ACTIVE: "active";
|
|
81
|
+
readonly ENDED: "ended";
|
|
82
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
83
|
+
readonly FINISHED: "finished";
|
|
84
|
+
};
|
|
85
|
+
export type PublicAuctionListItemDtoStatusEnum = typeof PublicAuctionListItemDtoStatusEnum[keyof typeof PublicAuctionListItemDtoStatusEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the PublicAuctionListItemDto interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfPublicAuctionListItemDto(value: object): value is PublicAuctionListItemDto;
|
|
90
|
+
export declare function PublicAuctionListItemDtoFromJSON(json: any): PublicAuctionListItemDto;
|
|
91
|
+
export declare function PublicAuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDto;
|
|
92
|
+
export declare function PublicAuctionListItemDtoToJSON(json: any): PublicAuctionListItemDto;
|
|
93
|
+
export declare function PublicAuctionListItemDtoToJSONTyped(value?: PublicAuctionListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.PublicAuctionListItemDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPublicAuctionListItemDto = instanceOfPublicAuctionListItemDto;
|
|
18
|
+
exports.PublicAuctionListItemDtoFromJSON = PublicAuctionListItemDtoFromJSON;
|
|
19
|
+
exports.PublicAuctionListItemDtoFromJSONTyped = PublicAuctionListItemDtoFromJSONTyped;
|
|
20
|
+
exports.PublicAuctionListItemDtoToJSON = PublicAuctionListItemDtoToJSON;
|
|
21
|
+
exports.PublicAuctionListItemDtoToJSONTyped = PublicAuctionListItemDtoToJSONTyped;
|
|
22
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
+
var PublicAuctionListItemDtoDomainInformation_1 = require("./PublicAuctionListItemDtoDomainInformation");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.PublicAuctionListItemDtoStatusEnum = {
|
|
28
|
+
SCHEDULED: 'scheduled',
|
|
29
|
+
ACTIVE: 'active',
|
|
30
|
+
ENDED: 'ended',
|
|
31
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
32
|
+
FINISHED: 'finished'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the PublicAuctionListItemDto interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfPublicAuctionListItemDto(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
function PublicAuctionListItemDtoFromJSON(json) {
|
|
59
|
+
return PublicAuctionListItemDtoFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PublicAuctionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': json['id'],
|
|
67
|
+
'status': json['status'],
|
|
68
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minimumBid']),
|
|
69
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['reservePrice']),
|
|
70
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
71
|
+
'startDate': (new Date(json['startDate'])),
|
|
72
|
+
'endDate': (new Date(json['endDate'])),
|
|
73
|
+
'domain': (0, PublicAuctionListItemDtoDomainInformation_1.PublicAuctionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
74
|
+
'numberOfBids': json['numberOfBids'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function PublicAuctionListItemDtoToJSON(json) {
|
|
78
|
+
return PublicAuctionListItemDtoToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function PublicAuctionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
81
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'status': value['status'],
|
|
88
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['minimumBid']),
|
|
89
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['reservePrice']),
|
|
90
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
91
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
92
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
93
|
+
'domain': (0, PublicAuctionListItemDtoDomainInformation_1.PublicAuctionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
94
|
+
'numberOfBids': value['numberOfBids'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { PublicAuctionListItemDtoDomainSeo } from './PublicAuctionListItemDtoDomainSeo';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PublicAuctionListItemDtoDomainInformation
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicAuctionListItemDtoDomainInformation {
|
|
19
|
+
/**
|
|
20
|
+
* Domain TLD
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
23
|
+
*/
|
|
24
|
+
tld: string;
|
|
25
|
+
/**
|
|
26
|
+
* Domain name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Domain display name
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
35
|
+
*/
|
|
36
|
+
displayName: string;
|
|
37
|
+
/**
|
|
38
|
+
* Seller name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
41
|
+
*/
|
|
42
|
+
seller: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Domain SEO metrics
|
|
45
|
+
* @type {PublicAuctionListItemDtoDomainSeo}
|
|
46
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
47
|
+
*/
|
|
48
|
+
seo: PublicAuctionListItemDtoDomainSeo;
|
|
49
|
+
/**
|
|
50
|
+
* Domain URL
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PublicAuctionListItemDtoDomainInformation
|
|
53
|
+
*/
|
|
54
|
+
url: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PublicAuctionListItemDtoDomainInformation interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfPublicAuctionListItemDtoDomainInformation(value: object): value is PublicAuctionListItemDtoDomainInformation;
|
|
60
|
+
export declare function PublicAuctionListItemDtoDomainInformationFromJSON(json: any): PublicAuctionListItemDtoDomainInformation;
|
|
61
|
+
export declare function PublicAuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainInformation;
|
|
62
|
+
export declare function PublicAuctionListItemDtoDomainInformationToJSON(json: any): PublicAuctionListItemDtoDomainInformation;
|
|
63
|
+
export declare function PublicAuctionListItemDtoDomainInformationToJSONTyped(value?: PublicAuctionListItemDtoDomainInformation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfPublicAuctionListItemDtoDomainInformation = instanceOfPublicAuctionListItemDtoDomainInformation;
|
|
17
|
+
exports.PublicAuctionListItemDtoDomainInformationFromJSON = PublicAuctionListItemDtoDomainInformationFromJSON;
|
|
18
|
+
exports.PublicAuctionListItemDtoDomainInformationFromJSONTyped = PublicAuctionListItemDtoDomainInformationFromJSONTyped;
|
|
19
|
+
exports.PublicAuctionListItemDtoDomainInformationToJSON = PublicAuctionListItemDtoDomainInformationToJSON;
|
|
20
|
+
exports.PublicAuctionListItemDtoDomainInformationToJSONTyped = PublicAuctionListItemDtoDomainInformationToJSONTyped;
|
|
21
|
+
var PublicAuctionListItemDtoDomainSeo_1 = require("./PublicAuctionListItemDtoDomainSeo");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicAuctionListItemDtoDomainInformation interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicAuctionListItemDtoDomainInformation(value) {
|
|
26
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('seller' in value) || value['seller'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function PublicAuctionListItemDtoDomainInformationFromJSON(json) {
|
|
41
|
+
return PublicAuctionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PublicAuctionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'tld': json['tld'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'displayName': json['displayName'],
|
|
51
|
+
'seller': json['seller'],
|
|
52
|
+
'seo': (0, PublicAuctionListItemDtoDomainSeo_1.PublicAuctionListItemDtoDomainSeoFromJSON)(json['seo']),
|
|
53
|
+
'url': json['url'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function PublicAuctionListItemDtoDomainInformationToJSON(json) {
|
|
57
|
+
return PublicAuctionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function PublicAuctionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'tld': value['tld'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'displayName': value['displayName'],
|
|
68
|
+
'seller': value['seller'],
|
|
69
|
+
'seo': (0, PublicAuctionListItemDtoDomainSeo_1.PublicAuctionListItemDtoDomainSeoToJSON)(value['seo']),
|
|
70
|
+
'url': value['url'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PublicAuctionListItemDtoDomainMozMetrics
|
|
16
|
+
*/
|
|
17
|
+
export interface PublicAuctionListItemDtoDomainMozMetrics {
|
|
18
|
+
/**
|
|
19
|
+
* Domain authority
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
22
|
+
*/
|
|
23
|
+
domainAuthority: number;
|
|
24
|
+
/**
|
|
25
|
+
* Page authority
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
28
|
+
*/
|
|
29
|
+
pageAuthority: number;
|
|
30
|
+
/**
|
|
31
|
+
* Backlinks count
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
34
|
+
*/
|
|
35
|
+
backlinks: number;
|
|
36
|
+
/**
|
|
37
|
+
* Spam score
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
40
|
+
*/
|
|
41
|
+
spamScore: number;
|
|
42
|
+
/**
|
|
43
|
+
* Root domains count
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PublicAuctionListItemDtoDomainMozMetrics
|
|
46
|
+
*/
|
|
47
|
+
rootDomains: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PublicAuctionListItemDtoDomainMozMetrics interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfPublicAuctionListItemDtoDomainMozMetrics(value: object): value is PublicAuctionListItemDtoDomainMozMetrics;
|
|
53
|
+
export declare function PublicAuctionListItemDtoDomainMozMetricsFromJSON(json: any): PublicAuctionListItemDtoDomainMozMetrics;
|
|
54
|
+
export declare function PublicAuctionListItemDtoDomainMozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAuctionListItemDtoDomainMozMetrics;
|
|
55
|
+
export declare function PublicAuctionListItemDtoDomainMozMetricsToJSON(json: any): PublicAuctionListItemDtoDomainMozMetrics;
|
|
56
|
+
export declare function PublicAuctionListItemDtoDomainMozMetricsToJSONTyped(value?: PublicAuctionListItemDtoDomainMozMetrics | null, ignoreDiscriminator?: boolean): any;
|