@randock/nameshift-api-client 0.0.5 → 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.
Files changed (31) hide show
  1. package/.openapi-generator/FILES +5 -4
  2. package/README.md +2 -2
  3. package/dist/apis/AccountsApi.d.ts +3 -3
  4. package/dist/apis/AccountsApi.js +1 -1
  5. package/dist/apis/DomainsPublicApi.d.ts +26 -0
  6. package/dist/apis/DomainsPublicApi.js +121 -0
  7. package/dist/apis/LeadsPublicApi.d.ts +27 -0
  8. package/dist/apis/LeadsPublicApi.js +124 -0
  9. package/dist/apis/index.d.ts +2 -2
  10. package/dist/apis/index.js +2 -2
  11. package/dist/models/DomainDto.d.ts +6 -0
  12. package/dist/models/DomainDto.js +3 -0
  13. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +58 -0
  14. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +65 -0
  15. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +43 -0
  16. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +56 -0
  17. package/dist/models/UpdateSettings429Response.d.ts +43 -0
  18. package/dist/models/UpdateSettings429Response.js +56 -0
  19. package/dist/models/index.d.ts +3 -2
  20. package/dist/models/index.js +3 -2
  21. package/package.json +5 -1
  22. package/src/apis/AccountsApi.ts +9 -9
  23. package/src/apis/DomainsApi.ts +3 -3
  24. package/src/apis/DomainsPublicApi.ts +62 -0
  25. package/src/apis/LeadsPublicApi.ts +71 -0
  26. package/src/apis/index.ts +2 -2
  27. package/src/models/DomainDto.ts +9 -0
  28. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +121 -0
  29. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +83 -0
  30. package/src/models/UpdateSettings429Response.ts +83 -0
  31. package/src/models/index.ts +3 -2
@@ -0,0 +1,56 @@
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.PublicDomainControllerGetDomainIdentifier404ResponseToJSON = exports.PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped = exports.PublicDomainControllerGetDomainIdentifier404ResponseFromJSON = exports.instanceOfPublicDomainControllerGetDomainIdentifier404Response = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PublicDomainControllerGetDomainIdentifier404Response interface.
20
+ */
21
+ function instanceOfPublicDomainControllerGetDomainIdentifier404Response(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "statusCode" in value;
24
+ isInstance = isInstance && "message" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPublicDomainControllerGetDomainIdentifier404Response = instanceOfPublicDomainControllerGetDomainIdentifier404Response;
28
+ function PublicDomainControllerGetDomainIdentifier404ResponseFromJSON(json) {
29
+ return PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped(json, false);
30
+ }
31
+ exports.PublicDomainControllerGetDomainIdentifier404ResponseFromJSON = PublicDomainControllerGetDomainIdentifier404ResponseFromJSON;
32
+ function PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'statusCode': json['statusCode'],
38
+ 'message': json['message'],
39
+ 'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
40
+ };
41
+ }
42
+ exports.PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped = PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped;
43
+ function PublicDomainControllerGetDomainIdentifier404ResponseToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'statusCode': value.statusCode,
52
+ 'message': value.message,
53
+ 'error': value.error,
54
+ };
55
+ }
56
+ exports.PublicDomainControllerGetDomainIdentifier404ResponseToJSON = PublicDomainControllerGetDomainIdentifier404ResponseToJSON;
@@ -0,0 +1,43 @@
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
+ * Returned if more than 300 requests are made per minute.
14
+ * @export
15
+ * @interface UpdateSettings429Response
16
+ */
17
+ export interface UpdateSettings429Response {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UpdateSettings429Response
22
+ */
23
+ statusCode: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateSettings429Response
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateSettings429Response
34
+ */
35
+ error?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UpdateSettings429Response interface.
39
+ */
40
+ export declare function instanceOfUpdateSettings429Response(value: object): boolean;
41
+ export declare function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429Response;
42
+ export declare function UpdateSettings429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings429Response;
43
+ export declare function UpdateSettings429ResponseToJSON(value?: UpdateSettings429Response | null): any;
@@ -0,0 +1,56 @@
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.UpdateSettings429ResponseToJSON = exports.UpdateSettings429ResponseFromJSONTyped = exports.UpdateSettings429ResponseFromJSON = exports.instanceOfUpdateSettings429Response = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the UpdateSettings429Response interface.
20
+ */
21
+ function instanceOfUpdateSettings429Response(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "statusCode" in value;
24
+ isInstance = isInstance && "message" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfUpdateSettings429Response = instanceOfUpdateSettings429Response;
28
+ function UpdateSettings429ResponseFromJSON(json) {
29
+ return UpdateSettings429ResponseFromJSONTyped(json, false);
30
+ }
31
+ exports.UpdateSettings429ResponseFromJSON = UpdateSettings429ResponseFromJSON;
32
+ function UpdateSettings429ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'statusCode': json['statusCode'],
38
+ 'message': json['message'],
39
+ 'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
40
+ };
41
+ }
42
+ exports.UpdateSettings429ResponseFromJSONTyped = UpdateSettings429ResponseFromJSONTyped;
43
+ function UpdateSettings429ResponseToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'statusCode': value.statusCode,
52
+ 'message': value.message,
53
+ 'error': value.error,
54
+ };
55
+ }
56
+ exports.UpdateSettings429ResponseToJSON = UpdateSettings429ResponseToJSON;
@@ -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,13 +11,13 @@ 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';
18
18
  export * from './List200Response';
