@randock/nameshift-api-client 0.0.6 → 0.0.7
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 +1 -1
- package/README.md +2 -2
- package/dist/apis/AccountsApi.d.ts +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +58 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +65 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +5 -1
- package/src/apis/AccountsApi.ts +6 -6
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +121 -0
- package/src/models/index.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -11,7 +11,6 @@ src/apis/index.ts
|
|
|
11
11
|
src/index.ts
|
|
12
12
|
src/models/AccountAddressDto.ts
|
|
13
13
|
src/models/AccountAddressInput.ts
|
|
14
|
-
src/models/AccountDto.ts
|
|
15
14
|
src/models/AccountFinancialInput.ts
|
|
16
15
|
src/models/AccountSettingsInput.ts
|
|
17
16
|
src/models/BatchUpdate404Response.ts
|
|
@@ -23,6 +22,7 @@ src/models/ImportDomainsDto.ts
|
|
|
23
22
|
src/models/IntersectionAccountDtoWithAddressDto.ts
|
|
24
23
|
src/models/IntersectionAccountDtoWithFinancialDto.ts
|
|
25
24
|
src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts
|
|
25
|
+
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
26
26
|
src/models/IntersectionAccountDtoWithSettingsDto.ts
|
|
27
27
|
src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts
|
|
28
28
|
src/models/LeadDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@
|
|
1
|
+
## @randock/nameshift-api-client@0.0.7
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.7 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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,
|
|
13
|
+
import type { AccountAddressInput, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
|
|
14
14
|
export interface UpdateAddressRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
accountAddressInput: AccountAddressInput;
|
|
@@ -30,11 +30,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
|
-
meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
33
|
+
meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
37
|
+
me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -103,7 +103,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
103
103
|
}, initOverrides)];
|
|
104
104
|
case 3:
|
|
105
105
|
response = _a.sent();
|
|
106
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON)(jsonValue); })];
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
});
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { AccountAddressDto } from './AccountAddressDto';
|
|
13
|
+
import type { IntersectionAccountDtoWithFinancialDtoFinancial } from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
14
|
+
import type { IntersectionAccountDtoWithSettingsDtoSettings } from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
19
|
+
*/
|
|
20
|
+
export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
31
|
+
*/
|
|
32
|
+
identifier: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {IntersectionAccountDtoWithFinancialDtoFinancial}
|
|
36
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
37
|
+
*/
|
|
38
|
+
financial: IntersectionAccountDtoWithFinancialDtoFinancial;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {IntersectionAccountDtoWithSettingsDtoSettings}
|
|
42
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
43
|
+
*/
|
|
44
|
+
settings: IntersectionAccountDtoWithSettingsDtoSettings;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<AccountAddressDto>}
|
|
48
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
49
|
+
*/
|
|
50
|
+
addresses: Array<AccountAddressDto>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): boolean;
|
|
56
|
+
export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
|
|
57
|
+
export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
|
|
58
|
+
export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = void 0;
|
|
17
|
+
var AccountAddressDto_1 = require("./AccountAddressDto");
|
|
18
|
+
var IntersectionAccountDtoWithFinancialDtoFinancial_1 = require("./IntersectionAccountDtoWithFinancialDtoFinancial");
|
|
19
|
+
var IntersectionAccountDtoWithSettingsDtoSettings_1 = require("./IntersectionAccountDtoWithSettingsDtoSettings");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value) {
|
|
24
|
+
var isInstance = true;
|
|
25
|
+
isInstance = isInstance && "id" in value;
|
|
26
|
+
isInstance = isInstance && "identifier" in value;
|
|
27
|
+
isInstance = isInstance && "financial" in value;
|
|
28
|
+
isInstance = isInstance && "settings" in value;
|
|
29
|
+
isInstance = isInstance && "addresses" in value;
|
|
30
|
+
return isInstance;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
|
|
33
|
+
function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json) {
|
|
34
|
+
return IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON;
|
|
37
|
+
function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if ((json === undefined) || (json === null)) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'identifier': json['identifier'],
|
|
44
|
+
'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialFromJSON)(json['financial']),
|
|
45
|
+
'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsFromJSON)(json['settings']),
|
|
46
|
+
'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped;
|
|
50
|
+
function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'identifier': value.identifier,
|
|
60
|
+
'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialToJSON)(value.financial),
|
|
61
|
+
'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsToJSON)(value.settings),
|
|
62
|
+
'addresses': (value.addresses.map(AccountAddressDto_1.AccountAddressDtoToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './AccountAddressDto';
|
|
2
2
|
export * from './AccountAddressInput';
|
|
3
|
-
export * from './AccountDto';
|
|
4
3
|
export * from './AccountFinancialInput';
|
|
5
4
|
export * from './AccountSettingsInput';
|
|
6
5
|
export * from './BatchUpdate404Response';
|
|
@@ -12,6 +11,7 @@ export * from './ImportDomainsDto';
|
|
|
12
11
|
export * from './IntersectionAccountDtoWithAddressDto';
|
|
13
12
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
14
13
|
export * from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
14
|
+
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
15
15
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
16
16
|
export * from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
17
17
|
export * from './LeadDto';
|
package/dist/models/index.js
CHANGED
|
@@ -18,7 +18,6 @@ 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);
|
|
22
21
|
__exportStar(require("./AccountFinancialInput"), exports);
|
|
23
22
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
24
23
|
__exportStar(require("./BatchUpdate404Response"), exports);
|
|
@@ -30,6 +29,7 @@ __exportStar(require("./ImportDomainsDto"), exports);
|
|
|
30
29
|
__exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
|
|
31
30
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
|
|
32
31
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoFinancial"), exports);
|
|
32
|
+
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
33
33
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
34
34
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoSettings"), exports);
|
|
35
35
|
__exportStar(require("./LeadDto"), 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.7",
|
|
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
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AccountAddressInput,
|
|
19
|
-
AccountDto,
|
|
20
19
|
AccountFinancialInput,
|
|
21
20
|
AccountSettingsInput,
|
|
22
21
|
IntersectionAccountDtoWithAddressDto,
|
|
23
22
|
IntersectionAccountDtoWithFinancialDto,
|
|
23
|
+
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
|
|
24
24
|
IntersectionAccountDtoWithSettingsDto,
|
|
25
25
|
UpdateSettings401Response,
|
|
26
26
|
UpdateSettings429Response,
|
|
@@ -28,8 +28,6 @@ import type {
|
|
|
28
28
|
import {
|
|
29
29
|
AccountAddressInputFromJSON,
|
|
30
30
|
AccountAddressInputToJSON,
|
|
31
|
-
AccountDtoFromJSON,
|
|
32
|
-
AccountDtoToJSON,
|
|
33
31
|
AccountFinancialInputFromJSON,
|
|
34
32
|
AccountFinancialInputToJSON,
|
|
35
33
|
AccountSettingsInputFromJSON,
|
|
@@ -38,6 +36,8 @@ import {
|
|
|
38
36
|
IntersectionAccountDtoWithAddressDtoToJSON,
|
|
39
37
|
IntersectionAccountDtoWithFinancialDtoFromJSON,
|
|
40
38
|
IntersectionAccountDtoWithFinancialDtoToJSON,
|
|
39
|
+
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
|
|
40
|
+
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
|
|
41
41
|
IntersectionAccountDtoWithSettingsDtoFromJSON,
|
|
42
42
|
IntersectionAccountDtoWithSettingsDtoToJSON,
|
|
43
43
|
UpdateSettings401ResponseFromJSON,
|
|
@@ -69,7 +69,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
*/
|
|
72
|
-
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
72
|
+
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>> {
|
|
73
73
|
const queryParameters: any = {};
|
|
74
74
|
|
|
75
75
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -89,13 +89,13 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
89
89
|
query: queryParameters,
|
|
90
90
|
}, initOverrides);
|
|
91
91
|
|
|
92
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(jsonValue));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
|
-
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
98
|
+
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto> {
|
|
99
99
|
const response = await this.meRaw(initOverrides);
|
|
100
100
|
return await response.value();
|
|
101
101
|
}
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
import type { AccountAddressDto } from './AccountAddressDto';
|
|
17
|
+
import {
|
|
18
|
+
AccountAddressDtoFromJSON,
|
|
19
|
+
AccountAddressDtoFromJSONTyped,
|
|
20
|
+
AccountAddressDtoToJSON,
|
|
21
|
+
} from './AccountAddressDto';
|
|
22
|
+
import type { IntersectionAccountDtoWithFinancialDtoFinancial } from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
23
|
+
import {
|
|
24
|
+
IntersectionAccountDtoWithFinancialDtoFinancialFromJSON,
|
|
25
|
+
IntersectionAccountDtoWithFinancialDtoFinancialFromJSONTyped,
|
|
26
|
+
IntersectionAccountDtoWithFinancialDtoFinancialToJSON,
|
|
27
|
+
} from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
28
|
+
import type { IntersectionAccountDtoWithSettingsDtoSettings } from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
29
|
+
import {
|
|
30
|
+
IntersectionAccountDtoWithSettingsDtoSettingsFromJSON,
|
|
31
|
+
IntersectionAccountDtoWithSettingsDtoSettingsFromJSONTyped,
|
|
32
|
+
IntersectionAccountDtoWithSettingsDtoSettingsToJSON,
|
|
33
|
+
} from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
39
|
+
*/
|
|
40
|
+
export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
51
|
+
*/
|
|
52
|
+
identifier: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {IntersectionAccountDtoWithFinancialDtoFinancial}
|
|
56
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
57
|
+
*/
|
|
58
|
+
financial: IntersectionAccountDtoWithFinancialDtoFinancial;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {IntersectionAccountDtoWithSettingsDtoSettings}
|
|
62
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
63
|
+
*/
|
|
64
|
+
settings: IntersectionAccountDtoWithSettingsDtoSettings;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<AccountAddressDto>}
|
|
68
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
69
|
+
*/
|
|
70
|
+
addresses: Array<AccountAddressDto>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): boolean {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
isInstance = isInstance && "id" in value;
|
|
79
|
+
isInstance = isInstance && "identifier" in value;
|
|
80
|
+
isInstance = isInstance && "financial" in value;
|
|
81
|
+
isInstance = isInstance && "settings" in value;
|
|
82
|
+
isInstance = isInstance && "addresses" in value;
|
|
83
|
+
|
|
84
|
+
return isInstance;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
|
|
88
|
+
return IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
|
|
92
|
+
if ((json === undefined) || (json === null)) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'identifier': json['identifier'],
|
|
99
|
+
'financial': IntersectionAccountDtoWithFinancialDtoFinancialFromJSON(json['financial']),
|
|
100
|
+
'settings': IntersectionAccountDtoWithSettingsDtoSettingsFromJSON(json['settings']),
|
|
101
|
+
'addresses': ((json['addresses'] as Array<any>).map(AccountAddressDtoFromJSON)),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): any {
|
|
106
|
+
if (value === undefined) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
if (value === null) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'id': value.id,
|
|
115
|
+
'identifier': value.identifier,
|
|
116
|
+
'financial': IntersectionAccountDtoWithFinancialDtoFinancialToJSON(value.financial),
|
|
117
|
+
'settings': IntersectionAccountDtoWithSettingsDtoSettingsToJSON(value.settings),
|
|
118
|
+
'addresses': ((value.addresses as Array<any>).map(AccountAddressDtoToJSON)),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountAddressDto';
|
|
4
4
|
export * from './AccountAddressInput';
|
|
5
|
-
export * from './AccountDto';
|
|
6
5
|
export * from './AccountFinancialInput';
|
|
7
6
|
export * from './AccountSettingsInput';
|
|
8
7
|
export * from './BatchUpdate404Response';
|
|
@@ -14,6 +13,7 @@ export * from './ImportDomainsDto';
|
|
|
14
13
|
export * from './IntersectionAccountDtoWithAddressDto';
|
|
15
14
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
16
15
|
export * from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
16
|
+
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
17
17
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
18
18
|
export * from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
19
19
|
export * from './LeadDto';
|