blanche-client-sdk 0.1.3 → 0.2.0
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,62 @@
|
|
|
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 ApiV1TelegramLinksConsumePostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1TelegramLinksConsumePostRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Telegram link token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1TelegramLinksConsumePostRequest
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
/**
|
|
25
|
+
* Telegram user ID
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ApiV1TelegramLinksConsumePostRequest
|
|
28
|
+
*/
|
|
29
|
+
telegramId: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1TelegramLinksConsumePostRequest
|
|
34
|
+
*/
|
|
35
|
+
username?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiV1TelegramLinksConsumePostRequest
|
|
40
|
+
*/
|
|
41
|
+
firstName?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiV1TelegramLinksConsumePostRequest
|
|
46
|
+
*/
|
|
47
|
+
lastName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiV1TelegramLinksConsumePostRequest
|
|
52
|
+
*/
|
|
53
|
+
languageCode?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ApiV1TelegramLinksConsumePostRequest interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfApiV1TelegramLinksConsumePostRequest(value: object): value is ApiV1TelegramLinksConsumePostRequest;
|
|
59
|
+
export declare function ApiV1TelegramLinksConsumePostRequestFromJSON(json: any): ApiV1TelegramLinksConsumePostRequest;
|
|
60
|
+
export declare function ApiV1TelegramLinksConsumePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksConsumePostRequest;
|
|
61
|
+
export declare function ApiV1TelegramLinksConsumePostRequestToJSON(json: any): ApiV1TelegramLinksConsumePostRequest;
|
|
62
|
+
export declare function ApiV1TelegramLinksConsumePostRequestToJSONTyped(value?: ApiV1TelegramLinksConsumePostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfApiV1TelegramLinksConsumePostRequest = instanceOfApiV1TelegramLinksConsumePostRequest;
|
|
17
|
+
exports.ApiV1TelegramLinksConsumePostRequestFromJSON = ApiV1TelegramLinksConsumePostRequestFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksConsumePostRequestFromJSONTyped = ApiV1TelegramLinksConsumePostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksConsumePostRequestToJSON = ApiV1TelegramLinksConsumePostRequestToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksConsumePostRequestToJSONTyped = ApiV1TelegramLinksConsumePostRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1TelegramLinksConsumePostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1TelegramLinksConsumePostRequest(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('telegramId' in value) || value['telegramId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiV1TelegramLinksConsumePostRequestFromJSON(json) {
|
|
32
|
+
return ApiV1TelegramLinksConsumePostRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiV1TelegramLinksConsumePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'token': json['token'],
|
|
40
|
+
'telegramId': json['telegram_id'],
|
|
41
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
42
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
43
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
44
|
+
'languageCode': json['language_code'] == null ? undefined : json['language_code'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function ApiV1TelegramLinksConsumePostRequestToJSON(json) {
|
|
48
|
+
return ApiV1TelegramLinksConsumePostRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ApiV1TelegramLinksConsumePostRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'token': value['token'],
|
|
57
|
+
'telegram_id': value['telegramId'],
|
|
58
|
+
'username': value['username'],
|
|
59
|
+
'first_name': value['firstName'],
|
|
60
|
+
'last_name': value['lastName'],
|
|
61
|
+
'language_code': value['languageCode'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ApiV1TelegramLinksPost201Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1TelegramLinksPost201Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1TelegramLinksPost201Response
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1TelegramLinksPost201Response
|
|
28
|
+
*/
|
|
29
|
+
expiresAt: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiV1TelegramLinksPost201Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiV1TelegramLinksPost201Response(value: object): value is ApiV1TelegramLinksPost201Response;
|
|
35
|
+
export declare function ApiV1TelegramLinksPost201ResponseFromJSON(json: any): ApiV1TelegramLinksPost201Response;
|
|
36
|
+
export declare function ApiV1TelegramLinksPost201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksPost201Response;
|
|
37
|
+
export declare function ApiV1TelegramLinksPost201ResponseToJSON(json: any): ApiV1TelegramLinksPost201Response;
|
|
38
|
+
export declare function ApiV1TelegramLinksPost201ResponseToJSONTyped(value?: ApiV1TelegramLinksPost201Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfApiV1TelegramLinksPost201Response = instanceOfApiV1TelegramLinksPost201Response;
|
|
17
|
+
exports.ApiV1TelegramLinksPost201ResponseFromJSON = ApiV1TelegramLinksPost201ResponseFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksPost201ResponseFromJSONTyped = ApiV1TelegramLinksPost201ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksPost201ResponseToJSON = ApiV1TelegramLinksPost201ResponseToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksPost201ResponseToJSONTyped = ApiV1TelegramLinksPost201ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1TelegramLinksPost201Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1TelegramLinksPost201Response(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiV1TelegramLinksPost201ResponseFromJSON(json) {
|
|
32
|
+
return ApiV1TelegramLinksPost201ResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiV1TelegramLinksPost201ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'token': json['token'],
|
|
40
|
+
'expiresAt': json['expires_at'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiV1TelegramLinksPost201ResponseToJSON(json) {
|
|
44
|
+
return ApiV1TelegramLinksPost201ResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiV1TelegramLinksPost201ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'token': value['token'],
|
|
53
|
+
'expires_at': value['expiresAt'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { ApiV1TelegramLinksTokenGet200ResponseTelegram } from './ApiV1TelegramLinksTokenGet200ResponseTelegram';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1TelegramLinksTokenGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1TelegramLinksTokenGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiV1TelegramLinksTokenGet200Response
|
|
23
|
+
*/
|
|
24
|
+
token: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiV1TelegramLinksTokenGet200Response
|
|
29
|
+
*/
|
|
30
|
+
expiresAt: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiV1TelegramLinksTokenGet200Response
|
|
35
|
+
*/
|
|
36
|
+
consumedAt?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ApiV1TelegramLinksTokenGet200Response
|
|
41
|
+
*/
|
|
42
|
+
linked: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ApiV1TelegramLinksTokenGet200ResponseTelegram}
|
|
46
|
+
* @memberof ApiV1TelegramLinksTokenGet200Response
|
|
47
|
+
*/
|
|
48
|
+
telegram: ApiV1TelegramLinksTokenGet200ResponseTelegram;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiV1TelegramLinksTokenGet200Response interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiV1TelegramLinksTokenGet200Response(value: object): value is ApiV1TelegramLinksTokenGet200Response;
|
|
54
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseFromJSON(json: any): ApiV1TelegramLinksTokenGet200Response;
|
|
55
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksTokenGet200Response;
|
|
56
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseToJSON(json: any): ApiV1TelegramLinksTokenGet200Response;
|
|
57
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseToJSONTyped(value?: ApiV1TelegramLinksTokenGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfApiV1TelegramLinksTokenGet200Response = instanceOfApiV1TelegramLinksTokenGet200Response;
|
|
17
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseFromJSON = ApiV1TelegramLinksTokenGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped = ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseToJSON = ApiV1TelegramLinksTokenGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseToJSONTyped = ApiV1TelegramLinksTokenGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1TelegramLinksTokenGet200ResponseTelegram_1 = require("./ApiV1TelegramLinksTokenGet200ResponseTelegram");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1TelegramLinksTokenGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1TelegramLinksTokenGet200Response(value) {
|
|
26
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('linked' in value) || value['linked'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('telegram' in value) || value['telegram'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ApiV1TelegramLinksTokenGet200ResponseFromJSON(json) {
|
|
37
|
+
return ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ApiV1TelegramLinksTokenGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'token': json['token'],
|
|
45
|
+
'expiresAt': json['expires_at'],
|
|
46
|
+
'consumedAt': json['consumed_at'] == null ? undefined : json['consumed_at'],
|
|
47
|
+
'linked': json['linked'],
|
|
48
|
+
'telegram': (0, ApiV1TelegramLinksTokenGet200ResponseTelegram_1.ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON)(json['telegram']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ApiV1TelegramLinksTokenGet200ResponseToJSON(json) {
|
|
52
|
+
return ApiV1TelegramLinksTokenGet200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ApiV1TelegramLinksTokenGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'token': value['token'],
|
|
61
|
+
'expires_at': value['expiresAt'],
|
|
62
|
+
'consumed_at': value['consumedAt'],
|
|
63
|
+
'linked': value['linked'],
|
|
64
|
+
'telegram': (0, ApiV1TelegramLinksTokenGet200ResponseTelegram_1.ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON)(value['telegram']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 ApiV1TelegramLinksTokenGet200ResponseTelegram
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1TelegramLinksTokenGet200ResponseTelegram {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
|
|
28
|
+
*/
|
|
29
|
+
username?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
|
|
34
|
+
*/
|
|
35
|
+
firstName?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
|
|
40
|
+
*/
|
|
41
|
+
lastName?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiV1TelegramLinksTokenGet200ResponseTelegram
|
|
46
|
+
*/
|
|
47
|
+
languageCode?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ApiV1TelegramLinksTokenGet200ResponseTelegram interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfApiV1TelegramLinksTokenGet200ResponseTelegram(value: object): value is ApiV1TelegramLinksTokenGet200ResponseTelegram;
|
|
53
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON(json: any): ApiV1TelegramLinksTokenGet200ResponseTelegram;
|
|
54
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksTokenGet200ResponseTelegram;
|
|
55
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON(json: any): ApiV1TelegramLinksTokenGet200ResponseTelegram;
|
|
56
|
+
export declare function ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped(value?: ApiV1TelegramLinksTokenGet200ResponseTelegram | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfApiV1TelegramLinksTokenGet200ResponseTelegram = instanceOfApiV1TelegramLinksTokenGet200ResponseTelegram;
|
|
17
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON = ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped = ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON = ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped = ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1TelegramLinksTokenGet200ResponseTelegram interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1TelegramLinksTokenGet200ResponseTelegram(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSON(json) {
|
|
28
|
+
return ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ApiV1TelegramLinksTokenGet200ResponseTelegramFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
37
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
38
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
39
|
+
'languageCode': json['language_code'] == null ? undefined : json['language_code'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ApiV1TelegramLinksTokenGet200ResponseTelegramToJSON(json) {
|
|
43
|
+
return ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ApiV1TelegramLinksTokenGet200ResponseTelegramToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'username': value['username'],
|
|
53
|
+
'first_name': value['firstName'],
|
|
54
|
+
'last_name': value['lastName'],
|
|
55
|
+
'language_code': value['languageCode'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 ApiV1TelegramLinksTokenGet404Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1TelegramLinksTokenGet404Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1TelegramLinksTokenGet404Response
|
|
22
|
+
*/
|
|
23
|
+
error: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1TelegramLinksTokenGet404Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1TelegramLinksTokenGet404Response(value: object): value is ApiV1TelegramLinksTokenGet404Response;
|
|
29
|
+
export declare function ApiV1TelegramLinksTokenGet404ResponseFromJSON(json: any): ApiV1TelegramLinksTokenGet404Response;
|
|
30
|
+
export declare function ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksTokenGet404Response;
|
|
31
|
+
export declare function ApiV1TelegramLinksTokenGet404ResponseToJSON(json: any): ApiV1TelegramLinksTokenGet404Response;
|
|
32
|
+
export declare function ApiV1TelegramLinksTokenGet404ResponseToJSONTyped(value?: ApiV1TelegramLinksTokenGet404Response | 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.instanceOfApiV1TelegramLinksTokenGet404Response = instanceOfApiV1TelegramLinksTokenGet404Response;
|
|
17
|
+
exports.ApiV1TelegramLinksTokenGet404ResponseFromJSON = ApiV1TelegramLinksTokenGet404ResponseFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped = ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksTokenGet404ResponseToJSON = ApiV1TelegramLinksTokenGet404ResponseToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksTokenGet404ResponseToJSONTyped = ApiV1TelegramLinksTokenGet404ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1TelegramLinksTokenGet404Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1TelegramLinksTokenGet404Response(value) {
|
|
25
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1TelegramLinksTokenGet404ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1TelegramLinksTokenGet404ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'error': json['error'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1TelegramLinksTokenGet404ResponseToJSON(json) {
|
|
41
|
+
return ApiV1TelegramLinksTokenGet404ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1TelegramLinksTokenGet404ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'error': value['error'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -21,6 +21,18 @@ export interface ApiV1UsersIdPatch200Response {
|
|
|
21
21
|
* @memberof ApiV1UsersIdPatch200Response
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1UsersIdPatch200Response
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
24
36
|
/**
|
|
25
37
|
*
|
|
26
38
|
* @type {string}
|
|
@@ -24,6 +24,10 @@ exports.ApiV1UsersIdPatch200ResponseToJSONTyped = ApiV1UsersIdPatch200ResponseTo
|
|
|
24
24
|
function instanceOfApiV1UsersIdPatch200Response(value) {
|
|
25
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
27
31
|
if (!('email' in value) || value['email'] === undefined)
|
|
28
32
|
return false;
|
|
29
33
|
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
@@ -39,6 +43,8 @@ function ApiV1UsersIdPatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
41
45
|
'id': json['id'],
|
|
46
|
+
'firstName': json['first_name'],
|
|
47
|
+
'lastName': json['last_name'],
|
|
42
48
|
'email': json['email'],
|
|
43
49
|
'timezone': json['timezone'],
|
|
44
50
|
};
|
|
@@ -53,6 +59,8 @@ function ApiV1UsersIdPatch200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
59
|
}
|
|
54
60
|
return {
|
|
55
61
|
'id': value['id'],
|
|
62
|
+
'first_name': value['firstName'],
|
|
63
|
+
'last_name': value['lastName'],
|
|
56
64
|
'email': value['email'],
|
|
57
65
|
'timezone': value['timezone'],
|
|
58
66
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 ApiV1UsersIdPatch422Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1UsersIdPatch422Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
21
|
+
* @memberof ApiV1UsersIdPatch422Response
|
|
22
|
+
*/
|
|
23
|
+
errors: {
|
|
24
|
+
[key: string]: Array<string>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ApiV1UsersIdPatch422Response interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfApiV1UsersIdPatch422Response(value: object): value is ApiV1UsersIdPatch422Response;
|
|
31
|
+
export declare function ApiV1UsersIdPatch422ResponseFromJSON(json: any): ApiV1UsersIdPatch422Response;
|
|
32
|
+
export declare function ApiV1UsersIdPatch422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersIdPatch422Response;
|
|
33
|
+
export declare function ApiV1UsersIdPatch422ResponseToJSON(json: any): ApiV1UsersIdPatch422Response;
|
|
34
|
+
export declare function ApiV1UsersIdPatch422ResponseToJSONTyped(value?: ApiV1UsersIdPatch422Response | 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.instanceOfApiV1UsersIdPatch422Response = instanceOfApiV1UsersIdPatch422Response;
|
|
17
|
+
exports.ApiV1UsersIdPatch422ResponseFromJSON = ApiV1UsersIdPatch422ResponseFromJSON;
|
|
18
|
+
exports.ApiV1UsersIdPatch422ResponseFromJSONTyped = ApiV1UsersIdPatch422ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1UsersIdPatch422ResponseToJSON = ApiV1UsersIdPatch422ResponseToJSON;
|
|
20
|
+
exports.ApiV1UsersIdPatch422ResponseToJSONTyped = ApiV1UsersIdPatch422ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1UsersIdPatch422Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1UsersIdPatch422Response(value) {
|
|
25
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1UsersIdPatch422ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1UsersIdPatch422ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1UsersIdPatch422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'errors': json['errors'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1UsersIdPatch422ResponseToJSON(json) {
|
|
41
|
+
return ApiV1UsersIdPatch422ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1UsersIdPatch422ResponseToJSONTyped(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
|
+
}
|