@randock/nameshift-api-client 0.0.202 → 0.0.203

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.
@@ -140,6 +140,8 @@ src/models/ListDomains200Response.ts
140
140
  src/models/ListLeadMessagesDto.ts
141
141
  src/models/LoginDto.ts
142
142
  src/models/LoginInput.ts
143
+ src/models/MajesticMetrics.ts
144
+ src/models/MajesticTopicTrustFlow.ts
143
145
  src/models/MoneyDto.ts
144
146
  src/models/MoneyInput.ts
145
147
  src/models/MozMetrics.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.202
1
+ ## @randock/nameshift-api-client@0.0.203
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.202 --save
39
+ npm install @randock/nameshift-api-client@0.0.203 --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
- 07be8487dc3cd76997bbcb1aab1bbaefc3f52a1d8dff4d250c8358bd48b7a693b1bcd870b459072848fa74bc1e87bc1d
47
+ cc62cda014b23b77438c4e8f1e5fdf700ebb02471cce36e84ed8468bb5994ae0ba1a618086ba19d996b02ebdc98dd199
@@ -0,0 +1,69 @@
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 { MajesticTopicTrustFlow } from './MajesticTopicTrustFlow';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MajesticMetrics
17
+ */
18
+ export interface MajesticMetrics {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof MajesticMetrics
23
+ */
24
+ backlinks: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof MajesticMetrics
29
+ */
30
+ referringDomains: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof MajesticMetrics
35
+ */
36
+ referringDomainsEdu: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof MajesticMetrics
41
+ */
42
+ referringDomainsGov: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof MajesticMetrics
47
+ */
48
+ citationFlow: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof MajesticMetrics
53
+ */
54
+ trustFlow: number;
55
+ /**
56
+ *
57
+ * @type {Array<MajesticTopicTrustFlow>}
58
+ * @memberof MajesticMetrics
59
+ */
60
+ topicalTrustFlow: Array<MajesticTopicTrustFlow>;
61
+ }
62
+ /**
63
+ * Check if a given object implements the MajesticMetrics interface.
64
+ */
65
+ export declare function instanceOfMajesticMetrics(value: object): value is MajesticMetrics;
66
+ export declare function MajesticMetricsFromJSON(json: any): MajesticMetrics;
67
+ export declare function MajesticMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MajesticMetrics;
68
+ export declare function MajesticMetricsToJSON(json: any): MajesticMetrics;
69
+ export declare function MajesticMetricsToJSONTyped(value?: MajesticMetrics | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.instanceOfMajesticMetrics = instanceOfMajesticMetrics;
17
+ exports.MajesticMetricsFromJSON = MajesticMetricsFromJSON;
18
+ exports.MajesticMetricsFromJSONTyped = MajesticMetricsFromJSONTyped;
19
+ exports.MajesticMetricsToJSON = MajesticMetricsToJSON;
20
+ exports.MajesticMetricsToJSONTyped = MajesticMetricsToJSONTyped;
21
+ var MajesticTopicTrustFlow_1 = require("./MajesticTopicTrustFlow");
22
+ /**
23
+ * Check if a given object implements the MajesticMetrics interface.
24
+ */
25
+ function instanceOfMajesticMetrics(value) {
26
+ if (!('backlinks' in value) || value['backlinks'] === undefined)
27
+ return false;
28
+ if (!('referringDomains' in value) || value['referringDomains'] === undefined)
29
+ return false;
30
+ if (!('referringDomainsEdu' in value) || value['referringDomainsEdu'] === undefined)
31
+ return false;
32
+ if (!('referringDomainsGov' in value) || value['referringDomainsGov'] === undefined)
33
+ return false;
34
+ if (!('citationFlow' in value) || value['citationFlow'] === undefined)
35
+ return false;
36
+ if (!('trustFlow' in value) || value['trustFlow'] === undefined)
37
+ return false;
38
+ if (!('topicalTrustFlow' in value) || value['topicalTrustFlow'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function MajesticMetricsFromJSON(json) {
43
+ return MajesticMetricsFromJSONTyped(json, false);
44
+ }
45
+ function MajesticMetricsFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'backlinks': json['backlinks'],
51
+ 'referringDomains': json['referringDomains'],
52
+ 'referringDomainsEdu': json['referringDomainsEdu'],
53
+ 'referringDomainsGov': json['referringDomainsGov'],
54
+ 'citationFlow': json['citationFlow'],
55
+ 'trustFlow': json['trustFlow'],
56
+ 'topicalTrustFlow': (json['topicalTrustFlow'].map(MajesticTopicTrustFlow_1.MajesticTopicTrustFlowFromJSON)),
57
+ };
58
+ }
59
+ function MajesticMetricsToJSON(json) {
60
+ return MajesticMetricsToJSONTyped(json, false);
61
+ }
62
+ function MajesticMetricsToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'backlinks': value['backlinks'],
69
+ 'referringDomains': value['referringDomains'],
70
+ 'referringDomainsEdu': value['referringDomainsEdu'],
71
+ 'referringDomainsGov': value['referringDomainsGov'],
72
+ 'citationFlow': value['citationFlow'],
73
+ 'trustFlow': value['trustFlow'],
74
+ 'topicalTrustFlow': (value['topicalTrustFlow'].map(MajesticTopicTrustFlow_1.MajesticTopicTrustFlowToJSON)),
75
+ };
76
+ }
@@ -0,0 +1,44 @@
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 MajesticTopicTrustFlow
16
+ */
17
+ export interface MajesticTopicTrustFlow {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof MajesticTopicTrustFlow
22
+ */
23
+ index: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MajesticTopicTrustFlow
28
+ */
29
+ topic: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MajesticTopicTrustFlow
34
+ */
35
+ value: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MajesticTopicTrustFlow interface.
39
+ */
40
+ export declare function instanceOfMajesticTopicTrustFlow(value: object): value is MajesticTopicTrustFlow;
41
+ export declare function MajesticTopicTrustFlowFromJSON(json: any): MajesticTopicTrustFlow;
42
+ export declare function MajesticTopicTrustFlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): MajesticTopicTrustFlow;
43
+ export declare function MajesticTopicTrustFlowToJSON(json: any): MajesticTopicTrustFlow;
44
+ export declare function MajesticTopicTrustFlowToJSONTyped(value?: MajesticTopicTrustFlow | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfMajesticTopicTrustFlow = instanceOfMajesticTopicTrustFlow;
17
+ exports.MajesticTopicTrustFlowFromJSON = MajesticTopicTrustFlowFromJSON;
18
+ exports.MajesticTopicTrustFlowFromJSONTyped = MajesticTopicTrustFlowFromJSONTyped;
19
+ exports.MajesticTopicTrustFlowToJSON = MajesticTopicTrustFlowToJSON;
20
+ exports.MajesticTopicTrustFlowToJSONTyped = MajesticTopicTrustFlowToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MajesticTopicTrustFlow interface.
23
+ */
24
+ function instanceOfMajesticTopicTrustFlow(value) {
25
+ if (!('index' in value) || value['index'] === undefined)
26
+ return false;
27
+ if (!('topic' in value) || value['topic'] === undefined)
28
+ return false;
29
+ if (!('value' in value) || value['value'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MajesticTopicTrustFlowFromJSON(json) {
34
+ return MajesticTopicTrustFlowFromJSONTyped(json, false);
35
+ }
36
+ function MajesticTopicTrustFlowFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'index': json['index'],
42
+ 'topic': json['topic'],
43
+ 'value': json['value'],
44
+ };
45
+ }
46
+ function MajesticTopicTrustFlowToJSON(json) {
47
+ return MajesticTopicTrustFlowToJSONTyped(json, false);
48
+ }
49
+ function MajesticTopicTrustFlowToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'index': value['index'],
56
+ 'topic': value['topic'],
57
+ 'value': value['value'],
58
+ };
59
+ }
@@ -21,12 +21,24 @@ export interface MozMetrics {
21
21
  * @memberof MozMetrics
22
22
  */
23
23
  domainAuthority: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof MozMetrics
28
+ */
29
+ pageAuthority: number;
24
30
  /**
25
31
  *
26
32
  * @type {number}
27
33
  * @memberof MozMetrics
28
34
  */
29
35
  backlinks: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof MozMetrics
40
+ */
41
+ spamScore: number | null;
30
42
  }
