blanche-client-sdk 0.3.0 → 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.
- package/.openapi-generator/FILES +16 -2
- package/README.md +24 -10
- package/dist/apis/RecordsApi.d.ts +65 -0
- package/dist/apis/RecordsApi.js +272 -0
- 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/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/RecordsApi.md +282 -0
- package/package.json +1 -1
- package/src/apis/RecordsApi.ts +219 -0
- package/src/apis/TemplatesApi.ts +3 -3
- 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/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
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiV1RecordsGet200Response,
|
|
19
|
+
ApiV1RecordsIdDelete200Response,
|
|
20
|
+
ApiV1RecordsIdGet200Response,
|
|
21
|
+
ApiV1RecordsIdPatch200Response,
|
|
22
|
+
ApiV1RecordsIdPatch422Response,
|
|
23
|
+
ApiV1RecordsIdPatchRequest,
|
|
24
|
+
} from '../models/index';
|
|
25
|
+
import {
|
|
26
|
+
ApiV1RecordsGet200ResponseFromJSON,
|
|
27
|
+
ApiV1RecordsGet200ResponseToJSON,
|
|
28
|
+
ApiV1RecordsIdDelete200ResponseFromJSON,
|
|
29
|
+
ApiV1RecordsIdDelete200ResponseToJSON,
|
|
30
|
+
ApiV1RecordsIdGet200ResponseFromJSON,
|
|
31
|
+
ApiV1RecordsIdGet200ResponseToJSON,
|
|
32
|
+
ApiV1RecordsIdPatch200ResponseFromJSON,
|
|
33
|
+
ApiV1RecordsIdPatch200ResponseToJSON,
|
|
34
|
+
ApiV1RecordsIdPatch422ResponseFromJSON,
|
|
35
|
+
ApiV1RecordsIdPatch422ResponseToJSON,
|
|
36
|
+
ApiV1RecordsIdPatchRequestFromJSON,
|
|
37
|
+
ApiV1RecordsIdPatchRequestToJSON,
|
|
38
|
+
} from '../models/index';
|
|
39
|
+
|
|
40
|
+
export interface ApiV1RecordsGetRequest {
|
|
41
|
+
template?: string;
|
|
42
|
+
limit?: number;
|
|
43
|
+
offset?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ApiV1RecordsIdDeleteRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ApiV1RecordsIdGetRequest {
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface ApiV1RecordsIdPatchOperationRequest {
|
|
55
|
+
id: string;
|
|
56
|
+
apiV1RecordsIdPatchRequest?: ApiV1RecordsIdPatchRequest;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export class RecordsApi extends runtime.BaseAPI {
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* List records
|
|
66
|
+
*/
|
|
67
|
+
async apiV1RecordsGetRaw(requestParameters: ApiV1RecordsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1RecordsGet200Response>> {
|
|
68
|
+
const queryParameters: any = {};
|
|
69
|
+
|
|
70
|
+
if (requestParameters['template'] != null) {
|
|
71
|
+
queryParameters['template'] = requestParameters['template'];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (requestParameters['limit'] != null) {
|
|
75
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (requestParameters['offset'] != null) {
|
|
79
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
let urlPath = `/api/v1/records`;
|
|
86
|
+
|
|
87
|
+
const response = await this.request({
|
|
88
|
+
path: urlPath,
|
|
89
|
+
method: 'GET',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1RecordsGet200ResponseFromJSON(jsonValue));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* List records
|
|
99
|
+
*/
|
|
100
|
+
async apiV1RecordsGet(requestParameters: ApiV1RecordsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1RecordsGet200Response> {
|
|
101
|
+
const response = await this.apiV1RecordsGetRaw(requestParameters, initOverrides);
|
|
102
|
+
return await response.value();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Delete record
|
|
107
|
+
*/
|
|
108
|
+
async apiV1RecordsIdDeleteRaw(requestParameters: ApiV1RecordsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1RecordsIdDelete200Response>> {
|
|
109
|
+
if (requestParameters['id'] == null) {
|
|
110
|
+
throw new runtime.RequiredError(
|
|
111
|
+
'id',
|
|
112
|
+
'Required parameter "id" was null or undefined when calling apiV1RecordsIdDelete().'
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const queryParameters: any = {};
|
|
117
|
+
|
|
118
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
let urlPath = `/api/v1/records/{id}`;
|
|
122
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
123
|
+
|
|
124
|
+
const response = await this.request({
|
|
125
|
+
path: urlPath,
|
|
126
|
+
method: 'DELETE',
|
|
127
|
+
headers: headerParameters,
|
|
128
|
+
query: queryParameters,
|
|
129
|
+
}, initOverrides);
|
|
130
|
+
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1RecordsIdDelete200ResponseFromJSON(jsonValue));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Delete record
|
|
136
|
+
*/
|
|
137
|
+
async apiV1RecordsIdDelete(requestParameters: ApiV1RecordsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1RecordsIdDelete200Response> {
|
|
138
|
+
const response = await this.apiV1RecordsIdDeleteRaw(requestParameters, initOverrides);
|
|
139
|
+
return await response.value();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Get record
|
|
144
|
+
*/
|
|
145
|
+
async apiV1RecordsIdGetRaw(requestParameters: ApiV1RecordsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1RecordsIdGet200Response>> {
|
|
146
|
+
if (requestParameters['id'] == null) {
|
|
147
|
+
throw new runtime.RequiredError(
|
|
148
|
+
'id',
|
|
149
|
+
'Required parameter "id" was null or undefined when calling apiV1RecordsIdGet().'
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const queryParameters: any = {};
|
|
154
|
+
|
|
155
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
let urlPath = `/api/v1/records/{id}`;
|
|
159
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
160
|
+
|
|
161
|
+
const response = await this.request({
|
|
162
|
+
path: urlPath,
|
|
163
|
+
method: 'GET',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
query: queryParameters,
|
|
166
|
+
}, initOverrides);
|
|
167
|
+
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1RecordsIdGet200ResponseFromJSON(jsonValue));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Get record
|
|
173
|
+
*/
|
|
174
|
+
async apiV1RecordsIdGet(requestParameters: ApiV1RecordsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1RecordsIdGet200Response> {
|
|
175
|
+
const response = await this.apiV1RecordsIdGetRaw(requestParameters, initOverrides);
|
|
176
|
+
return await response.value();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Update record
|
|
181
|
+
*/
|
|
182
|
+
async apiV1RecordsIdPatchRaw(requestParameters: ApiV1RecordsIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1RecordsIdPatch200Response>> {
|
|
183
|
+
if (requestParameters['id'] == null) {
|
|
184
|
+
throw new runtime.RequiredError(
|
|
185
|
+
'id',
|
|
186
|
+
'Required parameter "id" was null or undefined when calling apiV1RecordsIdPatch().'
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const queryParameters: any = {};
|
|
191
|
+
|
|
192
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
193
|
+
|
|
194
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
let urlPath = `/api/v1/records/{id}`;
|
|
198
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
199
|
+
|
|
200
|
+
const response = await this.request({
|
|
201
|
+
path: urlPath,
|
|
202
|
+
method: 'PATCH',
|
|
203
|
+
headers: headerParameters,
|
|
204
|
+
query: queryParameters,
|
|
205
|
+
body: ApiV1RecordsIdPatchRequestToJSON(requestParameters['apiV1RecordsIdPatchRequest']),
|
|
206
|
+
}, initOverrides);
|
|
207
|
+
|
|
208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1RecordsIdPatch200ResponseFromJSON(jsonValue));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Update record
|
|
213
|
+
*/
|
|
214
|
+
async apiV1RecordsIdPatch(requestParameters: ApiV1RecordsIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1RecordsIdPatch200Response> {
|
|
215
|
+
const response = await this.apiV1RecordsIdPatchRaw(requestParameters, initOverrides);
|
|
216
|
+
return await response.value();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
}
|
package/src/apis/TemplatesApi.ts
CHANGED
|
@@ -15,15 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiV1RecordsIdPatch422Response,
|
|
18
19
|
ApiV1TemplatesGet200Response,
|
|
19
20
|
ApiV1TemplatesIdGet200Response,
|
|
20
21
|
ApiV1TemplatesIdGet404Response,
|
|
21
22
|
ApiV1TemplatesIdPatchRequest,
|
|
22
23
|
ApiV1TemplatesPost201Response,
|
|
23
|
-
ApiV1TemplatesPost422Response,
|
|
24
24
|
ApiV1TemplatesPostRequest,
|
|
25
25
|
} from '../models/index';
|
|
26
26
|
import {
|
|
27
|
+
ApiV1RecordsIdPatch422ResponseFromJSON,
|
|
28
|
+
ApiV1RecordsIdPatch422ResponseToJSON,
|
|
27
29
|
ApiV1TemplatesGet200ResponseFromJSON,
|
|
28
30
|
ApiV1TemplatesGet200ResponseToJSON,
|
|
29
31
|
ApiV1TemplatesIdGet200ResponseFromJSON,
|
|
@@ -34,8 +36,6 @@ import {
|
|
|
34
36
|
ApiV1TemplatesIdPatchRequestToJSON,
|
|
35
37
|
ApiV1TemplatesPost201ResponseFromJSON,
|
|
36
38
|
ApiV1TemplatesPost201ResponseToJSON,
|
|
37
|
-
ApiV1TemplatesPost422ResponseFromJSON,
|
|
38
|
-
ApiV1TemplatesPost422ResponseToJSON,
|
|
39
39
|
ApiV1TemplatesPostRequestFromJSON,
|
|
40
40
|
ApiV1TemplatesPostRequestToJSON,
|
|
41
41
|
} from '../models/index';
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiV1RecordsGet200ResponseRecordsInner } from './ApiV1RecordsGet200ResponseRecordsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiV1RecordsGet200ResponseRecordsInnerFromJSON,
|
|
19
|
+
ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped,
|
|
20
|
+
ApiV1RecordsGet200ResponseRecordsInnerToJSON,
|
|
21
|
+
ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped,
|
|
22
|
+
} from './ApiV1RecordsGet200ResponseRecordsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiV1RecordsGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiV1RecordsGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiV1RecordsGet200ResponseRecordsInner>}
|
|
33
|
+
* @memberof ApiV1RecordsGet200Response
|
|
34
|
+
*/
|
|
35
|
+
records: Array<ApiV1RecordsGet200ResponseRecordsInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiV1RecordsGet200Response
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiV1RecordsGet200Response
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiV1RecordsGet200Response
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiV1RecordsGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiV1RecordsGet200Response(value: object): value is ApiV1RecordsGet200Response {
|
|
60
|
+
if (!('records' in value) || value['records'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
63
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ApiV1RecordsGet200ResponseFromJSON(json: any): ApiV1RecordsGet200Response {
|
|
68
|
+
return ApiV1RecordsGet200ResponseFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ApiV1RecordsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsGet200Response {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'records': ((json['records'] as Array<any>).map(ApiV1RecordsGet200ResponseRecordsInnerFromJSON)),
|
|
78
|
+
'total': json['total'],
|
|
79
|
+
'limit': json['limit'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiV1RecordsGet200ResponseToJSON(json: any): ApiV1RecordsGet200Response {
|
|
85
|
+
return ApiV1RecordsGet200ResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiV1RecordsGet200ResponseToJSONTyped(value?: ApiV1RecordsGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'records': ((value['records'] as Array<any>).map(ApiV1RecordsGet200ResponseRecordsInnerToJSON)),
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'offset': value['offset'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsGet200ResponseRecordsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsGet200ResponseRecordsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
32
|
+
*/
|
|
33
|
+
template: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
38
|
+
*/
|
|
39
|
+
data: object;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof ApiV1RecordsGet200ResponseRecordsInner
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ApiV1RecordsGet200ResponseRecordsInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfApiV1RecordsGet200ResponseRecordsInner(value: object): value is ApiV1RecordsGet200ResponseRecordsInner {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('template' in value) || value['template'] === undefined) return false;
|
|
60
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
61
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
62
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiV1RecordsGet200ResponseRecordsInnerFromJSON(json: any): ApiV1RecordsGet200ResponseRecordsInner {
|
|
67
|
+
return ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsGet200ResponseRecordsInner {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'template': json['template'],
|
|
78
|
+
'data': json['data'],
|
|
79
|
+
'createdAt': (new Date(json['created_at'])),
|
|
80
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiV1RecordsGet200ResponseRecordsInnerToJSON(json: any): ApiV1RecordsGet200ResponseRecordsInner {
|
|
85
|
+
return ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(value?: ApiV1RecordsGet200ResponseRecordsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'template': value['template'],
|
|
97
|
+
'data': value['data'],
|
|
98
|
+
'created_at': value['createdAt'].toISOString(),
|
|
99
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsIdDelete200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsIdDelete200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1RecordsIdDelete200Response
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiV1RecordsIdDelete200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiV1RecordsIdDelete200Response(value: object): value is ApiV1RecordsIdDelete200Response {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiV1RecordsIdDelete200ResponseFromJSON(json: any): ApiV1RecordsIdDelete200Response {
|
|
39
|
+
return ApiV1RecordsIdDelete200ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiV1RecordsIdDelete200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdDelete200Response {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1RecordsIdDelete200ResponseToJSON(json: any): ApiV1RecordsIdDelete200Response {
|
|
53
|
+
return ApiV1RecordsIdDelete200ResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1RecordsIdDelete200ResponseToJSONTyped(value?: ApiV1RecordsIdDelete200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value['message'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsIdGet200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsIdGet200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
32
|
+
*/
|
|
33
|
+
template: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
38
|
+
*/
|
|
39
|
+
data: object;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
44
|
+
*/
|
|
45
|
+
schemaVersion: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ApiV1RecordsIdGet200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfApiV1RecordsIdGet200Response(value: object): value is ApiV1RecordsIdGet200Response {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('template' in value) || value['template'] === undefined) return false;
|
|
66
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
67
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined) return false;
|
|
68
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
69
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ApiV1RecordsIdGet200ResponseFromJSON(json: any): ApiV1RecordsIdGet200Response {
|
|
74
|
+
return ApiV1RecordsIdGet200ResponseFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ApiV1RecordsIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdGet200Response {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'template': json['template'],
|
|
85
|
+
'data': json['data'],
|
|
86
|
+
'schemaVersion': json['schema_version'],
|
|
87
|
+
'createdAt': (new Date(json['created_at'])),
|
|
88
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiV1RecordsIdGet200ResponseToJSON(json: any): ApiV1RecordsIdGet200Response {
|
|
93
|
+
return ApiV1RecordsIdGet200ResponseToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiV1RecordsIdGet200ResponseToJSONTyped(value?: ApiV1RecordsIdGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'template': value['template'],
|
|
105
|
+
'data': value['data'],
|
|
106
|
+
'schema_version': value['schemaVersion'],
|
|
107
|
+
'created_at': value['createdAt'].toISOString(),
|
|
108
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|