@openfilz-sdk/typescript-ee 1.10.3 → 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.
- package/.openapi-generator/FILES +20 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +20 -2
- package/api/desktop-sync-administration-api.ts +186 -0
- package/api/desktop-sync-api.ts +617 -0
- package/api/document-controller-api.ts +8 -8
- package/api/file-controller-api.ts +82 -0
- package/api.ts +2 -0
- package/dist/api/desktop-sync-administration-api.d.ts +91 -0
- package/dist/api/desktop-sync-administration-api.js +187 -0
- package/dist/api/desktop-sync-api.d.ts +282 -0
- package/dist/api/desktop-sync-api.js +590 -0
- package/dist/api/document-controller-api.d.ts +8 -8
- package/dist/api/document-controller-api.js +8 -8
- package/dist/api/file-controller-api.d.ts +38 -0
- package/dist/api/file-controller-api.js +75 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/desktop-sync-administration-api.d.ts +91 -0
- package/dist/esm/api/desktop-sync-administration-api.js +180 -0
- package/dist/esm/api/desktop-sync-api.d.ts +282 -0
- package/dist/esm/api/desktop-sync-api.js +583 -0
- package/dist/esm/api/document-controller-api.d.ts +8 -8
- package/dist/esm/api/document-controller-api.js +8 -8
- package/dist/esm/api/file-controller-api.d.ts +38 -0
- package/dist/esm/api/file-controller-api.js +75 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/copy-request.d.ts +1 -1
- package/dist/esm/models/desktop-sync-client-info.d.ts +20 -0
- package/dist/esm/models/desktop-sync-client-info.js +14 -0
- package/dist/esm/models/enriched-audit-log.d.ts +1 -0
- package/dist/esm/models/enriched-audit-log.js +1 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/move-request.d.ts +1 -1
- package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/esm/models/search-by-audit-log-request.js +1 -0
- package/dist/esm/models/settings.d.ts +3 -0
- package/dist/esm/models/sync-backfill-status.d.ts +21 -0
- package/dist/esm/models/sync-backfill-status.js +14 -0
- package/dist/esm/models/sync-changes-response.d.ts +17 -0
- package/dist/esm/models/sync-changes-response.js +14 -0
- package/dist/esm/models/sync-item.d.ts +29 -0
- package/dist/esm/models/sync-item.js +17 -0
- package/dist/esm/models/sync-snapshot-response.d.ts +17 -0
- package/dist/esm/models/sync-snapshot-response.js +14 -0
- package/dist/esm/models/unzip-request.d.ts +29 -0
- package/dist/esm/models/unzip-request.js +14 -0
- package/dist/esm/models/unzip-response.d.ts +34 -0
- package/dist/esm/models/unzip-response.js +14 -0
- package/dist/esm/models/unzip-skipped-entry.d.ts +34 -0
- package/dist/esm/models/unzip-skipped-entry.js +21 -0
- package/dist/models/copy-request.d.ts +1 -1
- package/dist/models/desktop-sync-client-info.d.ts +20 -0
- package/dist/models/desktop-sync-client-info.js +15 -0
- package/dist/models/enriched-audit-log.d.ts +1 -0
- package/dist/models/enriched-audit-log.js +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/move-request.d.ts +1 -1
- package/dist/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/models/search-by-audit-log-request.js +1 -0
- package/dist/models/settings.d.ts +3 -0
- package/dist/models/sync-backfill-status.d.ts +21 -0
- package/dist/models/sync-backfill-status.js +15 -0
- package/dist/models/sync-changes-response.d.ts +17 -0
- package/dist/models/sync-changes-response.js +15 -0
- package/dist/models/sync-item.d.ts +29 -0
- package/dist/models/sync-item.js +20 -0
- package/dist/models/sync-snapshot-response.d.ts +17 -0
- package/dist/models/sync-snapshot-response.js +15 -0
- package/dist/models/unzip-request.d.ts +29 -0
- package/dist/models/unzip-request.js +15 -0
- package/dist/models/unzip-response.d.ts +34 -0
- package/dist/models/unzip-response.js +15 -0
- package/dist/models/unzip-skipped-entry.d.ts +34 -0
- package/dist/models/unzip-skipped-entry.js +24 -0
- package/docs/CopyRequest.md +1 -1
- package/docs/DesktopSyncAdministrationApi.md +96 -0
- package/docs/DesktopSyncApi.md +376 -0
- package/docs/DesktopSyncClientInfo.md +32 -0
- package/docs/DocumentControllerApi.md +4 -4
- package/docs/FileControllerApi.md +56 -0
- package/docs/MoveRequest.md +1 -1
- package/docs/Settings.md +2 -0
- package/docs/SyncBackfillStatus.md +34 -0
- package/docs/SyncChangesResponse.md +24 -0
- package/docs/SyncItem.md +40 -0
- package/docs/SyncSnapshotResponse.md +24 -0
- package/docs/UnzipRequest.md +26 -0
- package/docs/UnzipResponse.md +28 -0
- package/docs/UnzipSkippedEntry.md +24 -0
- package/models/copy-request.ts +1 -1
- package/models/desktop-sync-client-info.ts +26 -0
- package/models/enriched-audit-log.ts +1 -0
- package/models/index.ts +8 -0
- package/models/move-request.ts +1 -1
- package/models/search-by-audit-log-request.ts +1 -0
- package/models/settings.ts +1 -0
- package/models/sync-backfill-status.ts +27 -0
- package/models/sync-changes-response.ts +25 -0
- package/models/sync-item.ts +38 -0
- package/models/sync-snapshot-response.ts +25 -0
- package/models/unzip-request.ts +35 -0
- package/models/unzip-response.ts +42 -0
- package/models/unzip-skipped-entry.ts +43 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { UnzipSkippedEntry } from './unzip-skipped-entry';
|
|
13
|
+
export interface UnzipResponse {
|
|
14
|
+
/**
|
|
15
|
+
* Folder the archive was extracted into (null = root).
|
|
16
|
+
*/
|
|
17
|
+
'targetFolderId'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Id of the folder created from newFolderName, if any.
|
|
20
|
+
*/
|
|
21
|
+
'createdFolderId'?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Number of folders created.
|
|
24
|
+
*/
|
|
25
|
+
'foldersCreated'?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number of files extracted.
|
|
28
|
+
*/
|
|
29
|
+
'filesExtracted'?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Entries that were not extracted, with the reason.
|
|
32
|
+
*/
|
|
33
|
+
'skipped'?: Array<UnzipSkippedEntry>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface UnzipSkippedEntry {
|
|
13
|
+
/**
|
|
14
|
+
* Path of the entry inside the archive.
|
|
15
|
+
*/
|
|
16
|
+
'path'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Why it was skipped.
|
|
19
|
+
*/
|
|
20
|
+
'reason'?: UnzipSkippedEntryReasonEnum;
|
|
21
|
+
/**
|
|
22
|
+
* Details, when available.
|
|
23
|
+
*/
|
|
24
|
+
'message'?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const UnzipSkippedEntryReasonEnum: {
|
|
27
|
+
readonly DuplicateName: "DUPLICATE_NAME";
|
|
28
|
+
readonly UnsafePath: "UNSAFE_PATH";
|
|
29
|
+
readonly Unsupported: "UNSUPPORTED";
|
|
30
|
+
readonly FileTooLarge: "FILE_TOO_LARGE";
|
|
31
|
+
readonly ParentNotCreated: "PARENT_NOT_CREATED";
|
|
32
|
+
readonly Error: "ERROR";
|
|
33
|
+
};
|
|
34
|
+
export type UnzipSkippedEntryReasonEnum = typeof UnzipSkippedEntryReasonEnum[keyof typeof UnzipSkippedEntryReasonEnum];
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UnzipSkippedEntryReasonEnum = void 0;
|
|
17
|
+
exports.UnzipSkippedEntryReasonEnum = {
|
|
18
|
+
DuplicateName: 'DUPLICATE_NAME',
|
|
19
|
+
UnsafePath: 'UNSAFE_PATH',
|
|
20
|
+
Unsupported: 'UNSUPPORTED',
|
|
21
|
+
FileTooLarge: 'FILE_TOO_LARGE',
|
|
22
|
+
ParentNotCreated: 'PARENT_NOT_CREATED',
|
|
23
|
+
Error: 'ERROR',
|
|
24
|
+
};
|
package/docs/CopyRequest.md
CHANGED
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**documentIds** | **Array<string>** | List of document IDs (files or folders) to copy. | [optional] [default to undefined]
|
|
9
9
|
**targetFolderId** | **string** | ID of the target folder. | [optional] [default to undefined]
|
|
10
|
-
**allowDuplicateFileNames** | **boolean** |
|
|
10
|
+
**allowDuplicateFileNames** | **boolean** | When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned. | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# DesktopSyncAdministrationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**start1**](#start1) | **POST** /api/v1/admin/sync/backfill | Run the backfill again over every file|
|
|
8
|
+
|[**status**](#status) | **GET** /api/v1/admin/sync/backfill | Progress of the size and hash backfill|
|
|
9
|
+
|
|
10
|
+
# **start1**
|
|
11
|
+
> SyncBackfillStatus start1()
|
|
12
|
+
|
|
13
|
+
202 with the status once started in the background; 409 while a run is in progress.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
DesktopSyncAdministrationApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new DesktopSyncAdministrationApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.start1();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**SyncBackfillStatus**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: */*
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | OK | - |
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
# **status**
|
|
55
|
+
> SyncBackfillStatus status()
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Example
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import {
|
|
62
|
+
DesktopSyncAdministrationApi,
|
|
63
|
+
Configuration
|
|
64
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
65
|
+
|
|
66
|
+
const configuration = new Configuration();
|
|
67
|
+
const apiInstance = new DesktopSyncAdministrationApi(configuration);
|
|
68
|
+
|
|
69
|
+
const { status, data } = await apiInstance.status();
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Parameters
|
|
73
|
+
This endpoint does not have any parameters.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
**SyncBackfillStatus**
|
|
79
|
+
|
|
80
|
+
### Authorization
|
|
81
|
+
|
|
82
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: Not defined
|
|
87
|
+
- **Accept**: */*
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### HTTP response details
|
|
91
|
+
| Status code | Description | Response headers |
|
|
92
|
+
|-------------|-------------|------------------|
|
|
93
|
+
|**200** | OK | - |
|
|
94
|
+
|
|
95
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
96
|
+
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
# DesktopSyncApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**changes**](#changes) | **GET** /api/v1/sync/changes | Documents that changed since a cursor, as the caller sees them now|
|
|
8
|
+
|[**content**](#content) | **GET** /api/v1/sync/content/{documentId} | Download a file; its ETag is the SHA-256 of the content|
|
|
9
|
+
|[**discover**](#discover) | **GET** /.well-known/openfilz-desktop | Connection details for the desktop application (public)|
|
|
10
|
+
|[**forWebApplication**](#forwebapplication) | **GET** /api/v1/settings/desktop-sync | Where to get the desktop application, and the address to give it|
|
|
11
|
+
|[**items**](#items) | **GET** /api/v1/sync/items | Current state of the given documents, as the caller sees them|
|
|
12
|
+
|[**replaceContent**](#replacecontent) | **PUT** /api/v1/sync/content/{documentId} | Replace a file\'s content, only if it is still the content the edit was based on|
|
|
13
|
+
|[**snapshot**](#snapshot) | **GET** /api/v1/sync/snapshot | One page of a folder\'s children; without folderId, the caller\'s root|
|
|
14
|
+
|
|
15
|
+
# **changes**
|
|
16
|
+
> SyncChangesResponse changes()
|
|
17
|
+
|
|
18
|
+
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.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
DesktopSyncApi,
|
|
25
|
+
Configuration
|
|
26
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
30
|
+
|
|
31
|
+
let cursor: number; // (optional) (default to undefined)
|
|
32
|
+
let limit: number; // (optional) (default to undefined)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.changes(
|
|
35
|
+
cursor,
|
|
36
|
+
limit
|
|
37
|
+
);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
|Name | Type | Description | Notes|
|
|
43
|
+
|------------- | ------------- | ------------- | -------------|
|
|
44
|
+
| **cursor** | [**number**] | | (optional) defaults to undefined|
|
|
45
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
**SyncChangesResponse**
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: Not defined
|
|
59
|
+
- **Accept**: */*
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
|**200** | OK | - |
|
|
66
|
+
|
|
67
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
68
|
+
|
|
69
|
+
# **content**
|
|
70
|
+
> File content()
|
|
71
|
+
|
|
72
|
+
If-None-Match with the hash the client already holds answers 304 without a body.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
DesktopSyncApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
84
|
+
|
|
85
|
+
let documentId: string; // (default to undefined)
|
|
86
|
+
let ifNoneMatch: string; // (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.content(
|
|
89
|
+
documentId,
|
|
90
|
+
ifNoneMatch
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **documentId** | [**string**] | | defaults to undefined|
|
|
99
|
+
| **ifNoneMatch** | [**string**] | | (optional) defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**File**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: */*
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | OK | - |
|
|
120
|
+
|
|
121
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
122
|
+
|
|
123
|
+
# **discover**
|
|
124
|
+
> DesktopSyncClientInfo discover()
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import {
|
|
131
|
+
DesktopSyncApi,
|
|
132
|
+
Configuration
|
|
133
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
134
|
+
|
|
135
|
+
const configuration = new Configuration();
|
|
136
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
137
|
+
|
|
138
|
+
const { status, data } = await apiInstance.discover();
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
This endpoint does not have any parameters.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Return type
|
|
146
|
+
|
|
147
|
+
**DesktopSyncClientInfo**
|
|
148
|
+
|
|
149
|
+
### Authorization
|
|
150
|
+
|
|
151
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
152
|
+
|
|
153
|
+
### HTTP request headers
|
|
154
|
+
|
|
155
|
+
- **Content-Type**: Not defined
|
|
156
|
+
- **Accept**: */*
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### HTTP response details
|
|
160
|
+
| Status code | Description | Response headers |
|
|
161
|
+
|-------------|-------------|------------------|
|
|
162
|
+
|**200** | OK | - |
|
|
163
|
+
|
|
164
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
165
|
+
|
|
166
|
+
# **forWebApplication**
|
|
167
|
+
> DesktopSyncClientInfo forWebApplication()
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Example
|
|
171
|
+
|
|
172
|
+
```typescript
|
|
173
|
+
import {
|
|
174
|
+
DesktopSyncApi,
|
|
175
|
+
Configuration
|
|
176
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
177
|
+
|
|
178
|
+
const configuration = new Configuration();
|
|
179
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
180
|
+
|
|
181
|
+
const { status, data } = await apiInstance.forWebApplication();
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Parameters
|
|
185
|
+
This endpoint does not have any parameters.
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Return type
|
|
189
|
+
|
|
190
|
+
**DesktopSyncClientInfo**
|
|
191
|
+
|
|
192
|
+
### Authorization
|
|
193
|
+
|
|
194
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
195
|
+
|
|
196
|
+
### HTTP request headers
|
|
197
|
+
|
|
198
|
+
- **Content-Type**: Not defined
|
|
199
|
+
- **Accept**: */*
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### HTTP response details
|
|
203
|
+
| Status code | Description | Response headers |
|
|
204
|
+
|-------------|-------------|------------------|
|
|
205
|
+
|**200** | OK | - |
|
|
206
|
+
|
|
207
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
208
|
+
|
|
209
|
+
# **items**
|
|
210
|
+
> Array<SyncItem> items()
|
|
211
|
+
|
|
212
|
+
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.
|
|
213
|
+
|
|
214
|
+
### Example
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
import {
|
|
218
|
+
DesktopSyncApi,
|
|
219
|
+
Configuration
|
|
220
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
221
|
+
|
|
222
|
+
const configuration = new Configuration();
|
|
223
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
224
|
+
|
|
225
|
+
let ids: Array<string>; // (default to undefined)
|
|
226
|
+
|
|
227
|
+
const { status, data } = await apiInstance.items(
|
|
228
|
+
ids
|
|
229
|
+
);
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Parameters
|
|
233
|
+
|
|
234
|
+
|Name | Type | Description | Notes|
|
|
235
|
+
|------------- | ------------- | ------------- | -------------|
|
|
236
|
+
| **ids** | **Array<string>** | | defaults to undefined|
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### Return type
|
|
240
|
+
|
|
241
|
+
**Array<SyncItem>**
|
|
242
|
+
|
|
243
|
+
### Authorization
|
|
244
|
+
|
|
245
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
246
|
+
|
|
247
|
+
### HTTP request headers
|
|
248
|
+
|
|
249
|
+
- **Content-Type**: Not defined
|
|
250
|
+
- **Accept**: */*
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### HTTP response details
|
|
254
|
+
| Status code | Description | Response headers |
|
|
255
|
+
|-------------|-------------|------------------|
|
|
256
|
+
|**200** | OK | - |
|
|
257
|
+
|
|
258
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
259
|
+
|
|
260
|
+
# **replaceContent**
|
|
261
|
+
> SyncItem replaceContent()
|
|
262
|
+
|
|
263
|
+
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.
|
|
264
|
+
|
|
265
|
+
### Example
|
|
266
|
+
|
|
267
|
+
```typescript
|
|
268
|
+
import {
|
|
269
|
+
DesktopSyncApi,
|
|
270
|
+
Configuration
|
|
271
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
272
|
+
|
|
273
|
+
const configuration = new Configuration();
|
|
274
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
275
|
+
|
|
276
|
+
let documentId: string; // (default to undefined)
|
|
277
|
+
let file: File; // (default to undefined)
|
|
278
|
+
let ifMatch: string; // (optional) (default to undefined)
|
|
279
|
+
let contentLength: number; // (optional) (default to undefined)
|
|
280
|
+
|
|
281
|
+
const { status, data } = await apiInstance.replaceContent(
|
|
282
|
+
documentId,
|
|
283
|
+
file,
|
|
284
|
+
ifMatch,
|
|
285
|
+
contentLength
|
|
286
|
+
);
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### Parameters
|
|
290
|
+
|
|
291
|
+
|Name | Type | Description | Notes|
|
|
292
|
+
|------------- | ------------- | ------------- | -------------|
|
|
293
|
+
| **documentId** | [**string**] | | defaults to undefined|
|
|
294
|
+
| **file** | [**File**] | | defaults to undefined|
|
|
295
|
+
| **ifMatch** | [**string**] | | (optional) defaults to undefined|
|
|
296
|
+
| **contentLength** | [**number**] | | (optional) defaults to undefined|
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### Return type
|
|
300
|
+
|
|
301
|
+
**SyncItem**
|
|
302
|
+
|
|
303
|
+
### Authorization
|
|
304
|
+
|
|
305
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
306
|
+
|
|
307
|
+
### HTTP request headers
|
|
308
|
+
|
|
309
|
+
- **Content-Type**: multipart/form-data
|
|
310
|
+
- **Accept**: */*
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
### HTTP response details
|
|
314
|
+
| Status code | Description | Response headers |
|
|
315
|
+
|-------------|-------------|------------------|
|
|
316
|
+
|**200** | OK | - |
|
|
317
|
+
|
|
318
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
319
|
+
|
|
320
|
+
# **snapshot**
|
|
321
|
+
> SyncSnapshotResponse snapshot()
|
|
322
|
+
|
|
323
|
+
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.
|
|
324
|
+
|
|
325
|
+
### Example
|
|
326
|
+
|
|
327
|
+
```typescript
|
|
328
|
+
import {
|
|
329
|
+
DesktopSyncApi,
|
|
330
|
+
Configuration
|
|
331
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
332
|
+
|
|
333
|
+
const configuration = new Configuration();
|
|
334
|
+
const apiInstance = new DesktopSyncApi(configuration);
|
|
335
|
+
|
|
336
|
+
let folderId: string; // (optional) (default to undefined)
|
|
337
|
+
let after: string; // (optional) (default to undefined)
|
|
338
|
+
let limit: number; // (optional) (default to undefined)
|
|
339
|
+
|
|
340
|
+
const { status, data } = await apiInstance.snapshot(
|
|
341
|
+
folderId,
|
|
342
|
+
after,
|
|
343
|
+
limit
|
|
344
|
+
);
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Parameters
|
|
348
|
+
|
|
349
|
+
|Name | Type | Description | Notes|
|
|
350
|
+
|------------- | ------------- | ------------- | -------------|
|
|
351
|
+
| **folderId** | [**string**] | | (optional) defaults to undefined|
|
|
352
|
+
| **after** | [**string**] | | (optional) defaults to undefined|
|
|
353
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
### Return type
|
|
357
|
+
|
|
358
|
+
**SyncSnapshotResponse**
|
|
359
|
+
|
|
360
|
+
### Authorization
|
|
361
|
+
|
|
362
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
363
|
+
|
|
364
|
+
### HTTP request headers
|
|
365
|
+
|
|
366
|
+
- **Content-Type**: Not defined
|
|
367
|
+
- **Accept**: */*
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### HTTP response details
|
|
371
|
+
| Status code | Description | Response headers |
|
|
372
|
+
|-------------|-------------|------------------|
|
|
373
|
+
|**200** | OK | - |
|
|
374
|
+
|
|
375
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
376
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# DesktopSyncClientInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**server** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**issuer** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**clientId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**updateUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**downloadUrl** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**webUrl** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**apiVersion** | **number** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { DesktopSyncClientInfo } from '@openfilz-sdk/typescript-ee';
|
|
20
|
+
|
|
21
|
+
const instance: DesktopSyncClientInfo = {
|
|
22
|
+
server,
|
|
23
|
+
issuer,
|
|
24
|
+
clientId,
|
|
25
|
+
updateUrl,
|
|
26
|
+
downloadUrl,
|
|
27
|
+
webUrl,
|
|
28
|
+
apiVersion,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -787,7 +787,7 @@ const configuration = new Configuration();
|
|
|
787
787
|
const apiInstance = new DocumentControllerApi(configuration);
|
|
788
788
|
|
|
789
789
|
let file: Array<File>; // (default to undefined)
|
|
790
|
-
let allowDuplicateFileNames: boolean; //
|
|
790
|
+
let allowDuplicateFileNames: boolean; //When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned. (optional) (default to false)
|
|
791
791
|
let autoFile: boolean; //Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. (optional) (default to undefined)
|
|
792
792
|
let parametersByFilename: string; //Paste the JSON array here<br>This array provides optional metadata and attributes for the uploaded files<br><section> <h3>Each object in the array must contain:</h3> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>filename</code></td> <td><code>String</code></td> <td>Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.</td> </tr> <tr> <td><code>fileAttributes</code></td> <td><code>JSON Object</code></td> <td>Container for metadata and other file-specific attributes.</td> </tr> </tbody> </table> <h4>Inside <code>fileAttributes</code>:</h4> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>parentFolderId</code></td> <td><code>UUID</code></td> <td>UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)</td> </tr> <tr> <td><code>metadata</code></td> <td><code>Map<String, JSON Object></code></td> <td>Arbitrary metadata to associate with the file (key/value pairs).</td> </tr> </tbody> </table> <h4>Example of <code>parametersByFilename</code> JSON array :</h4> <pre><code>[ { \\\"filename\\\": \\\"file1.txt\\\", \\\"fileAttributes\\\": { \\\"parentFolderId\\\": \\\"f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\", \\\"metadata\\\": { \\\"country\\\": \\\"UK\\\", \\\"owner\\\": { \\\"name\\\": \\\"Joe\\\", \\\"owner_id\\\": 1234568 } } } }, { \\\"filename\\\": \\\"file2.md\\\", \\\"fileAttributes\\\": { \\\"metadata\\\": { \\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\", \\\"key3\\\": \\\"value3\\\" } } } ]</code></pre> </section> (optional) (default to undefined)
|
|
793
793
|
|
|
@@ -804,7 +804,7 @@ const { status, data } = await apiInstance.uploadDocument(
|
|
|
804
804
|
|Name | Type | Description | Notes|
|
|
805
805
|
|------------- | ------------- | ------------- | -------------|
|
|
806
806
|
| **file** | **Array<File>** | | defaults to undefined|
|
|
807
|
-
| **allowDuplicateFileNames** | [**boolean**] |
|
|
807
|
+
| **allowDuplicateFileNames** | [**boolean**] | When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned. | (optional) defaults to false|
|
|
808
808
|
| **autoFile** | [**boolean**] | Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. | (optional) defaults to undefined|
|
|
809
809
|
| **parametersByFilename** | [**string**] | Paste the JSON array here<br>This array provides optional metadata and attributes for the uploaded files<br><section> <h3>Each object in the array must contain:</h3> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>filename</code></td> <td><code>String</code></td> <td>Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.</td> </tr> <tr> <td><code>fileAttributes</code></td> <td><code>JSON Object</code></td> <td>Container for metadata and other file-specific attributes.</td> </tr> </tbody> </table> <h4>Inside <code>fileAttributes</code>:</h4> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>parentFolderId</code></td> <td><code>UUID</code></td> <td>UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)</td> </tr> <tr> <td><code>metadata</code></td> <td><code>Map&lt;String, JSON Object&gt;</code></td> <td>Arbitrary metadata to associate with the file (key/value pairs).</td> </tr> </tbody> </table> <h4>Example of <code>parametersByFilename</code> JSON array :</h4> <pre><code>[ { \\\"filename\\\": \\\"file1.txt\\\", \\\"fileAttributes\\\": { \\\"parentFolderId\\\": \\\"f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\", \\\"metadata\\\": { \\\"country\\\": \\\"UK\\\", \\\"owner\\\": { \\\"name\\\": \\\"Joe\\\", \\\"owner_id\\\": 1234568 } } } }, { \\\"filename\\\": \\\"file2.md\\\", \\\"fileAttributes\\\": { \\\"metadata\\\": { \\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\", \\\"key3\\\": \\\"value3\\\" } } } ]</code></pre> </section> | (optional) defaults to undefined|
|
|
810
810
|
|
|
@@ -847,7 +847,7 @@ const configuration = new Configuration();
|
|
|
847
847
|
const apiInstance = new DocumentControllerApi(configuration);
|
|
848
848
|
|
|
849
849
|
let file: File; // (default to undefined)
|
|
850
|
-
let allowDuplicateFileNames: boolean; //
|
|
850
|
+
let allowDuplicateFileNames: boolean; //When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned. (optional) (default to false)
|
|
851
851
|
let autoFile: boolean; //Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. (optional) (default to undefined)
|
|
852
852
|
let parentFolderId: string; //Target parent folder ID to store the file; if not sent or null, the file is stored at the root level (optional) (default to undefined)
|
|
853
853
|
let metadata: string; // (optional) (default to undefined)
|
|
@@ -866,7 +866,7 @@ const { status, data } = await apiInstance.uploadDocument1(
|
|
|
866
866
|
|Name | Type | Description | Notes|
|
|
867
867
|
|------------- | ------------- | ------------- | -------------|
|
|
868
868
|
| **file** | [**File**] | | defaults to undefined|
|
|
869
|
-
| **allowDuplicateFileNames** | [**boolean**] |
|
|
869
|
+
| **allowDuplicateFileNames** | [**boolean**] | When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned. | (optional) defaults to false|
|
|
870
870
|
| **autoFile** | [**boolean**] | Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. | (optional) defaults to undefined|
|
|
871
871
|
| **parentFolderId** | [**string**] | Target parent folder ID to store the file; if not sent or null, the file is stored at the root level | (optional) defaults to undefined|
|
|
872
872
|
| **metadata** | [**string**] | | (optional) defaults to undefined|
|