@m5kdev/commons 0.19.3 → 0.20.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/src/modules/notification/notification.schema.d.cts +3 -3
- package/dist/src/modules/notification/notification.schema.d.mts +3 -3
- package/dist/src/modules/schemas/query.schema.cjs +7 -0
- package/dist/src/modules/schemas/query.schema.cjs.map +1 -1
- package/dist/src/modules/schemas/query.schema.d.cts +5 -1
- package/dist/src/modules/schemas/query.schema.d.mts +5 -1
- package/dist/src/modules/schemas/query.schema.mjs +7 -1
- package/dist/src/modules/schemas/query.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 +3 -3
|
@@ -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";
|
|
16
15
|
pending: "pending";
|
|
17
16
|
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";
|
|
104
103
|
pending: "pending";
|
|
105
104
|
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";
|
|
131
130
|
pending: "pending";
|
|
132
131
|
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";
|
|
16
15
|
pending: "pending";
|
|
17
16
|
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";
|
|
104
103
|
pending: "pending";
|
|
105
104
|
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";
|
|
131
130
|
pending: "pending";
|
|
132
131
|
sent: "sent";
|
|
132
|
+
failed: "failed";
|
|
133
133
|
}>;
|
|
134
134
|
error: z.ZodNullable<z.ZodString>;
|
|
135
135
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -47,9 +47,16 @@ const querySchema = zod.z.object({
|
|
|
47
47
|
filters: filtersSchema.optional(),
|
|
48
48
|
q: zod.z.string().optional()
|
|
49
49
|
});
|
|
50
|
+
function queryListOutput(rows) {
|
|
51
|
+
return zod.z.object({
|
|
52
|
+
rows: zod.z.array(rows),
|
|
53
|
+
total: zod.z.number()
|
|
54
|
+
});
|
|
55
|
+
}
|
|
50
56
|
//#endregion
|
|
51
57
|
exports.filterSchema = filterSchema;
|
|
52
58
|
exports.filtersSchema = filtersSchema;
|
|
59
|
+
exports.queryListOutput = queryListOutput;
|
|
53
60
|
exports.querySchema = querySchema;
|
|
54
61
|
|
|
55
62
|
//# sourceMappingURL=query.schema.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.schema.cjs","names":["z"],"sources":["../../../../src/modules/schemas/query.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const filterSchema = z.object({\r\n columnId: z.string(),\r\n type: z.enum([\"string\", \"number\", \"date\", \"boolean\", \"enum\", \"jsonArray\"]),\r\n method: z.enum([\r\n \"contains\",\r\n \"equals\",\r\n \"starts_with\",\r\n \"ends_with\",\r\n \"greater_than\",\r\n \"less_than\",\r\n \"on\",\r\n \"between\",\r\n \"before\",\r\n \"after\",\r\n \"oneOf\",\r\n \"intersect\",\r\n \"isEmpty\",\r\n \"isNotEmpty\",\r\n \"is_null\",\r\n \"is_not_null\",\r\n ]),\r\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),\r\n valueTo: z.string().optional(),\r\n endColumnId: z.string().optional(),\r\n});\r\n\r\nexport const filtersSchema = z.array(filterSchema);\r\n\r\nexport const querySchema = z.object({\r\n // TODO: Remove default values\r\n page: z.number().optional(),\r\n limit: z.number().optional(),\r\n sort: z.string().optional(),\r\n order: z.enum([\"asc\", \"desc\"]).optional(),\r\n filters: filtersSchema.optional(),\r\n /** Global substring search. Clients should trim; servers treat empty / whitespace-only as no-op. */\r\n q: z.string().optional(),\r\n});\r\n\r\nexport type QueryListOutput<T> = { rows: T[]; total: number };\r\n\r\nexport type QueryInput = z.infer<typeof querySchema>;\r\nexport type QueryFilter = z.infer<typeof filterSchema>;\r\nexport type QueryFilters = z.infer<typeof filtersSchema>;\r\n"],"mappings":";;;AAEA,MAAa,eAAeA,IAAAA,EAAE,OAAO;CACnC,UAAUA,IAAAA,EAAE,QAAQ;CACpB,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAU;EAAQ;EAAW;EAAQ;EAAY,CAAC;CAC1E,QAAQA,IAAAA,EAAE,KAAK;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CACF,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ;EAAEA,IAAAA,EAAE,QAAQ;EAAEA,IAAAA,EAAE,SAAS;EAAEA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC9B,aAAaA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC;AAEF,MAAa,gBAAgBA,IAAAA,EAAE,MAAM,aAAa;AAElD,MAAa,cAAcA,IAAAA,EAAE,OAAO;CAElC,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,UAAU;CACzC,SAAS,cAAc,UAAU;CAEjC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"query.schema.cjs","names":["z"],"sources":["../../../../src/modules/schemas/query.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const filterSchema = z.object({\r\n columnId: z.string(),\r\n type: z.enum([\"string\", \"number\", \"date\", \"boolean\", \"enum\", \"jsonArray\"]),\r\n method: z.enum([\r\n \"contains\",\r\n \"equals\",\r\n \"starts_with\",\r\n \"ends_with\",\r\n \"greater_than\",\r\n \"less_than\",\r\n \"on\",\r\n \"between\",\r\n \"before\",\r\n \"after\",\r\n \"oneOf\",\r\n \"intersect\",\r\n \"isEmpty\",\r\n \"isNotEmpty\",\r\n \"is_null\",\r\n \"is_not_null\",\r\n ]),\r\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),\r\n valueTo: z.string().optional(),\r\n endColumnId: z.string().optional(),\r\n});\r\n\r\nexport const filtersSchema = z.array(filterSchema);\r\n\r\nexport const querySchema = z.object({\r\n // TODO: Remove default values\r\n page: z.number().optional(),\r\n limit: z.number().optional(),\r\n sort: z.string().optional(),\r\n order: z.enum([\"asc\", \"desc\"]).optional(),\r\n filters: filtersSchema.optional(),\r\n /** Global substring search. Clients should trim; servers treat empty / whitespace-only as no-op. */\r\n q: z.string().optional(),\r\n});\r\n\r\nexport function queryListOutput<T extends z.ZodTypeAny>(rows: T) {\r\n return z.object({\r\n rows: z.array(rows),\r\n total: z.number(),\r\n });\r\n}\r\n\r\nexport type QueryListOutput<T> = { rows: T[]; total: number };\r\n\r\nexport type QueryInput = z.infer<typeof querySchema>;\r\nexport type QueryFilter = z.infer<typeof filterSchema>;\r\nexport type QueryFilters = z.infer<typeof filtersSchema>;\r\n"],"mappings":";;;AAEA,MAAa,eAAeA,IAAAA,EAAE,OAAO;CACnC,UAAUA,IAAAA,EAAE,QAAQ;CACpB,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAU;EAAQ;EAAW;EAAQ;EAAY,CAAC;CAC1E,QAAQA,IAAAA,EAAE,KAAK;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CACF,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ;EAAEA,IAAAA,EAAE,QAAQ;EAAEA,IAAAA,EAAE,SAAS;EAAEA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAC,CAAC;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC9B,aAAaA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC;AAEF,MAAa,gBAAgBA,IAAAA,EAAE,MAAM,aAAa;AAElD,MAAa,cAAcA,IAAAA,EAAE,OAAO;CAElC,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAOA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAMA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,UAAU;CACzC,SAAS,cAAc,UAAU;CAEjC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACzB,CAAC;AAEF,SAAgB,gBAAwC,MAAS;AAC/D,QAAOA,IAAAA,EAAE,OAAO;EACd,MAAMA,IAAAA,EAAE,MAAM,KAAK;EACnB,OAAOA,IAAAA,EAAE,QAAQ;EAClB,CAAC"}
|
|
@@ -107,6 +107,10 @@ declare const querySchema: z.ZodObject<{
|
|
|
107
107
|
}, z.core.$strip>>>;
|
|
108
108
|
q: z.ZodOptional<z.ZodString>;
|
|
109
109
|
}, z.core.$strip>;
|
|
110
|
+
declare function queryListOutput<T extends z.ZodTypeAny>(rows: T): z.ZodObject<{
|
|
111
|
+
rows: z.ZodArray<T>;
|
|
112
|
+
total: z.ZodNumber;
|
|
113
|
+
}, z.core.$strip>;
|
|
110
114
|
type QueryListOutput<T> = {
|
|
111
115
|
rows: T[];
|
|
112
116
|
total: number;
|
|
@@ -115,5 +119,5 @@ type QueryInput = z.infer<typeof querySchema>;
|
|
|
115
119
|
type QueryFilter = z.infer<typeof filterSchema>;
|
|
116
120
|
type QueryFilters = z.infer<typeof filtersSchema>;
|
|
117
121
|
//#endregion
|
|
118
|
-
export { QueryFilter, QueryFilters, QueryInput, QueryListOutput, filterSchema, filtersSchema, querySchema };
|
|
122
|
+
export { QueryFilter, QueryFilters, QueryInput, QueryListOutput, filterSchema, filtersSchema, queryListOutput, querySchema };
|
|
119
123
|
//# sourceMappingURL=query.schema.d.cts.map
|
|
@@ -107,6 +107,10 @@ declare const querySchema: z.ZodObject<{
|
|
|
107
107
|
}, z.core.$strip>>>;
|
|
108
108
|
q: z.ZodOptional<z.ZodString>;
|
|
109
109
|
}, z.core.$strip>;
|
|
110
|
+
declare function queryListOutput<T extends z.ZodTypeAny>(rows: T): z.ZodObject<{
|
|
111
|
+
rows: z.ZodArray<T>;
|
|
112
|
+
total: z.ZodNumber;
|
|
113
|
+
}, z.core.$strip>;
|
|
110
114
|
type QueryListOutput<T> = {
|
|
111
115
|
rows: T[];
|
|
112
116
|
total: number;
|
|
@@ -115,5 +119,5 @@ type QueryInput = z.infer<typeof querySchema>;
|
|
|
115
119
|
type QueryFilter = z.infer<typeof filterSchema>;
|
|
116
120
|
type QueryFilters = z.infer<typeof filtersSchema>;
|
|
117
121
|
//#endregion
|
|
118
|
-
export { QueryFilter, QueryFilters, QueryInput, QueryListOutput, filterSchema, filtersSchema, querySchema };
|
|
122
|
+
export { QueryFilter, QueryFilters, QueryInput, QueryListOutput, filterSchema, filtersSchema, queryListOutput, querySchema };
|
|
119
123
|
//# sourceMappingURL=query.schema.d.mts.map
|
|
@@ -46,7 +46,13 @@ const querySchema = z.object({
|
|
|
46
46
|
filters: filtersSchema.optional(),
|
|
47
47
|
q: z.string().optional()
|
|
48
48
|
});
|
|
49
|
+
function queryListOutput(rows) {
|
|
50
|
+
return z.object({
|
|
51
|
+
rows: z.array(rows),
|
|
52
|
+
total: z.number()
|
|
53
|
+
});
|
|
54
|
+
}
|
|
49
55
|
//#endregion
|
|
50
|
-
export { filterSchema, filtersSchema, querySchema };
|
|
56
|
+
export { filterSchema, filtersSchema, queryListOutput, querySchema };
|
|
51
57
|
|
|
52
58
|
//# sourceMappingURL=query.schema.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.schema.mjs","names":[],"sources":["../../../../src/modules/schemas/query.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const filterSchema = z.object({\r\n columnId: z.string(),\r\n type: z.enum([\"string\", \"number\", \"date\", \"boolean\", \"enum\", \"jsonArray\"]),\r\n method: z.enum([\r\n \"contains\",\r\n \"equals\",\r\n \"starts_with\",\r\n \"ends_with\",\r\n \"greater_than\",\r\n \"less_than\",\r\n \"on\",\r\n \"between\",\r\n \"before\",\r\n \"after\",\r\n \"oneOf\",\r\n \"intersect\",\r\n \"isEmpty\",\r\n \"isNotEmpty\",\r\n \"is_null\",\r\n \"is_not_null\",\r\n ]),\r\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),\r\n valueTo: z.string().optional(),\r\n endColumnId: z.string().optional(),\r\n});\r\n\r\nexport const filtersSchema = z.array(filterSchema);\r\n\r\nexport const querySchema = z.object({\r\n // TODO: Remove default values\r\n page: z.number().optional(),\r\n limit: z.number().optional(),\r\n sort: z.string().optional(),\r\n order: z.enum([\"asc\", \"desc\"]).optional(),\r\n filters: filtersSchema.optional(),\r\n /** Global substring search. Clients should trim; servers treat empty / whitespace-only as no-op. */\r\n q: z.string().optional(),\r\n});\r\n\r\nexport type QueryListOutput<T> = { rows: T[]; total: number };\r\n\r\nexport type QueryInput = z.infer<typeof querySchema>;\r\nexport type QueryFilter = z.infer<typeof filterSchema>;\r\nexport type QueryFilters = z.infer<typeof filtersSchema>;\r\n"],"mappings":";;AAEA,MAAa,eAAe,EAAE,OAAO;CACnC,UAAU,EAAE,QAAQ;CACpB,MAAM,EAAE,KAAK;EAAC;EAAU;EAAU;EAAQ;EAAW;EAAQ;EAAY,CAAC;CAC1E,QAAQ,EAAE,KAAK;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CACF,OAAO,EAAE,MAAM;EAAC,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAE,EAAE,SAAS;EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAC,CAAC;CAC1E,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC;AAEF,MAAa,gBAAgB,EAAE,MAAM,aAAa;AAElD,MAAa,cAAc,EAAE,OAAO;CAElC,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,UAAU;CACzC,SAAS,cAAc,UAAU;CAEjC,GAAG,EAAE,QAAQ,CAAC,UAAU;CACzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"query.schema.mjs","names":[],"sources":["../../../../src/modules/schemas/query.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\n\r\nexport const filterSchema = z.object({\r\n columnId: z.string(),\r\n type: z.enum([\"string\", \"number\", \"date\", \"boolean\", \"enum\", \"jsonArray\"]),\r\n method: z.enum([\r\n \"contains\",\r\n \"equals\",\r\n \"starts_with\",\r\n \"ends_with\",\r\n \"greater_than\",\r\n \"less_than\",\r\n \"on\",\r\n \"between\",\r\n \"before\",\r\n \"after\",\r\n \"oneOf\",\r\n \"intersect\",\r\n \"isEmpty\",\r\n \"isNotEmpty\",\r\n \"is_null\",\r\n \"is_not_null\",\r\n ]),\r\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),\r\n valueTo: z.string().optional(),\r\n endColumnId: z.string().optional(),\r\n});\r\n\r\nexport const filtersSchema = z.array(filterSchema);\r\n\r\nexport const querySchema = z.object({\r\n // TODO: Remove default values\r\n page: z.number().optional(),\r\n limit: z.number().optional(),\r\n sort: z.string().optional(),\r\n order: z.enum([\"asc\", \"desc\"]).optional(),\r\n filters: filtersSchema.optional(),\r\n /** Global substring search. Clients should trim; servers treat empty / whitespace-only as no-op. */\r\n q: z.string().optional(),\r\n});\r\n\r\nexport function queryListOutput<T extends z.ZodTypeAny>(rows: T) {\r\n return z.object({\r\n rows: z.array(rows),\r\n total: z.number(),\r\n });\r\n}\r\n\r\nexport type QueryListOutput<T> = { rows: T[]; total: number };\r\n\r\nexport type QueryInput = z.infer<typeof querySchema>;\r\nexport type QueryFilter = z.infer<typeof filterSchema>;\r\nexport type QueryFilters = z.infer<typeof filtersSchema>;\r\n"],"mappings":";;AAEA,MAAa,eAAe,EAAE,OAAO;CACnC,UAAU,EAAE,QAAQ;CACpB,MAAM,EAAE,KAAK;EAAC;EAAU;EAAU;EAAQ;EAAW;EAAQ;EAAY,CAAC;CAC1E,QAAQ,EAAE,KAAK;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CACF,OAAO,EAAE,MAAM;EAAC,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAE,EAAE,SAAS;EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAC,CAAC;CAC1E,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC;AAEF,MAAa,gBAAgB,EAAE,MAAM,aAAa;AAElD,MAAa,cAAc,EAAE,OAAO;CAElC,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,UAAU;CACzC,SAAS,cAAc,UAAU;CAEjC,GAAG,EAAE,QAAQ,CAAC,UAAU;CACzB,CAAC;AAEF,SAAgB,gBAAwC,MAAS;AAC/D,QAAO,EAAE,OAAO;EACd,MAAM,EAAE,MAAM,KAAK;EACnB,OAAO,EAAE,QAAQ;EAClB,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";
|
|
14
15
|
queued: "queued";
|
|
15
16
|
running: "running";
|
|
16
17
|
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";
|
|
31
32
|
queued: "queued";
|
|
32
33
|
running: "running";
|
|
33
34
|
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";
|
|
54
55
|
queued: "queued";
|
|
55
56
|
running: "running";
|
|
56
57
|
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";
|
|
76
77
|
queued: "queued";
|
|
77
78
|
running: "running";
|
|
78
79
|
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";
|
|
14
15
|
queued: "queued";
|
|
15
16
|
running: "running";
|
|
16
17
|
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";
|
|
31
32
|
queued: "queued";
|
|
32
33
|
running: "running";
|
|
33
34
|
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";
|
|
54
55
|
queued: "queued";
|
|
55
56
|
running: "running";
|
|
56
57
|
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";
|
|
76
77
|
queued: "queued";
|
|
77
78
|
running: "running";
|
|
78
79
|
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.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsdown": "0.21.7",
|
|
20
|
-
"typescript": "
|
|
21
|
-
"@m5kdev/config": "0.
|
|
20
|
+
"typescript": "6.0.3",
|
|
21
|
+
"@m5kdev/config": "0.20.0"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
"./utils/*": {
|