@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
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -19,10 +19,10 @@ import type {
|
|
|
19
19
|
AccountFinancialInput,
|
|
20
20
|
AccountSettingsInput,
|
|
21
21
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
|
|
22
|
-
|
|
22
|
+
ListAccounts400Response,
|
|
23
|
+
ListAccounts429Response,
|
|
23
24
|
UpdateSettings400Response,
|
|
24
25
|
UpdateSettings401Response,
|
|
25
|
-
UpdateSettings429Response,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
import {
|
|
28
28
|
AccountAddressInputFromJSON,
|
|
@@ -33,14 +33,14 @@ import {
|
|
|
33
33
|
AccountSettingsInputToJSON,
|
|
34
34
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
|
|
35
35
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
ListAccounts400ResponseFromJSON,
|
|
37
|
+
ListAccounts400ResponseToJSON,
|
|
38
|
+
ListAccounts429ResponseFromJSON,
|
|
39
|
+
ListAccounts429ResponseToJSON,
|
|
38
40
|
UpdateSettings400ResponseFromJSON,
|
|
39
41
|
UpdateSettings400ResponseToJSON,
|
|
40
42
|
UpdateSettings401ResponseFromJSON,
|
|
41
43
|
UpdateSettings401ResponseToJSON,
|
|
42
|
-
UpdateSettings429ResponseFromJSON,
|
|
43
|
-
UpdateSettings429ResponseToJSON,
|
|
44
44
|
} from '../models/index';
|
|
45
45
|
|
|
46
46
|
export interface AccountsApiUpdateAddressRequest {
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
ListAccounts200Response,
|
|
19
|
+
ListAccounts400Response,
|
|
20
|
+
ListAccounts429Response,
|
|
21
|
+
ListTransfers200Response,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
ListAccounts200ResponseFromJSON,
|
|
25
|
+
ListAccounts200ResponseToJSON,
|
|
26
|
+
ListAccounts400ResponseFromJSON,
|
|
27
|
+
ListAccounts400ResponseToJSON,
|
|
28
|
+
ListAccounts429ResponseFromJSON,
|
|
29
|
+
ListAccounts429ResponseToJSON,
|
|
30
|
+
ListTransfers200ResponseFromJSON,
|
|
31
|
+
ListTransfers200ResponseToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface AdminApiListAccountsRequest {
|
|
35
|
+
filter?: object;
|
|
36
|
+
page?: number;
|
|
37
|
+
limit?: number;
|
|
38
|
+
sortBy?: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface AdminApiListTransfersRequest {
|
|
42
|
+
filter?: object;
|
|
43
|
+
page?: number;
|
|
44
|
+
limit?: number;
|
|
45
|
+
sortBy?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export class AdminApi extends runtime.BaseAPI {
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
async listAccountsRaw(requestParameters: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAccounts200Response>> {
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
if (requestParameters['filter'] != null) {
|
|
60
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (requestParameters['page'] != null) {
|
|
64
|
+
queryParameters['page'] = requestParameters['page'];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (requestParameters['limit'] != null) {
|
|
68
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (requestParameters['sortBy'] != null) {
|
|
72
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
76
|
+
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = await token("bearer", []);
|
|
80
|
+
|
|
81
|
+
if (tokenString) {
|
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const response = await this.request({
|
|
86
|
+
path: `/admin/accounts`,
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAccounts200ResponseFromJSON(jsonValue));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
async listAccounts(requestParameters: AdminApiListAccountsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response> {
|
|
99
|
+
const response = await this.listAccountsRaw(requestParameters, initOverrides);
|
|
100
|
+
return await response.value();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
async listTransfersRaw(requestParameters: AdminApiListTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTransfers200Response>> {
|
|
107
|
+
const queryParameters: any = {};
|
|
108
|
+
|
|
109
|
+
if (requestParameters['filter'] != null) {
|
|
110
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (requestParameters['page'] != null) {
|
|
114
|
+
queryParameters['page'] = requestParameters['page'];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (requestParameters['limit'] != null) {
|
|
118
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (requestParameters['sortBy'] != null) {
|
|
122
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
126
|
+
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
const token = this.configuration.accessToken;
|
|
129
|
+
const tokenString = await token("bearer", []);
|
|
130
|
+
|
|
131
|
+
if (tokenString) {
|
|
132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const response = await this.request({
|
|
136
|
+
path: `/admin/transfers`,
|
|
137
|
+
method: 'GET',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
}, initOverrides);
|
|
141
|
+
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListTransfers200ResponseFromJSON(jsonValue));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
async listTransfers(requestParameters: AdminApiListTransfersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTransfers200Response> {
|
|
149
|
+
const response = await this.listTransfersRaw(requestParameters, initOverrides);
|
|
150
|
+
return await response.value();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
DashboardStatsDto,
|
|
19
|
+
ListAccounts400Response,
|
|
20
|
+
ListAccounts429Response,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
DashboardStatsDtoFromJSON,
|
|
24
|
+
DashboardStatsDtoToJSON,
|
|
25
|
+
ListAccounts400ResponseFromJSON,
|
|
26
|
+
ListAccounts400ResponseToJSON,
|
|
27
|
+
ListAccounts429ResponseFromJSON,
|
|
28
|
+
ListAccounts429ResponseToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class DashboardApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
async statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>> {
|
|
40
|
+
const queryParameters: any = {};
|
|
41
|
+
|
|
42
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
43
|
+
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = await token("bearer", []);
|
|
47
|
+
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const response = await this.request({
|
|
53
|
+
path: `/dashboard/stats`,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DashboardStatsDtoFromJSON(jsonValue));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
async stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto> {
|
|
66
|
+
const response = await this.statsRaw(initOverrides);
|
|
67
|
+
return await response.value();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -23,8 +23,8 @@ import type {
|
|
|
23
23
|
List200Response,
|
|
24
24
|
List400Response,
|
|
25
25
|
List401Response,
|
|
26
|
+
ListAccounts429Response,
|
|
26
27
|
UpdateDomainInput,
|
|
27
|
-
UpdateSettings429Response,
|
|
28
28
|
} from '../models/index';
|
|
29
29
|
import {
|
|
30
30
|
BatchUpdate404ResponseFromJSON,
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
List400ResponseToJSON,
|
|
44
44
|
List401ResponseFromJSON,
|
|
45
45
|
List401ResponseToJSON,
|
|
46
|
+
ListAccounts429ResponseFromJSON,
|
|
47
|
+
ListAccounts429ResponseToJSON,
|
|
46
48
|
UpdateDomainInputFromJSON,
|
|
47
49
|
UpdateDomainInputToJSON,
|
|
48
|
-
UpdateSettings429ResponseFromJSON,
|
|
49
|
-
UpdateSettings429ResponseToJSON,
|
|
50
50
|
} from '../models/index';
|
|
51
51
|
|
|
52
52
|
export interface DomainsApiBatchImportRequest {
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -18,11 +18,11 @@ import type {
|
|
|
18
18
|
CreateLeadMessageInput,
|
|
19
19
|
IntersectionLeadDtoWithLeadDetailsDto,
|
|
20
20
|
IntersectionLeadDtoWithListFieldsDto,
|
|
21
|
+
ListAccounts400Response,
|
|
22
|
+
ListAccounts429Response,
|
|
21
23
|
ListLeadMessagesDto,
|
|
22
24
|
ObjectId,
|
|
23
25
|
PutLeadInput,
|
|
24
|
-
UpdateFinancial400Response,
|
|
25
|
-
UpdateSettings429Response,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
import {
|
|
28
28
|
CreateLeadMessageInputFromJSON,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
IntersectionLeadDtoWithLeadDetailsDtoToJSON,
|
|
32
32
|
IntersectionLeadDtoWithListFieldsDtoFromJSON,
|
|
33
33
|
IntersectionLeadDtoWithListFieldsDtoToJSON,
|
|
34
|
+
ListAccounts400ResponseFromJSON,
|
|
35
|
+
ListAccounts400ResponseToJSON,
|
|
36
|
+
ListAccounts429ResponseFromJSON,
|
|
37
|
+
ListAccounts429ResponseToJSON,
|
|
34
38
|
ListLeadMessagesDtoFromJSON,
|
|
35
39
|
ListLeadMessagesDtoToJSON,
|
|
36
40
|
ObjectIdFromJSON,
|
|
37
41
|
ObjectIdToJSON,
|
|
38
42
|
PutLeadInputFromJSON,
|
|
39
43
|
PutLeadInputToJSON,
|
|
40
|
-
UpdateFinancial400ResponseFromJSON,
|
|
41
|
-
UpdateFinancial400ResponseToJSON,
|
|
42
|
-
UpdateSettings429ResponseFromJSON,
|
|
43
|
-
UpdateSettings429ResponseToJSON,
|
|
44
44
|
} from '../models/index';
|
|
45
45
|
|
|
46
46
|
export interface LeadsApiCreateMessageRequest {
|
|
@@ -17,21 +17,21 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BatchUpdate404Response,
|
|
19
19
|
CreateLeadInput,
|
|
20
|
+
ListAccounts400Response,
|
|
21
|
+
ListAccounts429Response,
|
|
20
22
|
ObjectId,
|
|
21
|
-
UpdateFinancial400Response,
|
|
22
|
-
UpdateSettings429Response,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
import {
|
|
25
25
|
BatchUpdate404ResponseFromJSON,
|
|
26
26
|
BatchUpdate404ResponseToJSON,
|
|
27
27
|
CreateLeadInputFromJSON,
|
|
28
28
|
CreateLeadInputToJSON,
|
|
29
|
+
ListAccounts400ResponseFromJSON,
|
|
30
|
+
ListAccounts400ResponseToJSON,
|
|
31
|
+
ListAccounts429ResponseFromJSON,
|
|
32
|
+
ListAccounts429ResponseToJSON,
|
|
29
33
|
ObjectIdFromJSON,
|
|
30
34
|
ObjectIdToJSON,
|
|
31
|
-
UpdateFinancial400ResponseFromJSON,
|
|
32
|
-
UpdateFinancial400ResponseToJSON,
|
|
33
|
-
UpdateSettings429ResponseFromJSON,
|
|
34
|
-
UpdateSettings429ResponseToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface LeadsPublicApiCreateLeadRequest {
|
package/src/apis/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountsApi';
|
|
4
|
+
export * from './AdminApi';
|
|
4
5
|
export * from './AuthApi';
|
|
6
|
+
export * from './DashboardApi';
|
|
5
7
|
export * from './DomainsApi';
|
|
6
8
|
export * from './DomainsPublicApi';
|
|
7
9
|
export * from './LeadsApi';
|
|
@@ -0,0 +1,79 @@
|
|
|
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 DashboardStatsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DashboardStatsDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DashboardStatsDto
|
|
26
|
+
*/
|
|
27
|
+
domains: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof DashboardStatsDto
|
|
32
|
+
*/
|
|
33
|
+
leads: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof DashboardStatsDto
|
|
38
|
+
*/
|
|
39
|
+
transactions: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DashboardStatsDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDashboardStatsDto(value: object): boolean {
|
|
46
|
+
if (!('domains' in value)) return false;
|
|
47
|
+
if (!('leads' in value)) return false;
|
|
48
|
+
if (!('transactions' in value)) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DashboardStatsDtoFromJSON(json: any): DashboardStatsDto {
|
|
53
|
+
return DashboardStatsDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardStatsDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'domains': json['domains'],
|
|
63
|
+
'leads': json['leads'],
|
|
64
|
+
'transactions': json['transactions'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DashboardStatsDtoToJSON(value?: DashboardStatsDto | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'domains': value['domains'],
|
|
75
|
+
'leads': value['leads'],
|
|
76
|
+
'transactions': value['transactions'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 ListAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ListAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof ListAccountDto
|
|
32
|
+
*/
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ListAccountDto
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ListAccountDto
|
|
44
|
+
*/
|
|
45
|
+
companyName: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ListAccountDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfListAccountDto(value: object): boolean {
|
|
52
|
+
if (!('id' in value)) return false;
|
|
53
|
+
if (!('createdAt' in value)) return false;
|
|
54
|
+
if (!('name' in value)) return false;
|
|
55
|
+
if (!('companyName' in value)) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ListAccountDtoFromJSON(json: any): ListAccountDto {
|
|
60
|
+
return ListAccountDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'companyName': json['companyName'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ListAccountDtoToJSON(value?: ListAccountDto | null): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
84
|
+
'name': value['name'],
|
|
85
|
+
'companyName': value['companyName'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -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 { ListAccountDto } from './ListAccountDto';
|
|
17
|
+
import {
|
|
18
|
+
ListAccountDtoFromJSON,
|
|
19
|
+
ListAccountDtoFromJSONTyped,
|
|
20
|
+
ListAccountDtoToJSON,
|
|
21
|
+
} from './ListAccountDto';
|
|
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 ListAccounts200Response
|
|
39
|
+
*/
|
|
40
|
+
export interface ListAccounts200Response {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<ListAccountDto>}
|
|
44
|
+
* @memberof ListAccounts200Response
|
|
45
|
+
*/
|
|
46
|
+
data: Array<ListAccountDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PaginateResponseMeta}
|
|
50
|
+
* @memberof ListAccounts200Response
|
|
51
|
+
*/
|
|
52
|
+
meta: PaginateResponseMeta;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PaginateResponseLinks}
|
|
56
|
+
* @memberof ListAccounts200Response
|
|
57
|
+
*/
|
|
58
|
+
links: PaginateResponseLinks;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ListAccounts200Response interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfListAccounts200Response(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 ListAccounts200ResponseFromJSON(json: any): ListAccounts200Response {
|
|
72
|
+
return ListAccounts200ResponseFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ListAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts200Response {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(ListAccountDtoFromJSON)),
|
|
82
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ListAccounts200ResponseToJSON(value?: ListAccounts200Response | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(ListAccountDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -16,43 +16,43 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
* Thrown in case of requestion validation errors.
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ListAccounts400Response
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ListAccounts400Response {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ListAccounts400Response
|
|
26
26
|
*/
|
|
27
27
|
statusCode: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {Array<object>}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ListAccounts400Response
|
|
32
32
|
*/
|
|
33
33
|
message: Array<object>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof ListAccounts400Response
|
|
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 ListAccounts400Response interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfListAccounts400Response(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 ListAccounts400ResponseFromJSON(json: any): ListAccounts400Response {
|
|
52
|
+
return ListAccounts400ResponseFromJSONTyped(json, false);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export function
|
|
55
|
+
export function ListAccounts400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts400Response {
|
|
56
56
|
if (json == null) {
|
|
57
57
|
return json;
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@ export function UpdateFinancial400ResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export function
|
|
67
|
+
export function ListAccounts400ResponseToJSON(value?: ListAccounts400Response | null): any {
|
|
68
68
|
if (value == null) {
|
|
69
69
|
return value;
|
|
70
70
|
}
|