orgnote-api 0.12.1 → 0.12.2

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