@randock/nameshift-api-client 0.0.502 → 0.0.503
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 -1
- package/README.md +3 -3
- package/dist/apis/PartnerApi.d.ts +14 -1
- package/dist/apis/PartnerApi.js +53 -0
- package/dist/models/PartnerDomainSeoMetricsDto.d.ts +40 -0
- package/dist/models/PartnerDomainSeoMetricsDto.js +57 -0
- package/dist/models/PartnerMajesticMetricsDto.d.ts +56 -0
- package/dist/models/PartnerMajesticMetricsDto.js +67 -0
- package/dist/models/PartnerMozMetricsDto.d.ts +62 -0
- package/dist/models/PartnerMozMetricsDto.js +71 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -3
- package/src/apis/AdminApi.ts +0 -3
- package/src/apis/AuctionsApi.ts +0 -3
- package/src/apis/BuyersApi.ts +0 -3
- package/src/apis/CustomerSuccessApi.ts +0 -3
- package/src/apis/DomainAppraisalRequestsApi.ts +0 -3
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +0 -3
- package/src/apis/DomainsApi.ts +0 -3
- package/src/apis/DomainsPublicApi.ts +0 -3
- package/src/apis/InvoicesApi.ts +0 -3
- package/src/apis/JobsApi.ts +0 -3
- package/src/apis/LeadsPublicApi.ts +0 -3
- package/src/apis/NotificationsApi.ts +0 -3
- package/src/apis/OrdersPublicApi.ts +0 -3
- package/src/apis/PartnerApi.ts +46 -0
- package/src/apis/SubscriptionsPublicApi.ts +0 -3
- package/src/apis/UsersPublicApi.ts +0 -3
- package/src/models/PartnerDomainSeoMetricsDto.ts +90 -0
- package/src/models/PartnerMajesticMetricsDto.ts +102 -0
- package/src/models/PartnerMozMetricsDto.ts +111 -0
- package/src/models/index.ts +3 -1
- package/dist/models/NotFoundException.d.ts +0 -44
- package/dist/models/NotFoundException.js +0 -59
- package/src/models/NotFoundException.ts +0 -84
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
BuyerDomainAppraisalRequestCheckoutDto,
|
|
19
19
|
CreateBuyerDomainAppraisalRequestInput,
|
|
20
20
|
CreateManualTransactionInput,
|
|
21
|
-
NotFoundException,
|
|
22
21
|
ObjectId,
|
|
23
22
|
UpdateOrderInput,
|
|
24
23
|
ValidationException,
|
|
@@ -30,8 +29,6 @@ import {
|
|
|
30
29
|
CreateBuyerDomainAppraisalRequestInputToJSON,
|
|
31
30
|
CreateManualTransactionInputFromJSON,
|
|
32
31
|
CreateManualTransactionInputToJSON,
|
|
33
|
-
NotFoundExceptionFromJSON,
|
|
34
|
-
NotFoundExceptionToJSON,
|
|
35
32
|
ObjectIdFromJSON,
|
|
36
33
|
ObjectIdToJSON,
|
|
37
34
|
UpdateOrderInputFromJSON,
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -34,7 +34,6 @@ import type {
|
|
|
34
34
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
35
35
|
JobDto,
|
|
36
36
|
List200Response2,
|
|
37
|
-
NotFoundException,
|
|
38
37
|
PreviewDomainEditInput,
|
|
39
38
|
SellerDomainAffiliateCommissionDto,
|
|
40
39
|
SellerDomainTransferDto,
|
|
@@ -84,8 +83,6 @@ import {
|
|
|
84
83
|
JobDtoToJSON,
|
|
85
84
|
List200Response2FromJSON,
|
|
86
85
|
List200Response2ToJSON,
|
|
87
|
-
NotFoundExceptionFromJSON,
|
|
88
|
-
NotFoundExceptionToJSON,
|
|
89
86
|
PreviewDomainEditInputFromJSON,
|
|
90
87
|
PreviewDomainEditInputToJSON,
|
|
91
88
|
SellerDomainAffiliateCommissionDtoFromJSON,
|
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
DomainStatsDto,
|
|
20
20
|
DomainTldsDto,
|
|
21
21
|
List200Response3,
|
|
22
|
-
NotFoundException,
|
|
23
22
|
RelatedDomainsDto,
|
|
24
23
|
ValidationException,
|
|
25
24
|
} from '../models/index';
|
|
@@ -32,8 +31,6 @@ import {
|
|
|
32
31
|
DomainTldsDtoToJSON,
|
|
33
32
|
List200Response3FromJSON,
|
|
34
33
|
List200Response3ToJSON,
|
|
35
|
-
NotFoundExceptionFromJSON,
|
|
36
|
-
NotFoundExceptionToJSON,
|
|
37
34
|
RelatedDomainsDtoFromJSON,
|
|
38
35
|
RelatedDomainsDtoToJSON,
|
|
39
36
|
ValidationExceptionFromJSON,
|
package/src/apis/InvoicesApi.ts
CHANGED
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BulkDownloadInvoicesInput,
|
|
19
19
|
GetInvoices200Response,
|
|
20
|
-
NotFoundException,
|
|
21
20
|
ValidationException,
|
|
22
21
|
} from '../models/index';
|
|
23
22
|
import {
|
|
@@ -25,8 +24,6 @@ import {
|
|
|
25
24
|
BulkDownloadInvoicesInputToJSON,
|
|
26
25
|
GetInvoices200ResponseFromJSON,
|
|
27
26
|
GetInvoices200ResponseToJSON,
|
|
28
|
-
NotFoundExceptionFromJSON,
|
|
29
|
-
NotFoundExceptionToJSON,
|
|
30
27
|
ValidationExceptionFromJSON,
|
|
31
28
|
ValidationExceptionToJSON,
|
|
32
29
|
} from '../models/index';
|
package/src/apis/JobsApi.ts
CHANGED
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
ConflictException,
|
|
19
19
|
JobDto,
|
|
20
20
|
ListJobs200Response,
|
|
21
|
-
NotFoundException,
|
|
22
21
|
ValidationException,
|
|
23
22
|
} from '../models/index';
|
|
24
23
|
import {
|
|
@@ -28,8 +27,6 @@ import {
|
|
|
28
27
|
JobDtoToJSON,
|
|
29
28
|
ListJobs200ResponseFromJSON,
|
|
30
29
|
ListJobs200ResponseToJSON,
|
|
31
|
-
NotFoundExceptionFromJSON,
|
|
32
|
-
NotFoundExceptionToJSON,
|
|
33
30
|
ValidationExceptionFromJSON,
|
|
34
31
|
ValidationExceptionToJSON,
|
|
35
32
|
} from '../models/index';
|
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
BadRequestException,
|
|
20
20
|
CreateLeadInput,
|
|
21
21
|
LeadStatusDto,
|
|
22
|
-
NotFoundException,
|
|
23
22
|
ObjectId,
|
|
24
23
|
PublicLeadDto,
|
|
25
24
|
UpdateLeadInput,
|
|
@@ -35,8 +34,6 @@ import {
|
|
|
35
34
|
CreateLeadInputToJSON,
|
|
36
35
|
LeadStatusDtoFromJSON,
|
|
37
36
|
LeadStatusDtoToJSON,
|
|
38
|
-
NotFoundExceptionFromJSON,
|
|
39
|
-
NotFoundExceptionToJSON,
|
|
40
37
|
ObjectIdFromJSON,
|
|
41
38
|
ObjectIdToJSON,
|
|
42
39
|
PublicLeadDtoFromJSON,
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BulkMarkNotificationsAsReadInputDto,
|
|
19
19
|
ListNotifications200Response,
|
|
20
|
-
NotFoundException,
|
|
21
20
|
UserNotificationDto,
|
|
22
21
|
ValidationException,
|
|
23
22
|
} from '../models/index';
|
|
@@ -26,8 +25,6 @@ import {
|
|
|
26
25
|
BulkMarkNotificationsAsReadInputDtoToJSON,
|
|
27
26
|
ListNotifications200ResponseFromJSON,
|
|
28
27
|
ListNotifications200ResponseToJSON,
|
|
29
|
-
NotFoundExceptionFromJSON,
|
|
30
|
-
NotFoundExceptionToJSON,
|
|
31
28
|
UserNotificationDtoFromJSON,
|
|
32
29
|
UserNotificationDtoToJSON,
|
|
33
30
|
ValidationExceptionFromJSON,
|
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
BadRequestException,
|
|
20
20
|
CreateManualTransactionInput,
|
|
21
21
|
CreateOrderInput,
|
|
22
|
-
NotFoundException,
|
|
23
22
|
ObjectId,
|
|
24
23
|
OrderDto,
|
|
25
24
|
UpdateOrderInput,
|
|
@@ -34,8 +33,6 @@ import {
|
|
|
34
33
|
CreateManualTransactionInputToJSON,
|
|
35
34
|
CreateOrderInputFromJSON,
|
|
36
35
|
CreateOrderInputToJSON,
|
|
37
|
-
NotFoundExceptionFromJSON,
|
|
38
|
-
NotFoundExceptionToJSON,
|
|
39
36
|
ObjectIdFromJSON,
|
|
40
37
|
ObjectIdToJSON,
|
|
41
38
|
OrderDtoFromJSON,
|
package/src/apis/PartnerApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
ListAuctions200Response,
|
|
19
19
|
ListDomainsWithUpdatedPricing200Response,
|
|
20
20
|
PartnerDomainFindDto,
|
|
21
|
+
PartnerDomainSeoMetricsDto,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
@@ -27,6 +28,8 @@ import {
|
|
|
27
28
|
ListDomainsWithUpdatedPricing200ResponseToJSON,
|
|
28
29
|
PartnerDomainFindDtoFromJSON,
|
|
29
30
|
PartnerDomainFindDtoToJSON,
|
|
31
|
+
PartnerDomainSeoMetricsDtoFromJSON,
|
|
32
|
+
PartnerDomainSeoMetricsDtoToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
31
34
|
ValidationExceptionToJSON,
|
|
32
35
|
} from '../models/index';
|
|
@@ -36,6 +39,10 @@ export interface PartnerApiDomainsFindRequest {
|
|
|
36
39
|
tld?: string;
|
|
37
40
|
}
|
|
38
41
|
|
|
42
|
+
export interface PartnerApiGetPartnerDomainSeoMetricsRequest {
|
|
43
|
+
domainName: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
39
46
|
export interface PartnerApiListAuctionsRequest {
|
|
40
47
|
limit?: number;
|
|
41
48
|
cursor?: string;
|
|
@@ -95,6 +102,45 @@ export class PartnerApi extends runtime.BaseAPI {
|
|
|
95
102
|
return await response.value();
|
|
96
103
|
}
|
|
97
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Returns the Moz and Majestic metrics Nameshift keeps for a listed domain (sold ones included), each with the date it was fetched. Link metrics only: no prices, page views or leads.
|
|
107
|
+
* Get the SEO metrics of a domain
|
|
108
|
+
*/
|
|
109
|
+
async getPartnerDomainSeoMetricsRaw(requestParameters: PartnerApiGetPartnerDomainSeoMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDomainSeoMetricsDto>> {
|
|
110
|
+
if (requestParameters['domainName'] == null) {
|
|
111
|
+
throw new runtime.RequiredError(
|
|
112
|
+
'domainName',
|
|
113
|
+
'Required parameter "domainName" was null or undefined when calling getPartnerDomainSeoMetrics().'
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const queryParameters: any = {};
|
|
118
|
+
|
|
119
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
120
|
+
|
|
121
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
122
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const response = await this.request({
|
|
126
|
+
path: `/partner/domains/by-name/{domainName}/seo-metrics`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
127
|
+
method: 'GET',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
}, initOverrides);
|
|
131
|
+
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerDomainSeoMetricsDtoFromJSON(jsonValue));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Returns the Moz and Majestic metrics Nameshift keeps for a listed domain (sold ones included), each with the date it was fetched. Link metrics only: no prices, page views or leads.
|
|
137
|
+
* Get the SEO metrics of a domain
|
|
138
|
+
*/
|
|
139
|
+
async getPartnerDomainSeoMetrics(requestParameters: PartnerApiGetPartnerDomainSeoMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDomainSeoMetricsDto> {
|
|
140
|
+
const response = await this.getPartnerDomainSeoMetricsRaw(requestParameters, initOverrides);
|
|
141
|
+
return await response.value();
|
|
142
|
+
}
|
|
143
|
+
|
|
98
144
|
/**
|
|
99
145
|
* Lists auctions available to the partner API key.
|
|
100
146
|
* List partner auctions
|
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
BadRequestException,
|
|
20
20
|
CreateSubscriptionInput,
|
|
21
21
|
CreateSubscriptionManualTransactionInput,
|
|
22
|
-
NotFoundException,
|
|
23
22
|
ObjectId,
|
|
24
23
|
SubscriptionDto,
|
|
25
24
|
UpdateSubscriptionInput,
|
|
@@ -34,8 +33,6 @@ import {
|
|
|
34
33
|
CreateSubscriptionInputToJSON,
|
|
35
34
|
CreateSubscriptionManualTransactionInputFromJSON,
|
|
36
35
|
CreateSubscriptionManualTransactionInputToJSON,
|
|
37
|
-
NotFoundExceptionFromJSON,
|
|
38
|
-
NotFoundExceptionToJSON,
|
|
39
36
|
ObjectIdFromJSON,
|
|
40
37
|
ObjectIdToJSON,
|
|
41
38
|
SubscriptionDtoFromJSON,
|
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
ForgotPasswordRequestInput,
|
|
19
19
|
LoginDto,
|
|
20
20
|
LoginInput,
|
|
21
|
-
NotFoundException,
|
|
22
21
|
NotificationsUnsubscribeResultDto,
|
|
23
22
|
SetNewPasswordInput,
|
|
24
23
|
UserPasswordResetDto,
|
|
@@ -32,8 +31,6 @@ import {
|
|
|
32
31
|
LoginDtoToJSON,
|
|
33
32
|
LoginInputFromJSON,
|
|
34
33
|
LoginInputToJSON,
|
|
35
|
-
NotFoundExceptionFromJSON,
|
|
36
|
-
NotFoundExceptionToJSON,
|
|
37
34
|
NotificationsUnsubscribeResultDtoFromJSON,
|
|
38
35
|
NotificationsUnsubscribeResultDtoToJSON,
|
|
39
36
|
SetNewPasswordInputFromJSON,
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { PartnerMajesticMetricsDto } from './PartnerMajesticMetricsDto';
|
|
17
|
+
import {
|
|
18
|
+
PartnerMajesticMetricsDtoFromJSON,
|
|
19
|
+
PartnerMajesticMetricsDtoFromJSONTyped,
|
|
20
|
+
PartnerMajesticMetricsDtoToJSON,
|
|
21
|
+
PartnerMajesticMetricsDtoToJSONTyped,
|
|
22
|
+
} from './PartnerMajesticMetricsDto';
|
|
23
|
+
import type { PartnerMozMetricsDto } from './PartnerMozMetricsDto';
|
|
24
|
+
import {
|
|
25
|
+
PartnerMozMetricsDtoFromJSON,
|
|
26
|
+
PartnerMozMetricsDtoFromJSONTyped,
|
|
27
|
+
PartnerMozMetricsDtoToJSON,
|
|
28
|
+
PartnerMozMetricsDtoToJSONTyped,
|
|
29
|
+
} from './PartnerMozMetricsDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PartnerDomainSeoMetricsDto
|
|
35
|
+
*/
|
|
36
|
+
export interface PartnerDomainSeoMetricsDto {
|
|
37
|
+
/**
|
|
38
|
+
* Moz metrics, or null when Moz has none for the domain.
|
|
39
|
+
* @type {PartnerMozMetricsDto}
|
|
40
|
+
* @memberof PartnerDomainSeoMetricsDto
|
|
41
|
+
*/
|
|
42
|
+
moz: PartnerMozMetricsDto | null;
|
|
43
|
+
/**
|
|
44
|
+
* Majestic metrics, or null when Majestic has none for the domain.
|
|
45
|
+
* @type {PartnerMajesticMetricsDto}
|
|
46
|
+
* @memberof PartnerDomainSeoMetricsDto
|
|
47
|
+
*/
|
|
48
|
+
majestic: PartnerMajesticMetricsDto | null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PartnerDomainSeoMetricsDto interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPartnerDomainSeoMetricsDto(value: object): value is PartnerDomainSeoMetricsDto {
|
|
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 PartnerDomainSeoMetricsDtoFromJSON(json: any): PartnerDomainSeoMetricsDto {
|
|
61
|
+
return PartnerDomainSeoMetricsDtoFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PartnerDomainSeoMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerDomainSeoMetricsDto {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'moz': PartnerMozMetricsDtoFromJSON(json['moz']),
|
|
71
|
+
'majestic': PartnerMajesticMetricsDtoFromJSON(json['majestic']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PartnerDomainSeoMetricsDtoToJSON(json: any): PartnerDomainSeoMetricsDto {
|
|
76
|
+
return PartnerDomainSeoMetricsDtoToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PartnerDomainSeoMetricsDtoToJSONTyped(value?: PartnerDomainSeoMetricsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'moz': PartnerMozMetricsDtoToJSON(value['moz']),
|
|
87
|
+
'majestic': PartnerMajesticMetricsDtoToJSON(value['majestic']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 PartnerMajesticMetricsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PartnerMajesticMetricsDto {
|
|
22
|
+
/**
|
|
23
|
+
* Majestic trust flow.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PartnerMajesticMetricsDto
|
|
26
|
+
*/
|
|
27
|
+
trustFlow: number | null;
|
|
28
|
+
/**
|
|
29
|
+
* Majestic citation flow.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PartnerMajesticMetricsDto
|
|
32
|
+
*/
|
|
33
|
+
citationFlow: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Referring domains reported by Majestic.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PartnerMajesticMetricsDto
|
|
38
|
+
*/
|
|
39
|
+
referringDomains: number | null;
|
|
40
|
+
/**
|
|
41
|
+
* Backlinks reported by Majestic.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PartnerMajesticMetricsDto
|
|
44
|
+
*/
|
|
45
|
+
backlinks: number;
|
|
46
|
+
/**
|
|
47
|
+
* When the Majestic metrics were fetched.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof PartnerMajesticMetricsDto
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: Date | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PartnerMajesticMetricsDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPartnerMajesticMetricsDto(value: object): value is PartnerMajesticMetricsDto {
|
|
58
|
+
if (!('trustFlow' in value) || value['trustFlow'] === undefined) return false;
|
|
59
|
+
if (!('citationFlow' in value) || value['citationFlow'] === undefined) return false;
|
|
60
|
+
if (!('referringDomains' in value) || value['referringDomains'] === undefined) return false;
|
|
61
|
+
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
62
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PartnerMajesticMetricsDtoFromJSON(json: any): PartnerMajesticMetricsDto {
|
|
67
|
+
return PartnerMajesticMetricsDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PartnerMajesticMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerMajesticMetricsDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'trustFlow': json['trustFlow'],
|
|
77
|
+
'citationFlow': json['citationFlow'],
|
|
78
|
+
'referringDomains': json['referringDomains'],
|
|
79
|
+
'backlinks': json['backlinks'],
|
|
80
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PartnerMajesticMetricsDtoToJSON(json: any): PartnerMajesticMetricsDto {
|
|
85
|
+
return PartnerMajesticMetricsDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PartnerMajesticMetricsDtoToJSONTyped(value?: PartnerMajesticMetricsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'trustFlow': value['trustFlow'],
|
|
96
|
+
'citationFlow': value['citationFlow'],
|
|
97
|
+
'referringDomains': value['referringDomains'],
|
|
98
|
+
'backlinks': value['backlinks'],
|
|
99
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 PartnerMozMetricsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PartnerMozMetricsDto {
|
|
22
|
+
/**
|
|
23
|
+
* Moz domain authority (0–100).
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PartnerMozMetricsDto
|
|
26
|
+
*/
|
|
27
|
+
domainAuthority: number;
|
|
28
|
+
/**
|
|
29
|
+
* Moz page authority (0–100); null when Moz reported the domain as a subdomain of its root.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PartnerMozMetricsDto
|
|
32
|
+
*/
|
|
33
|
+
pageAuthority: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Backlinks reported by Moz.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PartnerMozMetricsDto
|
|
38
|
+
*/
|
|
39
|
+
backlinks: number;
|
|
40
|
+
/**
|
|
41
|
+
* Root domains linking to the domain.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PartnerMozMetricsDto
|
|
44
|
+
*/
|
|
45
|
+
rootDomains: number | null;
|
|
46
|
+
/**
|
|
47
|
+
* Moz spam score (0–100), when available.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PartnerMozMetricsDto
|
|
50
|
+
*/
|
|
51
|
+
spamScore: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* When the Moz metrics were fetched.
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof PartnerMozMetricsDto
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PartnerMozMetricsDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPartnerMozMetricsDto(value: object): value is PartnerMozMetricsDto {
|
|
64
|
+
if (!('domainAuthority' in value) || value['domainAuthority'] === undefined) return false;
|
|
65
|
+
if (!('pageAuthority' in value) || value['pageAuthority'] === undefined) return false;
|
|
66
|
+
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
67
|
+
if (!('rootDomains' in value) || value['rootDomains'] === undefined) return false;
|
|
68
|
+
if (!('spamScore' in value) || value['spamScore'] === undefined) return false;
|
|
69
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PartnerMozMetricsDtoFromJSON(json: any): PartnerMozMetricsDto {
|
|
74
|
+
return PartnerMozMetricsDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PartnerMozMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerMozMetricsDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'domainAuthority': json['domainAuthority'],
|
|
84
|
+
'pageAuthority': json['pageAuthority'],
|
|
85
|
+
'backlinks': json['backlinks'],
|
|
86
|
+
'rootDomains': json['rootDomains'],
|
|
87
|
+
'spamScore': json['spamScore'],
|
|
88
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PartnerMozMetricsDtoToJSON(json: any): PartnerMozMetricsDto {
|
|
93
|
+
return PartnerMozMetricsDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PartnerMozMetricsDtoToJSONTyped(value?: PartnerMozMetricsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'domainAuthority': value['domainAuthority'],
|
|
104
|
+
'pageAuthority': value['pageAuthority'],
|
|
105
|
+
'backlinks': value['backlinks'],
|
|
106
|
+
'rootDomains': value['rootDomains'],
|
|
107
|
+
'spamScore': value['spamScore'],
|
|
108
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -406,7 +406,6 @@ export * from './MoneyDecimalDto';
|
|
|
406
406
|
export * from './MoneyDto';
|
|
407
407
|
export * from './MoneyInput';
|
|
408
408
|
export * from './MozMetrics';
|
|
409
|
-
export * from './NotFoundException';
|
|
410
409
|
export * from './NotificationsUnsubscribeResultDto';
|
|
411
410
|
export * from './ObjectId';
|
|
412
411
|
export * from './OrderCompanyInfoDto';
|
|
@@ -426,6 +425,9 @@ export * from './PaginateResponseMeta';
|
|
|
426
425
|
export * from './ParsedDomainDto';
|
|
427
426
|
export * from './PartnerAuctionDto';
|
|
428
427
|
export * from './PartnerDomainFindDto';
|
|
428
|
+
export * from './PartnerDomainSeoMetricsDto';
|
|
429
|
+
export * from './PartnerMajesticMetricsDto';
|
|
430
|
+
export * from './PartnerMozMetricsDto';
|
|
429
431
|
export * from './PayAccountPaymentInput';
|
|
430
432
|
export * from './PaySellerInvoicesInput';
|
|
431
433
|
export * from './PaymentMethodsStatsDto';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nameshift
|
|
3
|
-
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 NotFoundException
|
|
16
|
-
*/
|
|
17
|
-
export interface NotFoundException {
|
|
18
|
-
/**
|
|
19
|
-
* Exception name.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof NotFoundException
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* HTTP status code.
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof NotFoundException
|
|
28
|
-
*/
|
|
29
|
-
statusCode: number;
|
|
30
|
-
/**
|
|
31
|
-
* error message
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof NotFoundException
|
|
34
|
-
*/
|
|
35
|
-
message: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the NotFoundException interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfNotFoundException(value: object): value is NotFoundException;
|
|
41
|
-
export declare function NotFoundExceptionFromJSON(json: any): NotFoundException;
|
|
42
|
-
export declare function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException;
|
|
43
|
-
export declare function NotFoundExceptionToJSON(json: any): NotFoundException;
|
|
44
|
-
export declare function NotFoundExceptionToJSONTyped(value?: NotFoundException | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Nameshift
|
|
6
|
-
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfNotFoundException = instanceOfNotFoundException;
|
|
17
|
-
exports.NotFoundExceptionFromJSON = NotFoundExceptionFromJSON;
|
|
18
|
-
exports.NotFoundExceptionFromJSONTyped = NotFoundExceptionFromJSONTyped;
|
|
19
|
-
exports.NotFoundExceptionToJSON = NotFoundExceptionToJSON;
|
|
20
|
-
exports.NotFoundExceptionToJSONTyped = NotFoundExceptionToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the NotFoundException interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfNotFoundException(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function NotFoundExceptionFromJSON(json) {
|
|
34
|
-
return NotFoundExceptionFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function NotFoundExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'name': json['name'],
|
|
42
|
-
'statusCode': json['statusCode'],
|
|
43
|
-
'message': json['message'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function NotFoundExceptionToJSON(json) {
|
|
47
|
-
return NotFoundExceptionToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function NotFoundExceptionToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'name': value['name'],
|
|
56
|
-
'statusCode': value['statusCode'],
|
|
57
|
-
'message': value['message'],
|
|
58
|
-
};
|
|
59
|
-
}
|