blanche-client-sdk 0.2.1 → 0.4.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.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +39 -9
  3. package/dist/apis/RecordsApi.d.ts +65 -0
  4. package/dist/apis/RecordsApi.js +272 -0
  5. package/dist/apis/TemplatesApi.d.ts +63 -0
  6. package/dist/apis/TemplatesApi.js +265 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/ApiV1RecordsGet200Response.d.ts +51 -0
  10. package/dist/models/ApiV1RecordsGet200Response.js +64 -0
  11. package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.d.ts +56 -0
  12. package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.js +67 -0
  13. package/dist/models/ApiV1RecordsIdDelete200Response.d.ts +32 -0
  14. package/dist/models/ApiV1RecordsIdDelete200Response.js +51 -0
  15. package/dist/models/ApiV1RecordsIdGet200Response.d.ts +62 -0
  16. package/dist/models/ApiV1RecordsIdGet200Response.js +71 -0
  17. package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +50 -0
  18. package/dist/models/ApiV1RecordsIdPatch200Response.js +63 -0
  19. package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +32 -0
  20. package/dist/models/ApiV1RecordsIdPatch422Response.js +51 -0
  21. package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +32 -0
  22. package/dist/models/ApiV1RecordsIdPatchRequest.js +51 -0
  23. package/dist/models/ApiV1TemplatesGet200Response.d.ts +39 -0
  24. package/dist/models/ApiV1TemplatesGet200Response.js +56 -0
  25. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.d.ts +93 -0
  26. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.js +74 -0
  27. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.d.ts +38 -0
  28. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.js +51 -0
  29. package/dist/models/ApiV1TemplatesIdGet200Response.d.ts +69 -0
  30. package/dist/models/ApiV1TemplatesIdGet200Response.js +76 -0
  31. package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.d.ts +62 -0
  32. package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.js +69 -0
  33. package/dist/models/ApiV1TemplatesIdGet404Response.d.ts +32 -0
  34. package/dist/models/ApiV1TemplatesIdGet404Response.js +51 -0
  35. package/dist/models/ApiV1TemplatesIdPatchRequest.d.ts +33 -0
  36. package/dist/models/ApiV1TemplatesIdPatchRequest.js +52 -0
  37. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.d.ts +38 -0
  38. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.js +51 -0
  39. package/dist/models/ApiV1TemplatesPost201Response.d.ts +44 -0
  40. package/dist/models/ApiV1TemplatesPost201Response.js +59 -0
  41. package/dist/models/ApiV1TemplatesPostRequest.d.ts +33 -0
  42. package/dist/models/ApiV1TemplatesPostRequest.js +52 -0
  43. package/dist/models/ApiV1TemplatesPostRequestTemplate.d.ts +38 -0
  44. package/dist/models/ApiV1TemplatesPostRequestTemplate.js +53 -0
  45. package/dist/models/index.d.ts +18 -0
  46. package/dist/models/index.js +18 -0
  47. package/docs/ApiV1RecordsGet200Response.md +40 -0
  48. package/docs/ApiV1RecordsGet200ResponseRecordsInner.md +42 -0
  49. package/docs/ApiV1RecordsIdDelete200Response.md +34 -0
  50. package/docs/ApiV1RecordsIdGet200Response.md +44 -0
  51. package/docs/ApiV1RecordsIdPatch200Response.md +40 -0
  52. package/docs/ApiV1RecordsIdPatch422Response.md +34 -0
  53. package/docs/ApiV1RecordsIdPatchRequest.md +34 -0
  54. package/docs/ApiV1TemplatesGet200Response.md +36 -0
  55. package/docs/ApiV1TemplatesGet200ResponseTemplatesInner.md +54 -0
  56. package/docs/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.md +36 -0
  57. package/docs/ApiV1TemplatesIdGet200Response.md +46 -0
  58. package/docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md +44 -0
  59. package/docs/ApiV1TemplatesIdGet404Response.md +34 -0
  60. package/docs/ApiV1TemplatesIdPatchRequest.md +34 -0
  61. package/docs/ApiV1TemplatesIdPatchRequestTemplate.md +36 -0
  62. package/docs/ApiV1TemplatesPost201Response.md +38 -0
  63. package/docs/ApiV1TemplatesPostRequest.md +34 -0
  64. package/docs/ApiV1TemplatesPostRequestTemplate.md +36 -0
  65. package/docs/RecordsApi.md +282 -0
  66. package/docs/TemplatesApi.md +279 -0
  67. package/package.json +1 -1
  68. package/src/apis/RecordsApi.ts +219 -0
  69. package/src/apis/TemplatesApi.ts +207 -0
  70. package/src/apis/index.ts +2 -0
  71. package/src/models/ApiV1RecordsGet200Response.ts +101 -0
  72. package/src/models/ApiV1RecordsGet200ResponseRecordsInner.ts +102 -0
  73. package/src/models/ApiV1RecordsIdDelete200Response.ts +66 -0
  74. package/src/models/ApiV1RecordsIdGet200Response.ts +111 -0
  75. package/src/models/ApiV1RecordsIdPatch200Response.ts +93 -0
  76. package/src/models/ApiV1RecordsIdPatch422Response.ts +66 -0
  77. package/src/models/ApiV1RecordsIdPatchRequest.ts +66 -0
  78. package/src/models/ApiV1TemplatesGet200Response.ts +83 -0
  79. package/src/models/ApiV1TemplatesGet200ResponseTemplatesInner.ts +155 -0
  80. package/src/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.ts +73 -0
  81. package/src/models/ApiV1TemplatesIdGet200Response.ts +128 -0
  82. package/src/models/ApiV1TemplatesIdGet200ResponseSchemasInner.ts +110 -0
  83. package/src/models/ApiV1TemplatesIdGet404Response.ts +66 -0
  84. package/src/models/ApiV1TemplatesIdPatchRequest.ts +74 -0
  85. package/src/models/ApiV1TemplatesIdPatchRequestTemplate.ts +73 -0
  86. package/src/models/ApiV1TemplatesPost201Response.ts +84 -0
  87. package/src/models/ApiV1TemplatesPostRequest.ts +74 -0
  88. package/src/models/ApiV1TemplatesPostRequestTemplate.ts +74 -0
  89. package/src/models/index.ts +18 -0
