@forklaunch/implementation-worker-database 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.
- package/lib/consumers/index.d.mts +1 -1
- package/lib/consumers/index.d.ts +1 -1
- package/lib/{schemas → domain/schemas}/index.js +5 -5
- package/lib/{schemas → domain/schemas}/index.mjs +4 -4
- package/lib/{types → domain/types}/index.js +1 -1
- package/lib/eject/consumers/databaseWorker.consumer.ts +1 -1
- package/lib/eject/domain/schemas/databaseWorker.schema.ts +1 -1
- package/lib/eject/producers/databaseWorker.producer.ts +1 -1
- package/lib/producers/index.d.mts +1 -1
- package/lib/producers/index.d.ts +1 -1
- package/package.json +10 -10
- /package/lib/{schemas → domain/schemas}/index.d.mts +0 -0
- /package/lib/{schemas → domain/schemas}/index.d.ts +0 -0
- /package/lib/{types → domain/types}/index.d.mts +0 -0
- /package/lib/{types → domain/types}/index.d.ts +0 -0
- /package/lib/{types → domain/types}/index.mjs +0 -0
- /package/lib/eject/{types → domain/types}/databaseWorker.types.ts +0 -0
- /package/lib/eject/{types → domain/types}/index.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkerConsumer } from '@forklaunch/interfaces-worker/interfaces';
|
|
2
2
|
import { WorkerEventEntity, WorkerProcessFunction, WorkerFailureHandler } from '@forklaunch/interfaces-worker/types';
|
|
3
3
|
import { BaseEntity, EntityName, EntityManager } from '@mikro-orm/core';
|
|
4
|
-
import { DatabaseWorkerOptions } from '../types/index.mjs';
|
|
4
|
+
import { DatabaseWorkerOptions } from '../domain/types/index.mjs';
|
|
5
5
|
|
|
6
6
|
declare class DatabaseWorkerConsumer<EventEntity extends WorkerEventEntity & BaseEntity, Options extends DatabaseWorkerOptions> implements WorkerConsumer<EventEntity> {
|
|
7
7
|
protected readonly entityName: EntityName<EventEntity>;
|
package/lib/consumers/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkerConsumer } from '@forklaunch/interfaces-worker/interfaces';
|
|
2
2
|
import { WorkerEventEntity, WorkerProcessFunction, WorkerFailureHandler } from '@forklaunch/interfaces-worker/types';
|
|
3
3
|
import { BaseEntity, EntityName, EntityManager } from '@mikro-orm/core';
|
|
4
|
-
import { DatabaseWorkerOptions } from '../types/index.js';
|
|
4
|
+
import { DatabaseWorkerOptions } from '../domain/types/index.js';
|
|
5
5
|
|
|
6
6
|
declare class DatabaseWorkerConsumer<EventEntity extends WorkerEventEntity & BaseEntity, Options extends DatabaseWorkerOptions> implements WorkerConsumer<EventEntity> {
|
|
7
7
|
protected readonly entityName: EntityName<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
|
DatabaseWorkerSchemas: () => DatabaseWorkerSchemas
|
|
461
461
|
});
|
|
462
462
|
module.exports = __toCommonJS(schemas_exports);
|
|
463
463
|
|
|
464
|
-
// schemas/databaseWorker.schema.ts
|
|
464
|
+
// domain/schemas/databaseWorker.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/databaseWorker.schema.ts
|
|
985
|
+
// domain/schemas/typebox/databaseWorker.schema.ts
|
|
986
986
|
var DatabaseWorkerOptionsSchema = {
|
|
987
987
|
retries: number,
|
|
988
988
|
interval: number
|
|
@@ -1352,13 +1352,13 @@ var validate2 = StaticSchemaValidator2.validate.bind(StaticSchemaValidator2);
|
|
|
1352
1352
|
var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
|
|
1353
1353
|
var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
|
|
1354
1354
|
|
|
1355
|
-
// schemas/zod/databaseWorker.schema.ts
|
|
1355
|
+
// domain/schemas/zod/databaseWorker.schema.ts
|
|
1356
1356
|
var DatabaseWorkerOptionsSchema2 = {
|
|
1357
1357
|
retries: number2,
|
|
1358
1358
|
interval: number2
|
|
1359
1359
|
};
|
|
1360
1360
|
|
|
1361
|
-
// schemas/databaseWorker.schema.ts
|
|
1361
|
+
// domain/schemas/databaseWorker.schema.ts
|
|
1362
1362
|
var DatabaseWorkerSchemas = (0, import_internal.serviceSchemaResolver)(
|
|
1363
1363
|
() => DatabaseWorkerOptionsSchema,
|
|
1364
1364
|
() => DatabaseWorkerOptionsSchema2
|
|
@@ -454,7 +454,7 @@ var require_src = __commonJS({
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
// schemas/databaseWorker.schema.ts
|
|
457
|
+
// domain/schemas/databaseWorker.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/databaseWorker.schema.ts
|
|
987
|
+
// domain/schemas/typebox/databaseWorker.schema.ts
|
|
988
988
|
var DatabaseWorkerOptionsSchema = {
|
|
989
989
|
retries: number,
|
|
990
990
|
interval: number
|
|
@@ -1357,13 +1357,13 @@ var validate2 = StaticSchemaValidator2.validate.bind(StaticSchemaValidator2);
|
|
|
1357
1357
|
var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
|
|
1358
1358
|
var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
|
|
1359
1359
|
|
|
1360
|
-
// schemas/zod/databaseWorker.schema.ts
|
|
1360
|
+
// domain/schemas/zod/databaseWorker.schema.ts
|
|
1361
1361
|
var DatabaseWorkerOptionsSchema2 = {
|
|
1362
1362
|
retries: number2,
|
|
1363
1363
|
interval: number2
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
|
-
// schemas/databaseWorker.schema.ts
|
|
1366
|
+
// domain/schemas/databaseWorker.schema.ts
|
|
1367
1367
|
var DatabaseWorkerSchemas = serviceSchemaResolver(
|
|
1368
1368
|
() => DatabaseWorkerOptionsSchema,
|
|
1369
1369
|
() => DatabaseWorkerOptionsSchema2
|
|
@@ -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 { BaseEntity, EntityManager, EntityName } from '@mikro-orm/core';
|
|
8
|
-
import { DatabaseWorkerOptions } from '../types/databaseWorker.types';
|
|
8
|
+
import { DatabaseWorkerOptions } from '../domain/types/databaseWorker.types';
|
|
9
9
|
|
|
10
10
|
export class DatabaseWorkerConsumer<
|
|
11
11
|
EventEntity extends WorkerEventEntity & BaseEntity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
2
2
|
import { BaseEntity, EntityManager } from '@mikro-orm/core';
|
|
3
|
-
import { DatabaseWorkerOptions } from '../types/databaseWorker.types';
|
|
3
|
+
import { DatabaseWorkerOptions } from '../domain/types/databaseWorker.types';
|
|
4
4
|
|
|
5
5
|
export class DatabaseWorkerProducer<
|
|
6
6
|
EventEntity extends WorkerEventEntity & BaseEntity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
2
2
|
import { BaseEntity, EntityManager } from '@mikro-orm/core';
|
|
3
|
-
import { DatabaseWorkerOptions } from '../types/index.mjs';
|
|
3
|
+
import { DatabaseWorkerOptions } from '../domain/types/index.mjs';
|
|
4
4
|
|
|
5
5
|
declare class DatabaseWorkerProducer<EventEntity extends WorkerEventEntity & BaseEntity, Options extends DatabaseWorkerOptions> {
|
|
6
6
|
private readonly em;
|
package/lib/producers/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
2
2
|
import { BaseEntity, EntityManager } from '@mikro-orm/core';
|
|
3
|
-
import { DatabaseWorkerOptions } from '../types/index.js';
|
|
3
|
+
import { DatabaseWorkerOptions } from '../domain/types/index.js';
|
|
4
4
|
|
|
5
5
|
declare class DatabaseWorkerProducer<EventEntity extends WorkerEventEntity & BaseEntity, Options extends DatabaseWorkerOptions> {
|
|
6
6
|
private readonly em;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-worker-database",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Database 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
|
|
File without changes
|