@m5kdev/commons 0.20.34 → 0.20.38
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/notification/notification.schema.d.cts +3 -3
- package/dist/src/modules/notification/notification.schema.d.mts +3 -3
- 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/dist/src/modules/workflow/workflow.schema.d.cts +4 -4
- package/dist/src/modules/workflow/workflow.schema.d.mts +4 -4
- package/package.json +2 -2
|
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
|
|
|
12
12
|
fcm: "fcm";
|
|
13
13
|
}>;
|
|
14
14
|
declare const notificationSendStatusSchema: z.ZodEnum<{
|
|
15
|
+
failed: "failed";
|
|
15
16
|
pending: "pending";
|
|
16
17
|
sent: "sent";
|
|
17
|
-
failed: "failed";
|
|
18
18
|
}>;
|
|
19
19
|
/** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
|
|
20
20
|
declare const pushSubscriptionJsonSchema: z.ZodObject<{
|
|
@@ -100,9 +100,9 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
|
|
|
100
100
|
body: z.ZodString;
|
|
101
101
|
data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
102
102
|
status: z.ZodEnum<{
|
|
103
|
+
failed: "failed";
|
|
103
104
|
pending: "pending";
|
|
104
105
|
sent: "sent";
|
|
105
|
-
failed: "failed";
|
|
106
106
|
}>;
|
|
107
107
|
error: z.ZodNullable<z.ZodString>;
|
|
108
108
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -127,9 +127,9 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
127
127
|
body: z.ZodString;
|
|
128
128
|
data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
129
|
status: z.ZodEnum<{
|
|
130
|
+
failed: "failed";
|
|
130
131
|
pending: "pending";
|
|
131
132
|
sent: "sent";
|
|
132
|
-
failed: "failed";
|
|
133
133
|
}>;
|
|
134
134
|
error: z.ZodNullable<z.ZodString>;
|
|
135
135
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
|
|
|
12
12
|
fcm: "fcm";
|
|
13
13
|
}>;
|
|
14
14
|
declare const notificationSendStatusSchema: z.ZodEnum<{
|
|
15
|
+
failed: "failed";
|
|
15
16
|
pending: "pending";
|
|
16
17
|
sent: "sent";
|
|
17
|
-
failed: "failed";
|
|
18
18
|
}>;
|
|
19
19
|
/** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
|
|
20
20
|
declare const pushSubscriptionJsonSchema: z.ZodObject<{
|
|
@@ -100,9 +100,9 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
|
|
|
100
100
|
body: z.ZodString;
|
|
101
101
|
data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
102
102
|
status: z.ZodEnum<{
|
|
103
|
+
failed: "failed";
|
|
103
104
|
pending: "pending";
|
|
104
105
|
sent: "sent";
|
|
105
|
-
failed: "failed";
|
|
106
106
|
}>;
|
|
107
107
|
error: z.ZodNullable<z.ZodString>;
|
|
108
108
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -127,9 +127,9 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
127
127
|
body: z.ZodString;
|
|
128
128
|
data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
129
|
status: z.ZodEnum<{
|
|
130
|
+
failed: "failed";
|
|
130
131
|
pending: "pending";
|
|
131
132
|
sent: "sent";
|
|
132
|
-
failed: "failed";
|
|
133
133
|
}>;
|
|
134
134
|
error: z.ZodNullable<z.ZodString>;
|
|
135
135
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -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,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,M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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,IAAAA,EAAE,QAAQ;CACd,WAAWA,IAAAA,EAAE,MAAM;CACnB,OAAOA,IAAAA,EAAE,QAAQ;CACjB,cAAcA,IAAAA,EAAE,QAAQ;CACxB,YAAYA,IAAAA,EAAE,QAAQ;CACvB,CAAC;AAEF,MAAa,qBAAqBC,yCAAAA;AAElC,MAAa,s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IA,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,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;
|
|
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 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\n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,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"}
|
|
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
|
|
|
11
11
|
input: z.ZodUnknown;
|
|
12
12
|
output: z.ZodUnknown;
|
|
13
13
|
status: z.ZodEnum<{
|
|
14
|
-
failed: "failed";
|
|
15
14
|
queued: "queued";
|
|
16
15
|
running: "running";
|
|
17
16
|
completed: "completed";
|
|
17
|
+
failed: "failed";
|
|
18
18
|
}>;
|
|
19
19
|
error: z.ZodNullable<z.ZodString>;
|
|
20
20
|
retries: z.ZodNumber;
|
|
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
declare const workflowListInputSchema: z.ZodObject<{
|
|
30
30
|
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
31
|
-
failed: "failed";
|
|
32
31
|
queued: "queued";
|
|
33
32
|
running: "running";
|
|
34
33
|
completed: "completed";
|
|
34
|
+
failed: "failed";
|
|
35
35
|
}>>>;
|
|
36
36
|
jobName: z.ZodOptional<z.ZodString>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
|
|
|
51
51
|
input: z.ZodUnknown;
|
|
52
52
|
output: z.ZodUnknown;
|
|
53
53
|
status: z.ZodEnum<{
|
|
54
|
-
failed: "failed";
|
|
55
54
|
queued: "queued";
|
|
56
55
|
running: "running";
|
|
57
56
|
completed: "completed";
|
|
57
|
+
failed: "failed";
|
|
58
58
|
}>;
|
|
59
59
|
error: z.ZodNullable<z.ZodString>;
|
|
60
60
|
retries: z.ZodNumber;
|
|
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
73
73
|
input: z.ZodUnknown;
|
|
74
74
|
output: z.ZodUnknown;
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
|
-
failed: "failed";
|
|
77
76
|
queued: "queued";
|
|
78
77
|
running: "running";
|
|
79
78
|
completed: "completed";
|
|
79
|
+
failed: "failed";
|
|
80
80
|
}>;
|
|
81
81
|
error: z.ZodNullable<z.ZodString>;
|
|
82
82
|
retries: z.ZodNumber;
|
|
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
|
|
|
11
11
|
input: z.ZodUnknown;
|
|
12
12
|
output: z.ZodUnknown;
|
|
13
13
|
status: z.ZodEnum<{
|
|
14
|
-
failed: "failed";
|
|
15
14
|
queued: "queued";
|
|
16
15
|
running: "running";
|
|
17
16
|
completed: "completed";
|
|
17
|
+
failed: "failed";
|
|
18
18
|
}>;
|
|
19
19
|
error: z.ZodNullable<z.ZodString>;
|
|
20
20
|
retries: z.ZodNumber;
|
|
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
declare const workflowListInputSchema: z.ZodObject<{
|
|
30
30
|
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
31
|
-
failed: "failed";
|
|
32
31
|
queued: "queued";
|
|
33
32
|
running: "running";
|
|
34
33
|
completed: "completed";
|
|
34
|
+
failed: "failed";
|
|
35
35
|
}>>>;
|
|
36
36
|
jobName: z.ZodOptional<z.ZodString>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
|
|
|
51
51
|
input: z.ZodUnknown;
|
|
52
52
|
output: z.ZodUnknown;
|
|
53
53
|
status: z.ZodEnum<{
|
|
54
|
-
failed: "failed";
|
|
55
54
|
queued: "queued";
|
|
56
55
|
running: "running";
|
|
57
56
|
completed: "completed";
|
|
57
|
+
failed: "failed";
|
|
58
58
|
}>;
|
|
59
59
|
error: z.ZodNullable<z.ZodString>;
|
|
60
60
|
retries: z.ZodNumber;
|
|
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
73
73
|
input: z.ZodUnknown;
|
|
74
74
|
output: z.ZodUnknown;
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
|
-
failed: "failed";
|
|
77
76
|
queued: "queued";
|
|
78
77
|
running: "running";
|
|
79
78
|
completed: "completed";
|
|
79
|
+
failed: "failed";
|
|
80
80
|
}>;
|
|
81
81
|
error: z.ZodNullable<z.ZodString>;
|
|
82
82
|
retries: z.ZodNumber;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/commons",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.38",
|
|
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.38"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
"./utils/*": {
|