@hotmeshio/hotmesh 0.3.32 → 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.
Files changed (254) hide show
  1. package/README.md +128 -823
  2. package/build/index.d.ts +9 -9
  3. package/build/index.js +10 -10
  4. package/build/package.json +22 -21
  5. package/build/types/error.d.ts +5 -5
  6. package/build/types/exporter.d.ts +1 -1
  7. package/build/types/index.d.ts +3 -3
  8. package/build/types/manifest.d.ts +2 -2
  9. package/build/types/{meshflow.d.ts → memflow.d.ts} +15 -15
  10. package/build/types/meshdata.d.ts +3 -3
  11. package/build/types/postgres.d.ts +7 -0
  12. package/build/types/stream.d.ts +3 -0
  13. package/index.ts +11 -11
  14. package/package.json +22 -21
  15. package/typedoc.json +8 -7
  16. package/types/error.ts +5 -5
  17. package/types/exporter.ts +1 -1
  18. package/types/index.ts +7 -7
  19. package/types/manifest.ts +2 -2
  20. package/types/{meshflow.ts → memflow.ts} +15 -15
  21. package/types/meshdata.ts +3 -3
  22. package/types/postgres.ts +9 -0
  23. package/types/stream.ts +4 -0
  24. package/build/modules/enums.d.ts +0 -110
  25. package/build/modules/enums.js +0 -134
  26. package/build/modules/errors.d.ts +0 -124
  27. package/build/modules/errors.js +0 -191
  28. package/build/modules/key.d.ts +0 -66
  29. package/build/modules/key.js +0 -1
  30. package/build/modules/storage.d.ts +0 -3
  31. package/build/modules/storage.js +0 -5
  32. package/build/modules/utils.d.ts +0 -119
  33. package/build/modules/utils.js +0 -1
  34. package/build/services/activities/activity.d.ts +0 -104
  35. package/build/services/activities/activity.js +0 -1
  36. package/build/services/activities/await.d.ts +0 -12
  37. package/build/services/activities/await.js +0 -1
  38. package/build/services/activities/cycle.d.ts +0 -19
  39. package/build/services/activities/cycle.js +0 -1
  40. package/build/services/activities/hook.d.ts +0 -27
  41. package/build/services/activities/hook.js +0 -1
  42. package/build/services/activities/index.d.ts +0 -19
  43. package/build/services/activities/index.js +0 -1
  44. package/build/services/activities/interrupt.d.ts +0 -16
  45. package/build/services/activities/interrupt.js +0 -1
  46. package/build/services/activities/signal.d.ts +0 -20
  47. package/build/services/activities/signal.js +0 -1
  48. package/build/services/activities/trigger.d.ts +0 -37
  49. package/build/services/activities/trigger.js +0 -1
  50. package/build/services/activities/worker.d.ts +0 -12
  51. package/build/services/activities/worker.js +0 -1
  52. package/build/services/collator/index.d.ts +0 -111
  53. package/build/services/collator/index.js +0 -1
  54. package/build/services/compiler/deployer.d.ts +0 -40
  55. package/build/services/compiler/deployer.js +0 -1
  56. package/build/services/compiler/index.d.ts +0 -32
  57. package/build/services/compiler/index.js +0 -1
  58. package/build/services/compiler/validator.d.ts +0 -34
  59. package/build/services/compiler/validator.js +0 -1
  60. package/build/services/connector/factory.d.ts +0 -22
  61. package/build/services/connector/factory.js +0 -99
  62. package/build/services/connector/index.d.ts +0 -30
  63. package/build/services/connector/index.js +0 -54
  64. package/build/services/connector/providers/ioredis.d.ts +0 -9
  65. package/build/services/connector/providers/ioredis.js +0 -26
  66. package/build/services/connector/providers/nats.d.ts +0 -9
  67. package/build/services/connector/providers/nats.js +0 -34
  68. package/build/services/connector/providers/postgres.d.ts +0 -20
  69. package/build/services/connector/providers/postgres.js +0 -102
  70. package/build/services/connector/providers/redis.d.ts +0 -9
  71. package/build/services/connector/providers/redis.js +0 -38
  72. package/build/services/engine/index.d.ts +0 -264
  73. package/build/services/engine/index.js +0 -1
  74. package/build/services/exporter/index.d.ts +0 -44
  75. package/build/services/exporter/index.js +0 -1
  76. package/build/services/hotmesh/index.d.ts +0 -340
  77. package/build/services/hotmesh/index.js +0 -479
  78. package/build/services/logger/index.d.ts +0 -16
  79. package/build/services/logger/index.js +0 -54
  80. package/build/services/mapper/index.d.ts +0 -28
  81. package/build/services/mapper/index.js +0 -1
  82. package/build/services/meshcall/index.d.ts +0 -194
  83. package/build/services/meshcall/index.js +0 -452
  84. package/build/services/meshcall/schemas/factory.d.ts +0 -9
  85. package/build/services/meshcall/schemas/factory.js +0 -189
  86. package/build/services/meshdata/index.d.ts +0 -795
  87. package/build/services/meshdata/index.js +0 -1235
  88. package/build/services/meshflow/client.d.ts +0 -108
  89. package/build/services/meshflow/client.js +0 -371
  90. package/build/services/meshflow/connection.d.ts +0 -23
  91. package/build/services/meshflow/connection.js +0 -33
  92. package/build/services/meshflow/exporter.d.ts +0 -51
  93. package/build/services/meshflow/exporter.js +0 -1
  94. package/build/services/meshflow/handle.d.ts +0 -90
  95. package/build/services/meshflow/handle.js +0 -176
  96. package/build/services/meshflow/index.d.ts +0 -111
  97. package/build/services/meshflow/index.js +0 -117
  98. package/build/services/meshflow/schemas/factory.d.ts +0 -29
  99. package/build/services/meshflow/schemas/factory.js +0 -2492
  100. package/build/services/meshflow/search.d.ts +0 -142
  101. package/build/services/meshflow/search.js +0 -320
  102. package/build/services/meshflow/worker.d.ts +0 -124
  103. package/build/services/meshflow/worker.js +0 -514
  104. package/build/services/meshflow/workflow/all.d.ts +0 -7
  105. package/build/services/meshflow/workflow/all.js +0 -15
  106. package/build/services/meshflow/workflow/common.d.ts +0 -18
  107. package/build/services/meshflow/workflow/common.js +0 -45
  108. package/build/services/meshflow/workflow/context.d.ts +0 -6
  109. package/build/services/meshflow/workflow/context.js +0 -45
  110. package/build/services/meshflow/workflow/didRun.d.ts +0 -7
  111. package/build/services/meshflow/workflow/didRun.js +0 -22
  112. package/build/services/meshflow/workflow/emit.d.ts +0 -11
  113. package/build/services/meshflow/workflow/emit.js +0 -29
  114. package/build/services/meshflow/workflow/enrich.d.ts +0 -9
  115. package/build/services/meshflow/workflow/enrich.js +0 -17
  116. package/build/services/meshflow/workflow/execChild.d.ts +0 -18
  117. package/build/services/meshflow/workflow/execChild.js +0 -102
  118. package/build/services/meshflow/workflow/hook.d.ts +0 -9
  119. package/build/services/meshflow/workflow/hook.js +0 -40
  120. package/build/services/meshflow/workflow/index.d.ts +0 -70
  121. package/build/services/meshflow/workflow/index.js +0 -83
  122. package/build/services/meshflow/workflow/interrupt.d.ts +0 -9
  123. package/build/services/meshflow/workflow/interrupt.js +0 -24
  124. package/build/services/meshflow/workflow/isSideEffectAllowed.d.ts +0 -10
  125. package/build/services/meshflow/workflow/isSideEffectAllowed.js +0 -33
  126. package/build/services/meshflow/workflow/proxyActivities.d.ts +0 -20
  127. package/build/services/meshflow/workflow/proxyActivities.js +0 -97
  128. package/build/services/meshflow/workflow/random.d.ts +0 -6
  129. package/build/services/meshflow/workflow/random.js +0 -16
  130. package/build/services/meshflow/workflow/searchMethods.d.ts +0 -6
  131. package/build/services/meshflow/workflow/searchMethods.js +0 -25
  132. package/build/services/meshflow/workflow/signal.d.ts +0 -7
  133. package/build/services/meshflow/workflow/signal.js +0 -28
  134. package/build/services/meshflow/workflow/sleepFor.d.ts +0 -8
  135. package/build/services/meshflow/workflow/sleepFor.js +0 -35
  136. package/build/services/meshflow/workflow/trace.d.ts +0 -14
  137. package/build/services/meshflow/workflow/trace.js +0 -33
  138. package/build/services/meshflow/workflow/waitFor.d.ts +0 -8
  139. package/build/services/meshflow/workflow/waitFor.js +0 -35
  140. package/build/services/meshos/index.d.ts +0 -293
  141. package/build/services/meshos/index.js +0 -547
  142. package/build/services/pipe/functions/array.d.ts +0 -17
  143. package/build/services/pipe/functions/array.js +0 -1
  144. package/build/services/pipe/functions/bitwise.d.ts +0 -9
  145. package/build/services/pipe/functions/bitwise.js +0 -1
  146. package/build/services/pipe/functions/conditional.d.ts +0 -13
  147. package/build/services/pipe/functions/conditional.js +0 -1
  148. package/build/services/pipe/functions/cron.d.ts +0 -12
  149. package/build/services/pipe/functions/cron.js +0 -1
  150. package/build/services/pipe/functions/date.d.ts +0 -58
  151. package/build/services/pipe/functions/date.js +0 -1
  152. package/build/services/pipe/functions/index.d.ts +0 -29
  153. package/build/services/pipe/functions/index.js +0 -1
  154. package/build/services/pipe/functions/json.d.ts +0 -5
  155. package/build/services/pipe/functions/json.js +0 -1
  156. package/build/services/pipe/functions/logical.d.ts +0 -5
  157. package/build/services/pipe/functions/logical.js +0 -1
  158. package/build/services/pipe/functions/math.d.ts +0 -42
  159. package/build/services/pipe/functions/math.js +0 -1
  160. package/build/services/pipe/functions/number.d.ts +0 -21
  161. package/build/services/pipe/functions/number.js +0 -1
  162. package/build/services/pipe/functions/object.d.ts +0 -25
  163. package/build/services/pipe/functions/object.js +0 -1
  164. package/build/services/pipe/functions/string.d.ts +0 -23
  165. package/build/services/pipe/functions/string.js +0 -1
  166. package/build/services/pipe/functions/symbol.d.ts +0 -12
  167. package/build/services/pipe/functions/symbol.js +0 -1
  168. package/build/services/pipe/functions/unary.d.ts +0 -7
  169. package/build/services/pipe/functions/unary.js +0 -1
  170. package/build/services/pipe/index.d.ts +0 -48
  171. package/build/services/pipe/index.js +0 -1
  172. package/build/services/quorum/index.d.ts +0 -90
  173. package/build/services/quorum/index.js +0 -1
  174. package/build/services/reporter/index.d.ts +0 -50
  175. package/build/services/reporter/index.js +0 -1
  176. package/build/services/router/index.d.ts +0 -60
  177. package/build/services/router/index.js +0 -1
  178. package/build/services/search/factory.d.ts +0 -7
  179. package/build/services/search/factory.js +0 -24
  180. package/build/services/search/index.d.ts +0 -22
  181. package/build/services/search/index.js +0 -10
  182. package/build/services/search/providers/postgres/postgres.d.ts +0 -24
  183. package/build/services/search/providers/postgres/postgres.js +0 -1
  184. package/build/services/search/providers/redis/ioredis.d.ts +0 -18
  185. package/build/services/search/providers/redis/ioredis.js +0 -1
  186. package/build/services/search/providers/redis/redis.d.ts +0 -18
  187. package/build/services/search/providers/redis/redis.js +0 -1
  188. package/build/services/serializer/index.d.ts +0 -42
  189. package/build/services/serializer/index.js +0 -1
  190. package/build/services/store/cache.d.ts +0 -67
  191. package/build/services/store/cache.js +0 -128
  192. package/build/services/store/factory.d.ts +0 -8
  193. package/build/services/store/factory.js +0 -24
  194. package/build/services/store/index.d.ts +0 -89
  195. package/build/services/store/index.js +0 -9
  196. package/build/services/store/providers/postgres/kvsql.d.ts +0 -168
  197. package/build/services/store/providers/postgres/kvsql.js +0 -1
  198. package/build/services/store/providers/postgres/kvtables.d.ts +0 -20
  199. package/build/services/store/providers/postgres/kvtables.js +0 -1
  200. package/build/services/store/providers/postgres/kvtransaction.d.ts +0 -36
  201. package/build/services/store/providers/postgres/kvtransaction.js +0 -1
  202. package/build/services/store/providers/postgres/kvtypes/hash.d.ts +0 -60
  203. package/build/services/store/providers/postgres/kvtypes/hash.js +0 -1
  204. package/build/services/store/providers/postgres/kvtypes/list.d.ts +0 -33
  205. package/build/services/store/providers/postgres/kvtypes/list.js +0 -1
  206. package/build/services/store/providers/postgres/kvtypes/string.d.ts +0 -20
  207. package/build/services/store/providers/postgres/kvtypes/string.js +0 -1
  208. package/build/services/store/providers/postgres/kvtypes/zset.d.ts +0 -41
  209. package/build/services/store/providers/postgres/kvtypes/zset.js +0 -1
  210. package/build/services/store/providers/postgres/postgres.d.ts +0 -145
  211. package/build/services/store/providers/postgres/postgres.js +0 -1
  212. package/build/services/store/providers/redis/_base.d.ts +0 -137
  213. package/build/services/store/providers/redis/_base.js +0 -1
  214. package/build/services/store/providers/redis/ioredis.d.ts +0 -20
  215. package/build/services/store/providers/redis/ioredis.js +0 -1
  216. package/build/services/store/providers/redis/redis.d.ts +0 -18
  217. package/build/services/store/providers/redis/redis.js +0 -1
  218. package/build/services/store/providers/store-initializable.d.ts +0 -5
  219. package/build/services/store/providers/store-initializable.js +0 -1
  220. package/build/services/stream/factory.d.ts +0 -8
  221. package/build/services/stream/factory.js +0 -37
  222. package/build/services/stream/index.d.ts +0 -64
  223. package/build/services/stream/index.js +0 -11
  224. package/build/services/stream/providers/nats/nats.d.ts +0 -59
  225. package/build/services/stream/providers/nats/nats.js +0 -1
  226. package/build/services/stream/providers/postgres/kvtables.d.ts +0 -2
  227. package/build/services/stream/providers/postgres/kvtables.js +0 -1
  228. package/build/services/stream/providers/postgres/postgres.d.ts +0 -88
  229. package/build/services/stream/providers/postgres/postgres.js +0 -1
  230. package/build/services/stream/providers/redis/ioredis.d.ts +0 -60
  231. package/build/services/stream/providers/redis/ioredis.js +0 -1
  232. package/build/services/stream/providers/redis/redis.d.ts +0 -60
  233. package/build/services/stream/providers/redis/redis.js +0 -1
  234. package/build/services/stream/providers/stream-initializable.d.ts +0 -4
  235. package/build/services/stream/providers/stream-initializable.js +0 -1
  236. package/build/services/sub/factory.d.ts +0 -7
  237. package/build/services/sub/factory.js +0 -29
  238. package/build/services/sub/index.d.ts +0 -22
  239. package/build/services/sub/index.js +0 -10
  240. package/build/services/sub/providers/nats/nats.d.ts +0 -19
  241. package/build/services/sub/providers/nats/nats.js +0 -1
  242. package/build/services/sub/providers/postgres/postgres.d.ts +0 -19
  243. package/build/services/sub/providers/postgres/postgres.js +0 -1
  244. package/build/services/sub/providers/redis/ioredis.d.ts +0 -17
  245. package/build/services/sub/providers/redis/ioredis.js +0 -1
  246. package/build/services/sub/providers/redis/redis.d.ts +0 -17
  247. package/build/services/sub/providers/redis/redis.js +0 -1
  248. package/build/services/task/index.d.ts +0 -36
  249. package/build/services/task/index.js +0 -1
  250. package/build/services/telemetry/index.d.ts +0 -52
  251. package/build/services/telemetry/index.js +0 -1
  252. package/build/services/worker/index.d.ts +0 -77
  253. package/build/services/worker/index.js +0 -1
  254. /package/build/types/{meshflow.js → memflow.js} +0 -0
