@plyaz/types 1.41.0 → 1.41.1
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.
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Uses Pick to extend from existing API types where applicable.
|
|
6
6
|
*/
|
|
7
7
|
import type { UploadFileRequest, GenerateDocumentRequest } from '../../../api';
|
|
8
|
+
import type { FILE_CATEGORY, ENTITY_TYPE } from '../../../storage/enums';
|
|
8
9
|
/**
|
|
9
10
|
* Options for useFileUpload hook - direct file upload
|
|
10
11
|
*
|
|
@@ -14,11 +15,11 @@ import type { UploadFileRequest, GenerateDocumentRequest } from '../../../api';
|
|
|
14
15
|
*/
|
|
15
16
|
export interface CoreFileUploadOptions {
|
|
16
17
|
/** Entity type for file organization */
|
|
17
|
-
entityType?:
|
|
18
|
+
entityType?: ENTITY_TYPE;
|
|
18
19
|
/** Entity ID for file organization */
|
|
19
20
|
entityId?: string;
|
|
20
21
|
/** File category */
|
|
21
|
-
category?:
|
|
22
|
+
category?: FILE_CATEGORY;
|
|
22
23
|
/** Whether file is public */
|
|
23
24
|
isPublic?: boolean;
|
|
24
25
|
}
|
|
@@ -27,12 +28,12 @@ export interface CoreFileUploadOptions {
|
|
|
27
28
|
* Extended from UploadFileRequest API type for consistency.
|
|
28
29
|
*/
|
|
29
30
|
export interface CoreTemplateUploadOptions extends Required<Pick<UploadFileRequest, 'templateId'>>, Pick<UploadFileRequest, 'templateData' | 'outputFormat' | 'locale' | 'pdfOptions'> {
|
|
30
|
-
/** Entity type for file organization (default:
|
|
31
|
-
entityType?:
|
|
31
|
+
/** Entity type for file organization (default: ENTITY_TYPE.SYSTEM) */
|
|
32
|
+
entityType?: ENTITY_TYPE;
|
|
32
33
|
/** Entity ID for file organization (default: 'default') */
|
|
33
34
|
entityId?: string;
|
|
34
|
-
/** File category (default:
|
|
35
|
-
category?:
|
|
35
|
+
/** File category (default: FILE_CATEGORY.DOCUMENT) */
|
|
36
|
+
category?: FILE_CATEGORY;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Options for generate-only (returns buffer, no upload)
|
package/package.json
CHANGED