@kindgi/types 0.1.4 → 0.1.5-rc.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/version.d.ts CHANGED
@@ -45,7 +45,8 @@ export interface VersionedRef<Id extends string> {
45
45
  * existed, so it has none;
46
46
  * - `version-taken`: the definition's version holds another definition;
47
47
  * - `edited`: derived from an existing version with some data-block pins
48
- * swapped (an expert's edit), not from a definition at all.
48
+ * swapped (an expert's edit, or an improvement proposal's candidate:
49
+ * `proposalId`), not from a definition at all.
49
50
  */
50
51
  export type VersionDerivationReason = 'pins-changed' | 'unpinned' | 'version-taken' | 'edited';
51
52
  /** The version a version was registered in place of (or derived from), and why. */
@@ -57,5 +58,10 @@ export interface VersionDerivation {
57
58
  readonly label?: string;
58
59
  /** For an edit: who made it (`user:<id>`, or the token for a key). */
59
60
  readonly by?: string;
61
+ /**
62
+ * For an edit made to evaluate an improvement proposal: the proposal.
63
+ * Such a version serves no scope until a promotion makes it live.
64
+ */
65
+ readonly proposalId?: string;
60
66
  }
61
67
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY,CAAC,EAAE,SAAS,MAAM;IAC7C,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;IAChB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,uBAAuB,GAAG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MAAM,CAAC;CAC9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kindgi/types",
3
- "version": "0.1.4",
3
+ "version": "0.1.5-rc.0",
4
4
  "description": "Foundational TypeScript types shared across Kindgi. Branded IDs, timestamps, hashes, refs, Result, list filter / page shapes. Zero runtime dependencies; the only runtime export is the makeEnvName validator.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/version.ts CHANGED
@@ -52,7 +52,8 @@ export interface VersionedRef<Id extends string> {
52
52
  * existed, so it has none;
53
53
  * - `version-taken`: the definition's version holds another definition;
54
54
  * - `edited`: derived from an existing version with some data-block pins
55
- * swapped (an expert's edit), not from a definition at all.
55
+ * swapped (an expert's edit, or an improvement proposal's candidate:
56
+ * `proposalId`), not from a definition at all.
56
57
  */
57
58
  export type VersionDerivationReason = 'pins-changed' | 'unpinned' | 'version-taken' | 'edited';
58
59
 
@@ -65,4 +66,9 @@ export interface VersionDerivation {
65
66
  readonly label?: string;
66
67
  /** For an edit: who made it (`user:<id>`, or the token for a key). */
67
68
  readonly by?: string;
69
+ /**
70
+ * For an edit made to evaluate an improvement proposal: the proposal.
71
+ * Such a version serves no scope until a promotion makes it live.
72
+ */
73
+ readonly proposalId?: string;
68
74
  }