@forklaunch/implementation-worker-bullmq 0.3.1 → 0.3.2
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/lib/consumers/index.js +2 -2
- package/lib/consumers/index.mjs +2 -2
- package/lib/eject/consumers/bullMqWorker.consumer.ts +2 -2
- package/lib/eject/domain/schemas/bullMqWorker.schema.ts +3 -149
- package/lib/eject/producers/bullMqWorker.producer.ts +1 -1
- package/lib/eject/types/bullMqWorker.types.ts +2 -1
- package/lib/producers/index.js +1 -1
- package/lib/producers/index.mjs +1 -1
- package/lib/schemas/index.d.mts +4 -373
- package/lib/schemas/index.d.ts +4 -373
- package/lib/schemas/index.js +13 -253
- package/lib/schemas/index.mjs +12 -252
- package/lib/types/index.d.mts +2 -1
- package/lib/types/index.d.ts +2 -1
- package/package.json +10 -9
package/lib/schemas/index.js
CHANGED
|
@@ -79,9 +79,9 @@ var require_cjs = __commonJS({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
82
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
83
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
84
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports2) {
|
|
85
85
|
"use strict";
|
|
86
86
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
87
87
|
exports2.generateSchema = exports2.extendApi = void 0;
|
|
@@ -409,9 +409,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
412
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
413
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
414
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports2) {
|
|
415
415
|
"use strict";
|
|
416
416
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
417
417
|
exports2.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +428,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
431
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
432
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
433
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js"(exports2) {
|
|
434
434
|
"use strict";
|
|
435
435
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
436
|
if (k2 === void 0) k2 = k;
|
|
@@ -462,9 +462,9 @@ __export(schemas_exports, {
|
|
|
462
462
|
module.exports = __toCommonJS(schemas_exports);
|
|
463
463
|
|
|
464
464
|
// schemas/bullMqWorker.schema.ts
|
|
465
|
-
var
|
|
465
|
+
var import_internal = require("@forklaunch/internal");
|
|
466
466
|
|
|
467
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.
|
|
467
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
|
|
468
468
|
var InMemoryFile = class extends File {
|
|
469
469
|
constructor(content, name, {
|
|
470
470
|
type: type3,
|
|
@@ -480,7 +480,7 @@ var InMemoryFile = class extends File {
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
483
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
484
484
|
var import_typebox = require("@sinclair/typebox");
|
|
485
485
|
var import_compiler = require("@sinclair/typebox/compiler");
|
|
486
486
|
var import_errors = require("@sinclair/typebox/errors");
|
|
@@ -983,134 +983,14 @@ var parse = StaticSchemaValidator.parse.bind(StaticSchemaValidator);
|
|
|
983
983
|
var openapi = StaticSchemaValidator.openapi.bind(StaticSchemaValidator);
|
|
984
984
|
|
|
985
985
|
// schemas/typebox/bullMqWorker.schema.ts
|
|
986
|
-
var import_bullmq = require("bullmq");
|
|
987
|
-
var BullMqWorkerKeepJobsSchema = {
|
|
988
|
-
age: optional(number),
|
|
989
|
-
count: optional(number)
|
|
990
|
-
};
|
|
991
|
-
var BullMqWorkerBackoffOptionsSchema = {
|
|
992
|
-
type: union([literal("fixed"), literal("exponential")]),
|
|
993
|
-
delay: optional(number)
|
|
994
|
-
};
|
|
995
|
-
var BullMqWorkerDefaultJobOptionsSchema = {
|
|
996
|
-
timestamp: optional(number),
|
|
997
|
-
priority: optional(number),
|
|
998
|
-
delay: optional(number),
|
|
999
|
-
attempts: optional(number),
|
|
1000
|
-
backoff: optional(union([number, BullMqWorkerBackoffOptionsSchema])),
|
|
1001
|
-
lifo: optional(boolean),
|
|
1002
|
-
removeOnComplete: optional(
|
|
1003
|
-
union([boolean, number, BullMqWorkerKeepJobsSchema])
|
|
1004
|
-
),
|
|
1005
|
-
removeOnFail: optional(union([boolean, number, BullMqWorkerKeepJobsSchema])),
|
|
1006
|
-
keepLogs: optional(number),
|
|
1007
|
-
stackTraceLimit: optional(number),
|
|
1008
|
-
sizeLimit: optional(number)
|
|
1009
|
-
};
|
|
1010
|
-
var BullMqDateType = union([date, number, string]);
|
|
1011
|
-
var BullMqWorkerAdvancedRepeatOptionsSchema = {
|
|
1012
|
-
repeatStrategy: optional(
|
|
1013
|
-
function_(
|
|
1014
|
-
[
|
|
1015
|
-
number,
|
|
1016
|
-
{
|
|
1017
|
-
pattern: optional(string),
|
|
1018
|
-
key: optional(string),
|
|
1019
|
-
limit: optional(number),
|
|
1020
|
-
every: optional(number),
|
|
1021
|
-
immediately: optional(boolean),
|
|
1022
|
-
count: optional(number),
|
|
1023
|
-
offset: optional(number),
|
|
1024
|
-
prevMillis: optional(number),
|
|
1025
|
-
jobId: optional(string),
|
|
1026
|
-
currentDate: optional(BullMqDateType),
|
|
1027
|
-
startDate: optional(BullMqDateType),
|
|
1028
|
-
endDate: optional(BullMqDateType),
|
|
1029
|
-
utc: optional(boolean),
|
|
1030
|
-
tz: optional(string),
|
|
1031
|
-
nthDayOfWeek: optional(number)
|
|
1032
|
-
},
|
|
1033
|
-
optional(string)
|
|
1034
|
-
],
|
|
1035
|
-
union([number, undefined_, promise(union([number, undefined_]))])
|
|
1036
|
-
)
|
|
1037
|
-
),
|
|
1038
|
-
repeatKeyHashAlgorithm: optional(string)
|
|
1039
|
-
};
|
|
1040
|
-
var BullMqWorkerTelemetryAttributeValueSchema = union([
|
|
1041
|
-
string,
|
|
1042
|
-
number,
|
|
1043
|
-
boolean,
|
|
1044
|
-
array(union([string, null_, undefined_])),
|
|
1045
|
-
array(union([number, null_, undefined_])),
|
|
1046
|
-
array(union([boolean, null_, undefined_]))
|
|
1047
|
-
]);
|
|
1048
|
-
var BullMqWorkerTelemetryAttributesSchema = record(
|
|
1049
|
-
string,
|
|
1050
|
-
union([BullMqWorkerTelemetryAttributeValueSchema, undefined_])
|
|
1051
|
-
);
|
|
1052
|
-
var BullMqWorkerTelemetrySchema = optional({
|
|
1053
|
-
tracer: {
|
|
1054
|
-
startSpan: function_(
|
|
1055
|
-
[
|
|
1056
|
-
string,
|
|
1057
|
-
optional({
|
|
1058
|
-
kind: optional(enum_(import_bullmq.SpanKind))
|
|
1059
|
-
}),
|
|
1060
|
-
optional(unknown)
|
|
1061
|
-
],
|
|
1062
|
-
{
|
|
1063
|
-
setSpanOnContext: function_([unknown], unknown),
|
|
1064
|
-
setAttribute: function_(
|
|
1065
|
-
[string, BullMqWorkerTelemetryAttributeValueSchema],
|
|
1066
|
-
void_
|
|
1067
|
-
),
|
|
1068
|
-
setAttributes: function_(
|
|
1069
|
-
[BullMqWorkerTelemetryAttributesSchema],
|
|
1070
|
-
void_
|
|
1071
|
-
),
|
|
1072
|
-
addEvent: function_(
|
|
1073
|
-
[string, optional(BullMqWorkerTelemetryAttributesSchema)],
|
|
1074
|
-
void_
|
|
1075
|
-
),
|
|
1076
|
-
recordException: function_([unknown, optional(number)], void_),
|
|
1077
|
-
end: function_([], void_)
|
|
1078
|
-
}
|
|
1079
|
-
)
|
|
1080
|
-
},
|
|
1081
|
-
contextManager: {
|
|
1082
|
-
with: function_([unknown, function_([any], any)], any),
|
|
1083
|
-
active: function_([], unknown),
|
|
1084
|
-
getMetadata: function_([unknown], string),
|
|
1085
|
-
fromMetadata: function_([unknown, string], unknown)
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1088
|
-
var BullMqWorkerQueueOptionsSchema = {
|
|
1089
|
-
connection: {
|
|
1090
|
-
skipVersionCheck: optional(boolean),
|
|
1091
|
-
url: optional(string)
|
|
1092
|
-
},
|
|
1093
|
-
blockingConnection: optional(boolean),
|
|
1094
|
-
prefix: optional(string),
|
|
1095
|
-
telemetry: BullMqWorkerTelemetrySchema,
|
|
1096
|
-
skipWaitingForReady: optional(boolean),
|
|
1097
|
-
defaultJobOptions: optional(BullMqWorkerDefaultJobOptionsSchema),
|
|
1098
|
-
streams: optional({
|
|
1099
|
-
events: {
|
|
1100
|
-
maxLen: number
|
|
1101
|
-
}
|
|
1102
|
-
}),
|
|
1103
|
-
skipMetasUpdate: optional(boolean),
|
|
1104
|
-
settings: optional(BullMqWorkerAdvancedRepeatOptionsSchema)
|
|
1105
|
-
};
|
|
1106
986
|
var BullMqWorkerOptionsSchema = {
|
|
1107
|
-
|
|
987
|
+
queueOptions: type(),
|
|
1108
988
|
backoffType: union([literal("exponential"), literal("fixed")]),
|
|
1109
989
|
retries: number,
|
|
1110
990
|
interval: number
|
|
1111
991
|
};
|
|
1112
992
|
|
|
1113
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
993
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
1114
994
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
1115
995
|
var import_zod = require("zod");
|
|
1116
996
|
(0, import_zod_openapi.extendZodWithOpenApi)(import_zod.z);
|
|
@@ -1475,135 +1355,15 @@ var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
|
|
|
1475
1355
|
var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
|
|
1476
1356
|
|
|
1477
1357
|
// schemas/zod/bullMqWorker.schema.ts
|
|
1478
|
-
var import_bullmq2 = require("bullmq");
|
|
1479
|
-
var BullMqWorkerKeepJobsSchema2 = {
|
|
1480
|
-
age: optional2(number2),
|
|
1481
|
-
count: optional2(number2)
|
|
1482
|
-
};
|
|
1483
|
-
var BullMqWorkerBackoffOptionsSchema2 = {
|
|
1484
|
-
type: union2([literal2("fixed"), literal2("exponential")]),
|
|
1485
|
-
delay: optional2(number2)
|
|
1486
|
-
};
|
|
1487
|
-
var BullMqWorkerDefaultJobOptionsSchema2 = {
|
|
1488
|
-
timestamp: optional2(number2),
|
|
1489
|
-
priority: optional2(number2),
|
|
1490
|
-
delay: optional2(number2),
|
|
1491
|
-
attempts: optional2(number2),
|
|
1492
|
-
backoff: optional2(union2([number2, BullMqWorkerBackoffOptionsSchema2])),
|
|
1493
|
-
lifo: optional2(boolean2),
|
|
1494
|
-
removeOnComplete: optional2(
|
|
1495
|
-
union2([boolean2, number2, BullMqWorkerKeepJobsSchema2])
|
|
1496
|
-
),
|
|
1497
|
-
removeOnFail: optional2(union2([boolean2, number2, BullMqWorkerKeepJobsSchema2])),
|
|
1498
|
-
keepLogs: optional2(number2),
|
|
1499
|
-
stackTraceLimit: optional2(number2),
|
|
1500
|
-
sizeLimit: optional2(number2)
|
|
1501
|
-
};
|
|
1502
|
-
var BullMqDateType2 = union2([date2, number2, string2]);
|
|
1503
|
-
var BullMqWorkerAdvancedRepeatOptionsSchema2 = {
|
|
1504
|
-
repeatStrategy: optional2(
|
|
1505
|
-
function_2(
|
|
1506
|
-
[
|
|
1507
|
-
number2,
|
|
1508
|
-
{
|
|
1509
|
-
pattern: optional2(string2),
|
|
1510
|
-
key: optional2(string2),
|
|
1511
|
-
limit: optional2(number2),
|
|
1512
|
-
every: optional2(number2),
|
|
1513
|
-
immediately: optional2(boolean2),
|
|
1514
|
-
count: optional2(number2),
|
|
1515
|
-
offset: optional2(number2),
|
|
1516
|
-
prevMillis: optional2(number2),
|
|
1517
|
-
jobId: optional2(string2),
|
|
1518
|
-
currentDate: optional2(BullMqDateType2),
|
|
1519
|
-
startDate: optional2(BullMqDateType2),
|
|
1520
|
-
endDate: optional2(BullMqDateType2),
|
|
1521
|
-
utc: optional2(boolean2),
|
|
1522
|
-
tz: optional2(string2),
|
|
1523
|
-
nthDayOfWeek: optional2(number2)
|
|
1524
|
-
},
|
|
1525
|
-
optional2(string2)
|
|
1526
|
-
],
|
|
1527
|
-
union2([number2, undefined_2, promise2(union2([number2, undefined_2]))])
|
|
1528
|
-
)
|
|
1529
|
-
),
|
|
1530
|
-
repeatKeyHashAlgorithm: optional2(string2)
|
|
1531
|
-
};
|
|
1532
|
-
var BullMqWorkerTelemetryAttributeValueSchema2 = union2([
|
|
1533
|
-
string2,
|
|
1534
|
-
number2,
|
|
1535
|
-
boolean2,
|
|
1536
|
-
array2(union2([string2, null_2, undefined_2])),
|
|
1537
|
-
array2(union2([number2, null_2, undefined_2])),
|
|
1538
|
-
array2(union2([boolean2, null_2, undefined_2]))
|
|
1539
|
-
]);
|
|
1540
|
-
var BullMqWorkerTelemetryAttributesSchema2 = record2(
|
|
1541
|
-
string2,
|
|
1542
|
-
union2([BullMqWorkerTelemetryAttributeValueSchema2, undefined_2])
|
|
1543
|
-
);
|
|
1544
|
-
var BullMqWorkerTelemetrySchema2 = optional2({
|
|
1545
|
-
tracer: {
|
|
1546
|
-
startSpan: function_2(
|
|
1547
|
-
[
|
|
1548
|
-
string2,
|
|
1549
|
-
optional2({
|
|
1550
|
-
kind: optional2(enum_2(import_bullmq2.SpanKind))
|
|
1551
|
-
}),
|
|
1552
|
-
optional2(unknown2)
|
|
1553
|
-
],
|
|
1554
|
-
{
|
|
1555
|
-
setSpanOnContext: function_2([unknown2], unknown2),
|
|
1556
|
-
setAttribute: function_2(
|
|
1557
|
-
[string2, BullMqWorkerTelemetryAttributeValueSchema2],
|
|
1558
|
-
void_2
|
|
1559
|
-
),
|
|
1560
|
-
setAttributes: function_2(
|
|
1561
|
-
[BullMqWorkerTelemetryAttributesSchema2],
|
|
1562
|
-
void_2
|
|
1563
|
-
),
|
|
1564
|
-
addEvent: function_2(
|
|
1565
|
-
[string2, optional2(BullMqWorkerTelemetryAttributesSchema2)],
|
|
1566
|
-
void_2
|
|
1567
|
-
),
|
|
1568
|
-
recordException: function_2([unknown2, optional2(number2)], void_2),
|
|
1569
|
-
end: function_2([], void_2)
|
|
1570
|
-
}
|
|
1571
|
-
)
|
|
1572
|
-
},
|
|
1573
|
-
contextManager: {
|
|
1574
|
-
with: function_2([unknown2, function_2([any2], any2)], any2),
|
|
1575
|
-
active: function_2([], unknown2),
|
|
1576
|
-
getMetadata: function_2([unknown2], string2),
|
|
1577
|
-
fromMetadata: function_2([unknown2, string2], unknown2)
|
|
1578
|
-
}
|
|
1579
|
-
});
|
|
1580
|
-
var BullMqWorkerQueueOptionsSchema2 = {
|
|
1581
|
-
connection: {
|
|
1582
|
-
skipVersionCheck: optional2(boolean2),
|
|
1583
|
-
url: optional2(string2)
|
|
1584
|
-
},
|
|
1585
|
-
blockingConnection: optional2(boolean2),
|
|
1586
|
-
prefix: optional2(string2),
|
|
1587
|
-
telemetry: BullMqWorkerTelemetrySchema2,
|
|
1588
|
-
skipWaitingForReady: optional2(boolean2),
|
|
1589
|
-
defaultJobOptions: optional2(BullMqWorkerDefaultJobOptionsSchema2),
|
|
1590
|
-
streams: optional2({
|
|
1591
|
-
events: {
|
|
1592
|
-
maxLen: number2
|
|
1593
|
-
}
|
|
1594
|
-
}),
|
|
1595
|
-
skipMetasUpdate: optional2(boolean2),
|
|
1596
|
-
settings: optional2(BullMqWorkerAdvancedRepeatOptionsSchema2)
|
|
1597
|
-
};
|
|
1598
1358
|
var BullMqWorkerOptionsSchema2 = {
|
|
1599
|
-
|
|
1359
|
+
queueOptions: type2(),
|
|
1600
1360
|
backoffType: union2([literal2("exponential"), literal2("fixed")]),
|
|
1601
1361
|
retries: number2,
|
|
1602
1362
|
interval: number2
|
|
1603
1363
|
};
|
|
1604
1364
|
|
|
1605
1365
|
// schemas/bullMqWorker.schema.ts
|
|
1606
|
-
var BullMqWorkerSchemas = (0,
|
|
1366
|
+
var BullMqWorkerSchemas = (0, import_internal.serviceSchemaResolver)(
|
|
1607
1367
|
() => BullMqWorkerOptionsSchema,
|
|
1608
1368
|
() => BullMqWorkerOptionsSchema2
|
|
1609
1369
|
);
|
package/lib/schemas/index.mjs
CHANGED
|
@@ -79,9 +79,9 @@ var require_cjs = __commonJS({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
82
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
83
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
84
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports) {
|
|
85
85
|
"use strict";
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
87
|
exports.generateSchema = exports.extendApi = void 0;
|
|
@@ -409,9 +409,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
412
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
413
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
414
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports) {
|
|
415
415
|
"use strict";
|
|
416
416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
417
417
|
exports.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +428,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
431
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
432
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
433
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js"(exports) {
|
|
434
434
|
"use strict";
|
|
435
435
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
436
|
if (k2 === void 0) k2 = k;
|
|
@@ -455,9 +455,9 @@ var require_src = __commonJS({
|
|
|
455
455
|
});
|
|
456
456
|
|
|
457
457
|
// schemas/bullMqWorker.schema.ts
|
|
458
|
-
import { serviceSchemaResolver } from "@forklaunch/
|
|
458
|
+
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
459
459
|
|
|
460
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.
|
|
460
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
|
|
461
461
|
var InMemoryFile = class extends File {
|
|
462
462
|
constructor(content, name, {
|
|
463
463
|
type: type3,
|
|
@@ -473,7 +473,7 @@ var InMemoryFile = class extends File {
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
476
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
477
477
|
import {
|
|
478
478
|
FormatRegistry,
|
|
479
479
|
Kind,
|
|
@@ -985,134 +985,14 @@ var parse = StaticSchemaValidator.parse.bind(StaticSchemaValidator);
|
|
|
985
985
|
var openapi = StaticSchemaValidator.openapi.bind(StaticSchemaValidator);
|
|
986
986
|
|
|
987
987
|
// schemas/typebox/bullMqWorker.schema.ts
|
|
988
|
-
import { SpanKind } from "bullmq";
|
|
989
|
-
var BullMqWorkerKeepJobsSchema = {
|
|
990
|
-
age: optional(number),
|
|
991
|
-
count: optional(number)
|
|
992
|
-
};
|
|
993
|
-
var BullMqWorkerBackoffOptionsSchema = {
|
|
994
|
-
type: union([literal("fixed"), literal("exponential")]),
|
|
995
|
-
delay: optional(number)
|
|
996
|
-
};
|
|
997
|
-
var BullMqWorkerDefaultJobOptionsSchema = {
|
|
998
|
-
timestamp: optional(number),
|
|
999
|
-
priority: optional(number),
|
|
1000
|
-
delay: optional(number),
|
|
1001
|
-
attempts: optional(number),
|
|
1002
|
-
backoff: optional(union([number, BullMqWorkerBackoffOptionsSchema])),
|
|
1003
|
-
lifo: optional(boolean),
|
|
1004
|
-
removeOnComplete: optional(
|
|
1005
|
-
union([boolean, number, BullMqWorkerKeepJobsSchema])
|
|
1006
|
-
),
|
|
1007
|
-
removeOnFail: optional(union([boolean, number, BullMqWorkerKeepJobsSchema])),
|
|
1008
|
-
keepLogs: optional(number),
|
|
1009
|
-
stackTraceLimit: optional(number),
|
|
1010
|
-
sizeLimit: optional(number)
|
|
1011
|
-
};
|
|
1012
|
-
var BullMqDateType = union([date, number, string]);
|
|
1013
|
-
var BullMqWorkerAdvancedRepeatOptionsSchema = {
|
|
1014
|
-
repeatStrategy: optional(
|
|
1015
|
-
function_(
|
|
1016
|
-
[
|
|
1017
|
-
number,
|
|
1018
|
-
{
|
|
1019
|
-
pattern: optional(string),
|
|
1020
|
-
key: optional(string),
|
|
1021
|
-
limit: optional(number),
|
|
1022
|
-
every: optional(number),
|
|
1023
|
-
immediately: optional(boolean),
|
|
1024
|
-
count: optional(number),
|
|
1025
|
-
offset: optional(number),
|
|
1026
|
-
prevMillis: optional(number),
|
|
1027
|
-
jobId: optional(string),
|
|
1028
|
-
currentDate: optional(BullMqDateType),
|
|
1029
|
-
startDate: optional(BullMqDateType),
|
|
1030
|
-
endDate: optional(BullMqDateType),
|
|
1031
|
-
utc: optional(boolean),
|
|
1032
|
-
tz: optional(string),
|
|
1033
|
-
nthDayOfWeek: optional(number)
|
|
1034
|
-
},
|
|
1035
|
-
optional(string)
|
|
1036
|
-
],
|
|
1037
|
-
union([number, undefined_, promise(union([number, undefined_]))])
|
|
1038
|
-
)
|
|
1039
|
-
),
|
|
1040
|
-
repeatKeyHashAlgorithm: optional(string)
|
|
1041
|
-
};
|
|
1042
|
-
var BullMqWorkerTelemetryAttributeValueSchema = union([
|
|
1043
|
-
string,
|
|
1044
|
-
number,
|
|
1045
|
-
boolean,
|
|
1046
|
-
array(union([string, null_, undefined_])),
|
|
1047
|
-
array(union([number, null_, undefined_])),
|
|
1048
|
-
array(union([boolean, null_, undefined_]))
|
|
1049
|
-
]);
|
|
1050
|
-
var BullMqWorkerTelemetryAttributesSchema = record(
|
|
1051
|
-
string,
|
|
1052
|
-
union([BullMqWorkerTelemetryAttributeValueSchema, undefined_])
|
|
1053
|
-
);
|
|
1054
|
-
var BullMqWorkerTelemetrySchema = optional({
|
|
1055
|
-
tracer: {
|
|
1056
|
-
startSpan: function_(
|
|
1057
|
-
[
|
|
1058
|
-
string,
|
|
1059
|
-
optional({
|
|
1060
|
-
kind: optional(enum_(SpanKind))
|
|
1061
|
-
}),
|
|
1062
|
-
optional(unknown)
|
|
1063
|
-
],
|
|
1064
|
-
{
|
|
1065
|
-
setSpanOnContext: function_([unknown], unknown),
|
|
1066
|
-
setAttribute: function_(
|
|
1067
|
-
[string, BullMqWorkerTelemetryAttributeValueSchema],
|
|
1068
|
-
void_
|
|
1069
|
-
),
|
|
1070
|
-
setAttributes: function_(
|
|
1071
|
-
[BullMqWorkerTelemetryAttributesSchema],
|
|
1072
|
-
void_
|
|
1073
|
-
),
|
|
1074
|
-
addEvent: function_(
|
|
1075
|
-
[string, optional(BullMqWorkerTelemetryAttributesSchema)],
|
|
1076
|
-
void_
|
|
1077
|
-
),
|
|
1078
|
-
recordException: function_([unknown, optional(number)], void_),
|
|
1079
|
-
end: function_([], void_)
|
|
1080
|
-
}
|
|
1081
|
-
)
|
|
1082
|
-
},
|
|
1083
|
-
contextManager: {
|
|
1084
|
-
with: function_([unknown, function_([any], any)], any),
|
|
1085
|
-
active: function_([], unknown),
|
|
1086
|
-
getMetadata: function_([unknown], string),
|
|
1087
|
-
fromMetadata: function_([unknown, string], unknown)
|
|
1088
|
-
}
|
|
1089
|
-
});
|
|
1090
|
-
var BullMqWorkerQueueOptionsSchema = {
|
|
1091
|
-
connection: {
|
|
1092
|
-
skipVersionCheck: optional(boolean),
|
|
1093
|
-
url: optional(string)
|
|
1094
|
-
},
|
|
1095
|
-
blockingConnection: optional(boolean),
|
|
1096
|
-
prefix: optional(string),
|
|
1097
|
-
telemetry: BullMqWorkerTelemetrySchema,
|
|
1098
|
-
skipWaitingForReady: optional(boolean),
|
|
1099
|
-
defaultJobOptions: optional(BullMqWorkerDefaultJobOptionsSchema),
|
|
1100
|
-
streams: optional({
|
|
1101
|
-
events: {
|
|
1102
|
-
maxLen: number
|
|
1103
|
-
}
|
|
1104
|
-
}),
|
|
1105
|
-
skipMetasUpdate: optional(boolean),
|
|
1106
|
-
settings: optional(BullMqWorkerAdvancedRepeatOptionsSchema)
|
|
1107
|
-
};
|
|
1108
988
|
var BullMqWorkerOptionsSchema = {
|
|
1109
|
-
|
|
989
|
+
queueOptions: type(),
|
|
1110
990
|
backoffType: union([literal("exponential"), literal("fixed")]),
|
|
1111
991
|
retries: number,
|
|
1112
992
|
interval: number
|
|
1113
993
|
};
|
|
1114
994
|
|
|
1115
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
995
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
1116
996
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
1117
997
|
import {
|
|
1118
998
|
z,
|
|
@@ -1480,128 +1360,8 @@ var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
|
|
|
1480
1360
|
var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
|
|
1481
1361
|
|
|
1482
1362
|
// schemas/zod/bullMqWorker.schema.ts
|
|
1483
|
-
import { SpanKind as SpanKind2 } from "bullmq";
|
|
1484
|
-
var BullMqWorkerKeepJobsSchema2 = {
|
|
1485
|
-
age: optional2(number2),
|
|
1486
|
-
count: optional2(number2)
|
|
1487
|
-
};
|
|
1488
|
-
var BullMqWorkerBackoffOptionsSchema2 = {
|
|
1489
|
-
type: union2([literal2("fixed"), literal2("exponential")]),
|
|
1490
|
-
delay: optional2(number2)
|
|
1491
|
-
};
|
|
1492
|
-
var BullMqWorkerDefaultJobOptionsSchema2 = {
|
|
1493
|
-
timestamp: optional2(number2),
|
|
1494
|
-
priority: optional2(number2),
|
|
1495
|
-
delay: optional2(number2),
|
|
1496
|
-
attempts: optional2(number2),
|
|
1497
|
-
backoff: optional2(union2([number2, BullMqWorkerBackoffOptionsSchema2])),
|
|
1498
|
-
lifo: optional2(boolean2),
|
|
1499
|
-
removeOnComplete: optional2(
|
|
1500
|
-
union2([boolean2, number2, BullMqWorkerKeepJobsSchema2])
|
|
1501
|
-
),
|
|
1502
|
-
removeOnFail: optional2(union2([boolean2, number2, BullMqWorkerKeepJobsSchema2])),
|
|
1503
|
-
keepLogs: optional2(number2),
|
|
1504
|
-
stackTraceLimit: optional2(number2),
|
|
1505
|
-
sizeLimit: optional2(number2)
|
|
1506
|
-
};
|
|
1507
|
-
var BullMqDateType2 = union2([date2, number2, string2]);
|
|
1508
|
-
var BullMqWorkerAdvancedRepeatOptionsSchema2 = {
|
|
1509
|
-
repeatStrategy: optional2(
|
|
1510
|
-
function_2(
|
|
1511
|
-
[
|
|
1512
|
-
number2,
|
|
1513
|
-
{
|
|
1514
|
-
pattern: optional2(string2),
|
|
1515
|
-
key: optional2(string2),
|
|
1516
|
-
limit: optional2(number2),
|
|
1517
|
-
every: optional2(number2),
|
|
1518
|
-
immediately: optional2(boolean2),
|
|
1519
|
-
count: optional2(number2),
|
|
1520
|
-
offset: optional2(number2),
|
|
1521
|
-
prevMillis: optional2(number2),
|
|
1522
|
-
jobId: optional2(string2),
|
|
1523
|
-
currentDate: optional2(BullMqDateType2),
|
|
1524
|
-
startDate: optional2(BullMqDateType2),
|
|
1525
|
-
endDate: optional2(BullMqDateType2),
|
|
1526
|
-
utc: optional2(boolean2),
|
|
1527
|
-
tz: optional2(string2),
|
|
1528
|
-
nthDayOfWeek: optional2(number2)
|
|
1529
|
-
},
|
|
1530
|
-
optional2(string2)
|
|
1531
|
-
],
|
|
1532
|
-
union2([number2, undefined_2, promise2(union2([number2, undefined_2]))])
|
|
1533
|
-
)
|
|
1534
|
-
),
|
|
1535
|
-
repeatKeyHashAlgorithm: optional2(string2)
|
|
1536
|
-
};
|
|
1537
|
-
var BullMqWorkerTelemetryAttributeValueSchema2 = union2([
|
|
1538
|
-
string2,
|
|
1539
|
-
number2,
|
|
1540
|
-
boolean2,
|
|
1541
|
-
array2(union2([string2, null_2, undefined_2])),
|
|
1542
|
-
array2(union2([number2, null_2, undefined_2])),
|
|
1543
|
-
array2(union2([boolean2, null_2, undefined_2]))
|
|
1544
|
-
]);
|
|
1545
|
-
var BullMqWorkerTelemetryAttributesSchema2 = record2(
|
|
1546
|
-
string2,
|
|
1547
|
-
union2([BullMqWorkerTelemetryAttributeValueSchema2, undefined_2])
|
|
1548
|
-
);
|
|
1549
|
-
var BullMqWorkerTelemetrySchema2 = optional2({
|
|
1550
|
-
tracer: {
|
|
1551
|
-
startSpan: function_2(
|
|
1552
|
-
[
|
|
1553
|
-
string2,
|
|
1554
|
-
optional2({
|
|
1555
|
-
kind: optional2(enum_2(SpanKind2))
|
|
1556
|
-
}),
|
|
1557
|
-
optional2(unknown2)
|
|
1558
|
-
],
|
|
1559
|
-
{
|
|
1560
|
-
setSpanOnContext: function_2([unknown2], unknown2),
|
|
1561
|
-
setAttribute: function_2(
|
|
1562
|
-
[string2, BullMqWorkerTelemetryAttributeValueSchema2],
|
|
1563
|
-
void_2
|
|
1564
|
-
),
|
|
1565
|
-
setAttributes: function_2(
|
|
1566
|
-
[BullMqWorkerTelemetryAttributesSchema2],
|
|
1567
|
-
void_2
|
|
1568
|
-
),
|
|
1569
|
-
addEvent: function_2(
|
|
1570
|
-
[string2, optional2(BullMqWorkerTelemetryAttributesSchema2)],
|
|
1571
|
-
void_2
|
|
1572
|
-
),
|
|
1573
|
-
recordException: function_2([unknown2, optional2(number2)], void_2),
|
|
1574
|
-
end: function_2([], void_2)
|
|
1575
|
-
}
|
|
1576
|
-
)
|
|
1577
|
-
},
|
|
1578
|
-
contextManager: {
|
|
1579
|
-
with: function_2([unknown2, function_2([any2], any2)], any2),
|
|
1580
|
-
active: function_2([], unknown2),
|
|
1581
|
-
getMetadata: function_2([unknown2], string2),
|
|
1582
|
-
fromMetadata: function_2([unknown2, string2], unknown2)
|
|
1583
|
-
}
|
|
1584
|
-
});
|
|
1585
|
-
var BullMqWorkerQueueOptionsSchema2 = {
|
|
1586
|
-
connection: {
|
|
1587
|
-
skipVersionCheck: optional2(boolean2),
|
|
1588
|
-
url: optional2(string2)
|
|
1589
|
-
},
|
|
1590
|
-
blockingConnection: optional2(boolean2),
|
|
1591
|
-
prefix: optional2(string2),
|
|
1592
|
-
telemetry: BullMqWorkerTelemetrySchema2,
|
|
1593
|
-
skipWaitingForReady: optional2(boolean2),
|
|
1594
|
-
defaultJobOptions: optional2(BullMqWorkerDefaultJobOptionsSchema2),
|
|
1595
|
-
streams: optional2({
|
|
1596
|
-
events: {
|
|
1597
|
-
maxLen: number2
|
|
1598
|
-
}
|
|
1599
|
-
}),
|
|
1600
|
-
skipMetasUpdate: optional2(boolean2),
|
|
1601
|
-
settings: optional2(BullMqWorkerAdvancedRepeatOptionsSchema2)
|
|
1602
|
-
};
|
|
1603
1363
|
var BullMqWorkerOptionsSchema2 = {
|
|
1604
|
-
|
|
1364
|
+
queueOptions: type2(),
|
|
1605
1365
|
backoffType: union2([literal2("exponential"), literal2("fixed")]),
|
|
1606
1366
|
retries: number2,
|
|
1607
1367
|
interval: number2
|
package/lib/types/index.d.mts
CHANGED