@randock/nameshift-api-client 0.0.15 → 0.0.17
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 +2 -5
- package/dist/apis/AccountsApi.d.ts +10 -10
- package/dist/apis/AccountsApi.js +9 -15
- package/dist/apis/AuthApi.d.ts +3 -3
- package/dist/apis/DomainsApi.d.ts +30 -19
- package/dist/apis/DomainsApi.js +56 -5
- package/dist/apis/DomainsPublicApi.d.ts +12 -3
- package/dist/apis/DomainsPublicApi.js +43 -0
- package/dist/apis/LeadsApi.d.ts +13 -13
- package/dist/apis/LeadsApi.js +4 -6
- package/dist/apis/LeadsPublicApi.d.ts +4 -4
- package/dist/apis/LeadsPublicApi.js +1 -1
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +81 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +76 -0
- package/dist/models/ObjectId.d.ts +31 -0
- package/dist/models/ObjectId.js +50 -0
- package/dist/models/index.d.ts +2 -5
- package/dist/models/index.js +2 -5
- package/package.json +5 -1
- package/src/apis/AccountsApi.ts +15 -27
- package/src/apis/AuthApi.ts +3 -3
- package/src/apis/DomainsApi.ts +65 -24
- package/src/apis/DomainsPublicApi.ts +38 -3
- package/src/apis/LeadsApi.ts +18 -19
- package/src/apis/LeadsPublicApi.ts +7 -7
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +151 -0
- package/src/models/ObjectId.ts +66 -0
- package/src/models/index.ts +2 -5
|
@@ -0,0 +1,81 @@
|
|
|
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 { AccountDto } from './AccountDto';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
18
|
+
*/
|
|
19
|
+
export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
20
|
+
/**
|
|
21
|
+
* The uuid for this domain.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The TLD for this domain.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
30
|
+
*/
|
|
31
|
+
tld: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
36
|
+
*/
|
|
37
|
+
verified: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the nameservers (ns1,ns2) are set or not.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
42
|
+
*/
|
|
43
|
+
nameservers: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The domain name (example.com)
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {MoneyDto}
|
|
53
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
54
|
+
*/
|
|
55
|
+
buyNow: MoneyDto;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {MoneyDto}
|
|
59
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
60
|
+
*/
|
|
61
|
+
minOffer: MoneyDto;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {AccountDto}
|
|
65
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
66
|
+
*/
|
|
67
|
+
hijacker: AccountDto | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {AccountDto}
|
|
71
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
72
|
+
*/
|
|
73
|
+
account: AccountDto;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value: object): boolean;
|
|
79
|
+
export declare function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithHijackerDtoWithAccountDto;
|
|
80
|
+
export declare function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithHijackerDtoWithAccountDto;
|
|
81
|
+
export declare function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithHijackerDtoWithAccountDto | null): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON = exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped = exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON = exports.instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto = void 0;
|
|
17
|
+
var AccountDto_1 = require("./AccountDto");
|
|
18
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
isInstance = isInstance && "id" in value;
|
|
25
|
+
isInstance = isInstance && "tld" in value;
|
|
26
|
+
isInstance = isInstance && "verified" in value;
|
|
27
|
+
isInstance = isInstance && "nameservers" in value;
|
|
28
|
+
isInstance = isInstance && "name" in value;
|
|
29
|
+
isInstance = isInstance && "buyNow" in value;
|
|
30
|
+
isInstance = isInstance && "minOffer" in value;
|
|
31
|
+
isInstance = isInstance && "hijacker" in value;
|
|
32
|
+
isInstance = isInstance && "account" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto = instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto;
|
|
36
|
+
function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json) {
|
|
37
|
+
return IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON = IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON;
|
|
40
|
+
function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'tld': json['tld'],
|
|
47
|
+
'verified': json['verified'],
|
|
48
|
+
'nameservers': json['nameservers'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
51
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
52
|
+
'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
|
|
53
|
+
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped = IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped;
|
|
57
|
+
function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
|
|
58
|
+
if (value === undefined) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
if (value === null) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value.id,
|
|
66
|
+
'tld': value.tld,
|
|
67
|
+
'verified': value.verified,
|
|
68
|
+
'nameservers': value.nameservers,
|
|
69
|
+
'name': value.name,
|
|
70
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value.buyNow),
|
|
71
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.minOffer),
|
|
72
|
+
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value.hijacker),
|
|
73
|
+
'account': (0, AccountDto_1.AccountDtoToJSON)(value.account),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON = IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 ObjectId
|
|
16
|
+
*/
|
|
17
|
+
export interface ObjectId {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ObjectId
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ObjectId interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfObjectId(value: object): boolean;
|
|
29
|
+
export declare function ObjectIdFromJSON(json: any): ObjectId;
|
|
30
|
+
export declare function ObjectIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectId;
|
|
31
|
+
export declare function ObjectIdToJSON(value?: ObjectId | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.ObjectIdToJSON = exports.ObjectIdFromJSONTyped = exports.ObjectIdFromJSON = exports.instanceOfObjectId = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ObjectId interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfObjectId(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfObjectId = instanceOfObjectId;
|
|
26
|
+
function ObjectIdFromJSON(json) {
|
|
27
|
+
return ObjectIdFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ObjectIdFromJSON = ObjectIdFromJSON;
|
|
30
|
+
function ObjectIdFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ObjectIdFromJSONTyped = ObjectIdFromJSONTyped;
|
|
39
|
+
function ObjectIdToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value.id,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.ObjectIdToJSON = ObjectIdToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,17 +9,13 @@ export * from './CreateLeadInput';
|
|
|
9
9
|
export * from './CreateLeadMessageInput';
|
|
10
10
|
export * from './DeleteDomainsInput';
|
|
11
11
|
export * from './DomainDto';
|
|
12
|
-
export * from './ImportDomainsDto';
|
|
13
|
-
export * from './IntersectionAccountDtoWithAddressDto';
|
|
14
|
-
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
15
12
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
16
|
-
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
17
13
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
14
|
+
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
18
15
|
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
19
16
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
20
17
|
export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
21
18
|
export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
22
|
-
export * from './LeadDto';
|
|
23
19
|
export * from './LeadMessageData';
|
|
24
20
|
export * from './LeadMessageDto';
|
|
25
21
|
export * from './LeadMessageDtoData';
|
|
@@ -32,6 +28,7 @@ export * from './Login429Response';
|
|
|
32
28
|
export * from './LoginInput';
|
|
33
29
|
export * from './MoneyDto';
|
|
34
30
|
export * from './MoneyInput';
|
|
31
|
+
export * from './ObjectId';
|
|
35
32
|
export * from './PaginateResponse';
|
|
36
33
|
export * from './PaginateResponseLinks';
|
|
37
34
|
export * from './PaginateResponseMeta';
|
package/dist/models/index.js
CHANGED
|
@@ -27,17 +27,13 @@ __exportStar(require("./CreateLeadInput"), exports);
|
|
|
27
27
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
28
28
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
29
29
|
__exportStar(require("./DomainDto"), exports);
|
|
30
|
-
__exportStar(require("./ImportDomainsDto"), exports);
|
|
31
|
-
__exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
|
|
32
|
-
__exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
|
|
33
30
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
34
|
-
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
35
31
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
32
|
+
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
36
33
|
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
|
|
37
34
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
38
35
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDtoLastMessageData"), exports);
|
|
39
36
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDtoLastOffer"), exports);
|
|
40
|
-
__exportStar(require("./LeadDto"), exports);
|
|
41
37
|
__exportStar(require("./LeadMessageData"), exports);
|
|
42
38
|
__exportStar(require("./LeadMessageDto"), exports);
|
|
43
39
|
__exportStar(require("./LeadMessageDtoData"), exports);
|
|
@@ -50,6 +46,7 @@ __exportStar(require("./Login429Response"), exports);
|
|
|
50
46
|
__exportStar(require("./LoginInput"), exports);
|
|
51
47
|
__exportStar(require("./MoneyDto"), exports);
|
|
52
48
|
__exportStar(require("./MoneyInput"), exports);
|
|
49
|
+
__exportStar(require("./ObjectId"), exports);
|
|
53
50
|
__exportStar(require("./PaginateResponse"), exports);
|
|
54
51
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
55
52
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randock/nameshift-api-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "OpenAPI client for @randock/nameshift-api-client",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
6
10
|
"main": "./dist/index.js",
|
|
7
11
|
"typings": "./dist/index.d.ts",
|
|
8
12
|
"scripts": {
|
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -18,10 +18,7 @@ import type {
|
|
|
18
18
|
AccountAddressInput,
|
|
19
19
|
AccountFinancialInput,
|
|
20
20
|
AccountSettingsInput,
|
|
21
|
-
IntersectionAccountDtoWithAddressDto,
|
|
22
|
-
IntersectionAccountDtoWithFinancialDto,
|
|
23
21
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
|
|
24
|
-
IntersectionAccountDtoWithSettingsDto,
|
|
25
22
|
UpdateSettings401Response,
|
|
26
23
|
UpdateSettings429Response,
|
|
27
24
|
} from '../models/index';
|
|
@@ -32,31 +29,25 @@ import {
|
|
|
32
29
|
AccountFinancialInputToJSON,
|
|
33
30
|
AccountSettingsInputFromJSON,
|
|
34
31
|
AccountSettingsInputToJSON,
|
|
35
|
-
IntersectionAccountDtoWithAddressDtoFromJSON,
|
|
36
|
-
IntersectionAccountDtoWithAddressDtoToJSON,
|
|
37
|
-
IntersectionAccountDtoWithFinancialDtoFromJSON,
|
|
38
|
-
IntersectionAccountDtoWithFinancialDtoToJSON,
|
|
39
32
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
|
|
40
33
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
|
|
41
|
-
IntersectionAccountDtoWithSettingsDtoFromJSON,
|
|
42
|
-
IntersectionAccountDtoWithSettingsDtoToJSON,
|
|
43
34
|
UpdateSettings401ResponseFromJSON,
|
|
44
35
|
UpdateSettings401ResponseToJSON,
|
|
45
36
|
UpdateSettings429ResponseFromJSON,
|
|
46
37
|
UpdateSettings429ResponseToJSON,
|
|
47
38
|
} from '../models/index';
|
|
48
39
|
|
|
49
|
-
export interface
|
|
40
|
+
export interface AccountsApiUpdateAddressRequest {
|
|
50
41
|
accountId: string;
|
|
51
42
|
accountAddressInput: AccountAddressInput;
|
|
52
43
|
}
|
|
53
44
|
|
|
54
|
-
export interface
|
|
45
|
+
export interface AccountsApiUpdateFinancialRequest {
|
|
55
46
|
accountId: string;
|
|
56
47
|
accountFinancialInput: AccountFinancialInput;
|
|
57
48
|
}
|
|
58
49
|
|
|
59
|
-
export interface
|
|
50
|
+
export interface AccountsApiUpdateSettingsRequest {
|
|
60
51
|
accountId: string;
|
|
61
52
|
accountSettingsInput: AccountSettingsInput;
|
|
62
53
|
}
|
|
@@ -103,7 +94,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
103
94
|
/**
|
|
104
95
|
*
|
|
105
96
|
*/
|
|
106
|
-
async updateAddressRaw(requestParameters:
|
|
97
|
+
async updateAddressRaw(requestParameters: AccountsApiUpdateAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
107
98
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
108
99
|
throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling updateAddress.');
|
|
109
100
|
}
|
|
@@ -134,21 +125,20 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
134
125
|
body: AccountAddressInputToJSON(requestParameters.accountAddressInput),
|
|
135
126
|
}, initOverrides);
|
|
136
127
|
|
|
137
|
-
return new runtime.
|
|
128
|
+
return new runtime.VoidApiResponse(response);
|
|
138
129
|
}
|
|
139
130
|
|
|
140
131
|
/**
|
|
141
132
|
*
|
|
142
133
|
*/
|
|
143
|
-
async updateAddress(requestParameters:
|
|
144
|
-
|
|
145
|
-
return await response.value();
|
|
134
|
+
async updateAddress(requestParameters: AccountsApiUpdateAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
135
|
+
await this.updateAddressRaw(requestParameters, initOverrides);
|
|
146
136
|
}
|
|
147
137
|
|
|
148
138
|
/**
|
|
149
139
|
*
|
|
150
140
|
*/
|
|
151
|
-
async updateFinancialRaw(requestParameters:
|
|
141
|
+
async updateFinancialRaw(requestParameters: AccountsApiUpdateFinancialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
152
142
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
153
143
|
throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling updateFinancial.');
|
|
154
144
|
}
|
|
@@ -179,21 +169,20 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
179
169
|
body: AccountFinancialInputToJSON(requestParameters.accountFinancialInput),
|
|
180
170
|
}, initOverrides);
|
|
181
171
|
|
|
182
|
-
return new runtime.
|
|
172
|
+
return new runtime.VoidApiResponse(response);
|
|
183
173
|
}
|
|
184
174
|
|
|
185
175
|
/**
|
|
186
176
|
*
|
|
187
177
|
*/
|
|
188
|
-
async updateFinancial(requestParameters:
|
|
189
|
-
|
|
190
|
-
return await response.value();
|
|
178
|
+
async updateFinancial(requestParameters: AccountsApiUpdateFinancialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
179
|
+
await this.updateFinancialRaw(requestParameters, initOverrides);
|
|
191
180
|
}
|
|
192
181
|
|
|
193
182
|
/**
|
|
194
183
|
*
|
|
195
184
|
*/
|
|
196
|
-
async updateSettingsRaw(requestParameters:
|
|
185
|
+
async updateSettingsRaw(requestParameters: AccountsApiUpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
197
186
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
198
187
|
throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling updateSettings.');
|
|
199
188
|
}
|
|
@@ -224,15 +213,14 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
224
213
|
body: AccountSettingsInputToJSON(requestParameters.accountSettingsInput),
|
|
225
214
|
}, initOverrides);
|
|
226
215
|
|
|
227
|
-
return new runtime.
|
|
216
|
+
return new runtime.VoidApiResponse(response);
|
|
228
217
|
}
|
|
229
218
|
|
|
230
219
|
/**
|
|
231
220
|
*
|
|
232
221
|
*/
|
|
233
|
-
async updateSettings(requestParameters:
|
|
234
|
-
|
|
235
|
-
return await response.value();
|
|
222
|
+
async updateSettings(requestParameters: AccountsApiUpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
223
|
+
await this.updateSettingsRaw(requestParameters, initOverrides);
|
|
236
224
|
}
|
|
237
225
|
|
|
238
226
|
}
|
package/src/apis/AuthApi.ts
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
TokenDtoToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
-
export interface
|
|
34
|
+
export interface AuthApiLoginRequest {
|
|
35
35
|
loginInput: LoginInput;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -43,7 +43,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
async loginRaw(requestParameters:
|
|
46
|
+
async loginRaw(requestParameters: AuthApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
|
|
47
47
|
if (requestParameters.loginInput === null || requestParameters.loginInput === undefined) {
|
|
48
48
|
throw new runtime.RequiredError('loginInput','Required parameter requestParameters.loginInput was null or undefined when calling login.');
|
|
49
49
|
}
|
|
@@ -68,7 +68,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
*/
|
|
71
|
-
async login(requestParameters:
|
|
71
|
+
async login(requestParameters: AuthApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto> {
|
|
72
72
|
const response = await this.loginRaw(requestParameters, initOverrides);
|
|
73
73
|
return await response.value();
|
|
74
74
|
}
|