@reventlessdev/reventless-aws 3.0.0-alpha.411 → 3.0.0-alpha.413

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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.413 (2026-10-30)
7
+
8
+ ### Features
9
+
10
+ * **automation:** a work item with personal data is stored like an event ([f9e173f](https://github.com/ReventlessDev/reventless-core/commit/f9e173fb6f1dc671900052f2c4b6590ee99b5bdf))
11
+
12
+
13
+ # 3.0.0-alpha.412 (2026-10-30)
14
+
15
+ ### Features
16
+
17
+ * **outbound:** a work item with personal data is stored like an event ([5588bbe](https://github.com/ReventlessDev/reventless-core/commit/5588bbeaccc5032800d02871243c70147c669ebd))
18
+
19
+
6
20
  # 3.0.0-alpha.411 (2026-10-30)
7
21
 
8
22
  **Note:** Version bump only for package @reventlessdev/reventless-aws
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-aws",
3
- "version": "3.0.0-alpha.411",
3
+ "version": "3.0.0-alpha.413",
4
4
  "description": "AWS adapters for Reventless",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -27,14 +27,14 @@
27
27
  "@reventlessdev/rescript-jest": "1.0.0-alpha.13",
28
28
  "@reventlessdev/rescript-node": "2.0.0-alpha.24",
29
29
  "@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.37",
30
- "@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
31
30
  "@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
32
- "@reventlessdev/reventless-core": "3.0.0-alpha.320",
33
- "@reventlessdev/reventless-infra": "3.0.0-alpha.217",
34
- "@reventlessdev/reventless-interop": "3.0.0-alpha.42",
35
- "@reventlessdev/reventless-postgres": "3.0.0-alpha.184",
31
+ "@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
36
32
  "@reventlessdev/rescript-web": "1.0.0-alpha.8",
37
- "@reventlessdev/reventless-spec": "3.0.0-alpha.188"
33
+ "@reventlessdev/reventless-core": "3.0.0-alpha.322",
34
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.219",
35
+ "@reventlessdev/reventless-postgres": "3.0.0-alpha.186",
36
+ "@reventlessdev/reventless-interop": "3.0.0-alpha.42",
37
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.190"
38
38
  },
39
39
  "devDependencies": {
40
40
  "rescript": "12.3.1",
@@ -502,7 +502,7 @@ let makeAutomationJsonEventsHandler = (
502
502
  Effect.promise(async () => {
503
503
  await loadTodoItems()
504
504
  await loadSchedules(schedules())
505
- callback.phase1(jsons, context)
505
+ await callback.phase1(jsons, context, ~capabilities=capabilities())
506
506
  await syncTodoItems()
507
507
  await followSchedules(schedules(), callback)
508
508
  await callback.phase2(publishJsons)
@@ -549,7 +549,7 @@ let makeOutboundJsonEventsHandler = (
549
549
  ->Effect.flatMap(events =>
550
550
  Effect.promise(async () => {
551
551
  await loadTodoItems()
552
- callback.phase1(events)
552
+ await callback.phase1(events, ~capabilities=capabilities())
553
553
  await syncTodoItems()
554
554
  await callback.phase2(publishJsons, ~capabilities=capabilities())
555
555
  await syncTodoItems()
@@ -643,7 +643,11 @@ let makeAutomationRegisteredHandler = (
643
643
  async (~key, ~at) => {
644
644
  await loadTodoItems()
645
645
  await loadSchedules(schedules())
646
- callback.phase1([ReventlessCore.AutomationSlice_Callback.tickEvent(~key, ~at)], context)
646
+ await callback.phase1(
647
+ [ReventlessCore.AutomationSlice_Callback.tickEvent(~key, ~at)],
648
+ context,
649
+ ~capabilities=capabilities(),
650
+ )
647
651
  await syncTodoItems()
648
652
  // A once-only schedule's row goes when it fires.
649
653
  switch schedules() {
@@ -304,7 +304,7 @@ function makeAutomationJsonEventsHandler(context, callback, publishJsons, syncTo
304
304
  return stream => Effect.flatMap(Stream.runCollect(stream), jsons => Effect.promise(async () => {
305
305
  await loadTodoItems();
306
306
  await loadSchedules(schedules());
307
- callback.phase1(jsons, context);
307
+ await callback.phase1(jsons, context, capabilities());
308
308
  await syncTodoItems();
309
309
  await followSchedules(schedules(), callback);
310
310
  await callback.phase2(publishJsons);
@@ -330,7 +330,7 @@ function makeOutboundJsonEventsHandler(consumedEventSchema, callback, publishJso
330
330
  }
331
331
  })), events => Stream$1.fromIterable(events))), events => Effect.promise(async () => {
332
332
  await loadTodoItems();
333
- callback.phase1(events);
333
+ await callback.phase1(events, capabilities());
334
334
  await syncTodoItems();
335
335
  await callback.phase2(publishJsons, capabilities());
336
336
  return await syncTodoItems();
@@ -382,7 +382,7 @@ function makeAutomationRegisteredHandler(entry, sliceName, callback, schedule) {
382
382
  tick: async (key, at) => {
383
383
  await loadTodoItems();
384
384
  await loadSchedules(schedules());
385
- callback.phase1([AutomationSlice_Callback$ReventlessCore.tickEvent(key, at)], context);
385
+ await callback.phase1([AutomationSlice_Callback$ReventlessCore.tickEvent(key, at)], context, capabilities());
386
386
  await syncTodoItems();
387
387
  let match = schedules();
388
388
  if (match !== undefined) {
@@ -36,6 +36,7 @@ module Make = (
36
36
  EventCollectorRuntimeBuilder,
37
37
  Api,
38
38
  DeployTimeSchedules,
39
+ OutboundTranslationSlice_Builder.DeployTimeCapabilities,
39
40
  )
40
41
 
41
42
  module Make = (
@@ -10,6 +10,7 @@ import * as QueryDbStorage_DynamoDb$ReventlessAws from "../adapter/QueryDb/Query
10
10
  import * as AutomationSlice_Builder$ReventlessCore from "@reventlessdev/reventless-core/src/components/AutomationSlice/AutomationSlice_Builder.res.mjs";
11
11
  import * as QueryDbResolvers_AppSync$ReventlessAws from "../adapter/QueryDb/QueryDbResolvers_AppSync.res.mjs";
12
12
  import * as RuntimeEnvironment_Lambda$ReventlessAws from "../adapter/Runtime/RuntimeEnvironment_Lambda.res.mjs";
13
+ import * as OutboundTranslationSlice_Builder$ReventlessAws from "./OutboundTranslationSlice_Builder.res.mjs";
13
14
  import * as EventCollectorChannel_DynamoDbStream$ReventlessAws from "../adapter/EventCollector/EventCollectorChannel_DynamoDbStream.res.mjs";
14
15
  import * as AutomationSliceRuntime_Builder_Single$ReventlessAws from "../adapter/Runtime/AutomationSliceRuntime_Builder_Single.res.mjs";
15
16
 
@@ -51,7 +52,7 @@ function Make(Api) {
51
52
  },
52
53
  forEventCollector: AutomationSliceRuntime_Builder_Single$ReventlessAws.forEventCollector,
53
54
  finish: AutomationSliceRuntime_Builder_Single$ReventlessAws.finish
54
- })(Api)(DeployTimeSchedules);
55
+ })(Api)(DeployTimeSchedules)(OutboundTranslationSlice_Builder$ReventlessAws.DeployTimeCapabilities);
55
56
  let Make$1 = Spec => (Automation => {
56
57
  let InnerMake = Inner.Make(Spec)(Automation);
57
58
  let sourceNames = InnerMake.sourceNames;
@@ -218,7 +218,7 @@ describe("AutomationSliceEntryPoint_Ops.makeAutomationJsonEventsHandler", () =>
218
218
  let receivedCtx = ref(None)
219
219
  let callback: AutomationSliceEntryPoint_Ops.automationCallback = {
220
220
  todoItems: Dict.make(),
221
- phase1: (jsons, ctx) => {
221
+ phase1: async (jsons, ctx, ~capabilities as _) => {
222
222
  receivedJsons := jsons
223
223
  receivedCtx := Some(ctx)
224
224
  steps->Array.push("phase1")
@@ -261,7 +261,7 @@ describe("AutomationSliceEntryPoint_Ops.makeAutomationJsonEventsHandler", () =>
261
261
  let daily = Reventless.Schedule.Calendar({calendar: Daily({hour: 6, minute: 0})})
262
262
  let callback: AutomationSliceEntryPoint_Ops.automationCallback = {
263
263
  todoItems: Dict.make(),
264
- phase1: (_jsons, _ctx) => steps->Array.push("phase1"),
264
+ phase1: async (_jsons, _ctx, ~capabilities as _) => steps->Array.push("phase1"),
265
265
  phase2: async _publish => steps->Array.push("phase2"),
266
266
  schedules: Dict.make(),
267
267
  takeScheduleChanges: () => [Put({key: "r1", time: daily})],
@@ -388,7 +388,7 @@ describe("AutomationSliceEntryPoint_Ops.makeOutboundJsonEventsHandler", () => {
388
388
  let received = ref([])
389
389
  let callback: AutomationSliceEntryPoint_Ops.outboundCallback<outboundEvent> = {
390
390
  todoItems: Dict.make(),
391
- phase1: events => {
391
+ phase1: async (events, ~capabilities as _) => {
392
392
  received := events
393
393
  steps->Array.push("phase1")
394
394
  },
@@ -320,7 +320,7 @@ globalThis.describe("AutomationSliceEntryPoint_Ops.makeAutomationJsonEventsHandl
320
320
  contents: undefined
321
321
  };
322
322
  let callback_todoItems = {};
323
- let callback_phase1 = (jsons, ctx) => {
323
+ let callback_phase1 = async (jsons, ctx, param) => {
324
324
  receivedJsons.contents = jsons;
325
325
  receivedCtx.contents = ctx;
326
326
  steps.push("phase1");
@@ -382,7 +382,7 @@ globalThis.describe("AutomationSliceEntryPoint_Ops.makeAutomationJsonEventsHandl
382
382
  globalThis.test("stores a changed schedule's rows before telling the platform", async () => {
383
383
  let steps = [];
384
384
  let callback_todoItems = {};
385
- let callback_phase1 = (_jsons, _ctx) => {
385
+ let callback_phase1 = async (_jsons, _ctx, param) => {
386
386
  steps.push("phase1");
387
387
  };
388
388
  let callback_phase2 = async _publish => {
@@ -581,7 +581,7 @@ globalThis.describe("AutomationSliceEntryPoint_Ops.makeOutboundJsonEventsHandler
581
581
  contents: []
582
582
  };
583
583
  let callback_todoItems = {};
584
- let callback_phase1 = events => {
584
+ let callback_phase1 = async (events, param) => {
585
585
  received.contents = events;
586
586
  steps.push("phase1");
587
587
  };