@randock/nameshift-api-client 0.0.45 → 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/LeadsApi.d.ts +11 -0
- package/dist/apis/LeadsApi.js +51 -0
- 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 +2 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +2 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +2 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +2 -0
- package/dist/models/LeadStatusDto.d.ts +2 -0
- package/dist/models/LeadStatusDto.js +2 -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/LeadsApi.ts +44 -0
- package/src/apis/LeadsPublicApi.ts +40 -0
- package/src/models/BuyDomainInput.ts +22 -16
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +2 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +2 -0
- package/src/models/LeadStatusDto.ts +2 -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
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, ListLeadMessagesDto, ObjectId, PutLeadInput } from '../models/index';
|
|
14
|
+
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface LeadsApiCreateMessageRequest {
|
|
15
18
|
leadId: string;
|
|
16
19
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
@@ -29,6 +32,14 @@ export interface LeadsApiPutOfferRequest {
|
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
31
34
|
export declare class LeadsApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
acceptLeadOfferRaw(requestParameters: LeadsApiAcceptLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
acceptLeadOffer(requestParameters: LeadsApiAcceptLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
32
43
|
/**
|
|
33
44
|
*
|
|
34
45
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -75,6 +75,57 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function LeadsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
LeadsApi.prototype.acceptLeadOfferRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['leadId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling acceptLeadOffer().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
93
|
+
token = this.configuration.accessToken;
|
|
94
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
95
|
+
case 1:
|
|
96
|
+
tokenString = _a.sent();
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
99
|
+
}
|
|
100
|
+
_a.label = 2;
|
|
101
|
+
case 2: return [4 /*yield*/, this.request({
|
|
102
|
+
path: "/leads/{leadId}/status/accept".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
103
|
+
method: 'PATCH',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
}, initOverrides)];
|
|
107
|
+
case 3:
|
|
108
|
+
response = _a.sent();
|
|
109
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
LeadsApi.prototype.acceptLeadOffer = function (requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4 /*yield*/, this.acceptLeadOfferRaw(requestParameters, initOverrides)];
|
|
122
|
+
case 1:
|
|
123
|
+
_a.sent();
|
|
124
|
+
return [2 /*return*/];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
78
129
|
/**
|
|
79
130
|
*
|
|
80
131
|
*/
|
|
@@ -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;
|
|
@@ -60,6 +60,8 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
|
60
60
|
export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
|
|
61
61
|
readonly UNVERIFIED: "unverified";
|
|
62
62
|
readonly ACTIVE: "active";
|
|
63
|
+
readonly ACCEPTED: "accepted";
|
|
64
|
+
readonly FINISHED: "finished";
|
|
63
65
|
readonly DELETED: "deleted";
|
|
64
66
|
readonly ARCHIVED: "archived";
|
|
65
67
|
};
|
|
@@ -22,6 +22,8 @@ var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLea
|
|
|
22
22
|
exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
|
|
23
23
|
UNVERIFIED: 'unverified',
|
|
24
24
|
ACTIVE: 'active',
|
|
25
|
+
ACCEPTED: 'accepted',
|
|
26
|
+
FINISHED: 'finished',
|
|
25
27
|
DELETED: 'deleted',
|
|
26
28
|
ARCHIVED: 'archived'
|
|
27
29
|
};
|
|
@@ -96,6 +96,8 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
96
96
|
export declare const IntersectionLeadDtoWithListFieldsDtoStatusEnum: {
|
|
97
97
|
readonly UNVERIFIED: "unverified";
|
|
98
98
|
readonly ACTIVE: "active";
|
|
99
|
+
readonly ACCEPTED: "accepted";
|
|
100
|
+
readonly FINISHED: "finished";
|
|
99
101
|
readonly DELETED: "deleted";
|
|
100
102
|
readonly ARCHIVED: "archived";
|
|
101
103
|
};
|
|
@@ -22,6 +22,8 @@ var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLea
|
|
|
22
22
|
exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
|
|
23
23
|
UNVERIFIED: 'unverified',
|
|
24
24
|
ACTIVE: 'active',
|
|
25
|
+
ACCEPTED: 'accepted',
|
|
26
|
+
FINISHED: 'finished',
|
|
25
27
|
DELETED: 'deleted',
|
|
26
28
|
ARCHIVED: 'archived'
|
|
27
29
|
};
|
|
@@ -28,6 +28,8 @@ export interface LeadStatusDto {
|
|
|
28
28
|
export declare const LeadStatusDtoStatusEnum: {
|
|
29
29
|
readonly UNVERIFIED: "unverified";
|
|
30
30
|
readonly ACTIVE: "active";
|
|
31
|
+
readonly ACCEPTED: "accepted";
|
|
32
|
+
readonly FINISHED: "finished";
|
|
31
33
|
readonly DELETED: "deleted";
|
|
32
34
|
readonly ARCHIVED: "archived";
|
|
33
35
|
};
|
|
@@ -20,6 +20,8 @@ exports.LeadStatusDtoToJSON = exports.LeadStatusDtoFromJSONTyped = exports.LeadS
|
|
|
20
20
|
exports.LeadStatusDtoStatusEnum = {
|
|
21
21
|
UNVERIFIED: 'unverified',
|
|
22
22
|
ACTIVE: 'active',
|
|
23
|
+
ACCEPTED: 'accepted',
|
|
24
|
+
FINISHED: 'finished',
|
|
23
25
|
DELETED: 'deleted',
|
|
24
26
|
ARCHIVED: 'archived'
|
|
25
27
|
};
|
|
@@ -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;
|