@shiftengineering/folio 0.1.21 → 0.1.23

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.
@@ -59,7 +59,7 @@ export declare type DirectoryEntry = {
59
59
  * Example: { category: "reports", details: { owner: "John", tags: ["important", "tax"] } }
60
60
  */
61
61
  directoryMetadata: Record<string, MetadataValue_2>;
62
- files: Omit<FolioFile, "id" | "parentId" | "isDirectory" | "createdAt" | "updatedAt">[];
62
+ files: FolioFileInput[];
63
63
  };
64
64
 
65
65
  export declare function FolioEmbed({ width, height, allow, style, className, iframeProps, passTokenInQueryParam: propPassTokenInQueryParam, }: FolioEmbedProps): JSX_2.Element | null;
@@ -99,9 +99,7 @@ export declare interface FolioEmbedProps {
99
99
  passTokenInQueryParam?: boolean;
100
100
  }
101
101
 
102
- export declare type FolioFile = {
103
- blobUrl: string;
104
- name: string;
102
+ export declare type FolioFile = FolioFileInput & {
105
103
  id: number;
106
104
  parentId: number | null;
107
105
  isDirectory: boolean;
@@ -109,9 +107,16 @@ export declare type FolioFile = {
109
107
  updatedAt: Date;
110
108
  };
111
109
 
110
+ export declare type FolioFileInput = {
111
+ blobUrl: string;
112
+ name: string;
113
+ };
114
+
112
115
  export declare type FolioProject = {
113
116
  name: string;
114
117
  id: number;
118
+ createdAt: Date;
119
+ updatedAt: Date;
115
120
  };
116
121
 
117
122
  /**
@@ -233,8 +238,8 @@ export declare function useAddFolioDirectoriesWithFiles(projectId?: number): {
233
238
  * use the useAddFolioDirectoriesWithFiles hook instead.
234
239
  */
235
240
  export declare function useAddFolioFiles(projectId?: number): {
236
- addFiles: UseMutateFunction<FolioFile[], Error, Omit<FolioFile, "id" | "createdAt" | "updatedAt" | "isDirectory" | "parentId">[], unknown>;
237
- addFilesAsync: UseMutateAsyncFunction<FolioFile[], Error, Omit<FolioFile, "id" | "createdAt" | "updatedAt" | "isDirectory" | "parentId">[], unknown>;
241
+ addFiles: UseMutateFunction<FolioFile[], Error, FolioFileInput[], unknown>;
242
+ addFilesAsync: UseMutateAsyncFunction<FolioFile[], Error, FolioFileInput[], unknown>;
238
243
  isAdding: boolean;
239
244
  isError: boolean;
240
245
  error: Error | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shiftengineering/folio",
3
3
  "private": false,
4
- "version": "0.1.21",
4
+ "version": "0.1.23",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShiftEngineering/folio.git"