@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
|
@@ -30,6 +30,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(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))
|
|
@@ -55,6 +57,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
55
57
|
'verified': json['verified'],
|
|
56
58
|
'nameservers': json['nameservers'],
|
|
57
59
|
'name': json['name'],
|
|
60
|
+
'currency': json['currency'],
|
|
58
61
|
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
59
62
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
60
63
|
'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
|
|
@@ -72,6 +75,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
|
|
|
72
75
|
'verified': value['verified'],
|
|
73
76
|
'nameservers': value['nameservers'],
|
|
74
77
|
'name': value['name'],
|
|
78
|
+
'currency': value['currency'],
|
|
75
79
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
76
80
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
77
81
|
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
|
|
@@ -16,6 +16,12 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
16
16
|
* @interface WithSettingsInner
|
|
17
17
|
*/
|
|
18
18
|
export interface WithSettingsInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WithSettingsInner
|
|
23
|
+
*/
|
|
24
|
+
defaultCurrencyCode: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {MoneyDto}
|
|
@@ -19,6 +19,8 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
19
19
|
* Check if a given object implements the WithSettingsInner interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfWithSettingsInner(value) {
|
|
22
|
+
if (!('defaultCurrencyCode' in value))
|
|
23
|
+
return false;
|
|
22
24
|
if (!('defaultStartingOffer' in value))
|
|
23
25
|
return false;
|
|
24
26
|
return true;
|
|
@@ -33,6 +35,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
38
|
+
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
36
39
|
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
|
|
37
40
|
};
|
|
38
41
|
}
|
|
@@ -42,6 +45,7 @@ function WithSettingsInnerToJSON(value) {
|
|
|
42
45
|
return value;
|
|
43
46
|
}
|
|
44
47
|
return {
|
|
48
|
+
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
45
49
|
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
|
|
46
50
|
};
|
|
47
51
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AccountFinancialInput';
|
|
|
5
5
|
export * from './AccountSettingsInput';
|
|
6
6
|
export * from './BatchUpdate404Response';
|
|
7
7
|
export * from './BatchUpdateDomainsInput';
|
|
8
|
+
export * from './BuyDomainInput';
|
|
8
9
|
export * from './CreateLeadInput';
|
|
9
10
|
export * from './CreateLeadMessageInput';
|
|
10
11
|
export * from './DashboardStatsDto';
|
|
@@ -12,6 +13,7 @@ export * from './DeleteDomainsInput';
|
|
|
12
13
|
export * from './DomainDto';
|
|
13
14
|
export * from './DomainSalesInformationDto';
|
|
14
15
|
export * from './DomainSellerDto';
|
|
16
|
+
export * from './GetDomainSalesInformation404Response';
|
|
15
17
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
16
18
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
17
19
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
@@ -41,7 +43,6 @@ export * from './ObjectId';
|
|
|
41
43
|
export * from './PaginateResponse';
|
|
42
44
|
export * from './PaginateResponseLinks';
|
|
43
45
|
export * from './PaginateResponseMeta';
|
|
44
|
-
export * from './PublicDomainControllerGetDomainSalesInformation404Response';
|
|
45
46
|
export * from './PutLeadInput';
|
|
46
47
|
export * from './SecurityUserDto';
|
|
47
48
|
export * from './TokenDto';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./AccountFinancialInput"), exports);
|
|
|
23
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
24
24
|
__exportStar(require("./BatchUpdate404Response"), exports);
|
|
25
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
26
|
+
__exportStar(require("./BuyDomainInput"), exports);
|
|
26
27
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
27
28
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
28
29
|
__exportStar(require("./DashboardStatsDto"), exports);
|
|
@@ -30,6 +31,7 @@ __exportStar(require("./DeleteDomainsInput"), exports);
|
|
|
30
31
|
__exportStar(require("./DomainDto"), exports);
|
|
31
32
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
32
33
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
34
|
+
__exportStar(require("./GetDomainSalesInformation404Response"), exports);
|
|
33
35
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
34
36
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
35
37
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
@@ -59,7 +61,6 @@ __exportStar(require("./ObjectId"), exports);
|
|
|
59
61
|
__exportStar(require("./PaginateResponse"), exports);
|
|
60
62
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
61
63
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
62
|
-
__exportStar(require("./PublicDomainControllerGetDomainSalesInformation404Response"), exports);
|
|
63
64
|
__exportStar(require("./PutLeadInput"), exports);
|
|
64
65
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
65
66
|
__exportStar(require("./TokenDto"), exports);
|
package/package.json
CHANGED
|
@@ -15,32 +15,47 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BuyDomainInput,
|
|
18
19
|
DomainSalesInformationDto,
|
|
19
|
-
|
|
20
|
+
GetDomainSalesInformation404Response,
|
|
21
|
+
List400Response,
|
|
22
|
+
ObjectId,
|
|
20
23
|
} from '../models/index';
|
|
21
24
|
import {
|
|
25
|
+
BuyDomainInputFromJSON,
|
|
26
|
+
BuyDomainInputToJSON,
|
|
22
27
|
DomainSalesInformationDtoFromJSON,
|
|
23
28
|
DomainSalesInformationDtoToJSON,
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
GetDomainSalesInformation404ResponseFromJSON,
|
|
30
|
+
GetDomainSalesInformation404ResponseToJSON,
|
|
31
|
+
List400ResponseFromJSON,
|
|
32
|
+
List400ResponseToJSON,
|
|
33
|
+
ObjectIdFromJSON,
|
|
34
|
+
ObjectIdToJSON,
|
|
26
35
|
} from '../models/index';
|
|
27
36
|
|
|
28
|
-
export interface
|
|
37
|
+
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
29
38
|
domainName: string;
|
|
30
39
|
}
|
|
31
40
|
|
|
41
|
+
export interface DomainsPublicApiPostDomainByNameBuyRequest {
|
|
42
|
+
domainName: string;
|
|
43
|
+
buyDomainInput: BuyDomainInput;
|
|
44
|
+
}
|
|
45
|
+
|
|
32
46
|
/**
|
|
33
47
|
*
|
|
34
48
|
*/
|
|
35
49
|
export class DomainsPublicApi extends runtime.BaseAPI {
|
|
36
50
|
|
|
37
51
|
/**
|
|
52
|
+
*
|
|
38
53
|
*/
|
|
39
|
-
async
|
|
54
|
+
async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSalesInformationDto>> {
|
|
40
55
|
if (requestParameters['domainName'] == null) {
|
|
41
56
|
throw new runtime.RequiredError(
|
|
42
57
|
'domainName',
|
|
43
|
-
'Required parameter "domainName" was null or undefined when calling
|
|
58
|
+
'Required parameter "domainName" was null or undefined when calling getDomainSalesInformation().'
|
|
44
59
|
);
|
|
45
60
|
}
|
|
46
61
|
|
|
@@ -59,9 +74,53 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
59
74
|
}
|
|
60
75
|
|
|
61
76
|
/**
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto> {
|
|
80
|
+
const response = await this.getDomainSalesInformationRaw(requestParameters, initOverrides);
|
|
81
|
+
return await response.value();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
async postDomainByNameBuyRaw(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
88
|
+
if (requestParameters['domainName'] == null) {
|
|
89
|
+
throw new runtime.RequiredError(
|
|
90
|
+
'domainName',
|
|
91
|
+
'Required parameter "domainName" was null or undefined when calling postDomainByNameBuy().'
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (requestParameters['buyDomainInput'] == null) {
|
|
96
|
+
throw new runtime.RequiredError(
|
|
97
|
+
'buyDomainInput',
|
|
98
|
+
'Required parameter "buyDomainInput" was null or undefined when calling postDomainByNameBuy().'
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const queryParameters: any = {};
|
|
103
|
+
|
|
104
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
105
|
+
|
|
106
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
107
|
+
|
|
108
|
+
const response = await this.request({
|
|
109
|
+
path: `/domains/by-name/{domainName}/buy`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
110
|
+
method: 'POST',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
body: BuyDomainInputToJSON(requestParameters['buyDomainInput']),
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
62
121
|
*/
|
|
63
|
-
async
|
|
64
|
-
const response = await this.
|
|
122
|
+
async postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
123
|
+
const response = await this.postDomainByNameBuyRaw(requestParameters, initOverrides);
|
|
65
124
|
return await response.value();
|
|
66
125
|
}
|
|
67
126
|
|
|
@@ -32,6 +32,12 @@ export interface AccountSettingsInput {
|
|
|
32
32
|
* @memberof AccountSettingsInput
|
|
33
33
|
*/
|
|
34
34
|
defaultStartingOffer?: MoneyInput;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AccountSettingsInput
|
|
39
|
+
*/
|
|
40
|
+
defaultCurrencyCode?: string;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
/**
|
|
@@ -52,6 +58,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
52
58
|
return {
|
|
53
59
|
|
|
54
60
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyInputFromJSON(json['defaultStartingOffer']),
|
|
61
|
+
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
|
|
@@ -62,6 +69,7 @@ export function AccountSettingsInputToJSON(value?: AccountSettingsInput | null):
|
|
|
62
69
|
return {
|
|
63
70
|
|
|
64
71
|
'defaultStartingOffer': MoneyInputToJSON(value['defaultStartingOffer']),
|
|
72
|
+
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -0,0 +1,142 @@
|
|
|
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 BuyDomainInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyDomainInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyDomainInput
|
|
26
|
+
*/
|
|
27
|
+
firstname: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyDomainInput
|
|
32
|
+
*/
|
|
33
|
+
lastname: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyDomainInput
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BuyDomainInput
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BuyDomainInput
|
|
50
|
+
*/
|
|
51
|
+
country: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BuyDomainInput
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BuyDomainInput
|
|
62
|
+
*/
|
|
63
|
+
postalCode: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof BuyDomainInput
|
|
68
|
+
*/
|
|
69
|
+
address: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof BuyDomainInput
|
|
74
|
+
*/
|
|
75
|
+
companyName: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof BuyDomainInput
|
|
80
|
+
*/
|
|
81
|
+
companyVatNumber: string | null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the BuyDomainInput interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfBuyDomainInput(value: object): boolean {
|
|
88
|
+
if (!('firstname' in value)) return false;
|
|
89
|
+
if (!('lastname' in value)) return false;
|
|
90
|
+
if (!('email' in value)) return false;
|
|
91
|
+
if (!('phone' in value)) return false;
|
|
92
|
+
if (!('country' in value)) return false;
|
|
93
|
+
if (!('city' in value)) return false;
|
|
94
|
+
if (!('postalCode' in value)) return false;
|
|
95
|
+
if (!('address' in value)) return false;
|
|
96
|
+
if (!('companyName' in value)) return false;
|
|
97
|
+
if (!('companyVatNumber' in value)) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function BuyDomainInputFromJSON(json: any): BuyDomainInput {
|
|
102
|
+
return BuyDomainInputFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyDomainInput {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'firstname': json['firstname'],
|
|
112
|
+
'lastname': json['lastname'],
|
|
113
|
+
'email': json['email'],
|
|
114
|
+
'phone': json['phone'],
|
|
115
|
+
'country': json['country'],
|
|
116
|
+
'city': json['city'],
|
|
117
|
+
'postalCode': json['postalCode'],
|
|
118
|
+
'address': json['address'],
|
|
119
|
+
'companyName': json['companyName'],
|
|
120
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'firstname': value['firstname'],
|
|
131
|
+
'lastname': value['lastname'],
|
|
132
|
+
'email': value['email'],
|
|
133
|
+
'phone': value['phone'],
|
|
134
|
+
'country': value['country'],
|
|
135
|
+
'city': value['city'],
|
|
136
|
+
'postalCode': value['postalCode'],
|
|
137
|
+
'address': value['address'],
|
|
138
|
+
'companyName': value['companyName'],
|
|
139
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -24,7 +31,7 @@ export interface CreateLeadInput {
|
|
|
24
31
|
* @type {string}
|
|
25
32
|
* @memberof CreateLeadInput
|
|
26
33
|
*/
|
|
27
|
-
|
|
34
|
+
domainName: string;
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
* @type {string}
|
|
@@ -55,18 +62,44 @@ export interface CreateLeadInput {
|
|
|
55
62
|
* @memberof CreateLeadInput
|
|
56
63
|
*/
|
|
57
64
|
companyName: string | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {MoneyDto}
|
|
68
|
+
* @memberof CreateLeadInput
|
|
69
|
+
*/
|
|
70
|
+
offer: MoneyDto;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreateLeadInput
|
|
75
|
+
*/
|
|
76
|
+
offeredBy: CreateLeadInputOfferedByEnum;
|
|
58
77
|
}
|
|
59
78
|
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export const CreateLeadInputOfferedByEnum = {
|
|
84
|
+
BUYER: 'buyer',
|
|
85
|
+
SELLER: 'seller',
|
|
86
|
+
ADMIN: 'admin'
|
|
87
|
+
} as const;
|
|
88
|
+
export type CreateLeadInputOfferedByEnum = typeof CreateLeadInputOfferedByEnum[keyof typeof CreateLeadInputOfferedByEnum];
|
|
89
|
+
|
|
90
|
+
|
|
60
91
|
/**
|
|
61
92
|
* Check if a given object implements the CreateLeadInput interface.
|
|
62
93
|
*/
|
|
63
94
|
export function instanceOfCreateLeadInput(value: object): boolean {
|
|
64
|
-
if (!('
|
|
95
|
+
if (!('domainName' in value)) return false;
|
|
65
96
|
if (!('firstname' in value)) return false;
|
|
66
97
|
if (!('lastname' in value)) return false;
|
|
67
98
|
if (!('email' in value)) return false;
|
|
68
99
|
if (!('phone' in value)) return false;
|
|
69
100
|
if (!('companyName' in value)) return false;
|
|
101
|
+
if (!('offer' in value)) return false;
|
|
102
|
+
if (!('offeredBy' in value)) return false;
|
|
70
103
|
return true;
|
|
71
104
|
}
|
|
72
105
|
|
|
@@ -80,12 +113,14 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
80
113
|
}
|
|
81
114
|
return {
|
|
82
115
|
|
|
83
|
-
'
|
|
116
|
+
'domainName': json['domainName'],
|
|
84
117
|
'firstname': json['firstname'],
|
|
85
118
|
'lastname': json['lastname'],
|
|
86
119
|
'email': json['email'],
|
|
87
120
|
'phone': json['phone'],
|
|
88
121
|
'companyName': json['companyName'],
|
|
122
|
+
'offer': MoneyDtoFromJSON(json['offer']),
|
|
123
|
+
'offeredBy': json['offeredBy'],
|
|
89
124
|
};
|
|
90
125
|
}
|
|
91
126
|
|
|
@@ -95,12 +130,14 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
|
|
|
95
130
|
}
|
|
96
131
|
return {
|
|
97
132
|
|
|
98
|
-
'
|
|
133
|
+
'domainName': value['domainName'],
|
|
99
134
|
'firstname': value['firstname'],
|
|
100
135
|
'lastname': value['lastname'],
|
|
101
136
|
'email': value['email'],
|
|
102
137
|
'phone': value['phone'],
|
|
103
138
|
'companyName': value['companyName'],
|
|
139
|
+
'offer': MoneyDtoToJSON(value['offer']),
|
|
140
|
+
'offeredBy': value['offeredBy'],
|
|
104
141
|
};
|
|
105
142
|
}
|
|
106
143
|
|
package/src/models/DomainDto.ts
CHANGED
|
@@ -56,6 +56,13 @@ export interface DomainDto {
|
|
|
56
56
|
* @memberof DomainDto
|
|
57
57
|
*/
|
|
58
58
|
name: string;
|
|
59
|
+
/**
|
|
60
|
+
* /**
|
|
61
|
+
* The domain's currency
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DomainDto
|
|
64
|
+
*/
|
|
65
|
+
currency: string;
|
|
59
66
|
/**
|
|
60
67
|
* The BIN
|
|
61
68
|
* @type {MoneyDto}
|
|
@@ -79,6 +86,7 @@ export function instanceOfDomainDto(value: object): boolean {
|
|
|
79
86
|
if (!('verified' in value)) return false;
|
|
80
87
|
if (!('nameservers' in value)) return false;
|
|
81
88
|
if (!('name' in value)) return false;
|
|
89
|
+
if (!('currency' in value)) return false;
|
|
82
90
|
if (!('buyNow' in value)) return false;
|
|
83
91
|
if (!('minOffer' in value)) return false;
|
|
84
92
|
return true;
|
|
@@ -99,6 +107,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
99
107
|
'verified': json['verified'],
|
|
100
108
|
'nameservers': json['nameservers'],
|
|
101
109
|
'name': json['name'],
|
|
110
|
+
'currency': json['currency'],
|
|
102
111
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
103
112
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
104
113
|
};
|
|
@@ -115,6 +124,7 @@ export function DomainDtoToJSON(value?: DomainDto | null): any {
|
|
|
115
124
|
'verified': value['verified'],
|
|
116
125
|
'nameservers': value['nameservers'],
|
|
117
126
|
'name': value['name'],
|
|
127
|
+
'currency': value['currency'],
|
|
118
128
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
119
129
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
120
130
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
* Thrown if domain is not found.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetDomainSalesInformation404Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GetDomainSalesInformation404Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetDomainSalesInformation404Response
|
|
26
|
+
*/
|
|
27
|
+
statusCode: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetDomainSalesInformation404Response
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetDomainSalesInformation404Response
|
|
38
|
+
*/
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GetDomainSalesInformation404Response interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGetDomainSalesInformation404Response(value: object): boolean {
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function GetDomainSalesInformation404ResponseFromJSON(json: any): GetDomainSalesInformation404Response {
|
|
52
|
+
return GetDomainSalesInformation404ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function GetDomainSalesInformation404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDomainSalesInformation404Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'statusCode': json['statusCode'],
|
|
62
|
+
'message': json['message'],
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function GetDomainSalesInformation404ResponseToJSON(value?: GetDomainSalesInformation404Response | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -62,6 +62,13 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
62
62
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
63
63
|
*/
|
|
64
64
|
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* /**
|
|
67
|
+
* The domain's currency
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
70
|
+
*/
|
|
71
|
+
currency: string;
|
|
65
72
|
/**
|
|
66
73
|
* The BIN
|
|
67
74
|
* @type {MoneyDto}
|
|
@@ -91,6 +98,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): bo
|
|
|
91
98
|
if (!('verified' in value)) return false;
|
|
92
99
|
if (!('nameservers' in value)) return false;
|
|
93
100
|
if (!('name' in value)) return false;
|
|
101
|
+
if (!('currency' in value)) return false;
|
|
94
102
|
if (!('buyNow' in value)) return false;
|
|
95
103
|
if (!('minOffer' in value)) return false;
|
|
96
104
|
if (!('account' in value)) return false;
|
|
@@ -112,6 +120,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
112
120
|
'verified': json['verified'],
|
|
113
121
|
'nameservers': json['nameservers'],
|
|
114
122
|
'name': json['name'],
|
|
123
|
+
'currency': json['currency'],
|
|
115
124
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
116
125
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
117
126
|
'account': AccountDtoFromJSON(json['account']),
|
|
@@ -129,6 +138,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDo
|
|
|
129
138
|
'verified': value['verified'],
|
|
130
139
|
'nameservers': value['nameservers'],
|
|
131
140
|
'name': value['name'],
|
|
141
|
+
'currency': value['currency'],
|
|
132
142
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
133
143
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
134
144
|
'account': AccountDtoToJSON(value['account']),
|