@zeniai/client-epic-state 5.0.2-betaRR5 → 5.0.2-betaRR7
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/lib/entity/file/fileState.d.ts +4 -4
- package/lib/entity/file/fileState.js +4 -0
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
- package/lib/esm/entity/file/fileState.js +4 -0
- package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +3 -0
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.d.ts +1 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +3 -0
- package/package.json +1 -1
|
@@ -43,16 +43,16 @@ export interface AttachmentFile {
|
|
|
43
43
|
fileName: string;
|
|
44
44
|
}
|
|
45
45
|
export type FileSizeUnit = 'bytes';
|
|
46
|
-
declare const toSupportedFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain";
|
|
47
|
-
export declare const toSupportedFileTypeStrict: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain" | undefined;
|
|
46
|
+
declare const toSupportedFileType: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain";
|
|
47
|
+
export declare const toSupportedFileTypeStrict: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain" | undefined;
|
|
48
48
|
export type SupportedFileType = ReturnType<typeof toSupportedFileType>;
|
|
49
49
|
declare const toSupportedFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt";
|
|
50
50
|
export type SupportedFileFormatType = ReturnType<typeof toSupportedFileFormatType>;
|
|
51
51
|
export declare const SUPPORTED_ATTACHMENT_FILE_TYPES: readonly ["application/pdf", "image/jpeg", "image/jpg", "image/png", "text/plain", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
52
|
-
export declare const toSupportedAttachmentFileType: (v: string) => "application/pdf" | "
|
|
52
|
+
export declare const toSupportedAttachmentFileType: (v: string) => "application/pdf" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "text/plain";
|
|
53
53
|
export type SupportedAttachmentFileType = ReturnType<typeof toSupportedAttachmentFileType>;
|
|
54
54
|
export declare const SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES: readonly ["application/x-excel", "application/pdf", "image/jpeg", "image/jpg", "image/png", "text/csv", "image/tiff", "image/tif", "image/gif", "text/xml", "application/xml", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/msword"];
|
|
55
|
-
export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/
|
|
55
|
+
export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/x-excel" | "image/tiff" | "image/tif" | "image/gif" | "text/xml" | "application/xml";
|
|
56
56
|
export type SupportedTransactionLineAttachmentFileType = ReturnType<typeof toSupportedTransactionLineAttachmentFileType>;
|
|
57
57
|
export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
|
|
58
58
|
type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
|
|
@@ -4,6 +4,10 @@ exports.toAllowedDocumentTypeStrict = exports.toAllowedDocumentType = exports.to
|
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const SUPPORTED_FILE_TYPES = [
|
|
6
6
|
'application/pdf',
|
|
7
|
+
'application/msword',
|
|
8
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
9
|
+
'application/vnd.ms-excel',
|
|
10
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
7
11
|
'image/jpeg',
|
|
8
12
|
'image/jpg',
|
|
9
13
|
'image/png',
|
|
@@ -4,9 +4,9 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
4
4
|
import { ZeniUrl as Url } from '../../../zeniUrl';
|
|
5
5
|
import { File } from '../../file/fileState';
|
|
6
6
|
import { AttachmentPayload } from '../payloadTypes/attachmentPayload';
|
|
7
|
-
export declare const toContentType: (v: string) => "application/pdf" | "
|
|
7
|
+
export declare const toContentType: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/html" | "text/csv" | "text/plain" | "image/gif" | "text/xml" | "application/postscript" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/svg+xml" | "image/webp";
|
|
8
8
|
export type ContentType = ReturnType<typeof toContentType>;
|
|
9
|
-
export declare const toContentTypeStrict: (v: string) => "application/pdf" | "
|
|
9
|
+
export declare const toContentTypeStrict: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/html" | "text/csv" | "text/plain" | "image/gif" | "text/xml" | "application/postscript" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/svg+xml" | "image/webp" | undefined;
|
|
10
10
|
export interface Attachment {
|
|
11
11
|
createTime: ZeniDate;
|
|
12
12
|
fileDownloadUrl: Url;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { stringToUnion, stringToUnionStrict, } from '../../commonStateTypes/stringToUnion';
|
|
2
2
|
const SUPPORTED_FILE_TYPES = [
|
|
3
3
|
'application/pdf',
|
|
4
|
+
'application/msword',
|
|
5
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
6
|
+
'application/vnd.ms-excel',
|
|
7
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
4
8
|
'image/jpeg',
|
|
5
9
|
'image/jpg',
|
|
6
10
|
'image/png',
|
|
@@ -24,6 +24,7 @@ export const getTaskDetail = (state, taskId) => {
|
|
|
24
24
|
let createdByUser = undefined;
|
|
25
25
|
let isArchived = undefined;
|
|
26
26
|
let isDeleted = undefined;
|
|
27
|
+
let recurringSourceTaskId = undefined;
|
|
27
28
|
let snoozedUntil = undefined;
|
|
28
29
|
if (taskId != null && sourceTaskDetail != null) {
|
|
29
30
|
const taskEntity = getTaskById(taskState, taskId);
|
|
@@ -32,6 +33,7 @@ export const getTaskDetail = (state, taskId) => {
|
|
|
32
33
|
createdByUser = getUserAndUserRole(userState, userRoleState, addressState, taskEntity.createdBy);
|
|
33
34
|
isArchived = taskEntity.isArchived;
|
|
34
35
|
isDeleted = taskEntity.isDeleted;
|
|
36
|
+
recurringSourceTaskId = taskEntity.recurringSourceTaskId;
|
|
35
37
|
snoozedUntil = taskEntity.snoozedUntil;
|
|
36
38
|
}
|
|
37
39
|
if (fileIdsInEntity.length > 0) {
|
|
@@ -82,6 +84,7 @@ export const getTaskDetail = (state, taskId) => {
|
|
|
82
84
|
createdByUser,
|
|
83
85
|
isArchived,
|
|
84
86
|
isDeleted,
|
|
87
|
+
recurringSourceTaskId,
|
|
85
88
|
showTaskDetailFormFooter,
|
|
86
89
|
snoozedUntil,
|
|
87
90
|
};
|