31
43
  /**
32
44
  * Check if a given object implements the MozMetrics interface.
@@ -24,8 +24,12 @@ exports.MozMetricsToJSONTyped = MozMetricsToJSONTyped;
24
24
  function instanceOfMozMetrics(value) {
25
25
  if (!('domainAuthority' in value) || value['domainAuthority'] === undefined)
26
26
  return false;
27
+ if (!('pageAuthority' in value) || value['pageAuthority'] === undefined)
28
+ return false;
27
29
  if (!('backlinks' in value) || value['backlinks'] === undefined)
28
30
  return false;
31
+ if (!('spamScore' in value) || value['spamScore'] === undefined)
32
+ return false;
29
33
  return true;
30
34
  }
31
35
  function MozMetricsFromJSON(json) {
@@ -37,7 +41,9 @@ function MozMetricsFromJSONTyped(json, ignoreDiscriminator) {
37
41
  }
38
42
  return {
39
43
  'domainAuthority': json['domainAuthority'],
44
+ 'pageAuthority': json['pageAuthority'],
40
45
  'backlinks': json['backlinks'],
46
+ 'spamScore': json['spamScore'],
41
47
  };
42
48
  }
43
49
  function MozMetricsToJSON(json) {
@@ -50,6 +56,8 @@ function MozMetricsToJSONTyped(value, ignoreDiscriminator) {
50
56
  }
51
57
  return {
52
58
  'domainAuthority': value['domainAuthority'],
59
+ 'pageAuthority': value['pageAuthority'],
53
60
  'backlinks': value['backlinks'],
61
+ 'spamScore': value['spamScore'],
54
62
  };
55
63
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MajesticMetrics } from './MajesticMetrics';
12
13
  import type { MozMetrics } from './MozMetrics';
13
14
  /**
14
15
  *
@@ -22,6 +23,12 @@ export interface Seo {
22
23
  * @memberof Seo
23
24
  */
