@randock/nameshift-api-client 0.0.17 → 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 (157) hide show
  1. package/.openapi-generator/FILES +3 -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.d.ts +3 -3
  38. package/dist/models/List400Response.js +12 -15
  39. package/dist/models/List401Response.js +12 -15
  40. package/dist/models/ListLeadMessagesDto.js +7 -10
  41. package/dist/models/Login401Response.js +12 -15
  42. package/dist/models/Login429Response.js +12 -15
  43. package/dist/models/LoginInput.js +10 -12
  44. package/dist/models/MoneyDto.js +10 -12
  45. package/dist/models/MoneyInput.js +10 -12
  46. package/dist/models/ObjectId.js +7 -10
  47. package/dist/models/PaginateResponse.js +13 -14
  48. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  49. package/dist/models/PaginateResponseLinks.js +14 -19
  50. package/dist/models/PaginateResponseMeta.js +18 -23
  51. package/dist/models/PutLeadInput.js +7 -10
  52. package/dist/models/TokenDto.js +7 -10
  53. package/dist/models/UpdateDomainInput.d.ts +2 -2
  54. package/dist/models/UpdateDomainInput.js +8 -13
  55. package/dist/models/UpdateFinancial400Response.d.ts +43 -0
  56. package/dist/models/UpdateFinancial400Response.js +53 -0
  57. package/dist/models/UpdateSettings400Response.d.ts +43 -0
  58. package/dist/models/UpdateSettings400Response.js +53 -0
  59. package/dist/models/UpdateSettings401Response.js +12 -15
  60. package/dist/models/UpdateSettings429Response.js +12 -15
  61. package/dist/models/WithFinancialDtoInner.js +16 -16
  62. package/dist/models/WithSettingsInner.js +7 -10
  63. package/dist/models/index.d.ts +2 -1
  64. package/dist/models/index.js +2 -1
  65. package/dist/runtime.d.ts +2 -3
  66. package/dist/runtime.js +1 -6
  67. package/package.json +1 -1
  68. package/src/apis/AccountsApi.ts +42 -18
  69. package/src/apis/AuthApi.ts +6 -3
  70. package/src/apis/DomainsApi.ts +49 -31
  71. package/src/apis/LeadsApi.ts +39 -18
  72. package/src/apis/LeadsPublicApi.ts +9 -3
  73. package/src/apis/index.ts +0 -1
  74. package/src/models/AccountAddressDto.ts +17 -22
  75. package/src/models/AccountAddressInput.ts +17 -22
  76. package/src/models/AccountDto.ts +9 -14
  77. package/src/models/AccountFinancialInput.ts +13 -18
  78. package/src/models/AccountSettingsInput.ts +7 -12
  79. package/src/models/BatchUpdate404Response.ts +11 -16
  80. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  81. package/src/models/CreateLeadInput.ts +17 -22
  82. package/src/models/CreateLeadMessageInput.ts +7 -12
  83. package/src/models/DeleteDomainsInput.ts +7 -12
  84. package/src/models/DomainDto.ts +21 -26
  85. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  86. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  87. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  88. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  89. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  90. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  91. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  92. package/src/models/LeadMessageData.ts +7 -12
  93. package/src/models/LeadMessageDto.ts +19 -24
  94. package/src/models/LeadMessageDtoData.ts +7 -12
  95. package/src/models/List200Response.ts +11 -16
  96. package/src/models/List400Response.ts +14 -19
  97. package/src/models/List401Response.ts +11 -16
  98. package/src/models/ListLeadMessagesDto.ts +7 -12
  99. package/src/models/Login401Response.ts +11 -16
  100. package/src/models/Login429Response.ts +11 -16
  101. package/src/models/LoginInput.ts +9 -14
  102. package/src/models/MoneyDto.ts +9 -14
  103. package/src/models/MoneyInput.ts +9 -14
  104. package/src/models/ObjectId.ts +7 -12
  105. package/src/models/PaginateResponse.ts +11 -16
  106. package/src/models/PaginateResponseLinks.ts +20 -25
  107. package/src/models/PaginateResponseMeta.ts +19 -24
  108. package/src/models/PutLeadInput.ts +7 -12
  109. package/src/models/TokenDto.ts +7 -12
  110. package/src/models/UpdateDomainInput.ts +11 -16
  111. package/src/models/UpdateFinancial400Response.ts +78 -0
  112. package/src/models/UpdateSettings400Response.ts +78 -0
  113. package/src/models/UpdateSettings401Response.ts +11 -16
  114. package/src/models/UpdateSettings429Response.ts +11 -16
  115. package/src/models/WithFinancialDtoInner.ts +13 -18
  116. package/src/models/WithSettingsInner.ts +7 -12
  117. package/src/models/index.ts +2 -1
  118. package/src/runtime.ts +3 -8
  119. package/dist/apis/DomainsPublicApi.d.ts +0 -35
  120. package/dist/apis/DomainsPublicApi.js +0 -164
  121. package/dist/apis/TestApi.d.ts +0 -23
  122. package/dist/apis/TestApi.js +0 -116
  123. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  124. package/dist/models/CreateLeadMessageInputData.js +0 -51
  125. package/dist/models/ImportDomainsDto.d.ts +0 -49
  126. package/dist/models/ImportDomainsDto.js +0 -59
  127. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  128. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  129. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  130. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  131. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  132. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  133. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  134. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  135. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  136. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  137. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  138. package/dist/models/IntersectionLeadDto.js +0 -64
  139. package/dist/models/LeadDto.d.ts +0 -74
  140. package/dist/models/LeadDto.js +0 -79
  141. package/dist/models/List429Response.d.ts +0 -43
  142. package/dist/models/List429Response.js +0 -56
  143. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  144. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  145. package/src/apis/DomainsPublicApi.ts +0 -97
  146. package/src/apis/TestApi.ts +0 -46
  147. package/src/models/CreateLeadMessageInputData.ts +0 -73
  148. package/src/models/ImportDomainsDto.ts +0 -93
  149. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  150. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  151. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  152. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  153. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  154. package/src/models/IntersectionLeadDto.ts +0 -96
  155. package/src/models/LeadDto.ts +0 -131
  156. package/src/models/List429Response.ts +0 -83
  157. 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
  import type { PaginateResponseLinks } from './PaginateResponseLinks';