@@ -0,0 +1,265 @@
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.TemplatesApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var TemplatesApi = /** @class */ (function (_super) {
74
+ __extends(TemplatesApi, _super);
75
+ function TemplatesApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * List templates
80
+ */
81
+ TemplatesApi.prototype.apiV1TemplatesGetRaw = 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
+ if (requestParameters['format'] != null) {
89
+ queryParameters['format'] = requestParameters['format'];
90
+ }
91
+ headerParameters = {};
92
+ urlPath = "/api/v1/templates";
93
+ return [4 /*yield*/, this.request({
94
+ path: urlPath,
95
+ method: 'GET',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ }, initOverrides)];
99
+ case 1:
100
+ response = _a.sent();
101
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TemplatesGet200ResponseFromJSON)(jsonValue); })];
102
+ }
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ * List templates
108
+ */
109
+ TemplatesApi.prototype.apiV1TemplatesGet = function () {
110
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
111
+ var response;
112
+ if (requestParameters === void 0) { requestParameters = {}; }
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.apiV1TemplatesGetRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * Get template
126
+ */
127
+ TemplatesApi.prototype.apiV1TemplatesIdGetRaw = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var queryParameters, headerParameters, urlPath, response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ if (requestParameters['id'] == null) {
134
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1TemplatesIdGet().');
135
+ }
136
+ queryParameters = {};
137
+ headerParameters = {};
138
+ urlPath = "/api/v1/templates/{id}";
139
+ urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
140
+ return [4 /*yield*/, this.request({
141
+ path: urlPath,
142
+ method: 'GET',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ }, initOverrides)];
146
+ case 1:
147
+ response = _a.sent();
148
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TemplatesIdGet200ResponseFromJSON)(jsonValue); })];
149
+ }
150
+ });
151
+ });
152
+ };
153
+ /**
154
+ * Get template
155
+ */
156
+ TemplatesApi.prototype.apiV1TemplatesIdGet = function (requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function () {
158
+ var response;
159
+ return __generator(this, function (_a) {
160
+ switch (_a.label) {
161
+ case 0: return [4 /*yield*/, this.apiV1TemplatesIdGetRaw(requestParameters, initOverrides)];
162
+ case 1:
163
+ response = _a.sent();
164
+ return [4 /*yield*/, response.value()];
165
+ case 2: return [2 /*return*/, _a.sent()];
166
+ }
167
+ });
168
+ });
169
+ };
170
+ /**
171
+ * Update template
172
+ */
173
+ TemplatesApi.prototype.apiV1TemplatesIdPatchRaw = function (requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function () {
175
+ var queryParameters, headerParameters, urlPath, response;
176
+ return __generator(this, function (_a) {
177
+ switch (_a.label) {
178
+ case 0:
179
+ if (requestParameters['id'] == null) {
180
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1TemplatesIdPatch().');
181
+ }
182
+ queryParameters = {};
183
+ headerParameters = {};
184
+ headerParameters['Content-Type'] = 'application/json';
185
+ urlPath = "/api/v1/templates/{id}";
186
+ urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
187
+ return [4 /*yield*/, this.request({
188
+ path: urlPath,
189
+ method: 'PATCH',
190
+ headers: headerParameters,
191
+ query: queryParameters,
192
+ body: (0, index_1.ApiV1TemplatesIdPatchRequestToJSON)(requestParameters['apiV1TemplatesIdPatchRequest']),
193
+ }, initOverrides)];
194
+ case 1:
195
+ response = _a.sent();
196
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TemplatesPost201ResponseFromJSON)(jsonValue); })];
197
+ }
198
+ });
199
+ });
200
+ };
201
+ /**
202
+ * Update template
203
+ */
204
+ TemplatesApi.prototype.apiV1TemplatesIdPatch = function (requestParameters, initOverrides) {
205
+ return __awaiter(this, void 0, void 0, function () {
206
+ var response;
207
+ return __generator(this, function (_a) {
208
+ switch (_a.label) {
209
+ case 0: return [4 /*yield*/, this.apiV1TemplatesIdPatchRaw(requestParameters, initOverrides)];
210
+ case 1:
211
+ response = _a.sent();
212
+ return [4 /*yield*/, response.value()];
213
+ case 2: return [2 /*return*/, _a.sent()];
214
+ }
215
+ });
216
+ });
217
+ };
218
+ /**
219
+ * Create template
220
+ */
221
+ TemplatesApi.prototype.apiV1TemplatesPostRaw = function (requestParameters, initOverrides) {
222
+ return __awaiter(this, void 0, void 0, function () {
223
+ var queryParameters, headerParameters, urlPath, response;
224
+ return __generator(this, function (_a) {
225
+ switch (_a.label) {
226
+ case 0:
227
+ queryParameters = {};
228
+ headerParameters = {};
229
+ headerParameters['Content-Type'] = 'application/json';
230
+ urlPath = "/api/v1/templates";
231
+ return [4 /*yield*/, this.request({
232
+ path: urlPath,
233
+ method: 'POST',
234
+ headers: headerParameters,
235
+ query: queryParameters,
236
+ body: (0, index_1.ApiV1TemplatesPostRequestToJSON)(requestParameters['apiV1TemplatesPostRequest']),
237
+ }, initOverrides)];
238
+ case 1:
239
+ response = _a.sent();
240
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1TemplatesPost201ResponseFromJSON)(jsonValue); })];
241
+ }
242
+ });
243
+ });
244
+ };
245
+ /**
246
+ * Create template
247
+ */
248
+ TemplatesApi.prototype.apiV1TemplatesPost = function () {
249
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
250
+ var response;
251
+ if (requestParameters === void 0) { requestParameters = {}; }
252
+ return __generator(this, function (_a) {
253
+ switch (_a.label) {
254
+ case 0: return [4 /*yield*/, this.apiV1TemplatesPostRaw(requestParameters, initOverrides)];
255
+ case 1:
256
+ response = _a.sent();
257
+ return [4 /*yield*/, response.value()];
258
+ case 2: return [2 /*return*/, _a.sent()];
259
+ }
260
+ });
261
+ });
262
+ };
263
+ return TemplatesApi;
264
+ }(runtime.BaseAPI));
265
+ exports.TemplatesApi = TemplatesApi;
@@ -1,3 +1,5 @@
1
+ export * from './RecordsApi';
1
2
  export * from './SessionsApi';
2
3
  export * from './TelegramLinksApi';
4
+ export * from './TemplatesApi';
3
5
  export * from './UsersApi';
@@ -16,6 +16,8 @@ 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);
22
+ __exportStar(require("./TemplatesApi"), exports);
21
23
  __exportStar(require("./UsersApi"), 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;