@m5kdev/commons 0.20.34 → 0.20.48
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/src/modules/recurrence/recurrence.schema.d.cts +2 -2
- package/dist/src/modules/recurrence/recurrence.schema.d.mts +2 -2
- package/dist/src/modules/tag/tag.schema.cjs +6 -2
- package/dist/src/modules/tag/tag.schema.cjs.map +1 -1
- package/dist/src/modules/tag/tag.schema.d.cts +4 -0
- package/dist/src/modules/tag/tag.schema.d.mts +4 -0
- package/dist/src/modules/tag/tag.schema.mjs +6 -2
- package/dist/src/modules/tag/tag.schema.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -38,6 +38,7 @@ declare const recurrenceRulesSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
declare const updateRecurrenceRulesSchema: z.ZodObject<{
|
|
40
40
|
id: z.ZodString;
|
|
41
|
+
interval: z.ZodNumber;
|
|
41
42
|
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
42
43
|
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
43
44
|
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
@@ -49,7 +50,6 @@ declare const updateRecurrenceRulesSchema: z.ZodObject<{
|
|
|
49
50
|
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
50
51
|
freq: z.ZodNumber;
|
|
51
52
|
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
52
|
-
interval: z.ZodNumber;
|
|
53
53
|
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
54
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
55
|
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -61,6 +61,7 @@ declare const createRecurrenceSchema: z.ZodObject<{
|
|
|
61
61
|
enabled: z.ZodBoolean;
|
|
62
62
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
63
63
|
recurrenceRules: z.ZodArray<z.ZodObject<{
|
|
64
|
+
interval: z.ZodNumber;
|
|
64
65
|
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
65
66
|
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
66
67
|
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
@@ -72,7 +73,6 @@ declare const createRecurrenceSchema: z.ZodObject<{
|
|
|
72
73
|
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
73
74
|
freq: z.ZodNumber;
|
|
74
75
|
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
75
|
-
interval: z.ZodNumber;
|
|
76
76
|
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
77
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
78
78
|
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -38,6 +38,7 @@ declare const recurrenceRulesSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
declare const updateRecurrenceRulesSchema: z.ZodObject<{
|
|
40
40
|
id: z.ZodString;
|
|
41
|
+
interval: z.ZodNumber;
|
|
41
42
|
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
42
43
|
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
43
44
|
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
@@ -49,7 +50,6 @@ declare const updateRecurrenceRulesSchema: z.ZodObject<{
|
|
|
49
50
|
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
50
51
|
freq: z.ZodNumber;
|
|
51
52
|
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
52
|
-
interval: z.ZodNumber;
|
|
53
53
|
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
54
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
55
|
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -61,6 +61,7 @@ declare const createRecurrenceSchema: z.ZodObject<{
|
|
|
61
61
|
enabled: z.ZodBoolean;
|
|
62
62
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
63
63
|
recurrenceRules: z.ZodArray<z.ZodObject<{
|
|
64
|
+
interval: z.ZodNumber;
|
|
64
65
|
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
65
66
|
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
66
67
|
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
@@ -72,7 +73,6 @@ declare const createRecurrenceSchema: z.ZodObject<{
|
|
|
72
73
|
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
73
74
|
freq: z.ZodNumber;
|
|
74
75
|
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
75
|
-
interval: z.ZodNumber;
|
|
76
76
|
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
77
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
78
78
|
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -37,13 +37,17 @@ const tagCreateSchema = zod.z.object({
|
|
|
37
37
|
color: zod.z.string(),
|
|
38
38
|
assignableTo: zod.z.string().array().optional().default([]),
|
|
39
39
|
resourceType: zod.z.string().optional(),
|
|
40
|
-
resourceId: zod.z.string().optional()
|
|
40
|
+
resourceId: zod.z.string().optional(),
|
|
41
|
+
parentId: zod.z.string().nullish(),
|
|
42
|
+
type: zod.z.string().nullish()
|
|
41
43
|
});
|
|
42
44
|
const tagUpdateSchema = zod.z.object({
|
|
43
45
|
id: zod.z.string(),
|
|
44
46
|
name: zod.z.string().optional(),
|
|
45
47
|
color: zod.z.string().optional(),
|
|
46
|
-
assignableTo: zod.z.string().array().optional()
|
|
48
|
+
assignableTo: zod.z.string().array().optional(),
|
|
49
|
+
parentId: zod.z.string().nullish(),
|
|
50
|
+
type: zod.z.string().nullish()
|
|
47
51
|
});
|
|
48
52
|
const tagLinkSchema = zod.z.object({
|
|
49
53
|
tagId: zod.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.schema.cjs","names":["z","querySchema"],"sources":["../../../../src/modules/tag/tag.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const tagSchema = z.object({\r\n id: z.string(),\r\n organizationId: z.string().nullish(),\r\n teamId: z.string().nullish(),\r\n createdAt: z.date(),\r\n updatedAt: z.date().nullish(),\r\n deletedAt: z.date().nullish(),\r\n userId: z.string(),\r\n name: z.string(),\r\n color: z.string().nullish(),\r\n type: z.string().nullish(),\r\n isEnabled: z.boolean(),\r\n parentId: z.string().nullish(),\r\n assignableTo: z.string().array().nullish().default([]),\r\n});\r\n\r\nexport const taggingSchema = z.object({\r\n id: z.string(),\r\n createdAt: z.date(),\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagListInputSchema = querySchema;\r\n\r\nexport const tagListOutputSchema = z.object({\r\n rows: z.array(tagSchema),\r\n total: z.number(),\r\n});\r\n\r\nexport const tagListSchema = z.object({\r\n assignableTo: z.string().optional(),\r\n});\r\n\r\nexport const tagCreateSchema = z.object({\r\n organizationId: z.string().optional(),\r\n teamId: z.string().optional(),\r\n name: z.string(),\r\n color: z.string(),\r\n assignableTo: z.string().array().optional().default([]),\r\n resourceType: z.string().optional(),\r\n resourceId: z.string().optional(),\r\n});\r\n\r\nexport const tagUpdateSchema = z.object({\r\n id: z.string(),\r\n name: z.string().optional(),\r\n color: z.string().optional(),\r\n assignableTo: z.string().array().optional(),\r\n});\r\n\r\nexport const tagLinkSchema = z.object({\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagDeleteSchema = z.object({\r\n id: z.string(),\r\n});\r\n\r\nexport type TagSchema = z.infer<typeof tagSchema>;\r\nexport type TaggingSchema = z.infer<typeof taggingSchema>;\r\nexport type TagListSchema = z.infer<typeof tagListSchema>;\r\nexport type TagCreateSchema = z.infer<typeof tagCreateSchema>;\r\nexport type TagUpdateSchema = z.infer<typeof tagUpdateSchema>;\r\nexport type TagLinkSchema = z.infer<typeof tagLinkSchema>;\r\nexport type TagDeleteSchema = z.infer<typeof tagDeleteSchema>;\r\nexport type TagListOutputSchema = z.infer<typeof tagListOutputSchema>;\r\nexport type TagListInputSchema = z.infer<typeof tagListInputSchema>;\r\n"],"mappings":";;;;AAGA,MAAa,YAAY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IAAAA,EAAE,QAAQ;CAChB,OAAOA,IAAAA,EAAE,QAAQ;CACjB,cAAcA,IAAAA,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;CACvD,cAAcA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACnC,YAAYA,IAAAA,EAAE,QAAQ,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"tag.schema.cjs","names":["z","querySchema"],"sources":["../../../../src/modules/tag/tag.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const tagSchema = z.object({\r\n id: z.string(),\r\n organizationId: z.string().nullish(),\r\n teamId: z.string().nullish(),\r\n createdAt: z.date(),\r\n updatedAt: z.date().nullish(),\r\n deletedAt: z.date().nullish(),\r\n userId: z.string(),\r\n name: z.string(),\r\n color: z.string().nullish(),\r\n type: z.string().nullish(),\r\n isEnabled: z.boolean(),\r\n parentId: z.string().nullish(),\r\n assignableTo: z.string().array().nullish().default([]),\r\n});\r\n\r\nexport const taggingSchema = z.object({\r\n id: z.string(),\r\n createdAt: z.date(),\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagListInputSchema = querySchema;\r\n\r\nexport const tagListOutputSchema = z.object({\r\n rows: z.array(tagSchema),\r\n total: z.number(),\r\n});\r\n\r\nexport const tagListSchema = z.object({\r\n assignableTo: z.string().optional(),\r\n});\r\n\r\nexport const tagCreateSchema = z.object({\r\n organizationId: z.string().optional(),\r\n teamId: z.string().optional(),\r\n name: z.string(),\r\n color: z.string(),\r\n assignableTo: z.string().array().optional().default([]),\r\n resourceType: z.string().optional(),\r\n resourceId: z.string().optional(),\r\n parentId: z.string().nullish(),\r\n type: z.string().nullish(),\r\n});\r\n\r\nexport const tagUpdateSchema = z.object({\r\n id: z.string(),\r\n name: z.string().optional(),\r\n color: z.string().optional(),\r\n assignableTo: z.string().array().optional(),\r\n parentId: z.string().nullish(),\r\n type: z.string().nullish(),\r\n});\r\n\r\nexport const tagLinkSchema = z.object({\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagDeleteSchema = z.object({\r\n id: z.string(),\r\n});\r\n\r\nexport type TagSchema = z.infer<typeof tagSchema>;\r\nexport type TaggingSchema = z.infer<typeof taggingSchema>;\r\nexport type TagListSchema = z.infer<typeof tagListSchema>;\r\nexport type TagCreateSchema = z.infer<typeof tagCreateSchema>;\r\nexport type TagUpdateSchema = z.infer<typeof tagUpdateSchema>;\r\nexport type TagLinkSchema = z.infer<typeof tagLinkSchema>;\r\nexport type TagDeleteSchema = z.infer<typeof tagDeleteSchema>;\r\nexport type TagListOutputSchema = z.infer<typeof tagListOutputSchema>;\r\nexport type TagListInputSchema = z.infer<typeof tagListInputSchema>;\r\n"],"mappings":";;;;AAGA,MAAa,YAAYA,IAAAA,EAAE,OAAO;CAChC,IAAIA,IAAAA,EAAE,QAAQ;CACd,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CACpC,QAAQA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC5B,WAAWA,IAAAA,EAAE,MAAM;CACnB,WAAWA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC7B,WAAWA,IAAAA,EAAE,MAAM,CAAC,SAAS;CAC7B,QAAQA,IAAAA,EAAE,QAAQ;CAClB,MAAMA,IAAAA,EAAE,QAAQ;CAChB,OAAOA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC3B,MAAMA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC1B,WAAWA,IAAAA,EAAE,SAAS;CACtB,UAAUA,IAAAA,EAAE,QAAQ,CAAC,SAAS;CAC9B,cAAcA,IAAAA,EAAE,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;CACvD,CAAC;AAEF,MAAa,gBAAgBA,IAAAA,EAAE,OAAO;CACpC,IAAIA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AAC;AAEF,MAAa,gBAAgBA,IAAAA,EAAE,OAAO;CACpC,OAAOA,IAAAA,EAAE,QAAQ;CACjB,cAAcA,IAAAA,EAAE,QAAQ;CACxB,YAAYA,IAAAA,EAAE,QAAQ;CACvB,CAAC;AAEF,MAAa,kBAAkBA,IAAAA,EAAE,OAAO,EACtC,IAAIA,IAAAA,EAAE,QAAQ,EACf,CAAC"}
|
|
@@ -94,12 +94,16 @@ declare const tagCreateSchema: z.ZodObject<{
|
|
|
94
94
|
assignableTo: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
95
95
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
96
96
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
99
|
}, z.core.$strip>;
|
|
98
100
|
declare const tagUpdateSchema: z.ZodObject<{
|
|
99
101
|
id: z.ZodString;
|
|
100
102
|
name: z.ZodOptional<z.ZodString>;
|
|
101
103
|
color: z.ZodOptional<z.ZodString>;
|
|
102
104
|
assignableTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
107
|
}, z.core.$strip>;
|
|
104
108
|
declare const tagLinkSchema: z.ZodObject<{
|
|
105
109
|
tagId: z.ZodString;
|
|
@@ -94,12 +94,16 @@ declare const tagCreateSchema: z.ZodObject<{
|
|
|
94
94
|
assignableTo: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
95
95
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
96
96
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
99
|
}, z.core.$strip>;
|
|
98
100
|
declare const tagUpdateSchema: z.ZodObject<{
|
|
99
101
|
id: z.ZodString;
|
|
100
102
|
name: z.ZodOptional<z.ZodString>;
|
|
101
103
|
color: z.ZodOptional<z.ZodString>;
|
|
102
104
|
assignableTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
107
|
}, z.core.$strip>;
|
|
104
108
|
declare const tagLinkSchema: z.ZodObject<{
|
|
105
109
|
tagId: z.ZodString;
|
|
@@ -36,13 +36,17 @@ const tagCreateSchema = z.object({
|
|
|
36
36
|
color: z.string(),
|
|
37
37
|
assignableTo: z.string().array().optional().default([]),
|
|
38
38
|
resourceType: z.string().optional(),
|
|
39
|
-
resourceId: z.string().optional()
|
|
39
|
+
resourceId: z.string().optional(),
|
|
40
|
+
parentId: z.string().nullish(),
|
|
41
|
+
type: z.string().nullish()
|
|
40
42
|
});
|
|
41
43
|
const tagUpdateSchema = z.object({
|
|
42
44
|
id: z.string(),
|
|
43
45
|
name: z.string().optional(),
|
|
44
46
|
color: z.string().optional(),
|
|
45
|
-
assignableTo: z.string().array().optional()
|
|
47
|
+
assignableTo: z.string().array().optional(),
|
|
48
|
+
parentId: z.string().nullish(),
|
|
49
|
+
type: z.string().nullish()
|
|
46
50
|
});
|
|
47
51
|
const tagLinkSchema = z.object({
|
|
48
52
|
tagId: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.schema.mjs","names":[],"sources":["../../../../src/modules/tag/tag.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const tagSchema = z.object({\r\n id: z.string(),\r\n organizationId: z.string().nullish(),\r\n teamId: z.string().nullish(),\r\n createdAt: z.date(),\r\n updatedAt: z.date().nullish(),\r\n deletedAt: z.date().nullish(),\r\n userId: z.string(),\r\n name: z.string(),\r\n color: z.string().nullish(),\r\n type: z.string().nullish(),\r\n isEnabled: z.boolean(),\r\n parentId: z.string().nullish(),\r\n assignableTo: z.string().array().nullish().default([]),\r\n});\r\n\r\nexport const taggingSchema = z.object({\r\n id: z.string(),\r\n createdAt: z.date(),\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagListInputSchema = querySchema;\r\n\r\nexport const tagListOutputSchema = z.object({\r\n rows: z.array(tagSchema),\r\n total: z.number(),\r\n});\r\n\r\nexport const tagListSchema = z.object({\r\n assignableTo: z.string().optional(),\r\n});\r\n\r\nexport const tagCreateSchema = z.object({\r\n organizationId: z.string().optional(),\r\n teamId: z.string().optional(),\r\n name: z.string(),\r\n color: z.string(),\r\n assignableTo: z.string().array().optional().default([]),\r\n resourceType: z.string().optional(),\r\n resourceId: z.string().optional(),\r\n});\r\n\r\nexport const tagUpdateSchema = z.object({\r\n id: z.string(),\r\n name: z.string().optional(),\r\n color: z.string().optional(),\r\n assignableTo: z.string().array().optional(),\r\n});\r\n\r\nexport const tagLinkSchema = z.object({\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagDeleteSchema = z.object({\r\n id: z.string(),\r\n});\r\n\r\nexport type TagSchema = z.infer<typeof tagSchema>;\r\nexport type TaggingSchema = z.infer<typeof taggingSchema>;\r\nexport type TagListSchema = z.infer<typeof tagListSchema>;\r\nexport type TagCreateSchema = z.infer<typeof tagCreateSchema>;\r\nexport type TagUpdateSchema = z.infer<typeof tagUpdateSchema>;\r\nexport type TagLinkSchema = z.infer<typeof tagLinkSchema>;\r\nexport type TagDeleteSchema = z.infer<typeof tagDeleteSchema>;\r\nexport type TagListOutputSchema = z.infer<typeof tagListOutputSchema>;\r\nexport type TagListInputSchema = z.infer<typeof tagListInputSchema>;\r\n"],"mappings":";;;AAGA,MAAa,YA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src/modules/tag/tag.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const tagSchema = z.object({\r\n id: z.string(),\r\n organizationId: z.string().nullish(),\r\n teamId: z.string().nullish(),\r\n createdAt: z.date(),\r\n updatedAt: z.date().nullish(),\r\n deletedAt: z.date().nullish(),\r\n userId: z.string(),\r\n name: z.string(),\r\n color: z.string().nullish(),\r\n type: z.string().nullish(),\r\n isEnabled: z.boolean(),\r\n parentId: z.string().nullish(),\r\n assignableTo: z.string().array().nullish().default([]),\r\n});\r\n\r\nexport const taggingSchema = z.object({\r\n id: z.string(),\r\n createdAt: z.date(),\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagListInputSchema = querySchema;\r\n\r\nexport const tagListOutputSchema = z.object({\r\n rows: z.array(tagSchema),\r\n total: z.number(),\r\n});\r\n\r\nexport const tagListSchema = z.object({\r\n assignableTo: z.string().optional(),\r\n});\r\n\r\nexport const tagCreateSchema = z.object({\r\n organizationId: z.string().optional(),\r\n teamId: z.string().optional(),\r\n name: z.string(),\r\n color: z.string(),\r\n assignableTo: z.string().array().optional().default([]),\r\n resourceType: z.string().optional(),\r\n resourceId: z.string().optional(),\r\n parentId: z.string().nullish(),\r\n type: z.string().nullish(),\r\n});\r\n\r\nexport const tagUpdateSchema = z.object({\r\n id: z.string(),\r\n name: z.string().optional(),\r\n color: z.string().optional(),\r\n assignableTo: z.string().array().optional(),\r\n parentId: z.string().nullish(),\r\n type: z.string().nullish(),\r\n});\r\n\r\nexport const tagLinkSchema = z.object({\r\n tagId: z.string(),\r\n resourceType: z.string(),\r\n resourceId: z.string(),\r\n});\r\n\r\nexport const tagDeleteSchema = z.object({\r\n id: z.string(),\r\n});\r\n\r\nexport type TagSchema = z.infer<typeof tagSchema>;\r\nexport type TaggingSchema = z.infer<typeof taggingSchema>;\r\nexport type TagListSchema = z.infer<typeof tagListSchema>;\r\nexport type TagCreateSchema = z.infer<typeof tagCreateSchema>;\r\nexport type TagUpdateSchema = z.infer<typeof tagUpdateSchema>;\r\nexport type TagLinkSchema = z.infer<typeof tagLinkSchema>;\r\nexport type TagDeleteSchema = z.infer<typeof tagDeleteSchema>;\r\nexport type TagListOutputSchema = z.infer<typeof tagListOutputSchema>;\r\nexport type TagListInputSchema = z.infer<typeof tagListInputSchema>;\r\n"],"mappings":";;;AAGA,MAAa,YAAY,EAAE,OAAO;CAChC,IAAI,EAAE,QAAQ;CACd,gBAAgB,EAAE,QAAQ,CAAC,SAAS;CACpC,QAAQ,EAAE,QAAQ,CAAC,SAAS;CAC5B,WAAW,EAAE,MAAM;CACnB,WAAW,EAAE,MAAM,CAAC,SAAS;CAC7B,WAAW,EAAE,MAAM,CAAC,SAAS;CAC7B,QAAQ,EAAE,QAAQ;CAClB,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ,CAAC,SAAS;CAC3B,MAAM,EAAE,QAAQ,CAAC,SAAS;CAC1B,WAAW,EAAE,SAAS;CACtB,UAAU,EAAE,QAAQ,CAAC,SAAS;CAC9B,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;CACvD,CAAC;AAEF,MAAa,gBAAgB,EAAE,OAAO;CACpC,IAAI,EAAE,QAAQ;CACd,WAAW,EAAE,MAAM;CACnB,OAAO,EAAE,QAAQ;CACjB,cAAc,EAAE,QAAQ;CACxB,YAAY,EAAE,QAAQ;CACvB,CAAC;AAEF,MAAa,qBAAqB;AAElC,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,MAAM,UAAU;CACxB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,MAAa,gBAAgB,EAAE,OAAO,EACpC,cAAc,EAAE,QAAQ,CAAC,UAAU,EACpC,CAAC;AAEF,MAAa,kBAAkB,EAAE,OAAO;CACtC,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ;CACjB,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;CACvD,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,UAAU,EAAE,QAAQ,CAAC,SAAS;CAC9B,MAAM,EAAE,QAAQ,CAAC,SAAS;CAC3B,CAAC;AAEF,MAAa,kBAAkB,EAAE,OAAO;CACtC,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU;CAC3C,UAAU,EAAE,QAAQ,CAAC,SAAS;CAC9B,MAAM,EAAE,QAAQ,CAAC,SAAS;CAC3B,CAAC;AAEF,MAAa,gBAAgB,EAAE,OAAO;CACpC,OAAO,EAAE,QAAQ;CACjB,cAAc,EAAE,QAAQ;CACxB,YAAY,EAAE,QAAQ;CACvB,CAAC;AAEF,MAAa,kBAAkB,EAAE,OAAO,EACtC,IAAI,EAAE,QAAQ,EACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/commons",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.48",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsdown": "0.21.7",
|
|
20
20
|
"typescript": "6.0.3",
|
|
21
|
-
"@m5kdev/config": "0.20.
|
|
21
|
+
"@m5kdev/config": "0.20.48"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
"./utils/*": {
|