19
19
  export * from './List400Response';
20
20
  export * from './List401Response';
21
- export * from './List429Response';
22
21
  export * from './Login401Response';
23
22
  export * from './Login429Response';
24
23
  export * from './LoginInput';
@@ -27,6 +26,8 @@ export * from './MoneyInput';
27
26
  export * from './PaginateResponse';
28
27
  export * from './PaginateResponseLinks';
29
28
  export * from './PaginateResponseMeta';
29
+ export * from './PublicDomainControllerGetDomainIdentifier404Response';
30
30
  export * from './TokenDto';
31
31
  export * from './UpdateDomainInput';
32
32
  export * from './UpdateSettings401Response';
33
+ export * from './UpdateSettings429Response';
@@ -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,13 +29,13 @@ __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);
36
36
  __exportStar(require("./List200Response"), exports);
37
37
  __exportStar(require("./List400Response"), exports);
38
38
  __exportStar(require("./List401Response"), exports);
39
- __exportStar(require("./List429Response"), exports);
40
39
  __exportStar(require("./Login401Response"), exports);
41
40
  __exportStar(require("./Login429Response"), exports);
42
41
  __exportStar(require("./LoginInput"), exports);
@@ -45,6 +44,8 @@ __exportStar(require("./MoneyInput"), exports);
45
44
  __exportStar(require("./PaginateResponse"), exports);
46
45
  __exportStar(require("./PaginateResponseLinks"), exports);
47
46
  __exportStar(require("./PaginateResponseMeta"), exports);
47
+ __exportStar(require("./PublicDomainControllerGetDomainIdentifier404Response"), exports);
48
48
  __exportStar(require("./TokenDto"), exports);
49
49
  __exportStar(require("./UpdateDomainInput"), exports);
50
50
  __exportStar(require("./UpdateSettings401Response"), exports);
51
+ __exportStar(require("./UpdateSettings429Response"), exports);
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.5",
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": {
@@ -16,20 +16,18 @@
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
- List429Response,
26
25
  UpdateSettings401Response,
26
+ UpdateSettings429Response,
27
27
  } from '../models/index';
