@randock/nameshift-api-client 0.0.12 → 0.0.14
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 +11 -1
- package/dist/apis/LeadsApi.d.ts +38 -3
- package/dist/apis/LeadsApi.js +170 -1
- package/dist/models/CreateLeadMessageInput.d.ts +31 -0
- package/dist/models/CreateLeadMessageInput.js +50 -0
- package/dist/models/CreateLeadMessageInputData.d.ts +32 -0
- package/dist/models/CreateLeadMessageInputData.js +51 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +75 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +73 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +81 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +83 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
- package/dist/models/LeadDto.d.ts +22 -0
- package/dist/models/LeadDto.js +16 -1
- package/dist/models/LeadMessageData.d.ts +32 -0
- package/dist/models/LeadMessageData.js +51 -0
- package/dist/models/LeadMessageDto.d.ts +85 -0
- package/dist/models/LeadMessageDto.js +84 -0
- package/dist/models/LeadMessageDtoData.d.ts +32 -0
- package/dist/models/LeadMessageDtoData.js +51 -0
- package/dist/models/ListLeadMessagesDto.d.ts +32 -0
- package/dist/models/ListLeadMessagesDto.js +51 -0
- package/dist/models/PutLeadInput.d.ts +32 -0
- package/dist/models/PutLeadInput.js +51 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/package.json +2 -1
- package/src/apis/LeadsApi.ts +160 -6
- package/src/models/CreateLeadMessageInput.ts +66 -0
- package/src/models/CreateLeadMessageInputData.ts +73 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +146 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
- package/src/models/LeadDto.ts +35 -0
- package/src/models/LeadMessageData.ts +73 -0
- package/src/models/LeadMessageDto.ts +148 -0
- package/src/models/LeadMessageDtoData.ts +73 -0
- package/src/models/ListLeadMessagesDto.ts +73 -0
- package/src/models/PutLeadInput.ts +73 -0
- package/src/models/index.ts +11 -1
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -15,23 +15,49 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
CreateLeadMessageInput,
|
|
19
|
+
IntersectionLeadDtoWithLeadDetailsDto,
|
|
19
20
|
IntersectionLeadDtoWithListFieldsDto,
|
|
21
|
+
LeadMessageDto,
|
|
22
|
+
ListLeadMessagesDto,
|
|
23
|
+
PutLeadInput,
|
|
20
24
|
UpdateSettings429Response,
|
|
21
25
|
} from '../models/index';
|
|
22
26
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
CreateLeadMessageInputFromJSON,
|
|
28
|
+
CreateLeadMessageInputToJSON,
|
|
29
|
+
IntersectionLeadDtoWithLeadDetailsDtoFromJSON,
|
|
30
|
+
IntersectionLeadDtoWithLeadDetailsDtoToJSON,
|
|
25
31
|
IntersectionLeadDtoWithListFieldsDtoFromJSON,
|
|
26
32
|
IntersectionLeadDtoWithListFieldsDtoToJSON,
|
|
33
|
+
LeadMessageDtoFromJSON,
|
|
34
|
+
LeadMessageDtoToJSON,
|
|
35
|
+
ListLeadMessagesDtoFromJSON,
|
|
36
|
+
ListLeadMessagesDtoToJSON,
|
|
37
|
+
PutLeadInputFromJSON,
|
|
38
|
+
PutLeadInputToJSON,
|
|
27
39
|
UpdateSettings429ResponseFromJSON,
|
|
28
40
|
UpdateSettings429ResponseToJSON,
|
|
29
41
|
} from '../models/index';
|
|
30
42
|
|
|
43
|
+
export interface CreateMessageRequest {
|
|
44
|
+
leadId: string;
|
|
45
|
+
createLeadMessageInput: CreateLeadMessageInput;
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
export interface GetRequest {
|
|
32
49
|
leadId: string;
|
|
33
50
|
}
|
|
34
51
|
|
|
52
|
+
export interface GetMessagesRequest {
|
|
53
|
+
leadId: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface PutOfferRequest {
|
|
57
|
+
leadId: string;
|
|
58
|
+
putLeadInput: PutLeadInput;
|
|
59
|
+
}
|
|
60
|
+
|
|
35
61
|
/**
|
|
36
62
|
*
|
|
37
63
|
*/
|
|
@@ -40,7 +66,52 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
40
66
|
/**
|
|
41
67
|
*
|
|
42
68
|
*/
|
|
43
|
-
async
|
|
69
|
+
async createMessageRaw(requestParameters: CreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>> {
|
|
70
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
71
|
+
throw new runtime.RequiredError('leadId','Required parameter requestParameters.leadId was null or undefined when calling createMessage.');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (requestParameters.createLeadMessageInput === null || requestParameters.createLeadMessageInput === undefined) {
|
|
75
|
+
throw new runtime.RequiredError('createLeadMessageInput','Required parameter requestParameters.createLeadMessageInput was null or undefined when calling createMessage.');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const queryParameters: any = {};
|
|
79
|
+
|
|
80
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
|
+
|
|
82
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
+
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
const token = this.configuration.accessToken;
|
|
86
|
+
const tokenString = await token("bearer", []);
|
|
87
|
+
|
|
88
|
+
if (tokenString) {
|
|
89
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const response = await this.request({
|
|
93
|
+
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters.leadId))),
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: CreateLeadMessageInputToJSON(requestParameters.createLeadMessageInput),
|
|
98
|
+
}, initOverrides);
|
|
99
|
+
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadMessageDtoFromJSON(jsonValue));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
async createMessage(requestParameters: CreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto> {
|
|
107
|
+
const response = await this.createMessageRaw(requestParameters, initOverrides);
|
|
108
|
+
return await response.value();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
async getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>> {
|
|
44
115
|
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
45
116
|
throw new runtime.RequiredError('leadId','Required parameter requestParameters.leadId was null or undefined when calling get.');
|
|
46
117
|
}
|
|
@@ -64,17 +135,55 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
64
135
|
query: queryParameters,
|
|
65
136
|
}, initOverrides);
|
|
66
137
|
|
|
67
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionLeadDtoWithLeadDetailsDtoFromJSON(jsonValue));
|
|
68
139
|
}
|
|
69
140
|
|
|
70
141
|
/**
|
|
71
142
|
*
|
|
72
143
|
*/
|
|
73
|
-
async get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
144
|
+
async get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto> {
|
|
74
145
|
const response = await this.getRaw(requestParameters, initOverrides);
|
|
75
146
|
return await response.value();
|
|
76
147
|
}
|
|
77
148
|
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
async getMessagesRaw(requestParameters: GetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeadMessagesDto>> {
|
|
153
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
154
|
+
throw new runtime.RequiredError('leadId','Required parameter requestParameters.leadId was null or undefined when calling getMessages.');
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const queryParameters: any = {};
|
|
158
|
+
|
|
159
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
160
|
+
|
|
161
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
162
|
+
const token = this.configuration.accessToken;
|
|
163
|
+
const tokenString = await token("bearer", []);
|
|
164
|
+
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
const response = await this.request({
|
|
170
|
+
path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters.leadId))),
|
|
171
|
+
method: 'GET',
|
|
172
|
+
headers: headerParameters,
|
|
173
|
+
query: queryParameters,
|
|
174
|
+
}, initOverrides);
|
|
175
|
+
|
|
176
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListLeadMessagesDtoFromJSON(jsonValue));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
async getMessages(requestParameters: GetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeadMessagesDto> {
|
|
183
|
+
const response = await this.getMessagesRaw(requestParameters, initOverrides);
|
|
184
|
+
return await response.value();
|
|
185
|
+
}
|
|
186
|
+
|
|
78
187
|
/**
|
|
79
188
|
*
|
|
80
189
|
*/
|
|
@@ -109,4 +218,49 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
109
218
|
return await response.value();
|
|
110
219
|
}
|
|
111
220
|
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
async putOfferRaw(requestParameters: PutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>> {
|
|
225
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
226
|
+
throw new runtime.RequiredError('leadId','Required parameter requestParameters.leadId was null or undefined when calling putOffer.');
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (requestParameters.putLeadInput === null || requestParameters.putLeadInput === undefined) {
|
|
230
|
+
throw new runtime.RequiredError('putLeadInput','Required parameter requestParameters.putLeadInput was null or undefined when calling putOffer.');
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const queryParameters: any = {};
|
|
234
|
+
|
|
235
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
236
|
+
|
|
237
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
238
|
+
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = await token("bearer", []);
|
|
242
|
+
|
|
243
|
+
if (tokenString) {
|
|
244
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
const response = await this.request({
|
|
248
|
+
path: `/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters.leadId))),
|
|
249
|
+
method: 'PUT',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
body: PutLeadInputToJSON(requestParameters.putLeadInput),
|
|
253
|
+
}, initOverrides);
|
|
254
|
+
|
|
255
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadMessageDtoFromJSON(jsonValue));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
261
|
+
async putOffer(requestParameters: PutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto> {
|
|
262
|
+
const response = await this.putOfferRaw(requestParameters, initOverrides);
|
|
263
|
+
return await response.value();
|
|
264
|
+
}
|
|
265
|
+
|
|
112
266
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateLeadMessageInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateLeadMessageInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateLeadMessageInput
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateLeadMessageInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateLeadMessageInput(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "message" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function CreateLeadMessageInputFromJSON(json: any): CreateLeadMessageInput {
|
|
41
|
+
return CreateLeadMessageInputFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CreateLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInput {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'message': json['message'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function CreateLeadMessageInputToJSON(value?: CreateLeadMessageInput | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value.message,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateLeadMessageInputData
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateLeadMessageInputData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof CreateLeadMessageInputData
|
|
33
|
+
*/
|
|
34
|
+
price: MoneyDto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateLeadMessageInputData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfCreateLeadMessageInputData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "price" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CreateLeadMessageInputDataFromJSON(json: any): CreateLeadMessageInputData {
|
|
48
|
+
return CreateLeadMessageInputDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreateLeadMessageInputDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInputData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateLeadMessageInputDataToJSON(value?: CreateLeadMessageInputData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'price': MoneyDtoToJSON(value.price),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { AccountDto } from './AccountDto';
|
|
17
|
+
import {
|
|
18
|
+
AccountDtoFromJSON,
|
|
19
|
+
AccountDtoFromJSONTyped,
|
|
20
|
+
AccountDtoToJSON,
|
|
21
|
+
} from './AccountDto';
|
|
22
|
+
import type { MoneyDto } from './MoneyDto';
|
|
23
|
+
import {
|
|
24
|
+
MoneyDtoFromJSON,
|
|
25
|
+
MoneyDtoFromJSONTyped,
|
|
26
|
+
MoneyDtoToJSON,
|
|
27
|
+
} from './MoneyDto';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface IntersectionDomainDtoWithAccountDto
|
|
33
|
+
*/
|
|
34
|
+
export interface IntersectionDomainDtoWithAccountDto {
|
|
35
|
+
/**
|
|
36
|
+
* The uuid for this domain.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The TLD for this domain.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
45
|
+
*/
|
|
46
|
+
tld: string;
|
|
47
|
+
/**
|
|
48
|
+
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
51
|
+
*/
|
|
52
|
+
verified: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the nameservers (ns1,ns2) are set or not.
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
57
|
+
*/
|
|
58
|
+
nameservers: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The domain name (example.com)
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {MoneyDto}
|
|
68
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
69
|
+
*/
|
|
70
|
+
buyNow: MoneyDto;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {MoneyDto}
|
|
74
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
75
|
+
*/
|
|
76
|
+
minOffer: MoneyDto;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {AccountDto}
|
|
80
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
81
|
+
*/
|
|
82
|
+
account: AccountDto;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): boolean {
|
|
89
|
+
let isInstance = true;
|
|
90
|
+
isInstance = isInstance && "id" in value;
|
|
91
|
+
isInstance = isInstance && "tld" in value;
|
|
92
|
+
isInstance = isInstance && "verified" in value;
|
|
93
|
+
isInstance = isInstance && "nameservers" in value;
|
|
94
|
+
isInstance = isInstance && "name" in value;
|
|
95
|
+
isInstance = isInstance && "buyNow" in value;
|
|
96
|
+
isInstance = isInstance && "minOffer" in value;
|
|
97
|
+
isInstance = isInstance && "account" in value;
|
|
98
|
+
|
|
99
|
+
return isInstance;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function IntersectionDomainDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithAccountDto {
|
|
103
|
+
return IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountDto {
|
|
107
|
+
if ((json === undefined) || (json === null)) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'id': json['id'],
|
|
113
|
+
'tld': json['tld'],
|
|
114
|
+
'verified': json['verified'],
|
|
115
|
+
'nameservers': json['nameservers'],
|
|
116
|
+
'name': json['name'],
|
|
117
|
+
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
118
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
119
|
+
'account': AccountDtoFromJSON(json['account']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithAccountDto | null): any {
|
|
124
|
+
if (value === undefined) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
if (value === null) {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': value.id,
|
|
133
|
+
'tld': value.tld,
|
|
134
|
+
'verified': value.verified,
|
|
135
|
+
'nameservers': value.nameservers,
|
|
136
|
+
'name': value.name,
|
|
137
|
+
'buyNow': MoneyDtoToJSON(value.buyNow),
|
|
138
|
+
'minOffer': MoneyDtoToJSON(value.minOffer),
|
|
139
|
+
'account': AccountDtoToJSON(value.account),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionDomainDtoWithAccountDtoFromJSON,
|
|
19
|
+
IntersectionDomainDtoWithAccountDtoFromJSONTyped,
|
|
20
|
+
IntersectionDomainDtoWithAccountDtoToJSON,
|
|
21
|
+
} from './IntersectionDomainDtoWithAccountDto';
|
|
22
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
23
|
+
import {
|
|
24
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
|
|
25
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
|
|
26
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
|
|
27
|
+
} from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface IntersectionLeadDtoWithLeadDetailsDto
|
|
33
|
+
*/
|
|
34
|
+
export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
35
|
+
/**
|
|
36
|
+
* The current id
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current lead status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
45
|
+
*/
|
|
46
|
+
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
|
|
50
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
57
|
+
*/
|
|
58
|
+
lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {IntersectionDomainDtoWithAccountDto}
|
|
62
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
63
|
+
*/
|
|
64
|
+
domain: IntersectionDomainDtoWithAccountDto;
|
|
65
|
+
/**
|
|
66
|
+
* Created at date
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
69
|
+
*/
|
|
70
|
+
createdAt: Date;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
|
|
78
|
+
ACTIVE: 'active',
|
|
79
|
+
DELETED: 'deleted',
|
|
80
|
+
ARCHIVED: 'archived'
|
|
81
|
+
} as const;
|
|
82
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = {
|
|
88
|
+
BUYER: 'buyer',
|
|
89
|
+
SELLER: 'seller',
|
|
90
|
+
ADMIN: 'admin'
|
|
91
|
+
} as const;
|
|
92
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum];
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): boolean {
|
|
99
|
+
let isInstance = true;
|
|
100
|
+
isInstance = isInstance && "id" in value;
|
|
101
|
+
isInstance = isInstance && "status" in value;
|
|
102
|
+
isInstance = isInstance && "lastOffer" in value;
|
|
103
|
+
isInstance = isInstance && "lastOfferBy" in value;
|
|
104
|
+
isInstance = isInstance && "domain" in value;
|
|
105
|
+
isInstance = isInstance && "createdAt" in value;
|
|
106
|
+
|
|
107
|
+
return isInstance;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto {
|
|
111
|
+
return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto {
|
|
115
|
+
if ((json === undefined) || (json === null)) {
|
|
116
|
+
return json;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'id': json['id'],
|
|
121
|
+
'status': json['status'],
|
|
122
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['lastOffer']),
|
|
123
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
124
|
+
'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
|
|
125
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: IntersectionLeadDtoWithLeadDetailsDto | null): any {
|
|
130
|
+
if (value === undefined) {
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
if (value === null) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
|
|
138
|
+
'id': value.id,
|
|
139
|
+
'status': value.status,
|
|
140
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value.lastOffer),
|
|
141
|
+
'lastOfferBy': value.lastOfferBy,
|
|
142
|
+
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value.domain),
|
|
143
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|