@randock/nameshift-api-client 0.0.202 → 0.0.204
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 -4
- package/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +3 -5
- package/dist/apis/DomainsPublicApi.d.ts +3 -3
- package/dist/apis/DomainsPublicApi.js +1 -1
- package/dist/models/AccountSettingsDto.d.ts +15 -3
- package/dist/models/AccountSettingsDto.js +11 -3
- package/dist/models/AccountSettingsInput.d.ts +6 -0
- package/dist/models/AccountSettingsInput.js +2 -0
- package/dist/models/DomainDto.d.ts +7 -0
- package/dist/models/DomainDto.js +5 -0
- package/dist/models/DomainSalesInformationDto.d.ts +91 -0
- package/dist/models/{IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto.js → DomainSalesInformationDto.js} +23 -23
- package/dist/models/DomainStatsDto.d.ts +59 -0
- package/dist/models/{DomainStats.js → DomainStatsDto.js} +15 -15
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/LandingPageInput.d.ts +3 -9
- package/dist/models/LandingPageInput.js +0 -2
- package/dist/models/LandingPageSettingsDto.d.ts +44 -0
- package/dist/models/LandingPageSettingsDto.js +59 -0
- package/dist/models/MajesticMetrics.d.ts +69 -0
- package/dist/models/MajesticMetrics.js +76 -0
- package/dist/models/MajesticTopicTrustFlow.d.ts +44 -0
- package/dist/models/MajesticTopicTrustFlow.js +59 -0
- package/dist/models/MozMetrics.d.ts +12 -0
- package/dist/models/MozMetrics.js +8 -0
- package/dist/models/SeoMetricsDto.d.ts +40 -0
- package/dist/models/SeoMetricsDto.js +57 -0
- package/dist/models/UpdateDomainInput.d.ts +7 -0
- package/dist/models/UpdateDomainInput.js +3 -0
- package/dist/models/index.d.ts +6 -4
- package/dist/models/index.js +6 -4
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +4 -8
- package/src/apis/DomainsPublicApi.ts +6 -6
- package/src/models/AccountSettingsDto.ts +28 -10
- package/src/models/AccountSettingsInput.ts +8 -0
- package/src/models/DomainDto.ts +16 -0
- package/src/models/{IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto.ts → DomainSalesInformationDto.ts} +49 -49
- package/src/models/{DomainStats.ts → DomainStatsDto.ts} +17 -17
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/LandingPageInput.ts +3 -11
- package/src/models/LandingPageSettingsDto.ts +84 -0
- package/src/models/MajesticMetrics.ts +128 -0
- package/src/models/MajesticTopicTrustFlow.ts +84 -0
- package/src/models/MozMetrics.ts +18 -0
- package/src/models/SeoMetricsDto.ts +90 -0
- package/src/models/UpdateDomainInput.ts +15 -0
- package/src/models/index.ts +6 -4
- package/dist/models/AccountSettingsLandingDto.d.ts +0 -56
- package/dist/models/AccountSettingsLandingDto.js +0 -67
- package/dist/models/DomainStats.d.ts +0 -59
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoWithSeoMetricsDto.d.ts +0 -91
- package/dist/models/Seo.d.ts +0 -33
- package/dist/models/Seo.js +0 -52
- package/src/models/AccountSettingsLandingDto.ts +0 -102
- package/src/models/Seo.ts +0 -74
|
@@ -24,31 +24,31 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface DomainStatsDto
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface DomainStatsDto {
|
|
30
30
|
/**
|
|
31
31
|
* The id for this website.
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof DomainStatsDto
|
|
34
34
|
*/
|
|
35
35
|
websiteId: string;
|
|
36
36
|
/**
|
|
37
37
|
* The url for public stats for this website.
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof DomainStatsDto
|
|
40
40
|
*/
|
|
41
41
|
shareUrl: string;
|
|
42
42
|
/**
|
|
43
43
|
* The time unit
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof DomainStatsDto
|
|
46
46
|
*/
|
|
47
|
-
chartUnit:
|
|
47
|
+
chartUnit: DomainStatsDtoChartUnitEnum | null;
|
|
48
48
|
/**
|
|
49
49
|
* The data for the chart
|
|
50
50
|
* @type {Array<ChartDataPoint>}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof DomainStatsDto
|
|
52
52
|
*/
|
|
53
53
|
chartData: Array<ChartDataPoint> | null;
|
|
54
54
|
}
|
|
@@ -57,17 +57,17 @@ export interface DomainStats {
|
|
|
57
57
|
/**
|
|
58
58
|
* @export
|
|
59
59
|
*/
|
|
60
|
-
export const
|
|
60
|
+
export const DomainStatsDtoChartUnitEnum = {
|
|
61
61
|
DAY: 'day',
|
|
62
62
|
MONTH: 'month'
|
|
63
63
|
} as const;
|
|
64
|
-
export type
|
|
64
|
+
export type DomainStatsDtoChartUnitEnum = typeof DomainStatsDtoChartUnitEnum[keyof typeof DomainStatsDtoChartUnitEnum];
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Check if a given object implements the
|
|
68
|
+
* Check if a given object implements the DomainStatsDto interface.
|
|
69
69
|
*/
|
|
70
|
-
export function
|
|
70
|
+
export function instanceOfDomainStatsDto(value: object): value is DomainStatsDto {
|
|
71
71
|
if (!('websiteId' in value) || value['websiteId'] === undefined) return false;
|
|
72
72
|
if (!('shareUrl' in value) || value['shareUrl'] === undefined) return false;
|
|
73
73
|
if (!('chartUnit' in value) || value['chartUnit'] === undefined) return false;
|
|
@@ -75,11 +75,11 @@ export function instanceOfDomainStats(value: object): value is DomainStats {
|
|
|
75
75
|
return true;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export function
|
|
79
|
-
return
|
|
78
|
+
export function DomainStatsDtoFromJSON(json: any): DomainStatsDto {
|
|
79
|
+
return DomainStatsDtoFromJSONTyped(json, false);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
export function
|
|
82
|
+
export function DomainStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainStatsDto {
|
|
83
83
|
if (json == null) {
|
|
84
84
|
return json;
|
|
85
85
|
}
|
|
@@ -92,11 +92,11 @@ export function DomainStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export function
|
|
96
|
-
return
|
|
95
|
+
export function DomainStatsDtoToJSON(json: any): DomainStatsDto {
|
|
96
|
+
return DomainStatsDtoToJSONTyped(json, false);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export function
|
|
99
|
+
export function DomainStatsDtoToJSONTyped(value?: DomainStatsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
100
100
|
if (value == null) {
|
|
101
101
|
return value;
|
|
102
102
|
}
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
LeaseToOwnConfigurationDtoToJSON,
|
|
28
28
|
LeaseToOwnConfigurationDtoToJSONTyped,
|
|
29
29
|
} from './LeaseToOwnConfigurationDto';
|
|
30
|
+
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
31
|
+
import {
|
|
32
|
+
LandingPageSettingsDtoFromJSON,
|
|
33
|
+
LandingPageSettingsDtoFromJSONTyped,
|
|
34
|
+
LandingPageSettingsDtoToJSON,
|
|
35
|
+
LandingPageSettingsDtoToJSONTyped,
|
|
36
|
+
} from './LandingPageSettingsDto';
|
|
30
37
|
import type { AccountDto } from './AccountDto';
|
|
31
38
|
import {
|
|
32
39
|
AccountDtoFromJSON,
|
|
@@ -108,6 +115,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
108
115
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
109
116
|
*/
|
|
110
117
|
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
118
|
+
/**
|
|
119
|
+
* The lease to own configuration
|
|
120
|
+
* @type {LandingPageSettingsDto}
|
|
121
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
122
|
+
*/
|
|
123
|
+
landingPageSettings: LandingPageSettingsDto;
|
|
111
124
|
/**
|
|
112
125
|
* The minimum offer
|
|
113
126
|
* @type {MoneyDto}
|
|
@@ -155,6 +168,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
155
168
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
156
169
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
157
170
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
171
|
+
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined) return false;
|
|
158
172
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
159
173
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
160
174
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
@@ -184,6 +198,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
184
198
|
'currencyCode': json['currencyCode'],
|
|
185
199
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
186
200
|
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
201
|
+
'landingPageSettings': LandingPageSettingsDtoFromJSON(json['landingPageSettings']),
|
|
187
202
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
188
203
|
'createdAt': (new Date(json['createdAt'])),
|
|
189
204
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
@@ -214,6 +229,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
214
229
|
'currencyCode': value['currencyCode'],
|
|
215
230
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
216
231
|
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
232
|
+
'landingPageSettings': LandingPageSettingsDtoToJSON(value['landingPageSettings']),
|
|
217
233
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
218
234
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
219
235
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
LeaseToOwnConfigurationDtoToJSON,
|
|
28
28
|
LeaseToOwnConfigurationDtoToJSONTyped,
|
|
29
29
|
} from './LeaseToOwnConfigurationDto';
|
|
30
|
+
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
31
|
+
import {
|
|
32
|
+
LandingPageSettingsDtoFromJSON,
|
|
33
|
+
LandingPageSettingsDtoFromJSONTyped,
|
|
34
|
+
LandingPageSettingsDtoToJSON,
|
|
35
|
+
LandingPageSettingsDtoToJSONTyped,
|
|
36
|
+
} from './LandingPageSettingsDto';
|
|
30
37
|
import type { AccountDto } from './AccountDto';
|
|
31
38
|
import {
|
|
32
39
|
AccountDtoFromJSON,
|
|
@@ -108,6 +115,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
108
115
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
109
116
|
*/
|
|
110
117
|
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
118
|
+
/**
|
|
119
|
+
* The lease to own configuration
|
|
120
|
+
* @type {LandingPageSettingsDto}
|
|
121
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
122
|
+
*/
|
|
123
|
+
landingPageSettings: LandingPageSettingsDto;
|
|
111
124
|
/**
|
|
112
125
|
* The minimum offer
|
|
113
126
|
* @type {MoneyDto}
|
|
@@ -161,6 +174,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
161
174
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
162
175
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
163
176
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
177
|
+
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined) return false;
|
|
164
178
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
165
179
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
166
180
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
@@ -191,6 +205,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
191
205
|
'currencyCode': json['currencyCode'],
|
|
192
206
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
193
207
|
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
208
|
+
'landingPageSettings': LandingPageSettingsDtoFromJSON(json['landingPageSettings']),
|
|
194
209
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
195
210
|
'createdAt': (new Date(json['createdAt'])),
|
|
196
211
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
@@ -222,6 +237,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
222
237
|
'currencyCode': value['currencyCode'],
|
|
223
238
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
224
239
|
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
240
|
+
'landingPageSettings': LandingPageSettingsDtoToJSON(value['landingPageSettings']),
|
|
225
241
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
226
242
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
227
243
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
@@ -24,25 +24,19 @@ export interface LandingPageInput {
|
|
|
24
24
|
* @type {boolean}
|
|
25
25
|
* @memberof LandingPageInput
|
|
26
26
|
*/
|
|
27
|
-
anonymous?: boolean;
|
|
27
|
+
anonymous?: boolean | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {boolean}
|
|
31
31
|
* @memberof LandingPageInput
|
|
32
32
|
*/
|
|
33
|
-
showRelatedDomains?: boolean;
|
|
33
|
+
showRelatedDomains?: boolean | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {boolean}
|
|
37
37
|
* @memberof LandingPageInput
|
|
38
38
|
*/
|
|
39
|
-
seoMetrics?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof LandingPageInput
|
|
44
|
-
*/
|
|
45
|
-
description?: string | null;
|
|
39
|
+
seoMetrics?: boolean | null;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -65,7 +59,6 @@ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
65
59
|
'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
|
|
66
60
|
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
67
61
|
'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
|
|
68
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
|
|
@@ -83,7 +76,6 @@ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ign
|
|
|
83
76
|
'anonymous': value['anonymous'],
|
|
84
77
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
85
78
|
'seoMetrics': value['seoMetrics'],
|
|
86
|
-
'description': value['description'],
|
|
87
79
|
};
|
|
88
80
|
}
|
|
89
81
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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 LandingPageSettingsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LandingPageSettingsDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof LandingPageSettingsDto
|
|
26
|
+
*/
|
|
27
|
+
anonymous: boolean | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LandingPageSettingsDto
|
|
32
|
+
*/
|
|
33
|
+
showRelatedDomains: boolean | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof LandingPageSettingsDto
|
|
38
|
+
*/
|
|
39
|
+
seoMetrics: boolean | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLandingPageSettingsDto(value: object): value is LandingPageSettingsDto {
|
|
46
|
+
if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
|
|
47
|
+
if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
|
|
48
|
+
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LandingPageSettingsDtoFromJSON(json: any): LandingPageSettingsDto {
|
|
53
|
+
return LandingPageSettingsDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LandingPageSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingPageSettingsDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'anonymous': json['anonymous'],
|
|
63
|
+
'showRelatedDomains': json['showRelatedDomains'],
|
|
64
|
+
'seoMetrics': json['seoMetrics'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LandingPageSettingsDtoToJSON(json: any): LandingPageSettingsDto {
|
|
69
|
+
return LandingPageSettingsDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LandingPageSettingsDtoToJSONTyped(value?: LandingPageSettingsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'anonymous': value['anonymous'],
|
|
80
|
+
'showRelatedDomains': value['showRelatedDomains'],
|
|
81
|
+
'seoMetrics': value['seoMetrics'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 { MajesticTopicTrustFlow } from './MajesticTopicTrustFlow';
|
|
17
|
+
import {
|
|
18
|
+
MajesticTopicTrustFlowFromJSON,
|
|
19
|
+
MajesticTopicTrustFlowFromJSONTyped,
|
|
20
|
+
MajesticTopicTrustFlowToJSON,
|
|
21
|
+
MajesticTopicTrustFlowToJSONTyped,
|
|
22
|
+
} from './MajesticTopicTrustFlow';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MajesticMetrics
|
|
28
|
+
*/
|
|
29
|
+
export interface MajesticMetrics {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof MajesticMetrics
|
|
34
|
+
*/
|
|
35
|
+
backlinks: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof MajesticMetrics
|
|
40
|
+
*/
|
|
41
|
+
referringDomains: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof MajesticMetrics
|
|
46
|
+
*/
|
|
47
|
+
referringDomainsEdu: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof MajesticMetrics
|
|
52
|
+
*/
|
|
53
|
+
referringDomainsGov: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof MajesticMetrics
|
|
58
|
+
*/
|
|
59
|
+
citationFlow: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof MajesticMetrics
|
|
64
|
+
*/
|
|
65
|
+
trustFlow: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<MajesticTopicTrustFlow>}
|
|
69
|
+
* @memberof MajesticMetrics
|
|
70
|
+
*/
|
|
71
|
+
topicalTrustFlow: Array<MajesticTopicTrustFlow>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the MajesticMetrics interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfMajesticMetrics(value: object): value is MajesticMetrics {
|
|
78
|
+
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
79
|
+
if (!('referringDomains' in value) || value['referringDomains'] === undefined) return false;
|
|
80
|
+
if (!('referringDomainsEdu' in value) || value['referringDomainsEdu'] === undefined) return false;
|
|
81
|
+
if (!('referringDomainsGov' in value) || value['referringDomainsGov'] === undefined) return false;
|
|
82
|
+
if (!('citationFlow' in value) || value['citationFlow'] === undefined) return false;
|
|
83
|
+
if (!('trustFlow' in value) || value['trustFlow'] === undefined) return false;
|
|
84
|
+
if (!('topicalTrustFlow' in value) || value['topicalTrustFlow'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function MajesticMetricsFromJSON(json: any): MajesticMetrics {
|
|
89
|
+
return MajesticMetricsFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function MajesticMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MajesticMetrics {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'backlinks': json['backlinks'],
|
|
99
|
+
'referringDomains': json['referringDomains'],
|
|
100
|
+
'referringDomainsEdu': json['referringDomainsEdu'],
|
|
101
|
+
'referringDomainsGov': json['referringDomainsGov'],
|
|
102
|
+
'citationFlow': json['citationFlow'],
|
|
103
|
+
'trustFlow': json['trustFlow'],
|
|
104
|
+
'topicalTrustFlow': ((json['topicalTrustFlow'] as Array<any>).map(MajesticTopicTrustFlowFromJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function MajesticMetricsToJSON(json: any): MajesticMetrics {
|
|
109
|
+
return MajesticMetricsToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function MajesticMetricsToJSONTyped(value?: MajesticMetrics | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'backlinks': value['backlinks'],
|
|
120
|
+
'referringDomains': value['referringDomains'],
|
|
121
|
+
'referringDomainsEdu': value['referringDomainsEdu'],
|
|
122
|
+
'referringDomainsGov': value['referringDomainsGov'],
|
|
123
|
+
'citationFlow': value['citationFlow'],
|
|
124
|
+
'trustFlow': value['trustFlow'],
|
|
125
|
+
'topicalTrustFlow': ((value['topicalTrustFlow'] as Array<any>).map(MajesticTopicTrustFlowToJSON)),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 MajesticTopicTrustFlow
|
|
20
|
+
*/
|
|
21
|
+
export interface MajesticTopicTrustFlow {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof MajesticTopicTrustFlow
|
|
26
|
+
*/
|
|
27
|
+
index: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MajesticTopicTrustFlow
|
|
32
|
+
*/
|
|
33
|
+
topic: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof MajesticTopicTrustFlow
|
|
38
|
+
*/
|
|
39
|
+
value: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the MajesticTopicTrustFlow interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfMajesticTopicTrustFlow(value: object): value is MajesticTopicTrustFlow {
|
|
46
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
47
|
+
if (!('topic' in value) || value['topic'] === undefined) return false;
|
|
48
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function MajesticTopicTrustFlowFromJSON(json: any): MajesticTopicTrustFlow {
|
|
53
|
+
return MajesticTopicTrustFlowFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function MajesticTopicTrustFlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): MajesticTopicTrustFlow {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'index': json['index'],
|
|
63
|
+
'topic': json['topic'],
|
|
64
|
+
'value': json['value'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MajesticTopicTrustFlowToJSON(json: any): MajesticTopicTrustFlow {
|
|
69
|
+
return MajesticTopicTrustFlowToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function MajesticTopicTrustFlowToJSONTyped(value?: MajesticTopicTrustFlow | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'index': value['index'],
|
|
80
|
+
'topic': value['topic'],
|
|
81
|
+
'value': value['value'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/MozMetrics.ts
CHANGED
|
@@ -25,12 +25,24 @@ export interface MozMetrics {
|
|
|
25
25
|
* @memberof MozMetrics
|
|
26
26
|
*/
|
|
27
27
|
domainAuthority: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof MozMetrics
|
|
32
|
+
*/
|
|
33
|
+
pageAuthority: number;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {number}
|
|
31
37
|
* @memberof MozMetrics
|
|
32
38
|
*/
|
|
33
39
|
backlinks: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof MozMetrics
|
|
44
|
+
*/
|
|
45
|
+
spamScore: number | null;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
/**
|
|
@@ -38,7 +50,9 @@ export interface MozMetrics {
|
|
|
38
50
|
*/
|
|
39
51
|
export function instanceOfMozMetrics(value: object): value is MozMetrics {
|
|
40
52
|
if (!('domainAuthority' in value) || value['domainAuthority'] === undefined) return false;
|
|
53
|
+
if (!('pageAuthority' in value) || value['pageAuthority'] === undefined) return false;
|
|
41
54
|
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
55
|
+
if (!('spamScore' in value) || value['spamScore'] === undefined) return false;
|
|
42
56
|
return true;
|
|
43
57
|
}
|
|
44
58
|
|
|
@@ -53,7 +67,9 @@ export function MozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
53
67
|
return {
|
|
54
68
|
|
|
55
69
|
'domainAuthority': json['domainAuthority'],
|
|
70
|
+
'pageAuthority': json['pageAuthority'],
|
|
56
71
|
'backlinks': json['backlinks'],
|
|
72
|
+
'spamScore': json['spamScore'],
|
|
57
73
|
};
|
|
58
74
|
}
|
|
59
75
|
|
|
@@ -69,7 +85,9 @@ export function MozMetricsToJSONTyped(value?: MozMetrics | null, ignoreDiscrimin
|
|
|
69
85
|
return {
|
|
70
86
|
|
|
71
87
|
'domainAuthority': value['domainAuthority'],
|
|
88
|
+
'pageAuthority': value['pageAuthority'],
|
|
72
89
|
'backlinks': value['backlinks'],
|
|
90
|
+
'spamScore': value['spamScore'],
|
|
73
91
|
};
|
|
74
92
|
}
|
|
75
93
|
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { MajesticMetrics } from './MajesticMetrics';
|
|
17
|
+
import {
|
|
18
|
+
MajesticMetricsFromJSON,
|
|
19
|
+
MajesticMetricsFromJSONTyped,
|
|
20
|
+
MajesticMetricsToJSON,
|
|
21
|
+
MajesticMetricsToJSONTyped,
|
|
22
|
+
} from './MajesticMetrics';
|
|
23
|
+
import type { MozMetrics } from './MozMetrics';
|
|
24
|
+
import {
|
|
25
|
+
MozMetricsFromJSON,
|
|
26
|
+
MozMetricsFromJSONTyped,
|
|
27
|
+
MozMetricsToJSON,
|
|
28
|
+
MozMetricsToJSONTyped,
|
|
29
|
+
} from './MozMetrics';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface SeoMetricsDto
|
|
35
|
+
*/
|
|
36
|
+
export interface SeoMetricsDto {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {MozMetrics}
|
|
40
|
+
* @memberof SeoMetricsDto
|
|
41
|
+
*/
|
|
42
|
+
moz: MozMetrics | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MajesticMetrics}
|
|
46
|
+
* @memberof SeoMetricsDto
|
|
47
|
+
*/
|
|
48
|
+
majestic: MajesticMetrics | null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the SeoMetricsDto interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfSeoMetricsDto(value: object): value is SeoMetricsDto {
|
|
55
|
+
if (!('moz' in value) || value['moz'] === undefined) return false;
|
|
56
|
+
if (!('majestic' in value) || value['majestic'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SeoMetricsDtoFromJSON(json: any): SeoMetricsDto {
|
|
61
|
+
return SeoMetricsDtoFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SeoMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeoMetricsDto {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'moz': MozMetricsFromJSON(json['moz']),
|
|
71
|
+
'majestic': MajesticMetricsFromJSON(json['majestic']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function SeoMetricsDtoToJSON(json: any): SeoMetricsDto {
|
|
76
|
+
return SeoMetricsDtoToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SeoMetricsDtoToJSONTyped(value?: SeoMetricsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'moz': MozMetricsToJSON(value['moz']),
|
|
87
|
+
'majestic': MajesticMetricsToJSON(value['majestic']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|