@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,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
|
+
|
|
@@ -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 StateDto
|
|
20
|
+
*/
|
|
21
|
+
export interface StateDto {
|
|
22
|
+
/**
|
|
23
|
+
* Display name for the requested locale (translation or fallback to stored name)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StateDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StateDto
|
|
32
|
+
*/
|
|
33
|
+
iso2: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StateDto
|
|
38
|
+
*/
|
|
39
|
+
countryCode: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the StateDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfStateDto(value: object): value is StateDto {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('iso2' in value) || value['iso2'] === undefined) return false;
|
|
48
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function StateDtoFromJSON(json: any): StateDto {
|
|
53
|
+
return StateDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function StateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'iso2': json['iso2'],
|
|
64
|
+
'countryCode': json['countryCode'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function StateDtoToJSON(json: any): StateDto {
|
|
69
|
+
return StateDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function StateDtoToJSONTyped(value?: StateDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'iso2': value['iso2'],
|
|
81
|
+
'countryCode': value['countryCode'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|
|
@@ -393,6 +397,7 @@ export * from './SetNewPasswordInput';
|
|
|
393
397
|
export * from './SetPayoutProviderInput';
|
|
394
398
|
export * from './SortDto';
|
|
395
399
|
export * from './StartAuctionInput';
|
|
400
|
+
export * from './StateDto';
|
|
396
401
|
export * from './StatsFilterInputDateRange';
|
|
397
402
|
export * from './StoreBuyerLocaleInput';
|
|
398
403
|
export * from './StoreUserLocaleInput';
|