@randock/nameshift-api-client 0.0.30 → 0.0.32

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 (72) hide show
  1. package/.openapi-generator/FILES +9 -11
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsPublicApi.d.ts +40 -0
  4. package/dist/apis/{AuthApi.js → AccountsPublicApi.js} +53 -9
  5. package/dist/apis/DomainsPublicApi.d.ts +9 -0
  6. package/dist/apis/DomainsPublicApi.js +40 -0
  7. package/dist/apis/index.d.ts +1 -1
  8. package/dist/apis/index.js +1 -1
  9. package/dist/models/ConflictException.d.ts +49 -0
  10. package/dist/models/ConflictException.js +59 -0
  11. package/dist/models/HttpException.d.ts +43 -0
  12. package/dist/models/{List401Response.js → HttpException.js} +15 -13
  13. package/dist/models/NotFoundException.d.ts +43 -0
  14. package/dist/models/NotFoundException.js +55 -0
  15. package/dist/models/RegisterAccountInput.d.ts +49 -0
  16. package/dist/models/RegisterAccountInput.js +59 -0
  17. package/dist/models/ThrottlerException.d.ts +43 -0
  18. package/dist/models/ThrottlerException.js +55 -0
  19. package/dist/models/UnauthorizedException.d.ts +43 -0
  20. package/dist/models/UnauthorizedException.js +55 -0
  21. package/dist/models/ValidationError.d.ts +43 -0
  22. package/dist/models/ValidationError.js +55 -0
  23. package/dist/models/ValidationException.d.ts +44 -0
  24. package/dist/models/ValidationException.js +56 -0
  25. package/dist/models/index.d.ts +8 -10
  26. package/dist/models/index.js +8 -10
  27. package/package.json +1 -1
  28. package/src/apis/AccountsApi.ts +9 -12
  29. package/src/apis/AccountsPublicApi.ts +127 -0
  30. package/src/apis/AdminApi.ts +6 -6
  31. package/src/apis/DashboardApi.ts +6 -6
  32. package/src/apis/DomainsApi.ts +12 -12
  33. package/src/apis/DomainsPublicApi.ts +43 -6
  34. package/src/apis/LeadsApi.ts +6 -6
  35. package/src/apis/LeadsPublicApi.ts +9 -9
  36. package/src/apis/index.ts +1 -1
  37. package/src/models/ConflictException.ts +88 -0
  38. package/src/models/{List401Response.ts → HttpException.ts} +22 -21
  39. package/src/models/{Login429Response.ts → NotFoundException.ts} +22 -21
  40. package/src/models/RegisterAccountInput.ts +88 -0
  41. package/src/models/{Login401Response.ts → ThrottlerException.ts} +22 -21
  42. package/src/models/{BatchUpdate404Response.ts → UnauthorizedException.ts} +21 -20
  43. package/src/models/ValidationError.ts +79 -0
  44. package/src/models/ValidationException.ts +86 -0
  45. package/src/models/index.ts +8 -10
  46. package/dist/apis/AuthApi.d.ts +0 -29
  47. package/dist/models/BatchUpdate404Response.d.ts +0 -43
  48. package/dist/models/BatchUpdate404Response.js +0 -53
  49. package/dist/models/GetDomainSalesInformation404Response.d.ts +0 -43
  50. package/dist/models/GetDomainSalesInformation404Response.js +0 -53
  51. package/dist/models/List400Response.d.ts +0 -43
  52. package/dist/models/List400Response.js +0 -53
  53. package/dist/models/List401Response.d.ts +0 -43
  54. package/dist/models/ListAccounts400Response.d.ts +0 -43
  55. package/dist/models/ListAccounts400Response.js +0 -53
  56. package/dist/models/ListAccounts429Response.d.ts +0 -43
  57. package/dist/models/ListAccounts429Response.js +0 -53
  58. package/dist/models/Login401Response.d.ts +0 -43
  59. package/dist/models/Login401Response.js +0 -53
  60. package/dist/models/Login429Response.d.ts +0 -43
  61. package/dist/models/Login429Response.js +0 -53
  62. package/dist/models/UpdateSettings400Response.d.ts +0 -43
  63. package/dist/models/UpdateSettings400Response.js +0 -53
  64. package/dist/models/UpdateSettings401Response.d.ts +0 -43
  65. package/dist/models/UpdateSettings401Response.js +0 -53
  66. package/src/apis/AuthApi.ts +0 -79
  67. package/src/models/GetDomainSalesInformation404Response.ts +0 -78
  68. package/src/models/List400Response.ts +0 -78
  69. package/src/models/ListAccounts400Response.ts +0 -78
  70. package/src/models/ListAccounts429Response.ts +0 -78
  71. package/src/models/UpdateSettings400Response.ts +0 -78
  72. package/src/models/UpdateSettings401Response.ts +0 -78