24
25
  moz: MozMetrics | null;
26
+ /**
27
+ *
28
+ * @type {MajesticMetrics}
29
+ * @memberof Seo
30
+ */
31
+ majestic: MajesticMetrics | null;
25
32
  }
26
33
  /**
27
34
  * Check if a given object implements the Seo interface.
@@ -18,6 +18,7 @@ exports.SeoFromJSON = SeoFromJSON;
18
18
  exports.SeoFromJSONTyped = SeoFromJSONTyped;
19
19
  exports.SeoToJSON = SeoToJSON;
20
20
  exports.SeoToJSONTyped = SeoToJSONTyped;
21
+ var MajesticMetrics_1 = require("./MajesticMetrics");
21
22
  var MozMetrics_1 = require("./MozMetrics");
22
23
  /**
23
24
  * Check if a given object implements the Seo interface.
@@ -25,6 +26,8 @@ var MozMetrics_1 = require("./MozMetrics");
25
26
  function instanceOfSeo(value) {
26
27
  if (!('moz' in value) || value['moz'] === undefined)
27
28
  return false;
29
+ if (!('majestic' in value) || value['majestic'] === undefined)
30
+ return false;
28
31
  return true;
29
32
  }
30
33
  function SeoFromJSON(json) {
@@ -36,6 +39,7 @@ function SeoFromJSONTyped(json, ignoreDiscriminator) {
36
39
  }
37
40
  return {
38
41
  'moz': (0, MozMetrics_1.MozMetricsFromJSON)(json['moz']),
42
+ 'majestic': (0, MajesticMetrics_1.MajesticMetricsFromJSON)(json['majestic']),
39
43
  };
40
44
  }
41
45
  function SeoToJSON(json) {
@@ -48,5 +52,6 @@ function SeoToJSONTyped(value, ignoreDiscriminator) {
48
52
  }
49
53
  return {
50
54
  'moz': (0, MozMetrics_1.MozMetricsToJSON)(value['moz']),
55
+ 'majestic': (0, MajesticMetrics_1.MajesticMetricsToJSON)(value['majestic']),
51
56
  };
52
57
  }
@@ -115,6 +115,8 @@ export * from './ListDomains200Response';
115
115
  export * from './ListLeadMessagesDto';
116
116
  export * from './LoginDto';
117
117
  export * from './LoginInput';
118
+ export * from './MajesticMetrics';
119
+ export * from './MajesticTopicTrustFlow';
118
120
  export * from './MoneyDto';
119
121
  export * from './MoneyInput';
120
122
  export * from './MozMetrics';
@@ -133,6 +133,8 @@ __exportStar(require("./ListDomains200Response"), exports);
133
133
  __exportStar(require("./ListLeadMessagesDto"), exports);
134
134
  __exportStar(require("./LoginDto"), exports);
135
135
  __exportStar(require("./LoginInput"), exports);
136
+ __exportStar(require("./MajesticMetrics"), exports);
137
+ __exportStar(require("./MajesticTopicTrustFlow"), exports);
136
138
  __exportStar(require("./MoneyDto"), exports);
137
139
  __exportStar(require("./MoneyInput"), exports);
138
140
  __exportStar(require("./MozMetrics"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.202",
3
+ "version": "0.0.203",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
+
@@ -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
 
package/src/models/Seo.ts CHANGED
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { MajesticMetrics } from './MajesticMetrics';
17
+ import {
18
+ MajesticMetricsFromJSON,
19
+ MajesticMetricsFromJSONTyped,
20
+ MajesticMetricsToJSON,
21
+ MajesticMetricsToJSONTyped,
22
+ } from './MajesticMetrics';
16
23
  import type { MozMetrics } from './MozMetrics';
17
24
  import {
18
25
  MozMetricsFromJSON,
@@ -33,6 +40,12 @@ export interface Seo {
33
40
  * @memberof Seo
34
41
  */
