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.
- package/.openapi-generator/FILES +20 -0
- package/README.md +14 -2
- package/dist/apis/TelegramLinksApi.d.ts +48 -0
- package/dist/apis/TelegramLinksApi.js +213 -0
- package/dist/apis/UsersApi.d.ts +3 -3
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiV1ProfileGet200Response.d.ts +18 -0
- package/dist/models/ApiV1ProfileGet200Response.js +12 -0
- package/dist/models/ApiV1TelegramLinksConsumePost200Response.d.ts +32 -0
- package/dist/models/ApiV1TelegramLinksConsumePost200Response.js +51 -0
- package/dist/models/ApiV1TelegramLinksConsumePost422Response.d.ts +34 -0
- package/dist/models/ApiV1TelegramLinksConsumePost422Response.js +51 -0
- package/dist/models/ApiV1TelegramLinksConsumePostRequest.d.ts +62 -0
- package/dist/models/ApiV1TelegramLinksConsumePostRequest.js +63 -0
- package/dist/models/ApiV1TelegramLinksPost201Response.d.ts +38 -0
- package/dist/models/ApiV1TelegramLinksPost201Response.js +55 -0
- package/dist/models/ApiV1TelegramLinksTokenGet200Response.d.ts +57 -0
- package/dist/models/ApiV1TelegramLinksTokenGet200Response.js +66 -0
- package/dist/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.d.ts +56 -0
- package/dist/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.js +57 -0
- package/dist/models/ApiV1TelegramLinksTokenGet404Response.d.ts +32 -0
- package/dist/models/ApiV1TelegramLinksTokenGet404Response.js +51 -0
- package/dist/models/ApiV1UsersIdPatch200Response.d.ts +12 -0
- package/dist/models/ApiV1UsersIdPatch200Response.js +8 -0
- package/dist/models/ApiV1UsersIdPatch422Response.d.ts +34 -0
- package/dist/models/ApiV1UsersIdPatch422Response.js +51 -0
- package/dist/models/ApiV1UsersIdPatchRequestUser.d.ts +12 -0
- package/dist/models/ApiV1UsersIdPatchRequestUser.js +4 -0
- package/dist/models/ApiV1UsersPost201Response.d.ts +56 -0
- package/dist/models/ApiV1UsersPost201Response.js +67 -0
- package/dist/models/ApiV1UsersPost422Response.d.ts +4 -2
- package/dist/models/ApiV1UsersPostRequestUser.d.ts +12 -0
- package/dist/models/ApiV1UsersPostRequestUser.js +8 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/ApiV1ProfileGet200Response.md +6 -0
- package/docs/ApiV1TelegramLinksConsumePost200Response.md +34 -0
- package/docs/ApiV1TelegramLinksConsumePost422Response.md +34 -0
- package/docs/ApiV1TelegramLinksConsumePostRequest.md +44 -0
- package/docs/ApiV1TelegramLinksPost201Response.md +36 -0
- package/docs/ApiV1TelegramLinksTokenGet200Response.md +42 -0
- package/docs/ApiV1TelegramLinksTokenGet200ResponseTelegram.md +42 -0
- package/docs/ApiV1TelegramLinksTokenGet404Response.md +34 -0
- package/docs/ApiV1UsersIdPatch200Response.md +4 -0
- package/docs/ApiV1UsersIdPatch422Response.md +34 -0
- package/docs/ApiV1UsersIdPatchRequestUser.md +4 -0
- package/docs/ApiV1UsersPost201Response.md +42 -0
- package/docs/ApiV1UsersPost422Response.md +2 -2
- package/docs/ApiV1UsersPostRequestUser.md +4 -0
- package/docs/TelegramLinksApi.md +201 -0
- package/docs/UsersApi.md +2 -2
- package/package.json +1 -1
- package/src/apis/TelegramLinksApi.ts +154 -0
- package/src/apis/UsersApi.ts +9 -3
- package/src/apis/index.ts +1 -0
- package/src/models/ApiV1ProfileGet200Response.ts +27 -0
- package/src/models/ApiV1TelegramLinksConsumePost200Response.ts +66 -0
- package/src/models/ApiV1TelegramLinksConsumePost422Response.ts +66 -0
- package/src/models/ApiV1TelegramLinksConsumePostRequest.ts +107 -0
- package/src/models/ApiV1TelegramLinksPost201Response.ts +75 -0
- package/src/models/ApiV1TelegramLinksTokenGet200Response.ts +109 -0
- package/src/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.ts +97 -0
- package/src/models/ApiV1TelegramLinksTokenGet404Response.ts +66 -0
- package/src/models/ApiV1UsersIdPatch200Response.ts +18 -0
- package/src/models/ApiV1UsersIdPatch422Response.ts +66 -0
- package/src/models/ApiV1UsersIdPatchRequestUser.ts +16 -0
- package/src/models/ApiV1UsersPost201Response.ts +102 -0
- package/src/models/ApiV1UsersPost422Response.ts +2 -2
- package/src/models/ApiV1UsersPostRequestUser.ts +18 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,102 @@
|
|
|
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 ApiV1UsersPost201Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1UsersPost201Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1UsersPost201Response
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1UsersPost201Response
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiV1UsersPost201Response
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiV1UsersPost201Response
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApiV1UsersPost201Response
|
|
50
|
+
*/
|
|
51
|
+
timezone: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ApiV1UsersPost201Response interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfApiV1UsersPost201Response(value: object): value is ApiV1UsersPost201Response {
|
|
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;
|
|
61
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
62
|
+
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiV1UsersPost201ResponseFromJSON(json: any): ApiV1UsersPost201Response {
|
|
67
|
+
return ApiV1UsersPost201ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiV1UsersPost201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPost201Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'firstName': json['first_name'],
|
|
78
|
+
'lastName': json['last_name'],
|
|
79
|
+
'email': json['email'],
|
|
80
|
+
'timezone': json['timezone'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiV1UsersPost201ResponseToJSON(json: any): ApiV1UsersPost201Response {
|
|
85
|
+
return ApiV1UsersPost201ResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiV1UsersPost201ResponseToJSONTyped(value?: ApiV1UsersPost201Response | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'first_name': value['firstName'],
|
|
97
|
+
'last_name': value['lastName'],
|
|
98
|
+
'email': value['email'],
|
|
99
|
+
'timezone': value['timezone'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface ApiV1UsersPost422Response {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {Array<string
|
|
24
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
25
25
|
* @memberof ApiV1UsersPost422Response
|
|
26
26
|
*/
|
|
27
|
-
errors: Array<string>;
|
|
27
|
+
errors: { [key: string]: Array<string>; };
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -19,6 +19,18 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ApiV1UsersPostRequestUser
|
|
20
20
|
*/
|
|
21
21
|
export interface ApiV1UsersPostRequestUser {
|
|
22
|
+
/**
|
|
23
|
+
* User first name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
26
|
+
*/
|
|
27
|
+
firstName: string;
|
|
28
|
+
/**
|
|
29
|
+
* User last name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1UsersPostRequestUser
|
|
32
|
+
*/
|
|
33
|
+
lastName: string;
|
|
22
34
|
/**
|
|
23
35
|
* User email address
|
|
24
36
|
* @type {string}
|
|
@@ -43,6 +55,8 @@ export interface ApiV1UsersPostRequestUser {
|
|
|
43
55
|
* Check if a given object implements the ApiV1UsersPostRequestUser interface.
|
|
44
56
|
*/
|
|
45
57
|
export function instanceOfApiV1UsersPostRequestUser(value: object): value is ApiV1UsersPostRequestUser {
|
|
58
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
59
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
46
60
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
61
|
if (!('password' in value) || value['password'] === undefined) return false;
|
|
48
62
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
@@ -59,6 +73,8 @@ export function ApiV1UsersPostRequestUserFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
59
73
|
}
|
|
60
74
|
return {
|
|
61
75
|
|
|
76
|
+
'firstName': json['first_name'],
|
|
77
|
+
'lastName': json['last_name'],
|
|
62
78
|
'email': json['email'],
|
|
63
79
|
'password': json['password'],
|
|
64
80
|
'timezone': json['timezone'],
|
|
@@ -76,6 +92,8 @@ export function ApiV1UsersPostRequestUserToJSONTyped(value?: ApiV1UsersPostReque
|
|
|
76
92
|
|
|
77
93
|
return {
|
|
78
94
|
|
|
95
|
+
'first_name': value['firstName'],
|
|
96
|
+
'last_name': value['lastName'],
|
|
79
97
|
'email': value['email'],
|
|
80
98
|
'password': value['password'],
|
|
81
99
|
'timezone': value['timezone'],
|
package/src/models/index.ts
CHANGED
|
@@ -5,9 +5,18 @@ export * from './ApiV1ProfileGet401Response';
|
|
|
5
5
|
export * from './ApiV1SessionsPost200Response';
|
|
6
6
|
export * from './ApiV1SessionsPost401Response';
|
|
7
7
|
export * from './ApiV1SessionsPostRequest';
|
|
8
|
+
export * from './ApiV1TelegramLinksConsumePost200Response';
|
|
9
|
+
export * from './ApiV1TelegramLinksConsumePost422Response';
|
|
10
|
+
export * from './ApiV1TelegramLinksConsumePostRequest';
|
|
11
|
+
export * from './ApiV1TelegramLinksPost201Response';
|
|
12
|
+
export * from './ApiV1TelegramLinksTokenGet200Response';
|
|
13
|
+
export * from './ApiV1TelegramLinksTokenGet200ResponseTelegram';
|
|
14
|
+
export * from './ApiV1TelegramLinksTokenGet404Response';
|
|
8
15
|
export * from './ApiV1UsersIdPatch200Response';
|
|
16
|
+
export * from './ApiV1UsersIdPatch422Response';
|
|
9
17
|
export * from './ApiV1UsersIdPatchRequest';
|
|
10
18
|
export * from './ApiV1UsersIdPatchRequestUser';
|
|
19
|
+
export * from './ApiV1UsersPost201Response';
|
|
11
20
|
export * from './ApiV1UsersPost422Response';
|
|
12
21
|
export * from './ApiV1UsersPostRequest';
|
|
13
22
|
export * from './ApiV1UsersPostRequestUser';
|