28
28
  import {
29
29
  AccountAddressInputFromJSON,
30
30
  AccountAddressInputToJSON,
31
- AccountDtoFromJSON,
32
- AccountDtoToJSON,
33
31
  AccountFinancialInputFromJSON,
34
32
  AccountFinancialInputToJSON,
35
33
  AccountSettingsInputFromJSON,
@@ -38,12 +36,14 @@ import {
38
36
  IntersectionAccountDtoWithAddressDtoToJSON,
39
37
  IntersectionAccountDtoWithFinancialDtoFromJSON,
40
38
  IntersectionAccountDtoWithFinancialDtoToJSON,
39
+ IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
40
+ IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
41
41
  IntersectionAccountDtoWithSettingsDtoFromJSON,
42
42
  IntersectionAccountDtoWithSettingsDtoToJSON,
43
- List429ResponseFromJSON,
44
- List429ResponseToJSON,
45
43
  UpdateSettings401ResponseFromJSON,
46
44
  UpdateSettings401ResponseToJSON,
45
+ UpdateSettings429ResponseFromJSON,
46
+ UpdateSettings429ResponseToJSON,
47
47
  } from '../models/index';
48
48
 
49
49
  export interface UpdateAddressRequest {
@@ -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<AccountDto>> {
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) => AccountDtoFromJSON(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<AccountDto> {
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
  }
@@ -23,8 +23,8 @@ import type {
23
23
  List200Response,
24
24
  List400Response,
25
25
  List401Response,
26
- List429Response,
27
26
  UpdateDomainInput,
27
+ UpdateSettings429Response,
28
28
  } from '../models/index';
29
29
  import {
30
30
  BatchUpdate404ResponseFromJSON,
@@ -43,10 +43,10 @@ import {
43
43
  List400ResponseToJSON,
44
44
  List401ResponseFromJSON,
45
45
  List401ResponseToJSON,
46
- List429ResponseFromJSON,
47
- List429ResponseToJSON,
48
46
  UpdateDomainInputFromJSON,
49
47
  UpdateDomainInputToJSON,
48
+ UpdateSettings429ResponseFromJSON,
49
+ UpdateSettings429ResponseToJSON,
50
50
  } from '../models/index';
51
51
 
52
52
  export interface BatchImportRequest {
@@ -0,0 +1,62 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ PublicDomainControllerGetDomainIdentifier404Response,
19
+ } from '../models/index';
20
+ import {
21
+ PublicDomainControllerGetDomainIdentifier404ResponseFromJSON,
22
+ PublicDomainControllerGetDomainIdentifier404ResponseToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface PublicDomainControllerGetDomainIdentifierRequest {
26
+ domainName: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class DomainsPublicApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ */
36
+ async publicDomainControllerGetDomainIdentifierRaw(requestParameters: PublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
37
+ if (requestParameters.domainName === null || requestParameters.domainName === undefined) {
38
+ throw new runtime.RequiredError('domainName','Required parameter requestParameters.domainName was null or undefined when calling publicDomainControllerGetDomainIdentifier.');
39
+ }
40
+
41
+ const queryParameters: any = {};
42
+
43
+ const headerParameters: runtime.HTTPHeaders = {};
44
+
45
+ const response = await this.request({
46
+ path: `/domains/by-name/{domainName}/identifier`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters.domainName))),
47
+ method: 'GET',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ }, initOverrides);
51
+
52
+ return new runtime.JSONApiResponse<any>(response);
53
+ }
54
+
55
+ /**
56
+ */
57
+ async publicDomainControllerGetDomainIdentifier(requestParameters: PublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
58
+ const response = await this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides);
59
+ return await response.value();
60
+ }
61
+
62
+ }
@@ -0,0 +1,71 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ BatchUpdate404Response,
19
+ CreateLeadInput,
20
+ LeadDto,
21
+ } from '../models/index';
22
+ import {
23
+ BatchUpdate404ResponseFromJSON,
24
+ BatchUpdate404ResponseToJSON,
25
+ CreateLeadInputFromJSON,
26
+ CreateLeadInputToJSON,
27
+ LeadDtoFromJSON,
28
+ LeadDtoToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface PublicLeadControllerPostLeadRequest {
32
+ createLeadInput: CreateLeadInput;
33
+ }
34
+
35
+ /**
36
+ *
37
+ */
38
+ export class LeadsPublicApi extends runtime.BaseAPI {
39
+
40
+ /**
41
+ */
42
+ async publicLeadControllerPostLeadRaw(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>> {
43
+ if (requestParameters.createLeadInput === null || requestParameters.createLeadInput === undefined) {
44
+ throw new runtime.RequiredError('createLeadInput','Required parameter requestParameters.createLeadInput was null or undefined when calling publicLeadControllerPostLead.');
45
+ }
46
+
47
+ const queryParameters: any = {};
48
+
49
+ const headerParameters: runtime.HTTPHeaders = {};
50
+
51
+ headerParameters['Content-Type'] = 'application/json';
52
+
53
+ const response = await this.request({
54
+ path: `/leads`,
55
+ method: 'POST',
56
+ headers: headerParameters,
57
+ query: queryParameters,
58
+ body: CreateLeadInputToJSON(requestParameters.createLeadInput),
59
+ }, initOverrides);
60
+
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadDtoFromJSON(jsonValue));
62
+ }
63
+
64
+ /**
65
+ */
66
+ async publicLeadControllerPostLead(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto> {
67
+ const response = await this.publicLeadControllerPostLeadRaw(requestParameters, initOverrides);
68
+ return await response.value();
69
+ }
70
+
71
+ }
package/src/apis/index.ts CHANGED
@@ -3,5 +3,5 @@
3
3
  export * from './AccountsApi';
4
4
  export * from './AuthApi';
5
5
  export * from './DomainsApi';
6
- export * from './LeadsApi';
7
- export * from './TestApi';
6
+ export * from './DomainsPublicApi';
7
+ export * from './LeadsPublicApi';
@@ -32,6 +32,12 @@ export interface DomainDto {
32
32
  * @memberof DomainDto
33
33
  */
34
34
  id: string;
35
+ /**
36
+ * The TLD for this domain.
37
+ * @type {string}
38
+ * @memberof DomainDto
39
+ */
40
+ tld: string;
35
41
  /**
36
42
  * Whether this domain is verified by the owner (ns3, txt) or not.
37
43
  * @type {boolean}
@@ -70,6 +76,7 @@ export interface DomainDto {
70
76
  export function instanceOfDomainDto(value: object): boolean {
71
77
  let isInstance = true;
72
78
  isInstance = isInstance && "id" in value;
79
+ isInstance = isInstance && "tld" in value;
73
80
  isInstance = isInstance && "verified" in value;
74
81
  isInstance = isInstance && "nameservers" in value;
75
82
  isInstance = isInstance && "name" in value;
@@ -90,6 +97,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
90
97
  return {
91
98
 
92
99
  'id': json['id'],
100
+ 'tld': json['tld'],
93
101
  'verified': json['verified'],
94
102
  'nameservers': json['nameservers'],
95
103
  'name': json['name'],
@@ -108,6 +116,7 @@ export function DomainDtoToJSON(value?: DomainDto | null): any {
108
116
  return {
109
117
 
110
118
  'id': value.id,
119
+ 'tld': value.tld,
111
120
  'verified': value.verified,
112
121
  'nameservers': value.nameservers,
113
122
  'name': value.name,
@@ -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
+