@@ -1,264 +0,0 @@
1
- import { Await } from '../activities/await';
2
- import { Cycle } from '../activities/cycle';
3
- import { Hook } from '../activities/hook';
4
- import { Interrupt } from '../activities/interrupt';
5
- import { Signal } from '../activities/signal';
6
- import { Worker } from '../activities/worker';
7
- import { Trigger } from '../activities/trigger';
8
- import { ExporterService } from '../exporter';
9
- import { ILogger } from '../logger';
10
- import { Router } from '../router';
11
- import { SearchService } from '../search';
12
- import { StoreService } from '../store';
13
- import { StreamService } from '../stream';
14
- import { SubService } from '../sub';
15
- import { TaskService } from '../task';
16
- import { AppVID } from '../../types/app';
17
- import { ActivityType } from '../../types/activity';
18
- import { CacheMode } from '../../types/cache';
19
- import { JobExport } from '../../types/exporter';
20
- import { JobState, JobData, JobMetadata, JobOutput, JobStatus, JobInterruptOptions, JobCompletionOptions, ExtensionType } from '../../types/job';
21
- import { HotMeshApps, HotMeshConfig, HotMeshManifest, HotMeshSettings } from '../../types/hotmesh';
22
- import { ProviderClient, ProviderTransaction } from '../../types/provider';
23
- import { JobMessageCallback } from '../../types/quorum';
24
- import { StringAnyType, StringStringType } from '../../types/serializer';
25
- import { GetStatsOptions, IdsResponse, JobStatsInput, StatsResponse } from '../../types/stats';
26
- import { StreamCode, StreamData, StreamDataResponse, StreamError, StreamStatus } from '../../types/stream';
27
- import { WorkListTaskType } from '../../types/task';
28
- declare class EngineService {
29
- namespace: string;
30
- apps: HotMeshApps | null;
31
- appId: string;
32
- guid: string;
33
- exporter: ExporterService | null;
34
- search: SearchService<ProviderClient> | null;
35
- store: StoreService<ProviderClient, ProviderTransaction> | null;
36
- stream: StreamService<ProviderClient, ProviderTransaction> | null;
37
- subscribe: SubService<ProviderClient> | null;
38
- router: Router<typeof this.stream> | null;
39
- taskService: TaskService | null;
40
- logger: ILogger;
41
- cacheMode: CacheMode;
42
- untilVersion: string | null;
43
- jobCallbacks: Record<string, JobMessageCallback>;
44
- reporting: boolean;
45
- jobId: number;
46
- inited: string;
47
- /**
48
- * @private
49
- */
50
- constructor();
51
- /**
52
- * @private
53
- */
54
- static init(namespace: string, appId: string, guid: string, config: HotMeshConfig, logger: ILogger): Promise<EngineService>;
55
- /**
56
- * @private
57
- */
58
- verifyEngineFields(config: HotMeshConfig): void;
59
- /**
60
- * @private
61
- */
62
- initSearchChannel(search: ProviderClient, store?: ProviderClient): Promise<void>;
63
- /**
64
- * @private
65
- */
66
- initStoreChannel(store: ProviderClient): Promise<void>;
67
- /**
68
- * @private
69
- */
70
- initSubChannel(sub: ProviderClient, store: ProviderClient): Promise<void>;
71
- /**
72
- * @private
73
- */
74
- initStreamChannel(stream: ProviderClient, store: ProviderClient): Promise<void>;
75
- /**
76
- * @private
77
- */
78
- initRouter(config: HotMeshConfig): Promise<Router<StreamService<ProviderClient, ProviderTransaction>>>;
79
- /**
80
- * resolves the distributed executable version using a delay
81
- * to allow deployment race conditions to resolve
82
- * @private
83
- */
84
- fetchAndVerifyVID(vid: AppVID, count?: number): Promise<AppVID>;
85
- getVID(vid?: AppVID): Promise<AppVID>;
86
- /**
87
- * @private
88
- */
89
- setCacheMode(cacheMode: CacheMode, untilVersion: string): void;
90
- /**
91
- * @private
92
- */
93
- routeToSubscribers(topic: string, message: JobOutput): Promise<void>;
94
- /**
95
- * @private
96
- */
97
- processWebHooks(): Promise<void>;
98
- /**
99
- * @private
100
- */
101
- processTimeHooks(): Promise<void>;
102
- /**
103
- * @private
104
- */
105
- throttle(delayInMillis: number): Promise<void>;
106
- /**
107
- * @private
108
- */
109
- initActivity(topic: string, data?: JobData, context?: JobState): Promise<Await | Cycle | Hook | Signal | Trigger | Worker | Interrupt>;
110
- getSchema(topic: string): Promise<[activityId: string, schema: ActivityType]>;
111
- /**
112
- * @private
113
- */
114
- getSettings(): Promise<HotMeshSettings>;
115
- /**
116
- * @private
117
- */
118
- isPrivate(topic: string): boolean;
119
- /**
120
- * @private
121
- */
122
- plan(pathOrYAML: string): Promise<HotMeshManifest>;
123
- /**
124
- * @private
125
- */
126
- deploy(pathOrYAML: string): Promise<HotMeshManifest>;
127
- /**
128
- * @private
129
- */
130
- getStats(topic: string, query: JobStatsInput): Promise<StatsResponse>;
131
- /**
132
- * @private
133
- */
134
- getIds(topic: string, query: JobStatsInput, queryFacets?: any[]): Promise<IdsResponse>;
135
- /**
136
- * @private
137
- */
138
- resolveQuery(topic: string, query: JobStatsInput): Promise<GetStatsOptions>;
139
- /**
140
- * @private
141
- */
142
- processStreamMessage(streamData: StreamDataResponse): Promise<void>;
143
- /**
144
- * @private
145
- */
146
- execAdjacentParent(context: JobState, jobOutput: JobOutput, emit?: boolean): Promise<string>;
147
- /**
148
- * @private
149
- */
150
- hasParentJob(context: JobState, checkSevered?: boolean): boolean;
151
- /**
152
- * @private
153
- */
154
- resolveError(metadata: JobMetadata): StreamError | undefined;
155
- /**
156
- * @private
157
- */
158
- interrupt(topic: string, jobId: string, options?: JobInterruptOptions): Promise<string>;
159
- /**
160
- * @private
161
- */
162
- scrub(jobId: string): Promise<void>;
163
- /**
164
- * @private
165
- */
166
- hook(topic: string, data: JobData, status?: StreamStatus, code?: StreamCode): Promise<string>;
167
- /**
168
- * @private
169
- */
170
- hookTime(jobId: string, gId: string, topicOrActivity: string, type?: WorkListTaskType): Promise<string | void>;
171
- /**
172
- * @private
173
- */
174
- hookAll(hookTopic: string, data: JobData, keyResolver: JobStatsInput, queryFacets?: string[]): Promise<string[]>;
175
- /**
176
- * @private
177
- */
178
- pub(topic: string, data: JobData, context?: JobState, extended?: ExtensionType): Promise<string>;
179
- /**
180
- * @private
181
- */
182
- sub(topic: string, callback: JobMessageCallback): Promise<void>;
183
- /**
184
- * @private
185
- */
186
- unsub(topic: string): Promise<void>;
187
- /**
188
- * @private
189
- */
190
- psub(wild: string, callback: JobMessageCallback): Promise<void>;
191
- /**
192
- * @private
193
- */
194
- punsub(wild: string): Promise<void>;
195
- /**
196
- * @private
197
- */
198
- pubsub(topic: string, data: JobData, context?: JobState | null, timeout?: number): Promise<JobOutput>;
199
- /**
200
- * @private
201
- */
202
- pubOneTimeSubs(context: JobState, jobOutput: JobOutput, emit?: boolean): Promise<void>;
203
- /**
204
- * @private
205
- */
206
- getPublishesTopic(context: JobState): Promise<string>;
207
- /**
208
- * @private
209
- */
210
- pubPermSubs(context: JobState, jobOutput: JobOutput, emit?: boolean): Promise<void>;
211
- /**
212
- * @private
213
- */
214
- add(streamData: StreamData | StreamDataResponse): Promise<string>;
215
- /**
216
- * @private
217
- */
218
- registerJobCallback(jobId: string, jobCallback: JobMessageCallback): void;
219
- /**
220
- * @private
221
- */
222
- delistJobCallback(jobId: string): void;
223
- /**
224
- * @private
225
- */
226
- hasOneTimeSubscription(context: JobState): boolean;
227
- /**
228
- * @private
229
- */
230
- runJobCompletionTasks(context: JobState, options?: JobCompletionOptions): Promise<string | void>;
231
- /**
232
- * Job hash expiration is typically reliant on the metadata field
233
- * if the activity concludes normally. However, if the job is `interrupted`,
234
- * it will be expired immediately.
235
- * @private
236
- */
237
- resolveExpires(context: JobState, options: JobCompletionOptions): number;
238
- /**
239
- * @private
240
- */
241
- export(jobId: string): Promise<JobExport>;
242
- /**
243
- * @private
244
- */
245
- getRaw(jobId: string): Promise<StringStringType>;
246
- /**
247
- * @private
248
- */
249
- getStatus(jobId: string): Promise<JobStatus>;
250
- /**
251
- * @private
252
- */
253
- getState(topic: string, jobId: string): Promise<JobOutput>;
254
- /**
255
- * @private
256
- */
257
- getQueryState(jobId: string, fields: string[]): Promise<StringAnyType>;
258
- /**
259
- * @private
260
- * @deprecated
261
- */
262
- compress(terms: string[]): Promise<boolean>;
263
- }
264
- export { EngineService };
@@ -1 +0,0 @@
1
- 'use strict';const z=b;(function(c,d){const x=b,e=c();while(!![]){try{const f=parseInt(x(0x99))/0x1*(parseInt(x(0xec))/0x2)+-parseInt(x(0x14d))/0x3*(parseInt(x(0x121))/0x4)+parseInt(x(0xea))/0x5+parseInt(x(0x9a))/0x6*(parseInt(x(0x13a))/0x7)+parseInt(x(0x9c))/0x8*(parseInt(x(0xad))/0x9)+parseInt(x(0x94))/0xa*(parseInt(x(0x8f))/0xb)+-parseInt(x(0x119))/0xc*(parseInt(x(0xe4))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xb4e8b));var __importDefault=this&&this['__importDefault']||function(c){const y=b;return c&&c[y(0x109)]?c:{'default':c};};function b(c,d){const e=a();return b=function(f,g){f=f-0x8e;let h=e[f];return h;},b(c,d);}Object[z(0x148)](exports,'__esModule',{'value':!0x0}),exports[z(0xc6)]=void 0x0;const key_1=require(z(0x150)),enums_1=require('../../modules/enums'),utils_1=require('../../modules/utils'),activities_1=__importDefault(require('../activities')),compiler_1=require(z(0xe6)),exporter_1=require(z(0x12f)),reporter_1=require('../reporter'),router_1=require(z(0xdd)),serializer_1=require(z(0xf9)),factory_1=require('../search/factory'),factory_2=require(z(0xb9)),factory_3=require('../stream/factory'),factory_4=require('../sub/factory'),task_1=require(z(0xd0)),stream_1=require(z(0xbe));function a(){const ax=['process','stack','guid','HMSH_OTT_WAIT_TIME','error','setThrottle','status','export','unsubscribe','378YntpiD','now','code','output','processWebHooks','metadata','routeToSubscribers','resolveQuery','initSubChannel','StreamRole','scrub','emit','../store/factory','inited','not\x20found\x20','trc','pubPermSubs','../../types/stream','timeout','expire','pub','SearchServiceFactory','getIds','processEvent','getState','EngineService','unable\x20to\x20process\x20activity\x20for\x20topic\x20','delistJobCallback','Router','publish','search','punsub','processTimeHookEvent','substring','start','../task','getSubscription','unsub','subtype','default','reclaimDelay','target','getRaw','type','\x20for\x20app\x20version\x20','addSymbolValues','namespace','VALSEP','../router','router','HMSH_EXPIRE_JOB_SECONDS','getHookRule','$self','StreamStatus','sparse','42640780kRAyAN','verifyEngineFields','../compiler','stream','gid','engine-process','3617475nnlOYr','hookTime','36LgkPZx','HMSH_QUORUM_DELAY_MS','initStreamChannel','readonly','getStatus','execAdjacentParent','resolveError','\x20not\x20found','resolveJobKey','hook','runJobCompletionTasks','stringify','activity\x20type\x20','../serializer','pow','reporting','untilVersion','initRouter','sleepFor','ENGINE','STREAMS','engine-executable-cache','PENDING','jobCallbacks','restoreHierarchy','getQueryState','getStats','SUCCESS','interrupt','__esModule','punsubscribe','isPrivate','apps','plan','fetchAndVerifyVID','unable\x20to\x20find\x20hook\x20rule\x20for\x20topic\x20','consumeMessages','descend','createInputContext','resolveExpires','reclaimCount','pubsub','getApp','jid','cache','12fgLBwi','registerJobForCleanup','QUORUM','spn','engine','TRANSITION','ngn','exporter','134716zQWIQe','cacheMode','bind','data','taskService','init','StreamDataType','processStreamMessage','logger','getThrottleRate','CompilerService','debug','hasParentJob','keys','../exporter','engine\x20must\x20include\x20`store`,\x20`stream`,\x20and\x20`sub`\x20fields.','nocache','parse','hookAll','enqueueWorkItems','TIMEHOOK','sub','initStoreChannel','KeyType','join','4313967XdjLAv','getSettings','WEBHOOK','psub','identifyProvider','aid','StoreServiceFactory','psubscribe','subscribe','tpc','info','initActivity','split','ReporterService','defineProperty','SubServiceFactory','ExporterService','toString','version','51YSAZDJ','appId','getVID','../../modules/key','StreamServiceFactory','getPublishesTopic','TaskService','publishMessage','formatISODate','job','length','HMSH_CODE_PENDING','dad','getWorkItems','66ypLOft','RESULT','store','l2s','compress','936630iMZcap','range','topic','initSearchChannel','HMSH_CODE_SUCCESS','69738VQTdDW','6jyWQjN','mintKey','273632CmcEFC','err','startsWith','publishes','map','registerJobCallback','deploy','getSchema'];a=function(){return ax;};return a();}class EngineService{constructor(){const A=z;this[A(0x122)]=A(0x118),this[A(0xfc)]=null,this[A(0x103)]={},this[A(0xfb)]=!0x1,this['jobId']=0x1;}static async['init'](c,d,f,g,h){const B=z;if(g[B(0x11d)]){const j=new EngineService();j[B(0xe5)](g),j[B(0xdb)]=c,j[B(0x14e)]=d,j[B(0xa6)]=f,j[B(0x129)]=h,await j[B(0x97)](g['engine'][B(0x91)]),await j[B(0x137)](g[B(0x11d)][B(0x91)]),await j[B(0xb5)](g[B(0x11d)][B(0x136)],g[B(0x11d)][B(0xc1)]??g[B(0x11d)][B(0x91)]),await j[B(0xee)](g[B(0x11d)][B(0xe7)],g[B(0x11d)][B(0x91)]),j[B(0xde)]=await j[B(0xfd)](g);const k=j[B(0x91)][B(0x9b)](key_1[B(0x138)][B(0x100)],{'appId':j[B(0x14e)]});return j[B(0xde)][B(0x110)](k,B(0xff),j[B(0xa6)],j[B(0x128)][B(0x123)](j)),j[B(0x125)]=new task_1['TaskService'](j['store'],h),j['exporter']=new exporter_1[(B(0x14a))](j[B(0x14e)],j[B(0x91)],h),j[B(0xba)]=(0x0,utils_1[B(0x155)])(new Date()),j;}}[z(0xe5)](c){const C=z;if(!(0x0,utils_1[C(0x13e)])(c[C(0x11d)][C(0x91)])||!(0x0,utils_1['identifyProvider'])(c[C(0x11d)][C(0xe7)])||!(0x0,utils_1[C(0x13e)])(c['engine'][C(0x136)]))throw new Error(C(0x130));}async[z(0x97)](c,d){const D=z;this[D(0xcb)]=await factory_1[D(0xc2)][D(0x126)](c,d,this[D(0xdb)],this[D(0x14e)],this[D(0x129)]);}async[z(0x137)](c){const E=z;this[E(0x91)]=await factory_2[E(0x140)][E(0x126)](c,this['namespace'],this[E(0x14e)],this['logger']);}async['initSubChannel'](c,d){const F=z;this[F(0x142)]=await factory_4[F(0x149)][F(0x126)](c,d,this['namespace'],this['appId'],this[F(0xa6)],this[F(0x129)]);}async[z(0xee)](c,d){const G=z;this[G(0xe7)]=await factory_3[G(0x151)]['init'](c,d,this[G(0xdb)],this[G(0x14e)],this[G(0x129)]);}async[z(0xfd)](c){const H=z,d=await this[H(0x91)][H(0x12a)](':');return new router_1[(H(0xc9))]({'namespace':this[H(0xdb)],'appId':this[H(0x14e)],'guid':this[H(0xa6)],'role':stream_1[H(0xb6)][H(0xff)],'reclaimDelay':c[H(0x11d)][H(0xd5)],'reclaimCount':c[H(0x11d)][H(0x114)],'throttle':d,'readonly':c[H(0x11d)][H(0xef)]},this['stream'],this[H(0x129)]);}async[z(0x10e)](c,d=0x0){const I=z;if(isNaN(Number(c[I(0x14c)]))){const f=await this[I(0x91)][I(0x116)](c['id'],!0x0);if(!isNaN(Number(f[I(0x14c)])))return this[I(0x10c)]||(this[I(0x10c)]={}),this['apps'][c['id']]=f,{'id':c['id'],'version':f['version']};if(d<0xa)return await(0x0,utils_1[I(0xfe)])(0x2*enums_1[I(0xed)]),await this['fetchAndVerifyVID'](c,d+0x1);this[I(0x129)][I(0xa8)]('engine-vid-resolution-error',{'id':c['id'],'guid':this[I(0xa6)]});}return c;}async[z(0x14f)](c){const J=z;if(J(0x131)===this[J(0x122)]){const d=await this[J(0x91)][J(0x116)](this['appId'],!0x0);return d[J(0x14c)]['toString']()===this['untilVersion'][J(0x14b)]()&&(this[J(0x10c)]||(this[J(0x10c)]={}),this['apps'][this['appId']]=d,this['setCacheMode'](J(0x118),d[J(0x14c)][J(0x14b)]())),{'id':this[J(0x14e)],'version':d[J(0x14c)]};}return!this['apps']&&c?(this['apps']={},this[J(0x10c)][this[J(0x14e)]]=c,c):await this[J(0x10e)]({'id':this['appId'],'version':this[J(0x10c)]?.[this[J(0x14e)]][J(0x14c)]});}['setCacheMode'](c,d){const K=z;this[K(0x129)][K(0x144)](K(0x101),{'mode':c,[K(0x118)===c?K(0xd6):'until']:d}),this[K(0x122)]=c,this['untilVersion']=d;}async[z(0xb3)](c,d){const L=z,f=this['jobCallbacks'][d[L(0xb2)][L(0x117)]];f&&(this[L(0xc8)](d[L(0xb2)][L(0x117)]),f(c,d));}async[z(0xb1)](){const M=z;this['taskService'][M(0xb1)](this[M(0xf5)][M(0x123)](this));}async['processTimeHooks'](){const N=z;this['taskService']['processTimeHooks'](this[N(0xeb)][N(0x123)](this));}async['throttle'](c){const O=z;try{this[O(0xde)]?.[O(0xa9)](c);}catch(d){this['logger']['error']('engine-throttle-error',{'error':d});}}async[z(0x145)](c,d={},f){const P=z,[g,h]=await this[P(0xa3)](c),j=activities_1[P(0xd4)][h[P(0xd8)]];if(j){const k=(0x0,utils_1['formatISODate'])(new Date());return new j(h,d,{'aid':g,'atp':h['type'],'stp':h[P(0xd3)],'ac':k,'au':k},null,this,f);}throw new Error(P(0xf8)+h[P(0xd8)]+P(0xf3));}async[z(0xa3)](c){const Q=z,d=await this[Q(0x91)][Q(0x116)](this[Q(0x14e)]);if(!d)throw new Error('no\x20app\x20found\x20for\x20id\x20'+this['appId']);if(this[Q(0x10b)](c)){const f=c[Q(0xce)](0x1);return[f,await this['store'][Q(0xa3)](f,await this[Q(0x14f)](d))];}{const g=await this[Q(0x91)][Q(0xd1)](c,await this[Q(0x14f)](d));if(g)return[g,await this[Q(0x91)]['getSchema'](g,await this['getVID'](d))];}throw new Error('no\x20subscription\x20found\x20for\x20topic\x20'+c+'\x20in\x20app\x20'+this[Q(0x14e)]+Q(0xd9)+d['version']);}async['getSettings'](){const R=z;return await this[R(0x91)][R(0x13b)]();}[z(0x10b)](c){const S=z;return c[S(0x9e)]('.');}async[z(0x10d)](c){const T=z,d=new compiler_1[(T(0x12b))](this[T(0x91)],this['stream'],this[T(0x129)]);return await d['plan'](c);}async['deploy'](c){const U=z,d=new compiler_1[(U(0x12b))](this[U(0x91)],this[U(0xe7)],this['logger']);return await d[U(0xa2)](c);}async[z(0x106)](c,d){const V=z,{id:f,version:g}=await this[V(0x14f)](),h=new reporter_1['ReporterService']({'id':f,'version':g},this['store'],this['logger']),j=await this['resolveQuery'](c,d);return await h[V(0x106)](j);}async[z(0xc3)](c,d,f=[]){const W=z,{id:g,version:h}=await this['getVID'](),j=new reporter_1[(W(0x147))]({'id':g,'version':h},this['store'],this[W(0x129)]),k=await this['resolveQuery'](c,d);return await j['getIds'](k,f);}async[z(0xb4)](c,d){const X=z,f=await this[X(0x145)](c,d[X(0x124)]);return await f[X(0xc5)](),{'end':d['end'],'start':d[X(0xcf)],'range':d[X(0x95)],'granularity':f['resolveGranularity'](),'key':f[X(0xf4)](f[X(0x112)]()),'sparse':d[X(0xe3)]};}async[z(0x128)](c){const Y=z;this[Y(0x129)][Y(0x12c)](Y(0xe9),{'jid':c[Y(0xb2)][Y(0x117)],'gid':c[Y(0xb2)]['gid'],'dad':c[Y(0xb2)][Y(0x159)],'aid':c[Y(0xb2)][Y(0x13f)],'status':c[Y(0xaa)]||stream_1[Y(0xe2)][Y(0x107)],'code':c[Y(0xaf)]||0xc8,'type':c[Y(0xd8)]});const d={'metadata':{'guid':c[Y(0xb2)][Y(0xa6)],'jid':c[Y(0xb2)][Y(0x117)],'gid':c['metadata'][Y(0xe8)],'dad':c[Y(0xb2)]['dad'],'aid':c[Y(0xb2)][Y(0x13f)]},'data':c[Y(0x124)]};if(c[Y(0xd8)]===stream_1[Y(0x127)][Y(0x135)]){const f=await this[Y(0x145)]('.'+c['metadata'][Y(0x13f)],d['data'],d);await f[Y(0xcd)](c['metadata'][Y(0x117)]);}else{if(c[Y(0xd8)]===stream_1[Y(0x127)][Y(0x13c)]){const g=await this[Y(0x145)]('.'+c['metadata']['aid'],d[Y(0x124)],d);await g['processWebHookEvent'](c[Y(0xaa)],c['code']);}else{if(c[Y(0xd8)]===stream_1[Y(0x127)][Y(0x11e)]){const h=await this['initActivity']('.'+c[Y(0xb2)][Y(0x13f)],d[Y(0x124)],d);await h[Y(0xa4)]();}else{if(c[Y(0xd8)]===stream_1['StreamDataType']['AWAIT']){d[Y(0xb2)]={...d[Y(0xb2)],'pj':c['metadata'][Y(0x117)],'pg':c[Y(0xb2)][Y(0xe8)],'pd':c['metadata'][Y(0x159)],'pa':c[Y(0xb2)][Y(0x13f)],'px':!0x1===c['metadata']['await'],'trc':c[Y(0xb2)][Y(0xbc)],'spn':c[Y(0xb2)][Y(0x11c)]};const i=await this[Y(0x145)](c[Y(0xb2)][Y(0x96)],c[Y(0x124)],d);await i['process']();}else{if(c[Y(0xd8)]===stream_1[Y(0x127)][Y(0x90)]){const j=await this[Y(0x145)]('.'+d['metadata'][Y(0x13f)],c[Y(0x124)],d);await j[Y(0xc4)](c['status'],c[Y(0xaf)]);}else{const k=await this[Y(0x145)]('.'+c[Y(0xb2)]['aid'],c[Y(0x124)],d);await k['processEvent'](c[Y(0xaa)],c[Y(0xaf)],Y(0xb0));}}}}}this[Y(0x129)]['debug']('engine-process-end',{'jid':c['metadata']['jid'],'gid':c[Y(0xb2)][Y(0xe8)],'aid':c[Y(0xb2)][Y(0x13f)]});}async[z(0xf1)](c,d,f=!0x1){const Z=z;if(this[Z(0x12d)](c)){const g=this[Z(0xf2)](d[Z(0xb2)]),h=c[Z(0xe1)]?.['output']?.[Z(0xb2)]?.[Z(0x92)]||c[Z(0xe1)]?.[Z(0xb0)]?.[Z(0xb2)]?.['l1s'],j={'metadata':{'guid':(0x0,utils_1[Z(0xa6)])(),'jid':c['metadata']['pj'],'gid':c[Z(0xb2)]['pg'],'dad':c[Z(0xb2)]['pd'],'aid':c[Z(0xb2)]['pa'],'trc':c['metadata'][Z(0xbc)],'spn':h},'type':stream_1[Z(0x127)][Z(0x90)],'data':d[Z(0x124)]};return g&&g['code']?(j[Z(0xaa)]=stream_1[Z(0xe2)]['ERROR'],j[Z(0x124)]=g,j['code']=g['code'],j[Z(0xa5)]=g[Z(0xa5)]):f?(j[Z(0xaa)]=stream_1[Z(0xe2)][Z(0x102)],j['code']=enums_1[Z(0x158)]):(j[Z(0xaa)]=stream_1[Z(0xe2)]['SUCCESS'],j[Z(0xaf)]=enums_1[Z(0x98)]),await this[Z(0xde)]?.[Z(0x154)](null,j);}}['hasParentJob'](c,d=!0x1){const a0=z;return d?Boolean(c[a0(0xb2)]['pj']&&c['metadata']['pa']&&!c[a0(0xb2)]['px']):Boolean(c['metadata']['pj']&&c[a0(0xb2)]['pa']);}['resolveError'](c){const a1=z;if(c&&c[a1(0x9d)])return JSON[a1(0x132)](c[a1(0x9d)]);}async['interrupt'](c,d,f={}){const a2=z;await this[a2(0x91)][a2(0x108)](c,d,f);const g=await this[a2(0xc5)](c,d),h={'interrupt':f[a2(0x111)],'expire':f[a2(0xc0)]};return await this[a2(0xf6)](g,h);}async[z(0xb7)](c){const a3=z;await this[a3(0x91)][a3(0xb7)](c);}async['hook'](c,d,f=stream_1[z(0xe2)][z(0x107)],g=0xc8){const a4=z,h=await this[a4(0x125)][a4(0xe0)](c),[j]=await this[a4(0xa3)]('.'+h['to']),k={'type':stream_1[a4(0x127)][a4(0x13c)],'status':f,'code':g,'metadata':{'guid':(0x0,utils_1[a4(0xa6)])(),'aid':j,'topic':c},'data':d};return await this[a4(0xde)]?.[a4(0x154)](null,k);}async['hookTime'](c,d,f,g){const a5=z;if(a5(0x108)===g||a5(0xc0)===g)return await this[a5(0x108)](f,c,{'suppress':!0x0,'expire':0x1});const [h,...j]=f[a5(0x146)](','),k=','+j[a5(0x139)](','),l={'type':stream_1[a5(0x127)][a5(0x135)],'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':c,'gid':d,'dad':k,'aid':h},'data':{'timestamp':Date[a5(0xae)]()}};await this[a5(0xde)]?.[a5(0x154)](null,l);}async[z(0x133)](f,g,h,j=[]){const a6=z,k=await this[a6(0x14f)](),l=await this[a6(0x125)][a6(0xe0)](f);if(l){const m=await(0x0,utils_1['getSubscriptionTopic'])(l['to'],this['store'],k),p=await this['resolveQuery'](m,h),q=new reporter_1[(a6(0x147))](k,this[a6(0x91)],this[a6(0x129)]),u=await q[a6(0x8e)](p,j);if(u[a6(0x157)]){const v=new task_1[(a6(0x153))](this[a6(0x91)],this['logger']);await v[a6(0x134)](u[a6(0xa0)](w=>[f,w,h[a6(0xb7)]||!0x1,JSON[a6(0xf7)](g)][a6(0x139)](key_1[a6(0xdc)]))),this[a6(0x142)][a6(0xca)](key_1[a6(0x138)][a6(0x11b)],{'type':'work','originator':this[a6(0xa6)]},this[a6(0x14e)]);}return u;}throw new Error(a6(0x10f)+f);}async[z(0xc1)](c,d,f,g){const a7=z,h=await this[a7(0x145)](c,d,f);if(h)return await h[a7(0xa4)](g);throw new Error(a7(0xc7)+c);}async['sub'](c,d){const a8=z;return await this[a8(0x142)][a8(0x142)](key_1[a8(0x138)][a8(0x11b)],async(f,g)=>{const a9=a8;d(g[a9(0x96)],g[a9(0x156)]);},this[a8(0x14e)],c);}async[z(0xd2)](c){const aa=z;return await this['subscribe'][aa(0xac)](key_1[aa(0x138)]['QUORUM'],this[aa(0x14e)],c);}async[z(0x13d)](c,d){const ab=z;return await this['subscribe'][ab(0x141)](key_1['KeyType'][ab(0x11b)],async(f,g)=>{const ac=ab;d(g[ac(0x96)],g[ac(0x156)]);},this[ab(0x14e)],c);}async[z(0xcc)](c){const ad=z;return await this[ad(0x142)][ad(0x10a)](key_1[ad(0x138)][ad(0x11b)],this['appId'],c);}async[z(0x115)](c,d,f,g=enums_1[z(0xa7)]){const ae=z;f={'metadata':{'ngn':this[ae(0xa6)],'trc':f?.[ae(0xb2)]?.[ae(0xbc)],'spn':f?.[ae(0xb2)]?.['spn']}};const h=await this[ae(0xc1)](c,d,f);return new Promise((j,k)=>{const af=ae;this[af(0xa1)](h,(l,m)=>{const ag=af;if(m[ag(0xb2)][ag(0x9d)]){const n=JSON[ag(0x132)](m['metadata'][ag(0x9d)]);k({'error':n,'job_id':m[ag(0xb2)][ag(0x117)]});}else j(m);}),setTimeout(()=>{const ah=af;this[ah(0xc8)](h),k({'code':enums_1['HMSH_CODE_TIMEOUT'],'message':ah(0xbf),'job_id':h});},g);});}async['pubOneTimeSubs'](c,d,f=!0x1){const ai=z;if(this['hasOneTimeSubscription'](c)){const g={'type':'job','topic':c[ai(0xb2)][ai(0x117)],'job':(0x0,utils_1[ai(0x104)])(d)};this[ai(0x142)]['publish'](key_1['KeyType']['QUORUM'],g,this['appId'],c[ai(0xb2)][ai(0x11f)]);}}async[z(0x152)](c){const aj=z,d=await this[aj(0x14f)](),f=c[aj(0xb2)]['aid']||c[aj(0xe1)]?.[aj(0xb0)]?.[aj(0xb2)]?.['aid'];return(await this[aj(0x91)]['getSchema'](f,d))[aj(0x9f)];}async[z(0xbd)](c,d,f=!0x1){const ak=z,g=await this[ak(0x152)](c);if(g){const h={'type':ak(0x156),'topic':g,'job':(0x0,utils_1[ak(0x104)])(d)};this[ak(0x142)][ak(0xca)](key_1[ak(0x138)][ak(0x11b)],h,this['appId'],g+'.'+c[ak(0xb2)]['jid']);}}async['add'](c){const al=z;return await this[al(0xde)]?.[al(0x154)](null,c);}[z(0xa1)](c,d){const am=z;this[am(0x103)][c]=d;}[z(0xc8)](c){const an=z;delete this[an(0x103)][c];}['hasOneTimeSubscription'](c){const ao=z;return Boolean(c[ao(0xb2)][ao(0x11f)]);}async[z(0xf6)](c,d={}){const ap=z,f=this[ap(0x12d)](c,!0x0),g=this['hasOneTimeSubscription'](c),h=await this[ap(0x152)](c);let j;if(f||g||h){const k=await this[ap(0xc5)](c[ap(0xb2)][ap(0x143)],c['metadata'][ap(0x117)]);j=await this['execAdjacentParent'](c,k,d['emit']),this['pubOneTimeSubs'](c,k,d[ap(0xb8)]),this['pubPermSubs'](c,k,d[ap(0xb8)]);}return d[ap(0xb8)]||this[ap(0x125)][ap(0x11a)](c[ap(0xb2)][ap(0x117)],this[ap(0x113)](c,d),d),j;}[z(0x113)](c,d){const aq=z;return d[aq(0xc0)]??c['metadata'][aq(0xc0)]??enums_1[aq(0xdf)];}async['export'](c){const ar=z;return await this[ar(0x120)][ar(0xab)](c);}async[z(0xd7)](c){const as=z;return await this[as(0x91)][as(0xd7)](c);}async[z(0xf0)](c){const at=z,{id:d}=await this[at(0x14f)]();return await this['store']['getStatus'](c,d);}async[z(0xc5)](c,d){const au=z,f=await this[au(0x91)]['getSymbols']('$'+c),g={['$'+c]:Object[au(0x12e)](f)},h=await this[au(0x91)]['getState'](d,g,{});if(!h)throw new Error(au(0xbb)+d);const [j,k]=h,l=(0x0,utils_1[au(0x104)])(j);return k&&l[au(0xb2)]&&(l[au(0xb2)]['js']=k),l;}async[z(0x105)](c,d){const av=z;return await this[av(0x91)][av(0x105)](c,d);}async[z(0x93)](c){const aw=z,d=await this[aw(0x91)]['getSymbolValues'](),f=Object['keys'](d)[aw(0x157)],g=Math[aw(0xfa)](0x34,0x2)-0x1,h=serializer_1['SerializerService']['filterSymVals'](f,g,d,new Set(c));return await this[aw(0x91)][aw(0xda)](h);}}exports[z(0xc6)]=EngineService;
@@ -1,44 +0,0 @@
1
- import { ILogger } from '../logger';
2
- import { StoreService } from '../store';
3
- import { DependencyExport, ExportOptions, JobActionExport, JobExport } from '../../types/exporter';
4
- import { ProviderClient, ProviderTransaction } from '../../types/provider';
5
- import { StringStringType, Symbols } from '../../types/serializer';
6
- /**
7
- * Downloads job data from Redis (hscan, hmget, hgetall)
8
- * Expands process data and includes dependency list
9
- */
10
- declare class ExporterService {
11
- appId: string;
12
- logger: ILogger;
13
- store: StoreService<ProviderClient, ProviderTransaction>;
14
- symbols: Promise<Symbols> | Symbols;
15
- constructor(appId: string, store: StoreService<ProviderClient, ProviderTransaction>, logger: ILogger);
16
- /**
17
- * Convert the job hash into a JobExport object.
18
- * This object contains various facets that describe the interaction
19
- * in terms relevant to narrative storytelling.
20
- */
21
- export(jobId: string, options?: ExportOptions): Promise<JobExport>;
22
- /**
23
- * Inflates the key from Redis, 3-character symbol
24
- * into a human-readable JSON path, reflecting the
25
- * tree-like structure of the unidimensional Hash
26
- */
27
- inflateKey(key: string): string;
28
- /**
29
- * Inflates the job data from Redis into a JobExport object
30
- * @param jobHash - the job data from Redis
31
- * @param dependencyList - the list of dependencies for the job
32
- * @returns - the inflated job data
33
- */
34
- inflate(jobHash: StringStringType, dependencyList: string[]): JobExport;
35
- /**
36
- * Inflates the dependency data from Redis into a JobExport object by
37
- * organizing the dimensional isolate in sch a way asto interleave
38
- * into a story
39
- * @param data - the dependency data from Redis
40
- * @returns - the organized dependency data
41
- */
42
- inflateDependencyData(data: string[], actions: JobActionExport): DependencyExport[];
43
- }
44
- export { ExporterService };
@@ -1 +0,0 @@
1
- 'use strict';const L=b;function a(){const S=['inflateDependencyData','other','join','__esModule','appId','5035696PIejKJ','12AgKuWg','getRaw','entries','hook','split','match','../serializer','symbols','51HMkfoB','fromString','flow','8755600xaIfNo','replace','20407370AfMGkx','restoreHierarchy','VALSEP','1973005aLvfid','export','6762QqmdLY','11900358tuTUyh','getAllSymbols','../../modules/key','inflate','SerializerService','store','215844wvKONE','defineProperty','8trPiYV','../../modules/utils','inflateKey','forEach'];a=function(){return S;};return a();}(function(c,d){const K=b,e=c();while(!![]){try{const f=parseInt(K(0x1d1))/0x1*(parseInt(K(0x1db))/0x2)+parseInt(K(0x1bd))/0x3*(-parseInt(K(0x1bf))/0x4)+-parseInt(K(0x1d9))/0x5*(-parseInt(K(0x1c9))/0x6)+parseInt(K(0x1d4))/0x7+-parseInt(K(0x1c8))/0x8+parseInt(K(0x1dc))/0x9+-parseInt(K(0x1d6))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xafed8));function b(c,d){const e=a();return b=function(f,g){f=f-0x1bc;let h=e[f];return h;},b(c,d);}Object[L(0x1be)](exports,L(0x1c6),{'value':!0x0}),exports['ExporterService']=void 0x0;const key_1=require(L(0x1de)),utils_1=require(L(0x1c0)),serializer_1=require(L(0x1cf));class ExporterService{constructor(c,d,f){const M=L;this[M(0x1c7)]=c,this['logger']=f,this[M(0x1bc)]=d;}async[L(0x1da)](c,d={}){const N=L;this[N(0x1d0)]||(this[N(0x1d0)]=this[N(0x1bc)][N(0x1dd)](),this[N(0x1d0)]=await this['symbols']);const f=await this['store'][N(0x1ca)](c);return this[N(0x1df)](f,[]);}[L(0x1c1)](c){const O=L;return c in this[O(0x1d0)]?this[O(0x1d0)][c]:c;}[L(0x1df)](c,d){const P=L,f={},g=this['inflateDependencyData'](d,{'hooks':{},'main':{'cursor':-0x1,'items':[]}}),h=/^([a-zA-Z]{3}),(\d+(?:,\d+)*)/;return Object[P(0x1cb)](c)[P(0x1c2)](([j,k])=>{const Q=P,m=j[Q(0x1ce)](h);if(m){const [p,q,u]=m,v=this[Q(0x1c1)](q),w=''+u[Q(0x1d5)](/,/g,'/'),x=serializer_1[Q(0x1e0)]['fromString'](k);f[w+'/'+v]=x;}else 0x3===j['length']&&(f[this[Q(0x1c1)](j)]=serializer_1[Q(0x1e0)][Q(0x1d2)](k));}),{'dependencies':g,'process':(0x0,utils_1[P(0x1d7)])(f),'status':c[':']};}[L(0x1c3)](c,d){const f=/([0-9,]+)-(\d+)$/,g=/-(\d+)$/;return c['map']((j,k)=>{const R=b,[m,q,v,w,...x]=j['split'](key_1[R(0x1d8)]),z=x['join'](key_1[R(0x1d8)]),A=z[R(0x1ce)](f);let B,C,D='';if(A){const [E,F,G]=A;D=F[R(0x1cd)](',')[R(0x1c5)]('/'),B=D+'['+G+']',C=R(0x1cc);}else{const H=z[R(0x1ce)](g);if(H){const [I,J]=H;B='['+J+']',C=R(0x1d3);}else B='/',C=R(0x1c4);}return{'type':m,'topic':q,'gid':v,'jid':z};});}}exports['ExporterService']=ExporterService;