@lilaquadrat/interfaces 1.3.0 → 1.4.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/cjs/AppEditorConfiguration.d.ts +10 -0
  3. package/lib/cjs/AppEditorTitleDescription.d.ts +4 -0
  4. package/lib/cjs/Content.d.ts +1 -0
  5. package/lib/cjs/CustomerAccounts.d.ts +1 -1
  6. package/lib/cjs/CustomerPerson.d.ts +1 -1
  7. package/lib/cjs/MePermissions.d.ts +8 -0
  8. package/lib/cjs/MePermissionsProject.d.ts +8 -0
  9. package/lib/cjs/StudioIframeMessage.d.ts +18 -3
  10. package/lib/cjs/index.d.ts +4 -0
  11. package/lib/esm/AppEditorConfiguration.d.ts +10 -0
  12. package/lib/esm/AppEditorConfiguration.js +2 -0
  13. package/lib/esm/AppEditorConfiguration.js.map +1 -0
  14. package/lib/esm/AppEditorTitleDescription.d.ts +4 -0
  15. package/lib/esm/AppEditorTitleDescription.js +2 -0
  16. package/lib/esm/AppEditorTitleDescription.js.map +1 -0
  17. package/lib/esm/Content.d.ts +1 -0
  18. package/lib/esm/CustomerAccounts.d.ts +1 -1
  19. package/lib/esm/CustomerPerson.d.ts +1 -1
  20. package/lib/esm/MePermissions.d.ts +8 -0
  21. package/lib/esm/MePermissions.js +2 -0
  22. package/lib/esm/MePermissions.js.map +1 -0
  23. package/lib/esm/MePermissionsProject.d.ts +8 -0
  24. package/lib/esm/MePermissionsProject.js +2 -0
  25. package/lib/esm/MePermissionsProject.js.map +1 -0
  26. package/lib/esm/StudioIframeMessage.d.ts +18 -3
  27. package/lib/esm/index.d.ts +4 -0
  28. package/package.json +1 -1
  29. package/src/AppEditorConfiguration.ts +11 -0
  30. package/src/AppEditorTitleDescription.ts +4 -0
  31. package/src/Content.ts +1 -0
  32. package/src/CustomerAccounts.ts +1 -1
  33. package/src/CustomerPerson.ts +1 -1
  34. package/src/MePermissions.ts +9 -0
  35. package/src/MePermissionsProject.ts +11 -0
  36. package/src/StudioIframeMessage.ts +12 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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
+ ## [1.4.0](https://github.com/lilaquadrat/interfaces/compare/v1.3.1...v1.4.0) (2024-02-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * **mepermissions & content:** added target to content and added me permissions ([bb6141f](https://github.com/lilaquadrat/interfaces/commit/bb6141f3425f370a0de0baf669ce1ae97d90a721))
11
+
12
+ ### [1.3.1](https://github.com/lilaquadrat/interfaces/compare/v1.3.0...v1.3.1) (2024-02-17)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **customeraccounts:** fixed customerAccounts export ([7e8ef83](https://github.com/lilaquadrat/interfaces/commit/7e8ef83c5750dc5d75f17b2bd68211c0316e08b9))
18
+
5
19
  ## [1.3.0](https://github.com/lilaquadrat/interfaces/compare/v1.2.0...v1.3.0) (2024-02-16)
6
20
 
7
21
 