17
17
  import {
18
18
  PaginateResponseLinksFromJSON,
@@ -56,12 +56,10 @@ export interface PaginateResponse {
56
56
  * Check if a given object implements the PaginateResponse interface.
57
57
  */
58
58
  export function instanceOfPaginateResponse(value: object): boolean {
59
- let isInstance = true;
60
- isInstance = isInstance && "data" in value;
61
- isInstance = isInstance && "meta" in value;
62
- isInstance = isInstance && "links" in value;
63
-
64
- return isInstance;
59
+ if (!('data' in value)) return false;
60
+ if (!('meta' in value)) return false;
61
+ if (!('links' in value)) return false;
62
+ return true;
65
63
  }
66
64
 
67
65
  export function PaginateResponseFromJSON(json: any): PaginateResponse {
@@ -69,7 +67,7 @@ export function PaginateResponseFromJSON(json: any): PaginateResponse {
69
67
  }
70
68
 
71
69
  export function PaginateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginateResponse {
72
- if ((json === undefined) || (json === null)) {
70
+ if (json == null) {
73
71
  return json;
74
72
  }
75
73
  return {
@@ -81,17 +79,14 @@ export function PaginateResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
81
79
  }
82
80
 
83
81
  export function PaginateResponseToJSON(value?: PaginateResponse | null): any {
84
- if (value === undefined) {
85
- return undefined;
86
- }
87
- if (value === null) {
88
- return null;
82
+ if (value == null) {
83
+ return value;
89
84
  }
90
85
  return {
91
86
 
92
- 'data': value.data,
93
- 'meta': PaginateResponseMetaToJSON(value.meta),
94
- 'links': PaginateResponseLinksToJSON(value.links),
87
+ 'data': value['data'],
88
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
89
+ 'links': PaginateResponseLinksToJSON(value['links']),
95
90
  };
96
91
  }
97
92
 
@@ -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
@@ -24,40 +24,38 @@ export interface PaginateResponseLinks {
24
24
  * @type {string}
25
25
  * @memberof PaginateResponseLinks
26
26
  */
27
- first?: string | null;
27
+ first?: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof PaginateResponseLinks
32
32
  */
33
- previous?: string | null;
33
+ previous?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof PaginateResponseLinks
38
38
  */
39
- current?: string | null;
39
+ current?: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof PaginateResponseLinks
44
44
  */
45
- next?: string | null;
45
+ next?: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof PaginateResponseLinks
50
50
  */
51
- last?: string | null;
51
+ last?: string;
52
52
  }
53
53
 
54
54
  /**
55
55
  * Check if a given object implements the PaginateResponseLinks interface.
56
56
  */
57
57
  export function instanceOfPaginateResponseLinks(value: object): boolean {
58
- let isInstance = true;
59
-
60
- return isInstance;
58
+ return true;
61
59
  }
62
60
 
63
61
  export function PaginateResponseLinksFromJSON(json: any): PaginateResponseLinks {
@@ -65,33 +63,30 @@ export function PaginateResponseLinksFromJSON(json: any): PaginateResponseLinks
65
63
  }
66
64
 
67
65
  export function PaginateResponseLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginateResponseLinks {
68
- if ((json === undefined) || (json === null)) {
66
+ if (json == null) {
69
67
  return json;
70
68
  }
71
69
  return {
72
70
 
73
- 'first': !exists(json, 'first') ? undefined : json['first'],
74
- 'previous': !exists(json, 'previous') ? undefined : json['previous'],
75
- 'current': !exists(json, 'current') ? undefined : json['current'],
76
- 'next': !exists(json, 'next') ? undefined : json['next'],
77
- 'last': !exists(json, 'last') ? undefined : json['last'],
71
+ 'first': json['first'] == null ? undefined : json['first'],
72
+ 'previous': json['previous'] == null ? undefined : json['previous'],
73
+ 'current': json['current'] == null ? undefined : json['current'],
74
+ 'next': json['next'] == null ? undefined : json['next'],
75
+ 'last': json['last'] == null ? undefined : json['last'],
78
76
  };
79
77
  }
80
78
 
81
79
  export function PaginateResponseLinksToJSON(value?: PaginateResponseLinks | null): any {
82
- if (value === undefined) {
83
- return undefined;
84
- }
85
- if (value === null) {
86
- return null;
80
+ if (value == null) {
81
+ return value;
87
82
  }
88
83
  return {
89
84
 
90
- 'first': value.first,
91
- 'previous': value.previous,
92
- 'current': value.current,
93
- 'next': value.next,
94
- 'last': value.last,
85
+ 'first': value['first'],
86
+ 'previous': value['previous'],
87
+ 'current': value['current'],
88
+ 'next': value['next'],
89
+ 'last': value['last'],
95
90
  };
96
91
  }
97
92
 
@@ -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
@@ -67,9 +67,7 @@ export interface PaginateResponseMeta {
67
67
  * Check if a given object implements the PaginateResponseMeta interface.
68
68
  */
69
69
  export function instanceOfPaginateResponseMeta(value: object): boolean {
70
- let isInstance = true;
71
-
72
- return isInstance;
70
+ return true;
73
71
  }
74
72
 
75
73
  export function PaginateResponseMetaFromJSON(json: any): PaginateResponseMeta {
@@ -77,37 +75,34 @@ export function PaginateResponseMetaFromJSON(json: any): PaginateResponseMeta {
77
75
  }
78
76
 
79
77
  export function PaginateResponseMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginateResponseMeta {
80
- if ((json === undefined) || (json === null)) {
78
+ if (json == null) {
81
79
  return json;
82
80
  }
83
81
  return {
84
82
 
85
- 'page': !exists(json, 'page') ? undefined : json['page'],
86
- 'itemsPerPage': !exists(json, 'itemsPerPage') ? undefined : json['itemsPerPage'],
87
- 'offset': !exists(json, 'offset') ? undefined : json['offset'],
88
- 'unpaged': !exists(json, 'unpaged') ? undefined : json['unpaged'],
89
- 'totalPages': !exists(json, 'totalPages') ? undefined : json['totalPages'],
90
- 'totalItems': !exists(json, 'totalItems') ? undefined : json['totalItems'],
91
- 'sortBy': !exists(json, 'sortBy') ? undefined : json['sortBy'],
83
+ 'page': json['page'] == null ? undefined : json['page'],
84
+ 'itemsPerPage': json['itemsPerPage'] == null ? undefined : json['itemsPerPage'],
85
+ 'offset': json['offset'] == null ? undefined : json['offset'],
86
+ 'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
87
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
88
+ 'totalItems': json['totalItems'] == null ? undefined : json['totalItems'],
89
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
92
90
  };
93
91
  }
94
92
 
95
93
  export function PaginateResponseMetaToJSON(value?: PaginateResponseMeta | null): any {
96
- if (value === undefined) {
97
- return undefined;
98
- }
99
- if (value === null) {
100
- return null;
94
+ if (value == null) {
95
+ return value;
101
96
  }
102
97
  return {
103
98
 
104
- 'page': value.page,
105
- 'itemsPerPage': value.itemsPerPage,
106
- 'offset': value.offset,
107
- 'unpaged': value.unpaged,
108
- 'totalPages': value.totalPages,
109
- 'totalItems': value.totalItems,
110
- 'sortBy': value.sortBy,
99
+ 'page': value['page'],
100
+ 'itemsPerPage': value['itemsPerPage'],
101
+ 'offset': value['offset'],
102
+ 'unpaged': value['unpaged'],
103
+ 'totalPages': value['totalPages'],
104
+ 'totalItems': value['totalItems'],
105
+ 'sortBy': value['sortBy'],
111
106
  };
112
107
  }
113
108
 
@@ -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,
@@ -38,10 +38,8 @@ export interface PutLeadInput {
38
38
  * Check if a given object implements the PutLeadInput interface.
39
39
  */
40
40
  export function instanceOfPutLeadInput(value: object): boolean {
41
- let isInstance = true;
42
- isInstance = isInstance && "offer" in value;
43
-
44
- return isInstance;
41
+ if (!('offer' in value)) return false;
42
+ return true;
45
43
  }
46
44
 
47
45
  export function PutLeadInputFromJSON(json: any): PutLeadInput {
@@ -49,7 +47,7 @@ export function PutLeadInputFromJSON(json: any): PutLeadInput {
49
47
  }
50
48
 
51
49
  export function PutLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLeadInput {
52
- if ((json === undefined) || (json === null)) {
50
+ if (json == null) {
53
51
  return json;
54
52
  }
55
53
  return {
@@ -59,15 +57,12 @@ export function PutLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolea
59
57
  }
60
58
 
61
59
  export function PutLeadInputToJSON(value?: PutLeadInput | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'offer': MoneyDtoToJSON(value.offer),
65
+ 'offer': MoneyDtoToJSON(value['offer']),
71
66
  };
72
67
  }
73
68
 
@@ -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 TokenDto {
31
31
  * Check if a given object implements the TokenDto interface.
32
32
  */
33
33
  export function instanceOfTokenDto(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "token" in value;
36
-
37
- return isInstance;
34
+ if (!('token' in value)) return false;
35
+ return true;
38
36
  }
39
37
 
40
38
  export function TokenDtoFromJSON(json: any): TokenDto {
@@ -42,7 +40,7 @@ export function TokenDtoFromJSON(json: any): TokenDto {
42
40
  }
43
41
 
44
42
  export function TokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenDto {
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 TokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
52
50
  }
53
51
 
54
52
  export function TokenDtoToJSON(value?: TokenDto | 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
- 'token': value.token,
58
+ 'token': value['token'],
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 { MoneyInput } from './MoneyInput';
17
17
  import {
18
18
  MoneyInputFromJSON,
@@ -31,22 +31,20 @@ export interface UpdateDomainInput {
31
31
  * @type {MoneyInput}
32
32
  * @memberof UpdateDomainInput
33
33
  */
34
- bin?: MoneyInput | null;
34
+ bin?: MoneyInput;
35
35
  /**
36
36
  *
37
37
  * @type {MoneyInput}
38
38
  * @memberof UpdateDomainInput
39
39
  */
40
- minOffer?: MoneyInput | null;
40
+ minOffer?: MoneyInput;
41
41
  }
42
42
 
43
43
  /**
44
44
  * Check if a given object implements the UpdateDomainInput interface.
45
45
  */
46
46
  export function instanceOfUpdateDomainInput(value: object): boolean {
47
- let isInstance = true;
48
-
49
- return isInstance;
47
+ return true;
50
48
  }
51
49
 
52
50
  export function UpdateDomainInputFromJSON(json: any): UpdateDomainInput {
@@ -54,27 +52,24 @@ export function UpdateDomainInputFromJSON(json: any): UpdateDomainInput {
54
52
  }
55
53
 
56
54
  export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainInput {
57
- if ((json === undefined) || (json === null)) {
55
+ if (json == null) {
58
56
  return json;
59
57
  }
60
58
  return {
61
59
 
62
- 'bin': !exists(json, 'bin') ? undefined : MoneyInputFromJSON(json['bin']),
63
- 'minOffer': !exists(json, 'minOffer') ? undefined : MoneyInputFromJSON(json['minOffer']),
60
+ 'bin': json['bin'] == null ? undefined : MoneyInputFromJSON(json['bin']),
61
+ 'minOffer': json['minOffer'] == null ? undefined : MoneyInputFromJSON(json['minOffer']),
64
62
  };
65
63
  }
66
64
 
67
65
  export function UpdateDomainInputToJSON(value?: UpdateDomainInput | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
66
+ if (value == null) {
67
+ return value;
73
68
  }
74
69
  return {
75
70
 
76
- 'bin': MoneyInputToJSON(value.bin),
77
- 'minOffer': MoneyInputToJSON(value.minOffer),
71
+ 'bin': MoneyInputToJSON(value['bin']),
72
+ 'minOffer': MoneyInputToJSON(value['minOffer']),
78
73
  };
79
74
  }
80
75
 
@@ -0,0 +1,78 @@
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Thrown in case of requestion validation errors.
18
+ * @export
19
+ * @interface UpdateFinancial400Response
20
+ */
21
+ export interface UpdateFinancial400Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UpdateFinancial400Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {Array<object>}
31
+ * @memberof UpdateFinancial400Response
32
+ */
33
+ message: Array<object>;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UpdateFinancial400Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateFinancial400Response interface.
44
+ */
45
+ export function instanceOfUpdateFinancial400Response(value: object): boolean {
46
+ if (!('statusCode' in value)) return false;
47
+ if (!('message' in value)) return false;
48
+ return true;
49
+ }
50
+
51
+ export function UpdateFinancial400ResponseFromJSON(json: any): UpdateFinancial400Response {
52
+ return UpdateFinancial400ResponseFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function UpdateFinancial400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFinancial400Response {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'statusCode': json['statusCode'],
62
+ 'message': json['message'],
63
+ 'error': json['error'] == null ? undefined : json['error'],
64
+ };
65
+ }
66
+
67
+ export function UpdateFinancial400ResponseToJSON(value?: UpdateFinancial400Response | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'statusCode': value['statusCode'],
74
+ 'message': value['message'],
75
+ 'error': value['error'],
76
+ };
77
+ }
78
+
@@ -0,0 +1,78 @@
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Thrown in case of validation errors.
18
+ * @export
19
+ * @interface UpdateSettings400Response
20
+ */
21
+ export interface UpdateSettings400Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UpdateSettings400Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateSettings400Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UpdateSettings400Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateSettings400Response interface.
44
+ */
45
+ export function instanceOfUpdateSettings400Response(value: object): boolean {
46
+ if (!('statusCode' in value)) return false;
47
+ if (!('message' in value)) return false;
48
+ return true;
49
+ }
50
+
51
+ export function UpdateSettings400ResponseFromJSON(json: any): UpdateSettings400Response {
52
+ return UpdateSettings400ResponseFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function UpdateSettings400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings400Response {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'statusCode': json['statusCode'],
62
+ 'message': json['message'],
63
+ 'error': json['error'] == null ? undefined : json['error'],
64
+ };
65
+ }
66
+
67
+ export function UpdateSettings400ResponseToJSON(value?: UpdateSettings400Response | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'statusCode': value['statusCode'],
74
+ 'message': value['message'],
75
+ 'error': value['error'],
76
+ };
77
+ }
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
  /**
17
17
  * Returned if you are not authorized to change the settings.
18
18
  * @export
@@ -43,11 +43,9 @@ export interface UpdateSettings401Response {
43
43
  * Check if a given object implements the UpdateSettings401Response interface.
44
44
  */
45
45
  export function instanceOfUpdateSettings401Response(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 UpdateSettings401ResponseFromJSON(json: any): UpdateSettings401Response {
@@ -55,29 +53,26 @@ export function UpdateSettings401ResponseFromJSON(json: any): UpdateSettings401R
55
53
  }
56
54
 
57
55
  export function UpdateSettings401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings401Response {
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 UpdateSettings401ResponseToJSON(value?: UpdateSettings401Response | 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