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