@openfilz-sdk/typescript 1.3.24 → 1.3.25

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 (61) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +6 -2
  4. package/api/document-controller-api.ts +8 -8
  5. package/api/file-controller-api.ts +82 -0
  6. package/dist/api/document-controller-api.d.ts +8 -8
  7. package/dist/api/document-controller-api.js +8 -8
  8. package/dist/api/file-controller-api.d.ts +38 -0
  9. package/dist/api/file-controller-api.js +75 -0
  10. package/dist/esm/api/document-controller-api.d.ts +8 -8
  11. package/dist/esm/api/document-controller-api.js +8 -8
  12. package/dist/esm/api/file-controller-api.d.ts +38 -0
  13. package/dist/esm/api/file-controller-api.js +75 -0
  14. package/dist/esm/models/audit-log.d.ts +1 -0
  15. package/dist/esm/models/audit-log.js +1 -0
  16. package/dist/esm/models/copy-request.d.ts +1 -1
  17. package/dist/esm/models/index.d.ts +3 -0
  18. package/dist/esm/models/index.js +3 -0
  19. package/dist/esm/models/move-request.d.ts +1 -1
  20. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  21. package/dist/esm/models/search-by-audit-log-request.js +1 -0
  22. package/dist/esm/models/settings.d.ts +3 -0
  23. package/dist/esm/models/unzip-request.d.ts +29 -0
  24. package/dist/esm/models/unzip-request.js +14 -0
  25. package/dist/esm/models/unzip-response.d.ts +34 -0
  26. package/dist/esm/models/unzip-response.js +14 -0
  27. package/dist/esm/models/unzip-skipped-entry.d.ts +34 -0
  28. package/dist/esm/models/unzip-skipped-entry.js +21 -0
  29. package/dist/models/audit-log.d.ts +1 -0
  30. package/dist/models/audit-log.js +1 -0
  31. package/dist/models/copy-request.d.ts +1 -1
  32. package/dist/models/index.d.ts +3 -0
  33. package/dist/models/index.js +3 -0
  34. package/dist/models/move-request.d.ts +1 -1
  35. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  36. package/dist/models/search-by-audit-log-request.js +1 -0
  37. package/dist/models/settings.d.ts +3 -0
  38. package/dist/models/unzip-request.d.ts +29 -0
  39. package/dist/models/unzip-request.js +15 -0
  40. package/dist/models/unzip-response.d.ts +34 -0
  41. package/dist/models/unzip-response.js +15 -0
  42. package/dist/models/unzip-skipped-entry.d.ts +34 -0
  43. package/dist/models/unzip-skipped-entry.js +24 -0
  44. package/docs/CopyRequest.md +1 -1
  45. package/docs/DocumentControllerApi.md +4 -4
  46. package/docs/FileControllerApi.md +56 -0
  47. package/docs/MoveRequest.md +1 -1
  48. package/docs/Settings.md +2 -0
  49. package/docs/UnzipRequest.md +26 -0
  50. package/docs/UnzipResponse.md +28 -0
  51. package/docs/UnzipSkippedEntry.md +24 -0
  52. package/models/audit-log.ts +1 -0
  53. package/models/copy-request.ts +1 -1
  54. package/models/index.ts +3 -0
  55. package/models/move-request.ts +1 -1
  56. package/models/search-by-audit-log-request.ts +1 -0
  57. package/models/settings.ts +1 -0
  58. package/models/unzip-request.ts +35 -0
  59. package/models/unzip-response.ts +42 -0
  60. package/models/unzip-skipped-entry.ts +43 -0
  61. package/package.json +1 -1
