@forklaunch/implementation-worker-bullmq 0.3.4 → 0.3.7
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.
|
@@ -20,6 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
25
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -79,9 +80,9 @@ var require_cjs = __commonJS({
|
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
83
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
84
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
85
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports2) {
|
|
85
86
|
"use strict";
|
|
86
87
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
87
88
|
exports2.generateSchema = exports2.extendApi = void 0;
|
|
@@ -409,9 +410,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
410
|
}
|
|
410
411
|
});
|
|
411
412
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
413
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
414
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
415
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports2) {
|
|
415
416
|
"use strict";
|
|
416
417
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
417
418
|
exports2.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +429,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
429
|
}
|
|
429
430
|
});
|
|
430
431
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
432
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
433
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
434
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/index.js"(exports2) {
|
|
434
435
|
"use strict";
|
|
435
436
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
437
|
if (k2 === void 0) k2 = k;
|
|
@@ -464,23 +465,55 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
464
465
|
// domain/schemas/bullMqWorker.schema.ts
|
|
465
466
|
var import_internal = require("@forklaunch/internal");
|
|
466
467
|
|
|
467
|
-
// ../../../node_modules/.pnpm/@forklaunch+
|
|
468
|
-
var
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
468
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.5_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
469
|
+
var typebox_exports = {};
|
|
470
|
+
__export(typebox_exports, {
|
|
471
|
+
SchemaValidator: () => SchemaValidator,
|
|
472
|
+
TypeboxSchemaValidator: () => TypeboxSchemaValidator,
|
|
473
|
+
any: () => any,
|
|
474
|
+
array: () => array,
|
|
475
|
+
bigint: () => bigint,
|
|
476
|
+
binary: () => binary,
|
|
477
|
+
boolean: () => boolean,
|
|
478
|
+
date: () => date,
|
|
479
|
+
email: () => email,
|
|
480
|
+
enum_: () => enum_,
|
|
481
|
+
file: () => file,
|
|
482
|
+
function_: () => function_,
|
|
483
|
+
isSchema: () => isSchema,
|
|
484
|
+
literal: () => literal,
|
|
485
|
+
never: () => never,
|
|
486
|
+
null_: () => null_,
|
|
487
|
+
nullish: () => nullish,
|
|
488
|
+
number: () => number,
|
|
489
|
+
openapi: () => openapi,
|
|
490
|
+
optional: () => optional,
|
|
491
|
+
parse: () => parse,
|
|
492
|
+
promise: () => promise,
|
|
493
|
+
record: () => record,
|
|
494
|
+
schemify: () => schemify,
|
|
495
|
+
string: () => string,
|
|
496
|
+
symbol: () => symbol,
|
|
497
|
+
type: () => type,
|
|
498
|
+
undefined_: () => undefined_,
|
|
499
|
+
union: () => union,
|
|
500
|
+
unknown: () => unknown,
|
|
501
|
+
uri: () => uri,
|
|
502
|
+
uuid: () => uuid,
|
|
503
|
+
validate: () => validate,
|
|
504
|
+
void_: () => void_
|
|
505
|
+
});
|
|
506
|
+
__reExport(typebox_exports, require("@sinclair/typebox"));
|
|
507
|
+
|
|
508
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.3/node_modules/@forklaunch/common/lib/index.mjs
|
|
509
|
+
var InMemoryBlob = class extends Blob {
|
|
510
|
+
constructor(content) {
|
|
511
|
+
super([Buffer.from(content)]);
|
|
479
512
|
this.content = content;
|
|
480
513
|
}
|
|
481
514
|
};
|
|
482
515
|
|
|
483
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
516
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.5_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
484
517
|
var import_typebox = require("@sinclair/typebox");
|
|
485
518
|
var import_compiler = require("@sinclair/typebox/compiler");
|
|
486
519
|
var import_errors = require("@sinclair/typebox/errors");
|
|
@@ -680,12 +713,10 @@ var TypeboxSchemaValidator = class {
|
|
|
680
713
|
import_typebox.Type.String({
|
|
681
714
|
errorType: "binary",
|
|
682
715
|
format: "binary",
|
|
683
|
-
example: "a utf-8 encodable
|
|
716
|
+
example: "a utf-8 encodable blob or file",
|
|
684
717
|
title: "File"
|
|
685
718
|
})
|
|
686
|
-
).Decode(
|
|
687
|
-
(value) => (name, type22) => new InMemoryFile(value, name, { type: type22 })
|
|
688
|
-
).Encode((value) => value("name", "type").content);
|
|
719
|
+
).Decode((value) => new InMemoryBlob(value)).Encode((value) => value.content);
|
|
689
720
|
type = () => this.any;
|
|
690
721
|
/**
|
|
691
722
|
* Extracts the error type of a schema for error messages.
|
|
@@ -990,47 +1021,47 @@ var BullMqWorkerOptionsSchema = {
|
|
|
990
1021
|
interval: number
|
|
991
1022
|
};
|
|
992
1023
|
|
|
993
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
1024
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.5_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
994
1025
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
995
|
-
var
|
|
996
|
-
(0, import_zod_openapi.extendZodWithOpenApi)(
|
|
1026
|
+
var import_v3 = require("zod/v3");
|
|
1027
|
+
(0, import_zod_openapi.extendZodWithOpenApi)(import_v3.z);
|
|
997
1028
|
var ZodSchemaValidator = class {
|
|
998
1029
|
_Type = "Zod";
|
|
999
1030
|
_SchemaCatchall;
|
|
1000
1031
|
_ValidSchemaObject;
|
|
1001
|
-
string =
|
|
1032
|
+
string = import_v3.z.string().openapi({
|
|
1002
1033
|
title: "String",
|
|
1003
1034
|
example: "a string"
|
|
1004
1035
|
});
|
|
1005
|
-
uuid =
|
|
1036
|
+
uuid = import_v3.z.string().uuid().openapi({
|
|
1006
1037
|
title: "UUID",
|
|
1007
1038
|
format: "uuid",
|
|
1008
1039
|
pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
|
|
1009
1040
|
example: "a8b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6"
|
|
1010
1041
|
});
|
|
1011
|
-
email =
|
|
1042
|
+
email = import_v3.z.string().email().openapi({
|
|
1012
1043
|
title: "Email",
|
|
1013
1044
|
format: "email",
|
|
1014
1045
|
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
|
|
1015
1046
|
example: "a@b.com"
|
|
1016
1047
|
});
|
|
1017
|
-
uri =
|
|
1048
|
+
uri = import_v3.z.string().url().openapi({
|
|
1018
1049
|
title: "URI",
|
|
1019
1050
|
format: "uri",
|
|
1020
1051
|
pattern: "^[a-zA-Z][a-zA-Z\\d+-.]*:[^\\s]*$",
|
|
1021
1052
|
example: "https://forklaunch.com"
|
|
1022
1053
|
});
|
|
1023
|
-
number =
|
|
1054
|
+
number = import_v3.z.preprocess((value) => {
|
|
1024
1055
|
try {
|
|
1025
1056
|
return Number(value);
|
|
1026
1057
|
} catch {
|
|
1027
1058
|
return value;
|
|
1028
1059
|
}
|
|
1029
|
-
},
|
|
1060
|
+
}, import_v3.z.number()).openapi({
|
|
1030
1061
|
title: "Number",
|
|
1031
1062
|
example: 123
|
|
1032
1063
|
});
|
|
1033
|
-
bigint =
|
|
1064
|
+
bigint = import_v3.z.preprocess((value) => {
|
|
1034
1065
|
try {
|
|
1035
1066
|
if (value instanceof Date) {
|
|
1036
1067
|
return BigInt(value.getTime());
|
|
@@ -1047,23 +1078,23 @@ var ZodSchemaValidator = class {
|
|
|
1047
1078
|
} catch {
|
|
1048
1079
|
return value;
|
|
1049
1080
|
}
|
|
1050
|
-
},
|
|
1081
|
+
}, import_v3.z.bigint()).openapi({
|
|
1051
1082
|
title: "BigInt",
|
|
1052
1083
|
type: "integer",
|
|
1053
1084
|
format: "int64",
|
|
1054
1085
|
example: 123n
|
|
1055
1086
|
});
|
|
1056
|
-
boolean =
|
|
1087
|
+
boolean = import_v3.z.preprocess((val) => {
|
|
1057
1088
|
if (typeof val === "string") {
|
|
1058
1089
|
if (val.toLowerCase() === "true") return true;
|
|
1059
1090
|
if (val.toLowerCase() === "false") return false;
|
|
1060
1091
|
}
|
|
1061
1092
|
return val;
|
|
1062
|
-
},
|
|
1093
|
+
}, import_v3.z.boolean()).openapi({
|
|
1063
1094
|
title: "Boolean",
|
|
1064
1095
|
example: true
|
|
1065
1096
|
});
|
|
1066
|
-
date =
|
|
1097
|
+
date = import_v3.z.preprocess((value) => {
|
|
1067
1098
|
try {
|
|
1068
1099
|
switch (typeof value) {
|
|
1069
1100
|
case "string":
|
|
@@ -1076,67 +1107,64 @@ var ZodSchemaValidator = class {
|
|
|
1076
1107
|
} catch {
|
|
1077
1108
|
return value;
|
|
1078
1109
|
}
|
|
1079
|
-
},
|
|
1110
|
+
}, import_v3.z.date()).openapi({
|
|
1080
1111
|
title: "Date",
|
|
1081
1112
|
type: "string",
|
|
1082
1113
|
format: "date-time",
|
|
1083
1114
|
example: "2025-05-16T21:13:04.123Z"
|
|
1084
1115
|
});
|
|
1085
|
-
symbol =
|
|
1116
|
+
symbol = import_v3.z.symbol().openapi({
|
|
1086
1117
|
title: "Symbol",
|
|
1087
1118
|
example: Symbol("symbol")
|
|
1088
1119
|
});
|
|
1089
|
-
nullish =
|
|
1120
|
+
nullish = import_v3.z.union([import_v3.z.void(), import_v3.z.null(), import_v3.z.undefined()]).openapi({
|
|
1090
1121
|
title: "Nullish",
|
|
1091
1122
|
type: "null",
|
|
1092
1123
|
example: null
|
|
1093
1124
|
});
|
|
1094
|
-
void =
|
|
1125
|
+
void = import_v3.z.void().openapi({
|
|
1095
1126
|
title: "Void",
|
|
1096
1127
|
type: "null",
|
|
1097
1128
|
example: void 0
|
|
1098
1129
|
});
|
|
1099
|
-
null =
|
|
1130
|
+
null = import_v3.z.null().openapi({
|
|
1100
1131
|
title: "Null",
|
|
1101
1132
|
type: "null",
|
|
1102
1133
|
example: null
|
|
1103
1134
|
});
|
|
1104
|
-
undefined =
|
|
1135
|
+
undefined = import_v3.z.undefined().openapi({
|
|
1105
1136
|
title: "Undefined",
|
|
1106
1137
|
type: "null",
|
|
1107
1138
|
example: void 0
|
|
1108
1139
|
});
|
|
1109
|
-
any =
|
|
1140
|
+
any = import_v3.z.any().openapi({
|
|
1110
1141
|
title: "Any",
|
|
1111
1142
|
type: "object",
|
|
1112
1143
|
example: "any"
|
|
1113
1144
|
});
|
|
1114
|
-
unknown =
|
|
1145
|
+
unknown = import_v3.z.unknown().openapi({
|
|
1115
1146
|
title: "Unknown",
|
|
1116
1147
|
type: "object",
|
|
1117
1148
|
example: "unknown"
|
|
1118
1149
|
});
|
|
1119
|
-
never =
|
|
1150
|
+
never = import_v3.z.never().openapi({
|
|
1120
1151
|
title: "Never",
|
|
1121
1152
|
type: "null",
|
|
1122
1153
|
example: "never"
|
|
1123
1154
|
});
|
|
1124
|
-
binary =
|
|
1155
|
+
binary = import_v3.z.string().transform((v) => new TextEncoder().encode(v)).openapi({
|
|
1125
1156
|
title: "Binary",
|
|
1126
1157
|
type: "string",
|
|
1127
1158
|
format: "binary",
|
|
1128
1159
|
example: "a utf-8 encodable string"
|
|
1129
1160
|
});
|
|
1130
|
-
file =
|
|
1131
|
-
return
|
|
1132
|
-
type: type22,
|
|
1133
|
-
lastModified: Date.now()
|
|
1134
|
-
});
|
|
1161
|
+
file = import_v3.z.string().transform((val) => {
|
|
1162
|
+
return new Blob([val]);
|
|
1135
1163
|
}).openapi({
|
|
1136
1164
|
title: "File",
|
|
1137
1165
|
type: "string",
|
|
1138
1166
|
format: "binary",
|
|
1139
|
-
example: "a utf-8 encodable
|
|
1167
|
+
example: "a utf-8 encodable blob or file"
|
|
1140
1168
|
});
|
|
1141
1169
|
type = () => this.any;
|
|
1142
1170
|
/**
|
|
@@ -1155,20 +1183,20 @@ var ZodSchemaValidator = class {
|
|
|
1155
1183
|
*/
|
|
1156
1184
|
schemify(schema) {
|
|
1157
1185
|
if (typeof schema === "string" || typeof schema === "number" || typeof schema === "boolean") {
|
|
1158
|
-
return
|
|
1186
|
+
return import_v3.z.literal(schema);
|
|
1159
1187
|
}
|
|
1160
|
-
if (schema instanceof
|
|
1188
|
+
if (schema instanceof import_v3.ZodType) {
|
|
1161
1189
|
return schema;
|
|
1162
1190
|
}
|
|
1163
1191
|
const newSchema = {};
|
|
1164
1192
|
Object.getOwnPropertyNames(schema).forEach((key) => {
|
|
1165
|
-
if (schema[key] instanceof
|
|
1193
|
+
if (schema[key] instanceof import_v3.ZodType) {
|
|
1166
1194
|
newSchema[key] = schema[key];
|
|
1167
1195
|
} else {
|
|
1168
1196
|
newSchema[key] = this.schemify(schema[key]);
|
|
1169
1197
|
}
|
|
1170
1198
|
});
|
|
1171
|
-
return
|
|
1199
|
+
return import_v3.z.object(newSchema);
|
|
1172
1200
|
}
|
|
1173
1201
|
/**
|
|
1174
1202
|
* Make a schema optional.
|
|
@@ -1195,7 +1223,7 @@ var ZodSchemaValidator = class {
|
|
|
1195
1223
|
*/
|
|
1196
1224
|
union(schemas) {
|
|
1197
1225
|
const resolvedSchemas = schemas.map((schema) => this.schemify(schema));
|
|
1198
|
-
return
|
|
1226
|
+
return import_v3.z.union(
|
|
1199
1227
|
resolvedSchemas
|
|
1200
1228
|
);
|
|
1201
1229
|
}
|
|
@@ -1205,7 +1233,7 @@ var ZodSchemaValidator = class {
|
|
|
1205
1233
|
* @returns {ZodLiteral<ZodResolve<T>>} The literal schema.
|
|
1206
1234
|
*/
|
|
1207
1235
|
literal(value) {
|
|
1208
|
-
return
|
|
1236
|
+
return import_v3.z.literal(value);
|
|
1209
1237
|
}
|
|
1210
1238
|
/**
|
|
1211
1239
|
* Create an enum schema.
|
|
@@ -1226,7 +1254,7 @@ var ZodSchemaValidator = class {
|
|
|
1226
1254
|
function_(args, returnType) {
|
|
1227
1255
|
const schemaArgs = args.map((schema) => this.schemify(schema));
|
|
1228
1256
|
const schemaReturnType = this.schemify(returnType);
|
|
1229
|
-
return
|
|
1257
|
+
return import_v3.z.function(import_v3.z.tuple(schemaArgs), schemaReturnType);
|
|
1230
1258
|
}
|
|
1231
1259
|
/**
|
|
1232
1260
|
* Create a record schema.
|
|
@@ -1237,7 +1265,7 @@ var ZodSchemaValidator = class {
|
|
|
1237
1265
|
record(key, value) {
|
|
1238
1266
|
const keySchema = this.schemify(key);
|
|
1239
1267
|
const valueSchema = this.schemify(value);
|
|
1240
|
-
return
|
|
1268
|
+
return import_v3.z.record(keySchema, valueSchema);
|
|
1241
1269
|
}
|
|
1242
1270
|
/**
|
|
1243
1271
|
* Create a promise schema.
|
|
@@ -1245,7 +1273,7 @@ var ZodSchemaValidator = class {
|
|
|
1245
1273
|
* @returns {ZodPromise<ZodResolve<T>>} The promise schema.
|
|
1246
1274
|
*/
|
|
1247
1275
|
promise(schema) {
|
|
1248
|
-
return
|
|
1276
|
+
return import_v3.z.promise(this.schemify(schema));
|
|
1249
1277
|
}
|
|
1250
1278
|
/**
|
|
1251
1279
|
* Checks if a value is a Zod schema.
|
|
@@ -1253,7 +1281,7 @@ var ZodSchemaValidator = class {
|
|
|
1253
1281
|
* @returns {boolean} True if the value is a Zod schema.
|
|
1254
1282
|
*/
|
|
1255
1283
|
isSchema(value) {
|
|
1256
|
-
return value instanceof
|
|
1284
|
+
return value instanceof import_v3.ZodType;
|
|
1257
1285
|
}
|
|
1258
1286
|
/**
|
|
1259
1287
|
* Checks if a value is an instance of a Zod schema.
|
|
@@ -13,6 +13,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
22
|
for (let key of __getOwnPropNames(from))
|
|
@@ -21,6 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
25
|
}
|
|
22
26
|
return to;
|
|
23
27
|
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
29
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
30
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
31
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -79,9 +84,9 @@ var require_cjs = __commonJS({
|
|
|
79
84
|
}
|
|
80
85
|
});
|
|
81
86
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
87
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
88
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
89
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports) {
|
|
85
90
|
"use strict";
|
|
86
91
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
92
|
exports.generateSchema = exports.extendApi = void 0;
|
|
@@ -409,9 +414,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
414
|
}
|
|
410
415
|
});
|
|
411
416
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
417
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
418
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
419
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports) {
|
|
415
420
|
"use strict";
|
|
416
421
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
417
422
|
exports.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +433,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
433
|
}
|
|
429
434
|
});
|
|
430
435
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
436
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
437
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
438
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.76/node_modules/@anatine/zod-openapi/src/index.js"(exports) {
|
|
434
439
|
"use strict";
|
|
435
440
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
441
|
if (k2 === void 0) k2 = k;
|
|
@@ -457,23 +462,56 @@ var require_src = __commonJS({
|
|
|
457
462
|
// domain/schemas/bullMqWorker.schema.ts
|
|
458
463
|
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
459
464
|
|
|
460
|
-
// ../../../node_modules/.pnpm/@forklaunch+
|
|
461
|
-
var
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
465
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.5_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
466
|
+
var typebox_exports = {};
|
|
467
|
+
__export(typebox_exports, {
|
|
468
|
+
SchemaValidator: () => SchemaValidator,
|
|
469
|
+
TypeboxSchemaValidator: () => TypeboxSchemaValidator,
|
|
470
|
+
any: () => any,
|
|
471
|
+
array: () => array,
|
|
472
|
+
bigint: () => bigint,
|
|
473
|
+
binary: () => binary,
|
|
474
|
+
boolean: () => boolean,
|
|
475
|
+
date: () => date,
|
|
476
|
+
email: () => email,
|
|
477
|
+
enum_: () => enum_,
|
|
478
|
+
file: () => file,
|
|
479
|
+
function_: () => function_,
|
|
480
|
+
isSchema: () => isSchema,
|
|
481
|
+
literal: () => literal,
|
|
482
|
+
never: () => never,
|
|
483
|
+
null_: () => null_,
|
|
484
|
+
nullish: () => nullish,
|
|
485
|
+
number: () => number,
|
|
486
|
+
openapi: () => openapi,
|
|
487
|
+
optional: () => optional,
|
|
488
|
+
parse: () => parse,
|
|
489
|
+
promise: () => promise,
|
|
490
|
+
record: () => record,
|
|
491
|
+
schemify: () => schemify,
|
|
492
|
+
string: () => string,
|
|
493
|
+
symbol: () => symbol,
|
|
494
|
+
type: () => type,
|
|
495
|
+
undefined_: () => undefined_,
|
|
496
|
+
union: () => union,
|
|
497
|
+
unknown: () => unknown,
|
|
498
|
+
uri: () => uri,
|
|
499
|
+
uuid: () => uuid,
|
|
500
|
+
validate: () => validate,
|
|
501
|
+
void_: () => void_
|
|
502
|
+
});
|
|
503
|
+
__reExport(typebox_exports, typebox_star);
|
|
504
|
+
import * as typebox_star from "@sinclair/typebox";
|
|
505
|
+
|
|
506
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.3/node_modules/@forklaunch/common/lib/index.mjs
|
|
507
|
+
var InMemoryBlob = class extends Blob {
|
|
508
|
+
constructor(content) {
|
|
509
|
+
super([Buffer.from(content)]);
|
|
472
510
|
this.content = content;
|
|
473
511
|
}
|
|
474
512
|
};
|
|
475
513
|
|
|
476
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
514
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.5_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
477
515
|
import {
|
|
478
516
|
FormatRegistry,
|
|
479
517
|
Kind,
|
|
@@ -682,12 +720,10 @@ var TypeboxSchemaValidator = class {
|
|
|
682
720
|
Type.String({
|
|
683
721
|
errorType: "binary",
|
|
684
722
|
format: "binary",
|
|
685
|
-
example: "a utf-8 encodable
|
|
723
|
+
example: "a utf-8 encodable blob or file",
|
|
686
724
|
title: "File"
|
|
687
725
|
})
|
|
688
|
-
).Decode(
|
|
689
|
-
(value) => (name, type22) => new InMemoryFile(value, name, { type: type22 })
|
|
690
|
-
).Encode((value) => value("name", "type").content);
|
|
726
|
+
).Decode((value) => new InMemoryBlob(value)).Encode((value) => value.content);
|
|
691
727
|
type = () => this.any;
|
|
692
728
|
/**
|
|
693
729
|
* Extracts the error type of a schema for error messages.
|
|
@@ -992,12 +1028,12 @@ var BullMqWorkerOptionsSchema = {
|
|
|
992
1028
|
interval: number
|
|
993
1029
|
};
|
|
994
1030
|
|
|
995
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
1031
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.5_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
996
1032
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
997
1033
|
import {
|
|
998
1034
|
z,
|
|
999
1035
|
ZodType
|
|
1000
|
-
} from "zod";
|
|
1036
|
+
} from "zod/v3";
|
|
1001
1037
|
(0, import_zod_openapi.extendZodWithOpenApi)(z);
|
|
1002
1038
|
var ZodSchemaValidator = class {
|
|
1003
1039
|
_Type = "Zod";
|
|
@@ -1133,15 +1169,12 @@ var ZodSchemaValidator = class {
|
|
|
1133
1169
|
example: "a utf-8 encodable string"
|
|
1134
1170
|
});
|
|
1135
1171
|
file = z.string().transform((val) => {
|
|
1136
|
-
return
|
|
1137
|
-
type: type22,
|
|
1138
|
-
lastModified: Date.now()
|
|
1139
|
-
});
|
|
1172
|
+
return new Blob([val]);
|
|
1140
1173
|
}).openapi({
|
|
1141
1174
|
title: "File",
|
|
1142
1175
|
type: "string",
|
|
1143
1176
|
format: "binary",
|
|
1144
|
-
example: "a utf-8 encodable
|
|
1177
|
+
example: "a utf-8 encodable blob or file"
|
|
1145
1178
|
});
|
|
1146
1179
|
type = () => this.any;
|
|
1147
1180
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-worker-bullmq",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "BullMQ implementation for forklaunch workers",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"lib/**"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@forklaunch/core": "^0.
|
|
46
|
-
"@forklaunch/internal": "^0.
|
|
47
|
-
"@sinclair/typebox": "^0.34.
|
|
48
|
-
"bullmq": "^5.
|
|
49
|
-
"zod": "^3.25.
|
|
50
|
-
"@forklaunch/interfaces-worker": "0.2.
|
|
45
|
+
"@forklaunch/core": "^0.11.0",
|
|
46
|
+
"@forklaunch/internal": "^0.1.5",
|
|
47
|
+
"@sinclair/typebox": "^0.34.37",
|
|
48
|
+
"bullmq": "^5.56.3",
|
|
49
|
+
"zod": "^3.25.76",
|
|
50
|
+
"@forklaunch/interfaces-worker": "0.2.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
53
|
+
"@typescript/native-preview": "7.0.0-dev.20250710.1",
|
|
54
54
|
"depcheck": "^1.4.7",
|
|
55
|
-
"eslint": "^9.
|
|
56
|
-
"prettier": "^3.
|
|
57
|
-
"typedoc": "^0.28.
|
|
58
|
-
"typescript-eslint": "^8.
|
|
55
|
+
"eslint": "^9.30.1",
|
|
56
|
+
"prettier": "^3.6.2",
|
|
57
|
+
"typedoc": "^0.28.7",
|
|
58
|
+
"typescript-eslint": "^8.36.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsc --noEmit && tsup producers/index.ts consumers/index.ts domain/schemas/index.ts domain/types/index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
|