@randock/nameshift-api-client 0.0.412 → 0.0.414
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AddressPublicApi.d.ts +30 -0
- package/dist/apis/AddressPublicApi.js +133 -0
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminLeadListItemBuyerDto.d.ts +68 -0
- package/dist/models/AdminLeadListItemBuyerDto.js +75 -0
- package/dist/models/AdminLeadListItemDomainDto.d.ts +44 -0
- package/dist/models/AdminLeadListItemDomainDto.js +59 -0
- package/dist/models/AdminLeadListItemDto.d.ts +181 -0
- package/dist/models/AdminLeadListItemDto.js +164 -0
- package/dist/models/ListLeads200Response.d.ts +47 -0
- package/dist/models/ListLeads200Response.js +62 -0
- package/dist/models/StateDto.d.ts +44 -0
- package/dist/models/StateDto.js +59 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/AddressPublicApi.ts +86 -0
- package/src/apis/AdminApi.ts +60 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminLeadListItemBuyerDto.ts +120 -0
- package/src/models/AdminLeadListItemDomainDto.ts +84 -0
- package/src/models/AdminLeadListItemDto.ts +295 -0
- package/src/models/ListLeads200Response.ts +106 -0
- package/src/models/StateDto.ts +84 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
StateDto,
|
|
19
|
+
ValidationException,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
StateDtoFromJSON,
|
|
23
|
+
StateDtoToJSON,
|
|
24
|
+
ValidationExceptionFromJSON,
|
|
25
|
+
ValidationExceptionToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface AddressPublicApiListStatesByCountryRequest {
|
|
29
|
+
countryCode: string;
|
|
30
|
+
locale: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export class AddressPublicApi extends runtime.BaseAPI {
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* List states by country code
|
|
40
|
+
*/
|
|
41
|
+
async listStatesByCountryRaw(requestParameters: AddressPublicApiListStatesByCountryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StateDto>>> {
|
|
42
|
+
if (requestParameters['countryCode'] == null) {
|
|
43
|
+
throw new runtime.RequiredError(
|
|
44
|
+
'countryCode',
|
|
45
|
+
'Required parameter "countryCode" was null or undefined when calling listStatesByCountry().'
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (requestParameters['locale'] == null) {
|
|
50
|
+
throw new runtime.RequiredError(
|
|
51
|
+
'locale',
|
|
52
|
+
'Required parameter "locale" was null or undefined when calling listStatesByCountry().'
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const queryParameters: any = {};
|
|
57
|
+
|
|
58
|
+
if (requestParameters['countryCode'] != null) {
|
|
59
|
+
queryParameters['countryCode'] = requestParameters['countryCode'];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (requestParameters['locale'] != null) {
|
|
63
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
67
|
+
|
|
68
|
+
const response = await this.request({
|
|
69
|
+
path: `/address/states`,
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StateDtoFromJSON));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* List states by country code
|
|
80
|
+
*/
|
|
81
|
+
async listStatesByCountry(requestParameters: AddressPublicApiListStatesByCountryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StateDto>> {
|
|
82
|
+
const response = await this.listStatesByCountryRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -48,6 +48,7 @@ import type {
|
|
|
48
48
|
ListAccounts200Response,
|
|
49
49
|
ListBankAccounts200Response,
|
|
50
50
|
ListDomains200Response,
|
|
51
|
+
ListLeads200Response,
|
|
51
52
|
NotFoundException,
|
|
52
53
|
ObjectId,
|
|
53
54
|
SellerSalesByTldStatsItemDto,
|
|
@@ -126,6 +127,8 @@ import {
|
|
|
126
127
|
ListBankAccounts200ResponseToJSON,
|
|
127
128
|
ListDomains200ResponseFromJSON,
|
|
128
129
|
ListDomains200ResponseToJSON,
|
|
130
|
+
ListLeads200ResponseFromJSON,
|
|
131
|
+
ListLeads200ResponseToJSON,
|
|
129
132
|
NotFoundExceptionFromJSON,
|
|
130
133
|
NotFoundExceptionToJSON,
|
|
131
134
|
ObjectIdFromJSON,
|
|
@@ -322,6 +325,13 @@ export interface AdminApiListDomainsRequest {
|
|
|
322
325
|
sortBy?: Array<string>;
|
|
323
326
|
}
|
|
324
327
|
|
|
328
|
+
export interface AdminApiListLeadsRequest {
|
|
329
|
+
filter?: object;
|
|
330
|
+
page?: number;
|
|
331
|
+
limit?: number;
|
|
332
|
+
sortBy?: Array<string>;
|
|
333
|
+
}
|
|
334
|
+
|
|
325
335
|
export interface AdminApiListLedgerMutationsRequest {
|
|
326
336
|
ledgerId: string;
|
|
327
337
|
page: number;
|
|
@@ -1986,6 +1996,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1986
1996
|
return await response.value();
|
|
1987
1997
|
}
|
|
1988
1998
|
|
|
1999
|
+
/**
|
|
2000
|
+
*
|
|
2001
|
+
*/
|
|
2002
|
+
async listLeadsRaw(requestParameters: AdminApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeads200Response>> {
|
|
2003
|
+
const queryParameters: any = {};
|
|
2004
|
+
|
|
2005
|
+
if (requestParameters['filter'] != null) {
|
|
2006
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
if (requestParameters['page'] != null) {
|
|
2010
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
if (requestParameters['limit'] != null) {
|
|
2014
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
if (requestParameters['sortBy'] != null) {
|
|
2018
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2022
|
+
|
|
2023
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2024
|
+
const token = this.configuration.accessToken;
|
|
2025
|
+
const tokenString = await token("bearer", []);
|
|
2026
|
+
|
|
2027
|
+
if (tokenString) {
|
|
2028
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
const response = await this.request({
|
|
2032
|
+
path: `/admin/leads`,
|
|
2033
|
+
method: 'GET',
|
|
2034
|
+
headers: headerParameters,
|
|
2035
|
+
query: queryParameters,
|
|
2036
|
+
}, initOverrides);
|
|
2037
|
+
|
|
2038
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListLeads200ResponseFromJSON(jsonValue));
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
*
|
|
2043
|
+
*/
|
|
2044
|
+
async listLeads(requestParameters: AdminApiListLeadsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeads200Response> {
|
|
2045
|
+
const response = await this.listLeadsRaw(requestParameters, initOverrides);
|
|
2046
|
+
return await response.value();
|
|
2047
|
+
}
|
|
2048
|
+
|
|
1989
2049
|
/**
|
|
1990
2050
|
*
|
|
1991
2051
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminLeadListItemBuyerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminLeadListItemBuyerDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
32
|
+
*/
|
|
33
|
+
ipCountryCode: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
38
|
+
*/
|
|
39
|
+
companyName: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
44
|
+
*/
|
|
45
|
+
phoneNumber: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
50
|
+
*/
|
|
51
|
+
initials: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
56
|
+
*/
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
62
|
+
*/
|
|
63
|
+
email: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the AdminLeadListItemBuyerDto interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfAdminLeadListItemBuyerDto(value: object): value is AdminLeadListItemBuyerDto {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined) return false;
|
|
72
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
73
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
74
|
+
if (!('initials' in value) || value['initials'] === undefined) return false;
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AdminLeadListItemBuyerDtoFromJSON(json: any): AdminLeadListItemBuyerDto {
|
|
81
|
+
return AdminLeadListItemBuyerDtoFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AdminLeadListItemBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLeadListItemBuyerDto {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'ipCountryCode': json['ipCountryCode'],
|
|
92
|
+
'companyName': json['companyName'],
|
|
93
|
+
'phoneNumber': json['phoneNumber'],
|
|
94
|
+
'initials': json['initials'],
|
|
95
|
+
'name': json['name'],
|
|
96
|
+
'email': json['email'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function AdminLeadListItemBuyerDtoToJSON(json: any): AdminLeadListItemBuyerDto {
|
|
101
|
+
return AdminLeadListItemBuyerDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AdminLeadListItemBuyerDtoToJSONTyped(value?: AdminLeadListItemBuyerDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'ipCountryCode': value['ipCountryCode'],
|
|
113
|
+
'companyName': value['companyName'],
|
|
114
|
+
'phoneNumber': value['phoneNumber'],
|
|
115
|
+
'initials': value['initials'],
|
|
116
|
+
'name': value['name'],
|
|
117
|
+
'email': value['email'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminLeadListItemDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminLeadListItemDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminLeadListItemDomainDto
|
|
26
|
+
*/
|
|
27
|
+
tld: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminLeadListItemDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminLeadListItemDomainDto
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AdminLeadListItemDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAdminLeadListItemDomainDto(value: object): value is AdminLeadListItemDomainDto {
|
|
46
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AdminLeadListItemDomainDtoFromJSON(json: any): AdminLeadListItemDomainDto {
|
|
53
|
+
return AdminLeadListItemDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AdminLeadListItemDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLeadListItemDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'tld': json['tld'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'displayName': json['displayName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AdminLeadListItemDomainDtoToJSON(json: any): AdminLeadListItemDomainDto {
|
|
69
|
+
return AdminLeadListItemDomainDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AdminLeadListItemDomainDtoToJSONTyped(value?: AdminLeadListItemDomainDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'tld': value['tld'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'displayName': value['displayName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
import type { AdminLeadListItemBuyerDto } from './AdminLeadListItemBuyerDto';
|
|
24
|
+
import {
|
|
25
|
+
AdminLeadListItemBuyerDtoFromJSON,
|
|
26
|
+
AdminLeadListItemBuyerDtoFromJSONTyped,
|
|
27
|
+
AdminLeadListItemBuyerDtoToJSON,
|
|
28
|
+
AdminLeadListItemBuyerDtoToJSONTyped,
|
|
29
|
+
} from './AdminLeadListItemBuyerDto';
|
|
30
|
+
import type { AdminLeadListItemDomainDto } from './AdminLeadListItemDomainDto';
|
|
31
|
+
import {
|
|
32
|
+
AdminLeadListItemDomainDtoFromJSON,
|
|
33
|
+
AdminLeadListItemDomainDtoFromJSONTyped,
|
|
34
|
+
AdminLeadListItemDomainDtoToJSON,
|
|
35
|
+
AdminLeadListItemDomainDtoToJSONTyped,
|
|
36
|
+
} from './AdminLeadListItemDomainDto';
|
|
37
|
+
import type { AccountDto } from './AccountDto';
|
|
38
|
+
import {
|
|
39
|
+
AccountDtoFromJSON,
|
|
40
|
+
AccountDtoFromJSONTyped,
|
|
41
|
+
AccountDtoToJSON,
|
|
42
|
+
AccountDtoToJSONTyped,
|
|
43
|
+
} from './AccountDto';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AdminLeadListItemDto
|
|
49
|
+
*/
|
|
50
|
+
export interface AdminLeadListItemDto {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AdminLeadListItemDto
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AdminLeadListItemDto
|
|
61
|
+
*/
|
|
62
|
+
status: AdminLeadListItemDtoStatusEnum;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof AdminLeadListItemDto
|
|
67
|
+
*/
|
|
68
|
+
source: AdminLeadListItemDtoSourceEnum;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AdminLeadListItemDto
|
|
73
|
+
*/
|
|
74
|
+
manualType: AdminLeadListItemDtoManualTypeEnum | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {MoneyDto}
|
|
78
|
+
* @memberof AdminLeadListItemDto
|
|
79
|
+
*/
|
|
80
|
+
lastOffer: MoneyDto | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AdminLeadListItemDto
|
|
85
|
+
*/
|
|
86
|
+
lastOfferBy: AdminLeadListItemDtoLastOfferByEnum | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof AdminLeadListItemDto
|
|
91
|
+
*/
|
|
92
|
+
lastOfferType: AdminLeadListItemDtoLastOfferTypeEnum | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {AccountDto}
|
|
96
|
+
* @memberof AdminLeadListItemDto
|
|
97
|
+
*/
|
|
98
|
+
account: AccountDto;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof AdminLeadListItemDto
|
|
103
|
+
*/
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof AdminLeadListItemDto
|
|
109
|
+
*/
|
|
110
|
+
updatedAt: Date;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof AdminLeadListItemDto
|
|
115
|
+
*/
|
|
116
|
+
archivedForSeller: boolean;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof AdminLeadListItemDto
|
|
121
|
+
*/
|
|
122
|
+
unreadBuyerMessagesNumber: number;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof AdminLeadListItemDto
|
|
127
|
+
*/
|
|
128
|
+
unreadSellerMessagesNumber: number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {Date}
|
|
132
|
+
* @memberof AdminLeadListItemDto
|
|
133
|
+
*/
|
|
134
|
+
acceptedAt: Date | null;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {Date}
|
|
138
|
+
* @memberof AdminLeadListItemDto
|
|
139
|
+
*/
|
|
140
|
+
closedAt: Date | null;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {AdminLeadListItemDomainDto}
|
|
144
|
+
* @memberof AdminLeadListItemDto
|
|
145
|
+
*/
|
|
146
|
+
domain: AdminLeadListItemDomainDto;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {AdminLeadListItemBuyerDto}
|
|
150
|
+
* @memberof AdminLeadListItemDto
|
|
151
|
+
*/
|
|
152
|
+
buyer: AdminLeadListItemBuyerDto;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @export
|
|
158
|
+
*/
|
|
159
|
+
export const AdminLeadListItemDtoStatusEnum = {
|
|
160
|
+
UNVERIFIED: 'unverified',
|
|
161
|
+
ACTIVE: 'active',
|
|
162
|
+
ACCEPTED: 'accepted',
|
|
163
|
+
FINISHED: 'finished',
|
|
164
|
+
CLOSED: 'closed'
|
|
165
|
+
} as const;
|
|
166
|
+
export type AdminLeadListItemDtoStatusEnum = typeof AdminLeadListItemDtoStatusEnum[keyof typeof AdminLeadListItemDtoStatusEnum];
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @export
|
|
170
|
+
*/
|
|
171
|
+
export const AdminLeadListItemDtoSourceEnum = {
|
|
172
|
+
NAMESHIFT_HOSTED: 'nameshift_hosted',
|
|
173
|
+
SELLER_IMPORTED: 'seller_imported'
|
|
174
|
+
} as const;
|
|
175
|
+
export type AdminLeadListItemDtoSourceEnum = typeof AdminLeadListItemDtoSourceEnum[keyof typeof AdminLeadListItemDtoSourceEnum];
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @export
|
|
179
|
+
*/
|
|
180
|
+
export const AdminLeadListItemDtoManualTypeEnum = {
|
|
181
|
+
BUY_NOW: 'buy_now',
|
|
182
|
+
OFFER: 'offer',
|
|
183
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
184
|
+
RENT: 'rent'
|
|
185
|
+
} as const;
|
|
186
|
+
export type AdminLeadListItemDtoManualTypeEnum = typeof AdminLeadListItemDtoManualTypeEnum[keyof typeof AdminLeadListItemDtoManualTypeEnum];
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @export
|
|
190
|
+
*/
|
|
191
|
+
export const AdminLeadListItemDtoLastOfferByEnum = {
|
|
192
|
+
BUYER: 'buyer',
|
|
193
|
+
SELLER: 'seller',
|
|
194
|
+
AI: 'ai',
|
|
195
|
+
ADMIN: 'admin'
|
|
196
|
+
} as const;
|
|
197
|
+
export type AdminLeadListItemDtoLastOfferByEnum = typeof AdminLeadListItemDtoLastOfferByEnum[keyof typeof AdminLeadListItemDtoLastOfferByEnum];
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @export
|
|
201
|
+
*/
|
|
202
|
+
export const AdminLeadListItemDtoLastOfferTypeEnum = {
|
|
203
|
+
LEAD: 'lead',
|
|
204
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
205
|
+
RENT: 'rent',
|
|
206
|
+
AUCTION: 'auction'
|
|
207
|
+
} as const;
|
|
208
|
+
export type AdminLeadListItemDtoLastOfferTypeEnum = typeof AdminLeadListItemDtoLastOfferTypeEnum[keyof typeof AdminLeadListItemDtoLastOfferTypeEnum];
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Check if a given object implements the AdminLeadListItemDto interface.
|
|
213
|
+
*/
|
|
214
|
+
export function instanceOfAdminLeadListItemDto(value: object): value is AdminLeadListItemDto {
|
|
215
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
216
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
217
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
218
|
+
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
219
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
220
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
221
|
+
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
|
|
222
|
+
if (!('account' in value) || value['account'] === undefined) return false;
|
|
223
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
224
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
225
|
+
if (!('archivedForSeller' in value) || value['archivedForSeller'] === undefined) return false;
|
|
226
|
+
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
227
|
+
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
228
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
229
|
+
if (!('closedAt' in value) || value['closedAt'] === undefined) return false;
|
|
230
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
231
|
+
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
232
|
+
return true;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function AdminLeadListItemDtoFromJSON(json: any): AdminLeadListItemDto {
|
|
236
|
+
return AdminLeadListItemDtoFromJSONTyped(json, false);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export function AdminLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLeadListItemDto {
|
|
240
|
+
if (json == null) {
|
|
241
|
+
return json;
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
|
|
245
|
+
'id': json['id'],
|
|
246
|
+
'status': json['status'],
|
|
247
|
+
'source': json['source'],
|
|
248
|
+
'manualType': json['manualType'],
|
|
249
|
+
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
250
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
251
|
+
'lastOfferType': json['lastOfferType'],
|
|
252
|
+
'account': AccountDtoFromJSON(json['account']),
|
|
253
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
254
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
255
|
+
'archivedForSeller': json['archivedForSeller'],
|
|
256
|
+
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
257
|
+
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
258
|
+
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
259
|
+
'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
|
|
260
|
+
'domain': AdminLeadListItemDomainDtoFromJSON(json['domain']),
|
|
261
|
+
'buyer': AdminLeadListItemBuyerDtoFromJSON(json['buyer']),
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function AdminLeadListItemDtoToJSON(json: any): AdminLeadListItemDto {
|
|
266
|
+
return AdminLeadListItemDtoToJSONTyped(json, false);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export function AdminLeadListItemDtoToJSONTyped(value?: AdminLeadListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
270
|
+
if (value == null) {
|
|
271
|
+
return value;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
return {
|
|
275
|
+
|
|
276
|
+
'id': value['id'],
|
|
277
|
+
'status': value['status'],
|
|
278
|
+
'source': value['source'],
|
|
279
|
+
'manualType': value['manualType'],
|
|
280
|
+
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
281
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
282
|
+
'lastOfferType': value['lastOfferType'],
|
|
283
|
+
'account': AccountDtoToJSON(value['account']),
|
|
284
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
285
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
286
|
+
'archivedForSeller': value['archivedForSeller'],
|
|
287
|
+
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
288
|
+
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
289
|
+
'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
|
|
290
|
+
'closedAt': (value['closedAt'] == null ? null : (value['closedAt'] as any).toISOString()),
|
|
291
|
+
'domain': AdminLeadListItemDomainDtoToJSON(value['domain']),
|
|
292
|
+
'buyer': AdminLeadListItemBuyerDtoToJSON(value['buyer']),
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|