@@ -0,0 +1,10 @@
1
+ import { AppEditorTitleDescription } from "./AppEditorTitleDescription";
2
+ export interface AppEditorConfiguration {
3
+ editorUrl: string;
4
+ breakpointTablet: string;
5
+ breakpointDesktop: string;
6
+ breakpointWide: string;
7
+ preloadImages: boolean;
8
+ title: AppEditorTitleDescription;
9
+ description: AppEditorTitleDescription;
10
+ }
@@ -0,0 +1,4 @@
1
+ export interface AppEditorTitleDescription {
2
+ full: string;
3
+ short: string;
4
+ }
@@ -13,6 +13,7 @@ export interface Content {
13
13
  layout?: boolean;
14
14
  state: 'draft' | 'publish';
15
15
  language?: string;
16
+ target?: 'browser' | 'mail';
16
17
  settings: {
17
18
  url?: string;
18
19
  useLayout?: ObjectId;
@@ -1,4 +1,4 @@
1
- export default interface CustomerAccounts {
1
+ export interface CustomerAccounts {
2
2
  account: string;
3
3
  project: string;
4
4
  app: string;
@@ -1,4 +1,4 @@
1
- import CustomerAccounts from "./CustomerAccounts";
1
+ import { CustomerAccounts } from "./CustomerAccounts";
2
2
  import { CustomerBase } from "./CustomerBase";
3
3
  export interface CustomerPerson extends CustomerBase {
4
4
  type?: 'person';
@@ -0,0 +1,8 @@
1
+ import { MePermissionsProject } from "./MePermissionsProject";
2
+ import { ScopeObject } from "./Scope";
3
+ export interface MePermissions {
4
+ _id: string;
5
+ name: string;
6
+ scope: ScopeObject;
7
+ projects: MePermissionsProject[];
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ScopeObject } from "./Scope";
2
+ export interface MePermissionsProject {
3
+ scope: ScopeObject;
4
+ company: string;
5
+ project: string;
6
+ name: string;
7
+ id: string;
8
+ }
@@ -1,6 +1,21 @@
1
- export interface StudioIframeMessage<T> {
1
+ import { AppEditorConfiguration } from "./AppEditorConfiguration";
2
+ import { Content } from "./Content";
3
+ import { EditorActiveModule } from "./EditorActiveModule";
4
+ export interface StudioIframeMessage {
2
5
  data: {
3
- type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset';
4
- data: T;
6
+ type: 'studio-cookie-reset';
7
+ data: undefined;
8
+ } | {
9
+ type: 'studio-editor-settings';
10
+ data: AppEditorConfiguration;
11
+ } | {
12
+ type: 'studio-active';
13
+ data: EditorActiveModule;
14
+ } | {
15
+ type: 'studio-content';
16
+ data: Content['modules'];
17
+ } | {
18
+ type: 'studio-settings';
19
+ data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
5
20
  };
6
21
  }
@@ -6,6 +6,8 @@ export * from './Agreement';
6
6
  export * from './AgreementResponse';
7
7
  export * from './ApiResponses';
8
8
  export * from './App';
9
+ export * from './AppEditorConfiguration';
10
+ export * from './AppEditorTitleDescription';
9
11
  export * from './AppFilter';
10
12
  export * from './AppPermissions';
11
13
  export * from './Auth0ProjectSettings';
@@ -72,6 +74,8 @@ export * from './ListParticipants';
72
74
  export * from './ListParticipantsDetails';
73
75
  export * from './Location';
74
76
  export * from './Me';
77
+ export * from './MePermissions';
78
+ export * from './MePermissionsProject';
75
79
  export * from './Media';
76
80
  export * from './MediaContentFiles';
77
81
  export * from './MediaInfo';
@@ -0,0 +1,10 @@
1
+ import { AppEditorTitleDescription } from "./AppEditorTitleDescription";
2
+ export interface AppEditorConfiguration {
3
+ editorUrl: string;
4
+ breakpointTablet: string;
5
+ breakpointDesktop: string;
6
+ breakpointWide: string;
7
+ preloadImages: boolean;
8
+ title: AppEditorTitleDescription;
9
+ description: AppEditorTitleDescription;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppEditorConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEditorConfiguration.js","sourceRoot":"","sources":["../../src/AppEditorConfiguration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface AppEditorTitleDescription {
2
+ full: string;
3
+ short: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppEditorTitleDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEditorTitleDescription.js","sourceRoot":"","sources":["../../src/AppEditorTitleDescription.ts"],"names":[],"mappings":""}
@@ -13,6 +13,7 @@ export interface Content {
13
13
  layout?: boolean;
14
14
  state: 'draft' | 'publish';
15
15
  language?: string;
16
+ target?: 'browser' | 'mail';
16
17
  settings: {
17
18
  url?: string;
18
19
  useLayout?: ObjectId;
@@ -1,4 +1,4 @@
1
- export default interface CustomerAccounts {
1
+ export interface CustomerAccounts {
2
2
  account: string;
3
3
  project: string;
4
4
  app: string;
@@ -1,4 +1,4 @@
1
- import CustomerAccounts from "./CustomerAccounts";
1
+ import { CustomerAccounts } from "./CustomerAccounts";
2
2
  import { CustomerBase } from "./CustomerBase";
3
3
  export interface CustomerPerson extends CustomerBase {
4
4
  type?: 'person';
@@ -0,0 +1,8 @@
1
+ import { MePermissionsProject } from "./MePermissionsProject";
2
+ import { ScopeObject } from "./Scope";
3
+ export interface MePermissions {
4
+ _id: string;
5
+ name: string;
6
+ scope: ScopeObject;
7
+ projects: MePermissionsProject[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MePermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MePermissions.js","sourceRoot":"","sources":["../../src/MePermissions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { ScopeObject } from "./Scope";
2
+ export interface MePermissionsProject {
3
+ scope: ScopeObject;
4
+ company: string;
5
+ project: string;
6
+ name: string;
7
+ id: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MePermissionsProject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MePermissionsProject.js","sourceRoot":"","sources":["../../src/MePermissionsProject.ts"],"names":[],"mappings":""}
@@ -1,6 +1,21 @@
1
- export interface StudioIframeMessage<T> {
1
+ import { AppEditorConfiguration } from "./AppEditorConfiguration";
2
+ import { Content } from "./Content";
3
+ import { EditorActiveModule } from "./EditorActiveModule";
4
+ export interface StudioIframeMessage {
2
5
  data: {
3
- type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset';
4
- data: T;
6
+ type: 'studio-cookie-reset';
7
+ data: undefined;
8
+ } | {
9
+ type: 'studio-editor-settings';
10
+ data: AppEditorConfiguration;
11
+ } | {
12
+ type: 'studio-active';
13
+ data: EditorActiveModule;
14
+ } | {
15
+ type: 'studio-content';
16
+ data: Content['modules'];
17
+ } | {
18
+ type: 'studio-settings';
19
+ data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
5
20
  };
6
21
  }
@@ -6,6 +6,8 @@ export * from './Agreement';
6
6
  export * from './AgreementResponse';
7
7
  export * from './ApiResponses';
8
8
  export * from './App';
9
+ export * from './AppEditorConfiguration';
10
+ export * from './AppEditorTitleDescription';
9
11
  export * from './AppFilter';
10
12
  export * from './AppPermissions';
11
13
  export * from './Auth0ProjectSettings';
@@ -72,6 +74,8 @@ export * from './ListParticipants';
72
74
  export * from './ListParticipantsDetails';
73
75
  export * from './Location';
74
76
  export * from './Me';
77
+ export * from './MePermissions';
78
+ export * from './MePermissionsProject';
75
79
  export * from './Media';
76
80
  export * from './MediaContentFiles';
77
81
  export * from './MediaInfo';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -0,0 +1,11 @@
1
+ import { AppEditorTitleDescription } from "./AppEditorTitleDescription"
2
+
3
+ export interface AppEditorConfiguration {
4
+ editorUrl: string
5
+ breakpointTablet: string
6
+ breakpointDesktop: string
7
+ breakpointWide: string
8
+ preloadImages: boolean
9
+ title: AppEditorTitleDescription
10
+ description: AppEditorTitleDescription
11
+ }
@@ -0,0 +1,4 @@
1
+ export interface AppEditorTitleDescription {
2
+ full: string
3
+ short: string
4
+ }
package/src/Content.ts CHANGED
@@ -14,6 +14,7 @@ export interface Content {
14
14
  layout?: boolean
15
15
  state: 'draft' | 'publish'
16
16
  language?: string
17
+ target?: 'browser' | 'mail'
17
18
  settings: {
18
19
  url?: string
19
20
  useLayout?: ObjectId
@@ -1,4 +1,4 @@
1
- export default interface CustomerAccounts {
1
+ export interface CustomerAccounts {
2
2
  account: string
3
3
  project: string
4
4
  app: string
@@ -1,4 +1,4 @@
1
- import CustomerAccounts from "./CustomerAccounts"
1
+ import { CustomerAccounts } from "./CustomerAccounts"
2
2
  import { CustomerBase } from "./CustomerBase"
3
3
 
4
4
  export interface CustomerPerson extends CustomerBase {
@@ -0,0 +1,9 @@
1
+ import { MePermissionsProject } from "./MePermissionsProject"
2
+ import { ScopeObject } from "./Scope"
3
+
4
+ export interface MePermissions {
5
+ _id: string
6
+ name: string
7
+ scope: ScopeObject
8
+ projects: MePermissionsProject[]
9
+ }
@@ -0,0 +1,11 @@
1
+ import { ScopeObject } from "./Scope"
2
+
3
+ export interface MePermissionsProject {
4
+
5
+ scope: ScopeObject
6
+ company: string
7
+ project: string
8
+ name: string
9
+ id: string
10
+
11
+ }
@@ -1,6 +1,13 @@
1
- export interface StudioIframeMessage<T> {
2
- data: {
3
- type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset'
4
- data: T
5
- }
1
+ import { AppEditorConfiguration } from "./AppEditorConfiguration"
2
+ import { Content } from "./Content"
3
+ import { EditorActiveModule } from "./EditorActiveModule"
4
+
5
+ export interface StudioIframeMessage {
6
+ data:
7
+ { type: 'studio-cookie-reset', data: undefined }
8
+ | { type: 'studio-editor-settings', data: AppEditorConfiguration }
9
+ | { type: 'studio-active', data: EditorActiveModule }
10
+ | { type: 'studio-content', data: Content['modules'] }
11
+ | { type: 'studio-settings', data: Omit<Content, 'modules' | 'genericData' | 'childData'> }
12
+
6
13
  }