@openfilz-sdk/typescript-ee 1.10.4 → 1.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +20 -2
  4. package/api/desktop-sync-administration-api.ts +186 -0
  5. package/api/desktop-sync-api.ts +617 -0
  6. package/api/document-controller-api.ts +8 -8
  7. package/api/file-controller-api.ts +82 -0
  8. package/api.ts +2 -0
  9. package/dist/api/desktop-sync-administration-api.d.ts +91 -0
  10. package/dist/api/desktop-sync-administration-api.js +187 -0
  11. package/dist/api/desktop-sync-api.d.ts +282 -0
  12. package/dist/api/desktop-sync-api.js +590 -0
  13. package/dist/api/document-controller-api.d.ts +8 -8
  14. package/dist/api/document-controller-api.js +8 -8
  15. package/dist/api/file-controller-api.d.ts +38 -0
  16. package/dist/api/file-controller-api.js +75 -0
  17. package/dist/api.d.ts +2 -0
  18. package/dist/api.js +2 -0
  19. package/dist/esm/api/desktop-sync-administration-api.d.ts +91 -0
  20. package/dist/esm/api/desktop-sync-administration-api.js +180 -0
  21. package/dist/esm/api/desktop-sync-api.d.ts +282 -0
  22. package/dist/esm/api/desktop-sync-api.js +583 -0
  23. package/dist/esm/api/document-controller-api.d.ts +8 -8
  24. package/dist/esm/api/document-controller-api.js +8 -8
  25. package/dist/esm/api/file-controller-api.d.ts +38 -0
  26. package/dist/esm/api/file-controller-api.js +75 -0
  27. package/dist/esm/api.d.ts +2 -0
  28. package/dist/esm/api.js +2 -0
  29. package/dist/esm/models/copy-request.d.ts +1 -1
  30. package/dist/esm/models/desktop-sync-client-info.d.ts +20 -0
  31. package/dist/esm/models/desktop-sync-client-info.js +14 -0
  32. package/dist/esm/models/enriched-audit-log.d.ts +1 -0
  33. package/dist/esm/models/enriched-audit-log.js +1 -0
  34. package/dist/esm/models/index.d.ts +8 -0
  35. package/dist/esm/models/index.js +8 -0
  36. package/dist/esm/models/move-request.d.ts +1 -1
  37. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  38. package/dist/esm/models/search-by-audit-log-request.js +1 -0
  39. package/dist/esm/models/settings.d.ts +3 -0
  40. package/dist/esm/models/sync-backfill-status.d.ts +21 -0
  41. package/dist/esm/models/sync-backfill-status.js +14 -0
  42. package/dist/esm/models/sync-changes-response.d.ts +17 -0
  43. package/dist/esm/models/sync-changes-response.js +14 -0
  44. package/dist/esm/models/sync-item.d.ts +29 -0
  45. package/dist/esm/models/sync-item.js +17 -0
  46. package/dist/esm/models/sync-snapshot-response.d.ts +17 -0
  47. package/dist/esm/models/sync-snapshot-response.js +14 -0
  48. package/dist/esm/models/unzip-request.d.ts +29 -0
  49. package/dist/esm/models/unzip-request.js +14 -0
  50. package/dist/esm/models/unzip-response.d.ts +34 -0
  51. package/dist/esm/models/unzip-response.js +14 -0
  52. package/dist/esm/models/unzip-skipped-entry.d.ts +34 -0
  53. package/dist/esm/models/unzip-skipped-entry.js +21 -0
  54. package/dist/models/copy-request.d.ts +1 -1
  55. package/dist/models/desktop-sync-client-info.d.ts +20 -0
  56. package/dist/models/desktop-sync-client-info.js +15 -0
  57. package/dist/models/enriched-audit-log.d.ts +1 -0
  58. package/dist/models/enriched-audit-log.js +1 -0
  59. package/dist/models/index.d.ts +8 -0
  60. package/dist/models/index.js +8 -0
  61. package/dist/models/move-request.d.ts +1 -1
  62. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  63. package/dist/models/search-by-audit-log-request.js +1 -0
  64. package/dist/models/settings.d.ts +3 -0
  65. package/dist/models/sync-backfill-status.d.ts +21 -0
  66. package/dist/models/sync-backfill-status.js +15 -0
  67. package/dist/models/sync-changes-response.d.ts +17 -0
  68. package/dist/models/sync-changes-response.js +15 -0
  69. package/dist/models/sync-item.d.ts +29 -0
  70. package/dist/models/sync-item.js +20 -0
  71. package/dist/models/sync-snapshot-response.d.ts +17 -0
  72. package/dist/models/sync-snapshot-response.js +15 -0
  73. package/dist/models/unzip-request.d.ts +29 -0
  74. package/dist/models/unzip-request.js +15 -0
  75. package/dist/models/unzip-response.d.ts +34 -0
  76. package/dist/models/unzip-response.js +15 -0
  77. package/dist/models/unzip-skipped-entry.d.ts +34 -0
  78. package/dist/models/unzip-skipped-entry.js +24 -0
  79. package/docs/CopyRequest.md +1 -1
  80. package/docs/DesktopSyncAdministrationApi.md +96 -0
  81. package/docs/DesktopSyncApi.md +376 -0
  82. package/docs/DesktopSyncClientInfo.md +32 -0
  83. package/docs/DocumentControllerApi.md +4 -4
  84. package/docs/FileControllerApi.md +56 -0
  85. package/docs/MoveRequest.md +1 -1
  86. package/docs/Settings.md +2 -0
  87. package/docs/SyncBackfillStatus.md +34 -0
  88. package/docs/SyncChangesResponse.md +24 -0
  89. package/docs/SyncItem.md +40 -0
  90. package/docs/SyncSnapshotResponse.md +24 -0
  91. package/docs/UnzipRequest.md +26 -0
  92. package/docs/UnzipResponse.md +28 -0
  93. package/docs/UnzipSkippedEntry.md +24 -0
  94. package/models/copy-request.ts +1 -1
  95. package/models/desktop-sync-client-info.ts +26 -0
  96. package/models/enriched-audit-log.ts +1 -0
  97. package/models/index.ts +8 -0
  98. package/models/move-request.ts +1 -1
  99. package/models/search-by-audit-log-request.ts +1 -0
  100. package/models/settings.ts +1 -0
  101. package/models/sync-backfill-status.ts +27 -0
  102. package/models/sync-changes-response.ts +25 -0
  103. package/models/sync-item.ts +38 -0
  104. package/models/sync-snapshot-response.ts +25 -0
  105. package/models/unzip-request.ts +35 -0
  106. package/models/unzip-response.ts +42 -0
  107. package/models/unzip-skipped-entry.ts +43 -0
  108. package/package.json +1 -1
