@randock/nameshift-api-client 0.0.21 → 0.0.22
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 +7 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +46 -0
- package/dist/apis/AdminApi.js +206 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -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 +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +6 -6
- package/src/apis/AdminApi.ts +153 -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 +1 -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 +6 -2
- package/dist/models/UpdateFinancial400Response.d.ts +0 -43
- package/dist/models/UpdateSettings429Response.d.ts +0 -43
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ListAccounts429ResponseToJSON = exports.ListAccounts429ResponseFromJSONTyped = exports.ListAccounts429ResponseFromJSON = exports.instanceOfListAccounts429Response = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the ListAccounts429Response interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfListAccounts429Response(value) {
|
|
21
21
|
if (!('statusCode' in value))
|
|
22
22
|
return false;
|
|
23
23
|
if (!('message' in value))
|
|
24
24
|
return false;
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfListAccounts429Response = instanceOfListAccounts429Response;
|
|
28
|
+
function ListAccounts429ResponseFromJSON(json) {
|
|
29
|
+
return ListAccounts429ResponseFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.ListAccounts429ResponseFromJSON = ListAccounts429ResponseFromJSON;
|
|
32
|
+
function ListAccounts429ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if (json == null) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -39,8 +39,8 @@ function UpdateFinancial400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'error': json['error'] == null ? undefined : json['error'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.ListAccounts429ResponseFromJSONTyped = ListAccounts429ResponseFromJSONTyped;
|
|
43
|
+
function ListAccounts429ResponseToJSON(value) {
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
@@ -50,4 +50,4 @@ function UpdateFinancial400ResponseToJSON(value) {
|
|
|
50
50
|
'error': value['error'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
exports.
|
|
53
|
+
exports.ListAccounts429ResponseToJSON = ListAccounts429ResponseToJSON;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListTransferDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ListTransferDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ListTransferDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ListTransferDto
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListTransferDto
|
|
34
|
+
*/
|
|
35
|
+
status: ListTransferDtoStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ListTransferDto
|
|
40
|
+
*/
|
|
41
|
+
domainName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ListTransferDto
|
|
46
|
+
*/
|
|
47
|
+
assignedTo: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ListTransferDto
|
|
52
|
+
*/
|
|
53
|
+
step: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ListTransferDtoStatusEnum: {
|
|
59
|
+
readonly CREATED: "created";
|
|
60
|
+
readonly STARTED: "started";
|
|
61
|
+
readonly PENDING_MANUAL_ACTION: "pending_manual_action";
|
|
62
|
+
readonly ERROR: "error";
|
|
63
|
+
readonly COMPLETED: "completed";
|
|
64
|
+
};
|
|
65
|
+
export type ListTransferDtoStatusEnum = typeof ListTransferDtoStatusEnum[keyof typeof ListTransferDtoStatusEnum];
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the ListTransferDto interface.
|
|
68
|
+
*/
|
|
69
|
+
export declare function instanceOfListTransferDto(value: object): boolean;
|
|
70
|
+
export declare function ListTransferDtoFromJSON(json: any): ListTransferDto;
|
|
71
|
+
export declare function ListTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransferDto;
|
|
72
|
+
export declare function ListTransferDtoToJSON(value?: ListTransferDto | null): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ListTransferDtoToJSON = exports.ListTransferDtoFromJSONTyped = exports.ListTransferDtoFromJSON = exports.instanceOfListTransferDto = exports.ListTransferDtoStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.ListTransferDtoStatusEnum = {
|
|
21
|
+
CREATED: 'created',
|
|
22
|
+
STARTED: 'started',
|
|
23
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
24
|
+
ERROR: 'error',
|
|
25
|
+
COMPLETED: 'completed'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ListTransferDto interface.
|
|
29
|
+
*/
|
|
30
|
+
function instanceOfListTransferDto(value) {
|
|
31
|
+
if (!('id' in value))
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value))
|
|
34
|
+
return false;
|
|
35
|
+
if (!('status' in value))
|
|
36
|
+
return false;
|
|
37
|
+
if (!('domainName' in value))
|
|
38
|
+
return false;
|
|
39
|
+
if (!('assignedTo' in value))
|
|
40
|
+
return false;
|
|
41
|
+
if (!('step' in value))
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
exports.instanceOfListTransferDto = instanceOfListTransferDto;
|
|
46
|
+
function ListTransferDtoFromJSON(json) {
|
|
47
|
+
return ListTransferDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
exports.ListTransferDtoFromJSON = ListTransferDtoFromJSON;
|
|
50
|
+
function ListTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
57
|
+
'status': json['status'],
|
|
58
|
+
'domainName': json['domainName'],
|
|
59
|
+
'assignedTo': json['assignedTo'],
|
|
60
|
+
'step': json['step'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.ListTransferDtoFromJSONTyped = ListTransferDtoFromJSONTyped;
|
|
64
|
+
function ListTransferDtoToJSON(value) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
71
|
+
'status': value['status'],
|
|
72
|
+
'domainName': value['domainName'],
|
|
73
|
+
'assignedTo': value['assignedTo'],
|
|
74
|
+
'step': value['step'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.ListTransferDtoToJSON = ListTransferDtoToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import type { ListTransferDto } from './ListTransferDto';
|
|
13
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListTransfers200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListTransfers200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<ListTransferDto>}
|
|
24
|
+
* @memberof ListTransfers200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<ListTransferDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListTransfers200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListTransfers200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListTransfers200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListTransfers200Response(value: object): boolean;
|
|
44
|
+
export declare function ListTransfers200ResponseFromJSON(json: any): ListTransfers200Response;
|
|
45
|
+
export declare function ListTransfers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransfers200Response;
|
|
46
|
+
export declare function ListTransfers200ResponseToJSON(value?: ListTransfers200Response | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ListTransfers200ResponseToJSON = exports.ListTransfers200ResponseFromJSONTyped = exports.ListTransfers200ResponseFromJSON = exports.instanceOfListTransfers200Response = void 0;
|
|
17
|
+
var ListTransferDto_1 = require("./ListTransferDto");
|
|
18
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
19
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ListTransfers200Response interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfListTransfers200Response(value) {
|
|
24
|
+
if (!('data' in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!('meta' in value))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('links' in value))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfListTransfers200Response = instanceOfListTransfers200Response;
|
|
33
|
+
function ListTransfers200ResponseFromJSON(json) {
|
|
34
|
+
return ListTransfers200ResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.ListTransfers200ResponseFromJSON = ListTransfers200ResponseFromJSON;
|
|
37
|
+
function ListTransfers200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'data': (json['data'].map(ListTransferDto_1.ListTransferDtoFromJSON)),
|
|
43
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ListTransfers200ResponseFromJSONTyped = ListTransfers200ResponseFromJSONTyped;
|
|
48
|
+
function ListTransfers200ResponseToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'data': (value['data'].map(ListTransferDto_1.ListTransferDtoToJSON)),
|
|
54
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
55
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.ListTransfers200ResponseToJSON = ListTransfers200ResponseToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,7 +24,13 @@ export * from './LeadMessageDtoData';
|
|
|
24
24
|
export * from './List200Response';
|
|
25
25
|
export * from './List400Response';
|
|
26
26
|
export * from './List401Response';
|
|
27
|
+
export * from './ListAccountDto';
|
|
28
|
+
export * from './ListAccounts200Response';
|
|
29
|
+
export * from './ListAccounts400Response';
|
|
30
|
+
export * from './ListAccounts429Response';
|
|
27
31
|
export * from './ListLeadMessagesDto';
|
|
32
|
+
export * from './ListTransferDto';
|
|
33
|
+
export * from './ListTransfers200Response';
|
|
28
34
|
export * from './Login401Response';
|
|
29
35
|
export * from './Login429Response';
|
|
30
36
|
export * from './LoginInput';
|
|
@@ -39,9 +45,7 @@ export * from './PutLeadInput';
|
|
|
39
45
|
export * from './SecurityUserDto';
|
|
40
46
|
export * from './TokenDto';
|
|
41
47
|
export * from './UpdateDomainInput';
|
|
42
|
-
export * from './UpdateFinancial400Response';
|
|
43
48
|
export * from './UpdateSettings400Response';
|
|
44
49
|
export * from './UpdateSettings401Response';
|
|
45
|
-
export * from './UpdateSettings429Response';
|
|
46
50
|
export * from './WithFinancialDtoInner';
|
|
47
51
|
export * from './WithSettingsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -42,7 +42,13 @@ __exportStar(require("./LeadMessageDtoData"), exports);
|
|
|
42
42
|
__exportStar(require("./List200Response"), exports);
|
|
43
43
|
__exportStar(require("./List400Response"), exports);
|
|
44
44
|
__exportStar(require("./List401Response"), exports);
|
|
45
|
+
__exportStar(require("./ListAccountDto"), exports);
|
|
46
|
+
__exportStar(require("./ListAccounts200Response"), exports);
|
|
47
|
+
__exportStar(require("./ListAccounts400Response"), exports);
|
|
48
|
+
__exportStar(require("./ListAccounts429Response"), exports);
|
|
45
49
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
50
|
+
__exportStar(require("./ListTransferDto"), exports);
|
|
51
|
+
__exportStar(require("./ListTransfers200Response"), exports);
|
|
46
52
|
__exportStar(require("./Login401Response"), exports);
|
|
47
53
|
__exportStar(require("./Login429Response"), exports);
|
|
48
54
|
__exportStar(require("./LoginInput"), exports);
|
|
@@ -57,9 +63,7 @@ __exportStar(require("./PutLeadInput"), exports);
|
|
|
57
63
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
58
64
|
__exportStar(require("./TokenDto"), exports);
|
|
59
65
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
60
|
-
__exportStar(require("./UpdateFinancial400Response"), exports);
|
|
61
66
|
__exportStar(require("./UpdateSettings400Response"), exports);
|
|
62
67
|
__exportStar(require("./UpdateSettings401Response"), exports);
|
|
63
|
-
__exportStar(require("./UpdateSettings429Response"), exports);
|
|
64
68
|
__exportStar(require("./WithFinancialDtoInner"), exports);
|
|
65
69
|
__exportStar(require("./WithSettingsInner"), exports);
|
package/package.json
CHANGED
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
|
+
}
|
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 {
|