@randock/nameshift-api-client 0.0.89 → 0.0.90
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 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +35 -1
- package/dist/apis/BuyersApi.js +160 -0
- package/dist/models/AccountSettingsInput.d.ts +3 -3
- package/dist/models/AccountSettingsInput.js +3 -3
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +2 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +11 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +7 -0
- package/dist/models/LeadDomainDto.d.ts +43 -0
- package/dist/models/LeadDomainDto.js +54 -0
- package/dist/models/LeadDto.d.ts +84 -0
- package/dist/models/LeadDto.js +88 -0
- package/dist/models/LeadMessageDto.d.ts +2 -0
- package/dist/models/LeadMessageDto.js +2 -0
- package/dist/models/PutBuyerLeadOfferInput.d.ts +32 -0
- package/dist/models/PutBuyerLeadOfferInput.js +47 -0
- package/dist/models/UpdateDomainInput.d.ts +5 -5
- package/dist/models/UpdateDomainInput.js +5 -5
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +150 -0
- package/src/apis/LeadsApi.ts +3 -0
- package/src/models/AccountSettingsInput.ts +9 -9
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +2 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +19 -2
- package/src/models/LeadDomainDto.ts +79 -0
- package/src/models/LeadDto.ts +144 -0
- package/src/models/LeadMessageDto.ts +2 -0
- package/src/models/PutBuyerLeadOfferInput.ts +68 -0
- package/src/models/UpdateDomainInput.ts +13 -13
- package/src/models/index.ts +3 -1
- package/dist/models/MoneyInput.d.ts +0 -37
- package/dist/models/MoneyInput.js +0 -50
- package/src/models/MoneyInput.ts +0 -70
package/.openapi-generator/FILES
CHANGED
|
@@ -73,6 +73,8 @@ src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
|
73
73
|
src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
|
|
74
74
|
src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
|
|
75
75
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
76
|
+
src/models/LeadDomainDto.ts
|
|
77
|
+
src/models/LeadDto.ts
|
|
76
78
|
src/models/LeadMessageData.ts
|
|
77
79
|
src/models/LeadMessageDto.ts
|
|
78
80
|
src/models/LeadStatusDto.ts
|
|
@@ -84,7 +86,6 @@ src/models/ListLeadMessagesDto.ts
|
|
|
84
86
|
src/models/LoginDto.ts
|
|
85
87
|
src/models/LoginInput.ts
|
|
86
88
|
src/models/MoneyDto.ts
|
|
87
|
-
src/models/MoneyInput.ts
|
|
88
89
|
src/models/NotFoundException.ts
|
|
89
90
|
src/models/ObjectId.ts
|
|
90
91
|
src/models/OrderDto.ts
|
|
@@ -97,6 +98,7 @@ src/models/PaginateResponseLinks.ts
|
|
|
97
98
|
src/models/PaginateResponseMeta.ts
|
|
98
99
|
src/models/PublicLeadBuyerDto.ts
|
|
99
100
|
src/models/PublicLeadDto.ts
|
|
101
|
+
src/models/PutBuyerLeadOfferInput.ts
|
|
100
102
|
src/models/PutLeadOfferInput.ts
|
|
101
103
|
src/models/RegisterAccountInput.ts
|
|
102
104
|
src/models/RelatedSellerDomain.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.8.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.90
|
|
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.90 --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
|
+
214994a0fe19e96859a91adf1170a3bb8aaa3b556df65d1a55939b6a3994e3ef5111a7d104def22c6b3bd2beeef4577b
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerUserDto, CreateBuyerLeadMessageInput, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadMessageDto, ObjectId, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
13
|
+
import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerUserDto, CreateBuyerLeadMessageInput, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
14
|
+
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
15
18
|
leadId: string;
|
|
16
19
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
@@ -19,6 +22,9 @@ export interface BuyersApiCreateBuyerLeadMessageRequest {
|
|
|
19
22
|
leadId: string;
|
|
20
23
|
createBuyerLeadMessageInput: CreateBuyerLeadMessageInput;
|
|
21
24
|
}
|
|
25
|
+
export interface BuyersApiGetBuyerLeadRequest {
|
|
26
|
+
leadId: string;
|
|
27
|
+
}
|
|
22
28
|
export interface BuyersApiGetBuyerLeadMessagesRequest {
|
|
23
29
|
leadId: string;
|
|
24
30
|
}
|
|
@@ -41,6 +47,10 @@ export interface BuyersApiPatchDomainTransferConfirmationRequest {
|
|
|
41
47
|
transferId: string;
|
|
42
48
|
setDomainTransferConfirmationInput: SetDomainTransferConfirmationInput;
|
|
43
49
|
}
|
|
50
|
+
export interface BuyersApiPutBuyerOfferRequest {
|
|
51
|
+
leadId: string;
|
|
52
|
+
putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
|
|
53
|
+
}
|
|
44
54
|
export interface BuyersApiSetLocaleRequest {
|
|
45
55
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
46
56
|
}
|
|
@@ -48,6 +58,14 @@ export interface BuyersApiSetLocaleRequest {
|
|
|
48
58
|
*
|
|
49
59
|
*/
|
|
50
60
|
export declare class BuyersApi extends runtime.BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
acceptBuyerLeadOfferRaw(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
acceptBuyerLeadOffer(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
69
|
/**
|
|
52
70
|
*
|
|
53
71
|
*/
|
|
@@ -72,6 +90,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
72
90
|
*
|
|
73
91
|
*/
|
|
74
92
|
createBuyerLeadMessage(requestParameters: BuyersApiCreateBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
getBuyerLeadRaw(requestParameters: BuyersApiGetBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
getBuyerLead(requestParameters: BuyersApiGetBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
|
|
75
101
|
/**
|
|
76
102
|
*
|
|
77
103
|
*/
|
|
@@ -112,6 +138,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
112
138
|
*
|
|
113
139
|
*/
|
|
114
140
|
patchDomainTransferConfirmation(requestParameters: BuyersApiPatchDomainTransferConfirmationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
putBuyerOfferRaw(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
putBuyerOffer(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
115
149
|
/**
|
|
116
150
|
*
|
|
117
151
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -75,6 +75,57 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function BuyersApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
BuyersApi.prototype.acceptBuyerLeadOfferRaw = 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 acceptBuyerLeadOffer().');
|
|
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: "/buyers/private/lead/{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
|
+
BuyersApi.prototype.acceptBuyerLeadOffer = 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.acceptBuyerLeadOfferRaw(requestParameters, initOverrides)];
|
|
122
|
+
case 1:
|
|
123
|
+
_a.sent();
|
|
124
|
+
return [2 /*return*/];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
78
129
|
/**
|
|
79
130
|
*
|
|
80
131
|
*/
|
|
@@ -239,6 +290,59 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
239
290
|
});
|
|
240
291
|
});
|
|
241
292
|
};
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
*/
|
|
296
|
+
BuyersApi.prototype.getBuyerLeadRaw = function (requestParameters, initOverrides) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
298
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
299
|
+
return __generator(this, function (_a) {
|
|
300
|
+
switch (_a.label) {
|
|
301
|
+
case 0:
|
|
302
|
+
if (requestParameters['leadId'] == null) {
|
|
303
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getBuyerLead().');
|
|
304
|
+
}
|
|
305
|
+
queryParameters = {};
|
|
306
|
+
headerParameters = {};
|
|
307
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
308
|
+
token = this.configuration.accessToken;
|
|
309
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
310
|
+
case 1:
|
|
311
|
+
tokenString = _a.sent();
|
|
312
|
+
if (tokenString) {
|
|
313
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
314
|
+
}
|
|
315
|
+
_a.label = 2;
|
|
316
|
+
case 2: return [4 /*yield*/, this.request({
|
|
317
|
+
path: "/buyers/private/lead/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
318
|
+
method: 'GET',
|
|
319
|
+
headers: headerParameters,
|
|
320
|
+
query: queryParameters,
|
|
321
|
+
}, initOverrides)];
|
|
322
|
+
case 3:
|
|
323
|
+
response = _a.sent();
|
|
324
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadDtoFromJSON)(jsonValue); })];
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
*/
|
|
332
|
+
BuyersApi.prototype.getBuyerLead = function (requestParameters, initOverrides) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
334
|
+
var response;
|
|
335
|
+
return __generator(this, function (_a) {
|
|
336
|
+
switch (_a.label) {
|
|
337
|
+
case 0: return [4 /*yield*/, this.getBuyerLeadRaw(requestParameters, initOverrides)];
|
|
338
|
+
case 1:
|
|
339
|
+
response = _a.sent();
|
|
340
|
+
return [4 /*yield*/, response.value()];
|
|
341
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
};
|
|
242
346
|
/**
|
|
243
347
|
*
|
|
244
348
|
*/
|
|
@@ -527,6 +631,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
527
631
|
});
|
|
528
632
|
});
|
|
529
633
|
};
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
*/
|
|
637
|
+
BuyersApi.prototype.putBuyerOfferRaw = function (requestParameters, initOverrides) {
|
|
638
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
639
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
640
|
+
return __generator(this, function (_a) {
|
|
641
|
+
switch (_a.label) {
|
|
642
|
+
case 0:
|
|
643
|
+
if (requestParameters['leadId'] == null) {
|
|
644
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling putBuyerOffer().');
|
|
645
|
+
}
|
|
646
|
+
if (requestParameters['putBuyerLeadOfferInput'] == null) {
|
|
647
|
+
throw new runtime.RequiredError('putBuyerLeadOfferInput', 'Required parameter "putBuyerLeadOfferInput" was null or undefined when calling putBuyerOffer().');
|
|
648
|
+
}
|
|
649
|
+
queryParameters = {};
|
|
650
|
+
headerParameters = {};
|
|
651
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
652
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
653
|
+
token = this.configuration.accessToken;
|
|
654
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
655
|
+
case 1:
|
|
656
|
+
tokenString = _a.sent();
|
|
657
|
+
if (tokenString) {
|
|
658
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
659
|
+
}
|
|
660
|
+
_a.label = 2;
|
|
661
|
+
case 2: return [4 /*yield*/, this.request({
|
|
662
|
+
path: "/buyers/private/lead/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
663
|
+
method: 'PUT',
|
|
664
|
+
headers: headerParameters,
|
|
665
|
+
query: queryParameters,
|
|
666
|
+
body: (0, index_1.PutBuyerLeadOfferInputToJSON)(requestParameters['putBuyerLeadOfferInput']),
|
|
667
|
+
}, initOverrides)];
|
|
668
|
+
case 3:
|
|
669
|
+
response = _a.sent();
|
|
670
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
});
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
*/
|
|
678
|
+
BuyersApi.prototype.putBuyerOffer = function (requestParameters, initOverrides) {
|
|
679
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
680
|
+
return __generator(this, function (_a) {
|
|
681
|
+
switch (_a.label) {
|
|
682
|
+
case 0: return [4 /*yield*/, this.putBuyerOfferRaw(requestParameters, initOverrides)];
|
|
683
|
+
case 1:
|
|
684
|
+
_a.sent();
|
|
685
|
+
return [2 /*return*/];
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
});
|
|
689
|
+
};
|
|
530
690
|
/**
|
|
531
691
|
*
|
|
532
692
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,10 +24,10 @@ export interface AccountSettingsInput {
|
|
|
24
24
|
name?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {MoneyDto}
|
|
28
28
|
* @memberof AccountSettingsInput
|
|
29
29
|
*/
|
|
30
|
-
defaultStartingOffer?:
|
|
30
|
+
defaultStartingOffer?: MoneyDto;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
@@ -17,7 +17,7 @@ exports.instanceOfAccountSettingsInput = instanceOfAccountSettingsInput;
|
|
|
17
17
|
exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
|
|
18
18
|
exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
|
|
19
19
|
exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
|
|
20
|
-
var
|
|
20
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
21
21
|
/**
|
|
22
22
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
23
23
|
*/
|
|
@@ -33,7 +33,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
-
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0,
|
|
36
|
+
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
|
|
37
37
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@ function AccountSettingsInputToJSON(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
'name': value['name'],
|
|
46
|
-
'defaultStartingOffer': (0,
|
|
46
|
+
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
|
|
47
47
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -18,7 +18,7 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
20
20
|
/**
|
|
21
|
-
* The
|
|
21
|
+
* The lead id
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
|
30
30
|
*/
|
|
31
31
|
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* The lead last offer amount
|
|
34
34
|
* @type {MoneyDto}
|
|
35
35
|
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
36
36
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { LeadMessageData } from './LeadMessageData';
|
|
13
|
+
import type { LeadDomainDto } from './LeadDomainDto';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -18,7 +19,7 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
18
19
|
*/
|
|
19
20
|
export interface IntersectionLeadDtoWithListFieldsDto {
|
|
20
21
|
/**
|
|
21
|
-
* The
|
|
22
|
+
* The lead id
|
|
22
23
|
* @type {string}
|
|
23
24
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
24
25
|
*/
|
|
@@ -30,7 +31,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
30
31
|
*/
|
|
31
32
|
status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* The lead last offer amount
|
|
34
35
|
* @type {MoneyDto}
|
|
35
36
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
36
37
|
*/
|
|
@@ -65,6 +66,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
65
66
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
66
67
|
*/
|
|
67
68
|
createdAt: Date;
|
|
69
|
+
/**
|
|
70
|
+
* Domain information
|
|
71
|
+
* @type {LeadDomainDto}
|
|
72
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
73
|
+
*/
|
|
74
|
+
domain: LeadDomainDto;
|
|
68
75
|
/**
|
|
69
76
|
*
|
|
70
77
|
* @type {string}
|
|
@@ -125,6 +132,8 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = typeof Int
|
|
|
125
132
|
*/
|
|
126
133
|
export declare const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum: {
|
|
127
134
|
readonly OFFER: "offer";
|
|
135
|
+
readonly OFFER_WITHDRAWN: "offer_withdrawn";
|
|
136
|
+
readonly OFFER_REJECTED: "offer_rejected";
|
|
128
137
|
readonly MESSAGE: "message";
|
|
129
138
|
};
|
|
130
139
|
export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
|
|
@@ -19,6 +19,7 @@ exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = IntersectionLeadDtoWithLi
|
|
|
19
19
|
exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
|
|
20
20
|
exports.IntersectionLeadDtoWithListFieldsDtoToJSON = IntersectionLeadDtoWithListFieldsDtoToJSON;
|
|
21
21
|
var LeadMessageData_1 = require("./LeadMessageData");
|
|
22
|
+
var LeadDomainDto_1 = require("./LeadDomainDto");
|
|
22
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -52,6 +53,8 @@ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = {
|
|
|
52
53
|
*/
|
|
53
54
|
exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
|
|
54
55
|
OFFER: 'offer',
|
|
56
|
+
OFFER_WITHDRAWN: 'offer_withdrawn',
|
|
57
|
+
OFFER_REJECTED: 'offer_rejected',
|
|
55
58
|
MESSAGE: 'message'
|
|
56
59
|
};
|
|
57
60
|
/**
|
|
@@ -74,6 +77,8 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
|
|
|
74
77
|
return false;
|
|
75
78
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
76
79
|
return false;
|
|
80
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
81
|
+
return false;
|
|
77
82
|
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
78
83
|
return false;
|
|
79
84
|
if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
|
|
@@ -100,6 +105,7 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
|
|
|
100
105
|
'lastMessageType': json['lastMessageType'],
|
|
101
106
|
'lastMessageData': (0, LeadMessageData_1.LeadMessageDataFromJSON)(json['lastMessageData']),
|
|
102
107
|
'createdAt': (new Date(json['createdAt'])),
|
|
108
|
+
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
103
109
|
'domainName': json['domainName'],
|
|
104
110
|
'buyerInitials': json['buyerInitials'],
|
|
105
111
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
@@ -119,6 +125,7 @@ function IntersectionLeadDtoWithListFieldsDtoToJSON(value) {
|
|
|
119
125
|
'lastMessageType': value['lastMessageType'],
|
|
120
126
|
'lastMessageData': (0, LeadMessageData_1.LeadMessageDataToJSON)(value['lastMessageData']),
|
|
121
127
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
128
|
+
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
122
129
|
'domainName': value['domainName'],
|
|
123
130
|
'buyerInitials': value['buyerInitials'],
|
|
124
131
|
'lastMessageMessage': value['lastMessageMessage'],
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LeadDomainDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadDomainDto {
|
|
18
|
+
/**
|
|
19
|
+
* The domain id
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LeadDomainDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LeadDomainDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Domain currency code
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadDomainDto
|
|
34
|
+
*/
|
|
35
|
+
currencyCode: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LeadDomainDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLeadDomainDto(value: object): value is LeadDomainDto;
|
|
41
|
+
export declare function LeadDomainDtoFromJSON(json: any): LeadDomainDto;
|
|
42
|
+
export declare function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDomainDto;
|
|
43
|
+
export declare function LeadDomainDtoToJSON(value?: LeadDomainDto | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfLeadDomainDto = instanceOfLeadDomainDto;
|
|
17
|
+
exports.LeadDomainDtoFromJSON = LeadDomainDtoFromJSON;
|
|
18
|
+
exports.LeadDomainDtoFromJSONTyped = LeadDomainDtoFromJSONTyped;
|
|
19
|
+
exports.LeadDomainDtoToJSON = LeadDomainDtoToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the LeadDomainDto interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfLeadDomainDto(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function LeadDomainDtoFromJSON(json) {
|
|
33
|
+
return LeadDomainDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'currencyCode': json['currencyCode'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function LeadDomainDtoToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'currencyCode': value['currencyCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { LeadDomainDto } from './LeadDomainDto';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LeadDto
|
|
18
|
+
*/
|
|
19
|
+
export interface LeadDto {
|
|
20
|
+
/**
|
|
21
|
+
* The lead id
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof LeadDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The current lead status
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof LeadDto
|
|
30
|
+
*/
|
|
31
|
+
status: LeadDtoStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
* The lead last offer amount
|
|
34
|
+
* @type {MoneyDto}
|
|
35
|
+
* @memberof LeadDto
|
|
36
|
+
*/
|
|
37
|
+
lastOffer: MoneyDto | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof LeadDto
|
|
42
|
+
*/
|
|
43
|
+
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
44
|
+
/**
|
|
45
|
+
* Created at date
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof LeadDto
|
|
48
|
+
*/
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Domain information
|
|
52
|
+
* @type {LeadDomainDto}
|
|
53
|
+
* @memberof LeadDto
|
|
54
|
+
*/
|
|
55
|
+
domain: LeadDomainDto;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const LeadDtoStatusEnum: {
|
|
61
|
+
readonly UNVERIFIED: "unverified";
|
|
62
|
+
readonly ACTIVE: "active";
|
|
63
|
+
readonly ACCEPTED: "accepted";
|
|
64
|
+
readonly FINISHED: "finished";
|
|
65
|
+
readonly DELETED: "deleted";
|
|
66
|
+
readonly ARCHIVED: "archived";
|
|
67
|
+
};
|
|
68
|
+
export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const LeadDtoLastOfferByEnum: {
|
|
73
|
+
readonly BUYER: "buyer";
|
|
74
|
+
readonly SELLER: "seller";
|
|
75
|
+
readonly ADMIN: "admin";
|
|
76
|
+
};
|
|
77
|
+
export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the LeadDto interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfLeadDto(value: object): value is LeadDto;
|
|
82
|
+
export declare function LeadDtoFromJSON(json: any): LeadDto;
|
|
83
|
+
export declare function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto;
|
|
84
|
+
export declare function LeadDtoToJSON(value?: LeadDto | null): any;
|