@randock/nameshift-api-client 0.0.159 → 0.0.161
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 -1
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +13 -13
- package/dist/apis/AdminApi.js +57 -57
- package/dist/apis/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/models/ConcreteDomainTransferTaskData.d.ts +1 -0
- package/dist/models/ConcreteDomainTransferTaskData.js +2 -1
- package/dist/models/DomainUrlDto.d.ts +38 -0
- package/dist/models/DomainUrlDto.js +55 -0
- package/dist/models/{IntersectionDomainDtoWithDomainUrlDto.d.ts → IntersectionDomainDtoDomainUrlDto.d.ts} +29 -23
- package/dist/models/{IntersectionDomainDtoWithDomainUrlDto.js → IntersectionDomainDtoDomainUrlDto.js} +17 -13
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -60
- package/src/apis/DomainsApi.ts +48 -0
- package/src/models/ConcreteDomainTransferTaskData.ts +2 -1
- package/src/models/DomainUrlDto.ts +75 -0
- package/src/models/{IntersectionDomainDtoWithDomainUrlDto.ts → IntersectionDomainDtoDomainUrlDto.ts} +34 -25
- package/src/models/List200Response1.ts +10 -10
- package/src/models/index.ts +2 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -75,6 +75,7 @@ src/models/DomainTransferDetailsValidationDto.ts
|
|
|
75
75
|
src/models/DomainTransferDomainDto.ts
|
|
76
76
|
src/models/DomainTransferDto.ts
|
|
77
77
|
src/models/DomainTransferOrderDto.ts
|
|
78
|
+
src/models/DomainUrlDto.ts
|
|
78
79
|
src/models/ForgotPasswordRequestInput.ts
|
|
79
80
|
src/models/GetAllDomainTransfers200Response.ts
|
|
80
81
|
src/models/GetAllInvoices200Response.ts
|
|
@@ -84,8 +85,8 @@ src/models/GetBuyerLeads200Response.ts
|
|
|
84
85
|
src/models/GetBuyerTransfers200Response.ts
|
|
85
86
|
src/models/HttpException.ts
|
|
86
87
|
src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.ts
|
|
88
|
+
src/models/IntersectionDomainDtoDomainUrlDto.ts
|
|
87
89
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
88
|
-
src/models/IntersectionDomainDtoWithDomainUrlDto.ts
|
|
89
90
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
90
91
|
src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
|
|
91
92
|
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.161
|
|
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.161 --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
|
+
4646247f09dc2ea5352236890c37d01c21eed95a92482c9dccbc5491f5a7a6c7a56acc6987c2ae267e6eb53027f101f5
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -30,11 +30,6 @@ export interface AdminApiGetAccountSettingsRequest {
|
|
|
30
30
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
31
31
|
domainTransferId: string;
|
|
32
32
|
}
|
|
33
|
-
export interface AdminApiGetAdminExecuteDomainTransferStepActionRequest {
|
|
34
|
-
transferId: string;
|
|
35
|
-
stepName: string;
|
|
36
|
-
actionName: string;
|
|
37
|
-
}
|
|
38
33
|
export interface AdminApiGetAllInvoicesRequest {
|
|
39
34
|
filter?: object;
|
|
40
35
|
page?: number;
|
|
@@ -66,6 +61,11 @@ export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
|
66
61
|
export interface AdminApiPaySellerInvoiceRequest {
|
|
67
62
|
invoiceId: string;
|
|
68
63
|
}
|
|
64
|
+
export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
65
|
+
transferId: string;
|
|
66
|
+
stepName: string;
|
|
67
|
+
actionName: string;
|
|
68
|
+
}
|
|
69
69
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
70
70
|
accountId: string;
|
|
71
71
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -114,14 +114,6 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
114
114
|
*
|
|
115
115
|
*/
|
|
116
116
|
getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto>;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
*/
|
|
120
|
-
getAdminExecuteDomainTransferStepActionRaw(requestParameters: AdminApiGetAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
*/
|
|
124
|
-
getAdminExecuteDomainTransferStepAction(requestParameters: AdminApiGetAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
125
117
|
/**
|
|
126
118
|
*
|
|
127
119
|
*/
|
|
@@ -170,6 +162,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
170
162
|
*
|
|
171
163
|
*/
|
|
172
164
|
paySellerInvoice(requestParameters: AdminApiPaySellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
postAdminExecuteDomainTransferStepActionRaw(requestParameters: AdminApiPostAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
postAdminExecuteDomainTransferStepAction(requestParameters: AdminApiPostAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
175
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -353,63 +353,6 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
353
353
|
});
|
|
354
354
|
});
|
|
355
355
|
};
|
|
356
|
-
/**
|
|
357
|
-
*
|
|
358
|
-
*/
|
|
359
|
-
AdminApi.prototype.getAdminExecuteDomainTransferStepActionRaw = function (requestParameters, initOverrides) {
|
|
360
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
361
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
362
|
-
return __generator(this, function (_a) {
|
|
363
|
-
switch (_a.label) {
|
|
364
|
-
case 0:
|
|
365
|
-
if (requestParameters['transferId'] == null) {
|
|
366
|
-
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getAdminExecuteDomainTransferStepAction().');
|
|
367
|
-
}
|
|
368
|
-
if (requestParameters['stepName'] == null) {
|
|
369
|
-
throw new runtime.RequiredError('stepName', 'Required parameter "stepName" was null or undefined when calling getAdminExecuteDomainTransferStepAction().');
|
|
370
|
-
}
|
|
371
|
-
if (requestParameters['actionName'] == null) {
|
|
372
|
-
throw new runtime.RequiredError('actionName', 'Required parameter "actionName" was null or undefined when calling getAdminExecuteDomainTransferStepAction().');
|
|
373
|
-
}
|
|
374
|
-
queryParameters = {};
|
|
375
|
-
headerParameters = {};
|
|
376
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
377
|
-
token = this.configuration.accessToken;
|
|
378
|
-
return [4 /*yield*/, token("bearer", [])];
|
|
379
|
-
case 1:
|
|
380
|
-
tokenString = _a.sent();
|
|
381
|
-
if (tokenString) {
|
|
382
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
383
|
-
}
|
|
384
|
-
_a.label = 2;
|
|
385
|
-
case 2: return [4 /*yield*/, this.request({
|
|
386
|
-
path: "/admin/domain-transfers/{transferId}/step/{stepName}/action/{actionName}/execute".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))).replace("{".concat("stepName", "}"), encodeURIComponent(String(requestParameters['stepName']))).replace("{".concat("actionName", "}"), encodeURIComponent(String(requestParameters['actionName']))),
|
|
387
|
-
method: 'POST',
|
|
388
|
-
headers: headerParameters,
|
|
389
|
-
query: queryParameters,
|
|
390
|
-
}, initOverrides)];
|
|
391
|
-
case 3:
|
|
392
|
-
response = _a.sent();
|
|
393
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
});
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
*
|
|
400
|
-
*/
|
|
401
|
-
AdminApi.prototype.getAdminExecuteDomainTransferStepAction = function (requestParameters, initOverrides) {
|
|
402
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
403
|
-
return __generator(this, function (_a) {
|
|
404
|
-
switch (_a.label) {
|
|
405
|
-
case 0: return [4 /*yield*/, this.getAdminExecuteDomainTransferStepActionRaw(requestParameters, initOverrides)];
|
|
406
|
-
case 1:
|
|
407
|
-
_a.sent();
|
|
408
|
-
return [2 /*return*/];
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
356
|
/**
|
|
414
357
|
*
|
|
415
358
|
*/
|
|
@@ -767,6 +710,63 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
767
710
|
});
|
|
768
711
|
});
|
|
769
712
|
};
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
*/
|
|
716
|
+
AdminApi.prototype.postAdminExecuteDomainTransferStepActionRaw = function (requestParameters, initOverrides) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
718
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
719
|
+
return __generator(this, function (_a) {
|
|
720
|
+
switch (_a.label) {
|
|
721
|
+
case 0:
|
|
722
|
+
if (requestParameters['transferId'] == null) {
|
|
723
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling postAdminExecuteDomainTransferStepAction().');
|
|
724
|
+
}
|
|
725
|
+
if (requestParameters['stepName'] == null) {
|
|
726
|
+
throw new runtime.RequiredError('stepName', 'Required parameter "stepName" was null or undefined when calling postAdminExecuteDomainTransferStepAction().');
|
|
727
|
+
}
|
|
728
|
+
if (requestParameters['actionName'] == null) {
|
|
729
|
+
throw new runtime.RequiredError('actionName', 'Required parameter "actionName" was null or undefined when calling postAdminExecuteDomainTransferStepAction().');
|
|
730
|
+
}
|
|
731
|
+
queryParameters = {};
|
|
732
|
+
headerParameters = {};
|
|
733
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
734
|
+
token = this.configuration.accessToken;
|
|
735
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
736
|
+
case 1:
|
|
737
|
+
tokenString = _a.sent();
|
|
738
|
+
if (tokenString) {
|
|
739
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
740
|
+
}
|
|
741
|
+
_a.label = 2;
|
|
742
|
+
case 2: return [4 /*yield*/, this.request({
|
|
743
|
+
path: "/admin/domain-transfers/{transferId}/steps/{stepName}/actions/{actionName}/execute".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))).replace("{".concat("stepName", "}"), encodeURIComponent(String(requestParameters['stepName']))).replace("{".concat("actionName", "}"), encodeURIComponent(String(requestParameters['actionName']))),
|
|
744
|
+
method: 'POST',
|
|
745
|
+
headers: headerParameters,
|
|
746
|
+
query: queryParameters,
|
|
747
|
+
}, initOverrides)];
|
|
748
|
+
case 3:
|
|
749
|
+
response = _a.sent();
|
|
750
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
*
|
|
757
|
+
*/
|
|
758
|
+
AdminApi.prototype.postAdminExecuteDomainTransferStepAction = function (requestParameters, initOverrides) {
|
|
759
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
760
|
+
return __generator(this, function (_a) {
|
|
761
|
+
switch (_a.label) {
|
|
762
|
+
case 0: return [4 /*yield*/, this.postAdminExecuteDomainTransferStepActionRaw(requestParameters, initOverrides)];
|
|
763
|
+
case 1:
|
|
764
|
+
_a.sent();
|
|
765
|
+
return [2 /*return*/];
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
});
|
|
769
|
+
};
|
|
770
770
|
/**
|
|
771
771
|
*
|
|
772
772
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -39,6 +39,9 @@ export interface DomainsApiGetDomainRequest {
|
|
|
39
39
|
export interface DomainsApiGetDomainTransferRequest {
|
|
40
40
|
transferId: string;
|
|
41
41
|
}
|
|
42
|
+
export interface DomainsApiGetDomainUrlRequest {
|
|
43
|
+
domainId: string;
|
|
44
|
+
}
|
|
42
45
|
export interface DomainsApiList0Request {
|
|
43
46
|
filter?: object;
|
|
44
47
|
page?: number;
|
|
@@ -121,6 +124,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
121
124
|
*
|
|
122
125
|
*/
|
|
123
126
|
getDomainTransfer(requestParameters: DomainsApiGetDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainTransferDto>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
getDomainUrlRaw(requestParameters: DomainsApiGetDomainUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainUrlDto>>;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
getDomainUrl(requestParameters: DomainsApiGetDomainUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainUrlDto>;
|
|
124
135
|
/**
|
|
125
136
|
*
|
|
126
137
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -540,6 +540,59 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
540
540
|
});
|
|
541
541
|
});
|
|
542
542
|
};
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
DomainsApi.prototype.getDomainUrlRaw = function (requestParameters, initOverrides) {
|
|
547
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
548
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
549
|
+
return __generator(this, function (_a) {
|
|
550
|
+
switch (_a.label) {
|
|
551
|
+
case 0:
|
|
552
|
+
if (requestParameters['domainId'] == null) {
|
|
553
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomainUrl().');
|
|
554
|
+
}
|
|
555
|
+
queryParameters = {};
|
|
556
|
+
headerParameters = {};
|
|
557
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
558
|
+
token = this.configuration.accessToken;
|
|
559
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
560
|
+
case 1:
|
|
561
|
+
tokenString = _a.sent();
|
|
562
|
+
if (tokenString) {
|
|
563
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
564
|
+
}
|
|
565
|
+
_a.label = 2;
|
|
566
|
+
case 2: return [4 /*yield*/, this.request({
|
|
567
|
+
path: "/private/domains/{domainId}/url".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
568
|
+
method: 'GET',
|
|
569
|
+
headers: headerParameters,
|
|
570
|
+
query: queryParameters,
|
|
571
|
+
}, initOverrides)];
|
|
572
|
+
case 3:
|
|
573
|
+
response = _a.sent();
|
|
574
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainUrlDtoFromJSON)(jsonValue); })];
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
*/
|
|
582
|
+
DomainsApi.prototype.getDomainUrl = function (requestParameters, initOverrides) {
|
|
583
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
584
|
+
var response;
|
|
585
|
+
return __generator(this, function (_a) {
|
|
586
|
+
switch (_a.label) {
|
|
587
|
+
case 0: return [4 /*yield*/, this.getDomainUrlRaw(requestParameters, initOverrides)];
|
|
588
|
+
case 1:
|
|
589
|
+
response = _a.sent();
|
|
590
|
+
return [4 /*yield*/, response.value()];
|
|
591
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
};
|
|
543
596
|
/**
|
|
544
597
|
*
|
|
545
598
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const ConcreteDomainTransferTaskDataRequirementsEnum: {
|
|
|
29
29
|
readonly AUTH_CODE: "auth_code";
|
|
30
30
|
readonly BUYER_CONFIRMATION: "buyer_confirmation";
|
|
31
31
|
readonly OWNED_DOMAIN: "owned_domain";
|
|
32
|
+
readonly OWNED_DOMAIN_TAKEN_BY_BUYER: "owned_domain_taken_by_buyer";
|
|
32
33
|
};
|
|
33
34
|
export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
|
|
34
35
|
/**
|
|
@@ -25,7 +25,8 @@ exports.ConcreteDomainTransferTaskDataToJSONTyped = ConcreteDomainTransferTaskDa
|
|
|
25
25
|
exports.ConcreteDomainTransferTaskDataRequirementsEnum = {
|
|
26
26
|
AUTH_CODE: 'auth_code',
|
|
27
27
|
BUYER_CONFIRMATION: 'buyer_confirmation',
|
|
28
|
-
OWNED_DOMAIN: 'owned_domain'
|
|
28
|
+
OWNED_DOMAIN: 'owned_domain',
|
|
29
|
+
OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the ConcreteDomainTransferTaskData interface.
|
|
@@ -0,0 +1,38 @@
|
|
|
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 DomainUrlDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainUrlDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainUrlDto
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof DomainUrlDto
|
|
28
|
+
*/
|
|
29
|
+
namservers: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DomainUrlDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDomainUrlDto(value: object): value is DomainUrlDto;
|
|
35
|
+
export declare function DomainUrlDtoFromJSON(json: any): DomainUrlDto;
|
|
36
|
+
export declare function DomainUrlDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainUrlDto;
|
|
37
|
+
export declare function DomainUrlDtoToJSON(json: any): DomainUrlDto;
|
|
38
|
+
export declare function DomainUrlDtoToJSONTyped(value?: DomainUrlDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfDomainUrlDto = instanceOfDomainUrlDto;
|
|
17
|
+
exports.DomainUrlDtoFromJSON = DomainUrlDtoFromJSON;
|
|
18
|
+
exports.DomainUrlDtoFromJSONTyped = DomainUrlDtoFromJSONTyped;
|
|
19
|
+
exports.DomainUrlDtoToJSON = DomainUrlDtoToJSON;
|
|
20
|
+
exports.DomainUrlDtoToJSONTyped = DomainUrlDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainUrlDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainUrlDto(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('namservers' in value) || value['namservers'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function DomainUrlDtoFromJSON(json) {
|
|
32
|
+
return DomainUrlDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function DomainUrlDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'url': json['url'],
|
|
40
|
+
'namservers': json['namservers'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function DomainUrlDtoToJSON(json) {
|
|
44
|
+
return DomainUrlDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DomainUrlDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'url': value['url'],
|
|
53
|
+
'namservers': value['namservers'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -13,106 +13,112 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface IntersectionDomainDtoDomainUrlDto
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface IntersectionDomainDtoDomainUrlDto {
|
|
19
19
|
/**
|
|
20
20
|
* The uuid for this domain.
|
|
21
21
|
* @type {string}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
25
|
/**
|
|
26
26
|
* The current owner for the domain
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
29
29
|
*/
|
|
30
30
|
accountId: string;
|
|
31
31
|
/**
|
|
32
32
|
* The hijacker for the domain
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
35
35
|
*/
|
|
36
36
|
hijackerId: string | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
41
41
|
*/
|
|
42
42
|
url: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
47
|
+
*/
|
|
48
|
+
namservers: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* The TLD for this domain.
|
|
45
51
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
52
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
47
53
|
*/
|
|
48
54
|
tld: string;
|
|
49
55
|
/**
|
|
50
56
|
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
51
57
|
* @type {boolean}
|
|
52
|
-
* @memberof
|
|
58
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
53
59
|
*/
|
|
54
60
|
verified: boolean;
|
|
55
61
|
/**
|
|
56
62
|
* Whether the nameservers (ns1,ns2) are set or not.
|
|
57
63
|
* @type {boolean}
|
|
58
|
-
* @memberof
|
|
64
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
59
65
|
*/
|
|
60
66
|
nameservers: boolean;
|
|
61
67
|
/**
|
|
62
68
|
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
63
69
|
* @type {string}
|
|
64
|
-
* @memberof
|
|
70
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
65
71
|
*/
|
|
66
72
|
name: string;
|
|
67
73
|
/**
|
|
68
74
|
* The unicode domain name (example.com, mañana.com)
|
|
69
75
|
* @type {string}
|
|
70
|
-
* @memberof
|
|
76
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
71
77
|
*/
|
|
72
78
|
displayName: string;
|
|
73
79
|
/**
|
|
74
80
|
* /**
|
|
75
81
|
* The domain's currency code (ISO 4217)
|
|
76
82
|
* @type {string}
|
|
77
|
-
* @memberof
|
|
83
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
78
84
|
*/
|
|
79
85
|
currencyCode: string;
|
|
80
86
|
/**
|
|
81
87
|
* The BIN
|
|
82
88
|
* @type {MoneyDto}
|
|
83
|
-
* @memberof
|
|
89
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
84
90
|
*/
|
|
85
91
|
buyNow: MoneyDto;
|
|
86
92
|
/**
|
|
87
93
|
* The minimum offer
|
|
88
94
|
* @type {MoneyDto}
|
|
89
|
-
* @memberof
|
|
95
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
90
96
|
*/
|
|
91
97
|
minOffer: MoneyDto;
|
|
92
98
|
/**
|
|
93
99
|
* The creation date
|
|
94
100
|
* @type {Date}
|
|
95
|
-
* @memberof
|
|
101
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
96
102
|
*/
|
|
97
103
|
createdAt: Date;
|
|
98
104
|
/**
|
|
99
105
|
* The deletion date
|
|
100
106
|
* @type {Date}
|
|
101
|
-
* @memberof
|
|
107
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
102
108
|
*/
|
|
103
109
|
deletedAt: Date | null;
|
|
104
110
|
/**
|
|
105
111
|
* The amount of pageviews for this domain, or null if none are tracked.
|
|
106
112
|
* @type {number}
|
|
107
|
-
* @memberof
|
|
113
|
+
* @memberof IntersectionDomainDtoDomainUrlDto
|
|
108
114
|
*/
|
|
109
115
|
pageviews: number;
|
|
110
116
|
}
|
|
111
117
|
/**
|
|
112
|
-
* Check if a given object implements the
|
|
118
|
+
* Check if a given object implements the IntersectionDomainDtoDomainUrlDto interface.
|
|
113
119
|
*/
|
|
114
|
-
export declare function
|
|
115
|
-
export declare function
|
|
116
|
-
export declare function
|
|
117
|
-
export declare function
|
|
118
|
-
export declare function
|
|
120
|
+
export declare function instanceOfIntersectionDomainDtoDomainUrlDto(value: object): value is IntersectionDomainDtoDomainUrlDto;
|
|
121
|
+
export declare function IntersectionDomainDtoDomainUrlDtoFromJSON(json: any): IntersectionDomainDtoDomainUrlDto;
|
|
122
|
+
export declare function IntersectionDomainDtoDomainUrlDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoDomainUrlDto;
|
|
123
|
+
export declare function IntersectionDomainDtoDomainUrlDtoToJSON(json: any): IntersectionDomainDtoDomainUrlDto;
|
|
124
|
+
export declare function IntersectionDomainDtoDomainUrlDtoToJSONTyped(value?: IntersectionDomainDtoDomainUrlDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfIntersectionDomainDtoDomainUrlDto = instanceOfIntersectionDomainDtoDomainUrlDto;
|
|
17
|
+
exports.IntersectionDomainDtoDomainUrlDtoFromJSON = IntersectionDomainDtoDomainUrlDtoFromJSON;
|
|
18
|
+
exports.IntersectionDomainDtoDomainUrlDtoFromJSONTyped = IntersectionDomainDtoDomainUrlDtoFromJSONTyped;
|
|
19
|
+
exports.IntersectionDomainDtoDomainUrlDtoToJSON = IntersectionDomainDtoDomainUrlDtoToJSON;
|
|
20
|
+
exports.IntersectionDomainDtoDomainUrlDtoToJSONTyped = IntersectionDomainDtoDomainUrlDtoToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the IntersectionDomainDtoDomainUrlDto interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function instanceOfIntersectionDomainDtoDomainUrlDto(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
@@ -31,6 +31,8 @@ function instanceOfIntersectionDomainDtoWithDomainUrlDto(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('url' in value) || value['url'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('namservers' in value) || value['namservers'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -55,10 +57,10 @@ function instanceOfIntersectionDomainDtoWithDomainUrlDto(value) {
|
|
|
55
57
|
return false;
|
|
56
58
|
return true;
|
|
57
59
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
60
|
+
function IntersectionDomainDtoDomainUrlDtoFromJSON(json) {
|
|
61
|
+
return IntersectionDomainDtoDomainUrlDtoFromJSONTyped(json, false);
|
|
60
62
|
}
|
|
61
|
-
function
|
|
63
|
+
function IntersectionDomainDtoDomainUrlDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
64
|
if (json == null) {
|
|
63
65
|
return json;
|
|
64
66
|
}
|
|
@@ -67,6 +69,7 @@ function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
67
69
|
'accountId': json['accountId'],
|
|
68
70
|
'hijackerId': json['hijackerId'],
|
|
69
71
|
'url': json['url'],
|
|
72
|
+
'namservers': json['namservers'],
|
|
70
73
|
'tld': json['tld'],
|
|
71
74
|
'verified': json['verified'],
|
|
72
75
|
'nameservers': json['nameservers'],
|
|
@@ -80,10 +83,10 @@ function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
80
83
|
'pageviews': json['pageviews'],
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
86
|
+
function IntersectionDomainDtoDomainUrlDtoToJSON(json) {
|
|
87
|
+
return IntersectionDomainDtoDomainUrlDtoToJSONTyped(json, false);
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function IntersectionDomainDtoDomainUrlDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
87
90
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
88
91
|
if (value == null) {
|
|
89
92
|
return value;
|
|
@@ -93,6 +96,7 @@ function IntersectionDomainDtoWithDomainUrlDtoToJSONTyped(value, ignoreDiscrimin
|
|
|
93
96
|
'accountId': value['accountId'],
|
|
94
97
|
'hijackerId': value['hijackerId'],
|
|
95
98
|
'url': value['url'],
|
|
99
|
+
'namservers': value['namservers'],
|
|
96
100
|
'tld': value['tld'],
|
|
97
101
|
'verified': value['verified'],
|
|
98
102
|
'nameservers': value['nameservers'],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
-
import type {
|
|
13
|
+
import type { IntersectionDomainDtoDomainUrlDto } from './IntersectionDomainDtoDomainUrlDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
|
20
20
|
export interface List200Response1 {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {Array<
|
|
23
|
+
* @type {Array<IntersectionDomainDtoDomainUrlDto>}
|
|
24
24
|
* @memberof List200Response1
|
|
25
25
|
*/
|
|
26
|
-
data: Array<
|
|
26
|
+
data: Array<IntersectionDomainDtoDomainUrlDto>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PaginateResponseMeta}
|