@randock/nameshift-api-client 0.0.23 → 0.0.25
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/DomainsPublicApi.d.ts +18 -4
- package/dist/apis/DomainsPublicApi.js +55 -4
- package/dist/models/AccountSettingsInput.d.ts +6 -0
- package/dist/models/AccountSettingsInput.js +2 -0
- package/dist/models/BuyDomainInput.d.ts +85 -0
- package/dist/models/BuyDomainInput.js +83 -0
- package/dist/models/CreateLeadInput.d.ts +23 -1
- package/dist/models/CreateLeadInput.js +21 -4
- package/dist/models/DomainDto.d.ts +7 -0
- package/dist/models/DomainDto.js +4 -0
- package/dist/models/GetDomainSalesInformation404Response.d.ts +43 -0
- package/dist/models/GetDomainSalesInformation404Response.js +53 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/WithSettingsInner.d.ts +6 -0
- package/dist/models/WithSettingsInner.js +4 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +67 -8
- package/src/models/AccountSettingsInput.ts +8 -0
- package/src/models/BuyDomainInput.ts +142 -0
- package/src/models/CreateLeadInput.ts +41 -4
- package/src/models/DomainDto.ts +10 -0
- package/src/models/GetDomainSalesInformation404Response.ts +78 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +10 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +10 -0
- package/src/models/WithSettingsInner.ts +9 -0
- package/src/models/index.ts +2 -1
- package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.d.ts +0 -43
- package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.js +0 -53
- package/src/models/PublicDomainControllerGetDomainSalesInformation404Response.ts +0 -78
package/.openapi-generator/FILES
CHANGED
|
@@ -20,6 +20,7 @@ src/models/AccountFinancialInput.ts
|
|
|
20
20
|
src/models/AccountSettingsInput.ts
|
|
21
21
|
src/models/BatchUpdate404Response.ts
|
|
22
22
|
src/models/BatchUpdateDomainsInput.ts
|
|
23
|
+
src/models/BuyDomainInput.ts
|
|
23
24
|
src/models/CreateLeadInput.ts
|
|
24
25
|
src/models/CreateLeadMessageInput.ts
|
|
25
26
|
src/models/DashboardStatsDto.ts
|
|
@@ -27,6 +28,7 @@ src/models/DeleteDomainsInput.ts
|
|
|
27
28
|
src/models/DomainDto.ts
|
|
28
29
|
src/models/DomainSalesInformationDto.ts
|
|
29
30
|
src/models/DomainSellerDto.ts
|
|
31
|
+
src/models/GetDomainSalesInformation404Response.ts
|
|
30
32
|
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
31
33
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
32
34
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
@@ -56,7 +58,6 @@ src/models/ObjectId.ts
|
|
|
56
58
|
src/models/PaginateResponse.ts
|
|
57
59
|
src/models/PaginateResponseLinks.ts
|
|
58
60
|
src/models/PaginateResponseMeta.ts
|
|
59
|
-
src/models/PublicDomainControllerGetDomainSalesInformation404Response.ts
|
|
60
61
|
src/models/PutLeadInput.ts
|
|
61
62
|
src/models/SecurityUserDto.ts
|
|
62
63
|
src/models/TokenDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.25
|
|
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.25 --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
|
+
d2346b9ab1014e67b9c44e4dd30b42fd0fd19073d4a1551b7da861a03a9904daafab7f89860be4e582897136af1948d5
|
|
@@ -10,18 +10,32 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DomainSalesInformationDto } from '../models/index';
|
|
14
|
-
export interface
|
|
13
|
+
import type { BuyDomainInput, DomainSalesInformationDto, ObjectId } from '../models/index';
|
|
14
|
+
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
}
|
|
17
|
+
export interface DomainsPublicApiPostDomainByNameBuyRequest {
|
|
18
|
+
domainName: string;
|
|
19
|
+
buyDomainInput: BuyDomainInput;
|
|
20
|
+
}
|
|
17
21
|
/**
|
|
18
22
|
*
|
|
19
23
|
*/
|
|
20
24
|
export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
21
25
|
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSalesInformationDto>>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
22
35
|
*/
|
|
23
|
-
|
|
36
|
+
postDomainByNameBuyRaw(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
|
|
24
37
|
/**
|
|
38
|
+
*
|
|
25
39
|
*/
|
|
26
|
-
|
|
40
|
+
postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
27
41
|
}
|
|
@@ -76,15 +76,16 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
+
*
|
|
79
80
|
*/
|
|
80
|
-
DomainsPublicApi.prototype.
|
|
81
|
+
DomainsPublicApi.prototype.getDomainSalesInformationRaw = function (requestParameters, initOverrides) {
|
|
81
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
83
|
var queryParameters, headerParameters, response;
|
|
83
84
|
return __generator(this, function (_a) {
|
|
84
85
|
switch (_a.label) {
|
|
85
86
|
case 0:
|
|
86
87
|
if (requestParameters['domainName'] == null) {
|
|
87
|
-
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling
|
|
88
|
+
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainSalesInformation().');
|
|
88
89
|
}
|
|
89
90
|
queryParameters = {};
|
|
90
91
|
headerParameters = {};
|
|
@@ -102,13 +103,63 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
102
103
|
});
|
|
103
104
|
};
|
|
104
105
|
/**
|
|
106
|
+
*
|
|
105
107
|
*/
|
|
106
|
-
DomainsPublicApi.prototype.
|
|
108
|
+
DomainsPublicApi.prototype.getDomainSalesInformation = function (requestParameters, initOverrides) {
|
|
107
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
108
110
|
var response;
|
|
109
111
|
return __generator(this, function (_a) {
|
|
110
112
|
switch (_a.label) {
|
|
111
|
-
case 0: return [4 /*yield*/, this.
|
|
113
|
+
case 0: return [4 /*yield*/, this.getDomainSalesInformationRaw(requestParameters, initOverrides)];
|
|
114
|
+
case 1:
|
|
115
|
+
response = _a.sent();
|
|
116
|
+
return [4 /*yield*/, response.value()];
|
|
117
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
DomainsPublicApi.prototype.postDomainByNameBuyRaw = function (requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var queryParameters, headerParameters, response;
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
switch (_a.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
if (requestParameters['domainName'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling postDomainByNameBuy().');
|
|
133
|
+
}
|
|
134
|
+
if (requestParameters['buyDomainInput'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('buyDomainInput', 'Required parameter "buyDomainInput" was null or undefined when calling postDomainByNameBuy().');
|
|
136
|
+
}
|
|
137
|
+
queryParameters = {};
|
|
138
|
+
headerParameters = {};
|
|
139
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
140
|
+
return [4 /*yield*/, this.request({
|
|
141
|
+
path: "/domains/by-name/{domainName}/buy".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
142
|
+
method: 'POST',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
body: (0, index_1.BuyDomainInputToJSON)(requestParameters['buyDomainInput']),
|
|
146
|
+
}, initOverrides)];
|
|
147
|
+
case 1:
|
|
148
|
+
response = _a.sent();
|
|
149
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
DomainsPublicApi.prototype.postDomainByNameBuy = function (requestParameters, initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
+
var response;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0: return [4 /*yield*/, this.postDomainByNameBuyRaw(requestParameters, initOverrides)];
|
|
112
163
|
case 1:
|
|
113
164
|
response = _a.sent();
|
|
114
165
|
return [4 /*yield*/, response.value()];
|
|
@@ -22,6 +22,12 @@ export interface AccountSettingsInput {
|
|
|
22
22
|
* @memberof AccountSettingsInput
|
|
23
23
|
*/
|
|
24
24
|
defaultStartingOffer?: MoneyInput;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AccountSettingsInput
|
|
29
|
+
*/
|
|
30
|
+
defaultCurrencyCode?: string;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
@@ -32,6 +32,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['defaultStartingOffer']),
|
|
35
|
+
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
|
|
@@ -41,6 +42,7 @@ function AccountSettingsInputToJSON(value) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'defaultStartingOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['defaultStartingOffer']),
|
|
45
|
+
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
|
|
@@ -0,0 +1,85 @@
|
|
|
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 BuyDomainInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyDomainInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyDomainInput
|
|
22
|
+
*/
|
|
23
|
+
firstname: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyDomainInput
|
|
28
|
+
*/
|
|
29
|
+
lastname: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BuyDomainInput
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyDomainInput
|
|
40
|
+
*/
|
|
41
|
+
phone: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BuyDomainInput
|
|
46
|
+
*/
|
|
47
|
+
country: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BuyDomainInput
|
|
52
|
+
*/
|
|
53
|
+
city: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BuyDomainInput
|
|
58
|
+
*/
|
|
59
|
+
postalCode: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BuyDomainInput
|
|
64
|
+
*/
|
|
65
|
+
address: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BuyDomainInput
|
|
70
|
+
*/
|
|
71
|
+
companyName: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof BuyDomainInput
|
|
76
|
+
*/
|
|
77
|
+
companyVatNumber: string | null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the BuyDomainInput interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfBuyDomainInput(value: object): boolean;
|
|
83
|
+
export declare function BuyDomainInputFromJSON(json: any): BuyDomainInput;
|
|
84
|
+
export declare function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyDomainInput;
|
|
85
|
+
export declare function BuyDomainInputToJSON(value?: BuyDomainInput | null): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BuyDomainInputToJSON = exports.BuyDomainInputFromJSONTyped = exports.BuyDomainInputFromJSON = exports.instanceOfBuyDomainInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BuyDomainInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBuyDomainInput(value) {
|
|
21
|
+
if (!('firstname' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('lastname' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('email' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('phone' in value))
|
|
28
|
+
return false;
|
|
29
|
+
if (!('country' in value))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('city' in value))
|
|
32
|
+
return false;
|
|
33
|
+
if (!('postalCode' in value))
|
|
34
|
+
return false;
|
|
35
|
+
if (!('address' in value))
|
|
36
|
+
return false;
|
|
37
|
+
if (!('companyName' in value))
|
|
38
|
+
return false;
|
|
39
|
+
if (!('companyVatNumber' in value))
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
exports.instanceOfBuyDomainInput = instanceOfBuyDomainInput;
|
|
44
|
+
function BuyDomainInputFromJSON(json) {
|
|
45
|
+
return BuyDomainInputFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
exports.BuyDomainInputFromJSON = BuyDomainInputFromJSON;
|
|
48
|
+
function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'firstname': json['firstname'],
|
|
54
|
+
'lastname': json['lastname'],
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'phone': json['phone'],
|
|
57
|
+
'country': json['country'],
|
|
58
|
+
'city': json['city'],
|
|
59
|
+
'postalCode': json['postalCode'],
|
|
60
|
+
'address': json['address'],
|
|
61
|
+
'companyName': json['companyName'],
|
|
62
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.BuyDomainInputFromJSONTyped = BuyDomainInputFromJSONTyped;
|
|
66
|
+
function BuyDomainInputToJSON(value) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'firstname': value['firstname'],
|
|
72
|
+
'lastname': value['lastname'],
|
|
73
|
+
'email': value['email'],
|
|
74
|
+
'phone': value['phone'],
|
|
75
|
+
'country': value['country'],
|
|
76
|
+
'city': value['city'],
|
|
77
|
+
'postalCode': value['postalCode'],
|
|
78
|
+
'address': value['address'],
|
|
79
|
+
'companyName': value['companyName'],
|
|
80
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.BuyDomainInputToJSON = BuyDomainInputToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,7 +21,7 @@ export interface CreateLeadInput {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof CreateLeadInput
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
domainName: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {string}
|
|
@@ -51,7 +52,28 @@ export interface CreateLeadInput {
|
|
|
51
52
|
* @memberof CreateLeadInput
|
|
52
53
|
*/
|
|
53
54
|
companyName: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {MoneyDto}
|
|
58
|
+
* @memberof CreateLeadInput
|
|
59
|
+
*/
|
|
60
|
+
offer: MoneyDto;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreateLeadInput
|
|
65
|
+
*/
|
|
66
|
+
offeredBy: CreateLeadInputOfferedByEnum;
|
|
54
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const CreateLeadInputOfferedByEnum: {
|
|
72
|
+
readonly BUYER: "buyer";
|
|
73
|
+
readonly SELLER: "seller";
|
|
74
|
+
readonly ADMIN: "admin";
|
|
75
|
+
};
|
|
76
|
+
export type CreateLeadInputOfferedByEnum = typeof CreateLeadInputOfferedByEnum[keyof typeof CreateLeadInputOfferedByEnum];
|
|
55
77
|
/**
|
|
56
78
|
* Check if a given object implements the CreateLeadInput interface.
|
|
57
79
|
*/
|
|
@@ -13,12 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateLeadInputToJSON = exports.CreateLeadInputFromJSONTyped = exports.CreateLeadInputFromJSON = exports.instanceOfCreateLeadInput = void 0;
|
|
16
|
+
exports.CreateLeadInputToJSON = exports.CreateLeadInputFromJSONTyped = exports.CreateLeadInputFromJSON = exports.instanceOfCreateLeadInput = exports.CreateLeadInputOfferedByEnum = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CreateLeadInputOfferedByEnum = {
|
|
22
|
+
BUYER: 'buyer',
|
|
23
|
+
SELLER: 'seller',
|
|
24
|
+
ADMIN: 'admin'
|
|
25
|
+
};
|
|
17
26
|
/**
|
|
18
27
|
* Check if a given object implements the CreateLeadInput interface.
|
|
19
28
|
*/
|
|
20
29
|
function instanceOfCreateLeadInput(value) {
|
|
21
|
-
if (!('
|
|
30
|
+
if (!('domainName' in value))
|
|
22
31
|
return false;
|
|
23
32
|
if (!('firstname' in value))
|
|
24
33
|
return false;
|
|
@@ -30,6 +39,10 @@ function instanceOfCreateLeadInput(value) {
|
|
|
30
39
|
return false;
|
|
31
40
|
if (!('companyName' in value))
|
|
32
41
|
return false;
|
|
42
|
+
if (!('offer' in value))
|
|
43
|
+
return false;
|
|
44
|
+
if (!('offeredBy' in value))
|
|
45
|
+
return false;
|
|
33
46
|
return true;
|
|
34
47
|
}
|
|
35
48
|
exports.instanceOfCreateLeadInput = instanceOfCreateLeadInput;
|
|
@@ -42,12 +55,14 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
55
|
return json;
|
|
43
56
|
}
|
|
44
57
|
return {
|
|
45
|
-
'
|
|
58
|
+
'domainName': json['domainName'],
|
|
46
59
|
'firstname': json['firstname'],
|
|
47
60
|
'lastname': json['lastname'],
|
|
48
61
|
'email': json['email'],
|
|
49
62
|
'phone': json['phone'],
|
|
50
63
|
'companyName': json['companyName'],
|
|
64
|
+
'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
|
|
65
|
+
'offeredBy': json['offeredBy'],
|
|
51
66
|
};
|
|
52
67
|
}
|
|
53
68
|
exports.CreateLeadInputFromJSONTyped = CreateLeadInputFromJSONTyped;
|
|
@@ -56,12 +71,14 @@ function CreateLeadInputToJSON(value) {
|
|
|
56
71
|
return value;
|
|
57
72
|
}
|
|
58
73
|
return {
|
|
59
|
-
'
|
|
74
|
+
'domainName': value['domainName'],
|
|
60
75
|
'firstname': value['firstname'],
|
|
61
76
|
'lastname': value['lastname'],
|
|
62
77
|
'email': value['email'],
|
|
63
78
|
'phone': value['phone'],
|
|
64
79
|
'companyName': value['companyName'],
|
|
80
|
+
'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
|
|
81
|
+
'offeredBy': value['offeredBy'],
|
|
65
82
|
};
|
|
66
83
|
}
|
|
67
84
|
exports.CreateLeadInputToJSON = CreateLeadInputToJSON;
|
package/dist/models/DomainDto.js
CHANGED
|
@@ -29,6 +29,8 @@ function instanceOfDomainDto(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('name' in value))
|
|
31
31
|
return false;
|
|
32
|
+
if (!('currency' in value))
|
|
33
|
+
return false;
|
|
32
34
|
if (!('buyNow' in value))
|
|
33
35
|
return false;
|
|
34
36
|
if (!('minOffer' in value))
|
|
@@ -50,6 +52,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'verified': json['verified'],
|
|
51
53
|
'nameservers': json['nameservers'],
|
|
52
54
|
'name': json['name'],
|
|
55
|
+
'currency': json['currency'],
|
|
53
56
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
54
57
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
55
58
|
};
|
|
@@ -65,6 +68,7 @@ function DomainDtoToJSON(value) {
|
|
|
65
68
|
'verified': value['verified'],
|
|
66
69
|
'nameservers': value['nameservers'],
|
|
67
70
|
'name': value['name'],
|
|
71
|
+
'currency': value['currency'],
|
|
68
72
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
69
73
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
70
74
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Thrown if domain is not found.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetDomainSalesInformation404Response
|
|
16
|
+
*/
|
|
17
|
+
export interface GetDomainSalesInformation404Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetDomainSalesInformation404Response
|
|
22
|
+
*/
|
|
23
|
+
statusCode: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetDomainSalesInformation404Response
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetDomainSalesInformation404Response
|
|
34
|
+
*/
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetDomainSalesInformation404Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetDomainSalesInformation404Response(value: object): boolean;
|
|
41
|
+
export declare function GetDomainSalesInformation404ResponseFromJSON(json: any): GetDomainSalesInformation404Response;
|
|
42
|
+
export declare function GetDomainSalesInformation404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDomainSalesInformation404Response;
|
|
43
|
+
export declare function GetDomainSalesInformation404ResponseToJSON(value?: GetDomainSalesInformation404Response | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.GetDomainSalesInformation404ResponseToJSON = exports.GetDomainSalesInformation404ResponseFromJSONTyped = exports.GetDomainSalesInformation404ResponseFromJSON = exports.instanceOfGetDomainSalesInformation404Response = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the GetDomainSalesInformation404Response interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfGetDomainSalesInformation404Response(value) {
|
|
21
|
+
if (!('statusCode' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('message' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfGetDomainSalesInformation404Response = instanceOfGetDomainSalesInformation404Response;
|
|
28
|
+
function GetDomainSalesInformation404ResponseFromJSON(json) {
|
|
29
|
+
return GetDomainSalesInformation404ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.GetDomainSalesInformation404ResponseFromJSON = GetDomainSalesInformation404ResponseFromJSON;
|
|
32
|
+
function GetDomainSalesInformation404ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'statusCode': json['statusCode'],
|
|
38
|
+
'message': json['message'],
|
|
39
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.GetDomainSalesInformation404ResponseFromJSONTyped = GetDomainSalesInformation404ResponseFromJSONTyped;
|
|
43
|
+
function GetDomainSalesInformation404ResponseToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'statusCode': value['statusCode'],
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
'error': value['error'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.GetDomainSalesInformation404ResponseToJSON = GetDomainSalesInformation404ResponseToJSON;
|
|
@@ -47,6 +47,13 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
47
47
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
48
48
|
*/
|
|
49
49
|
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* /**
|
|
52
|
+
* The domain's currency
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
55
|
+
*/
|
|
56
|
+
currency: string;
|
|
50
57
|
/**
|
|
51
58
|
* The BIN
|
|
52
59
|
* @type {MoneyDto}
|
|
@@ -30,6 +30,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('name' in value))
|
|
32
32
|
return false;
|
|
33
|
+
if (!('currency' in value))
|
|
34
|
+
return false;
|
|
33
35
|
if (!('buyNow' in value))
|
|
34
36
|
return false;
|
|
35
37
|
if (!('minOffer' in value))
|
|
@@ -53,6 +55,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
53
55
|
'verified': json['verified'],
|
|
54
56
|
'nameservers': json['nameservers'],
|
|
55
57
|
'name': json['name'],
|
|
58
|
+
'currency': json['currency'],
|
|
56
59
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
57
60
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
58
61
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
@@ -69,6 +72,7 @@ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
|
|
|
69
72
|
'verified': value['verified'],
|
|
70
73
|
'nameservers': value['nameservers'],
|
|
71
74
|
'name': value['name'],
|
|
75
|
+
'currency': value['currency'],
|
|
72
76
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
73
77
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
74
78
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
@@ -47,6 +47,13 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
47
47
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
48
48
|
*/
|
|
49
49
|
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* /**
|
|
52
|
+
* The domain's currency
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
55
|
+
*/
|
|
56
|
+
currency: string;
|
|
50
57
|
/**
|
|
51
58
|
* The BIN
|
|
52
59
|
* @type {MoneyDto}
|