@engenty/wizards 0.7.11 → 0.9.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.
@@ -20,7 +20,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
- The built package (dist/) also contains these modules of @engenty-wizards/shared,
23
+ The built package (dist/) also contains these modules of @engenty/wizards-shared,
24
24
  which are under FSL-1.1-MIT OR MIT (packages/shared/LICENSE-MIT) and are included
25
25
  here under the MIT licence above: definition, fit, run, store, surface and
26
26
  engenty/data-tables/columns, columns-format.
@@ -90,6 +90,8 @@ declare interface ConfirmAsk extends AskBase {
90
90
  };
91
91
  /** What would be sent, as readable JSON. */
92
92
  input: string;
93
+ /** Asked for this one thing: there is nothing to allow for the rest of the run. */
94
+ once?: boolean;
93
95
  }
94
96
 
95
97
  /** Kinds of accounts a wizard can ask the person to connect. */
@@ -276,6 +278,7 @@ declare const NOTES_EN: {
276
278
  readonly looksAtPage: "Looking at the page";
277
279
  readonly waitsForSignIn: "Waiting for you to sign in to {name}";
278
280
  readonly downloads: "Downloading {name}";
281
+ readonly attaches: "Attaching {name}";
279
282
  readonly runs: "Running: {command}";
280
283
  readonly python: "Running Python";
281
284
  readonly runsProgram: "Working through the data in one go";
@@ -695,6 +698,8 @@ declare interface RunView {
695
698
  shareUrl: string | null;
696
699
  /** When the run and its shared link are deleted; null = kept. */
697
700
  expiresAt: string | null;
701
+ /** The result on its way to a share target, or the last one that arrived or failed. */
702
+ shareJob: ShareJobView | null;
698
703
  }
699
704
 
700
705
  /** `fields` only: a decision's levels, lowest first. */
@@ -703,6 +708,34 @@ declare type ScoreShape = Named & {
703
708
  options: string[];
704
709
  };
705
710
 
711
+ declare type ShareIcon = "mail" | "folder" | "chat" | "plug" | "globe";
712
+
713
+ declare type ShareJobStatus = "running" | "done" | "failed" | "cancelled";
714
+
715
+ /** One result on its way to one target, or arrived there. */
716
+ declare interface ShareJobView {
717
+ id: string;
718
+ target: string;
719
+ /** The target's name when it was sent. */
720
+ name: string;
721
+ icon: ShareIcon;
722
+ status: ShareJobStatus;
723
+ /** What happened so far, oldest first. */
724
+ events: {
725
+ at: string;
726
+ message: string;
727
+ }[];
728
+ /** What the target asks the person right now: a sign-in, or leave to publish. */
729
+ ask: RunAsk | null;
730
+ /** Where it ended up, in words, with a link when there is one. */
731
+ result: {
732
+ summary: string;
733
+ url: string | null;
734
+ } | null;
735
+ error: string | null;
736
+ createdAt: string;
737
+ }
738
+
706
739
  /** A branch decision as the studio sees it: with the step's branches it was made over. */
707
740
  declare interface ShownDecision extends BranchDecision {
708
741
  over: NonNullable<Step["next"]>;
@@ -1403,6 +1436,11 @@ declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1403
1436
  zip: "zip";
1404
1437
  }>>;
1405
1438
  }, z.core.$strip>>;
1439
+ share: z.ZodOptional<z.ZodArray<z.ZodObject<{
1440
+ target: z.ZodString;
1441
+ label: z.ZodOptional<z.ZodString>;
1442
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1443
+ }, z.core.$strip>>>;
1406
1444
  }, z.core.$strip>], "type">;
1407
1445
 
1408
1446
  /** What a run shows: the components and the data they are bound to. */
@@ -2454,6 +2492,11 @@ declare const wizardSchema: z.ZodObject<{
2454
2492
  zip: "zip";
2455
2493
  }>>;
2456
2494
  }, z.core.$strip>>;
2495
+ share: z.ZodOptional<z.ZodArray<z.ZodObject<{
2496
+ target: z.ZodString;
2497
+ label: z.ZodOptional<z.ZodString>;
2498
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2499
+ }, z.core.$strip>>>;
2457
2500
  }, z.core.$strip>], "type">>;
2458
2501
  }, z.core.$strip>;
2459
2502