@randock/nameshift-api-client 0.0.21 → 0.0.23
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 +9 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +46 -0
- package/dist/apis/AdminApi.js +206 -0
- package/dist/apis/DashboardApi.d.ts +26 -0
- package/dist/apis/DashboardApi.js +130 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/DashboardStatsDto.d.ts +43 -0
- package/dist/models/DashboardStatsDto.js +55 -0
- package/dist/models/ListAccountDto.d.ts +49 -0
- package/dist/models/ListAccountDto.js +59 -0
- package/dist/models/ListAccounts200Response.d.ts +46 -0
- package/dist/models/ListAccounts200Response.js +58 -0
- package/dist/models/ListAccounts400Response.d.ts +43 -0
- package/dist/models/{UpdateSettings429Response.js → ListAccounts400Response.js} +11 -11
- package/dist/models/ListAccounts429Response.d.ts +43 -0
- package/dist/models/{UpdateFinancial400Response.js → ListAccounts429Response.js} +11 -11
- package/dist/models/ListTransferDto.d.ts +72 -0
- package/dist/models/ListTransferDto.js +77 -0
- package/dist/models/ListTransfers200Response.d.ts +46 -0
- package/dist/models/ListTransfers200Response.js +58 -0
- package/dist/models/index.d.ts +7 -2
- package/dist/models/index.js +7 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +6 -6
- package/src/apis/AdminApi.ts +153 -0
- package/src/apis/DashboardApi.ts +70 -0
- package/src/apis/DomainsApi.ts +3 -3
- package/src/apis/LeadsApi.ts +6 -6
- package/src/apis/LeadsPublicApi.ts +6 -6
- package/src/apis/index.ts +2 -0
- package/src/models/DashboardStatsDto.ts +79 -0
- package/src/models/ListAccountDto.ts +88 -0
- package/src/models/ListAccounts200Response.ts +98 -0
- package/src/models/{UpdateFinancial400Response.ts → ListAccounts400Response.ts} +11 -11
- package/src/models/{UpdateSettings429Response.ts → ListAccounts429Response.ts} +11 -11
- package/src/models/ListTransferDto.ts +120 -0
- package/src/models/ListTransfers200Response.ts +98 -0
- package/src/models/index.ts +7 -2
- package/dist/models/UpdateFinancial400Response.d.ts +0 -43
- package/dist/models/UpdateSettings429Response.d.ts +0 -43
|
@@ -16,43 +16,43 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
* Returned if more than 300 requests are made per minute.
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ListAccounts429Response
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ListAccounts429Response {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ListAccounts429Response
|
|
26
26
|
*/
|
|
27
27
|
statusCode: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ListAccounts429Response
|
|
32
32
|
*/
|
|
33
33
|
message: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof ListAccounts429Response
|
|
38
38
|
*/
|
|
39
39
|
error?: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the ListAccounts429Response interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfListAccounts429Response(value: object): boolean {
|
|
46
46
|
if (!('statusCode' in value)) return false;
|
|
47
47
|
if (!('message' in value)) return false;
|
|
48
48
|
return true;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export function
|
|
52
|
-
return
|
|
51
|
+
export function ListAccounts429ResponseFromJSON(json: any): ListAccounts429Response {
|
|
52
|
+
return ListAccounts429ResponseFromJSONTyped(json, false);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export function
|
|
55
|
+
export function ListAccounts429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts429Response {
|
|
56
56
|
if (json == null) {
|
|
57
57
|
return json;
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@ export function UpdateSettings429ResponseFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export function
|
|
67
|
+
export function ListAccounts429ResponseToJSON(value?: ListAccounts429Response | null): any {
|
|
68
68
|
if (value == null) {
|
|
69
69
|
return value;
|
|
70
70
|
}
|
|
@@ -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 ListTransferDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ListTransferDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListTransferDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof ListTransferDto
|
|
32
|
+
*/
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ListTransferDto
|
|
38
|
+
*/
|
|
39
|
+
status: ListTransferDtoStatusEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ListTransferDto
|
|
44
|
+
*/
|
|
45
|
+
domainName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ListTransferDto
|
|
50
|
+
*/
|
|
51
|
+
assignedTo: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ListTransferDto
|
|
56
|
+
*/
|
|
57
|
+
step: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const ListTransferDtoStatusEnum = {
|
|
65
|
+
CREATED: 'created',
|
|
66
|
+
STARTED: 'started',
|
|
67
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
68
|
+
ERROR: 'error',
|
|
69
|
+
COMPLETED: 'completed'
|
|
70
|
+
} as const;
|
|
71
|
+
export type ListTransferDtoStatusEnum = typeof ListTransferDtoStatusEnum[keyof typeof ListTransferDtoStatusEnum];
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the ListTransferDto interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfListTransferDto(value: object): boolean {
|
|
78
|
+
if (!('id' in value)) return false;
|
|
79
|
+
if (!('createdAt' in value)) return false;
|
|
80
|
+
if (!('status' in value)) return false;
|
|
81
|
+
if (!('domainName' in value)) return false;
|
|
82
|
+
if (!('assignedTo' in value)) return false;
|
|
83
|
+
if (!('step' in value)) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ListTransferDtoFromJSON(json: any): ListTransferDto {
|
|
88
|
+
return ListTransferDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ListTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransferDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
99
|
+
'status': json['status'],
|
|
100
|
+
'domainName': json['domainName'],
|
|
101
|
+
'assignedTo': json['assignedTo'],
|
|
102
|
+
'step': json['step'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function ListTransferDtoToJSON(value?: ListTransferDto | null): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'id': value['id'],
|
|
113
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
114
|
+
'status': value['status'],
|
|
115
|
+
'domainName': value['domainName'],
|
|
116
|
+
'assignedTo': value['assignedTo'],
|
|
117
|
+
'step': value['step'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { ListTransferDto } from './ListTransferDto';
|
|
17
|
+
import {
|
|
18
|
+
ListTransferDtoFromJSON,
|
|
19
|
+
ListTransferDtoFromJSONTyped,
|
|
20
|
+
ListTransferDtoToJSON,
|
|
21
|
+
} from './ListTransferDto';
|
|
22
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
23
|
+
import {
|
|
24
|
+
PaginateResponseLinksFromJSON,
|
|
25
|
+
PaginateResponseLinksFromJSONTyped,
|
|
26
|
+
PaginateResponseLinksToJSON,
|
|
27
|
+
} from './PaginateResponseLinks';
|
|
28
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
|
+
import {
|
|
30
|
+
PaginateResponseMetaFromJSON,
|
|
31
|
+
PaginateResponseMetaFromJSONTyped,
|
|
32
|
+
PaginateResponseMetaToJSON,
|
|
33
|
+
} from './PaginateResponseMeta';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ListTransfers200Response
|
|
39
|
+
*/
|
|
40
|
+
export interface ListTransfers200Response {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<ListTransferDto>}
|
|
44
|
+
* @memberof ListTransfers200Response
|
|
45
|
+
*/
|
|
46
|
+
data: Array<ListTransferDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PaginateResponseMeta}
|
|
50
|
+
* @memberof ListTransfers200Response
|
|
51
|
+
*/
|
|
52
|
+
meta: PaginateResponseMeta;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PaginateResponseLinks}
|
|
56
|
+
* @memberof ListTransfers200Response
|
|
57
|
+
*/
|
|
58
|
+
links: PaginateResponseLinks;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ListTransfers200Response interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfListTransfers200Response(value: object): boolean {
|
|
65
|
+
if (!('data' in value)) return false;
|
|
66
|
+
if (!('meta' in value)) return false;
|
|
67
|
+
if (!('links' in value)) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ListTransfers200ResponseFromJSON(json: any): ListTransfers200Response {
|
|
72
|
+
return ListTransfers200ResponseFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ListTransfers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransfers200Response {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(ListTransferDtoFromJSON)),
|
|
82
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ListTransfers200ResponseToJSON(value?: ListTransfers200Response | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(ListTransferDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './BatchUpdate404Response';
|
|
|
9
9
|
export * from './BatchUpdateDomainsInput';
|
|
10
10
|
export * from './CreateLeadInput';
|
|
11
11
|
export * from './CreateLeadMessageInput';
|
|
12
|
+
export * from './DashboardStatsDto';
|
|
12
13
|
export * from './DeleteDomainsInput';
|
|
13
14
|
export * from './DomainDto';
|
|
14
15
|
export * from './DomainSalesInformationDto';
|
|
@@ -26,7 +27,13 @@ export * from './LeadMessageDtoData';
|
|
|
26
27
|
export * from './List200Response';
|
|
27
28
|
export * from './List400Response';
|
|
28
29
|
export * from './List401Response';
|
|
30
|
+
export * from './ListAccountDto';
|
|
31
|
+
export * from './ListAccounts200Response';
|
|
32
|
+
export * from './ListAccounts400Response';
|
|
33
|
+
export * from './ListAccounts429Response';
|
|
29
34
|
export * from './ListLeadMessagesDto';
|
|
35
|
+
export * from './ListTransferDto';
|
|
36
|
+
export * from './ListTransfers200Response';
|
|
30
37
|
export * from './Login401Response';
|
|
31
38
|
export * from './Login429Response';
|
|
32
39
|
export * from './LoginInput';
|
|
@@ -41,9 +48,7 @@ export * from './PutLeadInput';
|
|
|
41
48
|
export * from './SecurityUserDto';
|
|
42
49
|
export * from './TokenDto';
|
|
43
50
|
export * from './UpdateDomainInput';
|
|
44
|
-
export * from './UpdateFinancial400Response';
|
|
45
51
|
export * from './UpdateSettings400Response';
|
|
46
52
|
export * from './UpdateSettings401Response';
|
|
47
|
-
export * from './UpdateSettings429Response';
|
|
48
53
|
export * from './WithFinancialDtoInner';
|
|
49
54
|
export * from './WithSettingsInner';
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
* Thrown in case of requestion validation errors.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UpdateFinancial400Response
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateFinancial400Response {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UpdateFinancial400Response
|
|
22
|
-
*/
|
|
23
|
-
statusCode: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<object>}
|
|
27
|
-
* @memberof UpdateFinancial400Response
|
|
28
|
-
*/
|
|
29
|
-
message: Array<object>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateFinancial400Response
|
|
34
|
-
*/
|
|
35
|
-
error?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the UpdateFinancial400Response interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfUpdateFinancial400Response(value: object): boolean;
|
|
41
|
-
export declare function UpdateFinancial400ResponseFromJSON(json: any): UpdateFinancial400Response;
|
|
42
|
-
export declare function UpdateFinancial400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFinancial400Response;
|
|
43
|
-
export declare function UpdateFinancial400ResponseToJSON(value?: UpdateFinancial400Response | null): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
* Returned if more than 300 requests are made per minute.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UpdateSettings429Response
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateSettings429Response {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UpdateSettings429Response
|
|
22
|
-
*/
|
|
23
|
-
statusCode: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateSettings429Response
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateSettings429Response
|
|
34
|
-
*/
|
|
35
|
-
error?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the UpdateSettings429Response interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfUpdateSettings429Response(value: object): boolean;
|
|
41
|
-
export declare function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429Response;
|
|
42
|
-
export declare function UpdateSettings429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings429Response;
|
|
43
|
-
export declare function UpdateSettings429ResponseToJSON(value?: UpdateSettings429Response | null): any;
|