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