@@ -0,0 +1,127 @@
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
+ ConflictException,
19
+ LoginInput,
20
+ RegisterAccountInput,
21
+ ThrottlerException,
22
+ TokenDto,
23
+ UnauthorizedException,
24
+ ValidationException,
25
+ } from '../models/index';
26
+ import {
27
+ ConflictExceptionFromJSON,
28
+ ConflictExceptionToJSON,
29
+ LoginInputFromJSON,
30
+ LoginInputToJSON,
31
+ RegisterAccountInputFromJSON,
32
+ RegisterAccountInputToJSON,
33
+ ThrottlerExceptionFromJSON,
34
+ ThrottlerExceptionToJSON,
35
+ TokenDtoFromJSON,
36
+ TokenDtoToJSON,
37
+ UnauthorizedExceptionFromJSON,
38
+ UnauthorizedExceptionToJSON,
39
+ ValidationExceptionFromJSON,
40
+ ValidationExceptionToJSON,
41
+ } from '../models/index';
42
+
43
+ export interface AccountsPublicApiLoginRequest {
44
+ loginInput: LoginInput;
45
+ }
46
+
47
+ export interface AccountsPublicApiRegisterRequest {
48
+ registerAccountInput: RegisterAccountInput;
49
+ }
50
+
51
+ /**
52
+ *
53
+ */
54
+ export class AccountsPublicApi extends runtime.BaseAPI {
55
+
56
+ /**
57
+ *
58
+ */
59
+ async loginRaw(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
60
+ if (requestParameters['loginInput'] == null) {
61
+ throw new runtime.RequiredError(
62
+ 'loginInput',
63
+ 'Required parameter "loginInput" was null or undefined when calling login().'
64
+ );
65
+ }
66
+
67
+ const queryParameters: any = {};
68
+
69
+ const headerParameters: runtime.HTTPHeaders = {};
70
+
71
+ headerParameters['Content-Type'] = 'application/json';
72
+
73
+ const response = await this.request({
74
+ path: `/accounts/login`,
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: LoginInputToJSON(requestParameters['loginInput']),
79
+ }, initOverrides);
80
+
81
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenDtoFromJSON(jsonValue));
82
+ }
83
+
84
+ /**
85
+ *
86
+ */
87
+ async login(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto> {
88
+ const response = await this.loginRaw(requestParameters, initOverrides);
89
+ return await response.value();
90
+ }
91
+
92
+ /**
93
+ *
94
+ */
95
+ async registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
96
+ if (requestParameters['registerAccountInput'] == null) {
97
+ throw new runtime.RequiredError(
98
+ 'registerAccountInput',
99
+ 'Required parameter "registerAccountInput" was null or undefined when calling register().'
100
+ );
101
+ }
102
+
103
+ const queryParameters: any = {};
104
+
105
+ const headerParameters: runtime.HTTPHeaders = {};
106
+
107
+ headerParameters['Content-Type'] = 'application/json';
108
+
109
+ const response = await this.request({
110
+ path: `/accounts/register`,
111
+ method: 'POST',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ body: RegisterAccountInputToJSON(requestParameters['registerAccountInput']),
115
+ }, initOverrides);
116
+
117
+ return new runtime.VoidApiResponse(response);
118
+ }
119
+
120
+ /**
121
+ *
122
+ */
123
+ async register(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
124
+ await this.registerRaw(requestParameters, initOverrides);
125
+ }
126
+
127
+ }
@@ -16,19 +16,19 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ListAccounts200Response,
19
- ListAccounts400Response,
20
- ListAccounts429Response,
21
19
  ListTransfers200Response,
