@tsed/temporal 8.34.0 → 8.36.0
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,10 +1,10 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
-
import { classOf } from "@tsed/core";
|
|
3
2
|
import { Inject, InjectorService, Module } from "@tsed/di";
|
|
3
|
+
import { TEMPORAL_STORE_KEY } from "./interfaces/TemporalStore.js";
|
|
4
4
|
import { Logger } from "@tsed/logger";
|
|
5
5
|
import { PROVIDER_TYPE_TEMPORAL } from "./constants.js";
|
|
6
|
-
import { TEMPORAL_STORE_KEY } from "./interfaces/TemporalStore.js";
|
|
7
6
|
import { TemporalClient } from "./services/TemporalFactory.js";
|
|
7
|
+
import { classOf } from "@tsed/core";
|
|
8
8
|
let TemporalModule = class TemporalModule {
|
|
9
9
|
constructor(temporalServices) {
|
|
10
10
|
this.temporalServices = temporalServices;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useDecorators } from "@tsed/core";
|
|
2
1
|
import { Injectable } from "@tsed/di";
|
|
3
2
|
import { PROVIDER_TYPE_TEMPORAL } from "../constants.js";
|
|
3
|
+
import { useDecorators } from "@tsed/core";
|
|
4
4
|
export function Temporal() {
|
|
5
5
|
return useDecorators(Injectable({
|
|
6
6
|
type: PROVIDER_TYPE_TEMPORAL
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/temporal",
|
|
3
|
+
"version": "8.36.0",
|
|
3
4
|
"description": "Temporal.io package for Ts.ED framework",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"version": "8.34.0",
|
|
6
5
|
"source": "./src/index.ts",
|
|
6
|
+
"type": "module",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
9
9
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
"@temporalio/client": "1.13.0",
|
|
30
30
|
"@temporalio/testing": "1.13.0",
|
|
31
31
|
"@temporalio/worker": "1.13.0",
|
|
32
|
-
"@tsed/barrels": "8.
|
|
33
|
-
"@tsed/core": "8.
|
|
34
|
-
"@tsed/di": "8.
|
|
35
|
-
"@tsed/platform-http": "8.
|
|
36
|
-
"@tsed/typescript": "8.
|
|
32
|
+
"@tsed/barrels": "8.36.0",
|
|
33
|
+
"@tsed/core": "8.36.0",
|
|
34
|
+
"@tsed/di": "8.36.0",
|
|
35
|
+
"@tsed/platform-http": "8.36.0",
|
|
36
|
+
"@tsed/typescript": "8.36.0",
|
|
37
37
|
"cross-env": "7.0.3",
|
|
38
|
-
"eslint": "9.12.0",
|
|
39
38
|
"typescript": "6.0.2",
|
|
40
39
|
"vitest": "4.1.4"
|
|
41
40
|
},
|
package/readme.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
<h1>Temporal</h1>
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
[](https://github.com/tsedio/tsed/actions?query=workflow%3A%22Build+%26+Release%22)
|
|
10
10
|
[](https://github.com/tsedio/tsed/blob/master/CONTRIBUTING.md)
|
|
11
11
|
[](https://badge.fury.io/js/%40tsed%2Fcommon)
|
|
@@ -61,12 +61,8 @@ import "@tsed/temporal"; // import temporal ts.ed module
|
|
|
61
61
|
@Configuration({
|
|
62
62
|
temporal: {
|
|
63
63
|
enabled: true,
|
|
64
|
-
connection: {
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
client: {
|
|
68
|
-
/* optional: see ClientOptions of @temporalio/client */
|
|
69
|
-
}
|
|
64
|
+
connection: {/* optional: see ConnectionOptions of @temporalio/client */},
|
|
65
|
+
client: {/* optional: see ClientOptions of @temporalio/client */}
|
|
70
66
|
}
|
|
71
67
|
})
|
|
72
68
|
export class Server {}
|
|
@@ -215,9 +211,7 @@ const worker = await bootstrapWorker(Server, {
|
|
|
215
211
|
taskQueue: "onboarding",
|
|
216
212
|
workflowsPath: require.resolve("./temporal") // other example: path.join(process.cwd(), 'dist/apps/api/temporal/index.ts');
|
|
217
213
|
},
|
|
218
|
-
connection: {
|
|
219
|
-
/* optional: see NativeConnectionOptions of @temporalio/worker */
|
|
220
|
-
},
|
|
214
|
+
connection: {/* optional: see NativeConnectionOptions of @temporalio/worker */},
|
|
221
215
|
platform: {
|
|
222
216
|
/* optional: see PlatformBuilderSettings of @tsed/platform-http */
|
|
223
217
|
componentsScan: false,
|