@synap-core/workspace-templates 0.11.0 → 0.12.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/index.d.ts +15 -0
- package/dist/index.js +802 -4
- package/dist/index.js.map +1 -1
- package/package.json +16 -25
- package/src/base.template.test.ts +25 -19
- package/src/base.yaml +10 -0
- package/src/builder.yaml +19 -1
- package/src/business-model.yaml +351 -0
- package/src/catalog.ts +19 -0
- package/src/civic-france.yaml +102 -0
- package/src/dist-freshness.test.ts +97 -0
- package/src/foundation.yaml +62 -0
- package/src/grants.yaml +17 -6
- package/src/life-os.yaml +14 -0
- package/src/seed-obligation.test.ts +181 -0
- package/src/shared-role-ssot.test.ts +4 -1
- package/src/templates.ts +765 -3
- package/src/validate-flow.ts +11 -1
- package/src/validate.test.ts +86 -0
- package/src/validate.ts +49 -0
- package/src/__fixtures__/report-automation-flow.json +0 -393
package/dist/index.d.ts
CHANGED
|
@@ -723,6 +723,13 @@ interface RemoteEntry {
|
|
|
723
723
|
* never "unknown-so-hide".
|
|
724
724
|
*/
|
|
725
725
|
isPrivate?: boolean;
|
|
726
|
+
/**
|
|
727
|
+
* The minimum subscription tier required to INSTALL this package (`solo` | `pro`
|
|
728
|
+
* | `team` | `enterprise`); `null`/absent ⇒ ungated. DISPLAY only here — the real
|
|
729
|
+
* install floor is the pod's `assertPackageTierAccess`. Kept a bare `string` so
|
|
730
|
+
* this pure/shared door stays enum-agnostic (like `category`).
|
|
731
|
+
*/
|
|
732
|
+
requiredTier?: string | null;
|
|
726
733
|
/**
|
|
727
734
|
* Lightweight computed summary of the row's sub-objects (cells), carried on the
|
|
728
735
|
* LIST projection so a surface can surface a matching sub-item without the full
|
|
@@ -789,6 +796,8 @@ interface CpPackageRow {
|
|
|
789
796
|
icon?: string | null;
|
|
790
797
|
/** Present only on `/mine` rows. `false` ⇒ private. Browse rows omit it. */
|
|
791
798
|
isPublic?: boolean;
|
|
799
|
+
/** The package's `required_tier` gate (`solo`|`pro`|…); `null`/absent ⇒ ungated. */
|
|
800
|
+
requiredTier?: string | null;
|
|
792
801
|
/**
|
|
793
802
|
* Computed sub-object summary from `GET /api/packages` / `/mine` (query-time,
|
|
794
803
|
* not a stored column). Carries `key + name` per cell; never the cell code.
|
|
@@ -819,6 +828,12 @@ interface CatalogEntryBase {
|
|
|
819
828
|
icon?: string | null;
|
|
820
829
|
/** `true` ⇒ not publicly listed (internal bundled template, or private CP row). */
|
|
821
830
|
isPrivate: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* Minimum install tier (`solo`|`pro`|…); `null` ⇒ ungated. Bundled templates are
|
|
833
|
+
* always `null` (they ship in-client, never gated). DISPLAY only — a surface
|
|
834
|
+
* shows a "requires <tier>" badge; the real floor is the pod's install check.
|
|
835
|
+
*/
|
|
836
|
+
requiredTier?: string | null;
|
|
822
837
|
/**
|
|
823
838
|
* The entry's sub-object summary (cells). Always present (defaults to `[]`) so a
|
|
824
839
|
* consumer can match sub-items uniformly. Bundled workspace templates carry no
|