@randock/nameshift-api-client 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +12 -1
- package/dist/apis/LeadsPublicApi.js +44 -0
- package/dist/models/BuyDomainInput.d.ts +16 -10
- package/dist/models/BuyDomainInput.js +6 -8
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +1 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +1 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +1 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +1 -0
- package/dist/models/LeadStatusDto.d.ts +1 -0
- package/dist/models/LeadStatusDto.js +1 -0
- package/dist/models/PublicLeadBuyerDto.d.ts +55 -0
- package/dist/models/PublicLeadBuyerDto.js +63 -0
- package/dist/models/PublicLeadDto.d.ts +63 -0
- package/dist/models/PublicLeadDto.js +72 -0
- package/dist/models/PublicLeadDtoLastOffer.d.ts +37 -0
- package/dist/models/PublicLeadDtoLastOffer.js +51 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/LeadsPublicApi.ts +40 -0
- package/src/models/BuyDomainInput.ts +22 -16
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +1 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +1 -0
- package/src/models/LeadStatusDto.ts +1 -0
- package/src/models/PublicLeadBuyerDto.ts +97 -0
- package/src/models/PublicLeadDto.ts +116 -0
- package/src/models/PublicLeadDtoLastOffer.ts +70 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -63,6 +63,9 @@ src/models/ObjectId.ts
|
|
|
63
63
|
src/models/PaginateResponse.ts
|
|
64
64
|
src/models/PaginateResponseLinks.ts
|
|
65
65
|
src/models/PaginateResponseMeta.ts
|
|
66
|
+
src/models/PublicLeadBuyerDto.ts
|
|
67
|
+
src/models/PublicLeadDto.ts
|
|
68
|
+
src/models/PublicLeadDtoLastOffer.ts
|
|
66
69
|
src/models/PutLeadInput.ts
|
|
67
70
|
src/models/RegisterAccountInput.ts
|
|
68
71
|
src/models/RelatedSellerDomain.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.47
|
|
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.47 --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
|
+
18e108370a9df893157434818789a97620f37fbedb9108be165780266cef0454241f7dd00913453409250d9b69d97b56
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateLeadInput, LeadStatusDto, ObjectId, VerifyLeadInput } from '../models/index';
|
|
13
|
+
import type { CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, VerifyLeadInput } from '../models/index';
|
|
14
14
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
15
15
|
createLeadInput: CreateLeadInput;
|
|
16
16
|
}
|
|
17
|
+
export interface LeadsPublicApiGetLeadRequest {
|
|
18
|
+
leadId: string;
|
|
19
|
+
}
|
|
17
20
|
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
18
21
|
leadId: string;
|
|
19
22
|
}
|
|
@@ -33,6 +36,14 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
33
36
|
*
|
|
34
37
|
*/
|
|
35
38
|
createLead(requestParameters: LeadsPublicApiCreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto>;
|
|
36
47
|
/**
|
|
37
48
|
*
|
|
38
49
|
*/
|
|
@@ -121,6 +121,50 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
LeadsPublicApi.prototype.getLeadRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['leadId'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLead().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
return [4 /*yield*/, this.request({
|
|
139
|
+
path: "/leads/{leadId}/public".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
140
|
+
method: 'GET',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides)];
|
|
144
|
+
case 1:
|
|
145
|
+
response = _a.sent();
|
|
146
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicLeadDtoFromJSON)(jsonValue); })];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
LeadsPublicApi.prototype.getLead = function (requestParameters, initOverrides) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
+
var response;
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0: return [4 /*yield*/, this.getLeadRaw(requestParameters, initOverrides)];
|
|
160
|
+
case 1:
|
|
161
|
+
response = _a.sent();
|
|
162
|
+
return [4 /*yield*/, response.value()];
|
|
163
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
124
168
|
/**
|
|
125
169
|
*
|
|
126
170
|
*/
|
|
@@ -20,61 +20,67 @@ export interface BuyDomainInput {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof BuyDomainInput
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
companyName?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof BuyDomainInput
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
companyVatNumber?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BuyDomainInput
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
leadId?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof BuyDomainInput
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
firstname: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof BuyDomainInput
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
lastname: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof BuyDomainInput
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
email: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof BuyDomainInput
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
phone: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof BuyDomainInput
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
country: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BuyDomainInput
|
|
70
|
+
*/
|
|
71
|
+
city: string;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof BuyDomainInput
|
|
70
76
|
*/
|
|
71
|
-
|
|
77
|
+
postalCode: string;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {string}
|
|
75
81
|
* @memberof BuyDomainInput
|
|
76
82
|
*/
|
|
77
|
-
|
|
83
|
+
address: string;
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
86
|
* Check if a given object implements the BuyDomainInput interface.
|
|
@@ -34,10 +34,6 @@ function instanceOfBuyDomainInput(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('address' in value) || value['address'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
|
|
40
|
-
return false;
|
|
41
37
|
return true;
|
|
42
38
|
}
|
|
43
39
|
exports.instanceOfBuyDomainInput = instanceOfBuyDomainInput;
|
|
@@ -50,6 +46,9 @@ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
46
|
return json;
|
|
51
47
|
}
|
|
52
48
|
return {
|
|
49
|
+
'companyName': json['companyName'] == null ? undefined : json['companyName'],
|
|
50
|
+
'companyVatNumber': json['companyVatNumber'] == null ? undefined : json['companyVatNumber'],
|
|
51
|
+
'leadId': json['leadId'] == null ? undefined : json['leadId'],
|
|
53
52
|
'firstname': json['firstname'],
|
|
54
53
|
'lastname': json['lastname'],
|
|
55
54
|
'email': json['email'],
|
|
@@ -58,8 +57,6 @@ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
57
|
'city': json['city'],
|
|
59
58
|
'postalCode': json['postalCode'],
|
|
60
59
|
'address': json['address'],
|
|
61
|
-
'companyName': json['companyName'],
|
|
62
|
-
'companyVatNumber': json['companyVatNumber'],
|
|
63
60
|
};
|
|
64
61
|
}
|
|
65
62
|
exports.BuyDomainInputFromJSONTyped = BuyDomainInputFromJSONTyped;
|
|
@@ -68,6 +65,9 @@ function BuyDomainInputToJSON(value) {
|
|
|
68
65
|
return value;
|
|
69
66
|
}
|
|
70
67
|
return {
|
|
68
|
+
'companyName': value['companyName'],
|
|
69
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
70
|
+
'leadId': value['leadId'],
|
|
71
71
|
'firstname': value['firstname'],
|
|
72
72
|
'lastname': value['lastname'],
|
|
73
73
|
'email': value['email'],
|
|
@@ -76,8 +76,6 @@ function BuyDomainInputToJSON(value) {
|
|
|
76
76
|
'city': value['city'],
|
|
77
77
|
'postalCode': value['postalCode'],
|
|
78
78
|
'address': value['address'],
|
|
79
|
-
'companyName': value['companyName'],
|
|
80
|
-
'companyVatNumber': value['companyVatNumber'],
|
|
81
79
|
};
|
|
82
80
|
}
|
|
83
81
|
exports.BuyDomainInputToJSON = BuyDomainInputToJSON;
|
|
@@ -61,6 +61,7 @@ export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
|
|
|
61
61
|
readonly UNVERIFIED: "unverified";
|
|
62
62
|
readonly ACTIVE: "active";
|
|
63
63
|
readonly ACCEPTED: "accepted";
|
|
64
|
+
readonly FINISHED: "finished";
|
|
64
65
|
readonly DELETED: "deleted";
|
|
65
66
|
readonly ARCHIVED: "archived";
|
|
66
67
|
};
|
|
@@ -97,6 +97,7 @@ export declare const IntersectionLeadDtoWithListFieldsDtoStatusEnum: {
|
|
|
97
97
|
readonly UNVERIFIED: "unverified";
|
|
98
98
|
readonly ACTIVE: "active";
|
|
99
99
|
readonly ACCEPTED: "accepted";
|
|
100
|
+
readonly FINISHED: "finished";
|
|
100
101
|
readonly DELETED: "deleted";
|
|
101
102
|
readonly ARCHIVED: "archived";
|
|
102
103
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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 PublicLeadBuyerDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PublicLeadBuyerDto {
|
|
18
|
+
/**
|
|
19
|
+
* Lead buyer name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PublicLeadBuyerDto
|
|
22
|
+
*/
|
|
23
|
+
firstname: string;
|
|
24
|
+
/**
|
|
25
|
+
* Lead buyer surname
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PublicLeadBuyerDto
|
|
28
|
+
*/
|
|
29
|
+
lastname: string;
|
|
30
|
+
/**
|
|
31
|
+
* Lead buyer email address
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PublicLeadBuyerDto
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
* Lead buyer phone number
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PublicLeadBuyerDto
|
|
40
|
+
*/
|
|
41
|
+
phone: string;
|
|
42
|
+
/**
|
|
43
|
+
* Lead buyer company name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PublicLeadBuyerDto
|
|
46
|
+
*/
|
|
47
|
+
companyName: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PublicLeadBuyerDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfPublicLeadBuyerDto(value: object): value is PublicLeadBuyerDto;
|
|
53
|
+
export declare function PublicLeadBuyerDtoFromJSON(json: any): PublicLeadBuyerDto;
|
|
54
|
+
export declare function PublicLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadBuyerDto;
|
|
55
|
+
export declare function PublicLeadBuyerDtoToJSON(value?: PublicLeadBuyerDto | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.PublicLeadBuyerDtoToJSON = exports.PublicLeadBuyerDtoFromJSONTyped = exports.PublicLeadBuyerDtoFromJSON = exports.instanceOfPublicLeadBuyerDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PublicLeadBuyerDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPublicLeadBuyerDto(value) {
|
|
21
|
+
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
exports.instanceOfPublicLeadBuyerDto = instanceOfPublicLeadBuyerDto;
|
|
34
|
+
function PublicLeadBuyerDtoFromJSON(json) {
|
|
35
|
+
return PublicLeadBuyerDtoFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.PublicLeadBuyerDtoFromJSON = PublicLeadBuyerDtoFromJSON;
|
|
38
|
+
function PublicLeadBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'firstname': json['firstname'],
|
|
44
|
+
'lastname': json['lastname'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'phone': json['phone'],
|
|
47
|
+
'companyName': json['companyName'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.PublicLeadBuyerDtoFromJSONTyped = PublicLeadBuyerDtoFromJSONTyped;
|
|
51
|
+
function PublicLeadBuyerDtoToJSON(value) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'firstname': value['firstname'],
|
|
57
|
+
'lastname': value['lastname'],
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
'phone': value['phone'],
|
|
60
|
+
'companyName': value['companyName'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.PublicLeadBuyerDtoToJSON = PublicLeadBuyerDtoToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { PublicLeadBuyerDto } from './PublicLeadBuyerDto';
|
|
13
|
+
import type { PublicLeadDtoLastOffer } from './PublicLeadDtoLastOffer';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PublicLeadDto
|
|
18
|
+
*/
|
|
19
|
+
export interface PublicLeadDto {
|
|
20
|
+
/**
|
|
21
|
+
* The current id
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PublicLeadDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The current lead status
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PublicLeadDto
|
|
30
|
+
*/
|
|
31
|
+
status: PublicLeadDtoStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {PublicLeadDtoLastOffer}
|
|
35
|
+
* @memberof PublicLeadDto
|
|
36
|
+
*/
|
|
37
|
+
lastOffer: PublicLeadDtoLastOffer | null;
|
|
38
|
+
/**
|
|
39
|
+
* The buyer information
|
|
40
|
+
* @type {PublicLeadBuyerDto}
|
|
41
|
+
* @memberof PublicLeadDto
|
|
42
|
+
*/
|
|
43
|
+
buyer: PublicLeadBuyerDto;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const PublicLeadDtoStatusEnum: {
|
|
49
|
+
readonly UNVERIFIED: "unverified";
|
|
50
|
+
readonly ACTIVE: "active";
|
|
51
|
+
readonly ACCEPTED: "accepted";
|
|
52
|
+
readonly FINISHED: "finished";
|
|
53
|
+
readonly DELETED: "deleted";
|
|
54
|
+
readonly ARCHIVED: "archived";
|
|
55
|
+
};
|
|
56
|
+
export type PublicLeadDtoStatusEnum = typeof PublicLeadDtoStatusEnum[keyof typeof PublicLeadDtoStatusEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PublicLeadDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPublicLeadDto(value: object): value is PublicLeadDto;
|
|
61
|
+
export declare function PublicLeadDtoFromJSON(json: any): PublicLeadDto;
|
|
62
|
+
export declare function PublicLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDto;
|
|
63
|
+
export declare function PublicLeadDtoToJSON(value?: PublicLeadDto | null): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.PublicLeadDtoToJSON = exports.PublicLeadDtoFromJSONTyped = exports.PublicLeadDtoFromJSON = exports.instanceOfPublicLeadDto = exports.PublicLeadDtoStatusEnum = void 0;
|
|
17
|
+
var PublicLeadBuyerDto_1 = require("./PublicLeadBuyerDto");
|
|
18
|
+
var PublicLeadDtoLastOffer_1 = require("./PublicLeadDtoLastOffer");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.PublicLeadDtoStatusEnum = {
|
|
23
|
+
UNVERIFIED: 'unverified',
|
|
24
|
+
ACTIVE: 'active',
|
|
25
|
+
ACCEPTED: 'accepted',
|
|
26
|
+
FINISHED: 'finished',
|
|
27
|
+
DELETED: 'deleted',
|
|
28
|
+
ARCHIVED: 'archived'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PublicLeadDto interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPublicLeadDto(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('buyer' in value) || value['buyer'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
exports.instanceOfPublicLeadDto = instanceOfPublicLeadDto;
|
|
45
|
+
function PublicLeadDtoFromJSON(json) {
|
|
46
|
+
return PublicLeadDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
exports.PublicLeadDtoFromJSON = PublicLeadDtoFromJSON;
|
|
49
|
+
function PublicLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferFromJSON)(json['lastOffer']),
|
|
57
|
+
'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoFromJSON)(json['buyer']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.PublicLeadDtoFromJSONTyped = PublicLeadDtoFromJSONTyped;
|
|
61
|
+
function PublicLeadDtoToJSON(value) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'status': value['status'],
|
|
68
|
+
'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferToJSON)(value['lastOffer']),
|
|
69
|
+
'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoToJSON)(value['buyer']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.PublicLeadDtoToJSON = PublicLeadDtoToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* The last offer price
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PublicLeadDtoLastOffer
|
|
16
|
+
*/
|
|
17
|
+
export interface PublicLeadDtoLastOffer {
|
|
18
|
+
/**
|
|
19
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PublicLeadDtoLastOffer
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Three letter ISO currency code
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PublicLeadDtoLastOffer
|
|
28
|
+
*/
|
|
29
|
+
currencyCode: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PublicLeadDtoLastOffer interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPublicLeadDtoLastOffer(value: object): value is PublicLeadDtoLastOffer;
|
|
35
|
+
export declare function PublicLeadDtoLastOfferFromJSON(json: any): PublicLeadDtoLastOffer;
|
|
36
|
+
export declare function PublicLeadDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDtoLastOffer;
|
|
37
|
+
export declare function PublicLeadDtoLastOfferToJSON(value?: PublicLeadDtoLastOffer | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.PublicLeadDtoLastOfferToJSON = exports.PublicLeadDtoLastOfferFromJSONTyped = exports.PublicLeadDtoLastOfferFromJSON = exports.instanceOfPublicLeadDtoLastOffer = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PublicLeadDtoLastOffer interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPublicLeadDtoLastOffer(value) {
|
|
21
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPublicLeadDtoLastOffer = instanceOfPublicLeadDtoLastOffer;
|
|
28
|
+
function PublicLeadDtoLastOfferFromJSON(json) {
|
|
29
|
+
return PublicLeadDtoLastOfferFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PublicLeadDtoLastOfferFromJSON = PublicLeadDtoLastOfferFromJSON;
|
|
32
|
+
function PublicLeadDtoLastOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'amount': json['amount'],
|
|
38
|
+
'currencyCode': json['currencyCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.PublicLeadDtoLastOfferFromJSONTyped = PublicLeadDtoLastOfferFromJSONTyped;
|
|
42
|
+
function PublicLeadDtoLastOfferToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'amount': value['amount'],
|
|
48
|
+
'currencyCode': value['currencyCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.PublicLeadDtoLastOfferToJSON = PublicLeadDtoLastOfferToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export * from './ObjectId';
|
|
|
47
47
|
export * from './PaginateResponse';
|
|
48
48
|
export * from './PaginateResponseLinks';
|
|
49
49
|
export * from './PaginateResponseMeta';
|
|
50
|
+
export * from './PublicLeadBuyerDto';
|
|
51
|
+
export * from './PublicLeadDto';
|
|
52
|
+
export * from './PublicLeadDtoLastOffer';
|
|
50
53
|
export * from './PutLeadInput';
|
|
51
54
|
export * from './RegisterAccountInput';
|
|
52
55
|
export * from './RelatedSellerDomain';
|
package/dist/models/index.js
CHANGED
|
@@ -65,6 +65,9 @@ __exportStar(require("./ObjectId"), exports);
|
|
|
65
65
|
__exportStar(require("./PaginateResponse"), exports);
|
|
66
66
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
67
67
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
68
|
+
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
69
|
+
__exportStar(require("./PublicLeadDto"), exports);
|
|
70
|
+
__exportStar(require("./PublicLeadDtoLastOffer"), exports);
|
|
68
71
|
__exportStar(require("./PutLeadInput"), exports);
|
|
69
72
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
70
73
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
LeadStatusDto,
|
|
20
20
|
NotFoundException,
|
|
21
21
|
ObjectId,
|
|
22
|
+
PublicLeadDto,
|
|
22
23
|
ThrottlerException,
|
|
23
24
|
ValidationException,
|
|
24
25
|
VerifyLeadInput,
|
|
@@ -32,6 +33,8 @@ import {
|
|
|
32
33
|
NotFoundExceptionToJSON,
|
|
33
34
|
ObjectIdFromJSON,
|
|
34
35
|
ObjectIdToJSON,
|
|
36
|
+
PublicLeadDtoFromJSON,
|
|
37
|
+
PublicLeadDtoToJSON,
|
|
35
38
|
ThrottlerExceptionFromJSON,
|
|
36
39
|
ThrottlerExceptionToJSON,
|
|
37
40
|
ValidationExceptionFromJSON,
|
|
@@ -44,6 +47,10 @@ export interface LeadsPublicApiCreateLeadRequest {
|
|
|
44
47
|
createLeadInput: CreateLeadInput;
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
export interface LeadsPublicApiGetLeadRequest {
|
|
51
|
+
leadId: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
47
54
|
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
48
55
|
leadId: string;
|
|
49
56
|
}
|
|
@@ -94,6 +101,39 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
94
101
|
return await response.value();
|
|
95
102
|
}
|
|
96
103
|
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
async getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
|
|
108
|
+
if (requestParameters['leadId'] == null) {
|
|
109
|
+
throw new runtime.RequiredError(
|
|
110
|
+
'leadId',
|
|
111
|
+
'Required parameter "leadId" was null or undefined when calling getLead().'
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const queryParameters: any = {};
|
|
116
|
+
|
|
117
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
+
|
|
119
|
+
const response = await this.request({
|
|
120
|
+
path: `/leads/{leadId}/public`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
121
|
+
method: 'GET',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
}, initOverrides);
|
|
125
|
+
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
async getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
|
|
133
|
+
const response = await this.getLeadRaw(requestParameters, initOverrides);
|
|
134
|
+
return await response.value();
|
|
135
|
+
}
|
|
136
|
+
|
|
97
137
|
/**
|
|
98
138
|
*
|
|
99
139
|
*/
|
|
@@ -24,61 +24,67 @@ export interface BuyDomainInput {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof BuyDomainInput
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
companyName?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof BuyDomainInput
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
companyVatNumber?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof BuyDomainInput
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
leadId?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof BuyDomainInput
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
firstname: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof BuyDomainInput
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
lastname: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof BuyDomainInput
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
email: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof BuyDomainInput
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
phone: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof BuyDomainInput
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
country: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof BuyDomainInput
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
city: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof BuyDomainInput
|
|
80
|
+
*/
|
|
81
|
+
postalCode: string;
|
|
76
82
|
/**
|
|
77
83
|
*
|
|
78
84
|
* @type {string}
|
|
79
85
|
* @memberof BuyDomainInput
|
|
80
86
|
*/
|
|
81
|
-
|
|
87
|
+
address: string;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
/**
|
|
@@ -93,8 +99,6 @@ export function instanceOfBuyDomainInput(value: object): value is BuyDomainInput
|
|
|
93
99
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
94
100
|
if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
|
|
95
101
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
96
|
-
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
97
|
-
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
|
|
98
102
|
return true;
|
|
99
103
|
}
|
|
100
104
|
|
|
@@ -108,6 +112,9 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
108
112
|
}
|
|
109
113
|
return {
|
|
110
114
|
|
|
115
|
+
'companyName': json['companyName'] == null ? undefined : json['companyName'],
|
|
116
|
+
'companyVatNumber': json['companyVatNumber'] == null ? undefined : json['companyVatNumber'],
|
|
117
|
+
'leadId': json['leadId'] == null ? undefined : json['leadId'],
|
|
111
118
|
'firstname': json['firstname'],
|
|
112
119
|
'lastname': json['lastname'],
|
|
113
120
|
'email': json['email'],
|
|
@@ -116,8 +123,6 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
116
123
|
'city': json['city'],
|
|
117
124
|
'postalCode': json['postalCode'],
|
|
118
125
|
'address': json['address'],
|
|
119
|
-
'companyName': json['companyName'],
|
|
120
|
-
'companyVatNumber': json['companyVatNumber'],
|
|
121
126
|
};
|
|
122
127
|
}
|
|
123
128
|
|
|
@@ -127,6 +132,9 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
|
127
132
|
}
|
|
128
133
|
return {
|
|
129
134
|
|
|
135
|
+
'companyName': value['companyName'],
|
|
136
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
137
|
+
'leadId': value['leadId'],
|
|
130
138
|
'firstname': value['firstname'],
|
|
131
139
|
'lastname': value['lastname'],
|
|
132
140
|
'email': value['email'],
|
|
@@ -135,8 +143,6 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
|
135
143
|
'city': value['city'],
|
|
136
144
|
'postalCode': value['postalCode'],
|
|
137
145
|
'address': value['address'],
|
|
138
|
-
'companyName': value['companyName'],
|
|
139
|
-
'companyVatNumber': value['companyVatNumber'],
|
|
140
146
|
};
|
|
141
147
|
}
|
|
142
148
|
|
|
@@ -0,0 +1,97 @@
|
|
|
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 PublicLeadBuyerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicLeadBuyerDto {
|
|
22
|
+
/**
|
|
23
|
+
* Lead buyer name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PublicLeadBuyerDto
|
|
26
|
+
*/
|
|
27
|
+
firstname: string;
|
|
28
|
+
/**
|
|
29
|
+
* Lead buyer surname
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PublicLeadBuyerDto
|
|
32
|
+
*/
|
|
33
|
+
lastname: string;
|
|
34
|
+
/**
|
|
35
|
+
* Lead buyer email address
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PublicLeadBuyerDto
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
* Lead buyer phone number
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PublicLeadBuyerDto
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
46
|
+
/**
|
|
47
|
+
* Lead buyer company name
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PublicLeadBuyerDto
|
|
50
|
+
*/
|
|
51
|
+
companyName: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PublicLeadBuyerDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPublicLeadBuyerDto(value: object): value is PublicLeadBuyerDto {
|
|
58
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
59
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
60
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
62
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PublicLeadBuyerDtoFromJSON(json: any): PublicLeadBuyerDto {
|
|
67
|
+
return PublicLeadBuyerDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PublicLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadBuyerDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'firstname': json['firstname'],
|
|
77
|
+
'lastname': json['lastname'],
|
|
78
|
+
'email': json['email'],
|
|
79
|
+
'phone': json['phone'],
|
|
80
|
+
'companyName': json['companyName'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PublicLeadBuyerDtoToJSON(value?: PublicLeadBuyerDto | null): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'firstname': value['firstname'],
|
|
91
|
+
'lastname': value['lastname'],
|
|
92
|
+
'email': value['email'],
|
|
93
|
+
'phone': value['phone'],
|
|
94
|
+
'companyName': value['companyName'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { PublicLeadBuyerDto } from './PublicLeadBuyerDto';
|
|
17
|
+
import {
|
|
18
|
+
PublicLeadBuyerDtoFromJSON,
|
|
19
|
+
PublicLeadBuyerDtoFromJSONTyped,
|
|
20
|
+
PublicLeadBuyerDtoToJSON,
|
|
21
|
+
} from './PublicLeadBuyerDto';
|
|
22
|
+
import type { PublicLeadDtoLastOffer } from './PublicLeadDtoLastOffer';
|
|
23
|
+
import {
|
|
24
|
+
PublicLeadDtoLastOfferFromJSON,
|
|
25
|
+
PublicLeadDtoLastOfferFromJSONTyped,
|
|
26
|
+
PublicLeadDtoLastOfferToJSON,
|
|
27
|
+
} from './PublicLeadDtoLastOffer';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PublicLeadDto
|
|
33
|
+
*/
|
|
34
|
+
export interface PublicLeadDto {
|
|
35
|
+
/**
|
|
36
|
+
* The current id
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PublicLeadDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current lead status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PublicLeadDto
|
|
45
|
+
*/
|
|
46
|
+
status: PublicLeadDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PublicLeadDtoLastOffer}
|
|
50
|
+
* @memberof PublicLeadDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: PublicLeadDtoLastOffer | null;
|
|
53
|
+
/**
|
|
54
|
+
* The buyer information
|
|
55
|
+
* @type {PublicLeadBuyerDto}
|
|
56
|
+
* @memberof PublicLeadDto
|
|
57
|
+
*/
|
|
58
|
+
buyer: PublicLeadBuyerDto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const PublicLeadDtoStatusEnum = {
|
|
66
|
+
UNVERIFIED: 'unverified',
|
|
67
|
+
ACTIVE: 'active',
|
|
68
|
+
ACCEPTED: 'accepted',
|
|
69
|
+
FINISHED: 'finished',
|
|
70
|
+
DELETED: 'deleted',
|
|
71
|
+
ARCHIVED: 'archived'
|
|
72
|
+
} as const;
|
|
73
|
+
export type PublicLeadDtoStatusEnum = typeof PublicLeadDtoStatusEnum[keyof typeof PublicLeadDtoStatusEnum];
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the PublicLeadDto interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfPublicLeadDto(value: object): value is PublicLeadDto {
|
|
80
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
81
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
82
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
83
|
+
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PublicLeadDtoFromJSON(json: any): PublicLeadDto {
|
|
88
|
+
return PublicLeadDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function PublicLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'status': json['status'],
|
|
99
|
+
'lastOffer': PublicLeadDtoLastOfferFromJSON(json['lastOffer']),
|
|
100
|
+
'buyer': PublicLeadBuyerDtoFromJSON(json['buyer']),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PublicLeadDtoToJSON(value?: PublicLeadDto | null): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value['id'],
|
|
111
|
+
'status': value['status'],
|
|
112
|
+
'lastOffer': PublicLeadDtoLastOfferToJSON(value['lastOffer']),
|
|
113
|
+
'buyer': PublicLeadBuyerDtoToJSON(value['buyer']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* The last offer price
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PublicLeadDtoLastOffer
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicLeadDtoLastOffer {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PublicLeadDtoLastOffer
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PublicLeadDtoLastOffer
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PublicLeadDtoLastOffer interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPublicLeadDtoLastOffer(value: object): value is PublicLeadDtoLastOffer {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PublicLeadDtoLastOfferFromJSON(json: any): PublicLeadDtoLastOffer {
|
|
46
|
+
return PublicLeadDtoLastOfferFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PublicLeadDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDtoLastOffer {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currencyCode': json['currencyCode'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PublicLeadDtoLastOfferToJSON(value?: PublicLeadDtoLastOffer | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'amount': value['amount'],
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -49,6 +49,9 @@ export * from './ObjectId';
|
|
|
49
49
|
export * from './PaginateResponse';
|
|
50
50
|
export * from './PaginateResponseLinks';
|
|
51
51
|
export * from './PaginateResponseMeta';
|
|
52
|
+
export * from './PublicLeadBuyerDto';
|
|
53
|
+
export * from './PublicLeadDto';
|
|
54
|
+
export * from './PublicLeadDtoLastOffer';
|
|
52
55
|
export * from './PutLeadInput';
|
|
53
56
|
export * from './RegisterAccountInput';
|
|
54
57
|
export * from './RelatedSellerDomain';
|