@randock/nameshift-api-client 0.0.413 → 0.0.415

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.
@@ -0,0 +1,164 @@
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.AdminLeadListItemDtoLastOfferTypeEnum = exports.AdminLeadListItemDtoLastOfferByEnum = exports.AdminLeadListItemDtoManualTypeEnum = exports.AdminLeadListItemDtoSourceEnum = exports.AdminLeadListItemDtoStatusEnum = void 0;
17
+ exports.instanceOfAdminLeadListItemDto = instanceOfAdminLeadListItemDto;
18
+ exports.AdminLeadListItemDtoFromJSON = AdminLeadListItemDtoFromJSON;
19
+ exports.AdminLeadListItemDtoFromJSONTyped = AdminLeadListItemDtoFromJSONTyped;
20
+ exports.AdminLeadListItemDtoToJSON = AdminLeadListItemDtoToJSON;
21
+ exports.AdminLeadListItemDtoToJSONTyped = AdminLeadListItemDtoToJSONTyped;
22
+ var MoneyDto_1 = require("./MoneyDto");
23
+ var AdminLeadListItemBuyerDto_1 = require("./AdminLeadListItemBuyerDto");
24
+ var AdminLeadListItemDomainDto_1 = require("./AdminLeadListItemDomainDto");
25
+ var AccountDto_1 = require("./AccountDto");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.AdminLeadListItemDtoStatusEnum = {
30
+ UNVERIFIED: 'unverified',
31
+ ACTIVE: 'active',
32
+ ACCEPTED: 'accepted',
33
+ FINISHED: 'finished',
34
+ CLOSED: 'closed'
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.AdminLeadListItemDtoSourceEnum = {
40
+ NAMESHIFT_HOSTED: 'nameshift_hosted',
41
+ SELLER_IMPORTED: 'seller_imported'
42
+ };
43
+ /**
44
+ * @export
45
+ */
46
+ exports.AdminLeadListItemDtoManualTypeEnum = {
47
+ BUY_NOW: 'buy_now',
48
+ OFFER: 'offer',
49
+ LEASE_TO_OWN: 'lease_to_own',
50
+ RENT: 'rent'
51
+ };
52
+ /**
53
+ * @export
54
+ */
55
+ exports.AdminLeadListItemDtoLastOfferByEnum = {
56
+ BUYER: 'buyer',
57
+ SELLER: 'seller',
58
+ AI: 'ai',
59
+ ADMIN: 'admin'
60
+ };
61
+ /**
62
+ * @export
63
+ */
64
+ exports.AdminLeadListItemDtoLastOfferTypeEnum = {
65
+ LEAD: 'lead',
66
+ LEASE_TO_OWN: 'lease_to_own',
67
+ RENT: 'rent',
68
+ AUCTION: 'auction'
69
+ };
70
+ /**
71
+ * Check if a given object implements the AdminLeadListItemDto interface.
72
+ */
73
+ function instanceOfAdminLeadListItemDto(value) {
74
+ if (!('id' in value) || value['id'] === undefined)
75
+ return false;
76
+ if (!('status' in value) || value['status'] === undefined)
77
+ return false;
78
+ if (!('source' in value) || value['source'] === undefined)
79
+ return false;
80
+ if (!('manualType' in value) || value['manualType'] === undefined)
81
+ return false;
82
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined)
83
+ return false;
84
+ if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
85
+ return false;
86
+ if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
87
+ return false;
88
+ if (!('account' in value) || value['account'] === undefined)
89
+ return false;
90
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
91
+ return false;
92
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
93
+ return false;
94
+ if (!('archivedForSeller' in value) || value['archivedForSeller'] === undefined)
95
+ return false;
96
+ if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
97
+ return false;
98
+ if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
99
+ return false;
100
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
101
+ return false;
102
+ if (!('closedAt' in value) || value['closedAt'] === undefined)
103
+ return false;
104
+ if (!('domain' in value) || value['domain'] === undefined)
105
+ return false;
106
+ if (!('buyer' in value) || value['buyer'] === undefined)
107
+ return false;
108
+ return true;
109
+ }
110
+ function AdminLeadListItemDtoFromJSON(json) {
111
+ return AdminLeadListItemDtoFromJSONTyped(json, false);
112
+ }
113
+ function AdminLeadListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+ 'id': json['id'],
119
+ 'status': json['status'],
120
+ 'source': json['source'],
121
+ 'manualType': json['manualType'],
122
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
123
+ 'lastOfferBy': json['lastOfferBy'],
124
+ 'lastOfferType': json['lastOfferType'],
125
+ 'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
126
+ 'createdAt': (new Date(json['createdAt'])),
127
+ 'updatedAt': (new Date(json['updatedAt'])),
128
+ 'archivedForSeller': json['archivedForSeller'],
129
+ 'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
130
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
131
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
132
+ 'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
133
+ 'domain': (0, AdminLeadListItemDomainDto_1.AdminLeadListItemDomainDtoFromJSON)(json['domain']),
134
+ 'buyer': (0, AdminLeadListItemBuyerDto_1.AdminLeadListItemBuyerDtoFromJSON)(json['buyer']),
135
+ };
136
+ }
137
+ function AdminLeadListItemDtoToJSON(json) {
138
+ return AdminLeadListItemDtoToJSONTyped(json, false);
139
+ }
140
+ function AdminLeadListItemDtoToJSONTyped(value, ignoreDiscriminator) {
141
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
142
+ if (value == null) {
143
+ return value;
144
+ }
145
+ return {
146
+ 'id': value['id'],
147
+ 'status': value['status'],
148
+ 'source': value['source'],
149
+ 'manualType': value['manualType'],
150
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
151
+ 'lastOfferBy': value['lastOfferBy'],
152
+ 'lastOfferType': value['lastOfferType'],
153
+ 'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
154
+ 'createdAt': ((value['createdAt']).toISOString()),
155
+ 'updatedAt': ((value['updatedAt']).toISOString()),
156
+ 'archivedForSeller': value['archivedForSeller'],
157
+ 'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
158
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
159
+ 'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
160
+ 'closedAt': (value['closedAt'] == null ? null : value['closedAt'].toISOString()),
161
+ 'domain': (0, AdminLeadListItemDomainDto_1.AdminLeadListItemDomainDtoToJSON)(value['domain']),
162
+ 'buyer': (0, AdminLeadListItemBuyerDto_1.AdminLeadListItemBuyerDtoToJSON)(value['buyer']),
163
+ };
164
+ }
@@ -0,0 +1,47 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { AdminLeadListItemDto } from './AdminLeadListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ListLeads200Response
19
+ */
20
+ export interface ListLeads200Response {
21
+ /**
22
+ *
23
+ * @type {Array<AdminLeadListItemDto>}
24
+ * @memberof ListLeads200Response
25
+ */
26
+ data: Array<AdminLeadListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof ListLeads200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof ListLeads200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ListLeads200Response interface.
42
+ */
43
+ export declare function instanceOfListLeads200Response(value: object): value is ListLeads200Response;
44
+ export declare function ListLeads200ResponseFromJSON(json: any): ListLeads200Response;
45
+ export declare function ListLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeads200Response;
46
+ export declare function ListLeads200ResponseToJSON(json: any): ListLeads200Response;
47
+ export declare function ListLeads200ResponseToJSONTyped(value?: ListLeads200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfListLeads200Response = instanceOfListLeads200Response;
17
+ exports.ListLeads200ResponseFromJSON = ListLeads200ResponseFromJSON;
18
+ exports.ListLeads200ResponseFromJSONTyped = ListLeads200ResponseFromJSONTyped;
19
+ exports.ListLeads200ResponseToJSON = ListLeads200ResponseToJSON;
20
+ exports.ListLeads200ResponseToJSONTyped = ListLeads200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var AdminLeadListItemDto_1 = require("./AdminLeadListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the ListLeads200Response interface.
26
+ */
27
+ function instanceOfListLeads200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ListLeads200ResponseFromJSON(json) {
37
+ return ListLeads200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ListLeads200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(AdminLeadListItemDto_1.AdminLeadListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function ListLeads200ResponseToJSON(json) {
50
+ return ListLeads200ResponseToJSONTyped(json, false);
51
+ }
52
+ function ListLeads200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(AdminLeadListItemDto_1.AdminLeadListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -50,6 +50,9 @@ export * from './AdminCompanyStatsDto';
50
50
  export * from './AdminCompanyStatsLedger';
51
51
  export * from './AdminDashboardStatsDto';
52
52
  export * from './AdminGetAllDomainTransfers200Response';
53
+ export * from './AdminLeadListItemBuyerDto';
54
+ export * from './AdminLeadListItemDomainDto';
55
+ export * from './AdminLeadListItemDto';
53
56
  export * from './AdminListAccountDto';
54
57
  export * from './AdminVerificationDepositDto';
55
58
  export * from './AffiliatesStatsDto';
@@ -280,6 +283,7 @@ export * from './ListBuyerNotifications200Response';
280
283
  export * from './ListDomains200Response';
281
284
  export * from './ListDomainsWithUpdatedPricing200Response';
282
285
  export * from './ListLeadMessagesDto';
286
+ export * from './ListLeads200Response';
283
287
  export * from './ListLeadsResultItem';
284
288
  export * from './ListNotifications200Response';
285
289
  export * from './ListRelatedLeads200Response';
@@ -68,6 +68,9 @@ __exportStar(require("./AdminCompanyStatsDto"), exports);
68
68
  __exportStar(require("./AdminCompanyStatsLedger"), exports);
69
69
  __exportStar(require("./AdminDashboardStatsDto"), exports);
70
70
  __exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
71
+ __exportStar(require("./AdminLeadListItemBuyerDto"), exports);
72
+ __exportStar(require("./AdminLeadListItemDomainDto"), exports);
73
+ __exportStar(require("./AdminLeadListItemDto"), exports);
71
74
  __exportStar(require("./AdminListAccountDto"), exports);
72
75
  __exportStar(require("./AdminVerificationDepositDto"), exports);
73
76
  __exportStar(require("./AffiliatesStatsDto"), exports);
@@ -298,6 +301,7 @@ __exportStar(require("./ListBuyerNotifications200Response"), exports);
298
301
  __exportStar(require("./ListDomains200Response"), exports);
299
302
  __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
300
303
  __exportStar(require("./ListLeadMessagesDto"), exports);
304
+ __exportStar(require("./ListLeads200Response"), exports);
301
305
  __exportStar(require("./ListLeadsResultItem"), exports);
302
306
  __exportStar(require("./ListNotifications200Response"), exports);
303
307
  __exportStar(require("./ListRelatedLeads200Response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.413",
3
+ "version": "0.0.415",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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;
@@ -360,6 +370,10 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
360
370
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
361
371
  }
362
372
 
373
+ export interface AdminApiPurgeDomainCdnCacheRequest {
374
+ domainId: string;
375
+ }
376
+
363
377
  export interface AdminApiRemoveDomainLockRequest {
364
378
  domainId: string;
365
379
  lockId: string;
@@ -1986,6 +2000,56 @@ export class AdminApi extends runtime.BaseAPI {
1986
2000
  return await response.value();
1987
2001
  }
1988
2002
 
2003
+ /**
2004
+ *
2005
+ */
2006
+ async listLeadsRaw(requestParameters: AdminApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeads200Response>> {
2007
+ const queryParameters: any = {};
2008
+
2009
+ if (requestParameters['filter'] != null) {
2010
+ queryParameters['filter'] = requestParameters['filter'];
2011
+ }
2012
+
2013
+ if (requestParameters['page'] != null) {
2014
+ queryParameters['page'] = requestParameters['page'];
2015
+ }
2016
+
2017
+ if (requestParameters['limit'] != null) {
2018
+ queryParameters['limit'] = requestParameters['limit'];
2019
+ }
2020
+
2021
+ if (requestParameters['sortBy'] != null) {
2022
+ queryParameters['sortBy'] = requestParameters['sortBy'];
2023
+ }
2024
+
2025
+ const headerParameters: runtime.HTTPHeaders = {};
2026
+
2027
+ if (this.configuration && this.configuration.accessToken) {
2028
+ const token = this.configuration.accessToken;
2029
+ const tokenString = await token("bearer", []);
2030
+
2031
+ if (tokenString) {
2032
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2033
+ }
2034
+ }
2035
+ const response = await this.request({
2036
+ path: `/admin/leads`,
2037
+ method: 'GET',
2038
+ headers: headerParameters,
2039
+ query: queryParameters,
2040
+ }, initOverrides);
2041
+
2042
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListLeads200ResponseFromJSON(jsonValue));
2043
+ }
2044
+
2045
+ /**
2046
+ *
2047
+ */
2048
+ async listLeads(requestParameters: AdminApiListLeadsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeads200Response> {
2049
+ const response = await this.listLeadsRaw(requestParameters, initOverrides);
2050
+ return await response.value();
2051
+ }
2052
+
1989
2053
  /**
1990
2054
  *
1991
2055
  */
@@ -2364,6 +2428,46 @@ export class AdminApi extends runtime.BaseAPI {
2364
2428
  return await response.value();
2365
2429
  }
2366
2430
 
2431
+ /**
2432
+ *
2433
+ */
2434
+ async purgeDomainCdnCacheRaw(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2435
+ if (requestParameters['domainId'] == null) {
2436
+ throw new runtime.RequiredError(
2437
+ 'domainId',
2438
+ 'Required parameter "domainId" was null or undefined when calling purgeDomainCdnCache().'
2439
+ );
2440
+ }
2441
+
2442
+ const queryParameters: any = {};
2443
+
2444
+ const headerParameters: runtime.HTTPHeaders = {};
2445
+
2446
+ if (this.configuration && this.configuration.accessToken) {
2447
+ const token = this.configuration.accessToken;
2448
+ const tokenString = await token("bearer", []);
2449
+
2450
+ if (tokenString) {
2451
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2452
+ }
2453
+ }
2454
+ const response = await this.request({
2455
+ path: `/admin/domains/{domainId}/purge-cdn-cache`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
2456
+ method: 'POST',
2457
+ headers: headerParameters,
2458
+ query: queryParameters,
2459
+ }, initOverrides);
2460
+
2461
+ return new runtime.VoidApiResponse(response);
2462
+ }
2463
+
2464
+ /**
2465
+ *
2466
+ */
2467
+ async purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2468
+ await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
2469
+ }
2470
+
2367
2471
  /**
2368
2472
  *
2369
2473
  */
@@ -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
+