@dudousxd/nestjs-durable-testing 0.14.0 → 0.16.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.ts +14 -0
- package/dist/index.js +1060 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -2
package/dist/index.d.ts
CHANGED
|
@@ -120,6 +120,18 @@ declare const DURABLE_CANONICAL_COLUMNS: {
|
|
|
120
120
|
readonly payload: "payload";
|
|
121
121
|
readonly publishedAt: "published_at";
|
|
122
122
|
};
|
|
123
|
+
readonly durable_schedules: {
|
|
124
|
+
readonly id: "id";
|
|
125
|
+
readonly namespace: "namespace";
|
|
126
|
+
readonly workflow: "workflow";
|
|
127
|
+
readonly paused: "paused";
|
|
128
|
+
readonly nextFireAt: "next_fire_at";
|
|
129
|
+
readonly tags: "tags";
|
|
130
|
+
readonly spec: "spec";
|
|
131
|
+
readonly state: "state";
|
|
132
|
+
readonly createdAt: "created_at";
|
|
133
|
+
readonly updatedAt: "updated_at";
|
|
134
|
+
};
|
|
123
135
|
};
|
|
124
136
|
type DurableColumnMap = typeof DURABLE_CANONICAL_COLUMNS;
|
|
125
137
|
/** A single column-name disagreement found by {@link assertDurableColumns}. */
|
|
@@ -196,6 +208,8 @@ declare function assertReplayable(register: (engine: WorkflowEngine) => void, hi
|
|
|
196
208
|
*/
|
|
197
209
|
interface StateStoreContext {
|
|
198
210
|
store: StateStore;
|
|
211
|
+
/** A second wrapper sharing the database/pool, used to exercise cross-instance claims. */
|
|
212
|
+
peerStore?: StateStore;
|
|
199
213
|
cleanup: () => Promise<void>;
|
|
200
214
|
/**
|
|
201
215
|
* Whether the store's optional `transaction` can run an ASYNC work callback. Defaults to `true`.
|