@sanity/workflow-engine 0.19.0 → 0.20.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/define.d.ts CHANGED
@@ -49,7 +49,7 @@ declare const ActionParamSchema: v.SchemaWithPipe<
49
49
  "doc.refs",
50
50
  "json",
51
51
  ],
52
- `Invalid option: expected one of ${string}`
52
+ string
53
53
  >;
54
54
  readonly name: v.SchemaWithPipe<
55
55
  readonly [
@@ -233,10 +233,7 @@ declare type AuthoringFieldRef = v.InferOutput<typeof AuthoringFieldRefSchema>;
233
233
  declare const AuthoringFieldRefSchema: v.StrictObjectSchema<
234
234
  {
235
235
  readonly scope: v.OptionalSchema<
236
- v.PicklistSchema<
237
- readonly ["workflow", "stage", "activity"],
238
- `Invalid option: expected one of ${string}`
239
- >,
236
+ v.PicklistSchema<readonly ["workflow", "stage", "activity"], string>,
240
237
  undefined
241
238
  >;
242
239
  readonly field: v.SchemaWithPipe<
@@ -402,7 +399,7 @@ declare const AuthoringGuardSchema: v.StrictObjectSchema<
402
399
  v.ArraySchema<
403
400
  v.PicklistSchema<
404
401
  readonly ["create", "update", "delete", "publish", "unpublish"],
405
- `Invalid option: expected one of ${string}`
402
+ string
406
403
  >,
407
404
  undefined
408
405
  >,
@@ -577,7 +574,7 @@ declare const AuthoringManualTargetSchema: v.VariantSchema<
577
574
  readonly scope: v.OptionalSchema<
578
575
  v.PicklistSchema<
579
576
  readonly ["workflow", "stage", "activity"],
580
- `Invalid option: expected one of ${string}`
577
+ string
581
578
  >,
582
579
  undefined
583
580
  >;
@@ -613,7 +610,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
613
610
  readonly scope: v.OptionalSchema<
614
611
  v.PicklistSchema<
615
612
  readonly ["workflow", "stage", "activity"],
616
- `Invalid option: expected one of ${string}`
613
+ string
617
614
  >,
618
615
  undefined
619
616
  >;
@@ -638,7 +635,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
638
635
  readonly scope: v.OptionalSchema<
639
636
  v.PicklistSchema<
640
637
  readonly ["workflow", "stage", "activity"],
641
- `Invalid option: expected one of ${string}`
638
+ string
642
639
  >,
643
640
  undefined
644
641
  >;
@@ -662,7 +659,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
662
659
  readonly scope: v.OptionalSchema<
663
660
  v.PicklistSchema<
664
661
  readonly ["workflow", "stage", "activity"],
665
- `Invalid option: expected one of ${string}`
662
+ string
666
663
  >,
667
664
  undefined
668
665
  >;
@@ -687,7 +684,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
687
684
  readonly scope: v.OptionalSchema<
688
685
  v.PicklistSchema<
689
686
  readonly ["workflow", "stage", "activity"],
690
- `Invalid option: expected one of ${string}`
687
+ string
691
688
  >,
692
689
  undefined
693
690
  >;
@@ -718,7 +715,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
718
715
  readonly scope: v.OptionalSchema<
719
716
  v.PicklistSchema<
720
717
  readonly ["workflow", "stage", "activity"],
721
- `Invalid option: expected one of ${string}`
718
+ string
722
719
  >,
723
720
  undefined
724
721
  >;
@@ -754,7 +751,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
754
751
  >;
755
752
  readonly status: v.PicklistSchema<
756
753
  readonly ["active", "done", "skipped", "failed"],
757
- `Invalid option: expected one of ${string}`
754
+ string
758
755
  >;
759
756
  },
760
757
  undefined
@@ -767,7 +764,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
767
764
  readonly scope: v.OptionalSchema<
768
765
  v.PicklistSchema<
769
766
  readonly ["workflow", "stage", "activity"],
770
- `Invalid option: expected one of ${string}`
767
+ string
771
768
  >,
772
769
  undefined
773
770
  >;
@@ -1356,7 +1353,7 @@ declare const GuardSchema: v.StrictObjectSchema<
1356
1353
  v.ArraySchema<
1357
1354
  v.PicklistSchema<
1358
1355
  readonly ["create", "update", "delete", "publish", "unpublish"],
1359
- `Invalid option: expected one of ${string}`
1356
+ string
1360
1357
  >,
1361
1358
  undefined
1362
1359
  >,
@@ -1588,7 +1585,7 @@ declare const StoredManualTargetSchema: v.VariantSchema<
1588
1585
  {
1589
1586
  readonly scope: v.PicklistSchema<
1590
1587
  readonly ["workflow", "stage", "activity"],
1591
- `Invalid option: expected one of ${string}`
1588
+ string
1592
1589
  >;
1593
1590
  readonly field: v.SchemaWithPipe<
1594
1591
  readonly [
@@ -1616,7 +1613,7 @@ declare const StoredOpSchema: v.VariantSchema<
1616
1613
  {
1617
1614
  readonly scope: v.PicklistSchema<
1618
1615
  readonly ["workflow", "stage", "activity"],
1619
- `Invalid option: expected one of ${string}`
1616
+ string
1620
1617
  >;
1621
1618
  readonly field: v.SchemaWithPipe<
1622
1619
  readonly [
@@ -1638,7 +1635,7 @@ declare const StoredOpSchema: v.VariantSchema<
1638
1635
  {
1639
1636
  readonly scope: v.PicklistSchema<
1640
1637
  readonly ["workflow", "stage", "activity"],
1641
- `Invalid option: expected one of ${string}`
1638
+ string
1642
1639
  >;
1643
1640
  readonly field: v.SchemaWithPipe<
1644
1641
  readonly [
@@ -1659,7 +1656,7 @@ declare const StoredOpSchema: v.VariantSchema<
1659
1656
  {
1660
1657
  readonly scope: v.PicklistSchema<
1661
1658
  readonly ["workflow", "stage", "activity"],
1662
- `Invalid option: expected one of ${string}`
1659
+ string
1663
1660
  >;
1664
1661
  readonly field: v.SchemaWithPipe<
1665
1662
  readonly [
@@ -1681,7 +1678,7 @@ declare const StoredOpSchema: v.VariantSchema<
1681
1678
  {
1682
1679
  readonly scope: v.PicklistSchema<
1683
1680
  readonly ["workflow", "stage", "activity"],
1684
- `Invalid option: expected one of ${string}`
1681
+ string
1685
1682
  >;
1686
1683
  readonly field: v.SchemaWithPipe<
1687
1684
  readonly [
@@ -1709,7 +1706,7 @@ declare const StoredOpSchema: v.VariantSchema<
1709
1706
  {
1710
1707
  readonly scope: v.PicklistSchema<
1711
1708
  readonly ["workflow", "stage", "activity"],
1712
- `Invalid option: expected one of ${string}`
1709
+ string
1713
1710
  >;
1714
1711
  readonly field: v.SchemaWithPipe<
1715
1712
  readonly [
@@ -1740,7 +1737,7 @@ declare const StoredOpSchema: v.VariantSchema<
1740
1737
  >;
1741
1738
  readonly status: v.PicklistSchema<
1742
1739
  readonly ["active", "done", "skipped", "failed"],
1743
- `Invalid option: expected one of ${string}`
1740
+ string
1744
1741
  >;
1745
1742
  },
1746
1743
  undefined
@@ -1847,10 +1844,7 @@ declare const SubworkflowsSchema: v.StrictObjectSchema<
1847
1844
  * `$subworkflows`) decide.
1848
1845
  */
1849
1846
  readonly onExit: v.OptionalSchema<
1850
- v.PicklistSchema<
1851
- readonly ["detach", "abort"],
1852
- `Invalid option: expected one of ${string}`
1853
- >,
1847
+ v.PicklistSchema<readonly ["detach", "abort"], string>,
1854
1848
  undefined
1855
1849
  >;
1856
1850
  },