@nestjs/workflows 0.0.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/LICENSE +23 -0
- package/README.md +50 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +8 -0
- package/dist/core/codecs/aes-gcm-payload.codec.d.ts +42 -0
- package/dist/core/codecs/aes-gcm-payload.codec.js +119 -0
- package/dist/core/codecs/index.d.ts +2 -0
- package/dist/core/codecs/index.js +2 -0
- package/dist/core/codecs/payload-codecs.d.ts +59 -0
- package/dist/core/codecs/payload-codecs.js +130 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.js +21 -0
- package/dist/core/interfaces/clock.interface.d.ts +18 -0
- package/dist/core/interfaces/clock.interface.js +1 -0
- package/dist/core/interfaces/index.d.ts +9 -0
- package/dist/core/interfaces/index.js +9 -0
- package/dist/core/interfaces/leased-worker-options.interface.d.ts +94 -0
- package/dist/core/interfaces/leased-worker-options.interface.js +1 -0
- package/dist/core/interfaces/limits.interface.d.ts +92 -0
- package/dist/core/interfaces/limits.interface.js +1 -0
- package/dist/core/interfaces/payload-codec.interface.d.ts +64 -0
- package/dist/core/interfaces/payload-codec.interface.js +1 -0
- package/dist/core/interfaces/result-waiter-options.interface.d.ts +52 -0
- package/dist/core/interfaces/result-waiter-options.interface.js +1 -0
- package/dist/core/interfaces/retry-settings.interface.d.ts +71 -0
- package/dist/core/interfaces/retry-settings.interface.js +1 -0
- package/dist/core/interfaces/schedule-store.interface.d.ts +143 -0
- package/dist/core/interfaces/schedule-store.interface.js +1 -0
- package/dist/core/interfaces/schedule.interface.d.ts +106 -0
- package/dist/core/interfaces/schedule.interface.js +1 -0
- package/dist/core/interfaces/scheduler-options.interface.d.ts +152 -0
- package/dist/core/interfaces/scheduler-options.interface.js +1 -0
- package/dist/core/limits/index.d.ts +1 -0
- package/dist/core/limits/index.js +1 -0
- package/dist/core/limits/limits.d.ts +61 -0
- package/dist/core/limits/limits.js +130 -0
- package/dist/core/results/index.d.ts +1 -0
- package/dist/core/results/index.js +1 -0
- package/dist/core/results/result-waiter.d.ts +54 -0
- package/dist/core/results/result-waiter.js +140 -0
- package/dist/core/retries/index.d.ts +1 -0
- package/dist/core/retries/index.js +1 -0
- package/dist/core/retries/retry.d.ts +60 -0
- package/dist/core/retries/retry.js +107 -0
- package/dist/core/scheduling/cron.util.d.ts +52 -0
- package/dist/core/scheduling/cron.util.js +262 -0
- package/dist/core/scheduling/encoded-schedule.store.d.ts +26 -0
- package/dist/core/scheduling/encoded-schedule.store.js +54 -0
- package/dist/core/scheduling/in-memory-schedule.store.d.ts +20 -0
- package/dist/core/scheduling/in-memory-schedule.store.js +90 -0
- package/dist/core/scheduling/index.d.ts +3 -0
- package/dist/core/scheduling/index.js +3 -0
- package/dist/core/scheduling/rrule.util.d.ts +55 -0
- package/dist/core/scheduling/rrule.util.js +371 -0
- package/dist/core/scheduling/schedule-spec.d.ts +57 -0
- package/dist/core/scheduling/schedule-spec.js +233 -0
- package/dist/core/scheduling/scheduler.d.ts +134 -0
- package/dist/core/scheduling/scheduler.js +450 -0
- package/dist/core/scheduling/time-zone.util.d.ts +18 -0
- package/dist/core/scheduling/time-zone.util.js +88 -0
- package/dist/core/time/clock.d.ts +28 -0
- package/dist/core/time/clock.js +35 -0
- package/dist/core/time/duration.d.ts +21 -0
- package/dist/core/time/duration.js +30 -0
- package/dist/core/time/index.d.ts +2 -0
- package/dist/core/time/index.js +2 -0
- package/dist/core/utils/canonical.util.d.ts +2 -0
- package/dist/core/utils/canonical.util.js +4 -0
- package/dist/core/utils/maybe.util.d.ts +8 -0
- package/dist/core/utils/maybe.util.js +14 -0
- package/dist/core/utils/payload-place.util.d.ts +10 -0
- package/dist/core/utils/payload-place.util.js +32 -0
- package/dist/core/workers/index.d.ts +1 -0
- package/dist/core/workers/index.js +1 -0
- package/dist/core/workers/leased-worker.d.ts +86 -0
- package/dist/core/workers/leased-worker.js +280 -0
- package/dist/cqrs/decorators/index.d.ts +2 -0
- package/dist/cqrs/decorators/index.js +2 -0
- package/dist/cqrs/decorators/signal-on.decorator.d.ts +18 -0
- package/dist/cqrs/decorators/signal-on.decorator.js +34 -0
- package/dist/cqrs/decorators/start-on.decorator.d.ts +18 -0
- package/dist/cqrs/decorators/start-on.decorator.js +49 -0
- package/dist/cqrs/index.d.ts +3 -0
- package/dist/cqrs/index.js +5 -0
- package/dist/cqrs/interfaces/index.d.ts +4 -0
- package/dist/cqrs/interfaces/index.js +4 -0
- package/dist/cqrs/interfaces/signal-on-options.interface.d.ts +22 -0
- package/dist/cqrs/interfaces/signal-on-options.interface.js +1 -0
- package/dist/cqrs/interfaces/start-on-options.interface.d.ts +23 -0
- package/dist/cqrs/interfaces/start-on-options.interface.js +1 -0
- package/dist/cqrs/interfaces/workflow-dispatcher-context.interface.d.ts +10 -0
- package/dist/cqrs/interfaces/workflow-dispatcher-context.interface.js +1 -0
- package/dist/cqrs/interfaces/workflow-event-route.interface.d.ts +20 -0
- package/dist/cqrs/interfaces/workflow-event-route.interface.js +1 -0
- package/dist/cqrs/utils/event-routes.util.d.ts +7 -0
- package/dist/cqrs/utils/event-routes.util.js +22 -0
- package/dist/cqrs/workflow-event.publisher.d.ts +52 -0
- package/dist/cqrs/workflow-event.publisher.js +257 -0
- package/dist/cqrs/workflow-events.explorer.d.ts +27 -0
- package/dist/cqrs/workflow-events.explorer.js +92 -0
- package/dist/cqrs/workflows-cqrs.module.d.ts +10 -0
- package/dist/cqrs/workflows-cqrs.module.js +27 -0
- package/dist/decorators/index.d.ts +1 -0
- package/dist/decorators/index.js +1 -0
- package/dist/decorators/workflow.decorator.d.ts +7 -0
- package/dist/decorators/workflow.decorator.js +52 -0
- package/dist/errors/child-workflow-failed.error.d.ts +13 -0
- package/dist/errors/child-workflow-failed.error.js +14 -0
- package/dist/errors/index.d.ts +13 -0
- package/dist/errors/index.js +13 -0
- package/dist/errors/non-retryable-step.error.d.ts +4 -0
- package/dist/errors/non-retryable-step.error.js +7 -0
- package/dist/errors/step-failed.error.d.ts +15 -0
- package/dist/errors/step-failed.error.js +16 -0
- package/dist/errors/step-timeout.error.d.ts +5 -0
- package/dist/errors/step-timeout.error.js +8 -0
- package/dist/errors/workflow-definition.error.d.ts +10 -0
- package/dist/errors/workflow-definition.error.js +13 -0
- package/dist/errors/workflow-failed.error.d.ts +20 -0
- package/dist/errors/workflow-failed.error.js +17 -0
- package/dist/errors/workflow-id-conflict.error.d.ts +6 -0
- package/dist/errors/workflow-id-conflict.error.js +9 -0
- package/dist/errors/workflow-interrupt.error.d.ts +32 -0
- package/dist/errors/workflow-interrupt.error.js +19 -0
- package/dist/errors/workflow-non-determinism.error.d.ts +4 -0
- package/dist/errors/workflow-non-determinism.error.js +7 -0
- package/dist/errors/workflow-not-found.error.d.ts +10 -0
- package/dist/errors/workflow-not-found.error.js +13 -0
- package/dist/errors/workflow-result-timeout.error.d.ts +11 -0
- package/dist/errors/workflow-result-timeout.error.js +13 -0
- package/dist/errors/workflow-state.error.d.ts +11 -0
- package/dist/errors/workflow-state.error.js +14 -0
- package/dist/errors/workflow.error.d.ts +7 -0
- package/dist/errors/workflow.error.js +7 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +3 -0
- package/dist/events/workflow-events.interface.d.ts +145 -0
- package/dist/events/workflow-events.interface.js +1 -0
- package/dist/events/workflow-events.service.d.ts +17 -0
- package/dist/events/workflow-events.service.js +38 -0
- package/dist/events/workflows.channels.d.ts +3 -0
- package/dist/events/workflows.channels.js +9 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +23 -0
- package/dist/interfaces/index.d.ts +13 -0
- package/dist/interfaces/index.js +13 -0
- package/dist/interfaces/serialized-workflow-error.interface.d.ts +6 -0
- package/dist/interfaces/serialized-workflow-error.interface.js +1 -0
- package/dist/interfaces/workflow-client.interface.d.ts +156 -0
- package/dist/interfaces/workflow-client.interface.js +1 -0
- package/dist/interfaces/workflow-clock.interface.d.ts +7 -0
- package/dist/interfaces/workflow-clock.interface.js +1 -0
- package/dist/interfaces/workflow-context.interface.d.ts +241 -0
- package/dist/interfaces/workflow-context.interface.js +1 -0
- package/dist/interfaces/workflow-decorator-options.interface.d.ts +101 -0
- package/dist/interfaces/workflow-decorator-options.interface.js +1 -0
- package/dist/interfaces/workflow-instance.interface.d.ts +83 -0
- package/dist/interfaces/workflow-instance.interface.js +1 -0
- package/dist/interfaces/workflow-payload-codec.interface.d.ts +32 -0
- package/dist/interfaces/workflow-payload-codec.interface.js +1 -0
- package/dist/interfaces/workflow-retry-options.interface.d.ts +9 -0
- package/dist/interfaces/workflow-retry-options.interface.js +1 -0
- package/dist/interfaces/workflow-runner.interface.d.ts +11 -0
- package/dist/interfaces/workflow-runner.interface.js +1 -0
- package/dist/interfaces/workflow-schedule.interface.d.ts +104 -0
- package/dist/interfaces/workflow-schedule.interface.js +1 -0
- package/dist/interfaces/workflow-storage.interface.d.ts +4 -0
- package/dist/interfaces/workflow-storage.interface.js +1 -0
- package/dist/interfaces/workflow-store.interface.d.ts +488 -0
- package/dist/interfaces/workflow-store.interface.js +1 -0
- package/dist/interfaces/workflows-module-options.interface.d.ts +80 -0
- package/dist/interfaces/workflows-module-options.interface.js +1 -0
- package/dist/mysql/index.d.ts +5 -0
- package/dist/mysql/index.js +8 -0
- package/dist/mysql/interfaces/index.d.ts +1 -0
- package/dist/mysql/interfaces/index.js +1 -0
- package/dist/mysql/interfaces/mysql-workflow-store-options.interface.d.ts +25 -0
- package/dist/mysql/interfaces/mysql-workflow-store-options.interface.js +1 -0
- package/dist/mysql/key-limits.d.ts +30 -0
- package/dist/mysql/key-limits.js +41 -0
- package/dist/mysql/migrations/index.d.ts +7 -0
- package/dist/mysql/migrations/index.js +16 -0
- package/dist/mysql/migrations/initial.migration.d.ts +9 -0
- package/dist/mysql/migrations/initial.migration.js +104 -0
- package/dist/mysql/mysql-workflow.store.d.ts +197 -0
- package/dist/mysql/mysql-workflow.store.js +828 -0
- package/dist/postgres/errors/index.d.ts +1 -0
- package/dist/postgres/errors/index.js +2 -0
- package/dist/postgres/index.d.ts +5 -0
- package/dist/postgres/index.js +8 -0
- package/dist/postgres/interfaces/index.d.ts +1 -0
- package/dist/postgres/interfaces/index.js +1 -0
- package/dist/postgres/interfaces/postgres-workflow-store-options.interface.d.ts +22 -0
- package/dist/postgres/interfaces/postgres-workflow-store-options.interface.js +1 -0
- package/dist/postgres/migrations/index.d.ts +6 -0
- package/dist/postgres/migrations/index.js +15 -0
- package/dist/postgres/migrations/initial.migration.d.ts +6 -0
- package/dist/postgres/migrations/initial.migration.js +106 -0
- package/dist/postgres/postgres-workflow.store.d.ts +132 -0
- package/dist/postgres/postgres-workflow.store.js +586 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.js +6 -0
- package/dist/services/workflow-client.service.d.ts +146 -0
- package/dist/services/workflow-client.service.js +436 -0
- package/dist/services/workflow-execution.service.d.ts +267 -0
- package/dist/services/workflow-execution.service.js +1076 -0
- package/dist/services/workflow-registry.service.d.ts +56 -0
- package/dist/services/workflow-registry.service.js +172 -0
- package/dist/services/workflow-scheduler.service.d.ts +54 -0
- package/dist/services/workflow-scheduler.service.js +173 -0
- package/dist/services/workflow-schedules.service.d.ts +60 -0
- package/dist/services/workflow-schedules.service.js +193 -0
- package/dist/services/workflow-worker.service.d.ts +92 -0
- package/dist/services/workflow-worker.service.js +468 -0
- package/dist/signals/index.d.ts +1 -0
- package/dist/signals/index.js +1 -0
- package/dist/signals/workflow.signal.d.ts +17 -0
- package/dist/signals/workflow.signal.js +28 -0
- package/dist/sql/rate-windows.d.ts +41 -0
- package/dist/sql/rate-windows.js +53 -0
- package/dist/sql/workflow-rows.d.ts +16 -0
- package/dist/sql/workflow-rows.js +102 -0
- package/dist/sql/workflow-schema.error.d.ts +21 -0
- package/dist/sql/workflow-schema.error.js +15 -0
- package/dist/storage/encoded-workflow.store.d.ts +71 -0
- package/dist/storage/encoded-workflow.store.js +201 -0
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.js +1 -0
- package/dist/storage/workflow.storage.d.ts +55 -0
- package/dist/storage/workflow.storage.js +159 -0
- package/dist/stores/in-memory-workflow.store.d.ts +75 -0
- package/dist/stores/in-memory-workflow.store.js +380 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.js +1 -0
- package/dist/testing/assertions.d.ts +10 -0
- package/dist/testing/assertions.js +72 -0
- package/dist/testing/index.d.ts +38 -0
- package/dist/testing/index.js +1089 -0
- package/dist/testing/schedule-store.contract.d.ts +33 -0
- package/dist/testing/schedule-store.contract.js +161 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/journal-limits.util.d.ts +6 -0
- package/dist/utils/journal-limits.util.js +25 -0
- package/dist/utils/new-instance.util.d.ts +26 -0
- package/dist/utils/new-instance.util.js +87 -0
- package/dist/utils/normalize.util.d.ts +5 -0
- package/dist/utils/normalize.util.js +11 -0
- package/dist/utils/run-timeout.util.d.ts +3 -0
- package/dist/utils/run-timeout.util.js +15 -0
- package/dist/utils/schedule-spec.util.d.ts +16 -0
- package/dist/utils/schedule-spec.util.js +9 -0
- package/dist/utils/schedule-store.util.d.ts +15 -0
- package/dist/utils/schedule-store.util.js +44 -0
- package/dist/utils/serialize-error.util.d.ts +7 -0
- package/dist/utils/serialize-error.util.js +22 -0
- package/dist/utils/step-scope.util.d.ts +16 -0
- package/dist/utils/step-scope.util.js +38 -0
- package/dist/workflows.constants.d.ts +10 -0
- package/dist/workflows.constants.js +10 -0
- package/dist/workflows.module-definition.d.ts +4 -0
- package/dist/workflows.module-definition.js +6 -0
- package/dist/workflows.module.d.ts +24 -0
- package/dist/workflows.module.js +68 -0
- package/package.json +123 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type DynamicModule, type OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import { WorkflowStorage } from './storage/workflow.storage.js';
|
|
3
|
+
import { ConfigurableModuleClass } from './workflows.module-definition.js';
|
|
4
|
+
import type { WorkflowsModuleOptions } from './interfaces/workflows-module-options.interface.js';
|
|
5
|
+
/**
|
|
6
|
+
* `WorkflowsModule.forRoot({ clock?, worker?, retry?, journal?, allowInMemoryStorage?, codec? })`, or
|
|
7
|
+
* `forRootAsync({ imports, inject, useFactory | useClass | useExisting })`. Global by default.
|
|
8
|
+
* `@Workflow()` classes are regular providers of any module. The store is not an option: a
|
|
9
|
+
* provider registers it with `WorkflowStorage.registerSource(this)`, and without one the
|
|
10
|
+
* module keeps its state in memory.
|
|
11
|
+
*/
|
|
12
|
+
export declare class WorkflowsModule extends ConfigurableModuleClass implements OnModuleInit {
|
|
13
|
+
private readonly storage;
|
|
14
|
+
static forRoot(options?: WorkflowsModuleOptions & {
|
|
15
|
+
isGlobal?: boolean;
|
|
16
|
+
}): DynamicModule;
|
|
17
|
+
constructor(storage: WorkflowStorage);
|
|
18
|
+
/**
|
|
19
|
+
* Every provider constructor has run (so every source has registered), and the worker
|
|
20
|
+
* starts later, in `onApplicationBootstrap`: the registry locks here (if a read in another
|
|
21
|
+
* module's `onModuleInit` hasn't locked it already).
|
|
22
|
+
*/
|
|
23
|
+
onModuleInit(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Module } from '@nestjs/common';
|
|
11
|
+
import { DiscoveryModule, ModuleRef } from '@nestjs/core';
|
|
12
|
+
import { WorkflowEvents } from './events/workflow-events.service.js';
|
|
13
|
+
import { LOCK_STORAGE, WorkflowStorage } from './storage/workflow.storage.js';
|
|
14
|
+
import { WorkflowClient } from './services/workflow-client.service.js';
|
|
15
|
+
import { WorkflowRegistry } from './services/workflow-registry.service.js';
|
|
16
|
+
import { WorkflowScheduler } from './services/workflow-scheduler.service.js';
|
|
17
|
+
import { WorkflowSchedules } from './services/workflow-schedules.service.js';
|
|
18
|
+
import { WorkflowWorker } from './services/workflow-worker.service.js';
|
|
19
|
+
import { ConfigurableModuleClass, WORKFLOWS_MODULE_OPTIONS } from './workflows.module-definition.js';
|
|
20
|
+
import { WORKFLOW_PAYLOAD_CODECS } from './workflows.constants.js';
|
|
21
|
+
/**
|
|
22
|
+
* `WorkflowsModule.forRoot({ clock?, worker?, retry?, journal?, allowInMemoryStorage?, codec? })`, or
|
|
23
|
+
* `forRootAsync({ imports, inject, useFactory | useClass | useExisting })`. Global by default.
|
|
24
|
+
* `@Workflow()` classes are regular providers of any module. The store is not an option: a
|
|
25
|
+
* provider registers it with `WorkflowStorage.registerSource(this)`, and without one the
|
|
26
|
+
* module keeps its state in memory.
|
|
27
|
+
*/
|
|
28
|
+
let WorkflowsModule = class WorkflowsModule extends ConfigurableModuleClass {
|
|
29
|
+
static forRoot(options = {}) {
|
|
30
|
+
return super.forRoot(options);
|
|
31
|
+
}
|
|
32
|
+
constructor(storage) {
|
|
33
|
+
super();
|
|
34
|
+
this.storage = storage;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Every provider constructor has run (so every source has registered), and the worker
|
|
38
|
+
* starts later, in `onApplicationBootstrap`: the registry locks here (if a read in another
|
|
39
|
+
* module's `onModuleInit` hasn't locked it already).
|
|
40
|
+
*/
|
|
41
|
+
onModuleInit() {
|
|
42
|
+
this.storage[LOCK_STORAGE]();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
WorkflowsModule = __decorate([
|
|
46
|
+
Module({
|
|
47
|
+
imports: [DiscoveryModule],
|
|
48
|
+
providers: [
|
|
49
|
+
{ provide: WORKFLOW_PAYLOAD_CODECS, inject: [WORKFLOWS_MODULE_OPTIONS, ModuleRef], useFactory: payloadCodecs },
|
|
50
|
+
WorkflowStorage,
|
|
51
|
+
WorkflowRegistry,
|
|
52
|
+
WorkflowEvents,
|
|
53
|
+
WorkflowScheduler,
|
|
54
|
+
WorkflowWorker,
|
|
55
|
+
WorkflowSchedules,
|
|
56
|
+
WorkflowClient,
|
|
57
|
+
],
|
|
58
|
+
// WorkflowRegistry is not public API (nor in the barrel): WorkflowsCqrsModule reads it.
|
|
59
|
+
exports: [WorkflowStorage, WorkflowClient, WorkflowSchedules, WorkflowWorker, WorkflowEvents, WorkflowRegistry],
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:paramtypes", [WorkflowStorage])
|
|
62
|
+
], WorkflowsModule);
|
|
63
|
+
export { WorkflowsModule };
|
|
64
|
+
/** `codec`'s codecs, with the classes created by Nest (their dependencies from this module's scope). */
|
|
65
|
+
function payloadCodecs(options, moduleRef) {
|
|
66
|
+
const codecs = options.codec === undefined ? [] : Array.isArray(options.codec) ? options.codec : [options.codec];
|
|
67
|
+
return Promise.all(codecs.map((codec) => (typeof codec === 'function' ? moduleRef.create(codec) : codec)));
|
|
68
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nestjs/workflows",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Nest - modern, fast, powerful node.js web framework (@workflows)",
|
|
5
|
+
"author": "Kamil Mysliwiec",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"url": "https://github.com/nestjs/workflows#readme",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"bin": {
|
|
12
|
+
"nest-workflows": "./dist/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./testing": {
|
|
21
|
+
"types": "./dist/testing/index.d.ts",
|
|
22
|
+
"import": "./dist/testing/index.js",
|
|
23
|
+
"default": "./dist/testing/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./cqrs": {
|
|
26
|
+
"types": "./dist/cqrs/index.d.ts",
|
|
27
|
+
"import": "./dist/cqrs/index.js",
|
|
28
|
+
"default": "./dist/cqrs/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./postgres": {
|
|
31
|
+
"types": "./dist/postgres/index.d.ts",
|
|
32
|
+
"import": "./dist/postgres/index.js",
|
|
33
|
+
"default": "./dist/postgres/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./mysql": {
|
|
36
|
+
"types": "./dist/mysql/index.d.ts",
|
|
37
|
+
"import": "./dist/mysql/index.js",
|
|
38
|
+
"default": "./dist/mysql/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./core": {
|
|
41
|
+
"types": "./dist/core/index.d.ts",
|
|
42
|
+
"import": "./dist/core/index.js",
|
|
43
|
+
"default": "./dist/core/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./package.json": "./package.json"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=20.19.0"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
52
|
+
"format": "prettier --write \"**/*.ts\"",
|
|
53
|
+
"lint": "oxlint lib/",
|
|
54
|
+
"generate:prisma": "prisma generate --config tests/fixtures/prisma/prisma.config.ts && prisma generate --config tests/fixtures/prisma-mysql/prisma.config.ts",
|
|
55
|
+
"prepublish:npm": "npm run build",
|
|
56
|
+
"publish:npm": "npm publish --access public",
|
|
57
|
+
"prepublish:next": "npm run build",
|
|
58
|
+
"publish:next": "npm publish --access public --tag next",
|
|
59
|
+
"test:e2e": "vitest run",
|
|
60
|
+
"test:e2e:dev": "vitest",
|
|
61
|
+
"prerelease": "npm run build",
|
|
62
|
+
"release": "release-it",
|
|
63
|
+
"prepare": "husky"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@nestjs/store-kit": "^0.1.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@commitlint/cli": "21.2.3",
|
|
70
|
+
"@commitlint/config-angular": "21.2.3",
|
|
71
|
+
"@electric-sql/pglite": "0.5.8",
|
|
72
|
+
"@nestjs/common": "12.1.0",
|
|
73
|
+
"@nestjs/core": "12.1.0",
|
|
74
|
+
"@nestjs/cqrs": "12.1.0",
|
|
75
|
+
"@nestjs/drizzle": "0.0.1",
|
|
76
|
+
"@nestjs/locks": "0.0.1",
|
|
77
|
+
"@nestjs/mail": "0.0.1",
|
|
78
|
+
"@nestjs/outbox": "0.0.1",
|
|
79
|
+
"@nestjs/platform-express": "12.1.0",
|
|
80
|
+
"@nestjs/platform-fastify": "12.1.0",
|
|
81
|
+
"@nestjs/testing": "12.1.0",
|
|
82
|
+
"@prisma/adapter-mariadb": "7.10.0",
|
|
83
|
+
"@prisma/adapter-pg": "7.10.0",
|
|
84
|
+
"@prisma/client": "7.10.0",
|
|
85
|
+
"@types/node": "24.13.6",
|
|
86
|
+
"@types/pg": "8.23.1",
|
|
87
|
+
"drizzle-orm": "0.45.3",
|
|
88
|
+
"husky": "9.1.7",
|
|
89
|
+
"kysely": "0.29.6",
|
|
90
|
+
"lint-staged": "17.5.1",
|
|
91
|
+
"mysql2": "3.24.5",
|
|
92
|
+
"oxlint": "1.85.0",
|
|
93
|
+
"pg": "8.23.0",
|
|
94
|
+
"prettier": "3.9.8",
|
|
95
|
+
"prisma": "7.10.0",
|
|
96
|
+
"reflect-metadata": "0.2.2",
|
|
97
|
+
"release-it": "21.1.0",
|
|
98
|
+
"rxjs": "7.8.2",
|
|
99
|
+
"typeorm": "1.1.1",
|
|
100
|
+
"typescript": "7.0.2",
|
|
101
|
+
"vite": "8.3.0",
|
|
102
|
+
"vitest": "5.0.1"
|
|
103
|
+
},
|
|
104
|
+
"peerDependencies": {
|
|
105
|
+
"@nestjs/common": "^11.0.0 || ^12.0.0",
|
|
106
|
+
"@nestjs/core": "^11.0.0 || ^12.0.0",
|
|
107
|
+
"@nestjs/cqrs": "^11.0.0 || ^12.0.0",
|
|
108
|
+
"reflect-metadata": "^0.1.13 || ^0.2.0",
|
|
109
|
+
"rxjs": "^7.1.0"
|
|
110
|
+
},
|
|
111
|
+
"peerDependenciesMeta": {
|
|
112
|
+
"@nestjs/cqrs": {
|
|
113
|
+
"optional": true
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"lint-staged": {
|
|
117
|
+
"**/*.{ts,json}": []
|
|
118
|
+
},
|
|
119
|
+
"repository": {
|
|
120
|
+
"type": "git",
|
|
121
|
+
"url": "https://github.com/nestjs/workflows"
|
|
122
|
+
}
|
|
123
|
+
}
|