@randock/nameshift-api-client 0.0.71 → 0.0.72
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 +5 -3
- package/README.md +3 -3
- package/dist/apis/DomainsPublicApi.d.ts +4 -3
- package/dist/apis/DomainsPublicApi.js +4 -1
- package/dist/models/ChartDataPoint.d.ts +37 -0
- package/dist/models/ChartDataPoint.js +51 -0
- package/dist/models/DomainStats.d.ts +58 -0
- package/dist/models/DomainStats.js +67 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +65 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +71 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +37 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +51 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +37 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +51 -0
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +11 -6
- package/src/models/ChartDataPoint.ts +70 -0
- package/src/models/DomainStats.ts +106 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +131 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +70 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +70 -0
- package/src/models/index.ts +5 -3
- package/dist/models/DomainSalesInformationDto.d.ts +0 -58
- package/dist/models/DomainSalesInformationDto.js +0 -66
- package/dist/models/DomainSalesInformationDtoBuyNowPrice.d.ts +0 -37
- package/dist/models/DomainSalesInformationDtoBuyNowPrice.js +0 -51
- package/dist/models/DomainSalesInformationDtoMinOfferPrice.d.ts +0 -37
- package/dist/models/DomainSalesInformationDtoMinOfferPrice.js +0 -51
- package/src/models/DomainSalesInformationDto.ts +0 -116
- package/src/models/DomainSalesInformationDtoBuyNowPrice.ts +0 -70
- package/src/models/DomainSalesInformationDtoMinOfferPrice.ts +0 -70
package/dist/models/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
|
28
28
|
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
29
29
|
__exportStar(require("./BuyerUserDto"), exports);
|
|
30
30
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
31
|
+
__exportStar(require("./ChartDataPoint"), exports);
|
|
31
32
|
__exportStar(require("./ConflictException"), exports);
|
|
32
33
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
33
34
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
@@ -35,10 +36,8 @@ __exportStar(require("./CreateOrderInput"), exports);
|
|
|
35
36
|
__exportStar(require("./DashboardStatsDto"), exports);
|
|
36
37
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
37
38
|
__exportStar(require("./DomainDto"), exports);
|
|
38
|
-
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
39
|
-
__exportStar(require("./DomainSalesInformationDtoBuyNowPrice"), exports);
|
|
40
|
-
__exportStar(require("./DomainSalesInformationDtoMinOfferPrice"), exports);
|
|
41
39
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
40
|
+
__exportStar(require("./DomainStats"), exports);
|
|
42
41
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
43
42
|
__exportStar(require("./DomainTransferDomainDto"), exports);
|
|
44
43
|
__exportStar(require("./DomainTransferDto"), exports);
|
|
@@ -53,6 +52,9 @@ __exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWit
|
|
|
53
52
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
54
53
|
__exportStar(require("./IntersectionDomainDtoWithDomainUrlDto"), exports);
|
|
55
54
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
55
|
+
__exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
|
|
56
|
+
__exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice"), exports);
|
|
57
|
+
__exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice"), exports);
|
|
56
58
|
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
|
|
57
59
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
58
60
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDtoLastMessageData"), exports);
|
package/package.json
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
19
|
NotFoundException,
|
|
20
20
|
ThrottlerException,
|
|
21
21
|
ValidationException,
|
|
22
22
|
} from '../models/index';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON,
|
|
25
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
26
26
|
NotFoundExceptionFromJSON,
|
|
27
27
|
NotFoundExceptionToJSON,
|
|
28
28
|
ThrottlerExceptionFromJSON,
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
|
|
34
34
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
35
35
|
domainName: string;
|
|
36
|
+
includeStats?: boolean;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
/**
|
|
@@ -43,7 +44,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
43
44
|
/**
|
|
44
45
|
*
|
|
45
46
|
*/
|
|
46
|
-
async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
47
|
+
async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainSalesInformationDtoWithDomainStatsDto>> {
|
|
47
48
|
if (requestParameters['domainName'] == null) {
|
|
48
49
|
throw new runtime.RequiredError(
|
|
49
50
|
'domainName',
|
|
@@ -53,6 +54,10 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
53
54
|
|
|
54
55
|
const queryParameters: any = {};
|
|
55
56
|
|
|
57
|
+
if (requestParameters['includeStats'] != null) {
|
|
58
|
+
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
59
|
+
}
|
|
60
|
+
|
|
56
61
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
62
|
|
|
58
63
|
const response = await this.request({
|
|
@@ -62,13 +67,13 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
62
67
|
query: queryParameters,
|
|
63
68
|
}, initOverrides);
|
|
64
69
|
|
|
65
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
70
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(jsonValue));
|
|
66
71
|
}
|
|
67
72
|
|
|
68
73
|
/**
|
|
69
74
|
*
|
|
70
75
|
*/
|
|
71
|
-
async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
76
|
+
async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDto> {
|
|
72
77
|
const response = await this.getDomainSalesInformationRaw(requestParameters, initOverrides);
|
|
73
78
|
return await response.value();
|
|
74
79
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 ChartDataPoint
|
|
20
|
+
*/
|
|
21
|
+
export interface ChartDataPoint {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChartDataPoint
|
|
26
|
+
*/
|
|
27
|
+
date: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ChartDataPoint
|
|
32
|
+
*/
|
|
33
|
+
value: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ChartDataPoint interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfChartDataPoint(value: object): value is ChartDataPoint {
|
|
40
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ChartDataPointFromJSON(json: any): ChartDataPoint {
|
|
46
|
+
return ChartDataPointFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ChartDataPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChartDataPoint {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'date': json['date'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ChartDataPointToJSON(value?: ChartDataPoint | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'date': value['date'],
|
|
67
|
+
'value': value['value'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { ChartDataPoint } from './ChartDataPoint';
|
|
17
|
+
import {
|
|
18
|
+
ChartDataPointFromJSON,
|
|
19
|
+
ChartDataPointFromJSONTyped,
|
|
20
|
+
ChartDataPointToJSON,
|
|
21
|
+
} from './ChartDataPoint';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DomainStats
|
|
27
|
+
*/
|
|
28
|
+
export interface DomainStats {
|
|
29
|
+
/**
|
|
30
|
+
* The id for this website.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DomainStats
|
|
33
|
+
*/
|
|
34
|
+
websiteId: string;
|
|
35
|
+
/**
|
|
36
|
+
* The url for public stats for this website.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DomainStats
|
|
39
|
+
*/
|
|
40
|
+
shareUrl: string;
|
|
41
|
+
/**
|
|
42
|
+
* The time unit
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DomainStats
|
|
45
|
+
*/
|
|
46
|
+
chartUnit: DomainStatsChartUnitEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The data for the chart
|
|
49
|
+
* @type {Array<ChartDataPoint>}
|
|
50
|
+
* @memberof DomainStats
|
|
51
|
+
*/
|
|
52
|
+
chartData: Array<ChartDataPoint>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export const DomainStatsChartUnitEnum = {
|
|
60
|
+
DAY: 'day',
|
|
61
|
+
MONTH: 'month'
|
|
62
|
+
} as const;
|
|
63
|
+
export type DomainStatsChartUnitEnum = typeof DomainStatsChartUnitEnum[keyof typeof DomainStatsChartUnitEnum];
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the DomainStats interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfDomainStats(value: object): value is DomainStats {
|
|
70
|
+
if (!('websiteId' in value) || value['websiteId'] === undefined) return false;
|
|
71
|
+
if (!('shareUrl' in value) || value['shareUrl'] === undefined) return false;
|
|
72
|
+
if (!('chartUnit' in value) || value['chartUnit'] === undefined) return false;
|
|
73
|
+
if (!('chartData' in value) || value['chartData'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function DomainStatsFromJSON(json: any): DomainStats {
|
|
78
|
+
return DomainStatsFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function DomainStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainStats {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'websiteId': json['websiteId'],
|
|
88
|
+
'shareUrl': json['shareUrl'],
|
|
89
|
+
'chartUnit': json['chartUnit'],
|
|
90
|
+
'chartData': ((json['chartData'] as Array<any>).map(ChartDataPointFromJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function DomainStatsToJSON(value?: DomainStats | null): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'websiteId': value['websiteId'],
|
|
101
|
+
'shareUrl': value['shareUrl'],
|
|
102
|
+
'chartUnit': value['chartUnit'],
|
|
103
|
+
'chartData': ((value['chartData'] as Array<any>).map(ChartDataPointToJSON)),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
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 { IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice } from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSON,
|
|
19
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSONTyped,
|
|
20
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceToJSON,
|
|
21
|
+
} from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice';
|
|
22
|
+
import type { DomainSellerDto } from './DomainSellerDto';
|
|
23
|
+
import {
|
|
24
|
+
DomainSellerDtoFromJSON,
|
|
25
|
+
DomainSellerDtoFromJSONTyped,
|
|
26
|
+
DomainSellerDtoToJSON,
|
|
27
|
+
} from './DomainSellerDto';
|
|
28
|
+
import type { DomainStats } from './DomainStats';
|
|
29
|
+
import {
|
|
30
|
+
DomainStatsFromJSON,
|
|
31
|
+
DomainStatsFromJSONTyped,
|
|
32
|
+
DomainStatsToJSON,
|
|
33
|
+
} from './DomainStats';
|
|
34
|
+
import type { IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice } from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice';
|
|
35
|
+
import {
|
|
36
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSON,
|
|
37
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSONTyped,
|
|
38
|
+
IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceToJSON,
|
|
39
|
+
} from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
45
|
+
*/
|
|
46
|
+
export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {DomainStats}
|
|
50
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
51
|
+
*/
|
|
52
|
+
stats: DomainStats | null;
|
|
53
|
+
/**
|
|
54
|
+
* The domain name (example.com, xn--maana-pta.com)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
57
|
+
*/
|
|
58
|
+
domain: string;
|
|
59
|
+
/**
|
|
60
|
+
* The domain display name (example.com, mañana.com)
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
63
|
+
*/
|
|
64
|
+
domainDisplayName: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice}
|
|
68
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
69
|
+
*/
|
|
70
|
+
buyNowPrice: IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice}
|
|
74
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
75
|
+
*/
|
|
76
|
+
minOfferPrice: IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice | null;
|
|
77
|
+
/**
|
|
78
|
+
* The domain seller information
|
|
79
|
+
* @type {DomainSellerDto}
|
|
80
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
81
|
+
*/
|
|
82
|
+
seller: DomainSellerDto;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDto interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDto {
|
|
89
|
+
if (!('stats' in value) || value['stats'] === undefined) return false;
|
|
90
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
91
|
+
if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
|
|
92
|
+
if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined) return false;
|
|
93
|
+
if (!('minOfferPrice' in value) || value['minOfferPrice'] === undefined) return false;
|
|
94
|
+
if (!('seller' in value) || value['seller'] === undefined) return false;
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDto {
|
|
99
|
+
return IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDto {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'stats': DomainStatsFromJSON(json['stats']),
|
|
109
|
+
'domain': json['domain'],
|
|
110
|
+
'domainDisplayName': json['domainDisplayName'],
|
|
111
|
+
'buyNowPrice': IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSON(json['buyNowPrice']),
|
|
112
|
+
'minOfferPrice': IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSON(json['minOfferPrice']),
|
|
113
|
+
'seller': DomainSellerDtoFromJSON(json['seller']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDto | null): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'stats': DomainStatsToJSON(value['stats']),
|
|
124
|
+
'domain': value['domain'],
|
|
125
|
+
'domainDisplayName': value['domainDisplayName'],
|
|
126
|
+
'buyNowPrice': IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceToJSON(value['buyNowPrice']),
|
|
127
|
+
'minOfferPrice': IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceToJSON(value['minOfferPrice']),
|
|
128
|
+
'seller': DomainSellerDtoToJSON(value['seller']),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* Buy now price or null if buy now is not enabled
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice
|
|
20
|
+
*/
|
|
21
|
+
export interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice {
|
|
46
|
+
return IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currencyCode': json['currencyCode'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceToJSON(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'amount': value['amount'],
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* min offer price or null if offers are not enabled
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice
|
|
20
|
+
*/
|
|
21
|
+
export interface IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice(value: object): value is IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSON(json: any): IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice {
|
|
46
|
+
return IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currencyCode': json['currencyCode'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceToJSON(value?: IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'amount': value['amount'],
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './BuyerDomainTransferListItemDomainDto';
|
|
|
12
12
|
export * from './BuyerDomainTransferListItemDto';
|
|
13
13
|
export * from './BuyerUserDto';
|
|
14
14
|
export * from './ChangeOrderStatusInput';
|
|
15
|
+
export * from './ChartDataPoint';
|
|
15
16
|
export * from './ConflictException';
|
|
16
17
|
export * from './CreateLeadInput';
|
|
17
18
|
export * from './CreateLeadMessageInput';
|
|
@@ -19,10 +20,8 @@ export * from './CreateOrderInput';
|
|
|
19
20
|
export * from './DashboardStatsDto';
|
|
20
21
|
export * from './DeleteDomainsInput';
|
|
21
22
|
export * from './DomainDto';
|
|
22
|
-
export * from './DomainSalesInformationDto';
|
|
23
|
-
export * from './DomainSalesInformationDtoBuyNowPrice';
|
|
24
|
-
export * from './DomainSalesInformationDtoMinOfferPrice';
|
|
25
23
|
export * from './DomainSellerDto';
|
|
24
|
+
export * from './DomainStats';
|
|
26
25
|
export * from './DomainTransferAgentDto';
|
|
27
26
|
export * from './DomainTransferDomainDto';
|
|
28
27
|
export * from './DomainTransferDto';
|
|
@@ -37,6 +36,9 @@ export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
|
|
|
37
36
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
38
37
|
export * from './IntersectionDomainDtoWithDomainUrlDto';
|
|
39
38
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
39
|
+
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
|
|
40
|
+
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice';
|
|
41
|
+
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice';
|
|
40
42
|
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
41
43
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
42
44
|
export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nameshift
|
|
3
|
-
* Nameshift API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { DomainSalesInformationDtoMinOfferPrice } from './DomainSalesInformationDtoMinOfferPrice';
|
|
13
|
-
import type { DomainSellerDto } from './DomainSellerDto';
|
|
14
|
-
import type { DomainSalesInformationDtoBuyNowPrice } from './DomainSalesInformationDtoBuyNowPrice';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface DomainSalesInformationDto
|
|
19
|
-
*/
|
|
20
|
-
export interface DomainSalesInformationDto {
|
|
21
|
-
/**
|
|
22
|
-
* The domain name (example.com, xn--maana-pta.com)
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof DomainSalesInformationDto
|
|
25
|
-
*/
|
|
26
|
-
domain: string;
|
|
27
|
-
/**
|
|
28
|
-
* The domain display name (example.com, mañana.com)
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof DomainSalesInformationDto
|
|
31
|
-
*/
|
|
32
|
-
domainDisplayName: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {DomainSalesInformationDtoBuyNowPrice}
|
|
36
|
-
* @memberof DomainSalesInformationDto
|
|
37
|
-
*/
|
|
38
|
-
buyNowPrice: DomainSalesInformationDtoBuyNowPrice | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {DomainSalesInformationDtoMinOfferPrice}
|
|
42
|
-
* @memberof DomainSalesInformationDto
|
|
43
|
-
*/
|
|
44
|
-
minOfferPrice: DomainSalesInformationDtoMinOfferPrice | null;
|
|
45
|
-
/**
|
|
46
|
-
* The domain seller information
|
|
47
|
-
* @type {DomainSellerDto}
|
|
48
|
-
* @memberof DomainSalesInformationDto
|
|
49
|
-
*/
|
|
50
|
-
seller: DomainSellerDto;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Check if a given object implements the DomainSalesInformationDto interface.
|
|
54
|
-
*/
|
|
55
|
-
export declare function instanceOfDomainSalesInformationDto(value: object): value is DomainSalesInformationDto;
|
|
56
|
-
export declare function DomainSalesInformationDtoFromJSON(json: any): DomainSalesInformationDto;
|
|
57
|
-
export declare function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationDto;
|
|
58
|
-
export declare function DomainSalesInformationDtoToJSON(value?: DomainSalesInformationDto | null): any;
|