@randock/nameshift-api-client 0.0.18 → 0.0.20

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 (160) hide show
  1. package/.openapi-generator/FILES +4 -1
  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/DomainsPublicApi.d.ts +4 -12
  9. package/dist/apis/DomainsPublicApi.js +8 -50
  10. package/dist/apis/LeadsApi.js +18 -18
  11. package/dist/apis/LeadsPublicApi.js +3 -3
  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/DomainSalesInformationDto.d.ts +51 -0
  25. package/dist/models/DomainSalesInformationDto.js +61 -0
  26. package/dist/models/DomainSellerDto.d.ts +37 -0
  27. package/dist/models/DomainSellerDto.js +51 -0
  28. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
  29. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
  30. package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
  31. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
  32. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
  33. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
  34. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
  35. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
  36. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
  37. package/dist/models/LeadMessageData.js +7 -10
  38. package/dist/models/LeadMessageDto.js +25 -22
  39. package/dist/models/LeadMessageDtoData.js +7 -10
  40. package/dist/models/List200Response.js +13 -14
  41. package/dist/models/List400Response.js +12 -15
  42. package/dist/models/List401Response.js +12 -15
  43. package/dist/models/ListLeadMessagesDto.js +7 -10
  44. package/dist/models/Login401Response.js +12 -15
  45. package/dist/models/Login429Response.js +12 -15
  46. package/dist/models/LoginInput.js +10 -12
  47. package/dist/models/MoneyDto.js +10 -12
  48. package/dist/models/MoneyInput.js +10 -12
  49. package/dist/models/ObjectId.js +7 -10
  50. package/dist/models/PaginateResponse.js +13 -14
  51. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  52. package/dist/models/PaginateResponseLinks.js +14 -19
  53. package/dist/models/PaginateResponseMeta.js +18 -23
  54. package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.d.ts +43 -0
  55. package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.js +53 -0
  56. package/dist/models/PutLeadInput.js +7 -10
  57. package/dist/models/TokenDto.js +7 -10
  58. package/dist/models/UpdateDomainInput.d.ts +2 -2
  59. package/dist/models/UpdateDomainInput.js +8 -13
  60. package/dist/models/UpdateFinancial400Response.js +12 -15
  61. package/dist/models/UpdateSettings400Response.js +12 -15
  62. package/dist/models/UpdateSettings401Response.js +12 -15
  63. package/dist/models/UpdateSettings429Response.js +12 -15
  64. package/dist/models/WithFinancialDtoInner.js +16 -16
  65. package/dist/models/WithSettingsInner.js +7 -10
  66. package/dist/models/index.d.ts +3 -1
  67. package/dist/models/index.js +3 -1
  68. package/dist/runtime.d.ts +2 -3
  69. package/dist/runtime.js +1 -6
  70. package/package.json +1 -1
  71. package/src/apis/AccountsApi.ts +36 -18
  72. package/src/apis/AuthApi.ts +6 -3
  73. package/src/apis/DomainsApi.ts +49 -31
  74. package/src/apis/DomainsPublicApi.ts +17 -46
  75. package/src/apis/LeadsApi.ts +36 -18
  76. package/src/apis/LeadsPublicApi.ts +6 -3
  77. package/src/models/AccountAddressDto.ts +17 -22
  78. package/src/models/AccountAddressInput.ts +17 -22
  79. package/src/models/AccountDto.ts +9 -14
  80. package/src/models/AccountFinancialInput.ts +13 -18
  81. package/src/models/AccountSettingsInput.ts +7 -12
  82. package/src/models/BatchUpdate404Response.ts +11 -16
  83. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  84. package/src/models/CreateLeadInput.ts +17 -22
  85. package/src/models/CreateLeadMessageInput.ts +7 -12
  86. package/src/models/DeleteDomainsInput.ts +7 -12
  87. package/src/models/DomainDto.ts +21 -26
  88. package/src/models/DomainSalesInformationDto.ts +101 -0
  89. package/src/models/DomainSellerDto.ts +70 -0
  90. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  91. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  92. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  93. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  94. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  95. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  96. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  97. package/src/models/LeadMessageData.ts +7 -12
  98. package/src/models/LeadMessageDto.ts +19 -24
  99. package/src/models/LeadMessageDtoData.ts +7 -12
  100. package/src/models/List200Response.ts +11 -16
  101. package/src/models/List400Response.ts +11 -16
  102. package/src/models/List401Response.ts +11 -16
  103. package/src/models/ListLeadMessagesDto.ts +7 -12
  104. package/src/models/Login401Response.ts +11 -16
  105. package/src/models/Login429Response.ts +11 -16
  106. package/src/models/LoginInput.ts +9 -14
  107. package/src/models/MoneyDto.ts +9 -14
  108. package/src/models/MoneyInput.ts +9 -14
  109. package/src/models/ObjectId.ts +7 -12
  110. package/src/models/PaginateResponse.ts +11 -16
  111. package/src/models/PaginateResponseLinks.ts +20 -25
  112. package/src/models/PaginateResponseMeta.ts +19 -24
  113. package/src/models/PublicDomainControllerGetDomainSalesInformation404Response.ts +78 -0
  114. package/src/models/PutLeadInput.ts +7 -12
  115. package/src/models/TokenDto.ts +7 -12
  116. package/src/models/UpdateDomainInput.ts +11 -16
  117. package/src/models/UpdateFinancial400Response.ts +11 -16
  118. package/src/models/UpdateSettings400Response.ts +11 -16
  119. package/src/models/UpdateSettings401Response.ts +11 -16
  120. package/src/models/UpdateSettings429Response.ts +11 -16
  121. package/src/models/WithFinancialDtoInner.ts +13 -18
  122. package/src/models/WithSettingsInner.ts +7 -12
  123. package/src/models/index.ts +3 -1
  124. package/src/runtime.ts +3 -8
  125. package/dist/apis/TestApi.d.ts +0 -23
  126. package/dist/apis/TestApi.js +0 -116
  127. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  128. package/dist/models/CreateLeadMessageInputData.js +0 -51
  129. package/dist/models/ImportDomainsDto.d.ts +0 -49
  130. package/dist/models/ImportDomainsDto.js +0 -59
  131. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  132. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  133. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  134. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  135. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  136. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  137. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  138. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  139. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  140. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  141. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  142. package/dist/models/IntersectionLeadDto.js +0 -64
  143. package/dist/models/LeadDto.d.ts +0 -74
  144. package/dist/models/LeadDto.js +0 -79
  145. package/dist/models/List429Response.d.ts +0 -43
  146. package/dist/models/List429Response.js +0 -56
  147. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  148. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  149. package/src/apis/TestApi.ts +0 -46
  150. package/src/models/CreateLeadMessageInputData.ts +0 -73
  151. package/src/models/ImportDomainsDto.ts +0 -93
  152. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  153. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  154. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  155. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  156. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  157. package/src/models/IntersectionLeadDto.ts +0 -96
  158. package/src/models/LeadDto.ts +0 -131
  159. package/src/models/List429Response.ts +0 -83
  160. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
