@lilaquadrat/interfaces 2.0.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.1.0](https://github.com/lilaquadrat/interfaces/compare/v2.0.0...v2.1.0) (2026-11-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * **design:** address designs by id and name ([80c900d](https://github.com/lilaquadrat/interfaces/commit/80c900d7efec0fb24b3efc658c70545588e76423))
11
+
5
12
  ## [2.0.0](https://github.com/lilaquadrat/interfaces/compare/v1.57.0...v2.0.0) (2026-11-09)
6
13
 
7
14
 
@@ -2,6 +2,9 @@ import { DesignFile } from "./DesignFile";
2
2
  export interface Design {
3
3
  company: string;
4
4
  project: string;
5
+ id: string;
6
+ name: string;
7
+ description?: string;
5
8
  files: DesignFile[];
6
9
  target: 'app' | 'server';
7
10
  }
@@ -0,0 +1,12 @@
1
+ import { DesignFile } from "./DesignFile";
2
+ /**
3
+ * writes a design into the caller's project; a project's first design falls back to
4
+ * the `default` id and name, so both stay optional
5
+ */
6
+ export interface DesignInput {
7
+ id?: string;
8
+ name?: string;
9
+ description?: string;
10
+ target: 'app' | 'server';
11
+ files: DesignFile[];
12
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * one page of the designs a project may pick from: its own plus the shared library
3
+ */
4
+ export interface DesignListOptions {
5
+ company: string;
6
+ project: string;
7
+ search?: string;
8
+ sort?: string;
9
+ order?: number;
10
+ site: number;
11
+ limit: number;
12
+ }
@@ -4,6 +4,7 @@ import { ProjectHead } from "./ProjectHead";
4
4
  import { ProjectLogin } from "./ProjectLogin";
5
5
  import { ProjectPayment } from "./ProjectPayment";
6
6
  import { ProjectPwa } from "./ProjectPwa";
7
+ import { ProjectDesign } from "./ProjectDesign";
7
8
  export interface Project {
8
9
  id: string;
9
10
  name: string;
@@ -16,6 +17,10 @@ export interface Project {
16
17
  apps?: string[];
17
18
  attributes?: string[];
18
19
  features?: string[];
20
+ /**
21
+ * the design the project renders with: a real design document in (company, project, id).
22
+ */
23
+ design?: ProjectDesign;
19
24
  auth0?: Auth0ProjectSettings;
20
25
  /**
21
26
  * this project behaves as an app: dynamic routes and client side navigation.
@@ -0,0 +1,5 @@
1
+ export interface ProjectDesign {
2
+ company: string;
3
+ project: string;
4
+ id: string;
5
+ }
@@ -83,6 +83,8 @@ export * from './Design';
83
83
  export * from './DesignCustomModule';
84
84
  export * from './DesignEvent';
85
85
  export * from './DesignFile';
86
+ export * from './DesignInput';
87
+ export * from './DesignListOptions';
86
88
  export * from './DesignModule';
87
89
  export * from './Domain';
88
90
  export * from './DomainConf';
@@ -232,6 +234,7 @@ export * from './Project';
232
234
  export * from './ProjectAnalytics';
233
235
  export * from './ProjectAnalyticsGoogle';
234
236
  export * from './ProjectAnalyticsInternal';
237
+ export * from './ProjectDesign';
235
238
  export * from './ProjectDomain';
236
239
  export * from './ProjectDomainWithSecret';
237
240
  export * from './ProjectHead';
@@ -2,6 +2,9 @@ import { DesignFile } from "./DesignFile";
2
2
  export interface Design {
3
3
  company: string;
4
4
  project: string;
5
+ id: string;
6
+ name: string;
7
+ description?: string;
5
8
  files: DesignFile[];
6
9
  target: 'app' | 'server';
7
10
  }
@@ -0,0 +1,12 @@
1
+ import { DesignFile } from "./DesignFile";
2
+ /**
3
+ * writes a design into the caller's project; a project's first design falls back to
4
+ * the `default` id and name, so both stay optional
5
+ */
6
+ export interface DesignInput {
7
+ id?: string;
8
+ name?: string;
9
+ description?: string;
10
+ target: 'app' | 'server';
11
+ files: DesignFile[];
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DesignInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignInput.js","sourceRoot":"","sources":["../../src/DesignInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * one page of the designs a project may pick from: its own plus the shared library
3
+ */
4
+ export interface DesignListOptions {
5
+ company: string;
6
+ project: string;
7
+ search?: string;
8
+ sort?: string;
9
+ order?: number;
10
+ site: number;
11
+ limit: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DesignListOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignListOptions.js","sourceRoot":"","sources":["../../src/DesignListOptions.ts"],"names":[],"mappings":""}
@@ -4,6 +4,7 @@ import { ProjectHead } from "./ProjectHead";
4
4
  import { ProjectLogin } from "./ProjectLogin";
5
5
  import { ProjectPayment } from "./ProjectPayment";
6
6
  import { ProjectPwa } from "./ProjectPwa";
7
+ import { ProjectDesign } from "./ProjectDesign";
7
8
  export interface Project {
8
9
  id: string;
9
10
  name: string;
@@ -16,6 +17,10 @@ export interface Project {
16
17
  apps?: string[];
17
18
  attributes?: string[];
18
19
  features?: string[];
20
+ /**
21
+ * the design the project renders with: a real design document in (company, project, id).
22
+ */
23
+ design?: ProjectDesign;
19
24
  auth0?: Auth0ProjectSettings;
20
25
  /**
21
26
  * this project behaves as an app: dynamic routes and client side navigation.
@@ -0,0 +1,5 @@
1
+ export interface ProjectDesign {
2
+ company: string;
3
+ project: string;
4
+ id: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ProjectDesign.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectDesign.js","sourceRoot":"","sources":["../../src/ProjectDesign.ts"],"names":[],"mappings":""}
@@ -83,6 +83,8 @@ export * from './Design';
83
83
  export * from './DesignCustomModule';
84
84
  export * from './DesignEvent';
85
85
  export * from './DesignFile';
86
+ export * from './DesignInput';
87
+ export * from './DesignListOptions';
86
88
  export * from './DesignModule';
87
89
  export * from './Domain';
88
90
  export * from './DomainConf';
@@ -232,6 +234,7 @@ export * from './Project';
232
234
  export * from './ProjectAnalytics';
233
235
  export * from './ProjectAnalyticsGoogle';
234
236
  export * from './ProjectAnalyticsInternal';
237
+ export * from './ProjectDesign';
235
238
  export * from './ProjectDomain';
236
239
  export * from './ProjectDomainWithSecret';
237
240
  export * from './ProjectHead';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
package/src/Design.ts CHANGED
@@ -3,6 +3,9 @@ import { DesignFile } from "./DesignFile"
3
3
  export interface Design {
4
4
  company: string
5
5
  project: string
6
+ id: string
7
+ name: string
8
+ description?: string
6
9
  files: DesignFile[]
7
10
  target: 'app' | 'server'
8
- }
11
+ }
@@ -0,0 +1,13 @@
1
+ import { DesignFile } from "./DesignFile"
2
+
3
+ /**
4
+ * writes a design into the caller's project; a project's first design falls back to
5
+ * the `default` id and name, so both stay optional
6
+ */
7
+ export interface DesignInput {
8
+ id?: string
9
+ name?: string
10
+ description?: string
11
+ target: 'app' | 'server'
12
+ files: DesignFile[]
13
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * one page of the designs a project may pick from: its own plus the shared library
3
+ */
4
+ export interface DesignListOptions {
5
+ company: string
6
+ project: string
7
+ search?: string
8
+ sort?: string
9
+ order?: number
10
+ site: number
11
+ limit: number
12
+ }
package/src/Project.ts CHANGED
@@ -4,6 +4,7 @@ import {ProjectHead} from "./ProjectHead"
4
4
  import {ProjectLogin} from "./ProjectLogin"
5
5
  import {ProjectPayment} from "./ProjectPayment"
6
6
  import {ProjectPwa} from "./ProjectPwa"
7
+ import {ProjectDesign} from "./ProjectDesign"
7
8
 
8
9
  export interface Project {
9
10
 
@@ -20,6 +21,11 @@ export interface Project {
20
21
 
21
22
  features?: string[]
22
23
 
24
+ /**
25
+ * the design the project renders with: a real design document in (company, project, id).
26
+ */
27
+ design?: ProjectDesign
28
+
23
29
  auth0?: Auth0ProjectSettings
24
30
 
25
31
  /**
@@ -0,0 +1,5 @@
1
+ export interface ProjectDesign {
2
+ company: string
3
+ project: string
4
+ id: string
5
+ }