orgnote-api 0.0.11 → 0.0.13
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/package.json +4 -4
- package/src/api.ts +70 -0
- package/src/generated/api/.gitignore +4 -0
- package/src/generated/api/.npmignore +1 -0
- package/src/generated/api/.openapi-generator/FILES +9 -0
- package/src/generated/api/.openapi-generator/VERSION +1 -0
- package/src/generated/api/.openapi-generator-ignore +23 -0
- package/src/generated/api/api.ts +2040 -0
- package/src/generated/api/base.ts +72 -0
- package/src/generated/api/common.ts +150 -0
- package/{dist/generated/api/configuration.d.ts → src/generated/api/configuration.ts} +21 -3
- package/src/generated/api/git_push.sh +57 -0
- package/{dist/generated/api/index.d.ts → src/generated/api/index.ts} +5 -0
- package/{dist/index.d.ts → src/index.ts} +3 -0
- package/src/models/command.ts +30 -0
- package/src/models/completion.ts +30 -0
- package/src/models/extension.ts +45 -0
- package/src/models/modal.ts +4 -0
- package/src/models/note.ts +24 -0
- package/src/models/theme-variables.ts +194 -0
- package/src/models/widget.ts +56 -0
- package/dist/api.d.ts +0 -66
- package/dist/generated/api/api.d.ts +0 -1376
- package/dist/generated/api/base.d.ts +0 -54
- package/dist/generated/api/common.d.ts +0 -65
- package/dist/models/command.d.ts +0 -18
- package/dist/models/completion.d.ts +0 -22
- package/dist/models/extension.d.ts +0 -34
- package/dist/models/modal.d.ts +0 -4
- package/dist/models/note.d.ts +0 -21
- package/dist/models/theme-variables.d.ts +0 -192
- package/dist/models/widget.d.ts +0 -45
- /package/{dist/models/index.d.ts → src/models/index.ts} +0 -0
|
@@ -0,0 +1,2040 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Org Note API
|
|
5
|
+
* List of methods for work with Org Note.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: artawower@protonmail.com
|
|
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 type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface FilesUploadPostRequest
|
|
30
|
+
*/
|
|
31
|
+
export interface FilesUploadPostRequest {
|
|
32
|
+
/**
|
|
33
|
+
* files
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof FilesUploadPostRequest
|
|
36
|
+
*/
|
|
37
|
+
'files': Array<string>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @export
|
|
42
|
+
* @interface HandlersCreatingNote
|
|
43
|
+
*/
|
|
44
|
+
export interface HandlersCreatingNote {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof HandlersCreatingNote
|
|
49
|
+
*/
|
|
50
|
+
'content'?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof HandlersCreatingNote
|
|
55
|
+
*/
|
|
56
|
+
'createdAt'?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof HandlersCreatingNote
|
|
61
|
+
*/
|
|
62
|
+
'filePath'?: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof HandlersCreatingNote
|
|
67
|
+
*/
|
|
68
|
+
'id'?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {ModelsNoteMeta}
|
|
72
|
+
* @memberof HandlersCreatingNote
|
|
73
|
+
*/
|
|
74
|
+
'meta'?: ModelsNoteMeta;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof HandlersCreatingNote
|
|
79
|
+
*/
|
|
80
|
+
'touchedAt'?: string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof HandlersCreatingNote
|
|
85
|
+
*/
|
|
86
|
+
'updatedAt'?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface HandlersDeletedNote
|
|
92
|
+
*/
|
|
93
|
+
export interface HandlersDeletedNote {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Array<string>}
|
|
97
|
+
* @memberof HandlersDeletedNote
|
|
98
|
+
*/
|
|
99
|
+
'filePath'?: Array<string>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof HandlersDeletedNote
|
|
104
|
+
*/
|
|
105
|
+
'id'?: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @export
|
|
110
|
+
* @interface HandlersHttpErrorAny
|
|
111
|
+
*/
|
|
112
|
+
export interface HandlersHttpErrorAny {
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {object}
|
|
116
|
+
* @memberof HandlersHttpErrorAny
|
|
117
|
+
*/
|
|
118
|
+
'data'?: object;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof HandlersHttpErrorAny
|
|
123
|
+
*/
|
|
124
|
+
'message'?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @export
|
|
129
|
+
* @interface HandlersHttpResponseAnyAny
|
|
130
|
+
*/
|
|
131
|
+
export interface HandlersHttpResponseAnyAny {
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {object}
|
|
135
|
+
* @memberof HandlersHttpResponseAnyAny
|
|
136
|
+
*/
|
|
137
|
+
'data'?: object;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {object}
|
|
141
|
+
* @memberof HandlersHttpResponseAnyAny
|
|
142
|
+
*/
|
|
143
|
+
'meta'?: object;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @export
|
|
148
|
+
* @interface HandlersHttpResponseArrayModelsAPITokenAny
|
|
149
|
+
*/
|
|
150
|
+
export interface HandlersHttpResponseArrayModelsAPITokenAny {
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {Array<ModelsAPIToken>}
|
|
154
|
+
* @memberof HandlersHttpResponseArrayModelsAPITokenAny
|
|
155
|
+
*/
|
|
156
|
+
'data'?: Array<ModelsAPIToken>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {object}
|
|
160
|
+
* @memberof HandlersHttpResponseArrayModelsAPITokenAny
|
|
161
|
+
*/
|
|
162
|
+
'meta'?: object;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @export
|
|
167
|
+
* @interface HandlersHttpResponseArrayModelsPublicNoteModelsPagination
|
|
168
|
+
*/
|
|
169
|
+
export interface HandlersHttpResponseArrayModelsPublicNoteModelsPagination {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {Array<ModelsPublicNote>}
|
|
173
|
+
* @memberof HandlersHttpResponseArrayModelsPublicNoteModelsPagination
|
|
174
|
+
*/
|
|
175
|
+
'data'?: Array<ModelsPublicNote>;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {ModelsPagination}
|
|
179
|
+
* @memberof HandlersHttpResponseArrayModelsPublicNoteModelsPagination
|
|
180
|
+
*/
|
|
181
|
+
'meta'?: ModelsPagination;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @export
|
|
186
|
+
* @interface HandlersHttpResponseArrayStringAny
|
|
187
|
+
*/
|
|
188
|
+
export interface HandlersHttpResponseArrayStringAny {
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {Array<string>}
|
|
192
|
+
* @memberof HandlersHttpResponseArrayStringAny
|
|
193
|
+
*/
|
|
194
|
+
'data'?: Array<string>;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {object}
|
|
198
|
+
* @memberof HandlersHttpResponseArrayStringAny
|
|
199
|
+
*/
|
|
200
|
+
'meta'?: object;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @export
|
|
205
|
+
* @interface HandlersHttpResponseHandlersOAuthRedirectDataAny
|
|
206
|
+
*/
|
|
207
|
+
export interface HandlersHttpResponseHandlersOAuthRedirectDataAny {
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {HandlersOAuthRedirectData}
|
|
211
|
+
* @memberof HandlersHttpResponseHandlersOAuthRedirectDataAny
|
|
212
|
+
*/
|
|
213
|
+
'data'?: HandlersOAuthRedirectData;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {object}
|
|
217
|
+
* @memberof HandlersHttpResponseHandlersOAuthRedirectDataAny
|
|
218
|
+
*/
|
|
219
|
+
'meta'?: object;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @export
|
|
224
|
+
* @interface HandlersHttpResponseHandlersSyncNotesResponseAny
|
|
225
|
+
*/
|
|
226
|
+
export interface HandlersHttpResponseHandlersSyncNotesResponseAny {
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @type {HandlersSyncNotesResponse}
|
|
230
|
+
* @memberof HandlersHttpResponseHandlersSyncNotesResponseAny
|
|
231
|
+
*/
|
|
232
|
+
'data'?: HandlersSyncNotesResponse;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {object}
|
|
236
|
+
* @memberof HandlersHttpResponseHandlersSyncNotesResponseAny
|
|
237
|
+
*/
|
|
238
|
+
'meta'?: object;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @export
|
|
243
|
+
* @interface HandlersHttpResponseModelsAPITokenAny
|
|
244
|
+
*/
|
|
245
|
+
export interface HandlersHttpResponseModelsAPITokenAny {
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @type {ModelsAPIToken}
|
|
249
|
+
* @memberof HandlersHttpResponseModelsAPITokenAny
|
|
250
|
+
*/
|
|
251
|
+
'data'?: ModelsAPIToken;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {object}
|
|
255
|
+
* @memberof HandlersHttpResponseModelsAPITokenAny
|
|
256
|
+
*/
|
|
257
|
+
'meta'?: object;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @export
|
|
262
|
+
* @interface HandlersHttpResponseModelsPublicNoteAny
|
|
263
|
+
*/
|
|
264
|
+
export interface HandlersHttpResponseModelsPublicNoteAny {
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @type {ModelsPublicNote}
|
|
268
|
+
* @memberof HandlersHttpResponseModelsPublicNoteAny
|
|
269
|
+
*/
|
|
270
|
+
'data'?: ModelsPublicNote;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {object}
|
|
274
|
+
* @memberof HandlersHttpResponseModelsPublicNoteAny
|
|
275
|
+
*/
|
|
276
|
+
'meta'?: object;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @export
|
|
281
|
+
* @interface HandlersHttpResponseModelsUserPersonalInfoAny
|
|
282
|
+
*/
|
|
283
|
+
export interface HandlersHttpResponseModelsUserPersonalInfoAny {
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {ModelsUserPersonalInfo}
|
|
287
|
+
* @memberof HandlersHttpResponseModelsUserPersonalInfoAny
|
|
288
|
+
*/
|
|
289
|
+
'data'?: ModelsUserPersonalInfo;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @type {object}
|
|
293
|
+
* @memberof HandlersHttpResponseModelsUserPersonalInfoAny
|
|
294
|
+
*/
|
|
295
|
+
'meta'?: object;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @export
|
|
300
|
+
* @interface HandlersOAuthRedirectData
|
|
301
|
+
*/
|
|
302
|
+
export interface HandlersOAuthRedirectData {
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof HandlersOAuthRedirectData
|
|
307
|
+
*/
|
|
308
|
+
'redirectUrl'?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
* @export
|
|
313
|
+
* @interface HandlersSubscribeBody
|
|
314
|
+
*/
|
|
315
|
+
export interface HandlersSubscribeBody {
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof HandlersSubscribeBody
|
|
320
|
+
*/
|
|
321
|
+
'email'?: string;
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof HandlersSubscribeBody
|
|
326
|
+
*/
|
|
327
|
+
'token'?: string;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @export
|
|
332
|
+
* @interface HandlersSyncNotesRequest
|
|
333
|
+
*/
|
|
334
|
+
export interface HandlersSyncNotesRequest {
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type {Array<string>}
|
|
338
|
+
* @memberof HandlersSyncNotesRequest
|
|
339
|
+
*/
|
|
340
|
+
'deletedNotesIds'?: Array<string>;
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @type {Array<HandlersCreatingNote>}
|
|
344
|
+
* @memberof HandlersSyncNotesRequest
|
|
345
|
+
*/
|
|
346
|
+
'notes'?: Array<HandlersCreatingNote>;
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @memberof HandlersSyncNotesRequest
|
|
351
|
+
*/
|
|
352
|
+
'timestamp'?: string;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @export
|
|
357
|
+
* @interface HandlersSyncNotesResponse
|
|
358
|
+
*/
|
|
359
|
+
export interface HandlersSyncNotesResponse {
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @type {Array<HandlersDeletedNote>}
|
|
363
|
+
* @memberof HandlersSyncNotesResponse
|
|
364
|
+
*/
|
|
365
|
+
'deletedNotes'?: Array<HandlersDeletedNote>;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {Array<ModelsPublicNote>}
|
|
369
|
+
* @memberof HandlersSyncNotesResponse
|
|
370
|
+
*/
|
|
371
|
+
'notes'?: Array<ModelsPublicNote>;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @export
|
|
376
|
+
* @interface ModelsAPIToken
|
|
377
|
+
*/
|
|
378
|
+
export interface ModelsAPIToken {
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @type {string}
|
|
382
|
+
* @memberof ModelsAPIToken
|
|
383
|
+
*/
|
|
384
|
+
'id'?: string;
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof ModelsAPIToken
|
|
389
|
+
*/
|
|
390
|
+
'permission'?: string;
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @type {string}
|
|
394
|
+
* @memberof ModelsAPIToken
|
|
395
|
+
*/
|
|
396
|
+
'token'?: string;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @export
|
|
401
|
+
* @enum {string}
|
|
402
|
+
*/
|
|
403
|
+
|
|
404
|
+
export const ModelsCategory = {
|
|
405
|
+
CategoryArticle: 'article',
|
|
406
|
+
CategoryBook: 'book',
|
|
407
|
+
CategorySchedule: 'schedule'
|
|
408
|
+
} as const;
|
|
409
|
+
|
|
410
|
+
export type ModelsCategory = typeof ModelsCategory[keyof typeof ModelsCategory];
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
* @export
|
|
416
|
+
* @interface ModelsNoteHeading
|
|
417
|
+
*/
|
|
418
|
+
export interface ModelsNoteHeading {
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @type {number}
|
|
422
|
+
* @memberof ModelsNoteHeading
|
|
423
|
+
*/
|
|
424
|
+
'level'?: number;
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof ModelsNoteHeading
|
|
429
|
+
*/
|
|
430
|
+
'text'?: string;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @export
|
|
435
|
+
* @interface ModelsNoteLink
|
|
436
|
+
*/
|
|
437
|
+
export interface ModelsNoteLink {
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof ModelsNoteLink
|
|
442
|
+
*/
|
|
443
|
+
'name'?: string;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof ModelsNoteLink
|
|
448
|
+
*/
|
|
449
|
+
'url'?: string;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @export
|
|
454
|
+
* @interface ModelsNoteMeta
|
|
455
|
+
*/
|
|
456
|
+
export interface ModelsNoteMeta {
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @type {ModelsCategory}
|
|
460
|
+
* @memberof ModelsNoteMeta
|
|
461
|
+
*/
|
|
462
|
+
'category'?: ModelsCategory;
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @type {{ [key: string]: string; }}
|
|
466
|
+
* @memberof ModelsNoteMeta
|
|
467
|
+
*/
|
|
468
|
+
'connectedNotes'?: { [key: string]: string; };
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @type {string}
|
|
472
|
+
* @memberof ModelsNoteMeta
|
|
473
|
+
*/
|
|
474
|
+
'description'?: string;
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @type {Array<ModelsNoteLink>}
|
|
478
|
+
* @memberof ModelsNoteMeta
|
|
479
|
+
*/
|
|
480
|
+
'externalLinks'?: Array<ModelsNoteLink>;
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @type {Array<string>}
|
|
484
|
+
* @memberof ModelsNoteMeta
|
|
485
|
+
*/
|
|
486
|
+
'fileTags'?: Array<string>;
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @type {Array<ModelsNoteHeading>}
|
|
490
|
+
* @memberof ModelsNoteMeta
|
|
491
|
+
*/
|
|
492
|
+
'headings'?: Array<ModelsNoteHeading>;
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @type {Array<string>}
|
|
496
|
+
* @memberof ModelsNoteMeta
|
|
497
|
+
*/
|
|
498
|
+
'images'?: Array<string>;
|
|
499
|
+
/**
|
|
500
|
+
*
|
|
501
|
+
* @type {string}
|
|
502
|
+
* @memberof ModelsNoteMeta
|
|
503
|
+
*/
|
|
504
|
+
'previewImg'?: string;
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @type {boolean}
|
|
508
|
+
* @memberof ModelsNoteMeta
|
|
509
|
+
*/
|
|
510
|
+
'published'?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @type {string}
|
|
514
|
+
* @memberof ModelsNoteMeta
|
|
515
|
+
*/
|
|
516
|
+
'startup'?: string;
|
|
517
|
+
/**
|
|
518
|
+
*
|
|
519
|
+
* @type {string}
|
|
520
|
+
* @memberof ModelsNoteMeta
|
|
521
|
+
*/
|
|
522
|
+
'title'?: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @export
|
|
529
|
+
* @interface ModelsPagination
|
|
530
|
+
*/
|
|
531
|
+
export interface ModelsPagination {
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {number}
|
|
535
|
+
* @memberof ModelsPagination
|
|
536
|
+
*/
|
|
537
|
+
'limit'?: number;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {number}
|
|
541
|
+
* @memberof ModelsPagination
|
|
542
|
+
*/
|
|
543
|
+
'offset'?: number;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {number}
|
|
547
|
+
* @memberof ModelsPagination
|
|
548
|
+
*/
|
|
549
|
+
'total'?: number;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @export
|
|
554
|
+
* @interface ModelsPublicNote
|
|
555
|
+
*/
|
|
556
|
+
export interface ModelsPublicNote {
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {ModelsPublicUser}
|
|
560
|
+
* @memberof ModelsPublicNote
|
|
561
|
+
*/
|
|
562
|
+
'author'?: ModelsPublicUser;
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type {string}
|
|
566
|
+
* @memberof ModelsPublicNote
|
|
567
|
+
*/
|
|
568
|
+
'content'?: string;
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof ModelsPublicNote
|
|
573
|
+
*/
|
|
574
|
+
'createdAt'?: string;
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {Array<string>}
|
|
578
|
+
* @memberof ModelsPublicNote
|
|
579
|
+
*/
|
|
580
|
+
'filePath'?: Array<string>;
|
|
581
|
+
/**
|
|
582
|
+
* It\'s externalID from original note
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof ModelsPublicNote
|
|
585
|
+
*/
|
|
586
|
+
'id'?: string;
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {boolean}
|
|
590
|
+
* @memberof ModelsPublicNote
|
|
591
|
+
*/
|
|
592
|
+
'isMy'?: boolean;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {ModelsNoteMeta}
|
|
596
|
+
* @memberof ModelsPublicNote
|
|
597
|
+
*/
|
|
598
|
+
'meta'?: ModelsNoteMeta;
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @type {number}
|
|
602
|
+
* @memberof ModelsPublicNote
|
|
603
|
+
*/
|
|
604
|
+
'size'?: number;
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof ModelsPublicNote
|
|
609
|
+
*/
|
|
610
|
+
'touchedAt'?: string;
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type {string}
|
|
614
|
+
* @memberof ModelsPublicNote
|
|
615
|
+
*/
|
|
616
|
+
'updatedAt'?: string;
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @export
|
|
621
|
+
* @interface ModelsPublicUser
|
|
622
|
+
*/
|
|
623
|
+
export interface ModelsPublicUser {
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @type {string}
|
|
627
|
+
* @memberof ModelsPublicUser
|
|
628
|
+
*/
|
|
629
|
+
'avatarUrl'?: string;
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @type {string}
|
|
633
|
+
* @memberof ModelsPublicUser
|
|
634
|
+
*/
|
|
635
|
+
'email'?: string;
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @type {string}
|
|
639
|
+
* @memberof ModelsPublicUser
|
|
640
|
+
*/
|
|
641
|
+
'id'?: string;
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @type {string}
|
|
645
|
+
* @memberof ModelsPublicUser
|
|
646
|
+
*/
|
|
647
|
+
'name'?: string;
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof ModelsPublicUser
|
|
652
|
+
*/
|
|
653
|
+
'nickName'?: string;
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof ModelsPublicUser
|
|
658
|
+
*/
|
|
659
|
+
'profileUrl'?: string;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @export
|
|
664
|
+
* @interface ModelsUserPersonalInfo
|
|
665
|
+
*/
|
|
666
|
+
export interface ModelsUserPersonalInfo {
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @type {string}
|
|
670
|
+
* @memberof ModelsUserPersonalInfo
|
|
671
|
+
*/
|
|
672
|
+
'active'?: string;
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @type {string}
|
|
676
|
+
* @memberof ModelsUserPersonalInfo
|
|
677
|
+
*/
|
|
678
|
+
'avatarUrl'?: string;
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* @type {string}
|
|
682
|
+
* @memberof ModelsUserPersonalInfo
|
|
683
|
+
*/
|
|
684
|
+
'email'?: string;
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof ModelsUserPersonalInfo
|
|
689
|
+
*/
|
|
690
|
+
'id'?: string;
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @type {string}
|
|
694
|
+
* @memberof ModelsUserPersonalInfo
|
|
695
|
+
*/
|
|
696
|
+
'name'?: string;
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @type {string}
|
|
700
|
+
* @memberof ModelsUserPersonalInfo
|
|
701
|
+
*/
|
|
702
|
+
'nickName'?: string;
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @type {string}
|
|
706
|
+
* @memberof ModelsUserPersonalInfo
|
|
707
|
+
*/
|
|
708
|
+
'profileUrl'?: string;
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @type {number}
|
|
712
|
+
* @memberof ModelsUserPersonalInfo
|
|
713
|
+
*/
|
|
714
|
+
'spaceLimit'?: number;
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @type {number}
|
|
718
|
+
* @memberof ModelsUserPersonalInfo
|
|
719
|
+
*/
|
|
720
|
+
'usedSpace'?: number;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* AuthApi - axios parameter creator
|
|
725
|
+
* @export
|
|
726
|
+
*/
|
|
727
|
+
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
728
|
+
return {
|
|
729
|
+
/**
|
|
730
|
+
* Delete user account
|
|
731
|
+
* @summary Delete user account
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
authAccountDelete: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
736
|
+
const localVarPath = `/auth/account`;
|
|
737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
739
|
+
let baseOptions;
|
|
740
|
+
if (configuration) {
|
|
741
|
+
baseOptions = configuration.baseOptions;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
745
|
+
const localVarHeaderParameter = {} as any;
|
|
746
|
+
const localVarQueryParameter = {} as any;
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
752
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
753
|
+
|
|
754
|
+
return {
|
|
755
|
+
url: toPathString(localVarUrlObj),
|
|
756
|
+
options: localVarRequestOptions,
|
|
757
|
+
};
|
|
758
|
+
},
|
|
759
|
+
/**
|
|
760
|
+
* Return all available API tokens
|
|
761
|
+
* @summary Get API tokens
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
authApiTokensGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
766
|
+
const localVarPath = `/auth/api-tokens`;
|
|
767
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
768
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
769
|
+
let baseOptions;
|
|
770
|
+
if (configuration) {
|
|
771
|
+
baseOptions = configuration.baseOptions;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
775
|
+
const localVarHeaderParameter = {} as any;
|
|
776
|
+
const localVarQueryParameter = {} as any;
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
782
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
783
|
+
|
|
784
|
+
return {
|
|
785
|
+
url: toPathString(localVarUrlObj),
|
|
786
|
+
options: localVarRequestOptions,
|
|
787
|
+
};
|
|
788
|
+
},
|
|
789
|
+
/**
|
|
790
|
+
*
|
|
791
|
+
* @summary Logout
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
authLogoutGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
796
|
+
const localVarPath = `/auth/logout`;
|
|
797
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
798
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
799
|
+
let baseOptions;
|
|
800
|
+
if (configuration) {
|
|
801
|
+
baseOptions = configuration.baseOptions;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
805
|
+
const localVarHeaderParameter = {} as any;
|
|
806
|
+
const localVarQueryParameter = {} as any;
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
812
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
813
|
+
|
|
814
|
+
return {
|
|
815
|
+
url: toPathString(localVarUrlObj),
|
|
816
|
+
options: localVarRequestOptions,
|
|
817
|
+
};
|
|
818
|
+
},
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @summary Callback for OAuth
|
|
822
|
+
* @param {string} provider provider
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
*/
|
|
826
|
+
authProviderCallbackGet: async (provider: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
827
|
+
// verify required parameter 'provider' is not null or undefined
|
|
828
|
+
assertParamExists('authProviderCallbackGet', 'provider', provider)
|
|
829
|
+
const localVarPath = `/auth/{provider}/callback`
|
|
830
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
831
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
832
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
833
|
+
let baseOptions;
|
|
834
|
+
if (configuration) {
|
|
835
|
+
baseOptions = configuration.baseOptions;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
839
|
+
const localVarHeaderParameter = {} as any;
|
|
840
|
+
const localVarQueryParameter = {} as any;
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
846
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
847
|
+
|
|
848
|
+
return {
|
|
849
|
+
url: toPathString(localVarUrlObj),
|
|
850
|
+
options: localVarRequestOptions,
|
|
851
|
+
};
|
|
852
|
+
},
|
|
853
|
+
/**
|
|
854
|
+
* Entrypoint for login
|
|
855
|
+
* @summary OAuth Login
|
|
856
|
+
* @param {string} provider provider
|
|
857
|
+
* @param {string} [state] OAuth state
|
|
858
|
+
* @param {*} [options] Override http request option.
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
*/
|
|
861
|
+
authProviderLoginGet: async (provider: string, state?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
862
|
+
// verify required parameter 'provider' is not null or undefined
|
|
863
|
+
assertParamExists('authProviderLoginGet', 'provider', provider)
|
|
864
|
+
const localVarPath = `/auth/{provider}/login`
|
|
865
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
866
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
867
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
868
|
+
let baseOptions;
|
|
869
|
+
if (configuration) {
|
|
870
|
+
baseOptions = configuration.baseOptions;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
874
|
+
const localVarHeaderParameter = {} as any;
|
|
875
|
+
const localVarQueryParameter = {} as any;
|
|
876
|
+
|
|
877
|
+
if (state !== undefined) {
|
|
878
|
+
localVarQueryParameter['state'] = state;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
885
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
886
|
+
|
|
887
|
+
return {
|
|
888
|
+
url: toPathString(localVarUrlObj),
|
|
889
|
+
options: localVarRequestOptions,
|
|
890
|
+
};
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
* Subscribe for backend features, like sync notes
|
|
894
|
+
* @summary Subscribe
|
|
895
|
+
* @param {HandlersSubscribeBody} data token
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
authSubscribePost: async (data: HandlersSubscribeBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
900
|
+
// verify required parameter 'data' is not null or undefined
|
|
901
|
+
assertParamExists('authSubscribePost', 'data', data)
|
|
902
|
+
const localVarPath = `/auth/subscribe`;
|
|
903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
904
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
905
|
+
let baseOptions;
|
|
906
|
+
if (configuration) {
|
|
907
|
+
baseOptions = configuration.baseOptions;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
911
|
+
const localVarHeaderParameter = {} as any;
|
|
912
|
+
const localVarQueryParameter = {} as any;
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
917
|
+
|
|
918
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
919
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
920
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
921
|
+
localVarRequestOptions.data = serializeDataIfNeeded(data, localVarRequestOptions, configuration)
|
|
922
|
+
|
|
923
|
+
return {
|
|
924
|
+
url: toPathString(localVarUrlObj),
|
|
925
|
+
options: localVarRequestOptions,
|
|
926
|
+
};
|
|
927
|
+
},
|
|
928
|
+
/**
|
|
929
|
+
* Create API token
|
|
930
|
+
* @summary Create API token
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
authTokenPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
935
|
+
const localVarPath = `/auth/token`;
|
|
936
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
937
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
938
|
+
let baseOptions;
|
|
939
|
+
if (configuration) {
|
|
940
|
+
baseOptions = configuration.baseOptions;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
944
|
+
const localVarHeaderParameter = {} as any;
|
|
945
|
+
const localVarQueryParameter = {} as any;
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
951
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
952
|
+
|
|
953
|
+
return {
|
|
954
|
+
url: toPathString(localVarUrlObj),
|
|
955
|
+
options: localVarRequestOptions,
|
|
956
|
+
};
|
|
957
|
+
},
|
|
958
|
+
/**
|
|
959
|
+
* Delete API token
|
|
960
|
+
* @summary Delete API token
|
|
961
|
+
* @param {string} tokenId token id
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
authTokenTokenIdDelete: async (tokenId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
966
|
+
// verify required parameter 'tokenId' is not null or undefined
|
|
967
|
+
assertParamExists('authTokenTokenIdDelete', 'tokenId', tokenId)
|
|
968
|
+
const localVarPath = `/auth/token/{tokenId}`
|
|
969
|
+
.replace(`{${"tokenId"}}`, encodeURIComponent(String(tokenId)));
|
|
970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
971
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
972
|
+
let baseOptions;
|
|
973
|
+
if (configuration) {
|
|
974
|
+
baseOptions = configuration.baseOptions;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
978
|
+
const localVarHeaderParameter = {} as any;
|
|
979
|
+
const localVarQueryParameter = {} as any;
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
984
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
986
|
+
|
|
987
|
+
return {
|
|
988
|
+
url: toPathString(localVarUrlObj),
|
|
989
|
+
options: localVarRequestOptions,
|
|
990
|
+
};
|
|
991
|
+
},
|
|
992
|
+
/**
|
|
993
|
+
* Return found user by provided token
|
|
994
|
+
* @summary Verify user
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
authVerifyGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
999
|
+
const localVarPath = `/auth/verify`;
|
|
1000
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1001
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1002
|
+
let baseOptions;
|
|
1003
|
+
if (configuration) {
|
|
1004
|
+
baseOptions = configuration.baseOptions;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1008
|
+
const localVarHeaderParameter = {} as any;
|
|
1009
|
+
const localVarQueryParameter = {} as any;
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1014
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1015
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1016
|
+
|
|
1017
|
+
return {
|
|
1018
|
+
url: toPathString(localVarUrlObj),
|
|
1019
|
+
options: localVarRequestOptions,
|
|
1020
|
+
};
|
|
1021
|
+
},
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* AuthApi - functional programming interface
|
|
1027
|
+
* @export
|
|
1028
|
+
*/
|
|
1029
|
+
export const AuthApiFp = function(configuration?: Configuration) {
|
|
1030
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
1031
|
+
return {
|
|
1032
|
+
/**
|
|
1033
|
+
* Delete user account
|
|
1034
|
+
* @summary Delete user account
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
async authAccountDelete(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1039
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authAccountDelete(options);
|
|
1040
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1041
|
+
},
|
|
1042
|
+
/**
|
|
1043
|
+
* Return all available API tokens
|
|
1044
|
+
* @summary Get API tokens
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
*/
|
|
1048
|
+
async authApiTokensGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsAPITokenAny>> {
|
|
1049
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authApiTokensGet(options);
|
|
1050
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1051
|
+
},
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @summary Logout
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @throws {RequiredError}
|
|
1057
|
+
*/
|
|
1058
|
+
async authLogoutGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1059
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authLogoutGet(options);
|
|
1060
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1061
|
+
},
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
* @summary Callback for OAuth
|
|
1065
|
+
* @param {string} provider provider
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
*/
|
|
1069
|
+
async authProviderCallbackGet(provider: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1070
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authProviderCallbackGet(provider, options);
|
|
1071
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1072
|
+
},
|
|
1073
|
+
/**
|
|
1074
|
+
* Entrypoint for login
|
|
1075
|
+
* @summary OAuth Login
|
|
1076
|
+
* @param {string} provider provider
|
|
1077
|
+
* @param {string} [state] OAuth state
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
async authProviderLoginGet(provider: string, state?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersOAuthRedirectDataAny>> {
|
|
1082
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authProviderLoginGet(provider, state, options);
|
|
1083
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1084
|
+
},
|
|
1085
|
+
/**
|
|
1086
|
+
* Subscribe for backend features, like sync notes
|
|
1087
|
+
* @summary Subscribe
|
|
1088
|
+
* @param {HandlersSubscribeBody} data token
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
async authSubscribePost(data: HandlersSubscribeBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authSubscribePost(data, options);
|
|
1094
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1095
|
+
},
|
|
1096
|
+
/**
|
|
1097
|
+
* Create API token
|
|
1098
|
+
* @summary Create API token
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
*/
|
|
1102
|
+
async authTokenPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsAPITokenAny>> {
|
|
1103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authTokenPost(options);
|
|
1104
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1105
|
+
},
|
|
1106
|
+
/**
|
|
1107
|
+
* Delete API token
|
|
1108
|
+
* @summary Delete API token
|
|
1109
|
+
* @param {string} tokenId token id
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
*/
|
|
1113
|
+
async authTokenTokenIdDelete(tokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authTokenTokenIdDelete(tokenId, options);
|
|
1115
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1116
|
+
},
|
|
1117
|
+
/**
|
|
1118
|
+
* Return found user by provided token
|
|
1119
|
+
* @summary Verify user
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
async authVerifyGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsUserPersonalInfoAny>> {
|
|
1124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authVerifyGet(options);
|
|
1125
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1126
|
+
},
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* AuthApi - factory interface
|
|
1132
|
+
* @export
|
|
1133
|
+
*/
|
|
1134
|
+
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1135
|
+
const localVarFp = AuthApiFp(configuration)
|
|
1136
|
+
return {
|
|
1137
|
+
/**
|
|
1138
|
+
* Delete user account
|
|
1139
|
+
* @summary Delete user account
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
authAccountDelete(options?: any): AxiosPromise<object> {
|
|
1144
|
+
return localVarFp.authAccountDelete(options).then((request) => request(axios, basePath));
|
|
1145
|
+
},
|
|
1146
|
+
/**
|
|
1147
|
+
* Return all available API tokens
|
|
1148
|
+
* @summary Get API tokens
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
authApiTokensGet(options?: any): AxiosPromise<HandlersHttpResponseArrayModelsAPITokenAny> {
|
|
1153
|
+
return localVarFp.authApiTokensGet(options).then((request) => request(axios, basePath));
|
|
1154
|
+
},
|
|
1155
|
+
/**
|
|
1156
|
+
*
|
|
1157
|
+
* @summary Logout
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
*/
|
|
1161
|
+
authLogoutGet(options?: any): AxiosPromise<object> {
|
|
1162
|
+
return localVarFp.authLogoutGet(options).then((request) => request(axios, basePath));
|
|
1163
|
+
},
|
|
1164
|
+
/**
|
|
1165
|
+
*
|
|
1166
|
+
* @summary Callback for OAuth
|
|
1167
|
+
* @param {string} provider provider
|
|
1168
|
+
* @param {*} [options] Override http request option.
|
|
1169
|
+
* @throws {RequiredError}
|
|
1170
|
+
*/
|
|
1171
|
+
authProviderCallbackGet(provider: string, options?: any): AxiosPromise<object> {
|
|
1172
|
+
return localVarFp.authProviderCallbackGet(provider, options).then((request) => request(axios, basePath));
|
|
1173
|
+
},
|
|
1174
|
+
/**
|
|
1175
|
+
* Entrypoint for login
|
|
1176
|
+
* @summary OAuth Login
|
|
1177
|
+
* @param {string} provider provider
|
|
1178
|
+
* @param {string} [state] OAuth state
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
authProviderLoginGet(provider: string, state?: string, options?: any): AxiosPromise<HandlersHttpResponseHandlersOAuthRedirectDataAny> {
|
|
1183
|
+
return localVarFp.authProviderLoginGet(provider, state, options).then((request) => request(axios, basePath));
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
* Subscribe for backend features, like sync notes
|
|
1187
|
+
* @summary Subscribe
|
|
1188
|
+
* @param {HandlersSubscribeBody} data token
|
|
1189
|
+
* @param {*} [options] Override http request option.
|
|
1190
|
+
* @throws {RequiredError}
|
|
1191
|
+
*/
|
|
1192
|
+
authSubscribePost(data: HandlersSubscribeBody, options?: any): AxiosPromise<object> {
|
|
1193
|
+
return localVarFp.authSubscribePost(data, options).then((request) => request(axios, basePath));
|
|
1194
|
+
},
|
|
1195
|
+
/**
|
|
1196
|
+
* Create API token
|
|
1197
|
+
* @summary Create API token
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
authTokenPost(options?: any): AxiosPromise<HandlersHttpResponseModelsAPITokenAny> {
|
|
1202
|
+
return localVarFp.authTokenPost(options).then((request) => request(axios, basePath));
|
|
1203
|
+
},
|
|
1204
|
+
/**
|
|
1205
|
+
* Delete API token
|
|
1206
|
+
* @summary Delete API token
|
|
1207
|
+
* @param {string} tokenId token id
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
authTokenTokenIdDelete(tokenId: string, options?: any): AxiosPromise<object> {
|
|
1212
|
+
return localVarFp.authTokenTokenIdDelete(tokenId, options).then((request) => request(axios, basePath));
|
|
1213
|
+
},
|
|
1214
|
+
/**
|
|
1215
|
+
* Return found user by provided token
|
|
1216
|
+
* @summary Verify user
|
|
1217
|
+
* @param {*} [options] Override http request option.
|
|
1218
|
+
* @throws {RequiredError}
|
|
1219
|
+
*/
|
|
1220
|
+
authVerifyGet(options?: any): AxiosPromise<HandlersHttpResponseModelsUserPersonalInfoAny> {
|
|
1221
|
+
return localVarFp.authVerifyGet(options).then((request) => request(axios, basePath));
|
|
1222
|
+
},
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* AuthApi - object-oriented interface
|
|
1228
|
+
* @export
|
|
1229
|
+
* @class AuthApi
|
|
1230
|
+
* @extends {BaseAPI}
|
|
1231
|
+
*/
|
|
1232
|
+
export class AuthApi extends BaseAPI {
|
|
1233
|
+
/**
|
|
1234
|
+
* Delete user account
|
|
1235
|
+
* @summary Delete user account
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
* @memberof AuthApi
|
|
1239
|
+
*/
|
|
1240
|
+
public authAccountDelete(options?: AxiosRequestConfig) {
|
|
1241
|
+
return AuthApiFp(this.configuration).authAccountDelete(options).then((request) => request(this.axios, this.basePath));
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Return all available API tokens
|
|
1246
|
+
* @summary Get API tokens
|
|
1247
|
+
* @param {*} [options] Override http request option.
|
|
1248
|
+
* @throws {RequiredError}
|
|
1249
|
+
* @memberof AuthApi
|
|
1250
|
+
*/
|
|
1251
|
+
public authApiTokensGet(options?: AxiosRequestConfig) {
|
|
1252
|
+
return AuthApiFp(this.configuration).authApiTokensGet(options).then((request) => request(this.axios, this.basePath));
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
*
|
|
1257
|
+
* @summary Logout
|
|
1258
|
+
* @param {*} [options] Override http request option.
|
|
1259
|
+
* @throws {RequiredError}
|
|
1260
|
+
* @memberof AuthApi
|
|
1261
|
+
*/
|
|
1262
|
+
public authLogoutGet(options?: AxiosRequestConfig) {
|
|
1263
|
+
return AuthApiFp(this.configuration).authLogoutGet(options).then((request) => request(this.axios, this.basePath));
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
*
|
|
1268
|
+
* @summary Callback for OAuth
|
|
1269
|
+
* @param {string} provider provider
|
|
1270
|
+
* @param {*} [options] Override http request option.
|
|
1271
|
+
* @throws {RequiredError}
|
|
1272
|
+
* @memberof AuthApi
|
|
1273
|
+
*/
|
|
1274
|
+
public authProviderCallbackGet(provider: string, options?: AxiosRequestConfig) {
|
|
1275
|
+
return AuthApiFp(this.configuration).authProviderCallbackGet(provider, options).then((request) => request(this.axios, this.basePath));
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Entrypoint for login
|
|
1280
|
+
* @summary OAuth Login
|
|
1281
|
+
* @param {string} provider provider
|
|
1282
|
+
* @param {string} [state] OAuth state
|
|
1283
|
+
* @param {*} [options] Override http request option.
|
|
1284
|
+
* @throws {RequiredError}
|
|
1285
|
+
* @memberof AuthApi
|
|
1286
|
+
*/
|
|
1287
|
+
public authProviderLoginGet(provider: string, state?: string, options?: AxiosRequestConfig) {
|
|
1288
|
+
return AuthApiFp(this.configuration).authProviderLoginGet(provider, state, options).then((request) => request(this.axios, this.basePath));
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* Subscribe for backend features, like sync notes
|
|
1293
|
+
* @summary Subscribe
|
|
1294
|
+
* @param {HandlersSubscribeBody} data token
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
* @memberof AuthApi
|
|
1298
|
+
*/
|
|
1299
|
+
public authSubscribePost(data: HandlersSubscribeBody, options?: AxiosRequestConfig) {
|
|
1300
|
+
return AuthApiFp(this.configuration).authSubscribePost(data, options).then((request) => request(this.axios, this.basePath));
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Create API token
|
|
1305
|
+
* @summary Create API token
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
* @memberof AuthApi
|
|
1309
|
+
*/
|
|
1310
|
+
public authTokenPost(options?: AxiosRequestConfig) {
|
|
1311
|
+
return AuthApiFp(this.configuration).authTokenPost(options).then((request) => request(this.axios, this.basePath));
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Delete API token
|
|
1316
|
+
* @summary Delete API token
|
|
1317
|
+
* @param {string} tokenId token id
|
|
1318
|
+
* @param {*} [options] Override http request option.
|
|
1319
|
+
* @throws {RequiredError}
|
|
1320
|
+
* @memberof AuthApi
|
|
1321
|
+
*/
|
|
1322
|
+
public authTokenTokenIdDelete(tokenId: string, options?: AxiosRequestConfig) {
|
|
1323
|
+
return AuthApiFp(this.configuration).authTokenTokenIdDelete(tokenId, options).then((request) => request(this.axios, this.basePath));
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* Return found user by provided token
|
|
1328
|
+
* @summary Verify user
|
|
1329
|
+
* @param {*} [options] Override http request option.
|
|
1330
|
+
* @throws {RequiredError}
|
|
1331
|
+
* @memberof AuthApi
|
|
1332
|
+
*/
|
|
1333
|
+
public authVerifyGet(options?: AxiosRequestConfig) {
|
|
1334
|
+
return AuthApiFp(this.configuration).authVerifyGet(options).then((request) => request(this.axios, this.basePath));
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* FilesApi - axios parameter creator
|
|
1341
|
+
* @export
|
|
1342
|
+
*/
|
|
1343
|
+
export const FilesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1344
|
+
return {
|
|
1345
|
+
/**
|
|
1346
|
+
* Upload files.
|
|
1347
|
+
* @summary Upload files
|
|
1348
|
+
* @param {FilesUploadPostRequest} filesUploadPostRequest
|
|
1349
|
+
* @param {*} [options] Override http request option.
|
|
1350
|
+
* @throws {RequiredError}
|
|
1351
|
+
*/
|
|
1352
|
+
filesUploadPost: async (filesUploadPostRequest: FilesUploadPostRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1353
|
+
// verify required parameter 'filesUploadPostRequest' is not null or undefined
|
|
1354
|
+
assertParamExists('filesUploadPost', 'filesUploadPostRequest', filesUploadPostRequest)
|
|
1355
|
+
const localVarPath = `/files/upload`;
|
|
1356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1358
|
+
let baseOptions;
|
|
1359
|
+
if (configuration) {
|
|
1360
|
+
baseOptions = configuration.baseOptions;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1364
|
+
const localVarHeaderParameter = {} as any;
|
|
1365
|
+
const localVarQueryParameter = {} as any;
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1370
|
+
|
|
1371
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1372
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1373
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1374
|
+
localVarRequestOptions.data = serializeDataIfNeeded(filesUploadPostRequest, localVarRequestOptions, configuration)
|
|
1375
|
+
|
|
1376
|
+
return {
|
|
1377
|
+
url: toPathString(localVarUrlObj),
|
|
1378
|
+
options: localVarRequestOptions,
|
|
1379
|
+
};
|
|
1380
|
+
},
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* FilesApi - functional programming interface
|
|
1386
|
+
* @export
|
|
1387
|
+
*/
|
|
1388
|
+
export const FilesApiFp = function(configuration?: Configuration) {
|
|
1389
|
+
const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration)
|
|
1390
|
+
return {
|
|
1391
|
+
/**
|
|
1392
|
+
* Upload files.
|
|
1393
|
+
* @summary Upload files
|
|
1394
|
+
* @param {FilesUploadPostRequest} filesUploadPostRequest
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
*/
|
|
1398
|
+
async filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.filesUploadPost(filesUploadPostRequest, options);
|
|
1400
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1401
|
+
},
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* FilesApi - factory interface
|
|
1407
|
+
* @export
|
|
1408
|
+
*/
|
|
1409
|
+
export const FilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1410
|
+
const localVarFp = FilesApiFp(configuration)
|
|
1411
|
+
return {
|
|
1412
|
+
/**
|
|
1413
|
+
* Upload files.
|
|
1414
|
+
* @summary Upload files
|
|
1415
|
+
* @param {FilesUploadPostRequest} filesUploadPostRequest
|
|
1416
|
+
* @param {*} [options] Override http request option.
|
|
1417
|
+
* @throws {RequiredError}
|
|
1418
|
+
*/
|
|
1419
|
+
filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: any): AxiosPromise<object> {
|
|
1420
|
+
return localVarFp.filesUploadPost(filesUploadPostRequest, options).then((request) => request(axios, basePath));
|
|
1421
|
+
},
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* FilesApi - object-oriented interface
|
|
1427
|
+
* @export
|
|
1428
|
+
* @class FilesApi
|
|
1429
|
+
* @extends {BaseAPI}
|
|
1430
|
+
*/
|
|
1431
|
+
export class FilesApi extends BaseAPI {
|
|
1432
|
+
/**
|
|
1433
|
+
* Upload files.
|
|
1434
|
+
* @summary Upload files
|
|
1435
|
+
* @param {FilesUploadPostRequest} filesUploadPostRequest
|
|
1436
|
+
* @param {*} [options] Override http request option.
|
|
1437
|
+
* @throws {RequiredError}
|
|
1438
|
+
* @memberof FilesApi
|
|
1439
|
+
*/
|
|
1440
|
+
public filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: AxiosRequestConfig) {
|
|
1441
|
+
return FilesApiFp(this.configuration).filesUploadPost(filesUploadPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* NotesApi - axios parameter creator
|
|
1448
|
+
* @export
|
|
1449
|
+
*/
|
|
1450
|
+
export const NotesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1451
|
+
return {
|
|
1452
|
+
/**
|
|
1453
|
+
* Bulk update or insert notes
|
|
1454
|
+
* @summary Upsert notes
|
|
1455
|
+
* @param {Array<HandlersCreatingNote>} notes List of crated notes
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
notesBulkUpsertPut: async (notes: Array<HandlersCreatingNote>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1460
|
+
// verify required parameter 'notes' is not null or undefined
|
|
1461
|
+
assertParamExists('notesBulkUpsertPut', 'notes', notes)
|
|
1462
|
+
const localVarPath = `/notes/bulk-upsert`;
|
|
1463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1464
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1465
|
+
let baseOptions;
|
|
1466
|
+
if (configuration) {
|
|
1467
|
+
baseOptions = configuration.baseOptions;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1471
|
+
const localVarHeaderParameter = {} as any;
|
|
1472
|
+
const localVarQueryParameter = {} as any;
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1477
|
+
|
|
1478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1480
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1481
|
+
localVarRequestOptions.data = serializeDataIfNeeded(notes, localVarRequestOptions, configuration)
|
|
1482
|
+
|
|
1483
|
+
return {
|
|
1484
|
+
url: toPathString(localVarUrlObj),
|
|
1485
|
+
options: localVarRequestOptions,
|
|
1486
|
+
};
|
|
1487
|
+
},
|
|
1488
|
+
/**
|
|
1489
|
+
* Mark notes as deleted by provided list of ids
|
|
1490
|
+
* @summary Delete notes
|
|
1491
|
+
* @param {Array<string>} ids List of ids of deleted notes
|
|
1492
|
+
* @param {*} [options] Override http request option.
|
|
1493
|
+
* @throws {RequiredError}
|
|
1494
|
+
*/
|
|
1495
|
+
notesDelete: async (ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1496
|
+
// verify required parameter 'ids' is not null or undefined
|
|
1497
|
+
assertParamExists('notesDelete', 'ids', ids)
|
|
1498
|
+
const localVarPath = `/notes`;
|
|
1499
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1500
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1501
|
+
let baseOptions;
|
|
1502
|
+
if (configuration) {
|
|
1503
|
+
baseOptions = configuration.baseOptions;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1507
|
+
const localVarHeaderParameter = {} as any;
|
|
1508
|
+
const localVarQueryParameter = {} as any;
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1513
|
+
|
|
1514
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1515
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1516
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1517
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ids, localVarRequestOptions, configuration)
|
|
1518
|
+
|
|
1519
|
+
return {
|
|
1520
|
+
url: toPathString(localVarUrlObj),
|
|
1521
|
+
options: localVarRequestOptions,
|
|
1522
|
+
};
|
|
1523
|
+
},
|
|
1524
|
+
/**
|
|
1525
|
+
* Get all notes with optional filter
|
|
1526
|
+
* @summary Get notes
|
|
1527
|
+
* @param {number} [limit]
|
|
1528
|
+
* @param {number} [offset]
|
|
1529
|
+
* @param {string} [userId] User id of which notes to load
|
|
1530
|
+
* @param {string} [searchText]
|
|
1531
|
+
* @param {boolean} [my] Load all my own notes (user will be used from provided token)
|
|
1532
|
+
* @param {string} [from]
|
|
1533
|
+
* @param {boolean} [includeDeleted]
|
|
1534
|
+
* @param {*} [options] Override http request option.
|
|
1535
|
+
* @throws {RequiredError}
|
|
1536
|
+
*/
|
|
1537
|
+
notesGet: async (limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1538
|
+
const localVarPath = `/notes/`;
|
|
1539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1540
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1541
|
+
let baseOptions;
|
|
1542
|
+
if (configuration) {
|
|
1543
|
+
baseOptions = configuration.baseOptions;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1547
|
+
const localVarHeaderParameter = {} as any;
|
|
1548
|
+
const localVarQueryParameter = {} as any;
|
|
1549
|
+
|
|
1550
|
+
if (limit !== undefined) {
|
|
1551
|
+
localVarQueryParameter['limit'] = limit;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
if (offset !== undefined) {
|
|
1555
|
+
localVarQueryParameter['offset'] = offset;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
if (userId !== undefined) {
|
|
1559
|
+
localVarQueryParameter['userId'] = userId;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
if (searchText !== undefined) {
|
|
1563
|
+
localVarQueryParameter['searchText'] = searchText;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
if (my !== undefined) {
|
|
1567
|
+
localVarQueryParameter['my'] = my;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
if (from !== undefined) {
|
|
1571
|
+
localVarQueryParameter['from'] = from;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
if (includeDeleted !== undefined) {
|
|
1575
|
+
localVarQueryParameter['includeDeleted'] = includeDeleted;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1582
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1583
|
+
|
|
1584
|
+
return {
|
|
1585
|
+
url: toPathString(localVarUrlObj),
|
|
1586
|
+
options: localVarRequestOptions,
|
|
1587
|
+
};
|
|
1588
|
+
},
|
|
1589
|
+
/**
|
|
1590
|
+
* get note by id
|
|
1591
|
+
* @summary Get note
|
|
1592
|
+
* @param {string} id Note ID
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
*/
|
|
1596
|
+
notesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1597
|
+
// verify required parameter 'id' is not null or undefined
|
|
1598
|
+
assertParamExists('notesIdGet', 'id', id)
|
|
1599
|
+
const localVarPath = `/notes/{id}`
|
|
1600
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1603
|
+
let baseOptions;
|
|
1604
|
+
if (configuration) {
|
|
1605
|
+
baseOptions = configuration.baseOptions;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1609
|
+
const localVarHeaderParameter = {} as any;
|
|
1610
|
+
const localVarQueryParameter = {} as any;
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1616
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1617
|
+
|
|
1618
|
+
return {
|
|
1619
|
+
url: toPathString(localVarUrlObj),
|
|
1620
|
+
options: localVarRequestOptions,
|
|
1621
|
+
};
|
|
1622
|
+
},
|
|
1623
|
+
/**
|
|
1624
|
+
* Create note
|
|
1625
|
+
* @summary Create note
|
|
1626
|
+
* @param {HandlersCreatingNote} note Note model
|
|
1627
|
+
* @param {*} [options] Override http request option.
|
|
1628
|
+
* @throws {RequiredError}
|
|
1629
|
+
*/
|
|
1630
|
+
notesPost: async (note: HandlersCreatingNote, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1631
|
+
// verify required parameter 'note' is not null or undefined
|
|
1632
|
+
assertParamExists('notesPost', 'note', note)
|
|
1633
|
+
const localVarPath = `/notes/`;
|
|
1634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1635
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1636
|
+
let baseOptions;
|
|
1637
|
+
if (configuration) {
|
|
1638
|
+
baseOptions = configuration.baseOptions;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1642
|
+
const localVarHeaderParameter = {} as any;
|
|
1643
|
+
const localVarQueryParameter = {} as any;
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1648
|
+
|
|
1649
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1650
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1651
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1652
|
+
localVarRequestOptions.data = serializeDataIfNeeded(note, localVarRequestOptions, configuration)
|
|
1653
|
+
|
|
1654
|
+
return {
|
|
1655
|
+
url: toPathString(localVarUrlObj),
|
|
1656
|
+
options: localVarRequestOptions,
|
|
1657
|
+
};
|
|
1658
|
+
},
|
|
1659
|
+
/**
|
|
1660
|
+
* Synchronize notes with specific timestamp
|
|
1661
|
+
* @summary Synchronize notes
|
|
1662
|
+
* @param {HandlersSyncNotesRequest} data Sync notes request
|
|
1663
|
+
* @param {*} [options] Override http request option.
|
|
1664
|
+
* @throws {RequiredError}
|
|
1665
|
+
*/
|
|
1666
|
+
notesSyncPost: async (data: HandlersSyncNotesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1667
|
+
// verify required parameter 'data' is not null or undefined
|
|
1668
|
+
assertParamExists('notesSyncPost', 'data', data)
|
|
1669
|
+
const localVarPath = `/notes/sync`;
|
|
1670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1671
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1672
|
+
let baseOptions;
|
|
1673
|
+
if (configuration) {
|
|
1674
|
+
baseOptions = configuration.baseOptions;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1678
|
+
const localVarHeaderParameter = {} as any;
|
|
1679
|
+
const localVarQueryParameter = {} as any;
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1684
|
+
|
|
1685
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1687
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1688
|
+
localVarRequestOptions.data = serializeDataIfNeeded(data, localVarRequestOptions, configuration)
|
|
1689
|
+
|
|
1690
|
+
return {
|
|
1691
|
+
url: toPathString(localVarUrlObj),
|
|
1692
|
+
options: localVarRequestOptions,
|
|
1693
|
+
};
|
|
1694
|
+
},
|
|
1695
|
+
}
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* NotesApi - functional programming interface
|
|
1700
|
+
* @export
|
|
1701
|
+
*/
|
|
1702
|
+
export const NotesApiFp = function(configuration?: Configuration) {
|
|
1703
|
+
const localVarAxiosParamCreator = NotesApiAxiosParamCreator(configuration)
|
|
1704
|
+
return {
|
|
1705
|
+
/**
|
|
1706
|
+
* Bulk update or insert notes
|
|
1707
|
+
* @summary Upsert notes
|
|
1708
|
+
* @param {Array<HandlersCreatingNote>} notes List of crated notes
|
|
1709
|
+
* @param {*} [options] Override http request option.
|
|
1710
|
+
* @throws {RequiredError}
|
|
1711
|
+
*/
|
|
1712
|
+
async notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1713
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notesBulkUpsertPut(notes, options);
|
|
1714
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1715
|
+
},
|
|
1716
|
+
/**
|
|
1717
|
+
* Mark notes as deleted by provided list of ids
|
|
1718
|
+
* @summary Delete notes
|
|
1719
|
+
* @param {Array<string>} ids List of ids of deleted notes
|
|
1720
|
+
* @param {*} [options] Override http request option.
|
|
1721
|
+
* @throws {RequiredError}
|
|
1722
|
+
*/
|
|
1723
|
+
async notesDelete(ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseAnyAny>> {
|
|
1724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notesDelete(ids, options);
|
|
1725
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1726
|
+
},
|
|
1727
|
+
/**
|
|
1728
|
+
* Get all notes with optional filter
|
|
1729
|
+
* @summary Get notes
|
|
1730
|
+
* @param {number} [limit]
|
|
1731
|
+
* @param {number} [offset]
|
|
1732
|
+
* @param {string} [userId] User id of which notes to load
|
|
1733
|
+
* @param {string} [searchText]
|
|
1734
|
+
* @param {boolean} [my] Load all my own notes (user will be used from provided token)
|
|
1735
|
+
* @param {string} [from]
|
|
1736
|
+
* @param {boolean} [includeDeleted]
|
|
1737
|
+
* @param {*} [options] Override http request option.
|
|
1738
|
+
* @throws {RequiredError}
|
|
1739
|
+
*/
|
|
1740
|
+
async notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsPublicNoteModelsPagination>> {
|
|
1741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notesGet(limit, offset, userId, searchText, my, from, includeDeleted, options);
|
|
1742
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1743
|
+
},
|
|
1744
|
+
/**
|
|
1745
|
+
* get note by id
|
|
1746
|
+
* @summary Get note
|
|
1747
|
+
* @param {string} id Note ID
|
|
1748
|
+
* @param {*} [options] Override http request option.
|
|
1749
|
+
* @throws {RequiredError}
|
|
1750
|
+
*/
|
|
1751
|
+
async notesIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsPublicNoteAny>> {
|
|
1752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notesIdGet(id, options);
|
|
1753
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1754
|
+
},
|
|
1755
|
+
/**
|
|
1756
|
+
* Create note
|
|
1757
|
+
* @summary Create note
|
|
1758
|
+
* @param {HandlersCreatingNote} note Note model
|
|
1759
|
+
* @param {*} [options] Override http request option.
|
|
1760
|
+
* @throws {RequiredError}
|
|
1761
|
+
*/
|
|
1762
|
+
async notesPost(note: HandlersCreatingNote, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1763
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notesPost(note, options);
|
|
1764
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1765
|
+
},
|
|
1766
|
+
/**
|
|
1767
|
+
* Synchronize notes with specific timestamp
|
|
1768
|
+
* @summary Synchronize notes
|
|
1769
|
+
* @param {HandlersSyncNotesRequest} data Sync notes request
|
|
1770
|
+
* @param {*} [options] Override http request option.
|
|
1771
|
+
* @throws {RequiredError}
|
|
1772
|
+
*/
|
|
1773
|
+
async notesSyncPost(data: HandlersSyncNotesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersSyncNotesResponseAny>> {
|
|
1774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notesSyncPost(data, options);
|
|
1775
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1776
|
+
},
|
|
1777
|
+
}
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* NotesApi - factory interface
|
|
1782
|
+
* @export
|
|
1783
|
+
*/
|
|
1784
|
+
export const NotesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1785
|
+
const localVarFp = NotesApiFp(configuration)
|
|
1786
|
+
return {
|
|
1787
|
+
/**
|
|
1788
|
+
* Bulk update or insert notes
|
|
1789
|
+
* @summary Upsert notes
|
|
1790
|
+
* @param {Array<HandlersCreatingNote>} notes List of crated notes
|
|
1791
|
+
* @param {*} [options] Override http request option.
|
|
1792
|
+
* @throws {RequiredError}
|
|
1793
|
+
*/
|
|
1794
|
+
notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: any): AxiosPromise<object> {
|
|
1795
|
+
return localVarFp.notesBulkUpsertPut(notes, options).then((request) => request(axios, basePath));
|
|
1796
|
+
},
|
|
1797
|
+
/**
|
|
1798
|
+
* Mark notes as deleted by provided list of ids
|
|
1799
|
+
* @summary Delete notes
|
|
1800
|
+
* @param {Array<string>} ids List of ids of deleted notes
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
notesDelete(ids: Array<string>, options?: any): AxiosPromise<HandlersHttpResponseAnyAny> {
|
|
1805
|
+
return localVarFp.notesDelete(ids, options).then((request) => request(axios, basePath));
|
|
1806
|
+
},
|
|
1807
|
+
/**
|
|
1808
|
+
* Get all notes with optional filter
|
|
1809
|
+
* @summary Get notes
|
|
1810
|
+
* @param {number} [limit]
|
|
1811
|
+
* @param {number} [offset]
|
|
1812
|
+
* @param {string} [userId] User id of which notes to load
|
|
1813
|
+
* @param {string} [searchText]
|
|
1814
|
+
* @param {boolean} [my] Load all my own notes (user will be used from provided token)
|
|
1815
|
+
* @param {string} [from]
|
|
1816
|
+
* @param {boolean} [includeDeleted]
|
|
1817
|
+
* @param {*} [options] Override http request option.
|
|
1818
|
+
* @throws {RequiredError}
|
|
1819
|
+
*/
|
|
1820
|
+
notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: any): AxiosPromise<HandlersHttpResponseArrayModelsPublicNoteModelsPagination> {
|
|
1821
|
+
return localVarFp.notesGet(limit, offset, userId, searchText, my, from, includeDeleted, options).then((request) => request(axios, basePath));
|
|
1822
|
+
},
|
|
1823
|
+
/**
|
|
1824
|
+
* get note by id
|
|
1825
|
+
* @summary Get note
|
|
1826
|
+
* @param {string} id Note ID
|
|
1827
|
+
* @param {*} [options] Override http request option.
|
|
1828
|
+
* @throws {RequiredError}
|
|
1829
|
+
*/
|
|
1830
|
+
notesIdGet(id: string, options?: any): AxiosPromise<HandlersHttpResponseModelsPublicNoteAny> {
|
|
1831
|
+
return localVarFp.notesIdGet(id, options).then((request) => request(axios, basePath));
|
|
1832
|
+
},
|
|
1833
|
+
/**
|
|
1834
|
+
* Create note
|
|
1835
|
+
* @summary Create note
|
|
1836
|
+
* @param {HandlersCreatingNote} note Note model
|
|
1837
|
+
* @param {*} [options] Override http request option.
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
*/
|
|
1840
|
+
notesPost(note: HandlersCreatingNote, options?: any): AxiosPromise<object> {
|
|
1841
|
+
return localVarFp.notesPost(note, options).then((request) => request(axios, basePath));
|
|
1842
|
+
},
|
|
1843
|
+
/**
|
|
1844
|
+
* Synchronize notes with specific timestamp
|
|
1845
|
+
* @summary Synchronize notes
|
|
1846
|
+
* @param {HandlersSyncNotesRequest} data Sync notes request
|
|
1847
|
+
* @param {*} [options] Override http request option.
|
|
1848
|
+
* @throws {RequiredError}
|
|
1849
|
+
*/
|
|
1850
|
+
notesSyncPost(data: HandlersSyncNotesRequest, options?: any): AxiosPromise<HandlersHttpResponseHandlersSyncNotesResponseAny> {
|
|
1851
|
+
return localVarFp.notesSyncPost(data, options).then((request) => request(axios, basePath));
|
|
1852
|
+
},
|
|
1853
|
+
};
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* NotesApi - object-oriented interface
|
|
1858
|
+
* @export
|
|
1859
|
+
* @class NotesApi
|
|
1860
|
+
* @extends {BaseAPI}
|
|
1861
|
+
*/
|
|
1862
|
+
export class NotesApi extends BaseAPI {
|
|
1863
|
+
/**
|
|
1864
|
+
* Bulk update or insert notes
|
|
1865
|
+
* @summary Upsert notes
|
|
1866
|
+
* @param {Array<HandlersCreatingNote>} notes List of crated notes
|
|
1867
|
+
* @param {*} [options] Override http request option.
|
|
1868
|
+
* @throws {RequiredError}
|
|
1869
|
+
* @memberof NotesApi
|
|
1870
|
+
*/
|
|
1871
|
+
public notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: AxiosRequestConfig) {
|
|
1872
|
+
return NotesApiFp(this.configuration).notesBulkUpsertPut(notes, options).then((request) => request(this.axios, this.basePath));
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Mark notes as deleted by provided list of ids
|
|
1877
|
+
* @summary Delete notes
|
|
1878
|
+
* @param {Array<string>} ids List of ids of deleted notes
|
|
1879
|
+
* @param {*} [options] Override http request option.
|
|
1880
|
+
* @throws {RequiredError}
|
|
1881
|
+
* @memberof NotesApi
|
|
1882
|
+
*/
|
|
1883
|
+
public notesDelete(ids: Array<string>, options?: AxiosRequestConfig) {
|
|
1884
|
+
return NotesApiFp(this.configuration).notesDelete(ids, options).then((request) => request(this.axios, this.basePath));
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* Get all notes with optional filter
|
|
1889
|
+
* @summary Get notes
|
|
1890
|
+
* @param {number} [limit]
|
|
1891
|
+
* @param {number} [offset]
|
|
1892
|
+
* @param {string} [userId] User id of which notes to load
|
|
1893
|
+
* @param {string} [searchText]
|
|
1894
|
+
* @param {boolean} [my] Load all my own notes (user will be used from provided token)
|
|
1895
|
+
* @param {string} [from]
|
|
1896
|
+
* @param {boolean} [includeDeleted]
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
* @memberof NotesApi
|
|
1900
|
+
*/
|
|
1901
|
+
public notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: AxiosRequestConfig) {
|
|
1902
|
+
return NotesApiFp(this.configuration).notesGet(limit, offset, userId, searchText, my, from, includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* get note by id
|
|
1907
|
+
* @summary Get note
|
|
1908
|
+
* @param {string} id Note ID
|
|
1909
|
+
* @param {*} [options] Override http request option.
|
|
1910
|
+
* @throws {RequiredError}
|
|
1911
|
+
* @memberof NotesApi
|
|
1912
|
+
*/
|
|
1913
|
+
public notesIdGet(id: string, options?: AxiosRequestConfig) {
|
|
1914
|
+
return NotesApiFp(this.configuration).notesIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Create note
|
|
1919
|
+
* @summary Create note
|
|
1920
|
+
* @param {HandlersCreatingNote} note Note model
|
|
1921
|
+
* @param {*} [options] Override http request option.
|
|
1922
|
+
* @throws {RequiredError}
|
|
1923
|
+
* @memberof NotesApi
|
|
1924
|
+
*/
|
|
1925
|
+
public notesPost(note: HandlersCreatingNote, options?: AxiosRequestConfig) {
|
|
1926
|
+
return NotesApiFp(this.configuration).notesPost(note, options).then((request) => request(this.axios, this.basePath));
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Synchronize notes with specific timestamp
|
|
1931
|
+
* @summary Synchronize notes
|
|
1932
|
+
* @param {HandlersSyncNotesRequest} data Sync notes request
|
|
1933
|
+
* @param {*} [options] Override http request option.
|
|
1934
|
+
* @throws {RequiredError}
|
|
1935
|
+
* @memberof NotesApi
|
|
1936
|
+
*/
|
|
1937
|
+
public notesSyncPost(data: HandlersSyncNotesRequest, options?: AxiosRequestConfig) {
|
|
1938
|
+
return NotesApiFp(this.configuration).notesSyncPost(data, options).then((request) => request(this.axios, this.basePath));
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* TagsApi - axios parameter creator
|
|
1945
|
+
* @export
|
|
1946
|
+
*/
|
|
1947
|
+
export const TagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1948
|
+
return {
|
|
1949
|
+
/**
|
|
1950
|
+
* Return list of al registered tags
|
|
1951
|
+
* @summary Get tags
|
|
1952
|
+
* @param {*} [options] Override http request option.
|
|
1953
|
+
* @throws {RequiredError}
|
|
1954
|
+
*/
|
|
1955
|
+
tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1956
|
+
const localVarPath = `/tags`;
|
|
1957
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1958
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1959
|
+
let baseOptions;
|
|
1960
|
+
if (configuration) {
|
|
1961
|
+
baseOptions = configuration.baseOptions;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1965
|
+
const localVarHeaderParameter = {} as any;
|
|
1966
|
+
const localVarQueryParameter = {} as any;
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1971
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1972
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1973
|
+
|
|
1974
|
+
return {
|
|
1975
|
+
url: toPathString(localVarUrlObj),
|
|
1976
|
+
options: localVarRequestOptions,
|
|
1977
|
+
};
|
|
1978
|
+
},
|
|
1979
|
+
}
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* TagsApi - functional programming interface
|
|
1984
|
+
* @export
|
|
1985
|
+
*/
|
|
1986
|
+
export const TagsApiFp = function(configuration?: Configuration) {
|
|
1987
|
+
const localVarAxiosParamCreator = TagsApiAxiosParamCreator(configuration)
|
|
1988
|
+
return {
|
|
1989
|
+
/**
|
|
1990
|
+
* Return list of al registered tags
|
|
1991
|
+
* @summary Get tags
|
|
1992
|
+
* @param {*} [options] Override http request option.
|
|
1993
|
+
* @throws {RequiredError}
|
|
1994
|
+
*/
|
|
1995
|
+
async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayStringAny>> {
|
|
1996
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
|
|
1997
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1998
|
+
},
|
|
1999
|
+
}
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* TagsApi - factory interface
|
|
2004
|
+
* @export
|
|
2005
|
+
*/
|
|
2006
|
+
export const TagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2007
|
+
const localVarFp = TagsApiFp(configuration)
|
|
2008
|
+
return {
|
|
2009
|
+
/**
|
|
2010
|
+
* Return list of al registered tags
|
|
2011
|
+
* @summary Get tags
|
|
2012
|
+
* @param {*} [options] Override http request option.
|
|
2013
|
+
* @throws {RequiredError}
|
|
2014
|
+
*/
|
|
2015
|
+
tagsGet(options?: any): AxiosPromise<HandlersHttpResponseArrayStringAny> {
|
|
2016
|
+
return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
|
|
2017
|
+
},
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* TagsApi - object-oriented interface
|
|
2023
|
+
* @export
|
|
2024
|
+
* @class TagsApi
|
|
2025
|
+
* @extends {BaseAPI}
|
|
2026
|
+
*/
|
|
2027
|
+
export class TagsApi extends BaseAPI {
|
|
2028
|
+
/**
|
|
2029
|
+
* Return list of al registered tags
|
|
2030
|
+
* @summary Get tags
|
|
2031
|
+
* @param {*} [options] Override http request option.
|
|
2032
|
+
* @throws {RequiredError}
|
|
2033
|
+
* @memberof TagsApi
|
|
2034
|
+
*/
|
|
2035
|
+
public tagsGet(options?: AxiosRequestConfig) {
|
|
2036
|
+
return TagsApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
|