blanche-client-sdk 0.1.3 → 0.2.1

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 +20 -0
  2. package/README.md +14 -2
  3. package/dist/apis/TelegramLinksApi.d.ts +48 -0
  4. package/dist/apis/TelegramLinksApi.js +213 -0
  5. package/dist/apis/UsersApi.d.ts +3 -3
  6. package/dist/apis/UsersApi.js +1 -1
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ApiV1ProfileGet200Response.d.ts +18 -0
  10. package/dist/models/ApiV1ProfileGet200Response.js +12 -0
  11. package/dist/models/ApiV1TelegramLinksConsumePost200Response.d.ts +32 -0
  12. package/dist/models/ApiV1TelegramLinksConsumePost200Response.js +51 -0
  13. package/dist/models/ApiV1TelegramLinksConsumePost422Response.d.ts +34 -0
  14. package/dist/models/ApiV1TelegramLinksConsumePost422Response.js +51 -0
  15. package/dist/models/ApiV1TelegramLinksConsumePostRequest.d.ts +62 -0
  16. package/dist/models/ApiV1TelegramLinksConsumePostRequest.js +63 -0
  17. package/dist/models/ApiV1TelegramLinksPost201Response.d.ts +38 -0
  18. package/dist/models/ApiV1TelegramLinksPost201Response.js +55 -0
  19. package/dist/models/ApiV1TelegramLinksTokenGet200Response.d.ts +57 -0
  20. package/dist/models/ApiV1TelegramLinksTokenGet200Response.js +66 -0
  21. package/dist/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.d.ts +56 -0
  22. package/dist/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.js +57 -0
  23. package/dist/models/ApiV1TelegramLinksTokenGet404Response.d.ts +32 -0
  24. package/dist/models/ApiV1TelegramLinksTokenGet404Response.js +51 -0
  25. package/dist/models/ApiV1UsersIdPatch200Response.d.ts +12 -0
  26. package/dist/models/ApiV1UsersIdPatch200Response.js +8 -0
  27. package/dist/models/ApiV1UsersIdPatch422Response.d.ts +34 -0
  28. package/dist/models/ApiV1UsersIdPatch422Response.js +51 -0
  29. package/dist/models/ApiV1UsersIdPatchRequestUser.d.ts +12 -0
  30. package/dist/models/ApiV1UsersIdPatchRequestUser.js +4 -0
  31. package/dist/models/ApiV1UsersPost201Response.d.ts +56 -0
  32. package/dist/models/ApiV1UsersPost201Response.js +67 -0
  33. package/dist/models/ApiV1UsersPost422Response.d.ts +4 -2
  34. package/dist/models/ApiV1UsersPostRequestUser.d.ts +12 -0
  35. package/dist/models/ApiV1UsersPostRequestUser.js +8 -0
  36. package/dist/models/index.d.ts +9 -0
  37. package/dist/models/index.js +9 -0
  38. package/docs/ApiV1ProfileGet200Response.md +6 -0
  39. package/docs/ApiV1TelegramLinksConsumePost200Response.md +34 -0
  40. package/docs/ApiV1TelegramLinksConsumePost422Response.md +34 -0
  41. package/docs/ApiV1TelegramLinksConsumePostRequest.md +44 -0
  42. package/docs/ApiV1TelegramLinksPost201Response.md +36 -0
  43. package/docs/ApiV1TelegramLinksTokenGet200Response.md +42 -0
  44. package/docs/ApiV1TelegramLinksTokenGet200ResponseTelegram.md +42 -0
  45. package/docs/ApiV1TelegramLinksTokenGet404Response.md +34 -0
  46. package/docs/ApiV1UsersIdPatch200Response.md +4 -0
  47. package/docs/ApiV1UsersIdPatch422Response.md +34 -0
  48. package/docs/ApiV1UsersIdPatchRequestUser.md +4 -0
  49. package/docs/ApiV1UsersPost201Response.md +42 -0
  50. package/docs/ApiV1UsersPost422Response.md +2 -2
  51. package/docs/ApiV1UsersPostRequestUser.md +4 -0
  52. package/docs/TelegramLinksApi.md +201 -0
  53. package/docs/UsersApi.md +2 -2
  54. package/package.json +1 -1
  55. package/src/apis/TelegramLinksApi.ts +154 -0
  56. package/src/apis/UsersApi.ts +9 -3
  57. package/src/apis/index.ts +1 -0
  58. package/src/models/ApiV1ProfileGet200Response.ts +27 -0
  59. package/src/models/ApiV1TelegramLinksConsumePost200Response.ts +66 -0
  60. package/src/models/ApiV1TelegramLinksConsumePost422Response.ts +66 -0
  61. package/src/models/ApiV1TelegramLinksConsumePostRequest.ts +107 -0
  62. package/src/models/ApiV1TelegramLinksPost201Response.ts +75 -0
  63. package/src/models/ApiV1TelegramLinksTokenGet200Response.ts +109 -0
  64. package/src/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.ts +97 -0
  65. package/src/models/ApiV1TelegramLinksTokenGet404Response.ts +66 -0
  66. package/src/models/ApiV1UsersIdPatch200Response.ts +18 -0
  67. package/src/models/ApiV1UsersIdPatch422Response.ts +66 -0
  68. package/src/models/ApiV1UsersIdPatchRequestUser.ts +16 -0
  69. package/src/models/ApiV1UsersPost201Response.ts +102 -0
  70. package/src/models/ApiV1UsersPost422Response.ts +2 -2
  71. package/src/models/ApiV1UsersPostRequestUser.ts +18 -0
  72. package/src/models/index.ts +9 -0
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blanche API
5
+ * AI-powered life tracking system API
6
+ *
7
+ * The version of the OpenAPI document: v1
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 ApiV1TelegramLinksConsumePostRequest
20
+ */
21
+ export interface ApiV1TelegramLinksConsumePostRequest {
22
+ /**
23
+ * Telegram link token
24
+ * @type {string}
25
+ * @memberof ApiV1TelegramLinksConsumePostRequest
26
+ */
27
+ token: string;
28
+ /**
29
+ * Telegram user ID
30
+ * @type {number}
31
+ * @memberof ApiV1TelegramLinksConsumePostRequest
32
+ */
33
+ telegramId: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiV1TelegramLinksConsumePostRequest
38
+ */
39
+ username?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiV1TelegramLinksConsumePostRequest
44
+ */
45
+ firstName?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ApiV1TelegramLinksConsumePostRequest
50
+ */
51
+ lastName?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ApiV1TelegramLinksConsumePostRequest
56
+ */
57
+ languageCode?: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the ApiV1TelegramLinksConsumePostRequest interface.
62
+ */
63
+ export function instanceOfApiV1TelegramLinksConsumePostRequest(value: object): value is ApiV1TelegramLinksConsumePostRequest {
64
+ if (!('token' in value) || value['token'] === undefined) return false;
65
+ if (!('telegramId' in value) || value['telegramId'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function ApiV1TelegramLinksConsumePostRequestFromJSON(json: any): ApiV1TelegramLinksConsumePostRequest {
70
+ return ApiV1TelegramLinksConsumePostRequestFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function ApiV1TelegramLinksConsumePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksConsumePostRequest {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'token': json['token'],
80
+ 'telegramId': json['telegram_id'],
81
+ 'username': json['username'] == null ? undefined : json['username'],
82
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
83
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
84
+ 'languageCode': json['language_code'] == null ? undefined : json['language_code'],
85
+ };
86
+ }
87
+
88
+ export function ApiV1TelegramLinksConsumePostRequestToJSON(json: any): ApiV1TelegramLinksConsumePostRequest {
89
+ return ApiV1TelegramLinksConsumePostRequestToJSONTyped(json, false);
90
+ }
91
+
92
+ export function ApiV1TelegramLinksConsumePostRequestToJSONTyped(value?: ApiV1TelegramLinksConsumePostRequest | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'token': value['token'],
100
+ 'telegram_id': value['telegramId'],
101
+ 'username': value['username'],
102
+ 'first_name': value['firstName'],
103
+ 'last_name': value['lastName'],
104
+ 'language_code': value['languageCode'],
105
+ };
106
+ }
107
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blanche API
5
+ * AI-powered life tracking system API
6
+ *
7
+ * The version of the OpenAPI document: v1
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 ApiV1TelegramLinksPost201Response
20
+ */
21
+ export interface ApiV1TelegramLinksPost201Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1TelegramLinksPost201Response
26
+ */
27
+ token: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiV1TelegramLinksPost201Response
32
+ */
33
+ expiresAt: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiV1TelegramLinksPost201Response interface.
38
+ */
39
+ export function instanceOfApiV1TelegramLinksPost201Response(value: object): value is ApiV1TelegramLinksPost201Response {
40
+ if (!('token' in value) || value['token'] === undefined) return false;
41
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApiV1TelegramLinksPost201ResponseFromJSON(json: any): ApiV1TelegramLinksPost201Response {
46
+ return ApiV1TelegramLinksPost201ResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApiV1TelegramLinksPost201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksPost201Response {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'token': json['token'],
56
+ 'expiresAt': json['expires_at'],
57
+ };
58
+ }
59
+
60
+ export function ApiV1TelegramLinksPost201ResponseToJSON(json: any): ApiV1TelegramLinksPost201Response {
61
+ return ApiV1TelegramLinksPost201ResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiV1TelegramLinksPost201ResponseToJSONTyped(value?: ApiV1TelegramLinksPost201Response | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'token': value['token'],
72
+ 'expires_at': value['expiresAt'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,109 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blanche API
5
+ * AI-powered life tracking system API
6
+ *
7
+ * The version of the OpenAPI document: v1
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
+ import type { ApiV1TelegramLinksTokenGet200ResponseTelegram } from './ApiV1TelegramLinksTokenGet200ResponseTelegram';
17
+ import {
18
+ ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON,
19
+ ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped,
20
+ ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON,
21
+ ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped,
22
+ } from './ApiV1TelegramLinksTokenGet200ResponseTelegram';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiV1TelegramLinksTokenGet200Response
28
+ */
29
+ export interface ApiV1TelegramLinksTokenGet200Response {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiV1TelegramLinksTokenGet200Response
34
+ */
35
+ token: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiV1TelegramLinksTokenGet200Response
40
+ */
41
+ expiresAt: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ApiV1TelegramLinksTokenGet200Response
46
+ */
47
+ consumedAt?: string | null;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ApiV1TelegramLinksTokenGet200Response
52
+ */
53
+ linked: boolean;
54
+ /**
55
+ *
56
+ * @type {ApiV1TelegramLinksTokenGet200ResponseTelegram}
57
+ * @memberof ApiV1TelegramLinksTokenGet200Response
58
+ */
59
+ telegram: ApiV1TelegramLinksTokenGet200ResponseTelegram;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the ApiV1TelegramLinksTokenGet200Response interface.
64
+ */
65
+ export function instanceOfApiV1TelegramLinksTokenGet200Response(value: object): value is ApiV1TelegramLinksTokenGet200Response {
66
+ if (!('token' in value) || value['token'] === undefined) return false;
67
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
68
+ if (!('linked' in value) || value['linked'] === undefined) return false;
69
+ if (!('telegram' in value) || value['telegram'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function ApiV1TelegramLinksTokenGet200ResponseFromJSON(json: any): ApiV1TelegramLinksTokenGet200Response {
74
+ return ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksTokenGet200Response {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'token': json['token'],
84
+ 'expiresAt': json['expires_at'],
85
+ 'consumedAt': json['consumed_at'] == null ? undefined : json['consumed_at'],
86
+ 'linked': json['linked'],
87
+ 'telegram': ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON(json['telegram']),
88
+ };
89
+ }
90
+
91
+ export function ApiV1TelegramLinksTokenGet200ResponseToJSON(json: any): ApiV1TelegramLinksTokenGet200Response {
92
+ return ApiV1TelegramLinksTokenGet200ResponseToJSONTyped(json, false);
93
+ }
94
+
95
+ export function ApiV1TelegramLinksTokenGet200ResponseToJSONTyped(value?: ApiV1TelegramLinksTokenGet200Response | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'token': value['token'],
103
+ 'expires_at': value['expiresAt'],
104
+ 'consumed_at': value['consumedAt'],
105
+ 'linked': value['linked'],
106
+ 'telegram': ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON(value['telegram']),
107
+ };
108
+ }
109
+
@@ -0,0 +1,97 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blanche API
5
+ * AI-powered life tracking system API
6
+ *
7
+ * The version of the OpenAPI document: v1
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 ApiV1TelegramLinksTokenGet200ResponseTelegram
20
+ */
21
+ export interface ApiV1TelegramLinksTokenGet200ResponseTelegram {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
32
+ */
33
+ username?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
38
+ */
39
+ firstName?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
44
+ */
45
+ lastName?: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
50
+ */
51
+ languageCode?: string | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ApiV1TelegramLinksTokenGet200ResponseTelegram interface.
56
+ */
57
+ export function instanceOfApiV1TelegramLinksTokenGet200ResponseTelegram(value: object): value is ApiV1TelegramLinksTokenGet200ResponseTelegram {
58
+ return true;
59
+ }
60
+
61
+ export function ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON(json: any): ApiV1TelegramLinksTokenGet200ResponseTelegram {
62
+ return ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksTokenGet200ResponseTelegram {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'id': json['id'] == null ? undefined : json['id'],
72
+ 'username': json['username'] == null ? undefined : json['username'],
73
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
74
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
75
+ 'languageCode': json['language_code'] == null ? undefined : json['language_code'],
76
+ };
77
+ }
78
+
79
+ export function ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON(json: any): ApiV1TelegramLinksTokenGet200ResponseTelegram {
80
+ return ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped(json, false);
81
+ }
82
+
83
+ export function ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped(value?: ApiV1TelegramLinksTokenGet200ResponseTelegram | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'id': value['id'],
91
+ 'username': value['username'],
92
+ 'first_name': value['firstName'],
93
+ 'last_name': value['lastName'],
94
+ 'language_code': value['languageCode'],
95
+ };
96
+ }
97
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blanche API
5
+ * AI-powered life tracking system API
6
+ *
7
+ * The version of the OpenAPI document: v1
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 ApiV1TelegramLinksTokenGet404Response
20
+ */
21
+ export interface ApiV1TelegramLinksTokenGet404Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1TelegramLinksTokenGet404Response
26
+ */
27
+ error: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiV1TelegramLinksTokenGet404Response interface.
32
+ */
33
+ export function instanceOfApiV1TelegramLinksTokenGet404Response(value: object): value is ApiV1TelegramLinksTokenGet404Response {
34
+ if (!('error' in value) || value['error'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiV1TelegramLinksTokenGet404ResponseFromJSON(json: any): ApiV1TelegramLinksTokenGet404Response {
39
+ return ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksTokenGet404Response {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'error': json['error'],
49
+ };
50
+ }
51
+
52
+ export function ApiV1TelegramLinksTokenGet404ResponseToJSON(json: any): ApiV1TelegramLinksTokenGet404Response {
53
+ return ApiV1TelegramLinksTokenGet404ResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiV1TelegramLinksTokenGet404ResponseToJSONTyped(value?: ApiV1TelegramLinksTokenGet404Response | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'error': value['error'],
64
+ };
65
+ }
66
+
@@ -25,6 +25,18 @@ export interface ApiV1UsersIdPatch200Response {
25
25
  * @memberof ApiV1UsersIdPatch200Response
26
26
  */
27
27
  id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiV1UsersIdPatch200Response
32
+ */
33
+ firstName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiV1UsersIdPatch200Response
38
+ */
39
+ lastName: string;
28
40
  /**
29
41
  *
30
42
  * @type {string}
@@ -44,6 +56,8 @@ export interface ApiV1UsersIdPatch200Response {
44
56
  */
45
57
  export function instanceOfApiV1UsersIdPatch200Response(value: object): value is ApiV1UsersIdPatch200Response {
46
58
  if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
60
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
47
61
  if (!('email' in value) || value['email'] === undefined) return false;
48
62
  if (!('timezone' in value) || value['timezone'] === undefined) return false;
49
63
  return true;
@@ -60,6 +74,8 @@ export function ApiV1UsersIdPatch200ResponseFromJSONTyped(json: any, ignoreDiscr
60
74
  return {
61
75
 
62
76
  'id': json['id'],
77
+ 'firstName': json['first_name'],
78
+ 'lastName': json['last_name'],
63
79
  'email': json['email'],
64
80
  'timezone': json['timezone'],
65
81
  };
@@ -77,6 +93,8 @@ export function ApiV1UsersIdPatch200ResponseToJSONTyped(value?: ApiV1UsersIdPatc
77
93
  return {
78
94
 
79
95
  'id': value['id'],
96
+ 'first_name': value['firstName'],
97
+ 'last_name': value['lastName'],
80
98
  'email': value['email'],
81
99
  'timezone': value['timezone'],
82
100
  };
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blanche API
5
+ * AI-powered life tracking system API
6
+ *
7
+ * The version of the OpenAPI document: v1
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 ApiV1UsersIdPatch422Response
20
+ */
21
+ export interface ApiV1UsersIdPatch422Response {
22
+ /**
23
+ *
24
+ * @type {{ [key: string]: Array<string>; }}
25
+ * @memberof ApiV1UsersIdPatch422Response
26
+ */
27
+ errors: { [key: string]: Array<string>; };
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiV1UsersIdPatch422Response interface.
32
+ */
33
+ export function instanceOfApiV1UsersIdPatch422Response(value: object): value is ApiV1UsersIdPatch422Response {
34
+ if (!('errors' in value) || value['errors'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiV1UsersIdPatch422ResponseFromJSON(json: any): ApiV1UsersIdPatch422Response {
39
+ return ApiV1UsersIdPatch422ResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiV1UsersIdPatch422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatch422Response {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'errors': json['errors'],
49
+ };
50
+ }
51
+
52
+ export function ApiV1UsersIdPatch422ResponseToJSON(json: any): ApiV1UsersIdPatch422Response {
53
+ return ApiV1UsersIdPatch422ResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiV1UsersIdPatch422ResponseToJSONTyped(value?: ApiV1UsersIdPatch422Response | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'errors': value['errors'],
64
+ };
65
+ }
66
+
@@ -19,6 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface ApiV1UsersIdPatchRequestUser
20
20
  */
21
21
  export interface ApiV1UsersIdPatchRequestUser {
22
+ /**
23
+ * User first name
24
+ * @type {string}
25
+ * @memberof ApiV1UsersIdPatchRequestUser
26
+ */
27
+ firstName?: string;
28
+ /**
29
+ * User last name
30
+ * @type {string}
31
+ * @memberof ApiV1UsersIdPatchRequestUser
32
+ */
33
+ lastName?: string;
22
34
  /**
23
35
  * User email address
24
36
  * @type {string}
@@ -56,6 +68,8 @@ export function ApiV1UsersIdPatchRequestUserFromJSONTyped(json: any, ignoreDiscr
56
68
  }
57
69
  return {
58
70
 
71
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
72
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
59
73
  'email': json['email'] == null ? undefined : json['email'],
60
74
  'password': json['password'] == null ? undefined : json['password'],
61
75
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
@@ -73,6 +87,8 @@ export function ApiV1UsersIdPatchRequestUserToJSONTyped(value?: ApiV1UsersIdPatc
73
87
 
74
88
  return {
75
89
 
90
+ 'first_name': value['firstName'],
91
+ 'last_name': value['lastName'],
76
92
  'email': value['email'],
77
93
  'password': value['password'],
78
94
  'timezone': value['timezone'],