@forklaunch/implementation-worker-bullmq 0.3.2 → 0.3.4

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.
@@ -1,6 +1,6 @@
1
1
  import { WorkerConsumer } from '@forklaunch/interfaces-worker/interfaces';
2
2
  import { WorkerEventEntity, WorkerProcessFunction, WorkerFailureHandler } from '@forklaunch/interfaces-worker/types';
3
- import { BullMqWorkerOptions } from '../types/index.mjs';
3
+ import { BullMqWorkerOptions } from '../domain/types/index.mjs';
4
4
  import 'bullmq';
5
5
 
6
6
  declare class BullMqWorkerConsumer<EventEntity extends WorkerEventEntity, Options extends BullMqWorkerOptions> implements WorkerConsumer<EventEntity> {
@@ -1,6 +1,6 @@
1
1
  import { WorkerConsumer } from '@forklaunch/interfaces-worker/interfaces';
2
2
  import { WorkerEventEntity, WorkerProcessFunction, WorkerFailureHandler } from '@forklaunch/interfaces-worker/types';
3
- import { BullMqWorkerOptions } from '../types/index.js';
3
+ import { BullMqWorkerOptions } from '../domain/types/index.js';
4
4
  import 'bullmq';
5
5
 
6
6
  declare class BullMqWorkerConsumer<EventEntity extends WorkerEventEntity, Options extends BullMqWorkerOptions> implements WorkerConsumer<EventEntity> {
@@ -454,14 +454,14 @@ var require_src = __commonJS({
454
454
  }
455
455
  });
456
456
 
457
- // schemas/index.ts
457
+ // domain/schemas/index.ts
458
458
  var schemas_exports = {};
459
459
  __export(schemas_exports, {
460
460
  BullMqWorkerSchemas: () => BullMqWorkerSchemas
461
461
  });
462
462
  module.exports = __toCommonJS(schemas_exports);
463
463
 
464
- // schemas/bullMqWorker.schema.ts
464
+ // domain/schemas/bullMqWorker.schema.ts
465
465
  var import_internal = require("@forklaunch/internal");
466
466
 
467
467
  // ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
@@ -982,7 +982,7 @@ var validate = StaticSchemaValidator.validate.bind(StaticSchemaValidator);
982
982
  var parse = StaticSchemaValidator.parse.bind(StaticSchemaValidator);
983
983
  var openapi = StaticSchemaValidator.openapi.bind(StaticSchemaValidator);
984
984
 
985
- // schemas/typebox/bullMqWorker.schema.ts
985
+ // domain/schemas/typebox/bullMqWorker.schema.ts
986
986
  var BullMqWorkerOptionsSchema = {
987
987
  queueOptions: type(),
988
988
  backoffType: union([literal("exponential"), literal("fixed")]),
@@ -1354,7 +1354,7 @@ var validate2 = StaticSchemaValidator2.validate.bind(StaticSchemaValidator2);
1354
1354
  var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
1355
1355
  var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
1356
1356
 
1357
- // schemas/zod/bullMqWorker.schema.ts
1357
+ // domain/schemas/zod/bullMqWorker.schema.ts
1358
1358
  var BullMqWorkerOptionsSchema2 = {
1359
1359
  queueOptions: type2(),
1360
1360
  backoffType: union2([literal2("exponential"), literal2("fixed")]),
@@ -1362,7 +1362,7 @@ var BullMqWorkerOptionsSchema2 = {
1362
1362
  interval: number2
1363
1363
  };
1364
1364
 
1365
- // schemas/bullMqWorker.schema.ts
1365
+ // domain/schemas/bullMqWorker.schema.ts
1366
1366
  var BullMqWorkerSchemas = (0, import_internal.serviceSchemaResolver)(
1367
1367
  () => BullMqWorkerOptionsSchema,
1368
1368
  () => BullMqWorkerOptionsSchema2
@@ -454,7 +454,7 @@ var require_src = __commonJS({
454
454
  }
455
455
  });
456
456
 
457
- // schemas/bullMqWorker.schema.ts
457
+ // domain/schemas/bullMqWorker.schema.ts
458
458
  import { serviceSchemaResolver } from "@forklaunch/internal";
459
459
 
460
460
  // ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
@@ -984,7 +984,7 @@ var validate = StaticSchemaValidator.validate.bind(StaticSchemaValidator);
984
984
  var parse = StaticSchemaValidator.parse.bind(StaticSchemaValidator);
985
985
  var openapi = StaticSchemaValidator.openapi.bind(StaticSchemaValidator);
986
986
 
987
- // schemas/typebox/bullMqWorker.schema.ts
987
+ // domain/schemas/typebox/bullMqWorker.schema.ts
988
988
  var BullMqWorkerOptionsSchema = {
989
989
  queueOptions: type(),
990
990
  backoffType: union([literal("exponential"), literal("fixed")]),
@@ -1359,7 +1359,7 @@ var validate2 = StaticSchemaValidator2.validate.bind(StaticSchemaValidator2);
1359
1359
  var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
1360
1360
  var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
1361
1361
 
1362
- // schemas/zod/bullMqWorker.schema.ts
1362
+ // domain/schemas/zod/bullMqWorker.schema.ts
1363
1363
  var BullMqWorkerOptionsSchema2 = {
1364
1364
  queueOptions: type2(),
1365
1365
  backoffType: union2([literal2("exponential"), literal2("fixed")]),
@@ -1367,7 +1367,7 @@ var BullMqWorkerOptionsSchema2 = {
1367
1367
  interval: number2
1368
1368
  };
1369
1369
 
1370
- // schemas/bullMqWorker.schema.ts
1370
+ // domain/schemas/bullMqWorker.schema.ts
1371
1371
  var BullMqWorkerSchemas = serviceSchemaResolver(
1372
1372
  () => BullMqWorkerOptionsSchema,
1373
1373
  () => BullMqWorkerOptionsSchema2
@@ -13,6 +13,6 @@ var __copyProps = (to, from, except, desc) => {
13
13
  };
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
 
16
- // types/index.ts
16
+ // domain/types/index.ts
17
17
  var types_exports = {};
18
18
  module.exports = __toCommonJS(types_exports);
@@ -5,7 +5,7 @@ import {
5
5
  WorkerProcessFunction
6
6
  } from '@forklaunch/interfaces-worker/types';
7
7
  import { Job, Queue, Worker } from 'bullmq';
8
- import { BullMqWorkerOptions } from '../types/bullMqWorker.types';
8
+ import { BullMqWorkerOptions } from '../domain/types/bullMqWorker.types';
9
9
 
10
10
  export class BullMqWorkerConsumer<
11
11
  EventEntity extends WorkerEventEntity,
@@ -1,4 +1,4 @@
1
- import { literal, number, type, union } from '@{{app_name}}/core';
1
+ import { literal, number, type, union } from '@forklaunch/validator/zod';
2
2
  import { QueueOptions } from 'bullmq';
3
3
 
4
4
  export const BullMqWorkerOptionsSchema = {
@@ -1,7 +1,7 @@
1
1
  import { WorkerProducer } from '@forklaunch/interfaces-worker/interfaces';
2
2
  import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
3
3
  import { Queue } from 'bullmq';
4
- import { BullMqWorkerOptions } from '../types/bullMqWorker.types';
4
+ import { BullMqWorkerOptions } from '../domain/types/bullMqWorker.types';
5
5
 
6
6
  export class BullMqWorkerProducer<
7
7
  EventEntity extends WorkerEventEntity,
@@ -1,6 +1,6 @@
1
1
  import { WorkerProducer } from '@forklaunch/interfaces-worker/interfaces';
2
2
  import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
3
- import { BullMqWorkerOptions } from '../types/index.mjs';
3
+ import { BullMqWorkerOptions } from '../domain/types/index.mjs';
4
4
  import 'bullmq';
5
5
 
6
6
  declare class BullMqWorkerProducer<EventEntity extends WorkerEventEntity, Options extends BullMqWorkerOptions> implements WorkerProducer<EventEntity> {
@@ -1,6 +1,6 @@
1
1
  import { WorkerProducer } from '@forklaunch/interfaces-worker/interfaces';
2
2
  import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
3
- import { BullMqWorkerOptions } from '../types/index.js';
3
+ import { BullMqWorkerOptions } from '../domain/types/index.js';
4
4
  import 'bullmq';
5
5
 
6
6
  declare class BullMqWorkerProducer<EventEntity extends WorkerEventEntity, Options extends BullMqWorkerOptions> implements WorkerProducer<EventEntity> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-worker-bullmq",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "BullMQ implementation for forklaunch workers",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -26,16 +26,16 @@
26
26
  "default": "./lib/producers/index.js"
27
27
  },
28
28
  "./schemas": {
29
- "types": "./lib/schemas/index.d.ts",
30
- "import": "./lib/schemas/index.mjs",
31
- "require": "./lib/schemas/index.js",
32
- "default": "./lib/schemas/index.js"
29
+ "types": "./lib/domain/schemas/index.d.ts",
30
+ "import": "./lib/domain/schemas/index.mjs",
31
+ "require": "./lib/domain/schemas/index.js",
32
+ "default": "./lib/domain/schemas/index.js"
33
33
  },
34
34
  "./types": {
35
- "types": "./lib/types/index.d.ts",
36
- "import": "./lib/types/index.mjs",
37
- "require": "./lib/types/index.js",
38
- "default": "./lib/types/index.js"
35
+ "types": "./lib/domain/types/index.d.ts",
36
+ "import": "./lib/domain/types/index.mjs",
37
+ "require": "./lib/domain/types/index.js",
38
+ "default": "./lib/domain/types/index.js"
39
39
  }
40
40
  },
41
41
  "files": [
@@ -58,7 +58,7 @@
58
58
  "typescript-eslint": "^8.34.1"
59
59
  },
60
60
  "scripts": {
61
- "build": "tsc --noEmit && tsup producers/index.ts consumers/index.ts schemas/index.ts 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",
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",
62
62
  "clean": "rm -rf lib pnpm.lock.yaml node_modules",
63
63
  "docs": "typedoc --out docs *",
64
64
  "format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes