@randock/nameshift-api-client 0.0.46 → 0.0.48
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/AccountsApi.js +4 -4
- package/dist/apis/DashboardApi.js +1 -1
- package/dist/apis/DomainsApi.js +10 -10
- package/dist/apis/LeadsApi.js +6 -6
- 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/AccountsApi.ts +4 -4
- package/src/apis/DashboardApi.ts +1 -1
- package/src/apis/DomainsApi.ts +10 -10
- package/src/apis/LeadsApi.ts +6 -6
- 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.48
|
|
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.48 --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
|
+
002cb7cdbbef6e673ed7b7143f973491de649389f9dfb1a903a6e0ba5248041c9101a24388e0a5840ed997fd58ec8a33
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -96,7 +96,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
96
96
|
}
|
|
97
97
|
_a.label = 2;
|
|
98
98
|
case 2: return [4 /*yield*/, this.request({
|
|
99
|
-
path: "/accounts/me",
|
|
99
|
+
path: "/private/accounts/me",
|
|
100
100
|
method: 'GET',
|
|
101
101
|
headers: headerParameters,
|
|
102
102
|
query: queryParameters,
|
|
@@ -153,7 +153,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
153
153
|
}
|
|
154
154
|
_a.label = 2;
|
|
155
155
|
case 2: return [4 /*yield*/, this.request({
|
|
156
|
-
path: "/accounts/{accountId}/addresses".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
156
|
+
path: "/private/accounts/{accountId}/addresses".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
157
157
|
method: 'PUT',
|
|
158
158
|
headers: headerParameters,
|
|
159
159
|
query: queryParameters,
|
|
@@ -209,7 +209,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
209
209
|
}
|
|
210
210
|
_a.label = 2;
|
|
211
211
|
case 2: return [4 /*yield*/, this.request({
|
|
212
|
-
path: "/accounts/{accountId}/financial".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
212
|
+
path: "/private/accounts/{accountId}/financial".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
213
213
|
method: 'PUT',
|
|
214
214
|
headers: headerParameters,
|
|
215
215
|
query: queryParameters,
|
|
@@ -265,7 +265,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
265
265
|
}
|
|
266
266
|
_a.label = 2;
|
|
267
267
|
case 2: return [4 /*yield*/, this.request({
|
|
268
|
-
path: "/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
268
|
+
path: "/private/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
269
269
|
method: 'PUT',
|
|
270
270
|
headers: headerParameters,
|
|
271
271
|
query: queryParameters,
|
|
@@ -96,7 +96,7 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
96
96
|
}
|
|
97
97
|
_a.label = 2;
|
|
98
98
|
case 2: return [4 /*yield*/, this.request({
|
|
99
|
-
path: "/dashboard/stats",
|
|
99
|
+
path: "/private/dashboard/stats",
|
|
100
100
|
method: 'GET',
|
|
101
101
|
headers: headerParameters,
|
|
102
102
|
query: queryParameters,
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -116,7 +116,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
116
116
|
formParams.append('domains', requestParameters['domains'].join(runtime.COLLECTION_FORMATS["csv"]));
|
|
117
117
|
}
|
|
118
118
|
return [4 /*yield*/, this.request({
|
|
119
|
-
path: "/domains",
|
|
119
|
+
path: "/private/domains",
|
|
120
120
|
method: 'POST',
|
|
121
121
|
headers: headerParameters,
|
|
122
122
|
query: queryParameters,
|
|
@@ -170,7 +170,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
170
170
|
}
|
|
171
171
|
_a.label = 2;
|
|
172
172
|
case 2: return [4 /*yield*/, this.request({
|
|
173
|
-
path: "/domains",
|
|
173
|
+
path: "/private/domains",
|
|
174
174
|
method: 'PUT',
|
|
175
175
|
headers: headerParameters,
|
|
176
176
|
query: queryParameters,
|
|
@@ -222,7 +222,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
222
222
|
}
|
|
223
223
|
_a.label = 2;
|
|
224
224
|
case 2: return [4 /*yield*/, this.request({
|
|
225
|
-
path: "/domains/{domainId}/check_ns".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
225
|
+
path: "/private/domains/{domainId}/check_ns".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
226
226
|
method: 'POST',
|
|
227
227
|
headers: headerParameters,
|
|
228
228
|
query: queryParameters,
|
|
@@ -274,7 +274,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
274
274
|
}
|
|
275
275
|
_a.label = 2;
|
|
276
276
|
case 2: return [4 /*yield*/, this.request({
|
|
277
|
-
path: "/domains",
|
|
277
|
+
path: "/private/domains",
|
|
278
278
|
method: 'DELETE',
|
|
279
279
|
headers: headerParameters,
|
|
280
280
|
query: queryParameters,
|
|
@@ -326,7 +326,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
326
326
|
}
|
|
327
327
|
_a.label = 2;
|
|
328
328
|
case 2: return [4 /*yield*/, this.request({
|
|
329
|
-
path: "/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
329
|
+
path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
330
330
|
method: 'GET',
|
|
331
331
|
headers: headerParameters,
|
|
332
332
|
query: queryParameters,
|
|
@@ -388,7 +388,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
388
388
|
}
|
|
389
389
|
_a.label = 2;
|
|
390
390
|
case 2: return [4 /*yield*/, this.request({
|
|
391
|
-
path: "/domains/transfers",
|
|
391
|
+
path: "/private/domains/transfers",
|
|
392
392
|
method: 'GET',
|
|
393
393
|
headers: headerParameters,
|
|
394
394
|
query: queryParameters,
|
|
@@ -442,7 +442,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
442
442
|
}
|
|
443
443
|
_a.label = 2;
|
|
444
444
|
case 2: return [4 /*yield*/, this.request({
|
|
445
|
-
path: "/domains/transfers/{transferId}".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
445
|
+
path: "/private/domains/transfers/{transferId}".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
446
446
|
method: 'GET',
|
|
447
447
|
headers: headerParameters,
|
|
448
448
|
query: queryParameters,
|
|
@@ -504,7 +504,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
504
504
|
}
|
|
505
505
|
_a.label = 2;
|
|
506
506
|
case 2: return [4 /*yield*/, this.request({
|
|
507
|
-
path: "/domains",
|
|
507
|
+
path: "/private/domains",
|
|
508
508
|
method: 'GET',
|
|
509
509
|
headers: headerParameters,
|
|
510
510
|
query: queryParameters,
|
|
@@ -562,7 +562,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
562
562
|
}
|
|
563
563
|
_a.label = 2;
|
|
564
564
|
case 2: return [4 /*yield*/, this.request({
|
|
565
|
-
path: "/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
565
|
+
path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
566
566
|
method: 'PUT',
|
|
567
567
|
headers: headerParameters,
|
|
568
568
|
query: queryParameters,
|
|
@@ -620,7 +620,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
620
620
|
}
|
|
621
621
|
_a.label = 2;
|
|
622
622
|
case 2: return [4 /*yield*/, this.request({
|
|
623
|
-
path: "/domains/transfers/{transferId}/auth-code".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
623
|
+
path: "/private/domains/transfers/{transferId}/auth-code".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
624
624
|
method: 'PATCH',
|
|
625
625
|
headers: headerParameters,
|
|
626
626
|
query: queryParameters,
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -99,7 +99,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
99
99
|
}
|
|
100
100
|
_a.label = 2;
|
|
101
101
|
case 2: return [4 /*yield*/, this.request({
|
|
102
|
-
path: "/leads/{leadId}/status/accept".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
102
|
+
path: "/private/leads/{leadId}/status/accept".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
103
103
|
method: 'PATCH',
|
|
104
104
|
headers: headerParameters,
|
|
105
105
|
query: queryParameters,
|
|
@@ -154,7 +154,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
154
154
|
}
|
|
155
155
|
_a.label = 2;
|
|
156
156
|
case 2: return [4 /*yield*/, this.request({
|
|
157
|
-
path: "/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
157
|
+
path: "/private/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
158
158
|
method: 'POST',
|
|
159
159
|
headers: headerParameters,
|
|
160
160
|
query: queryParameters,
|
|
@@ -208,7 +208,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
208
208
|
}
|
|
209
209
|
_a.label = 2;
|
|
210
210
|
case 2: return [4 /*yield*/, this.request({
|
|
211
|
-
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
211
|
+
path: "/private/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
212
212
|
method: 'GET',
|
|
213
213
|
headers: headerParameters,
|
|
214
214
|
query: queryParameters,
|
|
@@ -261,7 +261,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
261
261
|
}
|
|
262
262
|
_a.label = 2;
|
|
263
263
|
case 2: return [4 /*yield*/, this.request({
|
|
264
|
-
path: "/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
264
|
+
path: "/private/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
265
265
|
method: 'GET',
|
|
266
266
|
headers: headerParameters,
|
|
267
267
|
query: queryParameters,
|
|
@@ -311,7 +311,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
311
311
|
}
|
|
312
312
|
_a.label = 2;
|
|
313
313
|
case 2: return [4 /*yield*/, this.request({
|
|
314
|
-
path: "/leads",
|
|
314
|
+
path: "/private/leads",
|
|
315
315
|
method: 'GET',
|
|
316
316
|
headers: headerParameters,
|
|
317
317
|
query: queryParameters,
|
|
@@ -368,7 +368,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
368
368
|
}
|
|
369
369
|
_a.label = 2;
|
|
370
370
|
case 2: return [4 /*yield*/, this.request({
|
|
371
|
-
path: "/leads/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
371
|
+
path: "/private/leads/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
372
372
|
method: 'PUT',
|
|
373
373
|
headers: headerParameters,
|
|
374
374
|
query: queryParameters,
|
|
@@ -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}".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;
|