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,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1SessionsPostRequest = instanceOfApiV1SessionsPostRequest;
|
|
17
|
+
exports.ApiV1SessionsPostRequestFromJSON = ApiV1SessionsPostRequestFromJSON;
|
|
18
|
+
exports.ApiV1SessionsPostRequestFromJSONTyped = ApiV1SessionsPostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiV1SessionsPostRequestToJSON = ApiV1SessionsPostRequestToJSON;
|
|
20
|
+
exports.ApiV1SessionsPostRequestToJSONTyped = ApiV1SessionsPostRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1SessionsPostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1SessionsPostRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiV1SessionsPostRequestFromJSON(json) {
|
|
32
|
+
return ApiV1SessionsPostRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiV1SessionsPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'password': json['password'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiV1SessionsPostRequestToJSON(json) {
|
|
44
|
+
return ApiV1SessionsPostRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiV1SessionsPostRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'password': value['password'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1UsersIdPatch200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1UsersIdPatch200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
34
|
+
*/
|
|
35
|
+
timezone: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiV1UsersIdPatch200Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiV1UsersIdPatch200Response(value: object): value is ApiV1UsersIdPatch200Response;
|
|
41
|
+
export declare function ApiV1UsersIdPatch200ResponseFromJSON(json: any): ApiV1UsersIdPatch200Response;
|
|
42
|
+
export declare function ApiV1UsersIdPatch200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatch200Response;
|
|
43
|
+
export declare function ApiV1UsersIdPatch200ResponseToJSON(json: any): ApiV1UsersIdPatch200Response;
|
|
44
|
+
export declare function ApiV1UsersIdPatch200ResponseToJSONTyped(value?: ApiV1UsersIdPatch200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1UsersIdPatch200Response = instanceOfApiV1UsersIdPatch200Response;
|
|
17
|
+
exports.ApiV1UsersIdPatch200ResponseFromJSON = ApiV1UsersIdPatch200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1UsersIdPatch200ResponseFromJSONTyped = ApiV1UsersIdPatch200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersIdPatch200ResponseToJSON = ApiV1UsersIdPatch200ResponseToJSON;
|
|
20
|
+
exports.ApiV1UsersIdPatch200ResponseToJSONTyped = ApiV1UsersIdPatch200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1UsersIdPatch200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1UsersIdPatch200Response(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ApiV1UsersIdPatch200ResponseFromJSON(json) {
|
|
34
|
+
return ApiV1UsersIdPatch200ResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ApiV1UsersIdPatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'email': json['email'],
|
|
43
|
+
'timezone': json['timezone'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ApiV1UsersIdPatch200ResponseToJSON(json) {
|
|
47
|
+
return ApiV1UsersIdPatch200ResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ApiV1UsersIdPatch200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'email': value['email'],
|
|
57
|
+
'timezone': value['timezone'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1UsersIdPatchRequestUser } from './ApiV1UsersIdPatchRequestUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1UsersIdPatchRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1UsersIdPatchRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiV1UsersIdPatchRequestUser}
|
|
22
|
+
* @memberof ApiV1UsersIdPatchRequest
|
|
23
|
+
*/
|
|
24
|
+
user: ApiV1UsersIdPatchRequestUser;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1UsersIdPatchRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1UsersIdPatchRequest(value: object): value is ApiV1UsersIdPatchRequest;
|
|
30
|
+
export declare function ApiV1UsersIdPatchRequestFromJSON(json: any): ApiV1UsersIdPatchRequest;
|
|
31
|
+
export declare function ApiV1UsersIdPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatchRequest;
|
|
32
|
+
export declare function ApiV1UsersIdPatchRequestToJSON(json: any): ApiV1UsersIdPatchRequest;
|
|
33
|
+
export declare function ApiV1UsersIdPatchRequestToJSONTyped(value?: ApiV1UsersIdPatchRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1UsersIdPatchRequest = instanceOfApiV1UsersIdPatchRequest;
|
|
17
|
+
exports.ApiV1UsersIdPatchRequestFromJSON = ApiV1UsersIdPatchRequestFromJSON;
|
|
18
|
+
exports.ApiV1UsersIdPatchRequestFromJSONTyped = ApiV1UsersIdPatchRequestFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersIdPatchRequestToJSON = ApiV1UsersIdPatchRequestToJSON;
|
|
20
|
+
exports.ApiV1UsersIdPatchRequestToJSONTyped = ApiV1UsersIdPatchRequestToJSONTyped;
|
|
21
|
+
var ApiV1UsersIdPatchRequestUser_1 = require("./ApiV1UsersIdPatchRequestUser");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1UsersIdPatchRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1UsersIdPatchRequest(value) {
|
|
26
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApiV1UsersIdPatchRequestFromJSON(json) {
|
|
31
|
+
return ApiV1UsersIdPatchRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApiV1UsersIdPatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'user': (0, ApiV1UsersIdPatchRequestUser_1.ApiV1UsersIdPatchRequestUserFromJSON)(json['user']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiV1UsersIdPatchRequestToJSON(json) {
|
|
42
|
+
return ApiV1UsersIdPatchRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiV1UsersIdPatchRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'user': (0, ApiV1UsersIdPatchRequestUser_1.ApiV1UsersIdPatchRequestUserToJSON)(value['user']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1UsersIdPatchRequestUser
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1UsersIdPatchRequestUser {
|
|
18
|
+
/**
|
|
19
|
+
* User email address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1UsersIdPatchRequestUser
|
|
22
|
+
*/
|
|
23
|
+
email?: string;
|
|
24
|
+
/**
|
|
25
|
+
* User password (min 8 chars)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1UsersIdPatchRequestUser
|
|
28
|
+
*/
|
|
29
|
+
password?: string;
|
|
30
|
+
/**
|
|
31
|
+
* User timezone
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1UsersIdPatchRequestUser
|
|
34
|
+
*/
|
|
35
|
+
timezone?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiV1UsersIdPatchRequestUser interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiV1UsersIdPatchRequestUser(value: object): value is ApiV1UsersIdPatchRequestUser;
|
|
41
|
+
export declare function ApiV1UsersIdPatchRequestUserFromJSON(json: any): ApiV1UsersIdPatchRequestUser;
|
|
42
|
+
export declare function ApiV1UsersIdPatchRequestUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatchRequestUser;
|
|
43
|
+
export declare function ApiV1UsersIdPatchRequestUserToJSON(json: any): ApiV1UsersIdPatchRequestUser;
|
|
44
|
+
export declare function ApiV1UsersIdPatchRequestUserToJSONTyped(value?: ApiV1UsersIdPatchRequestUser | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1UsersIdPatchRequestUser = instanceOfApiV1UsersIdPatchRequestUser;
|
|
17
|
+
exports.ApiV1UsersIdPatchRequestUserFromJSON = ApiV1UsersIdPatchRequestUserFromJSON;
|
|
18
|
+
exports.ApiV1UsersIdPatchRequestUserFromJSONTyped = ApiV1UsersIdPatchRequestUserFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersIdPatchRequestUserToJSON = ApiV1UsersIdPatchRequestUserToJSON;
|
|
20
|
+
exports.ApiV1UsersIdPatchRequestUserToJSONTyped = ApiV1UsersIdPatchRequestUserToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1UsersIdPatchRequestUser interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1UsersIdPatchRequestUser(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ApiV1UsersIdPatchRequestUserFromJSON(json) {
|
|
28
|
+
return ApiV1UsersIdPatchRequestUserFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ApiV1UsersIdPatchRequestUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
36
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
37
|
+
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1UsersIdPatchRequestUserToJSON(json) {
|
|
41
|
+
return ApiV1UsersIdPatchRequestUserToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1UsersIdPatchRequestUserToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'email': value['email'],
|
|
50
|
+
'password': value['password'],
|
|
51
|
+
'timezone': value['timezone'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1UsersPost422Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1UsersPost422Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ApiV1UsersPost422Response
|
|
22
|
+
*/
|
|
23
|
+
errors: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1UsersPost422Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1UsersPost422Response(value: object): value is ApiV1UsersPost422Response;
|
|
29
|
+
export declare function ApiV1UsersPost422ResponseFromJSON(json: any): ApiV1UsersPost422Response;
|
|
30
|
+
export declare function ApiV1UsersPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPost422Response;
|
|
31
|
+
export declare function ApiV1UsersPost422ResponseToJSON(json: any): ApiV1UsersPost422Response;
|
|
32
|
+
export declare function ApiV1UsersPost422ResponseToJSONTyped(value?: ApiV1UsersPost422Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1UsersPost422Response = instanceOfApiV1UsersPost422Response;
|
|
17
|
+
exports.ApiV1UsersPost422ResponseFromJSON = ApiV1UsersPost422ResponseFromJSON;
|
|
18
|
+
exports.ApiV1UsersPost422ResponseFromJSONTyped = ApiV1UsersPost422ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersPost422ResponseToJSON = ApiV1UsersPost422ResponseToJSON;
|
|
20
|
+
exports.ApiV1UsersPost422ResponseToJSONTyped = ApiV1UsersPost422ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1UsersPost422Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1UsersPost422Response(value) {
|
|
25
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1UsersPost422ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1UsersPost422ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1UsersPost422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'errors': json['errors'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1UsersPost422ResponseToJSON(json) {
|
|
41
|
+
return ApiV1UsersPost422ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1UsersPost422ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'errors': value['errors'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1UsersPostRequestUser } from './ApiV1UsersPostRequestUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1UsersPostRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1UsersPostRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiV1UsersPostRequestUser}
|
|
22
|
+
* @memberof ApiV1UsersPostRequest
|
|
23
|
+
*/
|
|
24
|
+
user: ApiV1UsersPostRequestUser;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1UsersPostRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1UsersPostRequest(value: object): value is ApiV1UsersPostRequest;
|
|
30
|
+
export declare function ApiV1UsersPostRequestFromJSON(json: any): ApiV1UsersPostRequest;
|
|
31
|
+
export declare function ApiV1UsersPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPostRequest;
|
|
32
|
+
export declare function ApiV1UsersPostRequestToJSON(json: any): ApiV1UsersPostRequest;
|
|
33
|
+
export declare function ApiV1UsersPostRequestToJSONTyped(value?: ApiV1UsersPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1UsersPostRequest = instanceOfApiV1UsersPostRequest;
|
|
17
|
+
exports.ApiV1UsersPostRequestFromJSON = ApiV1UsersPostRequestFromJSON;
|
|
18
|
+
exports.ApiV1UsersPostRequestFromJSONTyped = ApiV1UsersPostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersPostRequestToJSON = ApiV1UsersPostRequestToJSON;
|
|
20
|
+
exports.ApiV1UsersPostRequestToJSONTyped = ApiV1UsersPostRequestToJSONTyped;
|
|
21
|
+
var ApiV1UsersPostRequestUser_1 = require("./ApiV1UsersPostRequestUser");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1UsersPostRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1UsersPostRequest(value) {
|
|
26
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApiV1UsersPostRequestFromJSON(json) {
|
|
31
|
+
return ApiV1UsersPostRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApiV1UsersPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'user': (0, ApiV1UsersPostRequestUser_1.ApiV1UsersPostRequestUserFromJSON)(json['user']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiV1UsersPostRequestToJSON(json) {
|
|
42
|
+
return ApiV1UsersPostRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiV1UsersPostRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'user': (0, ApiV1UsersPostRequestUser_1.ApiV1UsersPostRequestUserToJSON)(value['user']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1UsersPostRequestUser
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1UsersPostRequestUser {
|
|
18
|
+
/**
|
|
19
|
+
* User email address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
* User password (min 8 chars)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
/**
|
|
31
|
+
* User timezone
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
34
|
+
*/
|
|
35
|
+
timezone: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiV1UsersPostRequestUser interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiV1UsersPostRequestUser(value: object): value is ApiV1UsersPostRequestUser;
|
|
41
|
+
export declare function ApiV1UsersPostRequestUserFromJSON(json: any): ApiV1UsersPostRequestUser;
|
|
42
|
+
export declare function ApiV1UsersPostRequestUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPostRequestUser;
|
|
43
|
+
export declare function ApiV1UsersPostRequestUserToJSON(json: any): ApiV1UsersPostRequestUser;
|
|
44
|
+
export declare function ApiV1UsersPostRequestUserToJSONTyped(value?: ApiV1UsersPostRequestUser | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiV1UsersPostRequestUser = instanceOfApiV1UsersPostRequestUser;
|
|
17
|
+
exports.ApiV1UsersPostRequestUserFromJSON = ApiV1UsersPostRequestUserFromJSON;
|
|
18
|
+
exports.ApiV1UsersPostRequestUserFromJSONTyped = ApiV1UsersPostRequestUserFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersPostRequestUserToJSON = ApiV1UsersPostRequestUserToJSON;
|
|
20
|
+
exports.ApiV1UsersPostRequestUserToJSONTyped = ApiV1UsersPostRequestUserToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1UsersPostRequestUser interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1UsersPostRequestUser(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ApiV1UsersPostRequestUserFromJSON(json) {
|
|
34
|
+
return ApiV1UsersPostRequestUserFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ApiV1UsersPostRequestUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'password': json['password'],
|
|
43
|
+
'timezone': json['timezone'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ApiV1UsersPostRequestUserToJSON(json) {
|
|
47
|
+
return ApiV1UsersPostRequestUserToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ApiV1UsersPostRequestUserToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'email': value['email'],
|
|
56
|
+
'password': value['password'],
|
|
57
|
+
'timezone': value['timezone'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './ApiV1ProfileGet200Response';
|
|
2
|
+
export * from './ApiV1ProfileGet401Response';
|
|
3
|
+
export * from './ApiV1SessionsPost200Response';
|
|
4
|
+
export * from './ApiV1SessionsPost401Response';
|
|
5
|
+
export * from './ApiV1SessionsPostRequest';
|
|
6
|
+
export * from './ApiV1UsersIdPatch200Response';
|
|
7
|
+
export * from './ApiV1UsersIdPatchRequest';
|
|
8
|
+
export * from './ApiV1UsersIdPatchRequestUser';
|
|
9
|
+
export * from './ApiV1UsersPost422Response';
|
|
10
|
+
export * from './ApiV1UsersPostRequest';
|
|
11
|
+
export * from './ApiV1UsersPostRequestUser';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ApiV1ProfileGet200Response"), exports);
|
|
20
|
+
__exportStar(require("./ApiV1ProfileGet401Response"), exports);
|
|
21
|
+
__exportStar(require("./ApiV1SessionsPost200Response"), exports);
|
|
22
|
+
__exportStar(require("./ApiV1SessionsPost401Response"), exports);
|
|
23
|
+
__exportStar(require("./ApiV1SessionsPostRequest"), exports);
|
|
24
|
+
__exportStar(require("./ApiV1UsersIdPatch200Response"), exports);
|
|
25
|
+
__exportStar(require("./ApiV1UsersIdPatchRequest"), exports);
|
|
26
|
+
__exportStar(require("./ApiV1UsersIdPatchRequestUser"), exports);
|
|
27
|
+
__exportStar(require("./ApiV1UsersPost422Response"), exports);
|
|
28
|
+
__exportStar(require("./ApiV1UsersPostRequest"), exports);
|
|
29
|
+
__exportStar(require("./ApiV1UsersPostRequestUser"), exports);
|