@randock/nameshift-api-client 0.0.18 → 0.0.19

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 (154) hide show
  1. package/.openapi-generator/FILES +1 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -4
  4. package/dist/apis/AccountsApi.js +18 -18
  5. package/dist/apis/AuthApi.js +3 -3
  6. package/dist/apis/DomainsApi.d.ts +1 -1
  7. package/dist/apis/DomainsApi.js +30 -30
  8. package/dist/apis/LeadsApi.js +18 -18
  9. package/dist/apis/LeadsPublicApi.js +3 -3
  10. package/dist/apis/index.d.ts +0 -1
  11. package/dist/apis/index.js +0 -1
  12. package/dist/models/AccountAddressDto.js +21 -21
  13. package/dist/models/AccountAddressInput.js +21 -21
  14. package/dist/models/AccountDto.js +10 -12
  15. package/dist/models/AccountFinancialInput.js +16 -16
  16. package/dist/models/AccountSettingsInput.js +6 -11
  17. package/dist/models/BatchUpdate404Response.js +12 -15
  18. package/dist/models/BatchUpdateDomainsInput.js +10 -12
  19. package/dist/models/CreateLeadInput.js +22 -20
  20. package/dist/models/CreateLeadMessageInput.js +7 -10
  21. package/dist/models/DeleteDomainsInput.js +7 -10
  22. package/dist/models/DomainDto.d.ts +2 -2
  23. package/dist/models/DomainDto.js +25 -22
  24. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
  25. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
  26. package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
  27. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
  28. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
  29. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
  30. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
  31. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
  32. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
  33. package/dist/models/LeadMessageData.js +7 -10
  34. package/dist/models/LeadMessageDto.js +25 -22
  35. package/dist/models/LeadMessageDtoData.js +7 -10
  36. package/dist/models/List200Response.js +13 -14
  37. package/dist/models/List400Response.js +12 -15
  38. package/dist/models/List401Response.js +12 -15
  39. package/dist/models/ListLeadMessagesDto.js +7 -10
  40. package/dist/models/Login401Response.js +12 -15
  41. package/dist/models/Login429Response.js +12 -15
  42. package/dist/models/LoginInput.js +10 -12
  43. package/dist/models/MoneyDto.js +10 -12
  44. package/dist/models/MoneyInput.js +10 -12
  45. package/dist/models/ObjectId.js +7 -10
  46. package/dist/models/PaginateResponse.js +13 -14
  47. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  48. package/dist/models/PaginateResponseLinks.js +14 -19
  49. package/dist/models/PaginateResponseMeta.js +18 -23
  50. package/dist/models/PutLeadInput.js +7 -10
  51. package/dist/models/TokenDto.js +7 -10
  52. package/dist/models/UpdateDomainInput.d.ts +2 -2
  53. package/dist/models/UpdateDomainInput.js +8 -13
  54. package/dist/models/UpdateFinancial400Response.js +12 -15
  55. package/dist/models/UpdateSettings400Response.js +12 -15
  56. package/dist/models/UpdateSettings401Response.js +12 -15
  57. package/dist/models/UpdateSettings429Response.js +12 -15
  58. package/dist/models/WithFinancialDtoInner.js +16 -16
  59. package/dist/models/WithSettingsInner.js +7 -10
  60. package/dist/models/index.d.ts +0 -1
  61. package/dist/models/index.js +0 -1
  62. package/dist/runtime.d.ts +2 -3
  63. package/dist/runtime.js +1 -6
  64. package/package.json +1 -1
  65. package/src/apis/AccountsApi.ts +36 -18
  66. package/src/apis/AuthApi.ts +6 -3
  67. package/src/apis/DomainsApi.ts +49 -31
  68. package/src/apis/LeadsApi.ts +36 -18
  69. package/src/apis/LeadsPublicApi.ts +6 -3
  70. package/src/apis/index.ts +0 -1
  71. package/src/models/AccountAddressDto.ts +17 -22
  72. package/src/models/AccountAddressInput.ts +17 -22
  73. package/src/models/AccountDto.ts +9 -14
  74. package/src/models/AccountFinancialInput.ts +13 -18
  75. package/src/models/AccountSettingsInput.ts +7 -12
  76. package/src/models/BatchUpdate404Response.ts +11 -16
  77. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  78. package/src/models/CreateLeadInput.ts +17 -22
  79. package/src/models/CreateLeadMessageInput.ts +7 -12
  80. package/src/models/DeleteDomainsInput.ts +7 -12
  81. package/src/models/DomainDto.ts +21 -26
  82. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  83. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  84. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  85. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  86. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  87. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  88. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  89. package/src/models/LeadMessageData.ts +7 -12
  90. package/src/models/LeadMessageDto.ts +19 -24
  91. package/src/models/LeadMessageDtoData.ts +7 -12
  92. package/src/models/List200Response.ts +11 -16
  93. package/src/models/List400Response.ts +11 -16
  94. package/src/models/List401Response.ts +11 -16
  95. package/src/models/ListLeadMessagesDto.ts +7 -12
  96. package/src/models/Login401Response.ts +11 -16
  97. package/src/models/Login429Response.ts +11 -16
  98. package/src/models/LoginInput.ts +9 -14
  99. package/src/models/MoneyDto.ts +9 -14
  100. package/src/models/MoneyInput.ts +9 -14
  101. package/src/models/ObjectId.ts +7 -12
  102. package/src/models/PaginateResponse.ts +11 -16
  103. package/src/models/PaginateResponseLinks.ts +20 -25
  104. package/src/models/PaginateResponseMeta.ts +19 -24
  105. package/src/models/PutLeadInput.ts +7 -12
  106. package/src/models/TokenDto.ts +7 -12
  107. package/src/models/UpdateDomainInput.ts +11 -16
  108. package/src/models/UpdateFinancial400Response.ts +11 -16
  109. package/src/models/UpdateSettings400Response.ts +11 -16
  110. package/src/models/UpdateSettings401Response.ts +11 -16
  111. package/src/models/UpdateSettings429Response.ts +11 -16
  112. package/src/models/WithFinancialDtoInner.ts +13 -18
  113. package/src/models/WithSettingsInner.ts +7 -12
  114. package/src/models/index.ts +0 -1
  115. package/src/runtime.ts +3 -8
  116. package/dist/apis/DomainsPublicApi.d.ts +0 -35
  117. package/dist/apis/DomainsPublicApi.js +0 -164
  118. package/dist/apis/TestApi.d.ts +0 -23
  119. package/dist/apis/TestApi.js +0 -116
  120. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  121. package/dist/models/CreateLeadMessageInputData.js +0 -51
  122. package/dist/models/ImportDomainsDto.d.ts +0 -49
  123. package/dist/models/ImportDomainsDto.js +0 -59
  124. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  125. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  126. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  127. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  128. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  129. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  130. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  131. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  132. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  133. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  134. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  135. package/dist/models/IntersectionLeadDto.js +0 -64
  136. package/dist/models/LeadDto.d.ts +0 -74
  137. package/dist/models/LeadDto.js +0 -79
  138. package/dist/models/List429Response.d.ts +0 -43
  139. package/dist/models/List429Response.js +0 -56
  140. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  141. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  142. package/src/apis/DomainsPublicApi.ts +0 -97
  143. package/src/apis/TestApi.ts +0 -46
  144. package/src/models/CreateLeadMessageInputData.ts +0 -73
  145. package/src/models/ImportDomainsDto.ts +0 -93
  146. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  147. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  148. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  149. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  150. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  151. package/src/models/IntersectionLeadDto.ts +0 -96
  152. package/src/models/LeadDto.ts +0 -131
  153. package/src/models/List429Response.ts +0 -83
  154. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -43,11 +43,9 @@ export interface BatchUpdate404Response {
43
43
  * Check if a given object implements the BatchUpdate404Response interface.
44
44
  */
45
45
  export function instanceOfBatchUpdate404Response(value: object): boolean {
46
- let isInstance = true;
47
- isInstance = isInstance && "statusCode" in value;
48
- isInstance = isInstance && "message" in value;
49
-
50
- return isInstance;
46
+ if (!('statusCode' in value)) return false;
47
+ if (!('message' in value)) return false;
48
+ return true;
51
49
  }
52
50
 
53
51
  export function BatchUpdate404ResponseFromJSON(json: any): BatchUpdate404Response {
@@ -55,29 +53,26 @@ export function BatchUpdate404ResponseFromJSON(json: any): BatchUpdate404Respons
55
53
  }
56
54
 
57
55
  export function BatchUpdate404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdate404Response {
58
- if ((json === undefined) || (json === null)) {
56
+ if (json == null) {
59
57
  return json;
60
58
  }
61
59
  return {
62
60
 
63
61
  'statusCode': json['statusCode'],
64
62
  'message': json['message'],
65
- 'error': !exists(json, 'error') ? undefined : json['error'],
63
+ 'error': json['error'] == null ? undefined : json['error'],
66
64
  };
67
65
  }
68
66
 
69
67
  export function BatchUpdate404ResponseToJSON(value?: BatchUpdate404Response | null): any {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
68
+ if (value == null) {
69
+ return value;
75
70
  }
76
71
  return {
77
72
 
78
- 'statusCode': value.statusCode,
79
- 'message': value.message,
80
- 'error': value.error,
73
+ 'statusCode': value['statusCode'],
74
+ 'message': value['message'],
75
+ 'error': value['error'],
81
76
  };
82
77
  }
83
78
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { UpdateDomainInput } from './UpdateDomainInput';
17
17
  import {
18
18
  UpdateDomainInputFromJSON,
@@ -44,11 +44,9 @@ export interface BatchUpdateDomainsInput {
44
44
  * Check if a given object implements the BatchUpdateDomainsInput interface.
45
45
  */
46
46
  export function instanceOfBatchUpdateDomainsInput(value: object): boolean {
47
- let isInstance = true;
48
- isInstance = isInstance && "domainIds" in value;
49
- isInstance = isInstance && "update" in value;
50
-
51
- return isInstance;
47
+ if (!('domainIds' in value)) return false;
48
+ if (!('update' in value)) return false;
49
+ return true;
52
50
  }
53
51
 
54
52
  export function BatchUpdateDomainsInputFromJSON(json: any): BatchUpdateDomainsInput {
@@ -56,7 +54,7 @@ export function BatchUpdateDomainsInputFromJSON(json: any): BatchUpdateDomainsIn
56
54
  }
57
55
 
58
56
  export function BatchUpdateDomainsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateDomainsInput {
59
- if ((json === undefined) || (json === null)) {
57
+ if (json == null) {
60
58
  return json;
61
59
  }
62
60
  return {
@@ -67,16 +65,13 @@ export function BatchUpdateDomainsInputFromJSONTyped(json: any, ignoreDiscrimina
67
65
  }
68
66
 
69
67
  export function BatchUpdateDomainsInputToJSON(value?: BatchUpdateDomainsInput | null): any {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
68
+ if (value == null) {
69
+ return value;
75
70
  }
76
71
  return {
77
72
 
78
- 'domainIds': value.domainIds,
79
- 'update': UpdateDomainInputToJSON(value.update),
73
+ 'domainIds': value['domainIds'],
74
+ 'update': UpdateDomainInputToJSON(value['update']),
80
75
  };
81
76
  }
82
77
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -61,15 +61,13 @@ export interface CreateLeadInput {
61
61
  * Check if a given object implements the CreateLeadInput interface.
62
62
  */
63
63
  export function instanceOfCreateLeadInput(value: object): boolean {
64
- let isInstance = true;
65
- isInstance = isInstance && "domainId" in value;
66
- isInstance = isInstance && "firstname" in value;
67
- isInstance = isInstance && "lastname" in value;
68
- isInstance = isInstance && "email" in value;
69
- isInstance = isInstance && "phone" in value;
70
- isInstance = isInstance && "companyName" in value;
71
-
72
- return isInstance;
64
+ if (!('domainId' in value)) return false;
65
+ if (!('firstname' in value)) return false;
66
+ if (!('lastname' in value)) return false;
67
+ if (!('email' in value)) return false;
68
+ if (!('phone' in value)) return false;
69
+ if (!('companyName' in value)) return false;
70
+ return true;
73
71
  }
74
72
 
75
73
  export function CreateLeadInputFromJSON(json: any): CreateLeadInput {
@@ -77,7 +75,7 @@ export function CreateLeadInputFromJSON(json: any): CreateLeadInput {
77
75
  }
78
76
 
79
77
  export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadInput {
80
- if ((json === undefined) || (json === null)) {
78
+ if (json == null) {
81
79
  return json;
82
80
  }
83
81
  return {
@@ -92,20 +90,17 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
92
90
  }
93
91
 
94
92
  export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
95
- if (value === undefined) {
96
- return undefined;
97
- }
98
- if (value === null) {
99
- return null;
93
+ if (value == null) {
94
+ return value;
100
95
  }
101
96
  return {
102
97
 
103
- 'domainId': value.domainId,
104
- 'firstname': value.firstname,
105
- 'lastname': value.lastname,
106
- 'email': value.email,
107
- 'phone': value.phone,
108
- 'companyName': value.companyName,
98
+ 'domainId': value['domainId'],
99
+ 'firstname': value['firstname'],
100
+ 'lastname': value['lastname'],
101
+ 'email': value['email'],
102
+ 'phone': value['phone'],
103
+ 'companyName': value['companyName'],
109
104
  };
110
105
  }
111
106
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -31,10 +31,8 @@ export interface CreateLeadMessageInput {
31
31
  * Check if a given object implements the CreateLeadMessageInput interface.
32
32
  */
33
33
  export function instanceOfCreateLeadMessageInput(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "message" in value;
36
-
37
- return isInstance;
34
+ if (!('message' in value)) return false;
35
+ return true;
38
36
  }
39
37
 
40
38
  export function CreateLeadMessageInputFromJSON(json: any): CreateLeadMessageInput {
@@ -42,7 +40,7 @@ export function CreateLeadMessageInputFromJSON(json: any): CreateLeadMessageInpu
42
40
  }
43
41
 
44
42
  export function CreateLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInput {
45
- if ((json === undefined) || (json === null)) {
43
+ if (json == null) {
46
44
  return json;
47
45
  }
48
46
  return {
@@ -52,15 +50,12 @@ export function CreateLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminat
52
50
  }
53
51
 
54
52
  export function CreateLeadMessageInputToJSON(value?: CreateLeadMessageInput | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
53
+ if (value == null) {
54
+ return value;
60
55
  }
61
56
  return {
62
57
 
63
- 'message': value.message,
58
+ 'message': value['message'],
64
59
  };
65
60
  }
66
61
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -31,10 +31,8 @@ export interface DeleteDomainsInput {
31
31
  * Check if a given object implements the DeleteDomainsInput interface.
32
32
  */
33
33
  export function instanceOfDeleteDomainsInput(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "domainIds" in value;
36
-
37
- return isInstance;
34
+ if (!('domainIds' in value)) return false;
35
+ return true;
38
36
  }
39
37
 
40
38
  export function DeleteDomainsInputFromJSON(json: any): DeleteDomainsInput {
@@ -42,7 +40,7 @@ export function DeleteDomainsInputFromJSON(json: any): DeleteDomainsInput {
42
40
  }
43
41
 
44
42
  export function DeleteDomainsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDomainsInput {
45
- if ((json === undefined) || (json === null)) {
43
+ if (json == null) {
46
44
  return json;
47
45
  }
48
46
  return {
@@ -52,15 +50,12 @@ export function DeleteDomainsInputFromJSONTyped(json: any, ignoreDiscriminator:
52
50
  }
53
51
 
54
52
  export function DeleteDomainsInputToJSON(value?: DeleteDomainsInput | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
53
+ if (value == null) {
54
+ return value;
60
55
  }
61
56
  return {
62
57
 
63
- 'domainIds': value.domainIds,
58
+ 'domainIds': value['domainIds'],
64
59
  };
65
60
  }
66
61
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { MoneyDto } from './MoneyDto';
17
17
  import {
18
18
  MoneyDtoFromJSON,
@@ -57,13 +57,13 @@ export interface DomainDto {
57
57
  */
58
58
  name: string;
59
59
  /**
60
- *
60
+ * The BIN
61
61
  * @type {MoneyDto}
62
62
  * @memberof DomainDto
63
63
  */
64
64
  buyNow: MoneyDto;
65
65
  /**
66
- *
66
+ * The minimum offer
67
67
  * @type {MoneyDto}
68
68
  * @memberof DomainDto
69
69
  */
@@ -74,16 +74,14 @@ export interface DomainDto {
74
74
  * Check if a given object implements the DomainDto interface.
75
75
  */
76
76
  export function instanceOfDomainDto(value: object): boolean {
77
- let isInstance = true;
78
- isInstance = isInstance && "id" in value;
79
- isInstance = isInstance && "tld" in value;
80
- isInstance = isInstance && "verified" in value;
81
- isInstance = isInstance && "nameservers" in value;
82
- isInstance = isInstance && "name" in value;
83
- isInstance = isInstance && "buyNow" in value;
84
- isInstance = isInstance && "minOffer" in value;
85
-
86
- return isInstance;
77
+ if (!('id' in value)) return false;
78
+ if (!('tld' in value)) return false;
79
+ if (!('verified' in value)) return false;
80
+ if (!('nameservers' in value)) return false;
81
+ if (!('name' in value)) return false;
82
+ if (!('buyNow' in value)) return false;
83
+ if (!('minOffer' in value)) return false;
84
+ return true;
87
85
  }
88
86
 
89
87
  export function DomainDtoFromJSON(json: any): DomainDto {
@@ -91,7 +89,7 @@ export function DomainDtoFromJSON(json: any): DomainDto {
91
89
  }
92
90
 
93
91
  export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainDto {
94
- if ((json === undefined) || (json === null)) {
92
+ if (json == null) {
95
93
  return json;
96
94
  }
97
95
  return {
@@ -107,21 +105,18 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
107
105
  }
108
106
 
109
107
  export function DomainDtoToJSON(value?: DomainDto | null): any {
110
- if (value === undefined) {
111
- return undefined;
112
- }
113
- if (value === null) {
114
- return null;
108
+ if (value == null) {
109
+ return value;
115
110
  }
116
111
  return {
117
112
 
118
- 'id': value.id,
119
- 'tld': value.tld,
120
- 'verified': value.verified,
121
- 'nameservers': value.nameservers,
122
- 'name': value.name,
123
- 'buyNow': MoneyDtoToJSON(value.buyNow),
124
- 'minOffer': MoneyDtoToJSON(value.minOffer),
113
+ 'id': value['id'],
114
+ 'tld': value['tld'],
115
+ 'verified': value['verified'],
116
+ 'nameservers': value['nameservers'],
117
+ 'name': value['name'],
118
+ 'buyNow': MoneyDtoToJSON(value['buyNow']),
119
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
125
120
  };
126
121
  }
127
122
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { AccountAddressDto } from './AccountAddressDto';
17
17
  import {
18
18
  AccountAddressDtoFromJSON,
@@ -74,14 +74,12 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
74
74
  * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
75
75
  */
76
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;
77
+ if (!('id' in value)) return false;
78
+ if (!('identifier' in value)) return false;
79
+ if (!('financial' in value)) return false;
80
+ if (!('settings' in value)) return false;
81
+ if (!('addresses' in value)) return false;
82
+ return true;
85
83
  }
86
84
 
87
85
  export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
@@ -89,7 +87,7 @@ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddress
89
87
  }
90
88
 
91
89
  export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
92
- if ((json === undefined) || (json === null)) {
90
+ if (json == null) {
93
91
  return json;
94
92
  }
95
93
  return {
@@ -103,19 +101,16 @@ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddress
103
101
  }
104
102
 
105
103
  export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): any {
106
- if (value === undefined) {
107
- return undefined;
108
- }
109
- if (value === null) {
110
- return null;
104
+ if (value == null) {
105
+ return value;
111
106
  }
112
107
  return {
113
108
 
114
- 'id': value.id,
115
- 'identifier': value.identifier,
116
- 'financial': WithFinancialDtoInnerToJSON(value.financial),
117
- 'settings': WithSettingsInnerToJSON(value.settings),
118
- 'addresses': ((value.addresses as Array<any>).map(AccountAddressDtoToJSON)),
109
+ 'id': value['id'],
110
+ 'identifier': value['identifier'],
111
+ 'financial': WithFinancialDtoInnerToJSON(value['financial']),
112
+ 'settings': WithSettingsInnerToJSON(value['settings']),
113
+ 'addresses': ((value['addresses'] as Array<any>).map(AccountAddressDtoToJSON)),
119
114
  };
120
115
  }
121
116
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { AccountDto } from './AccountDto';
17
17
  import {
18
18
  AccountDtoFromJSON,
@@ -63,13 +63,13 @@ export interface IntersectionDomainDtoWithAccountDto {
63
63
  */
64
64
  name: string;
65
65
  /**
66
- *
66
+ * The BIN
67
67
  * @type {MoneyDto}
68
68
  * @memberof IntersectionDomainDtoWithAccountDto
69
69
  */
70
70
  buyNow: MoneyDto;
71
71
  /**
72
- *
72
+ * The minimum offer
73
73
  * @type {MoneyDto}
74
74
  * @memberof IntersectionDomainDtoWithAccountDto
75
75
  */
@@ -86,17 +86,15 @@ export interface IntersectionDomainDtoWithAccountDto {
86
86
  * Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
87
87
  */
88
88
  export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): boolean {
89
- let isInstance = true;
90
- isInstance = isInstance && "id" in value;
91
- isInstance = isInstance && "tld" in value;
92
- isInstance = isInstance && "verified" in value;
93
- isInstance = isInstance && "nameservers" in value;
94
- isInstance = isInstance && "name" in value;
95
- isInstance = isInstance && "buyNow" in value;
96
- isInstance = isInstance && "minOffer" in value;
97
- isInstance = isInstance && "account" in value;
98
-
99
- return isInstance;
89
+ if (!('id' in value)) return false;
90
+ if (!('tld' in value)) return false;
91
+ if (!('verified' in value)) return false;
92
+ if (!('nameservers' in value)) return false;
93
+ if (!('name' in value)) return false;
94
+ if (!('buyNow' in value)) return false;
95
+ if (!('minOffer' in value)) return false;
96
+ if (!('account' in value)) return false;
97
+ return true;
100
98
  }
101
99
 
102
100
  export function IntersectionDomainDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithAccountDto {
@@ -104,7 +102,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSON(json: any): Intersec
104
102
  }
105
103
 
106
104
  export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountDto {
107
- if ((json === undefined) || (json === null)) {
105
+ if (json == null) {
108
106
  return json;
109
107
  }
110
108
  return {
@@ -121,22 +119,19 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
121
119
  }
122
120
 
123
121
  export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithAccountDto | null): any {
124
- if (value === undefined) {
125
- return undefined;
126
- }
127
- if (value === null) {
128
- return null;
122
+ if (value == null) {
123
+ return value;
129
124
  }
130
125
  return {
131
126
 
132
- 'id': value.id,
133
- 'tld': value.tld,
134
- 'verified': value.verified,
135
- 'nameservers': value.nameservers,
136
- 'name': value.name,
137
- 'buyNow': MoneyDtoToJSON(value.buyNow),
138
- 'minOffer': MoneyDtoToJSON(value.minOffer),
139
- 'account': AccountDtoToJSON(value.account),
127
+ 'id': value['id'],
128
+ 'tld': value['tld'],
129
+ 'verified': value['verified'],
130
+ 'nameservers': value['nameservers'],
131
+ 'name': value['name'],
132
+ 'buyNow': MoneyDtoToJSON(value['buyNow']),
133
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
134
+ 'account': AccountDtoToJSON(value['account']),
140
135
  };
141
136
  }
142
137
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { AccountDto } from './AccountDto';
17
17
  import {
18
18
  AccountDtoFromJSON,
@@ -63,13 +63,13 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
63
63
  */
64
64
  name: string;
65
65
  /**
66
- *
66
+ * The BIN
67
67
  * @type {MoneyDto}
68
68
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
69
69
  */
70
70
  buyNow: MoneyDto;
71
71
  /**
72
- *
72
+ * The minimum offer
73
73
  * @type {MoneyDto}
74
74
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
75
75
  */
@@ -92,18 +92,16 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
92
92
  * Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
93
93
  */
94
94
  export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value: object): boolean {
95
- let isInstance = true;
96
- isInstance = isInstance && "id" in value;
97
- isInstance = isInstance && "tld" in value;
98
- isInstance = isInstance && "verified" in value;
99
- isInstance = isInstance && "nameservers" in value;
100
- isInstance = isInstance && "name" in value;
101
- isInstance = isInstance && "buyNow" in value;
102
- isInstance = isInstance && "minOffer" in value;
103
- isInstance = isInstance && "hijacker" in value;
104
- isInstance = isInstance && "account" in value;
105
-
106
- return isInstance;
95
+ if (!('id' in value)) return false;
96
+ if (!('tld' in value)) return false;
97
+ if (!('verified' in value)) return false;
98
+ if (!('nameservers' in value)) return false;
99
+ if (!('name' in value)) return false;
100
+ if (!('buyNow' in value)) return false;
101
+ if (!('minOffer' in value)) return false;
102
+ if (!('hijacker' in value)) return false;
103
+ if (!('account' in value)) return false;
104
+ return true;
107
105
  }
108
106
 
109
107
  export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithHijackerDtoWithAccountDto {
@@ -111,7 +109,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json:
111
109
  }
112
110
 
113
111
  export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithHijackerDtoWithAccountDto {
114
- if ((json === undefined) || (json === null)) {
112
+ if (json == null) {
115
113
  return json;
116
114
  }
117
115
  return {
@@ -129,23 +127,20 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
129
127
  }
130
128
 
131
129
  export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithHijackerDtoWithAccountDto | null): any {
132
- if (value === undefined) {
133
- return undefined;
134
- }
135
- if (value === null) {
136
- return null;
130
+ if (value == null) {
131
+ return value;
137
132
  }
138
133
  return {
139
134
 
140
- 'id': value.id,
141
- 'tld': value.tld,
142
- 'verified': value.verified,
143
- 'nameservers': value.nameservers,
144
- 'name': value.name,
145
- 'buyNow': MoneyDtoToJSON(value.buyNow),
146
- 'minOffer': MoneyDtoToJSON(value.minOffer),
147
- 'hijacker': AccountDtoToJSON(value.hijacker),
148
- 'account': AccountDtoToJSON(value.account),
135
+ 'id': value['id'],
136
+ 'tld': value['tld'],
137
+ 'verified': value['verified'],
138
+ 'nameservers': value['nameservers'],
139
+ 'name': value['name'],
140
+ 'buyNow': MoneyDtoToJSON(value['buyNow']),
141
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
142
+ 'hijacker': AccountDtoToJSON(value['hijacker']),
143
+ 'account': AccountDtoToJSON(value['account']),
149
144
  };
150
145
  }
151
146