@@ -49,6 +49,7 @@ export const AuditLogActionEnum = {
49
49
  ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
50
50
  UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
51
51
  DownloadDocument: 'DOWNLOAD_DOCUMENT',
52
+ OpenDocument: 'OPEN_DOCUMENT',
52
53
  DeleteDocumentMetadata: 'DELETE_DOCUMENT_METADATA',
53
54
  RestoreFile: 'RESTORE_FILE',
54
55
  RestoreFolder: 'RESTORE_FOLDER',
@@ -24,7 +24,7 @@ export interface CopyRequest {
24
24
  */
25
25
  'targetFolderId'?: string;
26
26
  /**
27
- * when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
27
+ * 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.
28
28
  */
29
29
  'allowDuplicateFileNames'?: boolean;
30
30
  }
package/models/index.ts CHANGED
@@ -112,6 +112,9 @@ export * from './suggest';
112
112
  export * from './tus-config-response';
113
113
  export * from './tus-finalize-request';
114
114
  export * from './tus-upload-info';
115
+ export * from './unzip-request';
116
+ export * from './unzip-response';
117
+ export * from './unzip-skipped-entry';
115
118
  export * from './update-metadata-audit';
116
119
  export * from './update-metadata-request';
117
120
  export * from './upload-audit';
@@ -24,7 +24,7 @@ export interface MoveRequest {
24
24
  */
25
25
  'targetFolderId'?: string;
26
26
  /**
27
- * when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
27
+ * 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.
28
28
  */
29
29
  'allowDuplicateFileNames'?: boolean;
30
30
  }
@@ -64,6 +64,7 @@ export const SearchByAuditLogRequestActionEnum = {
64
64
  ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
65
65
  UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
66
66
  DownloadDocument: 'DOWNLOAD_DOCUMENT',
67
+ OpenDocument: 'OPEN_DOCUMENT',
67
68
  DeleteDocumentMetadata: 'DELETE_DOCUMENT_METADATA',
68
69
  RestoreFile: 'RESTORE_FILE',
69
70
  RestoreFolder: 'RESTORE_FOLDER',
@@ -44,5 +44,6 @@ export interface Settings {
44
44
  'mcpMode'?: string;
45
45
  'mcpAuthorizationServerUrl'?: string;
46
46
  'mcpClientId'?: string;
47
+ 'extensions'?: { [key: string]: any; };
47
48
  }
48
49
 
@@ -0,0 +1,35 @@
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
+
15
+
16
+
17
+ export interface UnzipRequest {
18
+ /**
19
+ * Folder to extract into. Omitted (and targetRoot not set): the folder containing the ZIP.
20
+ */
21
+ 'targetFolderId'?: string;
22
+ /**
23
+ * Extract at the root, whatever targetFolderId says.
24
+ */
25
+ 'targetRoot'?: boolean;
26
+ /**
27
+ * Create a folder of this name in the destination and extract into it.
28
+ */
29
+ 'newFolderName'?: string;
30
+ /**
31
+ * When true, files are extracted even if a document of the same name already exists in their destination folder. When false (default), such entries are skipped and listed in the response. Existing folders are always merged.
32
+ */
33
+ 'allowDuplicateFileNames'?: boolean;
34
+ }
35
+
@@ -0,0 +1,42 @@
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
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { UnzipSkippedEntry } from './unzip-skipped-entry';
19
+
20
+ export interface UnzipResponse {
21
+ /**
22
+ * Folder the archive was extracted into (null = root).
23
+ */
24
+ 'targetFolderId'?: string;
25
+ /**
26
+ * Id of the folder created from newFolderName, if any.
27
+ */
28
+ 'createdFolderId'?: string;
29
+ /**
30
+ * Number of folders created.
31
+ */
32
+ 'foldersCreated'?: number;
33
+ /**
34
+ * Number of files extracted.
35
+ */
36
+ 'filesExtracted'?: number;
37
+ /**
38
+ * Entries that were not extracted, with the reason.
39
+ */
40
+ 'skipped'?: Array<UnzipSkippedEntry>;
41
+ }
42
+
@@ -0,0 +1,43 @@
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
+
15
+
16
+
17
+ export interface UnzipSkippedEntry {
18
+ /**
19
+ * Path of the entry inside the archive.
20
+ */
21
+ 'path'?: string;
22
+ /**
23
+ * Why it was skipped.
24
+ */
25
+ 'reason'?: UnzipSkippedEntryReasonEnum;
26
+ /**
27
+ * Details, when available.
28
+ */
29
+ 'message'?: string;
30
+ }
31
+
32
+ export const UnzipSkippedEntryReasonEnum = {
33
+ DuplicateName: 'DUPLICATE_NAME',
34
+ UnsafePath: 'UNSAFE_PATH',
35
+ Unsupported: 'UNSUPPORTED',
36
+ FileTooLarge: 'FILE_TOO_LARGE',
37
+ ParentNotCreated: 'PARENT_NOT_CREATED',
38
+ Error: 'ERROR',
39
+ } as const;
40
+
41
+ export type UnzipSkippedEntryReasonEnum = typeof UnzipSkippedEntryReasonEnum[keyof typeof UnzipSkippedEntryReasonEnum];
42
+
43
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfilz-sdk/typescript",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
4
4
  "description": "OpenAPI client for @openfilz-sdk/typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {