blanche-client-sdk 0.3.0 → 0.5.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 +16 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +25 -11
- package/dist/apis/RecordsApi.d.ts +81 -0
- package/dist/apis/RecordsApi.js +324 -0
- package/dist/apis/SessionsApi.d.ts +12 -0
- package/dist/apis/SessionsApi.js +86 -47
- package/dist/apis/TelegramLinksApi.d.ts +12 -0
- package/dist/apis/TelegramLinksApi.js +78 -39
- package/dist/apis/TemplatesApi.d.ts +16 -0
- package/dist/apis/TemplatesApi.js +111 -59
- package/dist/apis/UsersApi.d.ts +12 -0
- package/dist/apis/UsersApi.js +80 -41
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiV1RecordsGet200Response.d.ts +51 -0
- package/dist/models/ApiV1RecordsGet200Response.js +64 -0
- package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.d.ts +56 -0
- package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.js +67 -0
- package/dist/models/ApiV1RecordsIdDelete200Response.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdDelete200Response.js +51 -0
- package/dist/models/ApiV1RecordsIdGet200Response.d.ts +62 -0
- package/dist/models/ApiV1RecordsIdGet200Response.js +71 -0
- package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +50 -0
- package/dist/models/ApiV1RecordsIdPatch200Response.js +63 -0
- package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdPatch422Response.js +51 -0
- package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdPatchRequest.js +51 -0
- package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.d.ts +6 -0
- package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.js +2 -0
- package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.d.ts +6 -0
- package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.js +2 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/docs/ApiV1RecordsGet200Response.md +40 -0
- package/docs/ApiV1RecordsGet200ResponseRecordsInner.md +42 -0
- package/docs/ApiV1RecordsIdDelete200Response.md +34 -0
- package/docs/ApiV1RecordsIdGet200Response.md +44 -0
- package/docs/ApiV1RecordsIdPatch200Response.md +40 -0
- package/docs/{ApiV1TemplatesPost422Response.md → ApiV1RecordsIdPatch422Response.md} +4 -4
- package/docs/ApiV1RecordsIdPatchRequest.md +34 -0
- package/docs/ApiV1TemplatesGet200ResponseTemplatesInner.md +2 -0
- package/docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md +2 -0
- package/docs/RecordsApi.md +282 -0
- package/package.json +1 -1
- package/src/apis/RecordsApi.ts +251 -0
- package/src/apis/SessionsApi.ts +36 -12
- package/src/apis/TelegramLinksApi.ts +36 -12
- package/src/apis/TemplatesApi.ts +51 -19
- package/src/apis/UsersApi.ts +36 -12
- package/src/apis/index.ts +1 -0
- package/src/models/ApiV1RecordsGet200Response.ts +101 -0
- package/src/models/ApiV1RecordsGet200ResponseRecordsInner.ts +102 -0
- package/src/models/ApiV1RecordsIdDelete200Response.ts +66 -0
- package/src/models/ApiV1RecordsIdGet200Response.ts +111 -0
- package/src/models/ApiV1RecordsIdPatch200Response.ts +93 -0
- package/src/models/ApiV1RecordsIdPatch422Response.ts +66 -0
- package/src/models/ApiV1RecordsIdPatchRequest.ts +66 -0
- package/src/models/ApiV1TemplatesGet200ResponseTemplatesInner.ts +8 -0
- package/src/models/ApiV1TemplatesIdGet200ResponseSchemasInner.ts +8 -0
- package/src/models/index.ts +7 -1
- package/dist/models/ApiV1TemplatesPost422Response.d.ts +0 -32
- package/dist/models/ApiV1TemplatesPost422Response.js +0 -51
- package/src/models/ApiV1TemplatesPost422Response.ts +0 -66
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export interface ApiV1UsersPostOperationRequest {
|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
export declare class UsersApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for apiV1ProfileGet without sending the request
|
|
27
|
+
*/
|
|
28
|
+
apiV1ProfileGetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
25
29
|
/**
|
|
26
30
|
* Get current user profile
|
|
27
31
|
*/
|
|
@@ -30,6 +34,10 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
30
34
|
* Get current user profile
|
|
31
35
|
*/
|
|
32
36
|
apiV1ProfileGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ProfileGet200Response>;
|
|
37
|
+
/**
|
|
38
|
+
* Creates request options for apiV1UsersIdPatch without sending the request
|
|
39
|
+
*/
|
|
40
|
+
apiV1UsersIdPatchRequestOpts(requestParameters: ApiV1UsersIdPatchOperationRequest): Promise<runtime.RequestOpts>;
|
|
33
41
|
/**
|
|
34
42
|
* Updates a user
|
|
35
43
|
*/
|
|
@@ -38,6 +46,10 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
38
46
|
* Updates a user
|
|
39
47
|
*/
|
|
40
48
|
apiV1UsersIdPatch(requestParameters: ApiV1UsersIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1UsersIdPatch200Response>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for apiV1UsersPost without sending the request
|
|
51
|
+
*/
|
|
52
|
+
apiV1UsersPostRequestOpts(requestParameters: ApiV1UsersPostOperationRequest): Promise<runtime.RequestOpts>;
|
|
41
53
|
/**
|
|
42
54
|
* Creates a user
|
|
43
55
|
*/
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -75,25 +75,38 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function UsersApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for apiV1ProfileGet without sending the request
|
|
80
|
+
*/
|
|
81
|
+
UsersApi.prototype.apiV1ProfileGetRequestOpts = function () {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
queryParameters = {};
|
|
86
|
+
headerParameters = {};
|
|
87
|
+
urlPath = "/api/v1/profile";
|
|
88
|
+
return [2 /*return*/, {
|
|
89
|
+
path: urlPath,
|
|
90
|
+
method: 'GET',
|
|
91
|
+
headers: headerParameters,
|
|
92
|
+
query: queryParameters,
|
|
93
|
+
}];
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
};
|
|
78
97
|
/**
|
|
79
98
|
* Get current user profile
|
|
80
99
|
*/
|
|
81
100
|
UsersApi.prototype.apiV1ProfileGetRaw = function (initOverrides) {
|
|
82
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
102
|
+
var requestOptions, response;
|
|
84
103
|
return __generator(this, function (_a) {
|
|
85
104
|
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
urlPath = "/api/v1/profile";
|
|
90
|
-
return [4 /*yield*/, this.request({
|
|
91
|
-
path: urlPath,
|
|
92
|
-
method: 'GET',
|
|
93
|
-
headers: headerParameters,
|
|
94
|
-
query: queryParameters,
|
|
95
|
-
}, initOverrides)];
|
|
105
|
+
case 0: return [4 /*yield*/, this.apiV1ProfileGetRequestOpts()];
|
|
96
106
|
case 1:
|
|
107
|
+
requestOptions = _a.sent();
|
|
108
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
109
|
+
case 2:
|
|
97
110
|
response = _a.sent();
|
|
98
111
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1ProfileGet200ResponseFromJSON)(jsonValue); })];
|
|
99
112
|
}
|
|
@@ -117,31 +130,44 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
117
130
|
});
|
|
118
131
|
});
|
|
119
132
|
};
|
|
133
|
+
/**
|
|
134
|
+
* Creates request options for apiV1UsersIdPatch without sending the request
|
|
135
|
+
*/
|
|
136
|
+
UsersApi.prototype.apiV1UsersIdPatchRequestOpts = function (requestParameters) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
+
var queryParameters, headerParameters, urlPath;
|
|
139
|
+
return __generator(this, function (_a) {
|
|
140
|
+
if (requestParameters['id'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1UsersIdPatch().');
|
|
142
|
+
}
|
|
143
|
+
queryParameters = {};
|
|
144
|
+
headerParameters = {};
|
|
145
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
+
urlPath = "/api/v1/users/{id}";
|
|
147
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
148
|
+
return [2 /*return*/, {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'PATCH',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
body: (0, index_1.ApiV1UsersIdPatchRequestToJSON)(requestParameters['apiV1UsersIdPatchRequest']),
|
|
154
|
+
}];
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
};
|
|
120
158
|
/**
|
|
121
159
|
* Updates a user
|
|
122
160
|
*/
|
|
123
161
|
UsersApi.prototype.apiV1UsersIdPatchRaw = function (requestParameters, initOverrides) {
|
|
124
162
|
return __awaiter(this, void 0, void 0, function () {
|
|
125
|
-
var
|
|
163
|
+
var requestOptions, response;
|
|
126
164
|
return __generator(this, function (_a) {
|
|
127
165
|
switch (_a.label) {
|
|
128
|
-
case 0:
|
|
129
|
-
if (requestParameters['id'] == null) {
|
|
130
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1UsersIdPatch().');
|
|
131
|
-
}
|
|
132
|
-
queryParameters = {};
|
|
133
|
-
headerParameters = {};
|
|
134
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
135
|
-
urlPath = "/api/v1/users/{id}";
|
|
136
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
137
|
-
return [4 /*yield*/, this.request({
|
|
138
|
-
path: urlPath,
|
|
139
|
-
method: 'PATCH',
|
|
140
|
-
headers: headerParameters,
|
|
141
|
-
query: queryParameters,
|
|
142
|
-
body: (0, index_1.ApiV1UsersIdPatchRequestToJSON)(requestParameters['apiV1UsersIdPatchRequest']),
|
|
143
|
-
}, initOverrides)];
|
|
166
|
+
case 0: return [4 /*yield*/, this.apiV1UsersIdPatchRequestOpts(requestParameters)];
|
|
144
167
|
case 1:
|
|
168
|
+
requestOptions = _a.sent();
|
|
169
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
170
|
+
case 2:
|
|
145
171
|
response = _a.sent();
|
|
146
172
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1UsersIdPatch200ResponseFromJSON)(jsonValue); })];
|
|
147
173
|
}
|
|
@@ -165,27 +191,40 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
165
191
|
});
|
|
166
192
|
});
|
|
167
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
* Creates request options for apiV1UsersPost without sending the request
|
|
196
|
+
*/
|
|
197
|
+
UsersApi.prototype.apiV1UsersPostRequestOpts = function (requestParameters) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var queryParameters, headerParameters, urlPath;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
queryParameters = {};
|
|
202
|
+
headerParameters = {};
|
|
203
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
204
|
+
urlPath = "/api/v1/users";
|
|
205
|
+
return [2 /*return*/, {
|
|
206
|
+
path: urlPath,
|
|
207
|
+
method: 'POST',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
body: (0, index_1.ApiV1UsersPostRequestToJSON)(requestParameters['apiV1UsersPostRequest']),
|
|
211
|
+
}];
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
168
215
|
/**
|
|
169
216
|
* Creates a user
|
|
170
217
|
*/
|
|
171
218
|
UsersApi.prototype.apiV1UsersPostRaw = function (requestParameters, initOverrides) {
|
|
172
219
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
-
var
|
|
220
|
+
var requestOptions, response;
|
|
174
221
|
return __generator(this, function (_a) {
|
|
175
222
|
switch (_a.label) {
|
|
176
|
-
case 0:
|
|
177
|
-
queryParameters = {};
|
|
178
|
-
headerParameters = {};
|
|
179
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
180
|
-
urlPath = "/api/v1/users";
|
|
181
|
-
return [4 /*yield*/, this.request({
|
|
182
|
-
path: urlPath,
|
|
183
|
-
method: 'POST',
|
|
184
|
-
headers: headerParameters,
|
|
185
|
-
query: queryParameters,
|
|
186
|
-
body: (0, index_1.ApiV1UsersPostRequestToJSON)(requestParameters['apiV1UsersPostRequest']),
|
|
187
|
-
}, initOverrides)];
|
|
223
|
+
case 0: return [4 /*yield*/, this.apiV1UsersPostRequestOpts(requestParameters)];
|
|
188
224
|
case 1:
|
|
225
|
+
requestOptions = _a.sent();
|
|
226
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
227
|
+
case 2:
|
|
189
228
|
response = _a.sent();
|
|
190
229
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1UsersPost201ResponseFromJSON)(jsonValue); })];
|
|
191
230
|
}
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./RecordsApi"), exports);
|
|
19
20
|
__exportStar(require("./SessionsApi"), exports);
|
|
20
21
|
__exportStar(require("./TelegramLinksApi"), exports);
|
|
21
22
|
__exportStar(require("./TemplatesApi"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ApiV1RecordsGet200ResponseRecordsInner } from './ApiV1RecordsGet200ResponseRecordsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1RecordsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1RecordsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiV1RecordsGet200ResponseRecordsInner>}
|
|
22
|
+
* @memberof ApiV1RecordsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
records: Array<ApiV1RecordsGet200ResponseRecordsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiV1RecordsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiV1RecordsGet200Response
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiV1RecordsGet200Response
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiV1RecordsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiV1RecordsGet200Response(value: object): value is ApiV1RecordsGet200Response;
|
|
48
|
+
export declare function ApiV1RecordsGet200ResponseFromJSON(json: any): ApiV1RecordsGet200Response;
|
|
49
|
+
export declare function ApiV1RecordsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsGet200Response;
|
|
50
|
+
export declare function ApiV1RecordsGet200ResponseToJSON(json: any): ApiV1RecordsGet200Response;
|
|
51
|
+
export declare function ApiV1RecordsGet200ResponseToJSONTyped(value?: ApiV1RecordsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfApiV1RecordsGet200Response = instanceOfApiV1RecordsGet200Response;
|
|
17
|
+
exports.ApiV1RecordsGet200ResponseFromJSON = ApiV1RecordsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1RecordsGet200ResponseFromJSONTyped = ApiV1RecordsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsGet200ResponseToJSON = ApiV1RecordsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1RecordsGet200ResponseToJSONTyped = ApiV1RecordsGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1RecordsGet200ResponseRecordsInner_1 = require("./ApiV1RecordsGet200ResponseRecordsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1RecordsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1RecordsGet200Response(value) {
|
|
26
|
+
if (!('records' in value) || value['records'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ApiV1RecordsGet200ResponseFromJSON(json) {
|
|
37
|
+
return ApiV1RecordsGet200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ApiV1RecordsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'records': (json['records'].map(ApiV1RecordsGet200ResponseRecordsInner_1.ApiV1RecordsGet200ResponseRecordsInnerFromJSON)),
|
|
45
|
+
'total': json['total'],
|
|
46
|
+
'limit': json['limit'],
|
|
47
|
+
'offset': json['offset'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ApiV1RecordsGet200ResponseToJSON(json) {
|
|
51
|
+
return ApiV1RecordsGet200ResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ApiV1RecordsGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'records': (value['records'].map(ApiV1RecordsGet200ResponseRecordsInner_1.ApiV1RecordsGet200ResponseRecordsInnerToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 ApiV1RecordsGet200ResponseRecordsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1RecordsGet200ResponseRecordsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
28
|
+
*/
|
|
29
|
+
template: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
34
|
+
*/
|
|
35
|
+
data: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
46
|
+
*/
|
|
47
|
+
updatedAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ApiV1RecordsGet200ResponseRecordsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfApiV1RecordsGet200ResponseRecordsInner(value: object): value is ApiV1RecordsGet200ResponseRecordsInner;
|
|
53
|
+
export declare function ApiV1RecordsGet200ResponseRecordsInnerFromJSON(json: any): ApiV1RecordsGet200ResponseRecordsInner;
|
|
54
|
+
export declare function ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsGet200ResponseRecordsInner;
|
|
55
|
+
export declare function ApiV1RecordsGet200ResponseRecordsInnerToJSON(json: any): ApiV1RecordsGet200ResponseRecordsInner;
|
|
56
|
+
export declare function ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(value?: ApiV1RecordsGet200ResponseRecordsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfApiV1RecordsGet200ResponseRecordsInner = instanceOfApiV1RecordsGet200ResponseRecordsInner;
|
|
17
|
+
exports.ApiV1RecordsGet200ResponseRecordsInnerFromJSON = ApiV1RecordsGet200ResponseRecordsInnerFromJSON;
|
|
18
|
+
exports.ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped = ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsGet200ResponseRecordsInnerToJSON = ApiV1RecordsGet200ResponseRecordsInnerToJSON;
|
|
20
|
+
exports.ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped = ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1RecordsGet200ResponseRecordsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1RecordsGet200ResponseRecordsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('template' in value) || value['template'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ApiV1RecordsGet200ResponseRecordsInnerFromJSON(json) {
|
|
38
|
+
return ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'template': json['template'],
|
|
47
|
+
'data': json['data'],
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ApiV1RecordsGet200ResponseRecordsInnerToJSON(json) {
|
|
53
|
+
return ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'template': value['template'],
|
|
63
|
+
'data': value['data'],
|
|
64
|
+
'created_at': value['createdAt'].toISOString(),
|
|
65
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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 ApiV1RecordsIdDelete200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1RecordsIdDelete200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1RecordsIdDelete200Response
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1RecordsIdDelete200Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1RecordsIdDelete200Response(value: object): value is ApiV1RecordsIdDelete200Response;
|
|
29
|
+
export declare function ApiV1RecordsIdDelete200ResponseFromJSON(json: any): ApiV1RecordsIdDelete200Response;
|
|
30
|
+
export declare function ApiV1RecordsIdDelete200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdDelete200Response;
|
|
31
|
+
export declare function ApiV1RecordsIdDelete200ResponseToJSON(json: any): ApiV1RecordsIdDelete200Response;
|
|
32
|
+
export declare function ApiV1RecordsIdDelete200ResponseToJSONTyped(value?: ApiV1RecordsIdDelete200Response | 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.instanceOfApiV1RecordsIdDelete200Response = instanceOfApiV1RecordsIdDelete200Response;
|
|
17
|
+
exports.ApiV1RecordsIdDelete200ResponseFromJSON = ApiV1RecordsIdDelete200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1RecordsIdDelete200ResponseFromJSONTyped = ApiV1RecordsIdDelete200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsIdDelete200ResponseToJSON = ApiV1RecordsIdDelete200ResponseToJSON;
|
|
20
|
+
exports.ApiV1RecordsIdDelete200ResponseToJSONTyped = ApiV1RecordsIdDelete200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1RecordsIdDelete200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1RecordsIdDelete200Response(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1RecordsIdDelete200ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1RecordsIdDelete200ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1RecordsIdDelete200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'message': json['message'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1RecordsIdDelete200ResponseToJSON(json) {
|
|
41
|
+
return ApiV1RecordsIdDelete200ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1RecordsIdDelete200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 ApiV1RecordsIdGet200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1RecordsIdGet200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
28
|
+
*/
|
|
29
|
+
template: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
34
|
+
*/
|
|
35
|
+
data: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
40
|
+
*/
|
|
41
|
+
schemaVersion: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ApiV1RecordsIdGet200Response interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfApiV1RecordsIdGet200Response(value: object): value is ApiV1RecordsIdGet200Response;
|
|
59
|
+
export declare function ApiV1RecordsIdGet200ResponseFromJSON(json: any): ApiV1RecordsIdGet200Response;
|
|
60
|
+
export declare function ApiV1RecordsIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdGet200Response;
|
|
61
|
+
export declare function ApiV1RecordsIdGet200ResponseToJSON(json: any): ApiV1RecordsIdGet200Response;
|
|
62
|
+
export declare function ApiV1RecordsIdGet200ResponseToJSONTyped(value?: ApiV1RecordsIdGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfApiV1RecordsIdGet200Response = instanceOfApiV1RecordsIdGet200Response;
|
|
17
|
+
exports.ApiV1RecordsIdGet200ResponseFromJSON = ApiV1RecordsIdGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1RecordsIdGet200ResponseFromJSONTyped = ApiV1RecordsIdGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsIdGet200ResponseToJSON = ApiV1RecordsIdGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1RecordsIdGet200ResponseToJSONTyped = ApiV1RecordsIdGet200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1RecordsIdGet200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1RecordsIdGet200Response(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('template' in value) || value['template'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ApiV1RecordsIdGet200ResponseFromJSON(json) {
|
|
40
|
+
return ApiV1RecordsIdGet200ResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiV1RecordsIdGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'template': json['template'],
|
|
49
|
+
'data': json['data'],
|
|
50
|
+
'schemaVersion': json['schema_version'],
|
|
51
|
+
'createdAt': (new Date(json['created_at'])),
|
|
52
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ApiV1RecordsIdGet200ResponseToJSON(json) {
|
|
56
|
+
return ApiV1RecordsIdGet200ResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ApiV1RecordsIdGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'template': value['template'],
|
|
66
|
+
'data': value['data'],
|
|
67
|
+
'schema_version': value['schemaVersion'],
|
|
68
|
+
'created_at': value['createdAt'].toISOString(),
|
|
69
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|