@camox/api-contract 0.54.0 → 0.56.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/drafts.d.ts CHANGED
@@ -40,7 +40,7 @@ export declare const DRAFT_SEARCH_PARAM = "camox-draft";
40
40
  /** A regular draft is a named set of edits; a development draft backs a dev server. */
41
41
  export type DraftKind = "regular" | "development";
42
42
  /** How a regular draft ended. */
43
- export type DraftOutcome = "published" | "discarded";
43
+ export type DraftOutcome = "published" | "deleted";
44
44
  /** Who ended a draft, how and when, from its ended-drafts record (ADR 0009, ADR 0011). */
45
45
  export type EndedDraft = {
46
46
  draftId: string;
@@ -53,7 +53,7 @@ export type EndedDraft = {
53
53
  };
54
54
  /**
55
55
  * The oRPC error code a request naming an ended draft fails with. Its `data` is an `EndedDraft`,
56
- * so a page can render Live and say who published or discarded the draft.
56
+ * so a page can render Live and say who published or deleted the draft.
57
57
  */
58
58
  export declare const DRAFT_ENDED_ERROR_CODE = "DRAFT_ENDED";
59
59
  /**
package/dist/drafts.js CHANGED
@@ -39,7 +39,7 @@ const NO_DEVELOPMENT_DRAFT_ERROR = "NO_DEVELOPMENT_DRAFT";
39
39
  const DRAFT_SEARCH_PARAM = "camox-draft";
40
40
  /**
41
41
  * The oRPC error code a request naming an ended draft fails with. Its `data` is an `EndedDraft`,
42
- * so a page can render Live and say who published or discarded the draft.
42
+ * so a page can render Live and say who published or deleted the draft.
43
43
  */
44
44
  const DRAFT_ENDED_ERROR_CODE = "DRAFT_ENDED";
45
45
  /**
@@ -61,7 +61,7 @@ export type InvalidationMessage = {
61
61
  draftId: string | null;
62
62
  targets: QueryKey[];
63
63
  };
64
- /** A draft was published or discarded: its viewers go back to Live. */
64
+ /** A draft was published or deleted: its viewers go back to Live. */
65
65
  export type DraftEndedMessage = {
66
66
  type: "draftEnded";
67
67
  } & EndedDraft;