@randock/nameshift-api-client 0.0.16 → 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 -4
- 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 +53 -0
- 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 -4
- package/dist/models/index.js +2 -4
- package/package.json +6 -1
- package/src/apis/AccountsApi.ts +15 -27
- package/src/apis/AuthApi.ts +3 -3
- package/src/apis/DomainsApi.ts +63 -18
- 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 -4
|
@@ -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,16 +9,13 @@ export * from './CreateLeadInput';
|
|
|
9
9
|
export * from './CreateLeadMessageInput';
|
|
10
10
|
export * from './DeleteDomainsInput';
|
|
11
11
|
export * from './DomainDto';
|
|
12
|
-
export * from './IntersectionAccountDtoWithAddressDto';
|
|
13
|
-
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
14
12
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
15
|
-
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
16
13
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
14
|
+
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
17
15
|
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
18
16
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
19
17
|
export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
20
18
|
export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
21
|
-
export * from './LeadDto';
|
|
22
19
|
export * from './LeadMessageData';
|
|
23
20
|
export * from './LeadMessageDto';
|
|
24
21
|
export * from './LeadMessageDtoData';
|
|
@@ -31,6 +28,7 @@ export * from './Login429Response';
|
|
|
31
28
|
export * from './LoginInput';
|
|
32
29
|
export * from './MoneyDto';
|
|
33
30
|
export * from './MoneyInput';
|
|
31
|
+
export * from './ObjectId';
|
|
34
32
|
export * from './PaginateResponse';
|
|
35
33
|
export * from './PaginateResponseLinks';
|
|
36
34
|
export * from './PaginateResponseMeta';
|
package/dist/models/index.js
CHANGED
|
@@ -27,16 +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("./IntersectionAccountDtoWithAddressDto"), exports);
|
|
31
|
-
__exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
|
|
32
30
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
33
|
-
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
34
31
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
32
|
+
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
35
33
|
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
|
|
36
34
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
37
35
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDtoLastMessageData"), exports);
|
|
38
36
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDtoLastOffer"), exports);
|
|
39
|
-
__exportStar(require("./LeadDto"), exports);
|
|
40
37
|
__exportStar(require("./LeadMessageData"), exports);
|
|
41
38
|
__exportStar(require("./LeadMessageDto"), exports);
|
|
42
39
|
__exportStar(require("./LeadMessageDtoData"), exports);
|
|
@@ -49,6 +46,7 @@ __exportStar(require("./Login429Response"), exports);
|
|
|
49
46
|
__exportStar(require("./LoginInput"), exports);
|
|
50
47
|
__exportStar(require("./MoneyDto"), exports);
|
|
51
48
|
__exportStar(require("./MoneyInput"), exports);
|
|
49
|
+
__exportStar(require("./ObjectId"), exports);
|
|
52
50
|
__exportStar(require("./PaginateResponse"), exports);
|
|
53
51
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
54
52
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +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
|
+
"author": "OpenAPI-Generator",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
5
10
|
"main": "./dist/index.js",
|
|
6
11
|
"typings": "./dist/index.d.ts",
|
|
7
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
|
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
BatchUpdateDomainsInput,
|
|
20
20
|
DeleteDomainsInput,
|
|
21
21
|
DomainDto,
|
|
22
|
+
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
22
23
|
List200Response,
|
|
23
24
|
List400Response,
|
|
24
25
|
List401Response,
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
DeleteDomainsInputToJSON,
|
|
35
36
|
DomainDtoFromJSON,
|
|
36
37
|
DomainDtoToJSON,
|
|
38
|
+
IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
|
|
39
|
+
IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
|
|
37
40
|
List200ResponseFromJSON,
|
|
38
41
|
List200ResponseToJSON,
|
|
39
42
|
List400ResponseFromJSON,
|
|
@@ -46,31 +49,35 @@ import {
|
|
|
46
49
|
UpdateSettings429ResponseToJSON,
|
|
47
50
|
} from '../models/index';
|
|
48
51
|
|
|
49
|
-
export interface
|
|
52
|
+
export interface DomainsApiBatchImportRequest {
|
|
50
53
|
file?: Blob | null;
|
|
51
54
|
domains?: Array<string>;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
export interface
|
|
57
|
+
export interface DomainsApiBatchUpdateRequest {
|
|
55
58
|
batchUpdateDomainsInput: BatchUpdateDomainsInput;
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
export interface
|
|
61
|
+
export interface DomainsApiCheckDnsRequest {
|
|
59
62
|
domainId: string;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
|
-
export interface
|
|
65
|
+
export interface DomainsApiDeleteDomainsRequest {
|
|
63
66
|
deleteDomainsInput: DeleteDomainsInput;
|
|
64
67
|
}
|
|
65
68
|
|
|
66
|
-
export interface
|
|
69
|
+
export interface DomainsApiGetRequest {
|
|
70
|
+
domainId: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface DomainsApiListRequest {
|
|
67
74
|
filter?: object;
|
|
68
75
|
page?: number;
|
|
69
76
|
limit?: number;
|
|
70
77
|
sortBy?: Array<string>;
|
|
71
78
|
}
|
|
72
79
|
|
|
73
|
-
export interface
|
|
80
|
+
export interface DomainsApiUpdateRequest {
|
|
74
81
|
domainId: string;
|
|
75
82
|
updateDomainInput: UpdateDomainInput;
|
|
76
83
|
}
|
|
@@ -83,7 +90,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
83
90
|
/**
|
|
84
91
|
*
|
|
85
92
|
*/
|
|
86
|
-
async batchImportRaw(requestParameters:
|
|
93
|
+
async batchImportRaw(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
87
94
|
const queryParameters: any = {};
|
|
88
95
|
|
|
89
96
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -134,14 +141,14 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
134
141
|
/**
|
|
135
142
|
*
|
|
136
143
|
*/
|
|
137
|
-
async batchImport(requestParameters:
|
|
144
|
+
async batchImport(requestParameters: DomainsApiBatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
138
145
|
await this.batchImportRaw(requestParameters, initOverrides);
|
|
139
146
|
}
|
|
140
147
|
|
|
141
148
|
/**
|
|
142
149
|
*
|
|
143
150
|
*/
|
|
144
|
-
async batchUpdateRaw(requestParameters:
|
|
151
|
+
async batchUpdateRaw(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
145
152
|
if (requestParameters.batchUpdateDomainsInput === null || requestParameters.batchUpdateDomainsInput === undefined) {
|
|
146
153
|
throw new runtime.RequiredError('batchUpdateDomainsInput','Required parameter requestParameters.batchUpdateDomainsInput was null or undefined when calling batchUpdate.');
|
|
147
154
|
}
|
|
@@ -174,14 +181,14 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
174
181
|
/**
|
|
175
182
|
*
|
|
176
183
|
*/
|
|
177
|
-
async batchUpdate(requestParameters:
|
|
184
|
+
async batchUpdate(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
178
185
|
await this.batchUpdateRaw(requestParameters, initOverrides);
|
|
179
186
|
}
|
|
180
187
|
|
|
181
188
|
/**
|
|
182
189
|
*
|
|
183
190
|
*/
|
|
184
|
-
async checkDnsRaw(requestParameters:
|
|
191
|
+
async checkDnsRaw(requestParameters: DomainsApiCheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
185
192
|
if (requestParameters.domainId === null || requestParameters.domainId === undefined) {
|
|
186
193
|
throw new runtime.RequiredError('domainId','Required parameter requestParameters.domainId was null or undefined when calling checkDns.');
|
|
187
194
|
}
|
|
@@ -211,14 +218,14 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
211
218
|
/**
|
|
212
219
|
*
|
|
213
220
|
*/
|
|
214
|
-
async checkDns(requestParameters:
|
|
221
|
+
async checkDns(requestParameters: DomainsApiCheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
215
222
|
await this.checkDnsRaw(requestParameters, initOverrides);
|
|
216
223
|
}
|
|
217
224
|
|
|
218
225
|
/**
|
|
219
226
|
*
|
|
220
227
|
*/
|
|
221
|
-
async deleteDomainsRaw(requestParameters:
|
|
228
|
+
async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
222
229
|
if (requestParameters.deleteDomainsInput === null || requestParameters.deleteDomainsInput === undefined) {
|
|
223
230
|
throw new runtime.RequiredError('deleteDomainsInput','Required parameter requestParameters.deleteDomainsInput was null or undefined when calling deleteDomains.');
|
|
224
231
|
}
|
|
@@ -251,14 +258,52 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
251
258
|
/**
|
|
252
259
|
*
|
|
253
260
|
*/
|
|
254
|
-
async deleteDomains(requestParameters:
|
|
261
|
+
async deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
255
262
|
await this.deleteDomainsRaw(requestParameters, initOverrides);
|
|
256
263
|
}
|
|
257
264
|
|
|
258
265
|
/**
|
|
259
266
|
*
|
|
260
267
|
*/
|
|
261
|
-
async
|
|
268
|
+
async getRaw(requestParameters: DomainsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainDtoWithHijackerDtoWithAccountDto>> {
|
|
269
|
+
if (requestParameters.domainId === null || requestParameters.domainId === undefined) {
|
|
270
|
+
throw new runtime.RequiredError('domainId','Required parameter requestParameters.domainId was null or undefined when calling get.');
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const queryParameters: any = {};
|
|
274
|
+
|
|
275
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
276
|
+
|
|
277
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
278
|
+
const token = this.configuration.accessToken;
|
|
279
|
+
const tokenString = await token("bearer", []);
|
|
280
|
+
|
|
281
|
+
if (tokenString) {
|
|
282
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const response = await this.request({
|
|
286
|
+
path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters.domainId))),
|
|
287
|
+
method: 'GET',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
|
|
292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(jsonValue));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
async get(requestParameters: DomainsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainDtoWithHijackerDtoWithAccountDto> {
|
|
299
|
+
const response = await this.getRaw(requestParameters, initOverrides);
|
|
300
|
+
return await response.value();
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
*/
|
|
306
|
+
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
262
307
|
const queryParameters: any = {};
|
|
263
308
|
|
|
264
309
|
if (requestParameters.filter !== undefined) {
|
|
@@ -300,7 +345,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
300
345
|
/**
|
|
301
346
|
*
|
|
302
347
|
*/
|
|
303
|
-
async list(requestParameters:
|
|
348
|
+
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response> {
|
|
304
349
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
305
350
|
return await response.value();
|
|
306
351
|
}
|
|
@@ -308,7 +353,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
308
353
|
/**
|
|
309
354
|
*
|
|
310
355
|
*/
|
|
311
|
-
async updateRaw(requestParameters:
|
|
356
|
+
async updateRaw(requestParameters: DomainsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainDto>> {
|
|
312
357
|
if (requestParameters.domainId === null || requestParameters.domainId === undefined) {
|
|
313
358
|
throw new runtime.RequiredError('domainId','Required parameter requestParameters.domainId was null or undefined when calling update.');
|
|
314
359
|
}
|
|
@@ -345,7 +390,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
345
390
|
/**
|
|
346
391
|
*
|
|
347
392
|
*/
|
|
348
|
-
async update(requestParameters:
|
|
393
|
+
async update(requestParameters: DomainsApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainDto> {
|
|
349
394
|
const response = await this.updateRaw(requestParameters, initOverrides);
|
|
350
395
|
return await response.value();
|
|
351
396
|
}
|
|
@@ -22,7 +22,11 @@ import {
|
|
|
22
22
|
PublicDomainControllerGetDomainIdentifier404ResponseToJSON,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
|
-
export interface
|
|
25
|
+
export interface DomainsPublicApiPublicDomainControllerGetCaddyRequest {
|
|
26
|
+
domain: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
|
|
26
30
|
domainName: string;
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -33,7 +37,38 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
33
37
|
|
|
34
38
|
/**
|
|
35
39
|
*/
|
|
36
|
-
async
|
|
40
|
+
async publicDomainControllerGetCaddyRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
41
|
+
if (requestParameters.domain === null || requestParameters.domain === undefined) {
|
|
42
|
+
throw new runtime.RequiredError('domain','Required parameter requestParameters.domain was null or undefined when calling publicDomainControllerGetCaddy.');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const queryParameters: any = {};
|
|
46
|
+
|
|
47
|
+
if (requestParameters.domain !== undefined) {
|
|
48
|
+
queryParameters['domain'] = requestParameters.domain;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
52
|
+
|
|
53
|
+
const response = await this.request({
|
|
54
|
+
path: `/caddy`,
|
|
55
|
+
method: 'GET',
|
|
56
|
+
headers: headerParameters,
|
|
57
|
+
query: queryParameters,
|
|
58
|
+
}, initOverrides);
|
|
59
|
+
|
|
60
|
+
return new runtime.VoidApiResponse(response);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
*/
|
|
65
|
+
async publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
66
|
+
await this.publicDomainControllerGetCaddyRaw(requestParameters, initOverrides);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
*/
|
|
71
|
+
async publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
37
72
|
if (requestParameters.domainName === null || requestParameters.domainName === undefined) {
|
|
38
73
|
throw new runtime.RequiredError('domainName','Required parameter requestParameters.domainName was null or undefined when calling publicDomainControllerGetDomainIdentifier.');
|
|
39
74
|
}
|
|
@@ -54,7 +89,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
54
89
|
|
|
55
90
|
/**
|
|
56
91
|
*/
|
|
57
|
-
async publicDomainControllerGetDomainIdentifier(requestParameters:
|
|
92
|
+
async publicDomainControllerGetDomainIdentifier(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
|
|
58
93
|
const response = await this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides);
|
|
59
94
|
return await response.value();
|
|
60
95
|
}
|