@hotmeshio/hotmesh 0.3.31 → 0.4.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/README.md +128 -823
- package/build/index.d.ts +9 -9
- package/build/index.js +10 -10
- package/build/package.json +22 -21
- package/build/types/error.d.ts +5 -5
- package/build/types/exporter.d.ts +1 -1
- package/build/types/index.d.ts +3 -3
- package/build/types/manifest.d.ts +2 -2
- package/build/types/{meshflow.d.ts → memflow.d.ts} +15 -15
- package/build/types/meshdata.d.ts +3 -3
- package/build/types/postgres.d.ts +7 -0
- package/build/types/stream.d.ts +3 -0
- package/index.ts +11 -11
- package/package.json +22 -21
- package/typedoc.json +8 -7
- package/types/error.ts +5 -5
- package/types/exporter.ts +1 -1
- package/types/index.ts +7 -7
- package/types/manifest.ts +2 -2
- package/types/{meshflow.ts → memflow.ts} +15 -15
- package/types/meshdata.ts +3 -3
- package/types/postgres.ts +9 -0
- package/types/stream.ts +4 -0
- package/build/modules/enums.d.ts +0 -108
- package/build/modules/enums.js +0 -132
- package/build/modules/errors.d.ts +0 -124
- package/build/modules/errors.js +0 -191
- package/build/modules/key.d.ts +0 -66
- package/build/modules/key.js +0 -1
- package/build/modules/storage.d.ts +0 -3
- package/build/modules/storage.js +0 -5
- package/build/modules/utils.d.ts +0 -119
- package/build/modules/utils.js +0 -1
- package/build/services/activities/activity.d.ts +0 -104
- package/build/services/activities/activity.js +0 -1
- package/build/services/activities/await.d.ts +0 -12
- package/build/services/activities/await.js +0 -1
- package/build/services/activities/cycle.d.ts +0 -19
- package/build/services/activities/cycle.js +0 -1
- package/build/services/activities/hook.d.ts +0 -27
- package/build/services/activities/hook.js +0 -1
- package/build/services/activities/index.d.ts +0 -19
- package/build/services/activities/index.js +0 -1
- package/build/services/activities/interrupt.d.ts +0 -16
- package/build/services/activities/interrupt.js +0 -1
- package/build/services/activities/signal.d.ts +0 -20
- package/build/services/activities/signal.js +0 -1
- package/build/services/activities/trigger.d.ts +0 -37
- package/build/services/activities/trigger.js +0 -1
- package/build/services/activities/worker.d.ts +0 -12
- package/build/services/activities/worker.js +0 -1
- package/build/services/collator/index.d.ts +0 -111
- package/build/services/collator/index.js +0 -1
- package/build/services/compiler/deployer.d.ts +0 -40
- package/build/services/compiler/deployer.js +0 -1
- package/build/services/compiler/index.d.ts +0 -32
- package/build/services/compiler/index.js +0 -1
- package/build/services/compiler/validator.d.ts +0 -34
- package/build/services/compiler/validator.js +0 -1
- package/build/services/connector/factory.d.ts +0 -22
- package/build/services/connector/factory.js +0 -99
- package/build/services/connector/index.d.ts +0 -30
- package/build/services/connector/index.js +0 -54
- package/build/services/connector/providers/ioredis.d.ts +0 -9
- package/build/services/connector/providers/ioredis.js +0 -26
- package/build/services/connector/providers/nats.d.ts +0 -9
- package/build/services/connector/providers/nats.js +0 -34
- package/build/services/connector/providers/postgres.d.ts +0 -20
- package/build/services/connector/providers/postgres.js +0 -102
- package/build/services/connector/providers/redis.d.ts +0 -9
- package/build/services/connector/providers/redis.js +0 -38
- package/build/services/engine/index.d.ts +0 -264
- package/build/services/engine/index.js +0 -1
- package/build/services/exporter/index.d.ts +0 -44
- package/build/services/exporter/index.js +0 -1
- package/build/services/hotmesh/index.d.ts +0 -340
- package/build/services/hotmesh/index.js +0 -479
- package/build/services/logger/index.d.ts +0 -16
- package/build/services/logger/index.js +0 -54
- package/build/services/mapper/index.d.ts +0 -28
- package/build/services/mapper/index.js +0 -1
- package/build/services/meshcall/index.d.ts +0 -194
- package/build/services/meshcall/index.js +0 -452
- package/build/services/meshcall/schemas/factory.d.ts +0 -9
- package/build/services/meshcall/schemas/factory.js +0 -189
- package/build/services/meshdata/index.d.ts +0 -795
- package/build/services/meshdata/index.js +0 -1235
- package/build/services/meshflow/client.d.ts +0 -108
- package/build/services/meshflow/client.js +0 -371
- package/build/services/meshflow/connection.d.ts +0 -23
- package/build/services/meshflow/connection.js +0 -33
- package/build/services/meshflow/exporter.d.ts +0 -51
- package/build/services/meshflow/exporter.js +0 -1
- package/build/services/meshflow/handle.d.ts +0 -90
- package/build/services/meshflow/handle.js +0 -176
- package/build/services/meshflow/index.d.ts +0 -111
- package/build/services/meshflow/index.js +0 -117
- package/build/services/meshflow/schemas/factory.d.ts +0 -29
- package/build/services/meshflow/schemas/factory.js +0 -2492
- package/build/services/meshflow/search.d.ts +0 -142
- package/build/services/meshflow/search.js +0 -320
- package/build/services/meshflow/worker.d.ts +0 -124
- package/build/services/meshflow/worker.js +0 -514
- package/build/services/meshflow/workflow/all.d.ts +0 -7
- package/build/services/meshflow/workflow/all.js +0 -15
- package/build/services/meshflow/workflow/common.d.ts +0 -18
- package/build/services/meshflow/workflow/common.js +0 -45
- package/build/services/meshflow/workflow/context.d.ts +0 -6
- package/build/services/meshflow/workflow/context.js +0 -45
- package/build/services/meshflow/workflow/didRun.d.ts +0 -7
- package/build/services/meshflow/workflow/didRun.js +0 -22
- package/build/services/meshflow/workflow/emit.d.ts +0 -11
- package/build/services/meshflow/workflow/emit.js +0 -29
- package/build/services/meshflow/workflow/enrich.d.ts +0 -9
- package/build/services/meshflow/workflow/enrich.js +0 -17
- package/build/services/meshflow/workflow/execChild.d.ts +0 -18
- package/build/services/meshflow/workflow/execChild.js +0 -102
- package/build/services/meshflow/workflow/hook.d.ts +0 -9
- package/build/services/meshflow/workflow/hook.js +0 -40
- package/build/services/meshflow/workflow/index.d.ts +0 -70
- package/build/services/meshflow/workflow/index.js +0 -83
- package/build/services/meshflow/workflow/interrupt.d.ts +0 -9
- package/build/services/meshflow/workflow/interrupt.js +0 -24
- package/build/services/meshflow/workflow/isSideEffectAllowed.d.ts +0 -10
- package/build/services/meshflow/workflow/isSideEffectAllowed.js +0 -33
- package/build/services/meshflow/workflow/proxyActivities.d.ts +0 -20
- package/build/services/meshflow/workflow/proxyActivities.js +0 -97
- package/build/services/meshflow/workflow/random.d.ts +0 -6
- package/build/services/meshflow/workflow/random.js +0 -16
- package/build/services/meshflow/workflow/searchMethods.d.ts +0 -6
- package/build/services/meshflow/workflow/searchMethods.js +0 -25
- package/build/services/meshflow/workflow/signal.d.ts +0 -7
- package/build/services/meshflow/workflow/signal.js +0 -28
- package/build/services/meshflow/workflow/sleepFor.d.ts +0 -8
- package/build/services/meshflow/workflow/sleepFor.js +0 -35
- package/build/services/meshflow/workflow/trace.d.ts +0 -14
- package/build/services/meshflow/workflow/trace.js +0 -33
- package/build/services/meshflow/workflow/waitFor.d.ts +0 -8
- package/build/services/meshflow/workflow/waitFor.js +0 -35
- package/build/services/meshos/index.d.ts +0 -293
- package/build/services/meshos/index.js +0 -547
- package/build/services/pipe/functions/array.d.ts +0 -17
- package/build/services/pipe/functions/array.js +0 -1
- package/build/services/pipe/functions/bitwise.d.ts +0 -9
- package/build/services/pipe/functions/bitwise.js +0 -1
- package/build/services/pipe/functions/conditional.d.ts +0 -13
- package/build/services/pipe/functions/conditional.js +0 -1
- package/build/services/pipe/functions/cron.d.ts +0 -12
- package/build/services/pipe/functions/cron.js +0 -1
- package/build/services/pipe/functions/date.d.ts +0 -58
- package/build/services/pipe/functions/date.js +0 -1
- package/build/services/pipe/functions/index.d.ts +0 -29
- package/build/services/pipe/functions/index.js +0 -1
- package/build/services/pipe/functions/json.d.ts +0 -5
- package/build/services/pipe/functions/json.js +0 -1
- package/build/services/pipe/functions/logical.d.ts +0 -5
- package/build/services/pipe/functions/logical.js +0 -1
- package/build/services/pipe/functions/math.d.ts +0 -42
- package/build/services/pipe/functions/math.js +0 -1
- package/build/services/pipe/functions/number.d.ts +0 -21
- package/build/services/pipe/functions/number.js +0 -1
- package/build/services/pipe/functions/object.d.ts +0 -25
- package/build/services/pipe/functions/object.js +0 -1
- package/build/services/pipe/functions/string.d.ts +0 -23
- package/build/services/pipe/functions/string.js +0 -1
- package/build/services/pipe/functions/symbol.d.ts +0 -12
- package/build/services/pipe/functions/symbol.js +0 -1
- package/build/services/pipe/functions/unary.d.ts +0 -7
- package/build/services/pipe/functions/unary.js +0 -1
- package/build/services/pipe/index.d.ts +0 -48
- package/build/services/pipe/index.js +0 -1
- package/build/services/quorum/index.d.ts +0 -90
- package/build/services/quorum/index.js +0 -1
- package/build/services/reporter/index.d.ts +0 -50
- package/build/services/reporter/index.js +0 -1
- package/build/services/router/index.d.ts +0 -60
- package/build/services/router/index.js +0 -1
- package/build/services/search/factory.d.ts +0 -7
- package/build/services/search/factory.js +0 -24
- package/build/services/search/index.d.ts +0 -22
- package/build/services/search/index.js +0 -10
- package/build/services/search/providers/postgres/postgres.d.ts +0 -24
- package/build/services/search/providers/postgres/postgres.js +0 -1
- package/build/services/search/providers/redis/ioredis.d.ts +0 -18
- package/build/services/search/providers/redis/ioredis.js +0 -1
- package/build/services/search/providers/redis/redis.d.ts +0 -18
- package/build/services/search/providers/redis/redis.js +0 -1
- package/build/services/serializer/index.d.ts +0 -42
- package/build/services/serializer/index.js +0 -1
- package/build/services/store/cache.d.ts +0 -67
- package/build/services/store/cache.js +0 -128
- package/build/services/store/factory.d.ts +0 -8
- package/build/services/store/factory.js +0 -24
- package/build/services/store/index.d.ts +0 -89
- package/build/services/store/index.js +0 -9
- package/build/services/store/providers/postgres/kvsql.d.ts +0 -168
- package/build/services/store/providers/postgres/kvsql.js +0 -1
- package/build/services/store/providers/postgres/kvtables.d.ts +0 -20
- package/build/services/store/providers/postgres/kvtables.js +0 -1
- package/build/services/store/providers/postgres/kvtransaction.d.ts +0 -36
- package/build/services/store/providers/postgres/kvtransaction.js +0 -1
- package/build/services/store/providers/postgres/kvtypes/hash.d.ts +0 -60
- package/build/services/store/providers/postgres/kvtypes/hash.js +0 -1
- package/build/services/store/providers/postgres/kvtypes/list.d.ts +0 -33
- package/build/services/store/providers/postgres/kvtypes/list.js +0 -1
- package/build/services/store/providers/postgres/kvtypes/string.d.ts +0 -20
- package/build/services/store/providers/postgres/kvtypes/string.js +0 -1
- package/build/services/store/providers/postgres/kvtypes/zset.d.ts +0 -41
- package/build/services/store/providers/postgres/kvtypes/zset.js +0 -1
- package/build/services/store/providers/postgres/postgres.d.ts +0 -145
- package/build/services/store/providers/postgres/postgres.js +0 -1
- package/build/services/store/providers/redis/_base.d.ts +0 -137
- package/build/services/store/providers/redis/_base.js +0 -1
- package/build/services/store/providers/redis/ioredis.d.ts +0 -20
- package/build/services/store/providers/redis/ioredis.js +0 -1
- package/build/services/store/providers/redis/redis.d.ts +0 -18
- package/build/services/store/providers/redis/redis.js +0 -1
- package/build/services/store/providers/store-initializable.d.ts +0 -5
- package/build/services/store/providers/store-initializable.js +0 -1
- package/build/services/stream/factory.d.ts +0 -8
- package/build/services/stream/factory.js +0 -37
- package/build/services/stream/index.d.ts +0 -64
- package/build/services/stream/index.js +0 -11
- package/build/services/stream/providers/nats/nats.d.ts +0 -59
- package/build/services/stream/providers/nats/nats.js +0 -1
- package/build/services/stream/providers/postgres/kvtables.d.ts +0 -2
- package/build/services/stream/providers/postgres/kvtables.js +0 -1
- package/build/services/stream/providers/postgres/postgres.d.ts +0 -88
- package/build/services/stream/providers/postgres/postgres.js +0 -1
- package/build/services/stream/providers/redis/ioredis.d.ts +0 -60
- package/build/services/stream/providers/redis/ioredis.js +0 -1
- package/build/services/stream/providers/redis/redis.d.ts +0 -60
- package/build/services/stream/providers/redis/redis.js +0 -1
- package/build/services/stream/providers/stream-initializable.d.ts +0 -4
- package/build/services/stream/providers/stream-initializable.js +0 -1
- package/build/services/sub/factory.d.ts +0 -7
- package/build/services/sub/factory.js +0 -29
- package/build/services/sub/index.d.ts +0 -22
- package/build/services/sub/index.js +0 -10
- package/build/services/sub/providers/nats/nats.d.ts +0 -19
- package/build/services/sub/providers/nats/nats.js +0 -1
- package/build/services/sub/providers/postgres/postgres.d.ts +0 -19
- package/build/services/sub/providers/postgres/postgres.js +0 -1
- package/build/services/sub/providers/redis/ioredis.d.ts +0 -17
- package/build/services/sub/providers/redis/ioredis.js +0 -1
- package/build/services/sub/providers/redis/redis.d.ts +0 -17
- package/build/services/sub/providers/redis/redis.js +0 -1
- package/build/services/task/index.d.ts +0 -36
- package/build/services/task/index.js +0 -1
- package/build/services/telemetry/index.d.ts +0 -52
- package/build/services/telemetry/index.js +0 -1
- package/build/services/worker/index.d.ts +0 -77
- package/build/services/worker/index.js +0 -1
- /package/build/types/{meshflow.js → memflow.js} +0 -0
package/types/manifest.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MeshOS } from '../services/meshos';
|
|
2
2
|
|
|
3
|
-
import { WorkflowSearchSchema } from './
|
|
3
|
+
import { WorkflowSearchSchema } from './memflow';
|
|
4
4
|
import { ProviderConfig, ProvidersConfig } from './provider';
|
|
5
5
|
|
|
6
6
|
export type DB = {
|
|
@@ -43,7 +43,7 @@ export type Namespace = {
|
|
|
43
43
|
*/
|
|
44
44
|
type: string;
|
|
45
45
|
label: string;
|
|
46
|
-
module: 'hotmesh' | 'meshcall' | '
|
|
46
|
+
module: 'hotmesh' | 'meshcall' | 'memflow' | 'meshdata' | 'meshos';
|
|
47
47
|
entities: Entity[];
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkflowHandleService } from '../services/
|
|
1
|
+
import { WorkflowHandleService } from '../services/memflow/handle';
|
|
2
2
|
|
|
3
3
|
import { LogLevel } from './logger';
|
|
4
4
|
import { ProviderConfig, ProvidersConfig } from './provider';
|
|
@@ -11,19 +11,19 @@ import { StreamData, StreamError } from './stream';
|
|
|
11
11
|
type WorkflowConfig = {
|
|
12
12
|
/**
|
|
13
13
|
* Backoff coefficient for retry mechanism.
|
|
14
|
-
* @default 10 (
|
|
14
|
+
* @default 10 (HMSH_MEMFLOW_EXP_BACKOFF)
|
|
15
15
|
*/
|
|
16
16
|
backoffCoefficient?: number;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Maximum number of attempts for retries.
|
|
20
|
-
* @default 5 (
|
|
20
|
+
* @default 5 (HMSH_MEMFLOW_MAX_ATTEMPTS)
|
|
21
21
|
*/
|
|
22
22
|
maximumAttempts?: number;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Maximum interval between retries.
|
|
26
|
-
* @default 120s (
|
|
26
|
+
* @default 120s (HMSH_MEMFLOW_MAX_INTERVAL)
|
|
27
27
|
*/
|
|
28
28
|
maximumInterval?: string;
|
|
29
29
|
|
|
@@ -66,7 +66,7 @@ type WorkflowContext = {
|
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* the HotMesh App namespace
|
|
69
|
-
* @default
|
|
69
|
+
* @default memflow
|
|
70
70
|
*/
|
|
71
71
|
namespace: string;
|
|
72
72
|
|
|
@@ -254,7 +254,7 @@ type SearchResults = {
|
|
|
254
254
|
type WorkflowOptions = {
|
|
255
255
|
/**
|
|
256
256
|
* the namespace for the workflow
|
|
257
|
-
* @default
|
|
257
|
+
* @default memflow
|
|
258
258
|
*/
|
|
259
259
|
namespace?: string;
|
|
260
260
|
|
|
@@ -360,7 +360,7 @@ type WorkflowOptions = {
|
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
* Options for setting up a hook.
|
|
363
|
-
* '
|
|
363
|
+
* 'memflow' is the default namespace if not provided;
|
|
364
364
|
* similar to setting `appid` in the YAML
|
|
365
365
|
*/
|
|
366
366
|
type HookOptions = {
|
|
@@ -450,7 +450,7 @@ type WorkerConfig = {
|
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
452
|
* Namespace used in the app configuration, denoted as `appid` in the YAML
|
|
453
|
-
* @default
|
|
453
|
+
* @default memflow
|
|
454
454
|
*/
|
|
455
455
|
namespace?: string;
|
|
456
456
|
|
|
@@ -506,7 +506,7 @@ type FindJobsOptions = {
|
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
508
|
* application namespace
|
|
509
|
-
* @default
|
|
509
|
+
* @default memflow
|
|
510
510
|
*/
|
|
511
511
|
namespace?: string;
|
|
512
512
|
|
|
@@ -524,13 +524,13 @@ type WorkerOptions = {
|
|
|
524
524
|
/** Log level: debug, info, warn, error */
|
|
525
525
|
logLevel?: LogLevel;
|
|
526
526
|
|
|
527
|
-
/** Maximum number of attempts, default 5 (
|
|
527
|
+
/** Maximum number of attempts, default 5 (HMSH_MEMFLOW_MAX_ATTEMPTS) */
|
|
528
528
|
maximumAttempts?: number;
|
|
529
529
|
|
|
530
|
-
/** Backoff coefficient for retry logic, default 10 (
|
|
530
|
+
/** Backoff coefficient for retry logic, default 10 (HMSH_MEMFLOW_EXP_BACKOFF) */
|
|
531
531
|
backoffCoefficient?: number;
|
|
532
532
|
|
|
533
|
-
/** Maximum interval between retries, default 120s (
|
|
533
|
+
/** Maximum interval between retries, default 120s (HMSH_MEMFLOW_MAX_INTERVAL) */
|
|
534
534
|
maximumInterval?: string;
|
|
535
535
|
};
|
|
536
536
|
|
|
@@ -561,11 +561,11 @@ type ActivityConfig = {
|
|
|
561
561
|
|
|
562
562
|
/** Retry policy configuration for activities */
|
|
563
563
|
retryPolicy?: {
|
|
564
|
-
/** Maximum number of retry attempts, default is 5 (
|
|
564
|
+
/** Maximum number of retry attempts, default is 5 (HMSH_MEMFLOW_MAX_ATTEMPTS) */
|
|
565
565
|
maximumAttempts?: number;
|
|
566
|
-
/** Factor by which the retry timeout increases, default is 10 (
|
|
566
|
+
/** Factor by which the retry timeout increases, default is 10 (HMSH_MEMFLOW_MAX_INTERVAL) */
|
|
567
567
|
backoffCoefficient?: number;
|
|
568
|
-
/** Maximum interval between retries, default is '120s' (
|
|
568
|
+
/** Maximum interval between retries, default is '120s' (HMSH_MEMFLOW_EXP_BACKOFF) */
|
|
569
569
|
maximumInterval?: string;
|
|
570
570
|
/** Whether to throw an error on failure, default is true */
|
|
571
571
|
throwOnError?: boolean;
|
package/types/meshdata.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HookOptions, WorkflowConfig, WorkflowSearchOptions } from './
|
|
1
|
+
import { HookOptions, WorkflowConfig, WorkflowSearchOptions } from './memflow';
|
|
2
2
|
import { StringStringType } from './serializer';
|
|
3
3
|
|
|
4
4
|
export type CallOptions = {
|
|
@@ -37,7 +37,7 @@ export type CallOptions = {
|
|
|
37
37
|
fields?: string[];
|
|
38
38
|
/**
|
|
39
39
|
* namespace for the the execution client
|
|
40
|
-
* @default '
|
|
40
|
+
* @default 'memflow'
|
|
41
41
|
*/
|
|
42
42
|
namespace?: string;
|
|
43
43
|
|
|
@@ -74,7 +74,7 @@ export type ConnectOptions = {
|
|
|
74
74
|
prefix?: string;
|
|
75
75
|
/**
|
|
76
76
|
* optional namespace for the the worker
|
|
77
|
-
* @default '
|
|
77
|
+
* @default 'memflow'
|
|
78
78
|
*/
|
|
79
79
|
namespace?: string;
|
|
80
80
|
/**
|
package/types/postgres.ts
CHANGED
|
@@ -30,10 +30,19 @@ export type PostgresPoolType = {
|
|
|
30
30
|
query: (text: string, values?: any[]) => Promise<PostgresQueryResultType>;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
export interface PostgresNotification {
|
|
34
|
+
channel: string;
|
|
35
|
+
payload: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
export interface PostgresClientType {
|
|
34
39
|
connect: () => Promise<PostgresClientType>;
|
|
35
40
|
query: (text: string, values?: any[]) => Promise<PostgresQueryResultType>;
|
|
36
41
|
end: () => Promise<void>;
|
|
42
|
+
// Notification handling methods
|
|
43
|
+
on?: (event: 'notification', listener: (notification: PostgresNotification) => void) => void;
|
|
44
|
+
off?: (event: 'notification', listener: (notification: PostgresNotification) => void) => void;
|
|
45
|
+
removeAllListeners?: (event?: string) => void;
|
|
37
46
|
// Include other methods if necessary
|
|
38
47
|
}
|
|
39
48
|
|
package/types/stream.ts
CHANGED
|
@@ -171,6 +171,10 @@ export interface StreamConfig {
|
|
|
171
171
|
vacuumInterval?: number;
|
|
172
172
|
partitionInterval?: 'daily' | 'weekly' | 'monthly';
|
|
173
173
|
cleanupInterval?: number;
|
|
174
|
+
// Notification-related configuration
|
|
175
|
+
enableNotifications?: boolean; // Default: true
|
|
176
|
+
notificationFallbackInterval?: number; // Default: 30000ms (30 seconds)
|
|
177
|
+
notificationTimeout?: number; // Default: 5000ms (5 seconds)
|
|
174
178
|
};
|
|
175
179
|
nats?: {
|
|
176
180
|
jetstream?: boolean;
|
package/build/modules/enums.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { LogLevel } from '../types/logger';
|
|
2
|
-
/**
|
|
3
|
-
* Determines the log level for the application. The default is 'info'.
|
|
4
|
-
*/
|
|
5
|
-
export declare const HMSH_LOGLEVEL: LogLevel;
|
|
6
|
-
/**
|
|
7
|
-
* Determines the log level for telemetry. The default is 'info' which emits worker and trigger spans. 'debug' emits all spans.
|
|
8
|
-
*/
|
|
9
|
-
export declare const HMSH_TELEMETRY: "debug" | "info";
|
|
10
|
-
/**
|
|
11
|
-
* If Redis, explicitly sets whether the application is running in a cluster. The default is false.
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
export declare const HMSH_IS_CLUSTER: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Default cleanup time for signal in the db when its associated job is completed.
|
|
17
|
-
*/
|
|
18
|
-
export declare const HMSH_SIGNAL_EXPIRE = 3600;
|
|
19
|
-
export declare const HMSH_CODE_SUCCESS = 200;
|
|
20
|
-
export declare const HMSH_CODE_PENDING = 202;
|
|
21
|
-
export declare const HMSH_CODE_NOTFOUND = 404;
|
|
22
|
-
export declare const HMSH_CODE_INTERRUPT = 410;
|
|
23
|
-
export declare const HMSH_CODE_UNKNOWN = 500;
|
|
24
|
-
export declare const HMSH_CODE_TIMEOUT = 504;
|
|
25
|
-
export declare const HMSH_CODE_UNACKED = 999;
|
|
26
|
-
/**
|
|
27
|
-
* This is thrown when a Meshflow has been interrupted by a sleepFor call.
|
|
28
|
-
*/
|
|
29
|
-
export declare const HMSH_CODE_MESHFLOW_SLEEP = 588;
|
|
30
|
-
/**
|
|
31
|
-
* This is thrown when a Meshflow has been interrupted by a Promise.all call.
|
|
32
|
-
*/
|
|
33
|
-
export declare const HMSH_CODE_MESHFLOW_ALL = 589;
|
|
34
|
-
/**
|
|
35
|
-
* This is thrown when a Meshflow has been interrupted by an execChild or startChild call.
|
|
36
|
-
*/
|
|
37
|
-
export declare const HMSH_CODE_MESHFLOW_CHILD = 590;
|
|
38
|
-
/**
|
|
39
|
-
* This is thrown when a Meshflow has been interrupted by a proxyActivity call.
|
|
40
|
-
*/
|
|
41
|
-
export declare const HMSH_CODE_MESHFLOW_PROXY = 591;
|
|
42
|
-
/**
|
|
43
|
-
* This is thrown when a Meshflow has been interrupted by a waitForSignal call.
|
|
44
|
-
*/
|
|
45
|
-
export declare const HMSH_CODE_MESHFLOW_WAIT = 595;
|
|
46
|
-
/**
|
|
47
|
-
* The timeout status code for Meshflow. This status code is thrown when Meshflow has encountered a timeout error and needs to aler the caller why the call failed.
|
|
48
|
-
*/
|
|
49
|
-
export declare const HMSH_CODE_MESHFLOW_TIMEOUT = 596;
|
|
50
|
-
/**
|
|
51
|
-
* The maxed status code for Meshflow. This status code is used to indicate that the Meshflow has reached the maximum
|
|
52
|
-
* number of attempts and should be halted. Thrown from a proxied activity or a flow to halt standard execution
|
|
53
|
-
* and prevent further attempts.
|
|
54
|
-
*/
|
|
55
|
-
export declare const HMSH_CODE_MESHFLOW_MAXED = 597;
|
|
56
|
-
/**
|
|
57
|
-
* The fatal status code for Meshflow. This status code is used to indicate that the Meshflow has encountered a fatal error. Throw from a proxied activity or a flow to halt standard execution.
|
|
58
|
-
*/
|
|
59
|
-
export declare const HMSH_CODE_MESHFLOW_FATAL = 598;
|
|
60
|
-
/**
|
|
61
|
-
* The retryable status code for Meshflow. This status code is used to indicate that the Meshflow has encountered a retryable error (essentially unknown and covered by the standard retry policy).
|
|
62
|
-
*/
|
|
63
|
-
export declare const HMSH_CODE_MESHFLOW_RETRYABLE = 599;
|
|
64
|
-
export declare const HMSH_STATUS_UNKNOWN = "unknown";
|
|
65
|
-
/**
|
|
66
|
-
* The number of cycles to re/try for a quorum to be established.
|
|
67
|
-
*/
|
|
68
|
-
export declare const HMSH_QUORUM_ROLLCALL_CYCLES = 12;
|
|
69
|
-
/**
|
|
70
|
-
* The delay in milliseconds between quorum rollcall cycles.
|
|
71
|
-
*/
|
|
72
|
-
export declare const HMSH_QUORUM_DELAY_MS = 250;
|
|
73
|
-
/**
|
|
74
|
-
* The number of times the call-response exchange must succeed in succession to establish a quorum.
|
|
75
|
-
*/
|
|
76
|
-
export declare const HMSH_ACTIVATION_MAX_RETRY = 3;
|
|
77
|
-
export declare const HMSH_DEPLOYMENT_DELAY: number;
|
|
78
|
-
export declare const HMSH_DEPLOYMENT_PAUSE: number;
|
|
79
|
-
export declare const HMSH_OTT_WAIT_TIME: number;
|
|
80
|
-
export declare const HMSH_EXPIRE_JOB_SECONDS: number;
|
|
81
|
-
export declare const MAX_STREAM_BACKOFF: number;
|
|
82
|
-
export declare const MAX_DELAY = 2147483647;
|
|
83
|
-
export declare const HMSH_MAX_RETRIES: number;
|
|
84
|
-
export declare const HMSH_MAX_TIMEOUT_MS: number;
|
|
85
|
-
export declare const HMSH_GRADUATED_INTERVAL_MS: number;
|
|
86
|
-
/**
|
|
87
|
-
* The maximum number of attempts to retry a MeshFlow job before it is considered failed.
|
|
88
|
-
* @default 3
|
|
89
|
-
*/
|
|
90
|
-
export declare const HMSH_MESHFLOW_MAX_ATTEMPTS = 3;
|
|
91
|
-
/**
|
|
92
|
-
* The maximum interval to wait before retrying a MeshFlow job.
|
|
93
|
-
* @default 120s
|
|
94
|
-
*/
|
|
95
|
-
export declare const HMSH_MESHFLOW_MAX_INTERVAL = "120s";
|
|
96
|
-
/**
|
|
97
|
-
* The exponential backoff factor to apply to the interval between retries.
|
|
98
|
-
* @default 10
|
|
99
|
-
*/
|
|
100
|
-
export declare const HMSH_MESHFLOW_EXP_BACKOFF = 10;
|
|
101
|
-
export declare const HMSH_BLOCK_TIME_MS: number;
|
|
102
|
-
export declare const HMSH_XCLAIM_DELAY_MS: number;
|
|
103
|
-
export declare const HMSH_XCLAIM_COUNT: number;
|
|
104
|
-
export declare const HMSH_XPENDING_COUNT: number;
|
|
105
|
-
export declare const HMSH_EXPIRE_DURATION: number;
|
|
106
|
-
export declare const HMSH_FIDELITY_SECONDS: number;
|
|
107
|
-
export declare const HMSH_SCOUT_INTERVAL_SECONDS: number;
|
|
108
|
-
export declare const HMSH_GUID_SIZE: number;
|
package/build/modules/enums.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HMSH_GUID_SIZE = exports.HMSH_SCOUT_INTERVAL_SECONDS = exports.HMSH_FIDELITY_SECONDS = exports.HMSH_EXPIRE_DURATION = exports.HMSH_XPENDING_COUNT = exports.HMSH_XCLAIM_COUNT = exports.HMSH_XCLAIM_DELAY_MS = exports.HMSH_BLOCK_TIME_MS = exports.HMSH_MESHFLOW_EXP_BACKOFF = exports.HMSH_MESHFLOW_MAX_INTERVAL = exports.HMSH_MESHFLOW_MAX_ATTEMPTS = exports.HMSH_GRADUATED_INTERVAL_MS = exports.HMSH_MAX_TIMEOUT_MS = exports.HMSH_MAX_RETRIES = exports.MAX_DELAY = exports.MAX_STREAM_BACKOFF = exports.HMSH_EXPIRE_JOB_SECONDS = exports.HMSH_OTT_WAIT_TIME = exports.HMSH_DEPLOYMENT_PAUSE = exports.HMSH_DEPLOYMENT_DELAY = exports.HMSH_ACTIVATION_MAX_RETRY = exports.HMSH_QUORUM_DELAY_MS = exports.HMSH_QUORUM_ROLLCALL_CYCLES = exports.HMSH_STATUS_UNKNOWN = exports.HMSH_CODE_MESHFLOW_RETRYABLE = exports.HMSH_CODE_MESHFLOW_FATAL = exports.HMSH_CODE_MESHFLOW_MAXED = exports.HMSH_CODE_MESHFLOW_TIMEOUT = exports.HMSH_CODE_MESHFLOW_WAIT = exports.HMSH_CODE_MESHFLOW_PROXY = exports.HMSH_CODE_MESHFLOW_CHILD = exports.HMSH_CODE_MESHFLOW_ALL = exports.HMSH_CODE_MESHFLOW_SLEEP = exports.HMSH_CODE_UNACKED = exports.HMSH_CODE_TIMEOUT = exports.HMSH_CODE_UNKNOWN = exports.HMSH_CODE_INTERRUPT = exports.HMSH_CODE_NOTFOUND = exports.HMSH_CODE_PENDING = exports.HMSH_CODE_SUCCESS = exports.HMSH_SIGNAL_EXPIRE = exports.HMSH_IS_CLUSTER = exports.HMSH_TELEMETRY = exports.HMSH_LOGLEVEL = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Determines the log level for the application. The default is 'info'.
|
|
6
|
-
*/
|
|
7
|
-
exports.HMSH_LOGLEVEL = process.env.HMSH_LOGLEVEL || 'info';
|
|
8
|
-
/**
|
|
9
|
-
* Determines the log level for telemetry. The default is 'info' which emits worker and trigger spans. 'debug' emits all spans.
|
|
10
|
-
*/
|
|
11
|
-
exports.HMSH_TELEMETRY = process.env.HMSH_TELEMETRY || 'info';
|
|
12
|
-
/**
|
|
13
|
-
* If Redis, explicitly sets whether the application is running in a cluster. The default is false.
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
exports.HMSH_IS_CLUSTER = process.env.HMSH_IS_CLUSTER === 'true';
|
|
17
|
-
/**
|
|
18
|
-
* Default cleanup time for signal in the db when its associated job is completed.
|
|
19
|
-
*/
|
|
20
|
-
exports.HMSH_SIGNAL_EXPIRE = 3600; //seconds
|
|
21
|
-
// HOTMESH STATUS CODES
|
|
22
|
-
exports.HMSH_CODE_SUCCESS = 200;
|
|
23
|
-
exports.HMSH_CODE_PENDING = 202;
|
|
24
|
-
exports.HMSH_CODE_NOTFOUND = 404;
|
|
25
|
-
exports.HMSH_CODE_INTERRUPT = 410;
|
|
26
|
-
exports.HMSH_CODE_UNKNOWN = 500;
|
|
27
|
-
exports.HMSH_CODE_TIMEOUT = 504;
|
|
28
|
-
exports.HMSH_CODE_UNACKED = 999;
|
|
29
|
-
// MESHFLOW STATUS CODES
|
|
30
|
-
/**
|
|
31
|
-
* This is thrown when a Meshflow has been interrupted by a sleepFor call.
|
|
32
|
-
*/
|
|
33
|
-
exports.HMSH_CODE_MESHFLOW_SLEEP = 588;
|
|
34
|
-
/**
|
|
35
|
-
* This is thrown when a Meshflow has been interrupted by a Promise.all call.
|
|
36
|
-
*/
|
|
37
|
-
exports.HMSH_CODE_MESHFLOW_ALL = 589;
|
|
38
|
-
/**
|
|
39
|
-
* This is thrown when a Meshflow has been interrupted by an execChild or startChild call.
|
|
40
|
-
*/
|
|
41
|
-
exports.HMSH_CODE_MESHFLOW_CHILD = 590;
|
|
42
|
-
/**
|
|
43
|
-
* This is thrown when a Meshflow has been interrupted by a proxyActivity call.
|
|
44
|
-
*/
|
|
45
|
-
exports.HMSH_CODE_MESHFLOW_PROXY = 591;
|
|
46
|
-
/**
|
|
47
|
-
* This is thrown when a Meshflow has been interrupted by a waitForSignal call.
|
|
48
|
-
*/
|
|
49
|
-
exports.HMSH_CODE_MESHFLOW_WAIT = 595;
|
|
50
|
-
/**
|
|
51
|
-
* The timeout status code for Meshflow. This status code is thrown when Meshflow has encountered a timeout error and needs to aler the caller why the call failed.
|
|
52
|
-
*/
|
|
53
|
-
exports.HMSH_CODE_MESHFLOW_TIMEOUT = 596;
|
|
54
|
-
/**
|
|
55
|
-
* The maxed status code for Meshflow. This status code is used to indicate that the Meshflow has reached the maximum
|
|
56
|
-
* number of attempts and should be halted. Thrown from a proxied activity or a flow to halt standard execution
|
|
57
|
-
* and prevent further attempts.
|
|
58
|
-
*/
|
|
59
|
-
exports.HMSH_CODE_MESHFLOW_MAXED = 597;
|
|
60
|
-
/**
|
|
61
|
-
* The fatal status code for Meshflow. This status code is used to indicate that the Meshflow has encountered a fatal error. Throw from a proxied activity or a flow to halt standard execution.
|
|
62
|
-
*/
|
|
63
|
-
exports.HMSH_CODE_MESHFLOW_FATAL = 598;
|
|
64
|
-
/**
|
|
65
|
-
* The retryable status code for Meshflow. This status code is used to indicate that the Meshflow has encountered a retryable error (essentially unknown and covered by the standard retry policy).
|
|
66
|
-
*/
|
|
67
|
-
exports.HMSH_CODE_MESHFLOW_RETRYABLE = 599;
|
|
68
|
-
// HOTMESH MESSAGES
|
|
69
|
-
exports.HMSH_STATUS_UNKNOWN = 'unknown';
|
|
70
|
-
// QUORUM
|
|
71
|
-
/**
|
|
72
|
-
* The number of cycles to re/try for a quorum to be established.
|
|
73
|
-
*/
|
|
74
|
-
exports.HMSH_QUORUM_ROLLCALL_CYCLES = 12;
|
|
75
|
-
/**
|
|
76
|
-
* The delay in milliseconds between quorum rollcall cycles.
|
|
77
|
-
*/
|
|
78
|
-
exports.HMSH_QUORUM_DELAY_MS = 250;
|
|
79
|
-
/**
|
|
80
|
-
* The number of times the call-response exchange must succeed in succession to establish a quorum.
|
|
81
|
-
*/
|
|
82
|
-
exports.HMSH_ACTIVATION_MAX_RETRY = 3;
|
|
83
|
-
//backend provisioning
|
|
84
|
-
exports.HMSH_DEPLOYMENT_DELAY = parseInt(process.env.HMSH_DEPLOYMENT_DELAY, 10) || 10000; //in ms
|
|
85
|
-
exports.HMSH_DEPLOYMENT_PAUSE = parseInt(process.env.HMSH_DEPLOYMENT_PAUSE, 10) || 250; //in ms
|
|
86
|
-
// ENGINE
|
|
87
|
-
exports.HMSH_OTT_WAIT_TIME = parseInt(process.env.HMSH_OTT_WAIT_TIME, 10) || 1000;
|
|
88
|
-
exports.HMSH_EXPIRE_JOB_SECONDS = parseInt(process.env.HMSH_EXPIRE_JOB_SECONDS, 10) || 1;
|
|
89
|
-
// STREAM ROUTER
|
|
90
|
-
exports.MAX_STREAM_BACKOFF = parseInt(process.env.MAX_STREAM_BACKOFF, 10) || 3000;
|
|
91
|
-
exports.MAX_DELAY = 2147483647; // Maximum allowed delay in milliseconds for setTimeout
|
|
92
|
-
exports.HMSH_MAX_RETRIES = parseInt(process.env.HMSH_MAX_RETRIES, 10) || 3;
|
|
93
|
-
exports.HMSH_MAX_TIMEOUT_MS = parseInt(process.env.HMSH_MAX_TIMEOUT_MS, 10) || 60000;
|
|
94
|
-
exports.HMSH_GRADUATED_INTERVAL_MS = parseInt(process.env.HMSH_GRADUATED_INTERVAL_MS, 10) || 5000;
|
|
95
|
-
// MESHFLOW
|
|
96
|
-
/**
|
|
97
|
-
* The maximum number of attempts to retry a MeshFlow job before it is considered failed.
|
|
98
|
-
* @default 3
|
|
99
|
-
*/
|
|
100
|
-
exports.HMSH_MESHFLOW_MAX_ATTEMPTS = 3;
|
|
101
|
-
/**
|
|
102
|
-
* The maximum interval to wait before retrying a MeshFlow job.
|
|
103
|
-
* @default 120s
|
|
104
|
-
*/
|
|
105
|
-
exports.HMSH_MESHFLOW_MAX_INTERVAL = '120s';
|
|
106
|
-
/**
|
|
107
|
-
* The exponential backoff factor to apply to the interval between retries.
|
|
108
|
-
* @default 10
|
|
109
|
-
*/
|
|
110
|
-
exports.HMSH_MESHFLOW_EXP_BACKOFF = 10;
|
|
111
|
-
const BASE_BLOCK_DURATION = 10000;
|
|
112
|
-
const TEST_BLOCK_DURATION = 1000;
|
|
113
|
-
exports.HMSH_BLOCK_TIME_MS = process.env.HMSH_BLOCK_TIME_MS
|
|
114
|
-
? parseInt(process.env.HMSH_BLOCK_TIME_MS, 10)
|
|
115
|
-
: process.env.NODE_ENV === 'test'
|
|
116
|
-
? TEST_BLOCK_DURATION
|
|
117
|
-
: BASE_BLOCK_DURATION;
|
|
118
|
-
exports.HMSH_XCLAIM_DELAY_MS = parseInt(process.env.HMSH_XCLAIM_DELAY_MS, 10) || 1000 * 60;
|
|
119
|
-
exports.HMSH_XCLAIM_COUNT = parseInt(process.env.HMSH_XCLAIM_COUNT, 10) || 3;
|
|
120
|
-
exports.HMSH_XPENDING_COUNT = parseInt(process.env.HMSH_XPENDING_COUNT, 10) || 10;
|
|
121
|
-
// TASK WORKER
|
|
122
|
-
exports.HMSH_EXPIRE_DURATION = parseInt(process.env.HMSH_EXPIRE_DURATION, 10) || 1;
|
|
123
|
-
const BASE_FIDELITY_SECONDS = 5;
|
|
124
|
-
const TEST_FIDELITY_SECONDS = 1;
|
|
125
|
-
exports.HMSH_FIDELITY_SECONDS = process.env.HMSH_FIDELITY_SECONDS
|
|
126
|
-
? parseInt(process.env.HMSH_FIDELITY_SECONDS, 10)
|
|
127
|
-
: process.env.NODE_ENV === 'test'
|
|
128
|
-
? TEST_FIDELITY_SECONDS
|
|
129
|
-
: BASE_FIDELITY_SECONDS;
|
|
130
|
-
exports.HMSH_SCOUT_INTERVAL_SECONDS = parseInt(process.env.HMSH_SCOUT_INTERVAL_SECONDS, 10) || 60;
|
|
131
|
-
// UTILS
|
|
132
|
-
exports.HMSH_GUID_SIZE = Math.min(parseInt(process.env.HMSH_GUID_SIZE, 10) || 22, 32);
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { ActivityDuplex } from '../types/activity';
|
|
2
|
-
import { CollationFaultType, CollationStage } from '../types/collator';
|
|
3
|
-
import { MeshFlowChildErrorType, MeshFlowProxyErrorType, MeshFlowSleepErrorType, MeshFlowWaitForAllErrorType, MeshFlowWaitForErrorType } from '../types/error';
|
|
4
|
-
declare class GetStateError extends Error {
|
|
5
|
-
jobId: string;
|
|
6
|
-
code: number;
|
|
7
|
-
constructor(jobId: string);
|
|
8
|
-
}
|
|
9
|
-
declare class SetStateError extends Error {
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
12
|
-
declare class MeshFlowWaitForError extends Error {
|
|
13
|
-
code: number;
|
|
14
|
-
signalId: string;
|
|
15
|
-
workflowId: string;
|
|
16
|
-
index: number;
|
|
17
|
-
workflowDimension: string;
|
|
18
|
-
constructor(params: MeshFlowWaitForErrorType);
|
|
19
|
-
}
|
|
20
|
-
declare class MeshFlowProxyError extends Error {
|
|
21
|
-
activityName: string;
|
|
22
|
-
arguments: string[];
|
|
23
|
-
backoffCoefficient: number;
|
|
24
|
-
code: number;
|
|
25
|
-
index: number;
|
|
26
|
-
maximumAttempts: number;
|
|
27
|
-
maximumInterval: number;
|
|
28
|
-
originJobId: string | null;
|
|
29
|
-
parentWorkflowId: string;
|
|
30
|
-
expire: number;
|
|
31
|
-
workflowDimension: string;
|
|
32
|
-
workflowId: string;
|
|
33
|
-
workflowTopic: string;
|
|
34
|
-
constructor(params: MeshFlowProxyErrorType);
|
|
35
|
-
}
|
|
36
|
-
declare class MeshFlowChildError extends Error {
|
|
37
|
-
await: boolean;
|
|
38
|
-
arguments: string[];
|
|
39
|
-
backoffCoefficient: number;
|
|
40
|
-
code: number;
|
|
41
|
-
expire: number;
|
|
42
|
-
persistent: boolean;
|
|
43
|
-
signalIn: boolean;
|
|
44
|
-
workflowDimension: string;
|
|
45
|
-
index: number;
|
|
46
|
-
maximumAttempts: number;
|
|
47
|
-
maximumInterval: number;
|
|
48
|
-
originJobId: string | null;
|
|
49
|
-
parentWorkflowId: string;
|
|
50
|
-
workflowId: string;
|
|
51
|
-
workflowTopic: string;
|
|
52
|
-
constructor(params: MeshFlowChildErrorType);
|
|
53
|
-
}
|
|
54
|
-
declare class MeshFlowWaitForAllError extends Error {
|
|
55
|
-
items: any[];
|
|
56
|
-
code: number;
|
|
57
|
-
workflowDimension: string;
|
|
58
|
-
size: number;
|
|
59
|
-
index: number;
|
|
60
|
-
originJobId: string | null;
|
|
61
|
-
parentWorkflowId: string;
|
|
62
|
-
workflowId: string;
|
|
63
|
-
workflowTopic: string;
|
|
64
|
-
constructor(params: MeshFlowWaitForAllErrorType);
|
|
65
|
-
}
|
|
66
|
-
declare class MeshFlowSleepError extends Error {
|
|
67
|
-
workflowId: string;
|
|
68
|
-
code: number;
|
|
69
|
-
duration: number;
|
|
70
|
-
index: number;
|
|
71
|
-
workflowDimension: string;
|
|
72
|
-
constructor(params: MeshFlowSleepErrorType);
|
|
73
|
-
}
|
|
74
|
-
declare class MeshFlowTimeoutError extends Error {
|
|
75
|
-
code: number;
|
|
76
|
-
constructor(message: string, stack?: string);
|
|
77
|
-
}
|
|
78
|
-
declare class MeshFlowMaxedError extends Error {
|
|
79
|
-
code: number;
|
|
80
|
-
constructor(message: string, stackTrace?: string);
|
|
81
|
-
}
|
|
82
|
-
declare class MeshFlowFatalError extends Error {
|
|
83
|
-
code: number;
|
|
84
|
-
constructor(message: string, stackTrace?: string);
|
|
85
|
-
}
|
|
86
|
-
declare class MeshFlowRetryError extends Error {
|
|
87
|
-
code: number;
|
|
88
|
-
constructor(message: string, stackTrace?: string);
|
|
89
|
-
}
|
|
90
|
-
declare class MapDataError extends Error {
|
|
91
|
-
constructor();
|
|
92
|
-
}
|
|
93
|
-
declare class RegisterTimeoutError extends Error {
|
|
94
|
-
constructor();
|
|
95
|
-
}
|
|
96
|
-
declare class DuplicateJobError extends Error {
|
|
97
|
-
jobId: string;
|
|
98
|
-
constructor(jobId: string);
|
|
99
|
-
}
|
|
100
|
-
declare class InactiveJobError extends Error {
|
|
101
|
-
jobId: string;
|
|
102
|
-
activityId: string;
|
|
103
|
-
status: number;
|
|
104
|
-
constructor(jobId: string, status: number, activityId: string);
|
|
105
|
-
}
|
|
106
|
-
declare class GenerationalError extends Error {
|
|
107
|
-
expected: string;
|
|
108
|
-
actual: string;
|
|
109
|
-
jobId: string;
|
|
110
|
-
activityId: string;
|
|
111
|
-
dimensionalAddress: string;
|
|
112
|
-
constructor(expected: string, actual: string, jobId: string, activityId: string, dimensionalAddress: string);
|
|
113
|
-
}
|
|
114
|
-
declare class ExecActivityError extends Error {
|
|
115
|
-
constructor();
|
|
116
|
-
}
|
|
117
|
-
declare class CollationError extends Error {
|
|
118
|
-
status: number;
|
|
119
|
-
leg: ActivityDuplex;
|
|
120
|
-
stage: CollationStage;
|
|
121
|
-
fault: CollationFaultType;
|
|
122
|
-
constructor(status: number, leg: ActivityDuplex, stage: CollationStage, fault?: CollationFaultType);
|
|
123
|
-
}
|
|
124
|
-
export { CollationError, MeshFlowChildError, MeshFlowFatalError, MeshFlowMaxedError, MeshFlowProxyError, MeshFlowRetryError, MeshFlowSleepError, MeshFlowTimeoutError, MeshFlowWaitForAllError, MeshFlowWaitForError, DuplicateJobError, ExecActivityError, GenerationalError, GetStateError, InactiveJobError, MapDataError, RegisterTimeoutError, SetStateError, };
|