@randock/nameshift-api-client 0.0.227 → 0.0.229
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 +5 -0
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +12 -1
- package/dist/apis/AccountsPublicApi.js +44 -0
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/apis/AirwallexPublicApi.d.ts +29 -0
- package/dist/apis/AirwallexPublicApi.js +130 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminBankAccountDto.d.ts +46 -0
- package/dist/models/AdminBankAccountDto.js +61 -0
- package/dist/models/AdminVerificationDepositDto.d.ts +38 -0
- package/dist/models/AdminVerificationDepositDto.js +55 -0
- package/dist/models/ListBankAccounts200Response.d.ts +47 -0
- package/dist/models/ListBankAccounts200Response.js +62 -0
- package/dist/models/PublicAccountInformationDto.d.ts +62 -0
- package/dist/models/PublicAccountInformationDto.js +71 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AccountsPublicApi.ts +43 -0
- package/src/apis/AdminApi.ts +60 -0
- package/src/apis/AirwallexPublicApi.ts +85 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminBankAccountDto.ts +99 -0
- package/src/models/AdminVerificationDepositDto.ts +75 -0
- package/src/models/ListBankAccounts200Response.ts +106 -0
- package/src/models/PublicAccountInformationDto.ts +111 -0
- package/src/models/index.ts +4 -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 { AdminBankAccountDto } from './AdminBankAccountDto';
|
|
17
|
+
import {
|
|
18
|
+
AdminBankAccountDtoFromJSON,
|
|
19
|
+
AdminBankAccountDtoFromJSONTyped,
|
|
20
|
+
AdminBankAccountDtoToJSON,
|
|
21
|
+
AdminBankAccountDtoToJSONTyped,
|
|
22
|
+
} from './AdminBankAccountDto';
|
|
23
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
24
|
+
import {
|
|
25
|
+
PaginateResponseLinksFromJSON,
|
|
26
|
+
PaginateResponseLinksFromJSONTyped,
|
|
27
|
+
PaginateResponseLinksToJSON,
|
|
28
|
+
PaginateResponseLinksToJSONTyped,
|
|
29
|
+
} from './PaginateResponseLinks';
|
|
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 ListBankAccounts200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListBankAccounts200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<AdminBankAccountDto>}
|
|
47
|
+
* @memberof ListBankAccounts200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<AdminBankAccountDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListBankAccounts200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListBankAccounts200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListBankAccounts200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListBankAccounts200Response(value: object): value is ListBankAccounts200Response {
|
|
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 ListBankAccounts200ResponseFromJSON(json: any): ListBankAccounts200Response {
|
|
75
|
+
return ListBankAccounts200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListBankAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBankAccounts200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(AdminBankAccountDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListBankAccounts200ResponseToJSON(json: any): ListBankAccounts200Response {
|
|
91
|
+
return ListBankAccounts200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListBankAccounts200ResponseToJSONTyped(value?: ListBankAccounts200Response | 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(AdminBankAccountDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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 PublicAccountInformationDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicAccountInformationDto {
|
|
22
|
+
/**
|
|
23
|
+
* The account ID
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof PublicAccountInformationDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
* The account identifier
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof PublicAccountInformationDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: object;
|
|
34
|
+
/**
|
|
35
|
+
* The account name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PublicAccountInformationDto
|
|
38
|
+
*/
|
|
39
|
+
name: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The account description
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PublicAccountInformationDto
|
|
44
|
+
*/
|
|
45
|
+
description: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The account avatar URL
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PublicAccountInformationDto
|
|
50
|
+
*/
|
|
51
|
+
avatar: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The last time the account was online
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof PublicAccountInformationDto
|
|
56
|
+
*/
|
|
57
|
+
lastOnline: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PublicAccountInformationDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPublicAccountInformationDto(value: object): value is PublicAccountInformationDto {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
66
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
67
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
68
|
+
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
69
|
+
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PublicAccountInformationDtoFromJSON(json: any): PublicAccountInformationDto {
|
|
74
|
+
return PublicAccountInformationDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PublicAccountInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAccountInformationDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'identifier': json['identifier'],
|
|
85
|
+
'name': json['name'],
|
|
86
|
+
'description': json['description'],
|
|
87
|
+
'avatar': json['avatar'],
|
|
88
|
+
'lastOnline': (json['lastOnline'] == null ? null : new Date(json['lastOnline'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PublicAccountInformationDtoToJSON(json: any): PublicAccountInformationDto {
|
|
93
|
+
return PublicAccountInformationDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PublicAccountInformationDtoToJSONTyped(value?: PublicAccountInformationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'identifier': value['identifier'],
|
|
105
|
+
'name': value['name'],
|
|
106
|
+
'description': value['description'],
|
|
107
|
+
'avatar': value['avatar'],
|
|
108
|
+
'lastOnline': (value['lastOnline'] == null ? null : (value['lastOnline'] as any).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -16,7 +16,9 @@ export * from './AccountSettingsSidnDto';
|
|
|
16
16
|
export * from './AddressDto';
|
|
17
17
|
export * from './AdminAccountLoginDto';
|
|
18
18
|
export * from './AdminAccountSettingsInput';
|
|
19
|
+
export * from './AdminBankAccountDto';
|
|
19
20
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
21
|
+
export * from './AdminVerificationDepositDto';
|
|
20
22
|
export * from './AirwallexBankAccountDetailsDto';
|
|
21
23
|
export * from './AirwallexBankAccountDetailsDtoInstitution';
|
|
22
24
|
export * from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
@@ -126,6 +128,7 @@ export * from './ListAccountDto';
|
|
|
126
128
|
export * from './ListAccountMetricsDto';
|
|
127
129
|
export * from './ListAccountUserDto';
|
|
128
130
|
export * from './ListAccounts200Response';
|
|
131
|
+
export * from './ListBankAccounts200Response';
|
|
129
132
|
export * from './ListDomains200Response';
|
|
130
133
|
export * from './ListLeadMessagesDto';
|
|
131
134
|
export * from './LoginDto';
|
|
@@ -149,6 +152,7 @@ export * from './PaginateResponse';
|
|
|
149
152
|
export * from './PaginateResponseLinks';
|
|
150
153
|
export * from './PaginateResponseMeta';
|
|
151
154
|
export * from './ParsedDomainDto';
|
|
155
|
+
export * from './PublicAccountInformationDto';
|
|
152
156
|
export * from './PublicDomainDto';
|
|
153
157
|
export * from './PublicDomainDtoSeo';
|
|
154
158
|
export * from './PublicDomainDtoSeoMoz';
|