20
+ ThrottlerException,
21
+ ValidationException,
22
22
  } from '../models/index';
23
23
  import {
24
24
  ListAccounts200ResponseFromJSON,
25
25
  ListAccounts200ResponseToJSON,
26
- ListAccounts400ResponseFromJSON,
27
- ListAccounts400ResponseToJSON,
28
- ListAccounts429ResponseFromJSON,
29
- ListAccounts429ResponseToJSON,
30
26
  ListTransfers200ResponseFromJSON,
31
27
  ListTransfers200ResponseToJSON,
28
+ ThrottlerExceptionFromJSON,
29
+ ThrottlerExceptionToJSON,
30
+ ValidationExceptionFromJSON,
31
+ ValidationExceptionToJSON,
32
32
  } from '../models/index';
33
33
 
34
34
  export interface AdminApiListAccountsRequest {
@@ -16,16 +16,16 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  DashboardStatsDto,
19
- ListAccounts400Response,
20
- ListAccounts429Response,
19
+ ThrottlerException,
20
+ ValidationException,
21
21
  } from '../models/index';
22
22
  import {
23
23
  DashboardStatsDtoFromJSON,
24
24
  DashboardStatsDtoToJSON,
25
- ListAccounts400ResponseFromJSON,
26
- ListAccounts400ResponseToJSON,
27
- ListAccounts429ResponseFromJSON,
28
- ListAccounts429ResponseToJSON,
25
+ ThrottlerExceptionFromJSON,
26
+ ThrottlerExceptionToJSON,
27
+ ValidationExceptionFromJSON,
28
+ ValidationExceptionToJSON,
29
29
  } from '../models/index';
30
30
 
31
31
  /**
@@ -15,20 +15,18 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- BatchUpdate404Response,
19
18
  BatchUpdateDomainsInput,
20
19
  DeleteDomainsInput,
21
20
  DomainDto,
22
21
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
23
22
  List200Response,
24
- List400Response,
25
- List401Response,
26
- ListAccounts429Response,
23
+ NotFoundException,
24
+ ThrottlerException,
25
+ UnauthorizedException,
27
26
  UpdateDomainInput,
27
+ ValidationException,
28
28
  } from '../models/index';
29
29
  import {
30
- BatchUpdate404ResponseFromJSON,
31
- BatchUpdate404ResponseToJSON,
32
30
  BatchUpdateDomainsInputFromJSON,
33
31
  BatchUpdateDomainsInputToJSON,
34
32
  DeleteDomainsInputFromJSON,
@@ -39,14 +37,16 @@ import {
39
37
  IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
40
38
  List200ResponseFromJSON,
41
39
  List200ResponseToJSON,
42
- List400ResponseFromJSON,
43
- List400ResponseToJSON,
44
- List401ResponseFromJSON,
45
- List401ResponseToJSON,
46
- ListAccounts429ResponseFromJSON,
47
- ListAccounts429ResponseToJSON,
40
+ NotFoundExceptionFromJSON,
41
+ NotFoundExceptionToJSON,
42
+ ThrottlerExceptionFromJSON,
43
+ ThrottlerExceptionToJSON,
44
+ UnauthorizedExceptionFromJSON,
45
+ UnauthorizedExceptionToJSON,
48
46
  UpdateDomainInputFromJSON,
49
47
  UpdateDomainInputToJSON,
48
+ ValidationExceptionFromJSON,
49
+ ValidationExceptionToJSON,
50
50
  } from '../models/index';
51
51
 
52
52
  export interface DomainsApiBatchImportRequest {
@@ -17,21 +17,24 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  BuyDomainInput,
19
19
  DomainSalesInformationDto,
20
- GetDomainSalesInformation404Response,
21
- List400Response,
20
+ NotFoundException,
22
21
  ObjectId,
22
+ ThrottlerException,
23
+ ValidationException,
23
24
  } from '../models/index';
24
25
  import {
25
26
  BuyDomainInputFromJSON,
26
27
  BuyDomainInputToJSON,
27
28
  DomainSalesInformationDtoFromJSON,
28
29
  DomainSalesInformationDtoToJSON,
29
- GetDomainSalesInformation404ResponseFromJSON,
30
- GetDomainSalesInformation404ResponseToJSON,
31
- List400ResponseFromJSON,
32
- List400ResponseToJSON,
30
+ NotFoundExceptionFromJSON,
31
+ NotFoundExceptionToJSON,
33
32
  ObjectIdFromJSON,
34
33
  ObjectIdToJSON,
34
+ ThrottlerExceptionFromJSON,
35
+ ThrottlerExceptionToJSON,
36
+ ValidationExceptionFromJSON,
37
+ ValidationExceptionToJSON,
35
38
  } from '../models/index';
36
39
 
37
40
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
@@ -43,6 +46,10 @@ export interface DomainsPublicApiPostDomainByNameBuyRequest {
43
46
  buyDomainInput: BuyDomainInput;
44
47
  }
45
48
 
49
+ export interface DomainsPublicApiPublicDomainControllerPostDomainTransferRequest {
50
+ domainId: string;
51
+ }
52
+
46
53
  /**
47
54
  *
48
55
  */
