@randock/nameshift-api-client 0.0.1
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 +45 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/AccountsApi.d.ts +54 -0
- package/dist/apis/AccountsApi.js +254 -0
- package/dist/apis/AuthApi.d.ts +27 -0
- package/dist/apis/AuthApi.js +124 -0
- package/dist/apis/DomainsApi.d.ts +77 -0
- package/dist/apis/DomainsApi.js +374 -0
- package/dist/apis/LeadsApi.d.ts +27 -0
- package/dist/apis/LeadsApi.js +124 -0
- package/dist/apis/TestApi.d.ts +23 -0
- package/dist/apis/TestApi.js +116 -0
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +23 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AccountAddressDto.d.ts +68 -0
- package/dist/models/AccountAddressDto.js +71 -0
- package/dist/models/AccountAddressInput.d.ts +68 -0
- package/dist/models/AccountAddressInput.js +71 -0
- package/dist/models/AccountFinancialInput.d.ts +49 -0
- package/dist/models/AccountFinancialInput.js +59 -0
- package/dist/models/AccountSettingsInput.d.ts +32 -0
- package/dist/models/AccountSettingsInput.js +51 -0
- package/dist/models/BatchUpdate404Response.d.ts +43 -0
- package/dist/models/BatchUpdate404Response.js +56 -0
- package/dist/models/BatchUpdateDomainsInput.d.ts +38 -0
- package/dist/models/BatchUpdateDomainsInput.js +54 -0
- package/dist/models/CreateLeadInput.d.ts +61 -0
- package/dist/models/CreateLeadInput.js +65 -0
- package/dist/models/DomainDto.d.ts +62 -0
- package/dist/models/DomainDto.js +66 -0
- package/dist/models/ImportDomainsDto.d.ts +49 -0
- package/dist/models/ImportDomainsDto.js +59 -0
- package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +38 -0
- package/dist/models/IntersectionAccountDtoWithAddressDto.js +54 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +38 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDto.js +54 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +49 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +56 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +38 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +54 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +32 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +51 -0
- package/dist/models/LeadDto.d.ts +31 -0
- package/dist/models/LeadDto.js +50 -0
- package/dist/models/List200Response.d.ts +46 -0
- package/dist/models/List200Response.js +59 -0
- package/dist/models/List400Response.d.ts +43 -0
- package/dist/models/List400Response.js +56 -0
- package/dist/models/List401Response.d.ts +43 -0
- package/dist/models/List401Response.js +56 -0
- package/dist/models/List429Response.d.ts +43 -0
- package/dist/models/List429Response.js +56 -0
- package/dist/models/LoginInput.d.ts +37 -0
- package/dist/models/LoginInput.js +53 -0
- package/dist/models/MoneyDto.d.ts +37 -0
- package/dist/models/MoneyDto.js +53 -0
- package/dist/models/MoneyInput.d.ts +37 -0
- package/dist/models/MoneyInput.js +53 -0
- package/dist/models/PaginateResponse.d.ts +45 -0
- package/dist/models/PaginateResponse.js +58 -0
- package/dist/models/PaginateResponseLinks.d.ts +55 -0
- package/dist/models/PaginateResponseLinks.js +58 -0
- package/dist/models/PaginateResponseMeta.d.ts +67 -0
- package/dist/models/PaginateResponseMeta.js +62 -0
- package/dist/models/TokenDto.d.ts +31 -0
- package/dist/models/TokenDto.js +50 -0
- package/dist/models/UpdateDomainInput.d.ts +38 -0
- package/dist/models/UpdateDomainInput.js +53 -0
- package/dist/models/UpdateSettings401Response.d.ts +43 -0
- package/dist/models/UpdateSettings401Response.js +56 -0
- package/dist/models/UserAuthControllerLogin401Response.d.ts +43 -0
- package/dist/models/UserAuthControllerLogin401Response.js +56 -0
- package/dist/models/UserAuthControllerLogin429Response.d.ts +43 -0
- package/dist/models/UserAuthControllerLogin429Response.js +56 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +48 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +19 -0
- package/src/apis/AccountsApi.ts +201 -0
- package/src/apis/AuthApi.ts +74 -0
- package/src/apis/DomainsApi.ts +305 -0
- package/src/apis/LeadsApi.ts +71 -0
- package/src/apis/TestApi.ts +46 -0
- package/src/apis/index.ts +7 -0
- package/src/index.ts +5 -0
- package/src/models/AccountAddressDto.ts +120 -0
- package/src/models/AccountAddressInput.ts +120 -0
- package/src/models/AccountFinancialInput.ts +93 -0
- package/src/models/AccountSettingsInput.ts +72 -0
- package/src/models/BatchUpdate404Response.ts +83 -0
- package/src/models/BatchUpdateDomainsInput.ts +82 -0
- package/src/models/CreateLeadInput.ts +111 -0
- package/src/models/DomainDto.ts +118 -0
- package/src/models/ImportDomainsDto.ts +93 -0
- package/src/models/IntersectionAccountDtoWithAddressDto.ts +82 -0
- package/src/models/IntersectionAccountDtoWithFinancialDto.ts +82 -0
- package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +89 -0
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +82 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +72 -0
- package/src/models/LeadDto.ts +66 -0
- package/src/models/List200Response.ts +103 -0
- package/src/models/List400Response.ts +83 -0
- package/src/models/List401Response.ts +83 -0
- package/src/models/List429Response.ts +83 -0
- package/src/models/LoginInput.ts +75 -0
- package/src/models/MoneyDto.ts +75 -0
- package/src/models/MoneyInput.ts +75 -0
- package/src/models/PaginateResponse.ts +97 -0
- package/src/models/PaginateResponseLinks.ts +97 -0
- package/src/models/PaginateResponseMeta.ts +113 -0
- package/src/models/TokenDto.ts +66 -0
- package/src/models/UpdateDomainInput.ts +80 -0
- package/src/models/UpdateSettings401Response.ts +83 -0
- package/src/models/UserAuthControllerLogin401Response.ts +83 -0
- package/src/models/UserAuthControllerLogin429Response.ts +83 -0
- package/src/models/index.ts +32 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,118 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DomainDto
|
|
27
|
+
*/
|
|
28
|
+
export interface DomainDto {
|
|
29
|
+
/**
|
|
30
|
+
* The uuid for this domain.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DomainDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof DomainDto
|
|
39
|
+
*/
|
|
40
|
+
verified: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the nameservers (ns1,ns2) are set or not.
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof DomainDto
|
|
45
|
+
*/
|
|
46
|
+
nameservers: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The domain name (example.com)
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DomainDto
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {MoneyDto}
|
|
56
|
+
* @memberof DomainDto
|
|
57
|
+
*/
|
|
58
|
+
buyNow: MoneyDto;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {MoneyDto}
|
|
62
|
+
* @memberof DomainDto
|
|
63
|
+
*/
|
|
64
|
+
minOffer: MoneyDto;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the DomainDto interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfDomainDto(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
72
|
+
isInstance = isInstance && "id" in value;
|
|
73
|
+
isInstance = isInstance && "verified" in value;
|
|
74
|
+
isInstance = isInstance && "nameservers" in value;
|
|
75
|
+
isInstance = isInstance && "name" in value;
|
|
76
|
+
isInstance = isInstance && "buyNow" in value;
|
|
77
|
+
isInstance = isInstance && "minOffer" in value;
|
|
78
|
+
|
|
79
|
+
return isInstance;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function DomainDtoFromJSON(json: any): DomainDto {
|
|
83
|
+
return DomainDtoFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainDto {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'id': json['id'],
|
|
93
|
+
'verified': json['verified'],
|
|
94
|
+
'nameservers': json['nameservers'],
|
|
95
|
+
'name': json['name'],
|
|
96
|
+
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
97
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function DomainDtoToJSON(value?: DomainDto | null): any {
|
|
102
|
+
if (value === undefined) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
if (value === null) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value.id,
|
|
111
|
+
'verified': value.verified,
|
|
112
|
+
'nameservers': value.nameservers,
|
|
113
|
+
'name': value.name,
|
|
114
|
+
'buyNow': MoneyDtoToJSON(value.buyNow),
|
|
115
|
+
'minOffer': MoneyDtoToJSON(value.minOffer),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 ImportDomainsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ImportDomainsDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ImportDomainsDto
|
|
26
|
+
*/
|
|
27
|
+
total: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ImportDomainsDto
|
|
32
|
+
*/
|
|
33
|
+
queued: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ImportDomainsDto
|
|
38
|
+
*/
|
|
39
|
+
error: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof ImportDomainsDto
|
|
44
|
+
*/
|
|
45
|
+
errors: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ImportDomainsDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfImportDomainsDto(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "total" in value;
|
|
54
|
+
isInstance = isInstance && "queued" in value;
|
|
55
|
+
isInstance = isInstance && "error" in value;
|
|
56
|
+
isInstance = isInstance && "errors" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ImportDomainsDtoFromJSON(json: any): ImportDomainsDto {
|
|
62
|
+
return ImportDomainsDtoFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ImportDomainsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportDomainsDto {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'total': json['total'],
|
|
72
|
+
'queued': json['queued'],
|
|
73
|
+
'error': json['error'],
|
|
74
|
+
'errors': json['errors'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ImportDomainsDtoToJSON(value?: ImportDomainsDto | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'total': value.total,
|
|
88
|
+
'queued': value.queued,
|
|
89
|
+
'error': value.error,
|
|
90
|
+
'errors': value.errors,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface IntersectionAccountDtoWithAddressDto
|
|
27
|
+
*/
|
|
28
|
+
export interface IntersectionAccountDtoWithAddressDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof IntersectionAccountDtoWithAddressDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<AccountAddressDto>}
|
|
38
|
+
* @memberof IntersectionAccountDtoWithAddressDto
|
|
39
|
+
*/
|
|
40
|
+
addresses: Array<AccountAddressDto>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the IntersectionAccountDtoWithAddressDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfIntersectionAccountDtoWithAddressDto(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "id" in value;
|
|
49
|
+
isInstance = isInstance && "addresses" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function IntersectionAccountDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithAddressDto {
|
|
55
|
+
return IntersectionAccountDtoWithAddressDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function IntersectionAccountDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithAddressDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'addresses': ((json['addresses'] as Array<any>).map(AccountAddressDtoFromJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function IntersectionAccountDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithAddressDto | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value.id,
|
|
79
|
+
'addresses': ((value.addresses as Array<any>).map(AccountAddressDtoToJSON)),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { IntersectionAccountDtoWithFinancialDtoFinancial } from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionAccountDtoWithFinancialDtoFinancialFromJSON,
|
|
19
|
+
IntersectionAccountDtoWithFinancialDtoFinancialFromJSONTyped,
|
|
20
|
+
IntersectionAccountDtoWithFinancialDtoFinancialToJSON,
|
|
21
|
+
} from './IntersectionAccountDtoWithFinancialDtoFinancial';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface IntersectionAccountDtoWithFinancialDto
|
|
27
|
+
*/
|
|
28
|
+
export interface IntersectionAccountDtoWithFinancialDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof IntersectionAccountDtoWithFinancialDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {IntersectionAccountDtoWithFinancialDtoFinancial}
|
|
38
|
+
* @memberof IntersectionAccountDtoWithFinancialDto
|
|
39
|
+
*/
|
|
40
|
+
financial: IntersectionAccountDtoWithFinancialDtoFinancial;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the IntersectionAccountDtoWithFinancialDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfIntersectionAccountDtoWithFinancialDto(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "id" in value;
|
|
49
|
+
isInstance = isInstance && "financial" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function IntersectionAccountDtoWithFinancialDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDto {
|
|
55
|
+
return IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'financial': IntersectionAccountDtoWithFinancialDtoFinancialFromJSON(json['financial']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function IntersectionAccountDtoWithFinancialDtoToJSON(value?: IntersectionAccountDtoWithFinancialDto | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value.id,
|
|
79
|
+
'financial': IntersectionAccountDtoWithFinancialDtoFinancialToJSON(value.financial),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 IntersectionAccountDtoWithFinancialDtoFinancial
|
|
20
|
+
*/
|
|
21
|
+
export interface IntersectionAccountDtoWithFinancialDtoFinancial {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoFinancial
|
|
26
|
+
*/
|
|
27
|
+
company?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoFinancial
|
|
32
|
+
*/
|
|
33
|
+
companyName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoFinancial
|
|
38
|
+
*/
|
|
39
|
+
companyVatNumber?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoFinancial
|
|
44
|
+
*/
|
|
45
|
+
companyRegistrationNumber?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IntersectionAccountDtoWithFinancialDtoFinancial interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIntersectionAccountDtoWithFinancialDtoFinancial(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
|
|
54
|
+
return isInstance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function IntersectionAccountDtoWithFinancialDtoFinancialFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoFinancial {
|
|
58
|
+
return IntersectionAccountDtoWithFinancialDtoFinancialFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function IntersectionAccountDtoWithFinancialDtoFinancialFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoFinancial {
|
|
62
|
+
if ((json === undefined) || (json === null)) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'company': !exists(json, 'company') ? undefined : json['company'],
|
|
68
|
+
'companyName': !exists(json, 'companyName') ? undefined : json['companyName'],
|
|
69
|
+
'companyVatNumber': !exists(json, 'companyVatNumber') ? undefined : json['companyVatNumber'],
|
|
70
|
+
'companyRegistrationNumber': !exists(json, 'companyRegistrationNumber') ? undefined : json['companyRegistrationNumber'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function IntersectionAccountDtoWithFinancialDtoFinancialToJSON(value?: IntersectionAccountDtoWithFinancialDtoFinancial | null): any {
|
|
75
|
+
if (value === undefined) {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
if (value === null) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'company': value.company,
|
|
84
|
+
'companyName': value.companyName,
|
|
85
|
+
'companyVatNumber': value.companyVatNumber,
|
|
86
|
+
'companyRegistrationNumber': value.companyRegistrationNumber,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { IntersectionAccountDtoWithSettingsDtoSettings } from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionAccountDtoWithSettingsDtoSettingsFromJSON,
|
|
19
|
+
IntersectionAccountDtoWithSettingsDtoSettingsFromJSONTyped,
|
|
20
|
+
IntersectionAccountDtoWithSettingsDtoSettingsToJSON,
|
|
21
|
+
} from './IntersectionAccountDtoWithSettingsDtoSettings';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface IntersectionAccountDtoWithSettingsDto
|
|
27
|
+
*/
|
|
28
|
+
export interface IntersectionAccountDtoWithSettingsDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {IntersectionAccountDtoWithSettingsDtoSettings}
|
|
38
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
39
|
+
*/
|
|
40
|
+
settings: IntersectionAccountDtoWithSettingsDtoSettings;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfIntersectionAccountDtoWithSettingsDto(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "id" in value;
|
|
49
|
+
isInstance = isInstance && "settings" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function IntersectionAccountDtoWithSettingsDtoFromJSON(json: any): IntersectionAccountDtoWithSettingsDto {
|
|
55
|
+
return IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithSettingsDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'settings': IntersectionAccountDtoWithSettingsDtoSettingsFromJSON(json['settings']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: IntersectionAccountDtoWithSettingsDto | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value.id,
|
|
79
|
+
'settings': IntersectionAccountDtoWithSettingsDtoSettingsToJSON(value.settings),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface IntersectionAccountDtoWithSettingsDtoSettings
|
|
27
|
+
*/
|
|
28
|
+
export interface IntersectionAccountDtoWithSettingsDtoSettings {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoSettings
|
|
33
|
+
*/
|
|
34
|
+
defaultStartingOffer?: MoneyDto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoSettings interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfIntersectionAccountDtoWithSettingsDtoSettings(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function IntersectionAccountDtoWithSettingsDtoSettingsFromJSON(json: any): IntersectionAccountDtoWithSettingsDtoSettings {
|
|
47
|
+
return IntersectionAccountDtoWithSettingsDtoSettingsFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function IntersectionAccountDtoWithSettingsDtoSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithSettingsDtoSettings {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'defaultStartingOffer': !exists(json, 'defaultStartingOffer') ? undefined : MoneyDtoFromJSON(json['defaultStartingOffer']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function IntersectionAccountDtoWithSettingsDtoSettingsToJSON(value?: IntersectionAccountDtoWithSettingsDtoSettings | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'defaultStartingOffer': MoneyDtoToJSON(value.defaultStartingOffer),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -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 LeadDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LeadDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LeadDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLeadDto(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "id" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function LeadDtoFromJSON(json: any): LeadDto {
|
|
41
|
+
return LeadDtoFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function LeadDtoToJSON(value?: LeadDto | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'id': value.id,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|