riverbankcms 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acceptance/matrix.mjs +26 -18
- package/dist/cli/index.mjs +2026 -7310
- package/dist/cli/init-docs/content/cli-reference.md +8 -6
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +26 -24
- package/dist/eventUpsertInputSchema-BUeXa6jk.mjs +4940 -0
- package/dist/{load-config-r1s4htWu.mjs → load-config-CJUwrGHA.mjs} +1 -1
- package/dist/load-config-CcQyVy3r.mjs +5 -0
- package/dist/sdk-event-upsert-CTqsrhFT.mjs +5484 -0
- package/dist/{sdk-peer-DrblJmno.mjs → sdk-peer-D9FHJ54i.mjs} +3 -3
- package/dist/{style-Chv9Gcwq.mjs → style-lftMrun_.mjs} +29376 -34802
- package/dist/testing.mjs +3 -2
- package/package.json +2 -2
- package/dist/load-config-CRB4AHKq.mjs +0 -5
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import "../sdk-event-upsert-CTqsrhFT.mjs";
|
|
3
|
+
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-BUeXa6jk.mjs";
|
|
4
|
+
|
|
2
5
|
//#region src/acceptance/matrix-builders.ts
|
|
3
6
|
const workflow = (scenario, stepId) => ({
|
|
4
7
|
kind: "scratch_workflow",
|
|
@@ -397,6 +400,23 @@ const blockScenario = {
|
|
|
397
400
|
])
|
|
398
401
|
]
|
|
399
402
|
};
|
|
403
|
+
const eventAcceptanceInput = eventUpsertInputSchema.parse({
|
|
404
|
+
title: "CLI acceptance event",
|
|
405
|
+
slug: "acceptance-event",
|
|
406
|
+
preset: "event",
|
|
407
|
+
runRefs: ["acceptance-event"],
|
|
408
|
+
runs: [{
|
|
409
|
+
identifier: "acceptance-event",
|
|
410
|
+
eventRef: "acceptance-event",
|
|
411
|
+
bookingScope: "whole_series",
|
|
412
|
+
occurrences: [{
|
|
413
|
+
startsAt: "2026-12-01T10:00:00.000Z",
|
|
414
|
+
endsAt: "2026-12-01T11:00:00.000Z",
|
|
415
|
+
timeZone: "Europe/London"
|
|
416
|
+
}],
|
|
417
|
+
pricing: { requiresPayment: false }
|
|
418
|
+
}]
|
|
419
|
+
});
|
|
400
420
|
const eventScenario = {
|
|
401
421
|
id: "event-occurrence-lifecycle",
|
|
402
422
|
steps: [
|
|
@@ -405,16 +425,7 @@ const eventScenario = {
|
|
|
405
425
|
"upsert",
|
|
406
426
|
"acceptance-event",
|
|
407
427
|
"--data",
|
|
408
|
-
JSON.stringify(
|
|
409
|
-
title: "CLI acceptance event",
|
|
410
|
-
slug: "acceptance-event",
|
|
411
|
-
schedule: {
|
|
412
|
-
recurrenceRule: null,
|
|
413
|
-
defaultStartTime: "10:00:00",
|
|
414
|
-
durationMinutes: 60
|
|
415
|
-
},
|
|
416
|
-
pricing: { requiresPayment: false }
|
|
417
|
-
}),
|
|
428
|
+
JSON.stringify(eventAcceptanceInput),
|
|
418
429
|
"--env=local",
|
|
419
430
|
"--json"
|
|
420
431
|
]),
|
|
@@ -435,6 +446,7 @@ const eventScenario = {
|
|
|
435
446
|
"occurrence",
|
|
436
447
|
"list",
|
|
437
448
|
capture("event-identifier"),
|
|
449
|
+
capture("event-identifier"),
|
|
438
450
|
"--env=local",
|
|
439
451
|
"--json"
|
|
440
452
|
]),
|
|
@@ -443,6 +455,7 @@ const eventScenario = {
|
|
|
443
455
|
"occurrence",
|
|
444
456
|
"add",
|
|
445
457
|
capture("event-identifier"),
|
|
458
|
+
capture("event-identifier"),
|
|
446
459
|
"--starts-at",
|
|
447
460
|
"2026-12-10T10:00:00Z",
|
|
448
461
|
"--duration-minutes",
|
|
@@ -455,6 +468,7 @@ const eventScenario = {
|
|
|
455
468
|
"occurrence",
|
|
456
469
|
"update",
|
|
457
470
|
capture("event-identifier"),
|
|
471
|
+
capture("event-identifier"),
|
|
458
472
|
capture("add-occurrence", "result", "id"),
|
|
459
473
|
"--capacity",
|
|
460
474
|
"20",
|
|
@@ -466,6 +480,7 @@ const eventScenario = {
|
|
|
466
480
|
"occurrence",
|
|
467
481
|
"cancel",
|
|
468
482
|
capture("event-identifier"),
|
|
483
|
+
capture("event-identifier"),
|
|
469
484
|
capture("add-occurrence", "result", "id"),
|
|
470
485
|
"--env=local",
|
|
471
486
|
"--json"
|
|
@@ -475,6 +490,7 @@ const eventScenario = {
|
|
|
475
490
|
"occurrence",
|
|
476
491
|
"delete",
|
|
477
492
|
capture("event-identifier"),
|
|
493
|
+
capture("event-identifier"),
|
|
478
494
|
capture("add-occurrence", "result", "id"),
|
|
479
495
|
"--yes",
|
|
480
496
|
"--env=local",
|
|
@@ -681,14 +697,6 @@ const acceptanceTuples = [
|
|
|
681
697
|
], {
|
|
682
698
|
cwd: "nested",
|
|
683
699
|
output: "non-empty"
|
|
684
|
-
})],
|
|
685
|
-
["migrate events", scratchDryRun([
|
|
686
|
-
"migrate",
|
|
687
|
-
"events",
|
|
688
|
-
"--dry-run"
|
|
689
|
-
], {
|
|
690
|
-
cwd: "nested",
|
|
691
|
-
output: "non-empty"
|
|
692
700
|
})]
|
|
693
701
|
];
|
|
694
702
|
const CLI_ACCEPTANCE_CASES = acceptanceTuples.map(([path, disposition]) => ({
|