@randock/nameshift-api-client 0.0.3 → 0.0.5
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 -1
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/apis/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/models/AccountDto.d.ts +37 -0
- package/dist/models/AccountDto.js +53 -0
- package/dist/models/DeleteDomainsInput.d.ts +31 -0
- package/dist/models/DeleteDomainsInput.js +50 -0
- package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +6 -0
- package/dist/models/IntersectionAccountDtoWithAddressDto.js +3 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +6 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDto.js +3 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +6 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -5
- package/src/apis/AccountsApi.ts +37 -0
- package/src/apis/DomainsApi.ts +47 -0
- package/src/models/AccountDto.ts +75 -0
- package/src/models/DeleteDomainsInput.ts +66 -0
- package/src/models/IntersectionAccountDtoWithAddressDto.ts +9 -0
- package/src/models/IntersectionAccountDtoWithFinancialDto.ts +9 -0
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +9 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
|
-
.openapi-generator-ignore
|
|
4
3
|
README.md
|
|
5
4
|
package.json
|
|
6
5
|
src/apis/AccountsApi.ts
|
|
@@ -12,11 +11,13 @@ src/apis/index.ts
|
|
|
12
11
|
src/index.ts
|
|
13
12
|
src/models/AccountAddressDto.ts
|
|
14
13
|
src/models/AccountAddressInput.ts
|
|
14
|
+
src/models/AccountDto.ts
|
|
15
15
|
src/models/AccountFinancialInput.ts
|
|
16
16
|
src/models/AccountSettingsInput.ts
|
|
17
17
|
src/models/BatchUpdate404Response.ts
|
|
18
18
|
src/models/BatchUpdateDomainsInput.ts
|
|
19
19
|
src/models/CreateLeadInput.ts
|
|
20
|
+
src/models/DeleteDomainsInput.ts
|
|
20
21
|
src/models/DomainDto.ts
|
|
21
22
|
src/models/ImportDomainsDto.ts
|
|
22
23
|
src/models/IntersectionAccountDtoWithAddressDto.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountAddressInput, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
|
|
13
|
+
import type { AccountAddressInput, AccountDto, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
|
|
14
14
|
export interface UpdateAddressRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
accountAddressInput: AccountAddressInput;
|
|
@@ -27,6 +27,14 @@ export interface UpdateSettingsRequest {
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
export declare class AccountsApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDto>>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDto>;
|
|
30
38
|
/**
|
|
31
39
|
*
|
|
32
40
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -75,6 +75,56 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AccountsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
AccountsApi.prototype.meRaw = function (initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
|
+
token = this.configuration.accessToken;
|
|
91
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
92
|
+
case 1:
|
|
93
|
+
tokenString = _a.sent();
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
96
|
+
}
|
|
97
|
+
_a.label = 2;
|
|
98
|
+
case 2: return [4 /*yield*/, this.request({
|
|
99
|
+
path: "/accounts/me",
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 3:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountDtoFromJSON)(jsonValue); })];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
AccountsApi.prototype.me = function (initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var response;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4 /*yield*/, this.meRaw(initOverrides)];
|
|
120
|
+
case 1:
|
|
121
|
+
response = _a.sent();
|
|
122
|
+
return [4 /*yield*/, response.value()];
|
|
123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
78
128
|
/**
|
|
79
129
|
*
|
|
80
130
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchUpdateDomainsInput, DomainDto, ImportDomainsDto, List200Response, UpdateDomainInput } from '../models/index';
|
|
13
|
+
import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, ImportDomainsDto, List200Response, UpdateDomainInput } from '../models/index';
|
|
14
14
|
export interface BatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -21,6 +21,9 @@ export interface BatchUpdateRequest {
|
|
|
21
21
|
export interface CheckDnsRequest {
|
|
22
22
|
domainId: string;
|
|
23
23
|
}
|
|
24
|
+
export interface DeleteDomainsRequest {
|
|
25
|
+
deleteDomainsInput: DeleteDomainsInput;
|
|
26
|
+
}
|
|
24
27
|
export interface ListRequest {
|
|
25
28
|
filter?: object;
|
|
26
29
|
page?: number;
|
|
@@ -59,6 +62,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
59
62
|
*
|
|
60
63
|
*/
|
|
61
64
|
checkDns(requestParameters: CheckDnsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
deleteDomainsRaw(requestParameters: DeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
deleteDomains(requestParameters: DeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
62
73
|
/**
|
|
63
74
|
*
|
|
64
75
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -251,6 +251,59 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
251
251
|
});
|
|
252
252
|
});
|
|
253
253
|
};
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
257
|
+
DomainsApi.prototype.deleteDomainsRaw = function (requestParameters, initOverrides) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
260
|
+
return __generator(this, function (_a) {
|
|
261
|
+
switch (_a.label) {
|
|
262
|
+
case 0:
|
|
263
|
+
if (requestParameters.deleteDomainsInput === null || requestParameters.deleteDomainsInput === undefined) {
|
|
264
|
+
throw new runtime.RequiredError('deleteDomainsInput', 'Required parameter requestParameters.deleteDomainsInput was null or undefined when calling deleteDomains.');
|
|
265
|
+
}
|
|
266
|
+
queryParameters = {};
|
|
267
|
+
headerParameters = {};
|
|
268
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
269
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
270
|
+
token = this.configuration.accessToken;
|
|
271
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
272
|
+
case 1:
|
|
273
|
+
tokenString = _a.sent();
|
|
274
|
+
if (tokenString) {
|
|
275
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
276
|
+
}
|
|
277
|
+
_a.label = 2;
|
|
278
|
+
case 2: return [4 /*yield*/, this.request({
|
|
279
|
+
path: "/domains",
|
|
280
|
+
method: 'DELETE',
|
|
281
|
+
headers: headerParameters,
|
|
282
|
+
query: queryParameters,
|
|
283
|
+
body: (0, index_1.DeleteDomainsInputToJSON)(requestParameters.deleteDomainsInput),
|
|
284
|
+
}, initOverrides)];
|
|
285
|
+
case 3:
|
|
286
|
+
response = _a.sent();
|
|
287
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
*/
|
|
295
|
+
DomainsApi.prototype.deleteDomains = function (requestParameters, initOverrides) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
297
|
+
return __generator(this, function (_a) {
|
|
298
|
+
switch (_a.label) {
|
|
299
|
+
case 0: return [4 /*yield*/, this.deleteDomainsRaw(requestParameters, initOverrides)];
|
|
300
|
+
case 1:
|
|
301
|
+
_a.sent();
|
|
302
|
+
return [2 /*return*/];
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
};
|
|
254
307
|
/**
|
|
255
308
|
*
|
|
256
309
|
*/
|
|
@@ -0,0 +1,37 @@
|
|
|
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 AccountDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountDto
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AccountDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAccountDto(value: object): boolean;
|
|
35
|
+
export declare function AccountDtoFromJSON(json: any): AccountDto;
|
|
36
|
+
export declare function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDto;
|
|
37
|
+
export declare function AccountDtoToJSON(value?: AccountDto | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.AccountDtoToJSON = exports.AccountDtoFromJSONTyped = exports.AccountDtoFromJSON = exports.instanceOfAccountDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AccountDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAccountDto(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "identifier" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfAccountDto = instanceOfAccountDto;
|
|
27
|
+
function AccountDtoFromJSON(json) {
|
|
28
|
+
return AccountDtoFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.AccountDtoFromJSON = AccountDtoFromJSON;
|
|
31
|
+
function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'identifier': json['identifier'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
|
|
41
|
+
function AccountDtoToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value.id,
|
|
50
|
+
'identifier': value.identifier,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
@@ -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 DeleteDomainsInput
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteDomainsInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof DeleteDomainsInput
|
|
22
|
+
*/
|
|
23
|
+
domainIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DeleteDomainsInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDeleteDomainsInput(value: object): boolean;
|
|
29
|
+
export declare function DeleteDomainsInputFromJSON(json: any): DeleteDomainsInput;
|
|
30
|
+
export declare function DeleteDomainsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDomainsInput;
|
|
31
|
+
export declare function DeleteDomainsInputToJSON(value?: DeleteDomainsInput | 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.DeleteDomainsInputToJSON = exports.DeleteDomainsInputFromJSONTyped = exports.DeleteDomainsInputFromJSON = exports.instanceOfDeleteDomainsInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the DeleteDomainsInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfDeleteDomainsInput(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "domainIds" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfDeleteDomainsInput = instanceOfDeleteDomainsInput;
|
|
26
|
+
function DeleteDomainsInputFromJSON(json) {
|
|
27
|
+
return DeleteDomainsInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.DeleteDomainsInputFromJSON = DeleteDomainsInputFromJSON;
|
|
30
|
+
function DeleteDomainsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'domainIds': json['domainIds'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.DeleteDomainsInputFromJSONTyped = DeleteDomainsInputFromJSONTyped;
|
|
39
|
+
function DeleteDomainsInputToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'domainIds': value.domainIds,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.DeleteDomainsInputToJSON = DeleteDomainsInputToJSON;
|
|
@@ -22,6 +22,12 @@ export interface IntersectionAccountDtoWithAddressDto {
|
|
|
22
22
|
* @memberof IntersectionAccountDtoWithAddressDto
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntersectionAccountDtoWithAddressDto
|
|
29
|
+
*/
|
|
30
|
+
identifier: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {Array<AccountAddressDto>}
|
|
@@ -21,6 +21,7 @@ var AccountAddressDto_1 = require("./AccountAddressDto");
|
|
|
21
21
|
function instanceOfIntersectionAccountDtoWithAddressDto(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
23
|
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "identifier" in value;
|
|
24
25
|
isInstance = isInstance && "addresses" in value;
|
|
25
26
|
return isInstance;
|
|
26
27
|
}
|
|
@@ -35,6 +36,7 @@ function IntersectionAccountDtoWithAddressDtoFromJSONTyped(json, ignoreDiscrimin
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'id': json['id'],
|
|
39
|
+
'identifier': json['identifier'],
|
|
38
40
|
'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -48,6 +50,7 @@ function IntersectionAccountDtoWithAddressDtoToJSON(value) {
|
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
50
52
|
'id': value.id,
|
|
53
|
+
'identifier': value.identifier,
|
|
51
54
|
'addresses': (value.addresses.map(AccountAddressDto_1.AccountAddressDtoToJSON)),
|
|
52
55
|
};
|
|
53
56
|
}
|
|
@@ -22,6 +22,12 @@ export interface IntersectionAccountDtoWithFinancialDto {
|
|
|
22
22
|
* @memberof IntersectionAccountDtoWithFinancialDto
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntersectionAccountDtoWithFinancialDto
|
|
29
|
+
*/
|
|
30
|
+
identifier: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {IntersectionAccountDtoWithFinancialDtoFinancial}
|
|
@@ -21,6 +21,7 @@ var IntersectionAccountDtoWithFinancialDtoFinancial_1 = require("./IntersectionA
|
|
|
21
21
|
function instanceOfIntersectionAccountDtoWithFinancialDto(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
23
|
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "identifier" in value;
|
|
24
25
|
isInstance = isInstance && "financial" in value;
|
|
25
26
|
return isInstance;
|
|
26
27
|
}
|
|
@@ -35,6 +36,7 @@ function IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json, ignoreDiscrim
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'id': json['id'],
|
|
39
|
+
'identifier': json['identifier'],
|
|
38
40
|
'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialFromJSON)(json['financial']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -48,6 +50,7 @@ function IntersectionAccountDtoWithFinancialDtoToJSON(value) {
|
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
50
52
|
'id': value.id,
|
|
53
|
+
'identifier': value.identifier,
|
|
51
54
|
'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialToJSON)(value.financial),
|
|
52
55
|
};
|
|
53
56
|
}
|
|
@@ -22,6 +22,12 @@ export interface IntersectionAccountDtoWithSettingsDto {
|
|
|
22
22
|
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
29
|
+
*/
|
|
30
|
+
identifier: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {IntersectionAccountDtoWithSettingsDtoSettings}
|
|
@@ -21,6 +21,7 @@ var IntersectionAccountDtoWithSettingsDtoSettings_1 = require("./IntersectionAcc
|
|
|
21
21
|
function instanceOfIntersectionAccountDtoWithSettingsDto(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
23
|
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "identifier" in value;
|
|
24
25
|
isInstance = isInstance && "settings" in value;
|
|
25
26
|
return isInstance;
|
|
26
27
|
}
|
|
@@ -35,6 +36,7 @@ function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'id': json['id'],
|
|
39
|
+
'identifier': json['identifier'],
|
|
38
40
|
'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsFromJSON)(json['settings']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -48,6 +50,7 @@ function IntersectionAccountDtoWithSettingsDtoToJSON(value) {
|
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
50
52
|
'id': value.id,
|
|
53
|
+
'identifier': value.identifier,
|
|
51
54
|
'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsToJSON)(value.settings),
|
|
52
55
|
};
|
|
53
56
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './AccountAddressDto';
|
|
2
2
|
export * from './AccountAddressInput';
|
|
3
|
+
export * from './AccountDto';
|
|
3
4
|
export * from './AccountFinancialInput';
|
|
4
5
|
export * from './AccountSettingsInput';
|
|
5
6
|
export * from './BatchUpdate404Response';
|
|
6
7
|
export * from './BatchUpdateDomainsInput';
|
|
7
8
|
export * from './CreateLeadInput';
|
|
9
|
+
export * from './DeleteDomainsInput';
|
|
8
10
|
export * from './DomainDto';
|
|
9
11
|
export * from './ImportDomainsDto';
|
|
10
12
|
export * from './IntersectionAccountDtoWithAddressDto';
|
package/dist/models/index.js
CHANGED
|
@@ -18,11 +18,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountAddressDto"), exports);
|
|
20
20
|
__exportStar(require("./AccountAddressInput"), exports);
|
|
21
|
+
__exportStar(require("./AccountDto"), exports);
|
|
21
22
|
__exportStar(require("./AccountFinancialInput"), exports);
|
|
22
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
23
24
|
__exportStar(require("./BatchUpdate404Response"), exports);
|
|
24
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
25
26
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
27
|
+
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
26
28
|
__exportStar(require("./DomainDto"), exports);
|
|
27
29
|
__exportStar(require("./ImportDomainsDto"), exports);
|
|
28
30
|
__exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randock/nameshift-api-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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
|
-
},
|
|
10
6
|
"main": "./dist/index.js",
|
|
11
7
|
"typings": "./dist/index.d.ts",
|
|
12
8
|
"scripts": {
|
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AccountAddressInput,
|
|
19
|
+
AccountDto,
|
|
19
20
|
AccountFinancialInput,
|
|
20
21
|
AccountSettingsInput,
|
|
21
22
|
IntersectionAccountDtoWithAddressDto,
|
|
@@ -27,6 +28,8 @@ import type {
|
|
|
27
28
|
import {
|
|
28
29
|
AccountAddressInputFromJSON,
|
|
29
30
|
AccountAddressInputToJSON,
|
|
31
|
+
AccountDtoFromJSON,
|
|
32
|
+
AccountDtoToJSON,
|
|
30
33
|
AccountFinancialInputFromJSON,
|
|
31
34
|
AccountFinancialInputToJSON,
|
|
32
35
|
AccountSettingsInputFromJSON,
|
|
@@ -63,6 +66,40 @@ export interface UpdateSettingsRequest {
|
|
|
63
66
|
*/
|
|
64
67
|
export class AccountsApi extends runtime.BaseAPI {
|
|
65
68
|
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDto>> {
|
|
73
|
+
const queryParameters: any = {};
|
|
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: `/accounts/me`,
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountDtoFromJSON(jsonValue));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDto> {
|
|
99
|
+
const response = await this.meRaw(initOverrides);
|
|
100
|
+
return await response.value();
|
|
101
|
+
}
|
|
102
|
+
|
|
66
103
|
/**
|
|
67
104
|
*
|
|
68
105
|
*/
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BatchUpdate404Response,
|
|
19
19
|
BatchUpdateDomainsInput,
|
|
20
|
+
DeleteDomainsInput,
|
|
20
21
|
DomainDto,
|
|
21
22
|
ImportDomainsDto,
|
|
22
23
|
List200Response,
|
|
@@ -30,6 +31,8 @@ import {
|
|
|
30
31
|
BatchUpdate404ResponseToJSON,
|
|
31
32
|
BatchUpdateDomainsInputFromJSON,
|
|
32
33
|
BatchUpdateDomainsInputToJSON,
|
|
34
|
+
DeleteDomainsInputFromJSON,
|
|
35
|
+
DeleteDomainsInputToJSON,
|
|
33
36
|
DomainDtoFromJSON,
|
|
34
37
|
DomainDtoToJSON,
|
|
35
38
|
ImportDomainsDtoFromJSON,
|
|
@@ -59,6 +62,10 @@ export interface CheckDnsRequest {
|
|
|
59
62
|
domainId: string;
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
export interface DeleteDomainsRequest {
|
|
66
|
+
deleteDomainsInput: DeleteDomainsInput;
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
export interface ListRequest {
|
|
63
70
|
filter?: object;
|
|
64
71
|
page?: number;
|
|
@@ -212,6 +219,46 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
212
219
|
await this.checkDnsRaw(requestParameters, initOverrides);
|
|
213
220
|
}
|
|
214
221
|
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
async deleteDomainsRaw(requestParameters: DeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
226
|
+
if (requestParameters.deleteDomainsInput === null || requestParameters.deleteDomainsInput === undefined) {
|
|
227
|
+
throw new runtime.RequiredError('deleteDomainsInput','Required parameter requestParameters.deleteDomainsInput was null or undefined when calling deleteDomains.');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const queryParameters: any = {};
|
|
231
|
+
|
|
232
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
233
|
+
|
|
234
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
235
|
+
|
|
236
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
237
|
+
const token = this.configuration.accessToken;
|
|
238
|
+
const tokenString = await token("bearer", []);
|
|
239
|
+
|
|
240
|
+
if (tokenString) {
|
|
241
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const response = await this.request({
|
|
245
|
+
path: `/domains`,
|
|
246
|
+
method: 'DELETE',
|
|
247
|
+
headers: headerParameters,
|
|
248
|
+
query: queryParameters,
|
|
249
|
+
body: DeleteDomainsInputToJSON(requestParameters.deleteDomainsInput),
|
|
250
|
+
}, initOverrides);
|
|
251
|
+
|
|
252
|
+
return new runtime.VoidApiResponse(response);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
async deleteDomains(requestParameters: DeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
259
|
+
await this.deleteDomainsRaw(requestParameters, initOverrides);
|
|
260
|
+
}
|
|
261
|
+
|
|
215
262
|
/**
|
|
216
263
|
*
|
|
217
264
|
*/
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountDto(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "id" in value;
|
|
42
|
+
isInstance = isInstance && "identifier" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AccountDtoFromJSON(json: any): AccountDto {
|
|
48
|
+
return AccountDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDto {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'identifier': json['identifier'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AccountDtoToJSON(value?: AccountDto | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value.id,
|
|
72
|
+
'identifier': value.identifier,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DeleteDomainsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteDomainsInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof DeleteDomainsInput
|
|
26
|
+
*/
|
|
27
|
+
domainIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DeleteDomainsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDeleteDomainsInput(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "domainIds" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function DeleteDomainsInputFromJSON(json: any): DeleteDomainsInput {
|
|
41
|
+
return DeleteDomainsInputFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function DeleteDomainsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDomainsInput {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'domainIds': json['domainIds'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function DeleteDomainsInputToJSON(value?: DeleteDomainsInput | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'domainIds': value.domainIds,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -32,6 +32,12 @@ export interface IntersectionAccountDtoWithAddressDto {
|
|
|
32
32
|
* @memberof IntersectionAccountDtoWithAddressDto
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof IntersectionAccountDtoWithAddressDto
|
|
39
|
+
*/
|
|
40
|
+
identifier: string;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {Array<AccountAddressDto>}
|
|
@@ -46,6 +52,7 @@ export interface IntersectionAccountDtoWithAddressDto {
|
|
|
46
52
|
export function instanceOfIntersectionAccountDtoWithAddressDto(value: object): boolean {
|
|
47
53
|
let isInstance = true;
|
|
48
54
|
isInstance = isInstance && "id" in value;
|
|
55
|
+
isInstance = isInstance && "identifier" in value;
|
|
49
56
|
isInstance = isInstance && "addresses" in value;
|
|
50
57
|
|
|
51
58
|
return isInstance;
|
|
@@ -62,6 +69,7 @@ export function IntersectionAccountDtoWithAddressDtoFromJSONTyped(json: any, ign
|
|
|
62
69
|
return {
|
|
63
70
|
|
|
64
71
|
'id': json['id'],
|
|
72
|
+
'identifier': json['identifier'],
|
|
65
73
|
'addresses': ((json['addresses'] as Array<any>).map(AccountAddressDtoFromJSON)),
|
|
66
74
|
};
|
|
67
75
|
}
|
|
@@ -76,6 +84,7 @@ export function IntersectionAccountDtoWithAddressDtoToJSON(value?: IntersectionA
|
|
|
76
84
|
return {
|
|
77
85
|
|
|
78
86
|
'id': value.id,
|
|
87
|
+
'identifier': value.identifier,
|
|
79
88
|
'addresses': ((value.addresses as Array<any>).map(AccountAddressDtoToJSON)),
|
|
80
89
|
};
|
|
81
90
|
}
|
|
@@ -32,6 +32,12 @@ export interface IntersectionAccountDtoWithFinancialDto {
|
|
|
32
32
|
* @memberof IntersectionAccountDtoWithFinancialDto
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof IntersectionAccountDtoWithFinancialDto
|
|
39
|
+
*/
|
|
40
|
+
identifier: string;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {IntersectionAccountDtoWithFinancialDtoFinancial}
|
|
@@ -46,6 +52,7 @@ export interface IntersectionAccountDtoWithFinancialDto {
|
|
|
46
52
|
export function instanceOfIntersectionAccountDtoWithFinancialDto(value: object): boolean {
|
|
47
53
|
let isInstance = true;
|
|
48
54
|
isInstance = isInstance && "id" in value;
|
|
55
|
+
isInstance = isInstance && "identifier" in value;
|
|
49
56
|
isInstance = isInstance && "financial" in value;
|
|
50
57
|
|
|
51
58
|
return isInstance;
|
|
@@ -62,6 +69,7 @@ export function IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json: any, i
|
|
|
62
69
|
return {
|
|
63
70
|
|
|
64
71
|
'id': json['id'],
|
|
72
|
+
'identifier': json['identifier'],
|
|
65
73
|
'financial': IntersectionAccountDtoWithFinancialDtoFinancialFromJSON(json['financial']),
|
|
66
74
|
};
|
|
67
75
|
}
|
|
@@ -76,6 +84,7 @@ export function IntersectionAccountDtoWithFinancialDtoToJSON(value?: Intersectio
|
|
|
76
84
|
return {
|
|
77
85
|
|
|
78
86
|
'id': value.id,
|
|
87
|
+
'identifier': value.identifier,
|
|
79
88
|
'financial': IntersectionAccountDtoWithFinancialDtoFinancialToJSON(value.financial),
|
|
80
89
|
};
|
|
81
90
|
}
|
|
@@ -32,6 +32,12 @@ export interface IntersectionAccountDtoWithSettingsDto {
|
|
|
32
32
|
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
39
|
+
*/
|
|
40
|
+
identifier: string;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {IntersectionAccountDtoWithSettingsDtoSettings}
|
|
@@ -46,6 +52,7 @@ export interface IntersectionAccountDtoWithSettingsDto {
|
|
|
46
52
|
export function instanceOfIntersectionAccountDtoWithSettingsDto(value: object): boolean {
|
|
47
53
|
let isInstance = true;
|
|
48
54
|
isInstance = isInstance && "id" in value;
|
|
55
|
+
isInstance = isInstance && "identifier" in value;
|
|
49
56
|
isInstance = isInstance && "settings" in value;
|
|
50
57
|
|
|
51
58
|
return isInstance;
|
|
@@ -62,6 +69,7 @@ export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ig
|
|
|
62
69
|
return {
|
|
63
70
|
|
|
64
71
|
'id': json['id'],
|
|
72
|
+
'identifier': json['identifier'],
|
|
65
73
|
'settings': IntersectionAccountDtoWithSettingsDtoSettingsFromJSON(json['settings']),
|
|
66
74
|
};
|
|
67
75
|
}
|
|
@@ -76,6 +84,7 @@ export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: Intersection
|
|
|
76
84
|
return {
|
|
77
85
|
|
|
78
86
|
'id': value.id,
|
|
87
|
+
'identifier': value.identifier,
|
|
79
88
|
'settings': IntersectionAccountDtoWithSettingsDtoSettingsToJSON(value.settings),
|
|
80
89
|
};
|
|
81
90
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountAddressDto';
|
|
4
4
|
export * from './AccountAddressInput';
|
|
5
|
+
export * from './AccountDto';
|
|
5
6
|
export * from './AccountFinancialInput';
|
|
6
7
|
export * from './AccountSettingsInput';
|
|
7
8
|
export * from './BatchUpdate404Response';
|
|
8
9
|
export * from './BatchUpdateDomainsInput';
|
|
9
10
|
export * from './CreateLeadInput';
|
|
11
|
+
export * from './DeleteDomainsInput';
|
|
10
12
|
export * from './DomainDto';
|
|
11
13
|
export * from './ImportDomainsDto';
|
|
12
14
|
export * from './IntersectionAccountDtoWithAddressDto';
|