@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/api-contract",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "src",
package/src/drafts.ts CHANGED
@@ -50,7 +50,7 @@ export const DRAFT_SEARCH_PARAM = "camox-draft";
50
50
  export type DraftKind = "regular" | "development";
51
51
 
52
52
  /** How a regular draft ended. */
53
- export type DraftOutcome = "published" | "discarded";
53
+ export type DraftOutcome = "published" | "deleted";
54
54
 
55
55
  /** Who ended a draft, how and when, from its ended-drafts record (ADR 0009, ADR 0011). */
56
56
  export type EndedDraft = {
@@ -62,7 +62,7 @@ export type EndedDraft = {
62
62
 
63
63
  /**
64
64
  * The oRPC error code a request naming an ended draft fails with. Its `data` is an `EndedDraft`,
65
- * so a page can render Live and say who published or discarded the draft.
65
+ * so a page can render Live and say who published or deleted the draft.
66
66
  */
67
67
  export const DRAFT_ENDED_ERROR_CODE = "DRAFT_ENDED";
68
68
 
package/src/query-keys.ts CHANGED
@@ -89,7 +89,7 @@ export type InvalidationMessage = {
89
89
  targets: QueryKey[];
90
90
  };
91
91
 
92
- /** A draft was published or discarded: its viewers go back to Live. */
92
+ /** A draft was published or deleted: its viewers go back to Live. */
93
93
  export type DraftEndedMessage = { type: "draftEnded" } & EndedDraft;
94
94
 
95
95
  /** A draft with code has a new revision, built with Camox's `sdkVersion`. */