@lucaapp/service-utils 5.1.0 → 5.1.1
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/lib/jobs/schemas.d.ts +6 -6
- package/dist/lib/validation.d.ts +52 -92
- package/package.json +8 -23
|
@@ -46,18 +46,18 @@ export declare const runningJobSchema: z.ZodObject<{
|
|
|
46
46
|
jobId: string;
|
|
47
47
|
jobName: string;
|
|
48
48
|
startedAt: string;
|
|
49
|
+
error?: string | undefined;
|
|
49
50
|
completedAt?: string | undefined;
|
|
50
51
|
duration?: number | undefined;
|
|
51
|
-
error?: string | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
status: "running" | "completed" | "failed";
|
|
54
54
|
method: string;
|
|
55
55
|
jobId: string;
|
|
56
56
|
jobName: string;
|
|
57
57
|
startedAt: string;
|
|
58
|
+
error?: string | undefined;
|
|
58
59
|
completedAt?: string | undefined;
|
|
59
60
|
duration?: number | undefined;
|
|
60
|
-
error?: string | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
63
63
|
* Schema for job completion information
|
|
@@ -173,18 +173,18 @@ export declare const jobsSchema: z.ZodObject<{
|
|
|
173
173
|
jobId: string;
|
|
174
174
|
jobName: string;
|
|
175
175
|
startedAt: string;
|
|
176
|
+
error?: string | undefined;
|
|
176
177
|
completedAt?: string | undefined;
|
|
177
178
|
duration?: number | undefined;
|
|
178
|
-
error?: string | undefined;
|
|
179
179
|
}, {
|
|
180
180
|
status: "running" | "completed" | "failed";
|
|
181
181
|
method: string;
|
|
182
182
|
jobId: string;
|
|
183
183
|
jobName: string;
|
|
184
184
|
startedAt: string;
|
|
185
|
+
error?: string | undefined;
|
|
185
186
|
completedAt?: string | undefined;
|
|
186
187
|
duration?: number | undefined;
|
|
187
|
-
error?: string | undefined;
|
|
188
188
|
}>, "many">;
|
|
189
189
|
jobCompletions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
190
190
|
completedAt: z.ZodString;
|
|
@@ -216,9 +216,9 @@ export declare const jobsSchema: z.ZodObject<{
|
|
|
216
216
|
jobId: string;
|
|
217
217
|
jobName: string;
|
|
218
218
|
startedAt: string;
|
|
219
|
+
error?: string | undefined;
|
|
219
220
|
completedAt?: string | undefined;
|
|
220
221
|
duration?: number | undefined;
|
|
221
|
-
error?: string | undefined;
|
|
222
222
|
}[];
|
|
223
223
|
jobCompletions: Record<string, {
|
|
224
224
|
status: "completed" | "failed";
|
|
@@ -242,9 +242,9 @@ export declare const jobsSchema: z.ZodObject<{
|
|
|
242
242
|
jobId: string;
|
|
243
243
|
jobName: string;
|
|
244
244
|
startedAt: string;
|
|
245
|
+
error?: string | undefined;
|
|
245
246
|
completedAt?: string | undefined;
|
|
246
247
|
duration?: number | undefined;
|
|
247
|
-
error?: string | undefined;
|
|
248
248
|
}[];
|
|
249
249
|
jobCompletions: Record<string, {
|
|
250
250
|
status: "completed" | "failed";
|
package/dist/lib/validation.d.ts
CHANGED
|
@@ -214,33 +214,43 @@ declare const z: {
|
|
|
214
214
|
OK: <T>(value: T) => zod.OK<T>;
|
|
215
215
|
isAborted: (x: zod.ParseReturnType<any>) => x is zod.INVALID;
|
|
216
216
|
isDirty: <T>(x: zod.ParseReturnType<T>) => x is zod.OK<T> | zod.DIRTY<T>;
|
|
217
|
-
isValid: <T>(x: zod.ParseReturnType<T>) => x is zod.OK<T
|
|
217
|
+
isValid: <T>(x: zod.ParseReturnType<T>) => x is zod.OK<T>;
|
|
218
218
|
isAsync: <T>(x: zod.ParseReturnType<T>) => x is zod.AsyncParseReturnType<T>;
|
|
219
219
|
util: typeof zod.util;
|
|
220
220
|
objectUtil: typeof zod.objectUtil;
|
|
221
221
|
ZodParsedType: {
|
|
222
|
-
function: "function";
|
|
223
|
-
number: "number";
|
|
224
222
|
string: "string";
|
|
223
|
+
number: "number";
|
|
224
|
+
bigint: "bigint";
|
|
225
|
+
boolean: "boolean";
|
|
226
|
+
symbol: "symbol";
|
|
227
|
+
undefined: "undefined";
|
|
228
|
+
object: "object";
|
|
229
|
+
function: "function";
|
|
230
|
+
map: "map";
|
|
225
231
|
nan: "nan";
|
|
226
232
|
integer: "integer";
|
|
227
233
|
float: "float";
|
|
228
|
-
boolean: "boolean";
|
|
229
234
|
date: "date";
|
|
230
|
-
bigint: "bigint";
|
|
231
|
-
symbol: "symbol";
|
|
232
|
-
undefined: "undefined";
|
|
233
235
|
null: "null";
|
|
234
236
|
array: "array";
|
|
235
|
-
object: "object";
|
|
236
237
|
unknown: "unknown";
|
|
237
238
|
promise: "promise";
|
|
238
239
|
void: "void";
|
|
239
240
|
never: "never";
|
|
240
|
-
map: "map";
|
|
241
241
|
set: "set";
|
|
242
242
|
};
|
|
243
243
|
getParsedType: (data: any) => zod.ZodParsedType;
|
|
244
|
+
datetimeRegex(args: {
|
|
245
|
+
precision?: number | null;
|
|
246
|
+
offset?: boolean;
|
|
247
|
+
local?: boolean;
|
|
248
|
+
}): RegExp;
|
|
249
|
+
custom<T>(check?: (data: any) => any, params?: string | (Partial<zod.util.Omit<zod.ZodCustomIssue, "code">> & {
|
|
250
|
+
fatal?: boolean;
|
|
251
|
+
}) | ((input: any) => Partial<zod.util.Omit<zod.ZodCustomIssue, "code">> & {
|
|
252
|
+
fatal?: boolean;
|
|
253
|
+
}), fatal?: boolean): ZodType<T, zod.ZodTypeDef, T>;
|
|
244
254
|
ZodType: typeof zod.ZodType;
|
|
245
255
|
ZodString: typeof zod.ZodString;
|
|
246
256
|
ZodNumber: typeof zod.ZodNumber;
|
|
@@ -280,87 +290,42 @@ declare const z: {
|
|
|
280
290
|
ZodBranded: typeof zod.ZodBranded;
|
|
281
291
|
ZodPipeline: typeof zod.ZodPipeline;
|
|
282
292
|
ZodReadonly: typeof zod.ZodReadonly;
|
|
283
|
-
custom: <T>(check?: ((data: unknown) => any) | undefined, params?: string | (Partial<zod.util.Omit<zod.ZodCustomIssue, "code">> & {
|
|
284
|
-
fatal?: boolean;
|
|
285
|
-
}) | ((input: any) => Partial<zod.util.Omit<zod.ZodCustomIssue, "code">> & {
|
|
286
|
-
fatal?: boolean;
|
|
287
|
-
}), fatal?: boolean | undefined) => ZodType<T, zod.ZodTypeDef, T>;
|
|
288
293
|
Schema: typeof zod.ZodType;
|
|
289
294
|
ZodSchema: typeof zod.ZodType;
|
|
290
295
|
late: {
|
|
291
|
-
object: <T extends zod.ZodRawShape>(shape: () => T, params?: zod.RawCreateParams) => ZodObject<T, "strip"
|
|
296
|
+
object: <T extends zod.ZodRawShape>(shape: () => T, params?: zod.RawCreateParams) => ZodObject<T, "strip">;
|
|
292
297
|
};
|
|
293
298
|
ZodFirstPartyTypeKind: typeof zod.ZodFirstPartyTypeKind;
|
|
294
299
|
coerce: {
|
|
295
|
-
string: (params?:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}) | undefined) => ZodNumber;
|
|
311
|
-
boolean: (params?: ({
|
|
312
|
-
errorMap?: zod.ZodErrorMap | undefined;
|
|
313
|
-
invalid_type_error?: string | undefined;
|
|
314
|
-
required_error?: string | undefined;
|
|
315
|
-
description?: string | undefined;
|
|
316
|
-
} & {
|
|
317
|
-
coerce?: boolean | undefined;
|
|
318
|
-
}) | undefined) => zod.ZodBoolean;
|
|
319
|
-
bigint: (params?: ({
|
|
320
|
-
errorMap?: zod.ZodErrorMap | undefined;
|
|
321
|
-
invalid_type_error?: string | undefined;
|
|
322
|
-
required_error?: string | undefined;
|
|
323
|
-
description?: string | undefined;
|
|
324
|
-
} & {
|
|
325
|
-
coerce?: boolean | undefined;
|
|
326
|
-
}) | undefined) => zod.ZodBigInt;
|
|
327
|
-
date: (params?: ({
|
|
328
|
-
errorMap?: zod.ZodErrorMap | undefined;
|
|
329
|
-
invalid_type_error?: string | undefined;
|
|
330
|
-
required_error?: string | undefined;
|
|
331
|
-
description?: string | undefined;
|
|
332
|
-
} & {
|
|
333
|
-
coerce?: boolean | undefined;
|
|
334
|
-
}) | undefined) => zod.ZodDate;
|
|
300
|
+
string: (params?: zod.RawCreateParams & {
|
|
301
|
+
coerce?: true;
|
|
302
|
+
}) => ZodString;
|
|
303
|
+
number: (params?: zod.RawCreateParams & {
|
|
304
|
+
coerce?: boolean;
|
|
305
|
+
}) => ZodNumber;
|
|
306
|
+
boolean: (params?: zod.RawCreateParams & {
|
|
307
|
+
coerce?: boolean;
|
|
308
|
+
}) => zod.ZodBoolean;
|
|
309
|
+
bigint: (params?: zod.RawCreateParams & {
|
|
310
|
+
coerce?: boolean;
|
|
311
|
+
}) => zod.ZodBigInt;
|
|
312
|
+
date: (params?: zod.RawCreateParams & {
|
|
313
|
+
coerce?: boolean;
|
|
314
|
+
}) => zod.ZodDate;
|
|
335
315
|
};
|
|
336
316
|
any: (params?: zod.RawCreateParams) => zod.ZodAny;
|
|
337
|
-
array: <T extends ZodTypeAny>(schema: T, params?: zod.RawCreateParams) => zod.ZodArray<T
|
|
338
|
-
bigint: (params?:
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
errorMap?: zod.ZodErrorMap | undefined;
|
|
348
|
-
invalid_type_error?: string | undefined;
|
|
349
|
-
required_error?: string | undefined;
|
|
350
|
-
description?: string | undefined;
|
|
351
|
-
} & {
|
|
352
|
-
coerce?: boolean | undefined;
|
|
353
|
-
}) | undefined) => zod.ZodBoolean;
|
|
354
|
-
date: (params?: ({
|
|
355
|
-
errorMap?: zod.ZodErrorMap | undefined;
|
|
356
|
-
invalid_type_error?: string | undefined;
|
|
357
|
-
required_error?: string | undefined;
|
|
358
|
-
description?: string | undefined;
|
|
359
|
-
} & {
|
|
360
|
-
coerce?: boolean | undefined;
|
|
361
|
-
}) | undefined) => zod.ZodDate;
|
|
317
|
+
array: <T extends ZodTypeAny>(schema: T, params?: zod.RawCreateParams) => zod.ZodArray<T>;
|
|
318
|
+
bigint: (params?: zod.RawCreateParams & {
|
|
319
|
+
coerce?: boolean;
|
|
320
|
+
}) => zod.ZodBigInt;
|
|
321
|
+
boolean: (params?: zod.RawCreateParams & {
|
|
322
|
+
coerce?: boolean;
|
|
323
|
+
}) => zod.ZodBoolean;
|
|
324
|
+
date: (params?: zod.RawCreateParams & {
|
|
325
|
+
coerce?: boolean;
|
|
326
|
+
}) => zod.ZodDate;
|
|
362
327
|
discriminatedUnion: typeof zod.ZodDiscriminatedUnion.create;
|
|
363
|
-
effect: <I extends ZodTypeAny>(schema: I, effect: zod.Effect<I["_output"]>, params?: zod.RawCreateParams) => ZodEffects<I, I["_output"]
|
|
328
|
+
effect: <I extends ZodTypeAny>(schema: I, effect: zod.Effect<I["_output"]>, params?: zod.RawCreateParams) => ZodEffects<I, I["_output"]>;
|
|
364
329
|
enum: {
|
|
365
330
|
<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: zod.RawCreateParams): zod.ZodEnum<zod.Writeable<T>>;
|
|
366
331
|
<U extends string, T extends [U, ...U[]]>(values: T, params?: zod.RawCreateParams): zod.ZodEnum<T>;
|
|
@@ -378,15 +343,10 @@ declare const z: {
|
|
|
378
343
|
never: (params?: zod.RawCreateParams) => zod.ZodNever;
|
|
379
344
|
null: (params?: zod.RawCreateParams) => zod.ZodNull;
|
|
380
345
|
nullable: <T extends ZodTypeAny>(type: T, params?: zod.RawCreateParams) => zod.ZodNullable<T>;
|
|
381
|
-
number: (params?:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
description?: string | undefined;
|
|
386
|
-
} & {
|
|
387
|
-
coerce?: boolean | undefined;
|
|
388
|
-
}) | undefined) => ZodNumber;
|
|
389
|
-
object: <T extends zod.ZodRawShape>(shape: T, params?: zod.RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [k_1 in keyof zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<T>, { [k in keyof zod.baseObjectOutputType<T>]: undefined extends zod.baseObjectOutputType<T>[k] ? never : k; }[keyof T]>]: zod.objectUtil.addQuestionMarks<zod.baseObjectOutputType<T>, { [k in keyof zod.baseObjectOutputType<T>]: undefined extends zod.baseObjectOutputType<T>[k] ? never : k; }[keyof T]>[k_1]; }, { [k_2 in keyof zod.baseObjectInputType<T>]: zod.baseObjectInputType<T>[k_2]; }>;
|
|
346
|
+
number: (params?: zod.RawCreateParams & {
|
|
347
|
+
coerce?: boolean;
|
|
348
|
+
}) => ZodNumber;
|
|
349
|
+
object: <T extends zod.ZodRawShape>(shape: T, params?: zod.RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, zod.objectOutputType<T, ZodTypeAny, "strip">, zod.objectInputType<T, ZodTypeAny, "strip">>;
|
|
390
350
|
oboolean: () => zod.ZodOptional<zod.ZodBoolean>;
|
|
391
351
|
onumber: () => zod.ZodOptional<ZodNumber>;
|
|
392
352
|
optional: <T extends ZodTypeAny>(type: T, params?: zod.RawCreateParams) => zod.ZodOptional<T>;
|
|
@@ -396,9 +356,9 @@ declare const z: {
|
|
|
396
356
|
promise: <T extends ZodTypeAny>(schema: T, params?: zod.RawCreateParams) => zod.ZodPromise<T>;
|
|
397
357
|
record: typeof zod.ZodRecord.create;
|
|
398
358
|
set: <Value extends ZodTypeAny = zod.ZodTypeAny>(valueType: Value, params?: zod.RawCreateParams) => zod.ZodSet<Value>;
|
|
399
|
-
strictObject: <T extends zod.ZodRawShape>(shape: T, params?: zod.RawCreateParams) => ZodObject<T, "strict"
|
|
359
|
+
strictObject: <T extends zod.ZodRawShape>(shape: T, params?: zod.RawCreateParams) => ZodObject<T, "strict">;
|
|
400
360
|
symbol: (params?: zod.RawCreateParams) => zod.ZodSymbol;
|
|
401
|
-
transformer: <I extends ZodTypeAny>(schema: I, effect: zod.Effect<I["_output"]>, params?: zod.RawCreateParams) => ZodEffects<I, I["_output"]
|
|
361
|
+
transformer: <I extends ZodTypeAny>(schema: I, effect: zod.Effect<I["_output"]>, params?: zod.RawCreateParams) => ZodEffects<I, I["_output"]>;
|
|
402
362
|
tuple: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T, params?: zod.RawCreateParams) => zod.ZodTuple<T, null>;
|
|
403
363
|
undefined: (params?: zod.RawCreateParams) => zod.ZodUndefined;
|
|
404
364
|
union: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: zod.RawCreateParams) => zod.ZodUnion<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucaapp/service-utils",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"axios": "^1.12.2",
|
|
35
35
|
"axios-rate-limit": "^1.4.0",
|
|
36
36
|
"axios-retry": "^4.5.0",
|
|
37
|
-
"body-parser": "
|
|
37
|
+
"body-parser": "1.20.4",
|
|
38
38
|
"busboy": "^1.6.0",
|
|
39
39
|
"cls-rtracer": "^2.6.3",
|
|
40
|
-
"express": "4.
|
|
40
|
+
"express": "4.22.1",
|
|
41
41
|
"express-async-errors": "3.1.1",
|
|
42
42
|
"https-proxy-agent": "^7.0.6",
|
|
43
43
|
"jose": "4.15.9",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"url-value-parser": "^2.2.0",
|
|
57
57
|
"uuid": "^9.0.0",
|
|
58
58
|
"validator": "13.15.23",
|
|
59
|
-
"zod": "3.
|
|
59
|
+
"zod": "3.24.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/busboy": "^1.5.4",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@types/uuid": "^8.3.4",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
69
69
|
"@typescript-eslint/parser": "^7.15.0",
|
|
70
|
-
"@vitest/coverage-v8": "3.
|
|
70
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
71
71
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
72
72
|
"eslint": "8.57.0",
|
|
73
73
|
"eslint-plugin-prettier": "4.2.1",
|
|
@@ -75,26 +75,11 @@
|
|
|
75
75
|
"improved-yarn-audit": "^3.0.4",
|
|
76
76
|
"prettier": "2.7.1",
|
|
77
77
|
"semantic-release": "^19.0.5",
|
|
78
|
-
"semantic-release-monorepo": "
|
|
78
|
+
"semantic-release-monorepo": "8.0.2",
|
|
79
79
|
"supertest": "^6.3.3",
|
|
80
80
|
"typescript": "5.5.3",
|
|
81
81
|
"vite-tsconfig-paths": "4.3.2",
|
|
82
|
-
"vitest": "3.
|
|
82
|
+
"vitest": "3.2.4"
|
|
83
83
|
},
|
|
84
|
-
"resolutions": {
|
|
85
|
-
"yaml": "2.2.2",
|
|
86
|
-
"semver": "7.7.2",
|
|
87
|
-
"follow-redirects": "1.15.11",
|
|
88
|
-
"braces": "3.0.3",
|
|
89
|
-
"send": "0.19.1",
|
|
90
|
-
"rollup": "4.22.4",
|
|
91
|
-
"cookie": ">= 1.0.2",
|
|
92
|
-
"string-width": "4.2.3",
|
|
93
|
-
"@types/express": "4.17.23",
|
|
94
|
-
"esbuild": "^0.25.10",
|
|
95
|
-
"axios": "^1.12.2",
|
|
96
|
-
"vite": "6.2.5",
|
|
97
|
-
"tar-fs": "2.1.4",
|
|
98
|
-
"js-yaml": "4.1.1"
|
|
99
|
-
}
|
|
84
|
+
"resolutions": {}
|
|
100
85
|
}
|