@randock/nameshift-api-client 0.0.413 → 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.
@@ -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
+
@@ -0,0 +1,106 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ PaginateResponseLinksToJSONTyped,
22
+ } from './PaginateResponseLinks';
23
+ import type { AdminLeadListItemDto } from './AdminLeadListItemDto';
24
+ import {
25
+ AdminLeadListItemDtoFromJSON,
26
+ AdminLeadListItemDtoFromJSONTyped,
27
+ AdminLeadListItemDtoToJSON,
28
+ AdminLeadListItemDtoToJSONTyped,
29
+ } from './AdminLeadListItemDto';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ListLeads200Response
42
+ */
43
+ export interface ListLeads200Response {
44
+ /**
45
+ *
46
+ * @type {Array<AdminLeadListItemDto>}
47
+ * @memberof ListLeads200Response
48
+ */
49
+ data: Array<AdminLeadListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof ListLeads200Response
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof ListLeads200Response
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the ListLeads200Response interface.
66
+ */
67
+ export function instanceOfListLeads200Response(value: object): value is ListLeads200Response {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function ListLeads200ResponseFromJSON(json: any): ListLeads200Response {
75
+ return ListLeads200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function ListLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeads200Response {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(AdminLeadListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function ListLeads200ResponseToJSON(json: any): ListLeads200Response {
91
+ return ListLeads200ResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListLeads200ResponseToJSONTyped(value?: ListLeads200Response | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(AdminLeadListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -52,6 +52,9 @@ export * from './AdminCompanyStatsDto';
52
52
  export * from './AdminCompanyStatsLedger';
53
53
  export * from './AdminDashboardStatsDto';
54
54
  export * from './AdminGetAllDomainTransfers200Response';
55
+ export * from './AdminLeadListItemBuyerDto';
56
+ export * from './AdminLeadListItemDomainDto';
57
+ export * from './AdminLeadListItemDto';
55
58
  export * from './AdminListAccountDto';
56
59
  export * from './AdminVerificationDepositDto';
57
60
  export * from './AffiliatesStatsDto';
@@ -282,6 +285,7 @@ export * from './ListBuyerNotifications200Response';
282
285
  export * from './ListDomains200Response';
283
286
  export * from './ListDomainsWithUpdatedPricing200Response';
284
287
  export * from './ListLeadMessagesDto';
288
+ export * from './ListLeads200Response';
285
289
  export * from './ListLeadsResultItem';
286
290
  export * from './ListNotifications200Response';
287
291
  export * from './ListRelatedLeads200Response';