@@ -1,72 +0,0 @@
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
-
@@ -1,96 +0,0 @@
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 IntersectionLeadDto
20
- */
21
- export interface IntersectionLeadDto {
22
- /**
23
- * The current id
24
- * @type {string}
25
- * @memberof IntersectionLeadDto
26
- */
27
- id: string;
28
- /**
29
- * The current lead status
30
- * @type {string}
31
- * @memberof IntersectionLeadDto
32
- */
33
- status: IntersectionLeadDtoStatusEnum;
34
- /**
35
- * Created at date
36
- * @type {Date}
37
- * @memberof IntersectionLeadDto
38
- */
39
- createdAt: Date;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const IntersectionLeadDtoStatusEnum = {
47
- ACTIVE: 'active',
48
- DELETED: 'deleted',
49
- ARCHIVED: 'archived'
50
- } as const;
51
- export type IntersectionLeadDtoStatusEnum = typeof IntersectionLeadDtoStatusEnum[keyof typeof IntersectionLeadDtoStatusEnum];
52
-
53
-
54
- /**
55
- * Check if a given object implements the IntersectionLeadDto interface.
56
- */
57
- export function instanceOfIntersectionLeadDto(value: object): boolean {
58
- let isInstance = true;
59
- isInstance = isInstance && "id" in value;
60
- isInstance = isInstance && "status" in value;
61
- isInstance = isInstance && "createdAt" in value;
62
-
63
- return isInstance;
64
- }
65
-
66
- export function IntersectionLeadDtoFromJSON(json: any): IntersectionLeadDto {
67
- return IntersectionLeadDtoFromJSONTyped(json, false);
68
- }
69
-
70
- export function IntersectionLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDto {
71
- if ((json === undefined) || (json === null)) {
72
- return json;
73
- }
74
- return {
75
-
76
- 'id': json['id'],
77
- 'status': json['status'],
78
- 'createdAt': (new Date(json['createdAt'])),
79
- };
80
- }
81
-
82
- export function IntersectionLeadDtoToJSON(value?: IntersectionLeadDto | null): any {
83
- if (value === undefined) {
84
- return undefined;
85
- }
86
- if (value === null) {
87
- return null;
88
- }
89
- return {
90
-
91
- 'id': value.id,
92
- 'status': value.status,
93
- 'createdAt': (value.createdAt.toISOString()),
94
- };
95
- }
96
-
@@ -1,131 +0,0 @@
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 { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
17
- import {
18
- IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
19
- IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
20
- IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
21
- } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface LeadDto
27
- */
28
- export interface LeadDto {
29
- /**
30
- * The current id
31
- * @type {string}
32
- * @memberof LeadDto
33
- */
34
- id: string;
35
- /**
36
- * The current lead status
37
- * @type {string}
38
- * @memberof LeadDto
39
- */
40
- status: LeadDtoStatusEnum;
41
- /**
42
- *
43
- * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
44
- * @memberof LeadDto
45
- */
46
- lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof LeadDto
51
- */
52
- lastOfferBy: LeadDtoLastOfferByEnum | null;
53
- /**
54
- * Created at date
55
- * @type {Date}
56
- * @memberof LeadDto
57
- */
58
- createdAt: Date;
59
- }
60
-
61
-
62
- /**
63
- * @export
64
- */
65
- export const LeadDtoStatusEnum = {
66
- ACTIVE: 'active',
67
- DELETED: 'deleted',
68
- ARCHIVED: 'archived'
69
- } as const;
70
- export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
71
-
72
- /**
73
- * @export
74
- */
75
- export const LeadDtoLastOfferByEnum = {
76
- BUYER: 'buyer',
77
- SELLER: 'seller',
78
- ADMIN: 'admin'
79
- } as const;
80
- export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
81
-
82
-
83
- /**
84
- * Check if a given object implements the LeadDto interface.
85
- */
86
- export function instanceOfLeadDto(value: object): boolean {
87
- let isInstance = true;
88
- isInstance = isInstance && "id" in value;
89
- isInstance = isInstance && "status" in value;
90
- isInstance = isInstance && "lastOffer" in value;
91
- isInstance = isInstance && "lastOfferBy" in value;
92
- isInstance = isInstance && "createdAt" in value;
93
-
94
- return isInstance;
95
- }
96
-
97
- export function LeadDtoFromJSON(json: any): LeadDto {
98
- return LeadDtoFromJSONTyped(json, false);
99
- }
100
-
101
- export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto {
102
- if ((json === undefined) || (json === null)) {
103
- return json;
104
- }
105
- return {
106
-
107
- 'id': json['id'],
108
- 'status': json['status'],
109
- 'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['lastOffer']),
110
- 'lastOfferBy': json['lastOfferBy'],
111
- 'createdAt': (new Date(json['createdAt'])),
112
- };
113
- }
114
-
115
- export function LeadDtoToJSON(value?: LeadDto | null): any {
116
- if (value === undefined) {
117
- return undefined;
118
- }
119
- if (value === null) {
120
- return null;
121
- }
122
- return {
123
-
124
- 'id': value.id,
125
- 'status': value.status,
126
- 'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value.lastOffer),
127
- 'lastOfferBy': value.lastOfferBy,
128
- 'createdAt': (value.createdAt.toISOString()),
129
- };
130
- }
131
-
@@ -1,83 +0,0 @@
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
- * Returned if more than 300 requests are made per minute.
18
- * @export
19
- * @interface List429Response
20
- */
21
- export interface List429Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof List429Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof List429Response
32
- */
33
- message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof List429Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the List429Response interface.
44
- */
45
- export function instanceOfList429Response(value: object): boolean {
46
- let isInstance = true;
47
- isInstance = isInstance && "statusCode" in value;
48
- isInstance = isInstance && "message" in value;
49
-
50
- return isInstance;
51
- }
52
-
53
- export function List429ResponseFromJSON(json: any): List429Response {
54
- return List429ResponseFromJSONTyped(json, false);
55
- }
56
-
57
- export function List429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List429Response {
58
- if ((json === undefined) || (json === null)) {
59
- return json;
60
- }
61
- return {
62
-
63
- 'statusCode': json['statusCode'],
64
- 'message': json['message'],
65
- 'error': !exists(json, 'error') ? undefined : json['error'],
66
- };
67
- }
68
-
69
- export function List429ResponseToJSON(value?: List429Response | null): any {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
75
- }
76
- return {
77
-
78
- 'statusCode': value.statusCode,
79
- 'message': value.message,
80
- 'error': value.error,
81
- };
82
- }
83
-
@@ -1,83 +0,0 @@
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
- * Thrown if domain is not found.
18
- * @export
19
- * @interface PublicDomainControllerGetDomainIdentifier404Response
20
- */
21
- export interface PublicDomainControllerGetDomainIdentifier404Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof PublicDomainControllerGetDomainIdentifier404Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof PublicDomainControllerGetDomainIdentifier404Response
32
- */
33
- message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof PublicDomainControllerGetDomainIdentifier404Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the PublicDomainControllerGetDomainIdentifier404Response interface.
44
- */
45
- export function instanceOfPublicDomainControllerGetDomainIdentifier404Response(value: object): boolean {
46
- let isInstance = true;
47
- isInstance = isInstance && "statusCode" in value;
48
- isInstance = isInstance && "message" in value;
49
-
50
- return isInstance;
51
- }
52
-
53
- export function PublicDomainControllerGetDomainIdentifier404ResponseFromJSON(json: any): PublicDomainControllerGetDomainIdentifier404Response {
54
- return PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped(json, false);
55
- }
56
-
57
- export function PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainControllerGetDomainIdentifier404Response {
58
- if ((json === undefined) || (json === null)) {
59
- return json;
60
- }
61
- return {
62
-
63
- 'statusCode': json['statusCode'],
64
- 'message': json['message'],
65
- 'error': !exists(json, 'error') ? undefined : json['error'],
66
- };
67
- }
68
-
69
- export function PublicDomainControllerGetDomainIdentifier404ResponseToJSON(value?: PublicDomainControllerGetDomainIdentifier404Response | null): any {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
75
- }
76
- return {
77
-
78
- 'statusCode': value.statusCode,
79
- 'message': value.message,
80
- 'error': value.error,
81
- };
82
- }
83
-