@tmlmobilidade/types 20250917.1256.45 → 20250917.1305.2
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.
|
@@ -3,6 +3,13 @@ export declare const CommentTypeSchema: z.ZodEnum<["field_changed", "note", "cru
|
|
|
3
3
|
export type CommentType = z.infer<typeof CommentTypeSchema>;
|
|
4
4
|
export declare const CrudCommentSchemaActionSchema: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
|
|
5
5
|
export type CrudCommentSchemaAction = z.infer<typeof CrudCommentSchemaActionSchema>;
|
|
6
|
+
export declare const CRUD_COMMENT_ACTION_OPTIONS_ICONS: Readonly<{
|
|
7
|
+
archived: "IconCircleDashedMinus";
|
|
8
|
+
create: "IconCircleDashed";
|
|
9
|
+
delete: "IconCircleDashedX";
|
|
10
|
+
restored: "IconCircleDashedLetterR";
|
|
11
|
+
update: "IconCircleDashedLetterU";
|
|
12
|
+
}>;
|
|
6
13
|
export declare const NoteCommentSchema: z.ZodObject<{
|
|
7
14
|
_id: z.ZodOptional<z.ZodString>;
|
|
8
15
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -6,6 +6,13 @@ const COMMENT_TYPE_OPTIONS = ['field_changed', 'note', 'crud'];
|
|
|
6
6
|
export const CommentTypeSchema = z.enum(COMMENT_TYPE_OPTIONS);
|
|
7
7
|
const CRUD_COMMENT_ACTION_OPTIONS = ['create', 'update', 'delete', 'archived', 'restored'];
|
|
8
8
|
export const CrudCommentSchemaActionSchema = z.enum(CRUD_COMMENT_ACTION_OPTIONS);
|
|
9
|
+
export const CRUD_COMMENT_ACTION_OPTIONS_ICONS = Object.freeze({
|
|
10
|
+
archived: 'IconCircleDashedMinus',
|
|
11
|
+
create: 'IconCircleDashed',
|
|
12
|
+
delete: 'IconCircleDashedX',
|
|
13
|
+
restored: 'IconCircleDashedLetterR',
|
|
14
|
+
update: 'IconCircleDashedLetterU',
|
|
15
|
+
});
|
|
9
16
|
/* * */
|
|
10
17
|
export const NoteCommentSchema = DocumentSchema.extend({
|
|
11
18
|
message: z.string(),
|
package/package.json
CHANGED