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
package/.openapi-generator/FILES
CHANGED
|
@@ -7,16 +7,27 @@ docs/ApiV1ProfileGet401Response.md
|
|
|
7
7
|
docs/ApiV1SessionsPost200Response.md
|
|
8
8
|
docs/ApiV1SessionsPost401Response.md
|
|
9
9
|
docs/ApiV1SessionsPostRequest.md
|
|
10
|
+
docs/ApiV1TelegramLinksConsumePost200Response.md
|
|
11
|
+
docs/ApiV1TelegramLinksConsumePost422Response.md
|
|
12
|
+
docs/ApiV1TelegramLinksConsumePostRequest.md
|
|
13
|
+
docs/ApiV1TelegramLinksPost201Response.md
|
|
14
|
+
docs/ApiV1TelegramLinksTokenGet200Response.md
|
|
15
|
+
docs/ApiV1TelegramLinksTokenGet200ResponseTelegram.md
|
|
16
|
+
docs/ApiV1TelegramLinksTokenGet404Response.md
|
|
10
17
|
docs/ApiV1UsersIdPatch200Response.md
|
|
18
|
+
docs/ApiV1UsersIdPatch422Response.md
|
|
11
19
|
docs/ApiV1UsersIdPatchRequest.md
|
|
12
20
|
docs/ApiV1UsersIdPatchRequestUser.md
|
|
21
|
+
docs/ApiV1UsersPost201Response.md
|
|
13
22
|
docs/ApiV1UsersPost422Response.md
|
|
14
23
|
docs/ApiV1UsersPostRequest.md
|
|
15
24
|
docs/ApiV1UsersPostRequestUser.md
|
|
16
25
|
docs/SessionsApi.md
|
|
26
|
+
docs/TelegramLinksApi.md
|
|
17
27
|
docs/UsersApi.md
|
|
18
28
|
package.json
|
|
19
29
|
src/apis/SessionsApi.ts
|
|
30
|
+
src/apis/TelegramLinksApi.ts
|
|
20
31
|
src/apis/UsersApi.ts
|
|
21
32
|
src/apis/index.ts
|
|
22
33
|
src/index.ts
|
|
@@ -25,9 +36,18 @@ src/models/ApiV1ProfileGet401Response.ts
|
|
|
25
36
|
src/models/ApiV1SessionsPost200Response.ts
|
|
26
37
|
src/models/ApiV1SessionsPost401Response.ts
|
|
27
38
|
src/models/ApiV1SessionsPostRequest.ts
|
|
39
|
+
src/models/ApiV1TelegramLinksConsumePost200Response.ts
|
|
40
|
+
src/models/ApiV1TelegramLinksConsumePost422Response.ts
|
|
41
|
+
src/models/ApiV1TelegramLinksConsumePostRequest.ts
|
|
42
|
+
src/models/ApiV1TelegramLinksPost201Response.ts
|
|
43
|
+
src/models/ApiV1TelegramLinksTokenGet200Response.ts
|
|
44
|
+
src/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.ts
|
|
45
|
+
src/models/ApiV1TelegramLinksTokenGet404Response.ts
|
|
28
46
|
src/models/ApiV1UsersIdPatch200Response.ts
|
|
47
|
+
src/models/ApiV1UsersIdPatch422Response.ts
|
|
29
48
|
src/models/ApiV1UsersIdPatchRequest.ts
|
|
30
49
|
src/models/ApiV1UsersIdPatchRequestUser.ts
|
|
50
|
+
src/models/ApiV1UsersPost201Response.ts
|
|
31
51
|
src/models/ApiV1UsersPost422Response.ts
|
|
32
52
|
src/models/ApiV1UsersPostRequest.ts
|
|
33
53
|
src/models/ApiV1UsersPostRequestUser.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# blanche-client-sdk@0.
|
|
1
|
+
# blanche-client-sdk@0.2.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -53,6 +53,9 @@ All URIs are relative to *http://localhost:3000*
|
|
|
53
53
|
*SessionsApi* | [**apiV1SessionsDelete**](docs/SessionsApi.md#apiv1sessionsdelete) | **DELETE** /api/v1/sessions | Logout user and invalidate refresh token
|
|
54
54
|
*SessionsApi* | [**apiV1SessionsPost**](docs/SessionsApi.md#apiv1sessionspostoperation) | **POST** /api/v1/sessions | Authenticate user and return tokens
|
|
55
55
|
*SessionsApi* | [**apiV1SessionsRefreshPost**](docs/SessionsApi.md#apiv1sessionsrefreshpost) | **POST** /api/v1/sessions/refresh | Refresh tokens using a valid refresh token
|
|
56
|
+
*TelegramLinksApi* | [**apiV1TelegramLinksConsumePost**](docs/TelegramLinksApi.md#apiv1telegramlinksconsumepostoperation) | **POST** /api/v1/telegram_links/consume | Consume telegram link
|
|
57
|
+
*TelegramLinksApi* | [**apiV1TelegramLinksPost**](docs/TelegramLinksApi.md#apiv1telegramlinkspost) | **POST** /api/v1/telegram_links | Create telegram link
|
|
58
|
+
*TelegramLinksApi* | [**apiV1TelegramLinksTokenGet**](docs/TelegramLinksApi.md#apiv1telegramlinkstokenget) | **GET** /api/v1/telegram_links/{token} | Get telegram link status
|
|
56
59
|
*UsersApi* | [**apiV1ProfileGet**](docs/UsersApi.md#apiv1profileget) | **GET** /api/v1/profile | Get current user profile
|
|
57
60
|
*UsersApi* | [**apiV1UsersIdPatch**](docs/UsersApi.md#apiv1usersidpatchoperation) | **PATCH** /api/v1/users/{id} | Updates a user
|
|
58
61
|
*UsersApi* | [**apiV1UsersPost**](docs/UsersApi.md#apiv1userspostoperation) | **POST** /api/v1/users | Creates a user
|
|
@@ -65,9 +68,18 @@ All URIs are relative to *http://localhost:3000*
|
|
|
65
68
|
- [ApiV1SessionsPost200Response](docs/ApiV1SessionsPost200Response.md)
|
|
66
69
|
- [ApiV1SessionsPost401Response](docs/ApiV1SessionsPost401Response.md)
|
|
67
70
|
- [ApiV1SessionsPostRequest](docs/ApiV1SessionsPostRequest.md)
|
|
71
|
+
- [ApiV1TelegramLinksConsumePost200Response](docs/ApiV1TelegramLinksConsumePost200Response.md)
|
|
72
|
+
- [ApiV1TelegramLinksConsumePost422Response](docs/ApiV1TelegramLinksConsumePost422Response.md)
|
|
73
|
+
- [ApiV1TelegramLinksConsumePostRequest](docs/ApiV1TelegramLinksConsumePostRequest.md)
|
|
74
|
+
- [ApiV1TelegramLinksPost201Response](docs/ApiV1TelegramLinksPost201Response.md)
|
|
75
|
+
- [ApiV1TelegramLinksTokenGet200Response](docs/ApiV1TelegramLinksTokenGet200Response.md)
|
|
76
|
+
- [ApiV1TelegramLinksTokenGet200ResponseTelegram](docs/ApiV1TelegramLinksTokenGet200ResponseTelegram.md)
|
|
77
|
+
- [ApiV1TelegramLinksTokenGet404Response](docs/ApiV1TelegramLinksTokenGet404Response.md)
|
|
68
78
|
- [ApiV1UsersIdPatch200Response](docs/ApiV1UsersIdPatch200Response.md)
|
|
79
|
+
- [ApiV1UsersIdPatch422Response](docs/ApiV1UsersIdPatch422Response.md)
|
|
69
80
|
- [ApiV1UsersIdPatchRequest](docs/ApiV1UsersIdPatchRequest.md)
|
|
70
81
|
- [ApiV1UsersIdPatchRequestUser](docs/ApiV1UsersIdPatchRequestUser.md)
|
|
82
|
+
- [ApiV1UsersPost201Response](docs/ApiV1UsersPost201Response.md)
|
|
71
83
|
- [ApiV1UsersPost422Response](docs/ApiV1UsersPost422Response.md)
|
|
72
84
|
- [ApiV1UsersPostRequest](docs/ApiV1UsersPostRequest.md)
|
|
73
85
|
- [ApiV1UsersPostRequestUser](docs/ApiV1UsersPostRequestUser.md)
|
|
@@ -84,7 +96,7 @@ and is automatically generated by the
|
|
|
84
96
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
85
97
|
|
|
86
98
|
- API version: `v1`
|
|
87
|
-
- Package version: `0.
|
|
99
|
+
- Package version: `0.2.0`
|
|
88
100
|
- Generator version: `7.19.0`
|
|
89
101
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
90
102
|
|
|
@@ -0,0 +1,48 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ApiV1TelegramLinksConsumePost200Response, ApiV1TelegramLinksConsumePostRequest, ApiV1TelegramLinksPost201Response, ApiV1TelegramLinksTokenGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiV1TelegramLinksConsumePostOperationRequest {
|
|
15
|
+
apiV1TelegramLinksConsumePostRequest?: ApiV1TelegramLinksConsumePostRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiV1TelegramLinksTokenGetRequest {
|
|
18
|
+
token: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class TelegramLinksApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Consume telegram link
|
|
26
|
+
*/
|
|
27
|
+
apiV1TelegramLinksConsumePostRaw(requestParameters: ApiV1TelegramLinksConsumePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1TelegramLinksConsumePost200Response>>;
|
|
28
|
+
/**
|
|
29
|
+
* Consume telegram link
|
|
30
|
+
*/
|
|
31
|
+
apiV1TelegramLinksConsumePost(requestParameters?: ApiV1TelegramLinksConsumePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1TelegramLinksConsumePost200Response>;
|
|
32
|
+
/**
|
|
33
|
+
* Create telegram link
|
|
34
|
+
*/
|
|
35
|
+
apiV1TelegramLinksPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1TelegramLinksPost201Response>>;
|
|
36
|
+
/**
|
|
37
|
+
* Create telegram link
|
|
38
|
+
*/
|
|
39
|
+
apiV1TelegramLinksPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1TelegramLinksPost201Response>;
|
|
40
|
+
/**
|
|
41
|
+
* Get telegram link status
|
|
42
|
+
*/
|
|
43
|
+
apiV1TelegramLinksTokenGetRaw(requestParameters: ApiV1TelegramLinksTokenGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1TelegramLinksTokenGet200Response>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get telegram link status
|
|
46
|
+
*/
|
|
47
|
+
apiV1TelegramLinksTokenGet(requestParameters: ApiV1TelegramLinksTokenGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1TelegramLinksTokenGet200Response>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.TelegramLinksApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var TelegramLinksApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(TelegramLinksApi, _super);
|
|
75
|
+
function TelegramLinksApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Consume telegram link
|
|
80
|
+
*/
|
|
81
|
+
TelegramLinksApi.prototype.apiV1TelegramLinksConsumePostRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
urlPath = "/api/v1/telegram_links/consume";
|
|
91
|
+
return [4 /*yield*/, this.request({
|
|
92
|
+
path: urlPath,
|
|
93
|
+
method: 'POST',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
body: (0, index_1.ApiV1TelegramLinksConsumePostRequestToJSON)(requestParameters['apiV1TelegramLinksConsumePostRequest']),
|
|
97
|
+
}, initOverrides)];
|
|
98
|
+
case 1:
|
|
99
|
+
response = _a.sent();
|
|
100
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TelegramLinksConsumePost200ResponseFromJSON)(jsonValue); })];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Consume telegram link
|
|
107
|
+
*/
|
|
108
|
+
TelegramLinksApi.prototype.apiV1TelegramLinksConsumePost = function () {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
+
var response;
|
|
111
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, this.apiV1TelegramLinksConsumePostRaw(requestParameters, initOverrides)];
|
|
115
|
+
case 1:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
return [4 /*yield*/, response.value()];
|
|
118
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Create telegram link
|
|
125
|
+
*/
|
|
126
|
+
TelegramLinksApi.prototype.apiV1TelegramLinksPostRaw = function (initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0:
|
|
132
|
+
queryParameters = {};
|
|
133
|
+
headerParameters = {};
|
|
134
|
+
urlPath = "/api/v1/telegram_links";
|
|
135
|
+
return [4 /*yield*/, this.request({
|
|
136
|
+
path: urlPath,
|
|
137
|
+
method: 'POST',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
}, initOverrides)];
|
|
141
|
+
case 1:
|
|
142
|
+
response = _a.sent();
|
|
143
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TelegramLinksPost201ResponseFromJSON)(jsonValue); })];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Create telegram link
|
|
150
|
+
*/
|
|
151
|
+
TelegramLinksApi.prototype.apiV1TelegramLinksPost = function (initOverrides) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
153
|
+
var response;
|
|
154
|
+
return __generator(this, function (_a) {
|
|
155
|
+
switch (_a.label) {
|
|
156
|
+
case 0: return [4 /*yield*/, this.apiV1TelegramLinksPostRaw(initOverrides)];
|
|
157
|
+
case 1:
|
|
158
|
+
response = _a.sent();
|
|
159
|
+
return [4 /*yield*/, response.value()];
|
|
160
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Get telegram link status
|
|
167
|
+
*/
|
|
168
|
+
TelegramLinksApi.prototype.apiV1TelegramLinksTokenGetRaw = function (requestParameters, initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
if (requestParameters['token'] == null) {
|
|
175
|
+
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling apiV1TelegramLinksTokenGet().');
|
|
176
|
+
}
|
|
177
|
+
queryParameters = {};
|
|
178
|
+
headerParameters = {};
|
|
179
|
+
urlPath = "/api/v1/telegram_links/{token}";
|
|
180
|
+
urlPath = urlPath.replace("{".concat("token", "}"), encodeURIComponent(String(requestParameters['token'])));
|
|
181
|
+
return [4 /*yield*/, this.request({
|
|
182
|
+
path: urlPath,
|
|
183
|
+
method: 'GET',
|
|
184
|
+
headers: headerParameters,
|
|
185
|
+
query: queryParameters,
|
|
186
|
+
}, initOverrides)];
|
|
187
|
+
case 1:
|
|
188
|
+
response = _a.sent();
|
|
189
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TelegramLinksTokenGet200ResponseFromJSON)(jsonValue); })];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Get telegram link status
|
|
196
|
+
*/
|
|
197
|
+
TelegramLinksApi.prototype.apiV1TelegramLinksTokenGet = function (requestParameters, initOverrides) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var response;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
switch (_a.label) {
|
|
202
|
+
case 0: return [4 /*yield*/, this.apiV1TelegramLinksTokenGetRaw(requestParameters, initOverrides)];
|
|
203
|
+
case 1:
|
|
204
|
+
response = _a.sent();
|
|
205
|
+
return [4 /*yield*/, response.value()];
|
|
206
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
return TelegramLinksApi;
|
|
212
|
+
}(runtime.BaseAPI));
|
|
213
|
+
exports.TelegramLinksApi = TelegramLinksApi;
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiV1ProfileGet200Response, ApiV1UsersIdPatch200Response, ApiV1UsersIdPatchRequest, ApiV1UsersPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiV1ProfileGet200Response, ApiV1UsersIdPatch200Response, ApiV1UsersIdPatchRequest, ApiV1UsersPost201Response, ApiV1UsersPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiV1UsersIdPatchOperationRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
apiV1UsersIdPatchRequest?: ApiV1UsersIdPatchRequest;
|
|
@@ -41,9 +41,9 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
41
41
|
/**
|
|
42
42
|
* Creates a user
|
|
43
43
|
*/
|
|
44
|
-
apiV1UsersPostRaw(requestParameters: ApiV1UsersPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
44
|
+
apiV1UsersPostRaw(requestParameters: ApiV1UsersPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1UsersPost201Response>>;
|
|
45
45
|
/**
|
|
46
46
|
* Creates a user
|
|
47
47
|
*/
|
|
48
|
-
apiV1UsersPost(requestParameters?: ApiV1UsersPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
48
|
+
apiV1UsersPost(requestParameters?: ApiV1UsersPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1UsersPost201Response>;
|
|
49
49
|
}
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -187,7 +187,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
187
187
|
}, initOverrides)];
|
|
188
188
|
case 1:
|
|
189
189
|
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
190
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1UsersPost201ResponseFromJSON)(jsonValue); })];
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
});
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./SessionsApi"), exports);
|
|
20
|
+
__exportStar(require("./TelegramLinksApi"), exports);
|
|
20
21
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -21,6 +21,18 @@ export interface ApiV1ProfileGet200Response {
|
|
|
21
21
|
* @memberof ApiV1ProfileGet200Response
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ProfileGet200Response
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1ProfileGet200Response
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
24
36
|
/**
|
|
25
37
|
*
|
|
26
38
|
* @type {string}
|
|
@@ -33,6 +45,12 @@ export interface ApiV1ProfileGet200Response {
|
|
|
33
45
|
* @memberof ApiV1ProfileGet200Response
|
|
34
46
|
*/
|
|
35
47
|
timezone: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ApiV1ProfileGet200Response
|
|
52
|
+
*/
|
|
53
|
+
telegramConnected: boolean;
|
|
36
54
|
}
|
|
37
55
|
/**
|
|
38
56
|
* Check if a given object implements the ApiV1ProfileGet200Response interface.
|
|
@@ -24,10 +24,16 @@ exports.ApiV1ProfileGet200ResponseToJSONTyped = ApiV1ProfileGet200ResponseToJSON
|
|
|
24
24
|
function instanceOfApiV1ProfileGet200Response(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)
|
|
30
34
|
return false;
|
|
35
|
+
if (!('telegramConnected' in value) || value['telegramConnected'] === undefined)
|
|
36
|
+
return false;
|
|
31
37
|
return true;
|
|
32
38
|
}
|
|
33
39
|
function ApiV1ProfileGet200ResponseFromJSON(json) {
|
|
@@ -39,8 +45,11 @@ function ApiV1ProfileGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
45
|
}
|
|
40
46
|
return {
|
|
41
47
|
'id': json['id'],
|
|
48
|
+
'firstName': json['first_name'],
|
|
49
|
+
'lastName': json['last_name'],
|
|
42
50
|
'email': json['email'],
|
|
43
51
|
'timezone': json['timezone'],
|
|
52
|
+
'telegramConnected': json['telegram_connected'],
|
|
44
53
|
};
|
|
45
54
|
}
|
|
46
55
|
function ApiV1ProfileGet200ResponseToJSON(json) {
|
|
@@ -53,7 +62,10 @@ function ApiV1ProfileGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
62
|
}
|
|
54
63
|
return {
|
|
55
64
|
'id': value['id'],
|
|
65
|
+
'first_name': value['firstName'],
|
|
66
|
+
'last_name': value['lastName'],
|
|
56
67
|
'email': value['email'],
|
|
57
68
|
'timezone': value['timezone'],
|
|
69
|
+
'telegram_connected': value['telegramConnected'],
|
|
58
70
|
};
|
|
59
71
|
}
|
|
@@ -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 ApiV1TelegramLinksConsumePost200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1TelegramLinksConsumePost200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1TelegramLinksConsumePost200Response
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1TelegramLinksConsumePost200Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1TelegramLinksConsumePost200Response(value: object): value is ApiV1TelegramLinksConsumePost200Response;
|
|
29
|
+
export declare function ApiV1TelegramLinksConsumePost200ResponseFromJSON(json: any): ApiV1TelegramLinksConsumePost200Response;
|
|
30
|
+
export declare function ApiV1TelegramLinksConsumePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksConsumePost200Response;
|
|
31
|
+
export declare function ApiV1TelegramLinksConsumePost200ResponseToJSON(json: any): ApiV1TelegramLinksConsumePost200Response;
|
|
32
|
+
export declare function ApiV1TelegramLinksConsumePost200ResponseToJSONTyped(value?: ApiV1TelegramLinksConsumePost200Response | 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.instanceOfApiV1TelegramLinksConsumePost200Response = instanceOfApiV1TelegramLinksConsumePost200Response;
|
|
17
|
+
exports.ApiV1TelegramLinksConsumePost200ResponseFromJSON = ApiV1TelegramLinksConsumePost200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksConsumePost200ResponseFromJSONTyped = ApiV1TelegramLinksConsumePost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksConsumePost200ResponseToJSON = ApiV1TelegramLinksConsumePost200ResponseToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksConsumePost200ResponseToJSONTyped = ApiV1TelegramLinksConsumePost200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1TelegramLinksConsumePost200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1TelegramLinksConsumePost200Response(value) {
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1TelegramLinksConsumePost200ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1TelegramLinksConsumePost200ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1TelegramLinksConsumePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'status': json['status'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1TelegramLinksConsumePost200ResponseToJSON(json) {
|
|
41
|
+
return ApiV1TelegramLinksConsumePost200ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1TelegramLinksConsumePost200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': value['status'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 ApiV1TelegramLinksConsumePost422Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1TelegramLinksConsumePost422Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
21
|
+
* @memberof ApiV1TelegramLinksConsumePost422Response
|
|
22
|
+
*/
|
|
23
|
+
errors: {
|
|
24
|
+
[key: string]: Array<string>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ApiV1TelegramLinksConsumePost422Response interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfApiV1TelegramLinksConsumePost422Response(value: object): value is ApiV1TelegramLinksConsumePost422Response;
|
|
31
|
+
export declare function ApiV1TelegramLinksConsumePost422ResponseFromJSON(json: any): ApiV1TelegramLinksConsumePost422Response;
|
|
32
|
+
export declare function ApiV1TelegramLinksConsumePost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TelegramLinksConsumePost422Response;
|
|
33
|
+
export declare function ApiV1TelegramLinksConsumePost422ResponseToJSON(json: any): ApiV1TelegramLinksConsumePost422Response;
|
|
34
|
+
export declare function ApiV1TelegramLinksConsumePost422ResponseToJSONTyped(value?: ApiV1TelegramLinksConsumePost422Response | 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.instanceOfApiV1TelegramLinksConsumePost422Response = instanceOfApiV1TelegramLinksConsumePost422Response;
|
|
17
|
+
exports.ApiV1TelegramLinksConsumePost422ResponseFromJSON = ApiV1TelegramLinksConsumePost422ResponseFromJSON;
|
|
18
|
+
exports.ApiV1TelegramLinksConsumePost422ResponseFromJSONTyped = ApiV1TelegramLinksConsumePost422ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1TelegramLinksConsumePost422ResponseToJSON = ApiV1TelegramLinksConsumePost422ResponseToJSON;
|
|
20
|
+
exports.ApiV1TelegramLinksConsumePost422ResponseToJSONTyped = ApiV1TelegramLinksConsumePost422ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1TelegramLinksConsumePost422Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1TelegramLinksConsumePost422Response(value) {
|
|
25
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1TelegramLinksConsumePost422ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1TelegramLinksConsumePost422ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1TelegramLinksConsumePost422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'errors': json['errors'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1TelegramLinksConsumePost422ResponseToJSON(json) {
|
|
41
|
+
return ApiV1TelegramLinksConsumePost422ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1TelegramLinksConsumePost422ResponseToJSONTyped(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
|
+
}
|