@knkcs/contenthub-ui 0.2.0 → 0.3.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/testing.d.ts CHANGED
@@ -660,6 +660,14 @@ declare interface ContenthubClient {
660
660
  * `ServiceUnavailableError` while blueprinthub gives no answer.
661
661
  */
662
662
  listBlueprintReleases(blueprintId: string): Promise<BlueprintReleaseInfo[]>;
663
+ /**
664
+ * Names the Blueprints of these ids, archived ones and ones without a
665
+ * Release included, so existing Content stays readable after its
666
+ * Blueprint is retired (#241). An unknown id, or one of another
667
+ * workspace, is left out. At most `MAX_BLUEPRINT_IDS`. Rejects with
668
+ * `ServiceUnavailableError` while blueprinthub gives no answer.
669
+ */
670
+ getBlueprints(ids: string[]): Promise<BlueprintInfo[]>;
663
671
  /**
664
672
  * Creates a Content in an open Change Set, pinning a Blueprint Release,
665
673
  * with empty data: its one Chain has one Branch, opened in the Branch
@@ -1434,10 +1442,13 @@ export declare interface StubContenthubClientOptions {
1434
1442
  /** The workspace's Content, every way it can be read; the fixtures' by default. */
1435
1443
  contents?: StubContent[];
1436
1444
  /**
1437
- * The workspace's content Blueprints Content can be made from, as
1438
- * `searchBlueprints` lists them; the fixtures' by default.
1445
+ * The workspace's content Blueprints, as `getBlueprints` names them;
1446
+ * the fixtures' by default. `searchBlueprints` lists those Content can
1447
+ * be made from: not `archived`, with a Release.
1439
1448
  */
1440
- blueprints?: BlueprintInfo[];
1449
+ blueprints?: (BlueprintInfo & {
1450
+ archived?: boolean;
1451
+ })[];
1441
1452
  /**
1442
1453
  * The Blueprint Releases, newest first per Blueprint, as
1443
1454
  * `listBlueprintReleases` lists them; the fixtures' by default.