@openfilz-sdk/typescript-ee 1.10.4 → 1.10.6

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