@lilaquadrat/interfaces 1.4.0 → 1.6.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,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.6.0](https://github.com/lilaquadrat/interfaces/compare/v1.5.0...v1.6.0) (2024-03-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * **publish methods:** added support for publish methods ([2487872](https://github.com/lilaquadrat/interfaces/commit/248787278607722f9a7f0dbc35669c8707f5b029))
11
+
12
+ ## [1.5.0](https://github.com/lilaquadrat/interfaces/compare/v1.4.0...v1.5.0) (2024-02-23)
13
+
14
+
15
+ ### Features
16
+
17
+ * **hosting:** added new hosting settings interface ([321800a](https://github.com/lilaquadrat/interfaces/commit/321800abc7ecabad1000f69f4e588bce63c79a3b))
18
+
5
19
  ## [1.4.0](https://github.com/lilaquadrat/interfaces/compare/v1.3.1...v1.4.0) (2024-02-21)
6
20
 
7
21
 
@@ -0,0 +1,11 @@
1
+ export interface AppHostingSettings {
2
+ /**
3
+ * redirects all configured domains to the main domain
4
+ */
5
+ redirectToMainDomain?: boolean;
6
+ /**
7
+ * enables a catch all route to index.html if the file does not exist.
8
+ * e.g. /content1 will end up at index.html if content1.html does not exist.
9
+ */
10
+ isApp?: boolean;
11
+ }
@@ -8,6 +8,10 @@ export interface DomainConf {
8
8
  };
9
9
  company: string;
10
10
  project: string;
11
+ isMain?: boolean;
12
+ /**
13
+ * defines if the domain is a default domain that is created by the system for preview purposes
14
+ */
11
15
  defaultDomain?: string;
12
16
  certificate?: string;
13
17
  }
@@ -1,4 +1,5 @@
1
- export interface Hosting {
1
+ import { AppHostingSettings } from "./AppHostingSettings";
2
+ export interface Hosting extends AppHostingSettings {
2
3
  project: string;
3
4
  company: string;
4
5
  active?: boolean;
@@ -22,4 +22,5 @@ export interface Publish {
22
22
  id: number | string;
23
23
  name?: string;
24
24
  };
25
+ recipient?: ObjectId;
25
26
  }
@@ -1,11 +1,13 @@
1
+ import { ObjectId } from "mongodb";
1
2
  import { Content } from "./Content";
2
3
  import { PublishContentGroup } from "./PublishContentGroup";
3
4
  export interface PublishMethod {
4
- type: 'ftp' | 'webhook' | 'internal' | 'pdf';
5
+ type: 'ftp' | 'webhook' | 'internal' | 'pdf' | 'email';
5
6
  active: boolean;
6
7
  label: string;
7
8
  availableForApps: string[];
8
9
  availableForContentGroups: PublishContentGroup[];
10
+ contextData: ObjectId[];
9
11
  affectedStates?: Content['state'][];
10
12
  [key: string]: any;
11
13
  }
@@ -0,0 +1,4 @@
1
+ import { PublishMethod } from "./PublishMethod";
2
+ export interface PublishMethodEmail extends PublishMethod {
3
+ type: 'email';
4
+ }
@@ -5,9 +5,6 @@ export interface StudioIframeMessage {
5
5
  data: {
6
6
  type: 'studio-cookie-reset';
7
7
  data: undefined;
8
- } | {
9
- type: 'studio-editor-settings';
10
- data: AppEditorConfiguration;
11
8
  } | {
12
9
  type: 'studio-active';
13
10
  data: EditorActiveModule;
@@ -15,7 +12,10 @@ export interface StudioIframeMessage {
15
12
  type: 'studio-content';
16
13
  data: Content['modules'];
17
14
  } | {
18
- type: 'studio-settings';
15
+ type: 'studio-editor-settings';
19
16
  data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
17
+ } | {
18
+ type: 'studio-settings';
19
+ data: AppEditorConfiguration;
20
20
  };
21
21
  }
@@ -9,6 +9,7 @@ export * from './App';
9
9
  export * from './AppEditorConfiguration';
10
10
  export * from './AppEditorTitleDescription';
11
11
  export * from './AppFilter';
12
+ export * from './AppHostingSettings';
12
13
  export * from './AppPermissions';
13
14
  export * from './Auth0ProjectSettings';
14
15
  export * from './AvailableStorageTypes';
@@ -97,6 +98,7 @@ export * from './ProjectDomain';
97
98
  export * from './Publish';
98
99
  export * from './PublishContentGroup';
99
100
  export * from './PublishMethod';
101
+ export * from './PublishMethodEmail';
100
102
  export * from './PublishMethodFtp';
101
103
  export * from './PublishMethodInternal';
102
104
  export * from './PublishMethodPdf';
@@ -0,0 +1,11 @@
1
+ export interface AppHostingSettings {
2
+ /**
3
+ * redirects all configured domains to the main domain
4
+ */
5
+ redirectToMainDomain?: boolean;
6
+ /**
7
+ * enables a catch all route to index.html if the file does not exist.
8
+ * e.g. /content1 will end up at index.html if content1.html does not exist.
9
+ */
10
+ isApp?: boolean;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppHostingSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppHostingSettings.js","sourceRoot":"","sources":["../../src/AppHostingSettings.ts"],"names":[],"mappings":""}
@@ -8,6 +8,10 @@ export interface DomainConf {
8
8
  };
9
9
  company: string;
10
10
  project: string;
11
+ isMain?: boolean;
12
+ /**
13
+ * defines if the domain is a default domain that is created by the system for preview purposes
14
+ */
11
15
  defaultDomain?: string;
12
16
  certificate?: string;
13
17
  }
@@ -1,4 +1,5 @@
1
- export interface Hosting {
1
+ import { AppHostingSettings } from "./AppHostingSettings";
2
+ export interface Hosting extends AppHostingSettings {
2
3
  project: string;
3
4
  company: string;
4
5
  active?: boolean;
@@ -22,4 +22,5 @@ export interface Publish {
22
22
  id: number | string;
23
23
  name?: string;
24
24
  };
25
+ recipient?: ObjectId;
25
26
  }
@@ -1,11 +1,13 @@
1
+ import { ObjectId } from "mongodb";
1
2
  import { Content } from "./Content";
2
3
  import { PublishContentGroup } from "./PublishContentGroup";
3
4
  export interface PublishMethod {
4
- type: 'ftp' | 'webhook' | 'internal' | 'pdf';
5
+ type: 'ftp' | 'webhook' | 'internal' | 'pdf' | 'email';
5
6
  active: boolean;
6
7
  label: string;
7
8
  availableForApps: string[];
8
9
  availableForContentGroups: PublishContentGroup[];
10
+ contextData: ObjectId[];
9
11
  affectedStates?: Content['state'][];
10
12
  [key: string]: any;
11
13
  }
@@ -0,0 +1,4 @@
1
+ import { PublishMethod } from "./PublishMethod";
2
+ export interface PublishMethodEmail extends PublishMethod {
3
+ type: 'email';
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PublishMethodEmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishMethodEmail.js","sourceRoot":"","sources":["../../src/PublishMethodEmail.ts"],"names":[],"mappings":""}
@@ -5,9 +5,6 @@ export interface StudioIframeMessage {
5
5
  data: {
6
6
  type: 'studio-cookie-reset';
7
7
  data: undefined;
8
- } | {
9
- type: 'studio-editor-settings';
10
- data: AppEditorConfiguration;
11
8
  } | {
12
9
  type: 'studio-active';
13
10
  data: EditorActiveModule;
@@ -15,7 +12,10 @@ export interface StudioIframeMessage {
15
12
  type: 'studio-content';
16
13
  data: Content['modules'];
17
14
  } | {
18
- type: 'studio-settings';
15
+ type: 'studio-editor-settings';
19
16
  data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
17
+ } | {
18
+ type: 'studio-settings';
19
+ data: AppEditorConfiguration;
20
20
  };
21
21
  }
@@ -9,6 +9,7 @@ export * from './App';
9
9
  export * from './AppEditorConfiguration';
10
10
  export * from './AppEditorTitleDescription';
11
11
  export * from './AppFilter';
12
+ export * from './AppHostingSettings';
12
13
  export * from './AppPermissions';
13
14
  export * from './Auth0ProjectSettings';
14
15
  export * from './AvailableStorageTypes';
@@ -97,6 +98,7 @@ export * from './ProjectDomain';
97
98
  export * from './Publish';
98
99
  export * from './PublishContentGroup';
99
100
  export * from './PublishMethod';
101
+ export * from './PublishMethodEmail';
100
102
  export * from './PublishMethodFtp';
101
103
  export * from './PublishMethodInternal';
102
104
  export * from './PublishMethodPdf';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.4.0",
3
+ "version": "1.6.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
+ export interface AppHostingSettings {
2
+ /**
3
+ * redirects all configured domains to the main domain
4
+ */
5
+ redirectToMainDomain?: boolean
6
+ /**
7
+ * enables a catch all route to index.html if the file does not exist.
8
+ * e.g. /content1 will end up at index.html if content1.html does not exist.
9
+ */
10
+ isApp?: boolean
11
+ }
package/src/DomainConf.ts CHANGED
@@ -14,6 +14,11 @@ export interface DomainConf {
14
14
  company: string
15
15
  project: string
16
16
 
17
+ isMain?: boolean
18
+
19
+ /**
20
+ * defines if the domain is a default domain that is created by the system for preview purposes
21
+ */
17
22
  defaultDomain?: string
18
23
 
19
24
  certificate?: string
package/src/Hosting.ts CHANGED
@@ -1,4 +1,6 @@
1
- export interface Hosting {
1
+ import { AppHostingSettings } from "./AppHostingSettings";
2
+
3
+ export interface Hosting extends AppHostingSettings {
2
4
  project: string;
3
5
  company: string;
4
6
 
package/src/Publish.ts CHANGED
@@ -40,4 +40,6 @@ export interface Publish {
40
40
  modelPublish?: string
41
41
 
42
42
  publishData?: {id: number | string, name?: string}
43
+
44
+ recipient?: ObjectId;
43
45
  }
@@ -1,9 +1,10 @@
1
- import {Content} from "./Content"
1
+ import { ObjectId } from "mongodb"
2
+ import { Content } from "./Content"
2
3
  import { PublishContentGroup } from "./PublishContentGroup"
3
4
 
4
5
  export interface PublishMethod {
5
6
 
6
- type: 'ftp' | 'webhook' | 'internal' | 'pdf'
7
+ type: 'ftp' | 'webhook' | 'internal' | 'pdf' | 'email'
7
8
 
8
9
  active: boolean
9
10
 
@@ -13,6 +14,8 @@ export interface PublishMethod {
13
14
 
14
15
  availableForContentGroups: PublishContentGroup[]
15
16
 
17
+ contextData: ObjectId[]
18
+
16
19
  affectedStates?: Content['state'][]
17
20
 
18
21
  [key: string]: any
@@ -0,0 +1,7 @@
1
+ import { PublishMethod } from "./PublishMethod";
2
+
3
+ export interface PublishMethodEmail extends PublishMethod {
4
+
5
+ type: 'email'
6
+
7
+ }
@@ -5,9 +5,9 @@ import { EditorActiveModule } from "./EditorActiveModule"
5
5
  export interface StudioIframeMessage {
6
6
  data:
7
7
  { type: 'studio-cookie-reset', data: undefined }
8
- | { type: 'studio-editor-settings', data: AppEditorConfiguration }
9
8
  | { type: 'studio-active', data: EditorActiveModule }
10
9
  | { type: 'studio-content', data: Content['modules'] }
11
- | { type: 'studio-settings', data: Omit<Content, 'modules' | 'genericData' | 'childData'> }
10
+ | { type: 'studio-editor-settings', data: Omit<Content, 'modules' | 'genericData' | 'childData'> }
11
+ | { type: 'studio-settings', data: AppEditorConfiguration }
12
12
 
13
13
  }