@randock/nameshift-api-client 0.0.207 → 0.0.209
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +11 -0
- package/dist/apis/BuyersApi.js +51 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +6 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +4 -0
- package/dist/models/MozMetrics.d.ts +6 -0
- package/dist/models/MozMetrics.js +4 -0
- package/dist/models/PublicDomainDto.d.ts +7 -0
- package/dist/models/PublicDomainDto.js +5 -0
- package/dist/models/PublicDomainDtoSeo.d.ts +33 -0
- package/dist/models/PublicDomainDtoSeo.js +52 -0
- package/dist/models/PublicDomainDtoSeoMoz.d.ts +44 -0
- package/dist/models/PublicDomainDtoSeoMoz.js +59 -0
- package/dist/models/SubscriptionListItemDto.d.ts +6 -0
- package/dist/models/SubscriptionListItemDto.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +44 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +9 -0
- package/src/models/MozMetrics.ts +9 -0
- package/src/models/PublicDomainDto.ts +16 -0
- package/src/models/PublicDomainDtoSeo.ts +74 -0
- package/src/models/PublicDomainDtoSeoMoz.ts +84 -0
- package/src/models/SubscriptionListItemDto.ts +9 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -162,6 +162,8 @@ src/models/PaginateResponseMeta.ts
|
|
|
162
162
|
src/models/ParsedDomainDto.ts
|
|
163
163
|
src/models/PaymentProviderDto.ts
|
|
164
164
|
src/models/PublicDomainDto.ts
|
|
165
|
+
src/models/PublicDomainDtoSeo.ts
|
|
166
|
+
src/models/PublicDomainDtoSeoMoz.ts
|
|
165
167
|
src/models/PublicLeadBuyerDto.ts
|
|
166
168
|
src/models/PublicLeadDto.ts
|
|
167
169
|
src/models/PutBuyerLeadOfferInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.209
|
|
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.209 --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
|
+
acd3d4c6c73a70ddfff1e70522cdad316435e02346d98a638539b37c914ff76191f73883c6a7dfe2f586e69a2de96f09
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -75,6 +75,9 @@ export interface BuyersApiPutBuyerOfferRequest {
|
|
|
75
75
|
leadId: string;
|
|
76
76
|
putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
|
|
77
77
|
}
|
|
78
|
+
export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
79
|
+
subscriptionId: string;
|
|
80
|
+
}
|
|
78
81
|
export interface BuyersApiSetLocaleRequest {
|
|
79
82
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
80
83
|
}
|
|
@@ -221,6 +224,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
221
224
|
*
|
|
222
225
|
*/
|
|
223
226
|
putBuyerOffer(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
230
|
+
revokeScheduledSubscriptionCancellationRaw(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
*/
|
|
234
|
+
revokeScheduledSubscriptionCancellation(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
224
235
|
/**
|
|
225
236
|
*
|
|
226
237
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -1023,6 +1023,57 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1023
1023
|
});
|
|
1024
1024
|
});
|
|
1025
1025
|
};
|
|
1026
|
+
/**
|
|
1027
|
+
*
|
|
1028
|
+
*/
|
|
1029
|
+
BuyersApi.prototype.revokeScheduledSubscriptionCancellationRaw = function (requestParameters, initOverrides) {
|
|
1030
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1031
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1032
|
+
return __generator(this, function (_a) {
|
|
1033
|
+
switch (_a.label) {
|
|
1034
|
+
case 0:
|
|
1035
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
1036
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling revokeScheduledSubscriptionCancellation().');
|
|
1037
|
+
}
|
|
1038
|
+
queryParameters = {};
|
|
1039
|
+
headerParameters = {};
|
|
1040
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1041
|
+
token = this.configuration.accessToken;
|
|
1042
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1043
|
+
case 1:
|
|
1044
|
+
tokenString = _a.sent();
|
|
1045
|
+
if (tokenString) {
|
|
1046
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1047
|
+
}
|
|
1048
|
+
_a.label = 2;
|
|
1049
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1050
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/revoke-scheduled-cancellation".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1051
|
+
method: 'PATCH',
|
|
1052
|
+
headers: headerParameters,
|
|
1053
|
+
query: queryParameters,
|
|
1054
|
+
}, initOverrides)];
|
|
1055
|
+
case 3:
|
|
1056
|
+
response = _a.sent();
|
|
1057
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
});
|
|
1061
|
+
};
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
*/
|
|
1065
|
+
BuyersApi.prototype.revokeScheduledSubscriptionCancellation = function (requestParameters, initOverrides) {
|
|
1066
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1067
|
+
return __generator(this, function (_a) {
|
|
1068
|
+
switch (_a.label) {
|
|
1069
|
+
case 0: return [4 /*yield*/, this.revokeScheduledSubscriptionCancellationRaw(requestParameters, initOverrides)];
|
|
1070
|
+
case 1:
|
|
1071
|
+
_a.sent();
|
|
1072
|
+
return [2 /*return*/];
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
};
|
|
1026
1077
|
/**
|
|
1027
1078
|
*
|
|
1028
1079
|
*/
|
|
@@ -47,6 +47,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
47
47
|
* @memberof BuyerSubscriptionListItemDto
|
|
48
48
|
*/
|
|
49
49
|
createdAt: Date;
|
|
50
|
+
/**
|
|
51
|
+
* The subscription schedule cancellation date
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
54
|
+
*/
|
|
55
|
+
scheduledCancellationAt: Date | null;
|
|
50
56
|
/**
|
|
51
57
|
* The subscription domain information
|
|
52
58
|
* @type {BuyerSubscriptionListItemDtoDomainInformation}
|
|
@@ -52,6 +52,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
|
|
|
52
52
|
return false;
|
|
53
53
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
54
54
|
return false;
|
|
55
|
+
if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
56
58
|
return false;
|
|
57
59
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
@@ -71,6 +73,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
73
|
'type': json['type'],
|
|
72
74
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
73
75
|
'createdAt': (new Date(json['createdAt'])),
|
|
76
|
+
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
74
77
|
'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
75
78
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
76
79
|
};
|
|
@@ -89,6 +92,7 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
92
|
'type': value['type'],
|
|
90
93
|
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
91
94
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
95
|
+
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
|
|
92
96
|
'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
93
97
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
94
98
|
};
|
|
@@ -28,6 +28,8 @@ function instanceOfMozMetrics(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('backlinks' in value) || value['backlinks'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('rootDomains' in value) || value['rootDomains'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('spamScore' in value) || value['spamScore'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
return true;
|
|
@@ -43,6 +45,7 @@ function MozMetricsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
'domainAuthority': json['domainAuthority'],
|
|
44
46
|
'pageAuthority': json['pageAuthority'],
|
|
45
47
|
'backlinks': json['backlinks'],
|
|
48
|
+
'rootDomains': json['rootDomains'],
|
|
46
49
|
'spamScore': json['spamScore'],
|
|
47
50
|
};
|
|
48
51
|
}
|
|
@@ -58,6 +61,7 @@ function MozMetricsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
61
|
'domainAuthority': value['domainAuthority'],
|
|
59
62
|
'pageAuthority': value['pageAuthority'],
|
|
60
63
|
'backlinks': value['backlinks'],
|
|
64
|
+
'rootDomains': value['rootDomains'],
|
|
61
65
|
'spamScore': value['spamScore'],
|
|
62
66
|
};
|
|
63
67
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PublicDomainDtoSeo } from './PublicDomainDtoSeo';
|
|
12
13
|
import type { MoneyDto } from './MoneyDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -34,6 +35,12 @@ export interface PublicDomainDto {
|
|
|
34
35
|
* @memberof PublicDomainDto
|
|
35
36
|
*/
|
|
36
37
|
url: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PublicDomainDtoSeo}
|
|
41
|
+
* @memberof PublicDomainDto
|
|
42
|
+
*/
|
|
43
|
+
seo: PublicDomainDtoSeo;
|
|
37
44
|
/**
|
|
38
45
|
* The TLD for this domain.
|
|
39
46
|
* @type {string}
|
|
@@ -18,6 +18,7 @@ exports.PublicDomainDtoFromJSON = PublicDomainDtoFromJSON;
|
|
|
18
18
|
exports.PublicDomainDtoFromJSONTyped = PublicDomainDtoFromJSONTyped;
|
|
19
19
|
exports.PublicDomainDtoToJSON = PublicDomainDtoToJSON;
|
|
20
20
|
exports.PublicDomainDtoToJSONTyped = PublicDomainDtoToJSONTyped;
|
|
21
|
+
var PublicDomainDtoSeo_1 = require("./PublicDomainDtoSeo");
|
|
21
22
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the PublicDomainDto interface.
|
|
@@ -29,6 +30,8 @@ function instanceOfPublicDomainDto(value) {
|
|
|
29
30
|
return false;
|
|
30
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
31
32
|
return false;
|
|
33
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
34
|
+
return false;
|
|
32
35
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
33
36
|
return false;
|
|
34
37
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -54,6 +57,7 @@ function PublicDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
57
|
'id': json['id'],
|
|
55
58
|
'seller': json['seller'],
|
|
56
59
|
'url': json['url'],
|
|
60
|
+
'seo': (0, PublicDomainDtoSeo_1.PublicDomainDtoSeoFromJSON)(json['seo']),
|
|
57
61
|
'tld': json['tld'],
|
|
58
62
|
'name': json['name'],
|
|
59
63
|
'displayName': json['displayName'],
|
|
@@ -74,6 +78,7 @@ function PublicDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
78
|
'id': value['id'],
|
|
75
79
|
'seller': value['seller'],
|
|
76
80
|
'url': value['url'],
|
|
81
|
+
'seo': (0, PublicDomainDtoSeo_1.PublicDomainDtoSeoToJSON)(value['seo']),
|
|
77
82
|
'tld': value['tld'],
|
|
78
83
|
'name': value['name'],
|
|
79
84
|
'displayName': value['displayName'],
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { PublicDomainDtoSeoMoz } from './PublicDomainDtoSeoMoz';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PublicDomainDtoSeo
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicDomainDtoSeo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {PublicDomainDtoSeoMoz}
|
|
22
|
+
* @memberof PublicDomainDtoSeo
|
|
23
|
+
*/
|
|
24
|
+
moz: PublicDomainDtoSeoMoz | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PublicDomainDtoSeo interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPublicDomainDtoSeo(value: object): value is PublicDomainDtoSeo;
|
|
30
|
+
export declare function PublicDomainDtoSeoFromJSON(json: any): PublicDomainDtoSeo;
|
|
31
|
+
export declare function PublicDomainDtoSeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDtoSeo;
|
|
32
|
+
export declare function PublicDomainDtoSeoToJSON(json: any): PublicDomainDtoSeo;
|
|
33
|
+
export declare function PublicDomainDtoSeoToJSONTyped(value?: PublicDomainDtoSeo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPublicDomainDtoSeo = instanceOfPublicDomainDtoSeo;
|
|
17
|
+
exports.PublicDomainDtoSeoFromJSON = PublicDomainDtoSeoFromJSON;
|
|
18
|
+
exports.PublicDomainDtoSeoFromJSONTyped = PublicDomainDtoSeoFromJSONTyped;
|
|
19
|
+
exports.PublicDomainDtoSeoToJSON = PublicDomainDtoSeoToJSON;
|
|
20
|
+
exports.PublicDomainDtoSeoToJSONTyped = PublicDomainDtoSeoToJSONTyped;
|
|
21
|
+
var PublicDomainDtoSeoMoz_1 = require("./PublicDomainDtoSeoMoz");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicDomainDtoSeo interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicDomainDtoSeo(value) {
|
|
26
|
+
if (!('moz' in value) || value['moz'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PublicDomainDtoSeoFromJSON(json) {
|
|
31
|
+
return PublicDomainDtoSeoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PublicDomainDtoSeoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'moz': (0, PublicDomainDtoSeoMoz_1.PublicDomainDtoSeoMozFromJSON)(json['moz']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PublicDomainDtoSeoToJSON(json) {
|
|
42
|
+
return PublicDomainDtoSeoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PublicDomainDtoSeoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'moz': (0, PublicDomainDtoSeoMoz_1.PublicDomainDtoSeoMozToJSON)(value['moz']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 PublicDomainDtoSeoMoz
|
|
16
|
+
*/
|
|
17
|
+
export interface PublicDomainDtoSeoMoz {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PublicDomainDtoSeoMoz
|
|
22
|
+
*/
|
|
23
|
+
backlinks: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PublicDomainDtoSeoMoz
|
|
28
|
+
*/
|
|
29
|
+
domainAuthority: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PublicDomainDtoSeoMoz
|
|
34
|
+
*/
|
|
35
|
+
rootDomains: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PublicDomainDtoSeoMoz interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPublicDomainDtoSeoMoz(value: object): value is PublicDomainDtoSeoMoz;
|
|
41
|
+
export declare function PublicDomainDtoSeoMozFromJSON(json: any): PublicDomainDtoSeoMoz;
|
|
42
|
+
export declare function PublicDomainDtoSeoMozFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDtoSeoMoz;
|
|
43
|
+
export declare function PublicDomainDtoSeoMozToJSON(json: any): PublicDomainDtoSeoMoz;
|
|
44
|
+
export declare function PublicDomainDtoSeoMozToJSONTyped(value?: PublicDomainDtoSeoMoz | 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.instanceOfPublicDomainDtoSeoMoz = instanceOfPublicDomainDtoSeoMoz;
|
|
17
|
+
exports.PublicDomainDtoSeoMozFromJSON = PublicDomainDtoSeoMozFromJSON;
|
|
18
|
+
exports.PublicDomainDtoSeoMozFromJSONTyped = PublicDomainDtoSeoMozFromJSONTyped;
|
|
19
|
+
exports.PublicDomainDtoSeoMozToJSON = PublicDomainDtoSeoMozToJSON;
|
|
20
|
+
exports.PublicDomainDtoSeoMozToJSONTyped = PublicDomainDtoSeoMozToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PublicDomainDtoSeoMoz interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPublicDomainDtoSeoMoz(value) {
|
|
25
|
+
if (!('backlinks' in value) || value['backlinks'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('domainAuthority' in value) || value['domainAuthority'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('rootDomains' in value) || value['rootDomains'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PublicDomainDtoSeoMozFromJSON(json) {
|
|
34
|
+
return PublicDomainDtoSeoMozFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PublicDomainDtoSeoMozFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'backlinks': json['backlinks'],
|
|
42
|
+
'domainAuthority': json['domainAuthority'],
|
|
43
|
+
'rootDomains': json['rootDomains'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PublicDomainDtoSeoMozToJSON(json) {
|
|
47
|
+
return PublicDomainDtoSeoMozToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PublicDomainDtoSeoMozToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'backlinks': value['backlinks'],
|
|
56
|
+
'domainAuthority': value['domainAuthority'],
|
|
57
|
+
'rootDomains': value['rootDomains'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -49,6 +49,12 @@ export interface SubscriptionListItemDto {
|
|
|
49
49
|
* @memberof SubscriptionListItemDto
|
|
50
50
|
*/
|
|
51
51
|
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
* The subscription schedule cancellation date
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof SubscriptionListItemDto
|
|
56
|
+
*/
|
|
57
|
+
scheduledCancellationAt: Date | null;
|
|
52
58
|
/**
|
|
53
59
|
* The subscription domain information
|
|
54
60
|
* @type {SubscriptionListItemDtoDomainInformation}
|
|
@@ -54,6 +54,8 @@ function instanceOfSubscriptionListItemDto(value) {
|
|
|
54
54
|
return false;
|
|
55
55
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
56
56
|
return false;
|
|
57
|
+
if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined)
|
|
58
|
+
return false;
|
|
57
59
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
58
60
|
return false;
|
|
59
61
|
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
|
|
@@ -77,6 +79,7 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
79
|
'type': json['type'],
|
|
78
80
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
79
81
|
'createdAt': (new Date(json['createdAt'])),
|
|
82
|
+
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
80
83
|
'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
81
84
|
'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
82
85
|
'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
@@ -97,6 +100,7 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
100
|
'type': value['type'],
|
|
98
101
|
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
99
102
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
103
|
+
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
|
|
100
104
|
'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
101
105
|
'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
102
106
|
'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -137,6 +137,8 @@ export * from './PaginateResponseMeta';
|
|
|
137
137
|
export * from './ParsedDomainDto';
|
|
138
138
|
export * from './PaymentProviderDto';
|
|
139
139
|
export * from './PublicDomainDto';
|
|
140
|
+
export * from './PublicDomainDtoSeo';
|
|
141
|
+
export * from './PublicDomainDtoSeoMoz';
|
|
140
142
|
export * from './PublicLeadBuyerDto';
|
|
141
143
|
export * from './PublicLeadDto';
|
|
142
144
|
export * from './PutBuyerLeadOfferInput';
|
package/dist/models/index.js
CHANGED
|
@@ -155,6 +155,8 @@ __exportStar(require("./PaginateResponseMeta"), exports);
|
|
|
155
155
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
156
156
|
__exportStar(require("./PaymentProviderDto"), exports);
|
|
157
157
|
__exportStar(require("./PublicDomainDto"), exports);
|
|
158
|
+
__exportStar(require("./PublicDomainDtoSeo"), exports);
|
|
159
|
+
__exportStar(require("./PublicDomainDtoSeoMoz"), exports);
|
|
158
160
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
159
161
|
__exportStar(require("./PublicLeadDto"), exports);
|
|
160
162
|
__exportStar(require("./PutBuyerLeadOfferInput"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -159,6 +159,10 @@ export interface BuyersApiPutBuyerOfferRequest {
|
|
|
159
159
|
putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
163
|
+
subscriptionId: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
162
166
|
export interface BuyersApiSetLocaleRequest {
|
|
163
167
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
164
168
|
}
|
|
@@ -937,6 +941,46 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
937
941
|
await this.putBuyerOfferRaw(requestParameters, initOverrides);
|
|
938
942
|
}
|
|
939
943
|
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
*/
|
|
947
|
+
async revokeScheduledSubscriptionCancellationRaw(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
948
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
949
|
+
throw new runtime.RequiredError(
|
|
950
|
+
'subscriptionId',
|
|
951
|
+
'Required parameter "subscriptionId" was null or undefined when calling revokeScheduledSubscriptionCancellation().'
|
|
952
|
+
);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
const queryParameters: any = {};
|
|
956
|
+
|
|
957
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
958
|
+
|
|
959
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
960
|
+
const token = this.configuration.accessToken;
|
|
961
|
+
const tokenString = await token("bearer", []);
|
|
962
|
+
|
|
963
|
+
if (tokenString) {
|
|
964
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
const response = await this.request({
|
|
968
|
+
path: `/buyers/private/subscriptions/{subscriptionId}/revoke-scheduled-cancellation`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
969
|
+
method: 'PATCH',
|
|
970
|
+
headers: headerParameters,
|
|
971
|
+
query: queryParameters,
|
|
972
|
+
}, initOverrides);
|
|
973
|
+
|
|
974
|
+
return new runtime.VoidApiResponse(response);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
*/
|
|
980
|
+
async revokeScheduledSubscriptionCancellation(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
981
|
+
await this.revokeScheduledSubscriptionCancellationRaw(requestParameters, initOverrides);
|
|
982
|
+
}
|
|
983
|
+
|
|
940
984
|
/**
|
|
941
985
|
*
|
|
942
986
|
*/
|
|
@@ -64,6 +64,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
64
64
|
* @memberof BuyerSubscriptionListItemDto
|
|
65
65
|
*/
|
|
66
66
|
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* The subscription schedule cancellation date
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
71
|
+
*/
|
|
72
|
+
scheduledCancellationAt: Date | null;
|
|
67
73
|
/**
|
|
68
74
|
* The subscription domain information
|
|
69
75
|
* @type {BuyerSubscriptionListItemDtoDomainInformation}
|
|
@@ -110,6 +116,7 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
|
|
|
110
116
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
111
117
|
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
112
118
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
119
|
+
if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
|
|
113
120
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
114
121
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
115
122
|
return true;
|
|
@@ -130,6 +137,7 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
|
|
|
130
137
|
'type': json['type'],
|
|
131
138
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
132
139
|
'createdAt': (new Date(json['createdAt'])),
|
|
140
|
+
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
133
141
|
'domain': BuyerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
134
142
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
135
143
|
};
|
|
@@ -151,6 +159,7 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
|
|
|
151
159
|
'type': value['type'],
|
|
152
160
|
'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
|
|
153
161
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
162
|
+
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
|
|
154
163
|
'domain': BuyerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
|
|
155
164
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
156
165
|
};
|
package/src/models/MozMetrics.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface MozMetrics {
|
|
|
37
37
|
* @memberof MozMetrics
|
|
38
38
|
*/
|
|
39
39
|
backlinks: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof MozMetrics
|
|
44
|
+
*/
|
|
45
|
+
rootDomains: number;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {number}
|
|
@@ -52,6 +58,7 @@ export function instanceOfMozMetrics(value: object): value is MozMetrics {
|
|
|
52
58
|
if (!('domainAuthority' in value) || value['domainAuthority'] === undefined) return false;
|
|
53
59
|
if (!('pageAuthority' in value) || value['pageAuthority'] === undefined) return false;
|
|
54
60
|
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
61
|
+
if (!('rootDomains' in value) || value['rootDomains'] === undefined) return false;
|
|
55
62
|
if (!('spamScore' in value) || value['spamScore'] === undefined) return false;
|
|
56
63
|
return true;
|
|
57
64
|
}
|
|
@@ -69,6 +76,7 @@ export function MozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
69
76
|
'domainAuthority': json['domainAuthority'],
|
|
70
77
|
'pageAuthority': json['pageAuthority'],
|
|
71
78
|
'backlinks': json['backlinks'],
|
|
79
|
+
'rootDomains': json['rootDomains'],
|
|
72
80
|
'spamScore': json['spamScore'],
|
|
73
81
|
};
|
|
74
82
|
}
|
|
@@ -87,6 +95,7 @@ export function MozMetricsToJSONTyped(value?: MozMetrics | null, ignoreDiscrimin
|
|
|
87
95
|
'domainAuthority': value['domainAuthority'],
|
|
88
96
|
'pageAuthority': value['pageAuthority'],
|
|
89
97
|
'backlinks': value['backlinks'],
|
|
98
|
+
'rootDomains': value['rootDomains'],
|
|
90
99
|
'spamScore': value['spamScore'],
|
|
91
100
|
};
|
|
92
101
|
}
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PublicDomainDtoSeo } from './PublicDomainDtoSeo';
|
|
17
|
+
import {
|
|
18
|
+
PublicDomainDtoSeoFromJSON,
|
|
19
|
+
PublicDomainDtoSeoFromJSONTyped,
|
|
20
|
+
PublicDomainDtoSeoToJSON,
|
|
21
|
+
PublicDomainDtoSeoToJSONTyped,
|
|
22
|
+
} from './PublicDomainDtoSeo';
|
|
16
23
|
import type { MoneyDto } from './MoneyDto';
|
|
17
24
|
import {
|
|
18
25
|
MoneyDtoFromJSON,
|
|
@@ -45,6 +52,12 @@ export interface PublicDomainDto {
|
|
|
45
52
|
* @memberof PublicDomainDto
|
|
46
53
|
*/
|
|
47
54
|
url: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {PublicDomainDtoSeo}
|
|
58
|
+
* @memberof PublicDomainDto
|
|
59
|
+
*/
|
|
60
|
+
seo: PublicDomainDtoSeo;
|
|
48
61
|
/**
|
|
49
62
|
* The TLD for this domain.
|
|
50
63
|
* @type {string}
|
|
@@ -91,6 +104,7 @@ export function instanceOfPublicDomainDto(value: object): value is PublicDomainD
|
|
|
91
104
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
92
105
|
if (!('seller' in value) || value['seller'] === undefined) return false;
|
|
93
106
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
107
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
94
108
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
95
109
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
110
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
@@ -113,6 +127,7 @@ export function PublicDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
113
127
|
'id': json['id'],
|
|
114
128
|
'seller': json['seller'],
|
|
115
129
|
'url': json['url'],
|
|
130
|
+
'seo': PublicDomainDtoSeoFromJSON(json['seo']),
|
|
116
131
|
'tld': json['tld'],
|
|
117
132
|
'name': json['name'],
|
|
118
133
|
'displayName': json['displayName'],
|
|
@@ -136,6 +151,7 @@ export function PublicDomainDtoToJSONTyped(value?: PublicDomainDto | null, ignor
|
|
|
136
151
|
'id': value['id'],
|
|
137
152
|
'seller': value['seller'],
|
|
138
153
|
'url': value['url'],
|
|
154
|
+
'seo': PublicDomainDtoSeoToJSON(value['seo']),
|
|
139
155
|
'tld': value['tld'],
|
|
140
156
|
'name': value['name'],
|
|
141
157
|
'displayName': value['displayName'],
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { PublicDomainDtoSeoMoz } from './PublicDomainDtoSeoMoz';
|
|
17
|
+
import {
|
|
18
|
+
PublicDomainDtoSeoMozFromJSON,
|
|
19
|
+
PublicDomainDtoSeoMozFromJSONTyped,
|
|
20
|
+
PublicDomainDtoSeoMozToJSON,
|
|
21
|
+
PublicDomainDtoSeoMozToJSONTyped,
|
|
22
|
+
} from './PublicDomainDtoSeoMoz';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PublicDomainDtoSeo
|
|
28
|
+
*/
|
|
29
|
+
export interface PublicDomainDtoSeo {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {PublicDomainDtoSeoMoz}
|
|
33
|
+
* @memberof PublicDomainDtoSeo
|
|
34
|
+
*/
|
|
35
|
+
moz: PublicDomainDtoSeoMoz | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PublicDomainDtoSeo interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPublicDomainDtoSeo(value: object): value is PublicDomainDtoSeo {
|
|
42
|
+
if (!('moz' in value) || value['moz'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PublicDomainDtoSeoFromJSON(json: any): PublicDomainDtoSeo {
|
|
47
|
+
return PublicDomainDtoSeoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PublicDomainDtoSeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDtoSeo {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'moz': PublicDomainDtoSeoMozFromJSON(json['moz']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PublicDomainDtoSeoToJSON(json: any): PublicDomainDtoSeo {
|
|
61
|
+
return PublicDomainDtoSeoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PublicDomainDtoSeoToJSONTyped(value?: PublicDomainDtoSeo | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'moz': PublicDomainDtoSeoMozToJSON(value['moz']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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 PublicDomainDtoSeoMoz
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicDomainDtoSeoMoz {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PublicDomainDtoSeoMoz
|
|
26
|
+
*/
|
|
27
|
+
backlinks: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PublicDomainDtoSeoMoz
|
|
32
|
+
*/
|
|
33
|
+
domainAuthority: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PublicDomainDtoSeoMoz
|
|
38
|
+
*/
|
|
39
|
+
rootDomains: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PublicDomainDtoSeoMoz interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPublicDomainDtoSeoMoz(value: object): value is PublicDomainDtoSeoMoz {
|
|
46
|
+
if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
|
|
47
|
+
if (!('domainAuthority' in value) || value['domainAuthority'] === undefined) return false;
|
|
48
|
+
if (!('rootDomains' in value) || value['rootDomains'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PublicDomainDtoSeoMozFromJSON(json: any): PublicDomainDtoSeoMoz {
|
|
53
|
+
return PublicDomainDtoSeoMozFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PublicDomainDtoSeoMozFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDtoSeoMoz {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'backlinks': json['backlinks'],
|
|
63
|
+
'domainAuthority': json['domainAuthority'],
|
|
64
|
+
'rootDomains': json['rootDomains'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PublicDomainDtoSeoMozToJSON(json: any): PublicDomainDtoSeoMoz {
|
|
69
|
+
return PublicDomainDtoSeoMozToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PublicDomainDtoSeoMozToJSONTyped(value?: PublicDomainDtoSeoMoz | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'backlinks': value['backlinks'],
|
|
80
|
+
'domainAuthority': value['domainAuthority'],
|
|
81
|
+
'rootDomains': value['rootDomains'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -78,6 +78,12 @@ export interface SubscriptionListItemDto {
|
|
|
78
78
|
* @memberof SubscriptionListItemDto
|
|
79
79
|
*/
|
|
80
80
|
createdAt: Date;
|
|
81
|
+
/**
|
|
82
|
+
* The subscription schedule cancellation date
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof SubscriptionListItemDto
|
|
85
|
+
*/
|
|
86
|
+
scheduledCancellationAt: Date | null;
|
|
81
87
|
/**
|
|
82
88
|
* The subscription domain information
|
|
83
89
|
* @type {SubscriptionListItemDtoDomainInformation}
|
|
@@ -136,6 +142,7 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
|
|
|
136
142
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
137
143
|
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
138
144
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
145
|
+
if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
|
|
139
146
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
140
147
|
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
141
148
|
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
|
|
@@ -158,6 +165,7 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
158
165
|
'type': json['type'],
|
|
159
166
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
160
167
|
'createdAt': (new Date(json['createdAt'])),
|
|
168
|
+
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
161
169
|
'domain': SubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
162
170
|
'sellerAccount': SubscriptionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
163
171
|
'buyerInformation': SubscriptionListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
|
|
@@ -181,6 +189,7 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
|
|
|
181
189
|
'type': value['type'],
|
|
182
190
|
'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
|
|
183
191
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
192
|
+
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
|
|
184
193
|
'domain': SubscriptionListItemDtoDomainInformationToJSON(value['domain']),
|
|
185
194
|
'sellerAccount': SubscriptionListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
186
195
|
'buyerInformation': SubscriptionListItemDtoBuyerInformationToJSON(value['buyerInformation']),
|
package/src/models/index.ts
CHANGED
|
@@ -139,6 +139,8 @@ export * from './PaginateResponseMeta';
|
|
|
139
139
|
export * from './ParsedDomainDto';
|
|
140
140
|
export * from './PaymentProviderDto';
|
|
141
141
|
export * from './PublicDomainDto';
|
|
142
|
+
export * from './PublicDomainDtoSeo';
|
|
143
|
+
export * from './PublicDomainDtoSeoMoz';
|
|
142
144
|
export * from './PublicLeadBuyerDto';
|
|
143
145
|
export * from './PublicLeadDto';
|
|
144
146
|
export * from './PutBuyerLeadOfferInput';
|