blanche-client-sdk 0.1.3
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.
- package/.openapi-generator/FILES +36 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +127 -0
- package/dist/apis/SessionsApi.d.ts +51 -0
- package/dist/apis/SessionsApi.js +219 -0
- package/dist/apis/UsersApi.d.ts +49 -0
- package/dist/apis/UsersApi.js +215 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ApiV1ProfileGet200Response.d.ts +44 -0
- package/dist/models/ApiV1ProfileGet200Response.js +59 -0
- package/dist/models/ApiV1ProfileGet401Response.d.ts +32 -0
- package/dist/models/ApiV1ProfileGet401Response.js +51 -0
- package/dist/models/ApiV1SessionsPost200Response.d.ts +38 -0
- package/dist/models/ApiV1SessionsPost200Response.js +55 -0
- package/dist/models/ApiV1SessionsPost401Response.d.ts +32 -0
- package/dist/models/ApiV1SessionsPost401Response.js +51 -0
- package/dist/models/ApiV1SessionsPostRequest.d.ts +38 -0
- package/dist/models/ApiV1SessionsPostRequest.js +55 -0
- package/dist/models/ApiV1UsersIdPatch200Response.d.ts +44 -0
- package/dist/models/ApiV1UsersIdPatch200Response.js +59 -0
- package/dist/models/ApiV1UsersIdPatchRequest.d.ts +33 -0
- package/dist/models/ApiV1UsersIdPatchRequest.js +52 -0
- package/dist/models/ApiV1UsersIdPatchRequestUser.d.ts +44 -0
- package/dist/models/ApiV1UsersIdPatchRequestUser.js +53 -0
- package/dist/models/ApiV1UsersPost422Response.d.ts +32 -0
- package/dist/models/ApiV1UsersPost422Response.js +51 -0
- package/dist/models/ApiV1UsersPostRequest.d.ts +33 -0
- package/dist/models/ApiV1UsersPostRequest.js +52 -0
- package/dist/models/ApiV1UsersPostRequestUser.d.ts +44 -0
- package/dist/models/ApiV1UsersPostRequestUser.js +59 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +29 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/docs/ApiV1ProfileGet200Response.md +38 -0
- package/docs/ApiV1ProfileGet401Response.md +34 -0
- package/docs/ApiV1SessionsPost200Response.md +36 -0
- package/docs/ApiV1SessionsPost401Response.md +34 -0
- package/docs/ApiV1SessionsPostRequest.md +36 -0
- package/docs/ApiV1UsersIdPatch200Response.md +38 -0
- package/docs/ApiV1UsersIdPatchRequest.md +34 -0
- package/docs/ApiV1UsersIdPatchRequestUser.md +38 -0
- package/docs/ApiV1UsersPost422Response.md +34 -0
- package/docs/ApiV1UsersPostRequest.md +34 -0
- package/docs/ApiV1UsersPostRequestUser.md +38 -0
- package/docs/SessionsApi.md +209 -0
- package/docs/UsersApi.md +205 -0
- package/package.json +19 -0
- package/src/apis/SessionsApi.ts +159 -0
- package/src/apis/UsersApi.ts +155 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/ApiV1ProfileGet200Response.ts +84 -0
- package/src/models/ApiV1ProfileGet401Response.ts +66 -0
- package/src/models/ApiV1SessionsPost200Response.ts +75 -0
- package/src/models/ApiV1SessionsPost401Response.ts +66 -0
- package/src/models/ApiV1SessionsPostRequest.ts +75 -0
- package/src/models/ApiV1UsersIdPatch200Response.ts +84 -0
- package/src/models/ApiV1UsersIdPatchRequest.ts +74 -0
- package/src/models/ApiV1UsersIdPatchRequestUser.ts +81 -0
- package/src/models/ApiV1UsersPost422Response.ts +66 -0
- package/src/models/ApiV1UsersPostRequest.ts +74 -0
- package/src/models/ApiV1UsersPostRequestUser.ts +84 -0
- package/src/models/index.ts +13 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
|
@@ -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 ApiV1SessionsPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1SessionsPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
* User email address
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1SessionsPostRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
* User password
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1SessionsPostRequest
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiV1SessionsPostRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiV1SessionsPostRequest(value: object): value is ApiV1SessionsPostRequest {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiV1SessionsPostRequestFromJSON(json: any): ApiV1SessionsPostRequest {
|
|
46
|
+
return ApiV1SessionsPostRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiV1SessionsPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1SessionsPostRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'password': json['password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiV1SessionsPostRequestToJSON(json: any): ApiV1SessionsPostRequest {
|
|
61
|
+
return ApiV1SessionsPostRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiV1SessionsPostRequestToJSONTyped(value?: ApiV1SessionsPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ApiV1UsersIdPatch200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1UsersIdPatch200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
38
|
+
*/
|
|
39
|
+
timezone: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiV1UsersIdPatch200Response interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiV1UsersIdPatch200Response(value: object): value is ApiV1UsersIdPatch200Response {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
48
|
+
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1UsersIdPatch200ResponseFromJSON(json: any): ApiV1UsersIdPatch200Response {
|
|
53
|
+
return ApiV1UsersIdPatch200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1UsersIdPatch200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatch200Response {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'email': json['email'],
|
|
64
|
+
'timezone': json['timezone'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiV1UsersIdPatch200ResponseToJSON(json: any): ApiV1UsersIdPatch200Response {
|
|
69
|
+
return ApiV1UsersIdPatch200ResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiV1UsersIdPatch200ResponseToJSONTyped(value?: ApiV1UsersIdPatch200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'email': value['email'],
|
|
81
|
+
'timezone': value['timezone'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { ApiV1UsersIdPatchRequestUser } from './ApiV1UsersIdPatchRequestUser';
|
|
17
|
+
import {
|
|
18
|
+
ApiV1UsersIdPatchRequestUserFromJSON,
|
|
19
|
+
ApiV1UsersIdPatchRequestUserFromJSONTyped,
|
|
20
|
+
ApiV1UsersIdPatchRequestUserToJSON,
|
|
21
|
+
ApiV1UsersIdPatchRequestUserToJSONTyped,
|
|
22
|
+
} from './ApiV1UsersIdPatchRequestUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiV1UsersIdPatchRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiV1UsersIdPatchRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiV1UsersIdPatchRequestUser}
|
|
33
|
+
* @memberof ApiV1UsersIdPatchRequest
|
|
34
|
+
*/
|
|
35
|
+
user: ApiV1UsersIdPatchRequestUser;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiV1UsersIdPatchRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiV1UsersIdPatchRequest(value: object): value is ApiV1UsersIdPatchRequest {
|
|
42
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ApiV1UsersIdPatchRequestFromJSON(json: any): ApiV1UsersIdPatchRequest {
|
|
47
|
+
return ApiV1UsersIdPatchRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApiV1UsersIdPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatchRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'user': ApiV1UsersIdPatchRequestUserFromJSON(json['user']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiV1UsersIdPatchRequestToJSON(json: any): ApiV1UsersIdPatchRequest {
|
|
61
|
+
return ApiV1UsersIdPatchRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiV1UsersIdPatchRequestToJSONTyped(value?: ApiV1UsersIdPatchRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'user': ApiV1UsersIdPatchRequestUserToJSON(value['user']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 ApiV1UsersIdPatchRequestUser
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1UsersIdPatchRequestUser {
|
|
22
|
+
/**
|
|
23
|
+
* User email address
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1UsersIdPatchRequestUser
|
|
26
|
+
*/
|
|
27
|
+
email?: string;
|
|
28
|
+
/**
|
|
29
|
+
* User password (min 8 chars)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1UsersIdPatchRequestUser
|
|
32
|
+
*/
|
|
33
|
+
password?: string;
|
|
34
|
+
/**
|
|
35
|
+
* User timezone
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiV1UsersIdPatchRequestUser
|
|
38
|
+
*/
|
|
39
|
+
timezone?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiV1UsersIdPatchRequestUser interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiV1UsersIdPatchRequestUser(value: object): value is ApiV1UsersIdPatchRequestUser {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiV1UsersIdPatchRequestUserFromJSON(json: any): ApiV1UsersIdPatchRequestUser {
|
|
50
|
+
return ApiV1UsersIdPatchRequestUserFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ApiV1UsersIdPatchRequestUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatchRequestUser {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
60
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
61
|
+
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ApiV1UsersIdPatchRequestUserToJSON(json: any): ApiV1UsersIdPatchRequestUser {
|
|
66
|
+
return ApiV1UsersIdPatchRequestUserToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ApiV1UsersIdPatchRequestUserToJSONTyped(value?: ApiV1UsersIdPatchRequestUser | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'email': value['email'],
|
|
77
|
+
'password': value['password'],
|
|
78
|
+
'timezone': value['timezone'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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 ApiV1UsersPost422Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1UsersPost422Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof ApiV1UsersPost422Response
|
|
26
|
+
*/
|
|
27
|
+
errors: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiV1UsersPost422Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiV1UsersPost422Response(value: object): value is ApiV1UsersPost422Response {
|
|
34
|
+
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiV1UsersPost422ResponseFromJSON(json: any): ApiV1UsersPost422Response {
|
|
39
|
+
return ApiV1UsersPost422ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiV1UsersPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPost422Response {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'errors': json['errors'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1UsersPost422ResponseToJSON(json: any): ApiV1UsersPost422Response {
|
|
53
|
+
return ApiV1UsersPost422ResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1UsersPost422ResponseToJSONTyped(value?: ApiV1UsersPost422Response | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'errors': value['errors'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { ApiV1UsersPostRequestUser } from './ApiV1UsersPostRequestUser';
|
|
17
|
+
import {
|
|
18
|
+
ApiV1UsersPostRequestUserFromJSON,
|
|
19
|
+
ApiV1UsersPostRequestUserFromJSONTyped,
|
|
20
|
+
ApiV1UsersPostRequestUserToJSON,
|
|
21
|
+
ApiV1UsersPostRequestUserToJSONTyped,
|
|
22
|
+
} from './ApiV1UsersPostRequestUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiV1UsersPostRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiV1UsersPostRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiV1UsersPostRequestUser}
|
|
33
|
+
* @memberof ApiV1UsersPostRequest
|
|
34
|
+
*/
|
|
35
|
+
user: ApiV1UsersPostRequestUser;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiV1UsersPostRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiV1UsersPostRequest(value: object): value is ApiV1UsersPostRequest {
|
|
42
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ApiV1UsersPostRequestFromJSON(json: any): ApiV1UsersPostRequest {
|
|
47
|
+
return ApiV1UsersPostRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApiV1UsersPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPostRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'user': ApiV1UsersPostRequestUserFromJSON(json['user']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiV1UsersPostRequestToJSON(json: any): ApiV1UsersPostRequest {
|
|
61
|
+
return ApiV1UsersPostRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiV1UsersPostRequestToJSONTyped(value?: ApiV1UsersPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'user': ApiV1UsersPostRequestUserToJSON(value['user']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ApiV1UsersPostRequestUser
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1UsersPostRequestUser {
|
|
22
|
+
/**
|
|
23
|
+
* User email address
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
* User password (min 8 chars)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
/**
|
|
35
|
+
* User timezone
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
38
|
+
*/
|
|
39
|
+
timezone: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiV1UsersPostRequestUser interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiV1UsersPostRequestUser(value: object): value is ApiV1UsersPostRequestUser {
|
|
46
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
48
|
+
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1UsersPostRequestUserFromJSON(json: any): ApiV1UsersPostRequestUser {
|
|
53
|
+
return ApiV1UsersPostRequestUserFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1UsersPostRequestUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPostRequestUser {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'email': json['email'],
|
|
63
|
+
'password': json['password'],
|
|
64
|
+
'timezone': json['timezone'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiV1UsersPostRequestUserToJSON(json: any): ApiV1UsersPostRequestUser {
|
|
69
|
+
return ApiV1UsersPostRequestUserToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiV1UsersPostRequestUserToJSONTyped(value?: ApiV1UsersPostRequestUser | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'password': value['password'],
|
|
81
|
+
'timezone': value['timezone'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './ApiV1ProfileGet200Response';
|
|
4
|
+
export * from './ApiV1ProfileGet401Response';
|
|
5
|
+
export * from './ApiV1SessionsPost200Response';
|
|
6
|
+
export * from './ApiV1SessionsPost401Response';
|
|
7
|
+
export * from './ApiV1SessionsPostRequest';
|
|
8
|
+
export * from './ApiV1UsersIdPatch200Response';
|
|
9
|
+
export * from './ApiV1UsersIdPatchRequest';
|
|
10
|
+
export * from './ApiV1UsersIdPatchRequestUser';
|
|
11
|
+
export * from './ApiV1UsersPost422Response';
|
|
12
|
+
export * from './ApiV1UsersPostRequest';
|
|
13
|
+
export * from './ApiV1UsersPostRequestUser';
|