35
42
  moz: MozMetrics | null;
43
+ /**
44
+ *
45
+ * @type {MajesticMetrics}
46
+ * @memberof Seo
47
+ */
48
+ majestic: MajesticMetrics | null;
36
49
  }
37
50
 
38
51
  /**
@@ -40,6 +53,7 @@ export interface Seo {
40
53
  */
41
54
  export function instanceOfSeo(value: object): value is Seo {
42
55
  if (!('moz' in value) || value['moz'] === undefined) return false;
56
+ if (!('majestic' in value) || value['majestic'] === undefined) return false;
43
57
  return true;
44
58
  }
45
59
 
@@ -54,6 +68,7 @@ export function SeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seo {
54
68
  return {
55
69
 
56
70
  'moz': MozMetricsFromJSON(json['moz']),
71
+ 'majestic': MajesticMetricsFromJSON(json['majestic']),
57
72
  };
58
73
  }
59
74
 
@@ -69,6 +84,7 @@ export function SeoToJSONTyped(value?: Seo | null, ignoreDiscriminator: boolean
69
84
  return {
70
85
 
71
86
  'moz': MozMetricsToJSON(value['moz']),
87
+ 'majestic': MajesticMetricsToJSON(value['majestic']),
72
88
  };
73
89
  }
74
90
 
@@ -117,6 +117,8 @@ export * from './ListDomains200Response';
117
117
  export * from './ListLeadMessagesDto';
118
118
  export * from './LoginDto';
119
119
  export * from './LoginInput';
120
+ export * from './MajesticMetrics';
121
+ export * from './MajesticTopicTrustFlow';
120
122
  export * from './MoneyDto';
121
123
  export * from './MoneyInput';
122
124
  export * from './MozMetrics';