@restatedev/restate-sdk-testcontainers 1.18.3 → 1.19.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.
- package/dist/index.d.cts +0 -1
- package/dist/restate-sdk/src/node.d.ts +1 -1
- package/dist/restate-sdk/src/types/rpc.d.cts +8 -0
- package/dist/restate-sdk/src/types/rpc.d.cts.map +1 -1
- package/dist/restate-sdk/src/types/rpc.d.ts +8 -0
- package/dist/restate-sdk/src/types/rpc.d.ts.map +1 -1
- package/dist/restate_test_environment.d.cts +1 -2
- package/dist/restate_test_environment.d.cts.map +1 -1
- package/package.json +3 -3
- package/dist/restate-sdk/src/index.d.cts +0 -12
- package/dist/restate-sdk/src/node.d.cts +0 -12
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,5 @@ import { InvocationId, Request, Target, TypedState, UntypedState } from "./resta
|
|
|
9
9
|
import { LogMetadata, LogSource, LoggerContext, LoggerTransport, RestateLogLevel } from "./restate-sdk/src/logging/logger_transport.cjs";
|
|
10
10
|
import { DefaultServiceOptions, RestateEndpoint, RestateEndpointBase } from "./restate-sdk/src/endpoint.cjs";
|
|
11
11
|
import { EndpointOptions } from "./restate-sdk/src/endpoint/types.cjs";
|
|
12
|
-
import "./restate-sdk/src/index.cjs";
|
|
13
12
|
import { RestateContainer, RestateTestEnvironment, ServiceEndpointAccess, StateProxy, TestEnvironmentOptions, TestEnvironmentStorage } from "./restate_test_environment.cjs";
|
|
14
13
|
export { type DefaultServiceOptions, type Duration, type EndpointOptions, type Hooks, type HooksProvider, type Interceptor, type InvocationId, type JournalValueCodec, type LogMetadata, type LogSource, type LoggerContext, type LoggerTransport, type ObjectOptions, type Request, RestateContainer, type RestateEndpoint, type RestateEndpointBase, type RestateError, type RestateLogLevel, RestateTestEnvironment, type RetryPolicy, type Serde, type ServiceDefinition, type ServiceEndpointAccess, type ServiceOptions, type StatePreload, StateProxy, type Target, type TerminalError, type TestEnvironmentOptions, type TestEnvironmentStorage, type TypedState, type UntypedState, type VirtualObjectDefinition, type WorkflowDefinition, type WorkflowOptions };
|
|
@@ -75,6 +75,14 @@ type ServiceOptions = {
|
|
|
75
75
|
* Note: Available only when registering this endpoint with restate-server v1.4 or newer; otherwise service discovery will fail.
|
|
76
76
|
*/
|
|
77
77
|
inactivityTimeout?: Duration | number;
|
|
78
|
+
/**
|
|
79
|
+
* When enabled, Restate may preempt the invocation when idle (e.g. awaiting a call or a signal),
|
|
80
|
+
* suspending it before `inactivityTimeout` expires, in order to free up capacity for other invocations.
|
|
81
|
+
* Disabling preemption keeps this invocation's resources held while it waits, at the cost of capacity for other invocations.
|
|
82
|
+
*
|
|
83
|
+
* Note: Supported only with restate-server >= 1.8.2.
|
|
84
|
+
*/
|
|
85
|
+
preemptable?: boolean;
|
|
78
86
|
/**
|
|
79
87
|
* Guards against invocations that fail to terminate after inactivity.
|
|
80
88
|
* The abort timeout starts after `inactivityTimeout` expires and a graceful termination was requested.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.cts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"rpc.d.cts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;KA0oBY,YAAA;;;KA8WA,WAAA;;;;;;;;;;;;;;;;;;;;oBAsBQ;;;;;;;gBAQJ;;;;;;KAQJ,cAAA;;;;;;yBAMa;;;;;;;;qBASJ;;;;;;;;;;;sBAYC;;;;;;;;;;;;;;;;;;;;iBAsBL;;;;;;;;;;;gBAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsCoB;;;;;;UAO1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDA;;;;;;;;;;;;;;;;;;;;;;;;KAsJE,aAAA,GAAgB;;;;;;UAMlB;;;;;;;KAkIE,eAAA,GAAkB;;;;;;;sBAOR;;;;;;UAMZ"}
|
|
@@ -75,6 +75,14 @@ type ServiceOptions = {
|
|
|
75
75
|
* Note: Available only when registering this endpoint with restate-server v1.4 or newer; otherwise service discovery will fail.
|
|
76
76
|
*/
|
|
77
77
|
inactivityTimeout?: Duration | number;
|
|
78
|
+
/**
|
|
79
|
+
* When enabled, Restate may preempt the invocation when idle (e.g. awaiting a call or a signal),
|
|
80
|
+
* suspending it before `inactivityTimeout` expires, in order to free up capacity for other invocations.
|
|
81
|
+
* Disabling preemption keeps this invocation's resources held while it waits, at the cost of capacity for other invocations.
|
|
82
|
+
*
|
|
83
|
+
* Note: Supported only with restate-server >= 1.8.2.
|
|
84
|
+
*/
|
|
85
|
+
preemptable?: boolean;
|
|
78
86
|
/**
|
|
79
87
|
* Guards against invocations that fail to terminate after inactivity.
|
|
80
88
|
* The abort timeout starts after `inactivityTimeout` expires and a graceful termination was requested.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;KA0oBY,YAAA;;;KA8WA,WAAA;;;;;;;;;;;;;;;;;;;;oBAsBQ;;;;;;;gBAQJ;;;;;;KAQJ,cAAA;;;;;;yBAMa;;;;;;;;qBASJ;;;;;;;;;;;sBAYC;;;;;;;;;;;;;;;;;;;;iBAsBL;;;;;;;;;;;gBAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsCoB;;;;;;UAO1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDA;;;;;;;;;;;;;;;;;;;;;;;;KAsJE,aAAA,GAAgB;;;;;;UAMlB;;;;;;;KAkIE,eAAA,GAAkB;;;;;;;sBAOR;;;;;;UAMZ"}
|
|
@@ -2,9 +2,8 @@ import { VirtualObjectDefinition, WorkflowDefinition } from "./restate-sdk-core/
|
|
|
2
2
|
import { Serde } from "./restate-sdk-core/src/serde_api.cjs";
|
|
3
3
|
import { TypedState, UntypedState } from "./restate-sdk/src/context.cjs";
|
|
4
4
|
import { EndpointOptions } from "./restate-sdk/src/endpoint/types.cjs";
|
|
5
|
-
import "./restate-sdk/src/index.cjs";
|
|
6
|
-
import * as http2 from "http2";
|
|
7
5
|
import { GenericContainer, StartedTestContainer } from "testcontainers";
|
|
6
|
+
import * as http2 from "http2";
|
|
8
7
|
|
|
9
8
|
//#region src/restate_test_environment.d.ts
|
|
10
9
|
type ServiceEndpointAccess = "testcontainers" | "docker-host";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restate_test_environment.d.cts","names":[],"sources":["../src/restate_test_environment.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restate_test_environment.d.cts","names":[],"sources":["../src/restate_test_environment.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAkCY,qBAAA;KAEA,sBAAA;UAyLK,sBAAA,SAA+B;;;AA3LhD;AAEA;AAyLA;;;;;;AAsDA;;EAGsC,SAAA,CAAA,EAAA,GAAA,GA5ClB,gBA4CkB;EADC;;;;;;;;;;;;EAkClC,qBAAA,CAAA,EA/DqB,qBA+DrB;EAAO;AAsCZ;AA8BA;;;;;;EAUkB,OAAA,CAAA,EAnIN,sBAmIM;EAAe;;;;;EACnB,YAAA,CAAA,EAAA,OAAA;EAAe;;;;;EAkCS,cAAA,CAAA,EAAA,OAAA;;AAEjB,cAvJR,sBAAA,CAuJQ;EACX,SAAA,wBAAA,EAtJ6B,KAAA,CAAM,WAsJnC;EAAc,SAAA,uBAAA,EArJc,oBAqJd;EACd,WAAA,CAAA,wBAAA,EAvJ6B,KAAA,CAAM,WAuJnC,EAAA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ript SDK for Restate",
|
|
5
5
|
"author": "Restate Developers",
|
|
6
6
|
"email": "code@restate.dev",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"apache-arrow": "^18.0.0",
|
|
36
36
|
"testcontainers": "^11.12.0",
|
|
37
|
-
"@restatedev/restate-sdk": "1.
|
|
38
|
-
"@restatedev/restate-sdk-clients": "1.
|
|
37
|
+
"@restatedev/restate-sdk": "1.19.0",
|
|
38
|
+
"@restatedev/restate-sdk-clients": "1.19.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {},
|
|
41
41
|
"scripts": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ServiceDefinition, VirtualObjectDefinition, WorkflowDefinition } from "../../restate-sdk-core/src/core.cjs";
|
|
2
|
-
import { Serde } from "../../restate-sdk-core/src/serde_api.cjs";
|
|
3
|
-
import { Duration } from "../../restate-sdk-core/src/duration.cjs";
|
|
4
|
-
import { JournalValueCodec } from "../../restate-sdk-core/src/entry_codec.cjs";
|
|
5
|
-
import { RestateError, TerminalError } from "./types/errors.cjs";
|
|
6
|
-
import { Hooks, HooksProvider, Interceptor } from "./hooks.cjs";
|
|
7
|
-
import { ObjectOptions, RetryPolicy, ServiceOptions, StatePreload, WorkflowOptions } from "./types/rpc.cjs";
|
|
8
|
-
import { InvocationId, Request, Target, TypedState, UntypedState } from "./context.cjs";
|
|
9
|
-
import { LogMetadata, LogSource, LoggerContext, LoggerTransport, RestateLogLevel } from "./logging/logger_transport.cjs";
|
|
10
|
-
import { DefaultServiceOptions, RestateEndpoint, RestateEndpointBase } from "./endpoint.cjs";
|
|
11
|
-
import { EndpointOptions } from "./endpoint/types.cjs";
|
|
12
|
-
import "./node.cjs";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ServiceDefinition, VirtualObjectDefinition, WorkflowDefinition } from "../../restate-sdk-core/src/core.cjs";
|
|
2
|
-
import { Serde } from "../../restate-sdk-core/src/serde_api.cjs";
|
|
3
|
-
import { Duration } from "../../restate-sdk-core/src/duration.cjs";
|
|
4
|
-
import { JournalValueCodec } from "../../restate-sdk-core/src/entry_codec.cjs";
|
|
5
|
-
import { RestateError, TerminalError } from "./types/errors.cjs";
|
|
6
|
-
import { Hooks, HooksProvider, Interceptor } from "./hooks.cjs";
|
|
7
|
-
import { ObjectOptions, RetryPolicy, ServiceOptions, StatePreload, WorkflowOptions } from "./types/rpc.cjs";
|
|
8
|
-
import { InvocationId, Request, Target, TypedState, UntypedState } from "./context.cjs";
|
|
9
|
-
import { LogMetadata, LogSource, LoggerContext, LoggerTransport, RestateLogLevel } from "./logging/logger_transport.cjs";
|
|
10
|
-
import { DefaultServiceOptions, RestateEndpoint, RestateEndpointBase } from "./endpoint.cjs";
|
|
11
|
-
import { EndpointOptions } from "./endpoint/types.cjs";
|
|
12
|
-
import "http2";
|