@@ -124,4 +131,34 @@ export class DomainsPublicApi extends runtime.BaseAPI {
124
131
  return await response.value();
125
132
  }
126
133
 
134
+ /**
135
+ */
136
+ async publicDomainControllerPostDomainTransferRaw(requestParameters: DomainsPublicApiPublicDomainControllerPostDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
137
+ if (requestParameters['domainId'] == null) {
138
+ throw new runtime.RequiredError(
139
+ 'domainId',
140
+ 'Required parameter "domainId" was null or undefined when calling publicDomainControllerPostDomainTransfer().'
141
+ );
142
+ }
143
+
144
+ const queryParameters: any = {};
145
+
146
+ const headerParameters: runtime.HTTPHeaders = {};
147
+
148
+ const response = await this.request({
149
+ path: `/domains/{domainId}/transfer`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
150
+ method: 'POST',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides);
154
+
155
+ return new runtime.VoidApiResponse(response);
156
+ }
157
+
158
+ /**
159
+ */
160
+ async publicDomainControllerPostDomainTransfer(requestParameters: DomainsPublicApiPublicDomainControllerPostDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
161
+ await this.publicDomainControllerPostDomainTransferRaw(requestParameters, initOverrides);
162
+ }
163
+
127
164
  }
@@ -18,11 +18,11 @@ import type {
18
18
  CreateLeadMessageInput,
19
19
  IntersectionLeadDtoWithLeadDetailsDto,
20
20
  IntersectionLeadDtoWithListFieldsDto,
21
- ListAccounts400Response,
22
- ListAccounts429Response,
23
21
  ListLeadMessagesDto,
24
22
  ObjectId,
25
23
  PutLeadInput,
24
+ ThrottlerException,
25
+ ValidationException,
26
26
  } from '../models/index';
