@plyaz/types 1.40.1 → 1.41.0
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/dist/api/endpoints/files/index.d.ts +2 -2
- package/dist/api/endpoints/files/schemas.d.ts +30 -19
- package/dist/api/index.cjs +63 -6
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.js +62 -7
- package/dist/api/index.js.map +1 -1
- package/dist/core/domain/files/schemas.d.ts +5 -5
- package/package.json +1 -1
|
@@ -16,10 +16,10 @@ import { z } from 'zod';
|
|
|
16
16
|
* Use this for DB operations and validation
|
|
17
17
|
*/
|
|
18
18
|
export declare const MediaTypeSchema: z.ZodEnum<{
|
|
19
|
+
DOCUMENT: "DOCUMENT";
|
|
19
20
|
IMAGE: "IMAGE";
|
|
20
21
|
VIDEO: "VIDEO";
|
|
21
22
|
AUDIO: "AUDIO";
|
|
22
|
-
DOCUMENT: "DOCUMENT";
|
|
23
23
|
}>;
|
|
24
24
|
export type MediaType = z.infer<typeof MediaTypeSchema>;
|
|
25
25
|
/**
|
|
@@ -28,11 +28,11 @@ export type MediaType = z.infer<typeof MediaTypeSchema>;
|
|
|
28
28
|
* Note: OTHER is not in the DB ENUM, mapper should convert to DOCUMENT for DB ops.
|
|
29
29
|
*/
|
|
30
30
|
export declare const FileTypeSchema: z.ZodEnum<{
|
|
31
|
+
DOCUMENT: "DOCUMENT";
|
|
32
|
+
OTHER: "OTHER";
|
|
31
33
|
IMAGE: "IMAGE";
|
|
32
34
|
VIDEO: "VIDEO";
|
|
33
35
|
AUDIO: "AUDIO";
|
|
34
|
-
DOCUMENT: "DOCUMENT";
|
|
35
|
-
OTHER: "OTHER";
|
|
36
36
|
}>;
|
|
37
37
|
export type FileType = z.infer<typeof FileTypeSchema>;
|
|
38
38
|
/**
|
|
@@ -89,10 +89,10 @@ export type FilesDatabaseRow = z.infer<typeof FilesDatabaseRowSchema>;
|
|
|
89
89
|
export declare const CreateFilesSchema: z.ZodObject<{
|
|
90
90
|
user_id: z.ZodDefault<z.ZodString>;
|
|
91
91
|
type: z.ZodDefault<z.ZodEnum<{
|
|
92
|
+
DOCUMENT: "DOCUMENT";
|
|
92
93
|
IMAGE: "IMAGE";
|
|
93
94
|
VIDEO: "VIDEO";
|
|
94
95
|
AUDIO: "AUDIO";
|
|
95
|
-
DOCUMENT: "DOCUMENT";
|
|
96
96
|
}>>;
|
|
97
97
|
filename: z.ZodString;
|
|
98
98
|
original_filename: z.ZodString;
|
|
@@ -127,10 +127,10 @@ export type FilesCreateOutput = z.output<typeof CreateFilesSchema>;
|
|
|
127
127
|
export declare const PatchFilesSchema: z.ZodObject<{
|
|
128
128
|
user_id: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
129
129
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
130
|
+
DOCUMENT: "DOCUMENT";
|
|
130
131
|
IMAGE: "IMAGE";
|
|
131
132
|
VIDEO: "VIDEO";
|
|
132
133
|
AUDIO: "AUDIO";
|
|
133
|
-
DOCUMENT: "DOCUMENT";
|
|
134
134
|
}>>>;
|
|
135
135
|
filename: z.ZodOptional<z.ZodString>;
|
|
136
136
|
original_filename: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED