@randock/nameshift-api-client 0.0.201 → 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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +3 -3
- package/dist/apis/BuyersApi.js +1 -1
- package/dist/models/BuyerSessionDto.d.ts +76 -0
- package/dist/models/BuyerSessionDto.js +83 -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/Seo.d.ts +7 -0
- package/dist/models/Seo.js +5 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +6 -6
- package/src/models/BuyerSessionDto.ts +131 -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/Seo.ts +16 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -52,6 +52,7 @@ src/models/BuyerDto.ts
|
|
|
52
52
|
src/models/BuyerLeadListItemDomainDto.ts
|
|
53
53
|
src/models/BuyerLeadListItemDto.ts
|
|
54
54
|
src/models/BuyerSecurityUserDto.ts
|
|
55
|
+
src/models/BuyerSessionDto.ts
|
|
55
56
|
src/models/BuyerSubscriptionListItemDto.ts
|
|
56
57
|
src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
|
|
57
58
|
src/models/ChangeOrderStatusInput.ts
|
|
@@ -139,6 +140,8 @@ src/models/ListDomains200Response.ts
|
|
|
139
140
|
src/models/ListLeadMessagesDto.ts
|
|
140
141
|
src/models/LoginDto.ts
|
|
141
142
|
src/models/LoginInput.ts
|
|
143
|
+
src/models/MajesticMetrics.ts
|
|
144
|
+
src/models/MajesticTopicTrustFlow.ts
|
|
142
145
|
src/models/MoneyDto.ts
|
|
143
146
|
src/models/MoneyInput.ts
|
|
144
147
|
src/models/MozMetrics.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
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.
|
|
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
|
-
|
|
47
|
+
cc62cda014b23b77438c4e8f1e5fdf700ebb02471cce36e84ed8468bb5994ae0ba1a618086ba19d996b02ebdc98dd199
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto,
|
|
13
|
+
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -112,11 +112,11 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
*/
|
|
115
|
-
buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
115
|
+
buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>>;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
*/
|
|
119
|
-
buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
119
|
+
buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto>;
|
|
120
120
|
/**
|
|
121
121
|
*
|
|
122
122
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -263,7 +263,7 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
263
263
|
}, initOverrides)];
|
|
264
264
|
case 3:
|
|
265
265
|
response = _a.sent();
|
|
266
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
266
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerSessionDtoFromJSON)(jsonValue); })];
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
});
|
|
@@ -0,0 +1,76 @@
|
|
|
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 BuyerSessionDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerSessionDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerSessionDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyerSessionDto
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BuyerSessionDto
|
|
34
|
+
*/
|
|
35
|
+
intercomHash: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyerSessionDto
|
|
40
|
+
*/
|
|
41
|
+
locale: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof BuyerSessionDto
|
|
46
|
+
*/
|
|
47
|
+
roles: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BuyerSessionDto
|
|
52
|
+
*/
|
|
53
|
+
type: BuyerSessionDtoTypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof BuyerSessionDto
|
|
58
|
+
*/
|
|
59
|
+
hasSubscriptions: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const BuyerSessionDtoTypeEnum: {
|
|
65
|
+
readonly BUYER: "buyer";
|
|
66
|
+
readonly SELLER: "seller";
|
|
67
|
+
};
|
|
68
|
+
export type BuyerSessionDtoTypeEnum = typeof BuyerSessionDtoTypeEnum[keyof typeof BuyerSessionDtoTypeEnum];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the BuyerSessionDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfBuyerSessionDto(value: object): value is BuyerSessionDto;
|
|
73
|
+
export declare function BuyerSessionDtoFromJSON(json: any): BuyerSessionDto;
|
|
74
|
+
export declare function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionDto;
|
|
75
|
+
export declare function BuyerSessionDtoToJSON(json: any): BuyerSessionDto;
|
|
76
|
+
export declare function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.BuyerSessionDtoTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfBuyerSessionDto = instanceOfBuyerSessionDto;
|
|
18
|
+
exports.BuyerSessionDtoFromJSON = BuyerSessionDtoFromJSON;
|
|
19
|
+
exports.BuyerSessionDtoFromJSONTyped = BuyerSessionDtoFromJSONTyped;
|
|
20
|
+
exports.BuyerSessionDtoToJSON = BuyerSessionDtoToJSON;
|
|
21
|
+
exports.BuyerSessionDtoToJSONTyped = BuyerSessionDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.BuyerSessionDtoTypeEnum = {
|
|
26
|
+
BUYER: 'buyer',
|
|
27
|
+
SELLER: 'seller'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the BuyerSessionDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfBuyerSessionDto(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('intercomHash' in value) || value['intercomHash'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('roles' in value) || value['roles'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function BuyerSessionDtoFromJSON(json) {
|
|
50
|
+
return BuyerSessionDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function BuyerSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'email': json['email'],
|
|
59
|
+
'intercomHash': json['intercomHash'],
|
|
60
|
+
'locale': json['locale'],
|
|
61
|
+
'roles': json['roles'],
|
|
62
|
+
'type': json['type'],
|
|
63
|
+
'hasSubscriptions': json['hasSubscriptions'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function BuyerSessionDtoToJSON(json) {
|
|
67
|
+
return BuyerSessionDtoToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function BuyerSessionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'email': value['email'],
|
|
77
|
+
'intercomHash': value['intercomHash'],
|
|
78
|
+
'locale': value['locale'],
|
|
79
|
+
'roles': value['roles'],
|
|
80
|
+
'type': value['type'],
|
|
81
|
+
'hasSubscriptions': value['hasSubscriptions'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -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
|
}
|
package/dist/models/Seo.d.ts
CHANGED
|
@@ -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.
|
package/dist/models/Seo.js
CHANGED
|
@@ -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
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './BuyerDto';
|
|
|
27
27
|
export * from './BuyerLeadListItemDomainDto';
|
|
28
28
|
export * from './BuyerLeadListItemDto';
|
|
29
29
|
export * from './BuyerSecurityUserDto';
|
|
30
|
+
export * from './BuyerSessionDto';
|
|
30
31
|
export * from './BuyerSubscriptionListItemDto';
|
|
31
32
|
export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
32
33
|
export * from './ChangeOrderStatusInput';
|
|
@@ -114,6 +115,8 @@ export * from './ListDomains200Response';
|
|
|
114
115
|
export * from './ListLeadMessagesDto';
|
|
115
116
|
export * from './LoginDto';
|
|
116
117
|
export * from './LoginInput';
|
|
118
|
+
export * from './MajesticMetrics';
|
|
119
|
+
export * from './MajesticTopicTrustFlow';
|
|
117
120
|
export * from './MoneyDto';
|
|
118
121
|
export * from './MoneyInput';
|
|
119
122
|
export * from './MozMetrics';
|
package/dist/models/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./BuyerDto"), exports);
|
|
|
45
45
|
__exportStar(require("./BuyerLeadListItemDomainDto"), exports);
|
|
46
46
|
__exportStar(require("./BuyerLeadListItemDto"), exports);
|
|
47
47
|
__exportStar(require("./BuyerSecurityUserDto"), exports);
|
|
48
|
+
__exportStar(require("./BuyerSessionDto"), exports);
|
|
48
49
|
__exportStar(require("./BuyerSubscriptionListItemDto"), exports);
|
|
49
50
|
__exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
|
|
50
51
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
@@ -132,6 +133,8 @@ __exportStar(require("./ListDomains200Response"), exports);
|
|
|
132
133
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
133
134
|
__exportStar(require("./LoginDto"), exports);
|
|
134
135
|
__exportStar(require("./LoginInput"), exports);
|
|
136
|
+
__exportStar(require("./MajesticMetrics"), exports);
|
|
137
|
+
__exportStar(require("./MajesticTopicTrustFlow"), exports);
|
|
135
138
|
__exportStar(require("./MoneyDto"), exports);
|
|
136
139
|
__exportStar(require("./MoneyInput"), exports);
|
|
137
140
|
__exportStar(require("./MozMetrics"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
BatchReadBuyerLeadMessageInput,
|
|
21
21
|
BatchVerifyBuyerLeadsInput,
|
|
22
22
|
BuyerDomainTransferAuthCodeDto,
|
|
23
|
-
|
|
23
|
+
BuyerSessionDto,
|
|
24
24
|
CreateBuyerLeadMessageInput,
|
|
25
25
|
GetAllInvoices200Response,
|
|
26
26
|
GetBuyerLeads200Response,
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
BatchVerifyBuyerLeadsInputToJSON,
|
|
48
48
|
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
49
49
|
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
BuyerSessionDtoFromJSON,
|
|
51
|
+
BuyerSessionDtoToJSON,
|
|
52
52
|
CreateBuyerLeadMessageInputFromJSON,
|
|
53
53
|
CreateBuyerLeadMessageInputToJSON,
|
|
54
54
|
GetAllInvoices200ResponseFromJSON,
|
|
@@ -308,7 +308,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
308
308
|
/**
|
|
309
309
|
*
|
|
310
310
|
*/
|
|
311
|
-
async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
311
|
+
async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>> {
|
|
312
312
|
const queryParameters: any = {};
|
|
313
313
|
|
|
314
314
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -328,13 +328,13 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
328
328
|
query: queryParameters,
|
|
329
329
|
}, initOverrides);
|
|
330
330
|
|
|
331
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSessionDtoFromJSON(jsonValue));
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
*
|
|
336
336
|
*/
|
|
337
|
-
async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
337
|
+
async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto> {
|
|
338
338
|
const response = await this.buyerMeRaw(initOverrides);
|
|
339
339
|
return await response.value();
|
|
340
340
|
}
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerSessionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerSessionDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerSessionDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerSessionDto
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerSessionDto
|
|
38
|
+
*/
|
|
39
|
+
intercomHash: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BuyerSessionDto
|
|
44
|
+
*/
|
|
45
|
+
locale: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof BuyerSessionDto
|
|
50
|
+
*/
|
|
51
|
+
roles: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BuyerSessionDto
|
|
56
|
+
*/
|
|
57
|
+
type: BuyerSessionDtoTypeEnum;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof BuyerSessionDto
|
|
62
|
+
*/
|
|
63
|
+
hasSubscriptions: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const BuyerSessionDtoTypeEnum = {
|
|
71
|
+
BUYER: 'buyer',
|
|
72
|
+
SELLER: 'seller'
|
|
73
|
+
} as const;
|
|
74
|
+
export type BuyerSessionDtoTypeEnum = typeof BuyerSessionDtoTypeEnum[keyof typeof BuyerSessionDtoTypeEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the BuyerSessionDto interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfBuyerSessionDto(value: object): value is BuyerSessionDto {
|
|
81
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
82
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
83
|
+
if (!('intercomHash' in value) || value['intercomHash'] === undefined) return false;
|
|
84
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
85
|
+
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
86
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
87
|
+
if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function BuyerSessionDtoFromJSON(json: any): BuyerSessionDto {
|
|
92
|
+
return BuyerSessionDtoFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionDto {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'id': json['id'],
|
|
102
|
+
'email': json['email'],
|
|
103
|
+
'intercomHash': json['intercomHash'],
|
|
104
|
+
'locale': json['locale'],
|
|
105
|
+
'roles': json['roles'],
|
|
106
|
+
'type': json['type'],
|
|
107
|
+
'hasSubscriptions': json['hasSubscriptions'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function BuyerSessionDtoToJSON(json: any): BuyerSessionDto {
|
|
112
|
+
return BuyerSessionDtoToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'id': value['id'],
|
|
123
|
+
'email': value['email'],
|
|
124
|
+
'intercomHash': value['intercomHash'],
|
|
125
|
+
'locale': value['locale'],
|
|
126
|
+
'roles': value['roles'],
|
|
127
|
+
'type': value['type'],
|
|
128
|
+
'hasSubscriptions': value['hasSubscriptions'],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -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
|
|
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
|
|
package/src/models/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './BuyerDto';
|
|
|
29
29
|
export * from './BuyerLeadListItemDomainDto';
|
|
30
30
|
export * from './BuyerLeadListItemDto';
|
|
31
31
|
export * from './BuyerSecurityUserDto';
|
|
32
|
+
export * from './BuyerSessionDto';
|
|
32
33
|
export * from './BuyerSubscriptionListItemDto';
|
|
33
34
|
export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
34
35
|
export * from './ChangeOrderStatusInput';
|
|
@@ -116,6 +117,8 @@ export * from './ListDomains200Response';
|
|
|
116
117
|
export * from './ListLeadMessagesDto';
|
|
117
118
|
export * from './LoginDto';
|
|
118
119
|
export * from './LoginInput';
|
|
120
|
+
export * from './MajesticMetrics';
|
|
121
|
+
export * from './MajesticTopicTrustFlow';
|
|
119
122
|
export * from './MoneyDto';
|
|
120
123
|
export * from './MoneyInput';
|
|
121
124
|
export * from './MozMetrics';
|