27
27
  import {
28
28
  CreateLeadMessageInputFromJSON,
@@ -31,16 +31,16 @@ import {
31
31
  IntersectionLeadDtoWithLeadDetailsDtoToJSON,
32
32
  IntersectionLeadDtoWithListFieldsDtoFromJSON,
33
33
  IntersectionLeadDtoWithListFieldsDtoToJSON,
34
- ListAccounts400ResponseFromJSON,
35
- ListAccounts400ResponseToJSON,
36
- ListAccounts429ResponseFromJSON,
37
- ListAccounts429ResponseToJSON,
38
34
  ListLeadMessagesDtoFromJSON,
39
35
  ListLeadMessagesDtoToJSON,
40
36
  ObjectIdFromJSON,
41
37
  ObjectIdToJSON,
42
38
  PutLeadInputFromJSON,
43
39
  PutLeadInputToJSON,
40
+ ThrottlerExceptionFromJSON,
41
+ ThrottlerExceptionToJSON,
42
+ ValidationExceptionFromJSON,
43
+ ValidationExceptionToJSON,
44
44
  } from '../models/index';
45
45
 
46
46
  export interface LeadsApiCreateMessageRequest {
@@ -15,27 +15,27 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- BatchUpdate404Response,
19
18
  CreateLeadInput,
20
19
  LeadStatusDto,
21
- ListAccounts400Response,
22
- ListAccounts429Response,
20
+ NotFoundException,
23
21
  ObjectId,
22
+ ThrottlerException,
23
+ ValidationException,
24
24
  VerifyLeadInput,
25
25
  } from '../models/index';
26
26
  import {
27
- BatchUpdate404ResponseFromJSON,
28
- BatchUpdate404ResponseToJSON,
29
27
  CreateLeadInputFromJSON,
30
28
  CreateLeadInputToJSON,
31
29
  LeadStatusDtoFromJSON,
32
30
  LeadStatusDtoToJSON,
33
- ListAccounts400ResponseFromJSON,
34
- ListAccounts400ResponseToJSON,
35
- ListAccounts429ResponseFromJSON,
36
- ListAccounts429ResponseToJSON,
31
+ NotFoundExceptionFromJSON,
32
+ NotFoundExceptionToJSON,
37
33
  ObjectIdFromJSON,
38
34
  ObjectIdToJSON,
35
+ ThrottlerExceptionFromJSON,
36
+ ThrottlerExceptionToJSON,
37
+ ValidationExceptionFromJSON,
38
+ ValidationExceptionToJSON,
39
39
  VerifyLeadInputFromJSON,
40
40
  VerifyLeadInputToJSON,
41
41
  } from '../models/index';
package/src/apis/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccountsApi';
4
+ export * from './AccountsPublicApi';
4
5
  export * from './AdminApi';
5
- export * from './AuthApi';
6
6
  export * from './DashboardApi';
7
7
  export * from './DomainsApi';
8
8
  export * from './DomainsPublicApi';
@@ -0,0 +1,88 @@
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
+ *
18
+ * @export
19
+ * @interface ConflictException
20
+ */
21
+ export interface ConflictException {
22
+ /**
23
+ * Exception name
24
+ * @type {string}
25
+ * @memberof ConflictException
26
+ */
27
+ name: string;
28
+ /**
29
+ * http status code
30
+ * @type {number}
31
+ * @memberof ConflictException
32
+ */
33
+ statusCode: number;
34
+ /**
35
+ * error message
36
+ * @type {string}
37
+ * @memberof ConflictException
38
+ */
39
+ message: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ConflictException
44
+ */
45
+ code: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ConflictException interface.
50
+ */
51
+ export function instanceOfConflictException(value: object): boolean {
52
+ if (!('name' in value)) return false;
53
+ if (!('statusCode' in value)) return false;
54
+ if (!('message' in value)) return false;
55
+ if (!('code' in value)) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ConflictExceptionFromJSON(json: any): ConflictException {
60
+ return ConflictExceptionFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ConflictExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConflictException {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'name': json['name'],
70
+ 'statusCode': json['statusCode'],
71
+ 'message': json['message'],
72
+ 'code': json['code'],
73
+ };
74
+ }
75
+
76
+ export function ConflictExceptionToJSON(value?: ConflictException | null): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+
82
+ 'name': value['name'],
83
+ 'statusCode': value['statusCode'],
84
+ 'message': value['message'],
85
+ 'code': value['code'],
86
+ };
87
+ }
88
+
@@ -14,65 +14,66 @@
14
14
 
15
15
  import { mapValues } from '../runtime';
16
16
  /**
17
- * Returned if invalid authentication provided.
17
+ *
18
18
  * @export
19
- * @interface List401Response
19
+ * @interface HttpException
20
20
  */
21
- export interface List401Response {
21
+ export interface HttpException {
22
+ /**
23
+ * Exception name
24
+ * @type {string}
25
+ * @memberof HttpException
26
+ */
27
+ name: string;
22
28
  /**
23
- *
29
+ * http status code
24
30
  * @type {number}
25
- * @memberof List401Response
31
+ * @memberof HttpException
26
32
  */
27
33
  statusCode: number;
28
34
  /**
29
- *
35
+ * error message
30
36
  * @type {string}
31
- * @memberof List401Response
37
+ * @memberof HttpException
32
38
  */
33
39
  message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof List401Response
38
- */
39
- error?: string;
40
40
  }
41
41
 
42
42
  /**
43
- * Check if a given object implements the List401Response interface.
43
+ * Check if a given object implements the HttpException interface.
44
44
  */
45
- export function instanceOfList401Response(value: object): boolean {
45
+ export function instanceOfHttpException(value: object): boolean {
46
+ if (!('name' in value)) return false;
46
47
  if (!('statusCode' in value)) return false;
47
48
  if (!('message' in value)) return false;
48
49
  return true;
49
50
  }
50
51
 
51
- export function List401ResponseFromJSON(json: any): List401Response {
52
- return List401ResponseFromJSONTyped(json, false);
52
+ export function HttpExceptionFromJSON(json: any): HttpException {
53
+ return HttpExceptionFromJSONTyped(json, false);
53
54
  }
54
55
 
55
- export function List401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List401Response {
56
+ export function HttpExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpException {
56
57
  if (json == null) {
57
58
  return json;
58
59
  }
59
60
  return {
60
61
 
62
+ 'name': json['name'],
61
63
  'statusCode': json['statusCode'],
62
64
  'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
65
  };
65
66
  }
66
67
 
67
- export function List401ResponseToJSON(value?: List401Response | null): any {
68
+ export function HttpExceptionToJSON(value?: HttpException | null): any {
68
69
  if (value == null) {
69
70
  return value;
70
71
  }
71
72
  return {
72
73
 
74
+ 'name': value['name'],
73
75
  'statusCode': value['statusCode'],
74
76
  'message': value['message'],
75
- 'error': value['error'],
76
77
  };
77
78
  }
78
79
 
@@ -14,65 +14,66 @@
14
14
 
15
15
  import { mapValues } from '../runtime';
16
16
  /**
17
- * Returned if more than 5 requests are made per minute.
17
+ *
18
18
  * @export
19
- * @interface Login429Response
19
+ * @interface NotFoundException
20
20
  */
21
- export interface Login429Response {
21
+ export interface NotFoundException {
22
+ /**
23
+ * Exception name
24
+ * @type {string}
25
+ * @memberof NotFoundException
26
+ */
27
+ name: string;
22
28
  /**
23
- *
29
+ * http status code
24
30
  * @type {number}
25
- * @memberof Login429Response
31
+ * @memberof NotFoundException
26
32
  */
27
33
  statusCode: number;
28
34
  /**
29
- *
35
+ * error message
30
36
  * @type {string}
31
- * @memberof Login429Response
37
+ * @memberof NotFoundException
32
38
  */
33
39
  message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof Login429Response
38
- */
39
- error?: string;
40
40
  }
41
41
 
42
42
  /**
43
- * Check if a given object implements the Login429Response interface.
43
+ * Check if a given object implements the NotFoundException interface.
44
44
  */
45
- export function instanceOfLogin429Response(value: object): boolean {
45
+ export function instanceOfNotFoundException(value: object): boolean {
46
+ if (!('name' in value)) return false;
46
47
  if (!('statusCode' in value)) return false;
47
48
  if (!('message' in value)) return false;
48
49
  return true;
49
50
  }
50
51
 
51
- export function Login429ResponseFromJSON(json: any): Login429Response {
52
- return Login429ResponseFromJSONTyped(json, false);
52
+ export function NotFoundExceptionFromJSON(json: any): NotFoundException {
53
+ return NotFoundExceptionFromJSONTyped(json, false);
53
54
  }
54
55
 
55
- export function Login429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login429Response {
56
+ export function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException {
56
57
  if (json == null) {
57
58
  return json;
58
59
  }
59
60
  return {
60
61
 
62
+ 'name': json['name'],
61
63
  'statusCode': json['statusCode'],
62
64
  'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
65
  };
65
66
  }
66
67
 
67
- export function Login429ResponseToJSON(value?: Login429Response | null): any {
68
+ export function NotFoundExceptionToJSON(value?: NotFoundException | null): any {
68
69
  if (value == null) {
69
70
  return value;
70
71
  }
71
72
  return {
72
73
 
74
+ 'name': value['name'],
73
75
  'statusCode': value['statusCode'],
74
76
  'message': value['message'],
75
- 'error': value['error'],
76
77
  };
77
78
  }
78
79