@@ -0,0 +1,583 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * DesktopSyncApi - axios parameter creator
31
+ */
32
+ export const DesktopSyncApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
36
+ * @summary Documents that changed since a cursor, as the caller sees them now
37
+ * @param {number} [cursor]
38
+ * @param {number} [limit]
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ changes: (cursor_1, limit_1, ...args_1) => __awaiter(this, [cursor_1, limit_1, ...args_1], void 0, function* (cursor, limit, options = {}) {
43
+ const localVarPath = `/api/v1/sync/changes`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
51
+ const localVarHeaderParameter = {};
52
+ const localVarQueryParameter = {};
53
+ // authentication keycloak_auth required
54
+ // http bearer authentication required
55
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
56
+ if (cursor !== undefined) {
57
+ localVarQueryParameter['cursor'] = cursor;
58
+ }
59
+ if (limit !== undefined) {
60
+ localVarQueryParameter['limit'] = limit;
61
+ }
62
+ localVarHeaderParameter['Accept'] = '*/*';
63
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
64
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ }),
71
+ /**
72
+ * If-None-Match with the hash the client already holds answers 304 without a body.
73
+ * @summary Download a file; its ETag is the SHA-256 of the content
74
+ * @param {string} documentId
75
+ * @param {string} [ifNoneMatch]
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ content: (documentId_1, ifNoneMatch_1, ...args_1) => __awaiter(this, [documentId_1, ifNoneMatch_1, ...args_1], void 0, function* (documentId, ifNoneMatch, options = {}) {
80
+ // verify required parameter 'documentId' is not null or undefined
81
+ assertParamExists('content', 'documentId', documentId);
82
+ const localVarPath = `/api/v1/sync/content/{documentId}`
83
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
84
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
85
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
86
+ let baseOptions;
87
+ if (configuration) {
88
+ baseOptions = configuration.baseOptions;
89
+ }
90
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
91
+ const localVarHeaderParameter = {};
92
+ const localVarQueryParameter = {};
93
+ // authentication keycloak_auth required
94
+ // http bearer authentication required
95
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
96
+ localVarHeaderParameter['Accept'] = '*/*';
97
+ if (ifNoneMatch != null) {
98
+ localVarHeaderParameter['If-None-Match'] = String(ifNoneMatch);
99
+ }
100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
103
+ return {
104
+ url: toPathString(localVarUrlObj),
105
+ options: localVarRequestOptions,
106
+ };
107
+ }),
108
+ /**
109
+ *
110
+ * @summary Connection details for the desktop application (public)
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ discover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
115
+ const localVarPath = `/.well-known/openfilz-desktop`;
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication keycloak_auth required
126
+ // http bearer authentication required
127
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Accept'] = '*/*';
129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ }),
137
+ /**
138
+ *
139
+ * @summary Where to get the desktop application, and the address to give it
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ forWebApplication: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
144
+ const localVarPath = `/api/v1/settings/desktop-sync`;
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ }
151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
152
+ const localVarHeaderParameter = {};
153
+ const localVarQueryParameter = {};
154
+ // authentication keycloak_auth required
155
+ // http bearer authentication required
156
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
157
+ localVarHeaderParameter['Accept'] = '*/*';
158
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
161
+ return {
162
+ url: toPathString(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ }),
166
+ /**
167
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
168
+ * @summary Current state of the given documents, as the caller sees them
169
+ * @param {Array<string>} ids
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ items: (ids_1, ...args_1) => __awaiter(this, [ids_1, ...args_1], void 0, function* (ids, options = {}) {
174
+ // verify required parameter 'ids' is not null or undefined
175
+ assertParamExists('items', 'ids', ids);
176
+ const localVarPath = `/api/v1/sync/items`;
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
184
+ const localVarHeaderParameter = {};
185
+ const localVarQueryParameter = {};
186
+ // authentication keycloak_auth required
187
+ // http bearer authentication required
188
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
189
+ if (ids) {
190
+ localVarQueryParameter['ids'] = ids;
191
+ }
192
+ localVarHeaderParameter['Accept'] = '*/*';
193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
+ return {
197
+ url: toPathString(localVarUrlObj),
198
+ options: localVarRequestOptions,
199
+ };
200
+ }),
201
+ /**
202
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
203
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
204
+ * @param {string} documentId
205
+ * @param {File} file
206
+ * @param {string} [ifMatch]
207
+ * @param {number} [contentLength]
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ replaceContent: (documentId_1, file_1, ifMatch_1, contentLength_1, ...args_1) => __awaiter(this, [documentId_1, file_1, ifMatch_1, contentLength_1, ...args_1], void 0, function* (documentId, file, ifMatch, contentLength, options = {}) {
212
+ // verify required parameter 'documentId' is not null or undefined
213
+ assertParamExists('replaceContent', 'documentId', documentId);
214
+ // verify required parameter 'file' is not null or undefined
215
+ assertParamExists('replaceContent', 'file', file);
216
+ const localVarPath = `/api/v1/sync/content/{documentId}`
217
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
220
+ let baseOptions;
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ }
224
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
225
+ const localVarHeaderParameter = {};
226
+ const localVarQueryParameter = {};
227
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
228
+ // authentication keycloak_auth required
229
+ // http bearer authentication required
230
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
231
+ if (file !== undefined) {
232
+ localVarFormParams.append('file', file);
233
+ }
234
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
235
+ localVarHeaderParameter['Accept'] = '*/*';
236
+ if (ifMatch != null) {
237
+ localVarHeaderParameter['If-Match'] = String(ifMatch);
238
+ }
239
+ if (contentLength != null) {
240
+ localVarHeaderParameter['Content-Length'] = typeof contentLength === 'string'
241
+ ? contentLength
242
+ : JSON.stringify(contentLength, replaceWithSerializableTypeIfNeeded);
243
+ }
244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
246
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
247
+ localVarRequestOptions.data = localVarFormParams;
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ }),
253
+ /**
254
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
255
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
256
+ * @param {string} [folderId]
257
+ * @param {string} [after]
258
+ * @param {number} [limit]
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ snapshot: (folderId_1, after_1, limit_1, ...args_1) => __awaiter(this, [folderId_1, after_1, limit_1, ...args_1], void 0, function* (folderId, after, limit, options = {}) {
263
+ const localVarPath = `/api/v1/sync/snapshot`;
264
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
265
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
266
+ let baseOptions;
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ }
270
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
271
+ const localVarHeaderParameter = {};
272
+ const localVarQueryParameter = {};
273
+ // authentication keycloak_auth required
274
+ // http bearer authentication required
275
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
276
+ if (folderId !== undefined) {
277
+ localVarQueryParameter['folderId'] = folderId;
278
+ }
279
+ if (after !== undefined) {
280
+ localVarQueryParameter['after'] = after;
281
+ }
282
+ if (limit !== undefined) {
283
+ localVarQueryParameter['limit'] = limit;
284
+ }
285
+ localVarHeaderParameter['Accept'] = '*/*';
286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
289
+ return {
290
+ url: toPathString(localVarUrlObj),
291
+ options: localVarRequestOptions,
292
+ };
293
+ }),
294
+ };
295
+ };
296
+ /**
297
+ * DesktopSyncApi - functional programming interface
298
+ */
299
+ export const DesktopSyncApiFp = function (configuration) {
300
+ const localVarAxiosParamCreator = DesktopSyncApiAxiosParamCreator(configuration);
301
+ return {
302
+ /**
303
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
304
+ * @summary Documents that changed since a cursor, as the caller sees them now
305
+ * @param {number} [cursor]
306
+ * @param {number} [limit]
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ changes(cursor, limit, options) {
311
+ return __awaiter(this, void 0, void 0, function* () {
312
+ var _a, _b, _c;
313
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changes(cursor, limit, options);
314
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
315
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.changes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
316
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
317
+ });
318
+ },
319
+ /**
320
+ * If-None-Match with the hash the client already holds answers 304 without a body.
321
+ * @summary Download a file; its ETag is the SHA-256 of the content
322
+ * @param {string} documentId
323
+ * @param {string} [ifNoneMatch]
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ content(documentId, ifNoneMatch, options) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ var _a, _b, _c;
330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.content(documentId, ifNoneMatch, options);
331
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
332
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.content']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
333
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
334
+ });
335
+ },
336
+ /**
337
+ *
338
+ * @summary Connection details for the desktop application (public)
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ discover(options) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
+ var _a, _b, _c;
345
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discover(options);
346
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
347
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.discover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
348
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
349
+ });
350
+ },
351
+ /**
352
+ *
353
+ * @summary Where to get the desktop application, and the address to give it
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ forWebApplication(options) {
358
+ return __awaiter(this, void 0, void 0, function* () {
359
+ var _a, _b, _c;
360
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.forWebApplication(options);
361
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
362
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.forWebApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
363
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
364
+ });
365
+ },
366
+ /**
367
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
368
+ * @summary Current state of the given documents, as the caller sees them
369
+ * @param {Array<string>} ids
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ items(ids, options) {
374
+ return __awaiter(this, void 0, void 0, function* () {
375
+ var _a, _b, _c;
376
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.items(ids, options);
377
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
378
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.items']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
379
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
380
+ });
381
+ },
382
+ /**
383
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
384
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
385
+ * @param {string} documentId
386
+ * @param {File} file
387
+ * @param {string} [ifMatch]
388
+ * @param {number} [contentLength]
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ replaceContent(documentId, file, ifMatch, contentLength, options) {
393
+ return __awaiter(this, void 0, void 0, function* () {
394
+ var _a, _b, _c;
395
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceContent(documentId, file, ifMatch, contentLength, options);
396
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
397
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.replaceContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
398
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
399
+ });
400
+ },
401
+ /**
402
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
403
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
404
+ * @param {string} [folderId]
405
+ * @param {string} [after]
406
+ * @param {number} [limit]
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ snapshot(folderId, after, limit, options) {
411
+ return __awaiter(this, void 0, void 0, function* () {
412
+ var _a, _b, _c;
413
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.snapshot(folderId, after, limit, options);
414
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
415
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncApi.snapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
416
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
417
+ });
418
+ },
419
+ };
420
+ };
421
+ /**
422
+ * DesktopSyncApi - factory interface
423
+ */
424
+ export const DesktopSyncApiFactory = function (configuration, basePath, axios) {
425
+ const localVarFp = DesktopSyncApiFp(configuration);
426
+ return {
427
+ /**
428
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
429
+ * @summary Documents that changed since a cursor, as the caller sees them now
430
+ * @param {number} [cursor]
431
+ * @param {number} [limit]
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ changes(cursor, limit, options) {
436
+ return localVarFp.changes(cursor, limit, options).then((request) => request(axios, basePath));
437
+ },
438
+ /**
439
+ * If-None-Match with the hash the client already holds answers 304 without a body.
440
+ * @summary Download a file; its ETag is the SHA-256 of the content
441
+ * @param {string} documentId
442
+ * @param {string} [ifNoneMatch]
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ content(documentId, ifNoneMatch, options) {
447
+ return localVarFp.content(documentId, ifNoneMatch, options).then((request) => request(axios, basePath));
448
+ },
449
+ /**
450
+ *
451
+ * @summary Connection details for the desktop application (public)
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ discover(options) {
456
+ return localVarFp.discover(options).then((request) => request(axios, basePath));
457
+ },
458
+ /**
459
+ *
460
+ * @summary Where to get the desktop application, and the address to give it
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ forWebApplication(options) {
465
+ return localVarFp.forWebApplication(options).then((request) => request(axios, basePath));
466
+ },
467
+ /**
468
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
469
+ * @summary Current state of the given documents, as the caller sees them
470
+ * @param {Array<string>} ids
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ items(ids, options) {
475
+ return localVarFp.items(ids, options).then((request) => request(axios, basePath));
476
+ },
477
+ /**
478
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
479
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
480
+ * @param {string} documentId
481
+ * @param {File} file
482
+ * @param {string} [ifMatch]
483
+ * @param {number} [contentLength]
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ replaceContent(documentId, file, ifMatch, contentLength, options) {
488
+ return localVarFp.replaceContent(documentId, file, ifMatch, contentLength, options).then((request) => request(axios, basePath));
489
+ },
490
+ /**
491
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
492
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
493
+ * @param {string} [folderId]
494
+ * @param {string} [after]
495
+ * @param {number} [limit]
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ snapshot(folderId, after, limit, options) {
500
+ return localVarFp.snapshot(folderId, after, limit, options).then((request) => request(axios, basePath));
501
+ },
502
+ };
503
+ };
504
+ /**
505
+ * DesktopSyncApi - object-oriented interface
506
+ */
507
+ export class DesktopSyncApi extends BaseAPI {
508
+ /**
509
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
510
+ * @summary Documents that changed since a cursor, as the caller sees them now
511
+ * @param {number} [cursor]
512
+ * @param {number} [limit]
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ changes(cursor, limit, options) {
517
+ return DesktopSyncApiFp(this.configuration).changes(cursor, limit, options).then((request) => request(this.axios, this.basePath));
518
+ }
519
+ /**
520
+ * If-None-Match with the hash the client already holds answers 304 without a body.
521
+ * @summary Download a file; its ETag is the SHA-256 of the content
522
+ * @param {string} documentId
523
+ * @param {string} [ifNoneMatch]
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ content(documentId, ifNoneMatch, options) {
528
+ return DesktopSyncApiFp(this.configuration).content(documentId, ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
529
+ }
530
+ /**
531
+ *
532
+ * @summary Connection details for the desktop application (public)
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ discover(options) {
537
+ return DesktopSyncApiFp(this.configuration).discover(options).then((request) => request(this.axios, this.basePath));
538
+ }
539
+ /**
540
+ *
541
+ * @summary Where to get the desktop application, and the address to give it
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ forWebApplication(options) {
546
+ return DesktopSyncApiFp(this.configuration).forWebApplication(options).then((request) => request(this.axios, this.basePath));
547
+ }
548
+ /**
549
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
550
+ * @summary Current state of the given documents, as the caller sees them
551
+ * @param {Array<string>} ids
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ items(ids, options) {
556
+ return DesktopSyncApiFp(this.configuration).items(ids, options).then((request) => request(this.axios, this.basePath));
557
+ }
558
+ /**
559
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
560
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
561
+ * @param {string} documentId
562
+ * @param {File} file
563
+ * @param {string} [ifMatch]
564
+ * @param {number} [contentLength]
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ replaceContent(documentId, file, ifMatch, contentLength, options) {
569
+ return DesktopSyncApiFp(this.configuration).replaceContent(documentId, file, ifMatch, contentLength, options).then((request) => request(this.axios, this.basePath));
570
+ }
571
+ /**
572
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
573
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
574
+ * @param {string} [folderId]
575
+ * @param {string} [after]
576
+ * @param {number} [limit]
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ snapshot(folderId, after, limit, options) {
581
+ return DesktopSyncApiFp(this.configuration).snapshot(folderId, after, limit, options).then((request) => request(this.axios, this.basePath));
582
+ }
583
+ }