@lilaquadrat/interfaces 1.5.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,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
+ ## [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
+
5
12
  ## [1.5.0](https://github.com/lilaquadrat/interfaces/compare/v1.4.0...v1.5.0) (2024-02-23)
6
13
 
7
14
 
@@ -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
  }
@@ -98,6 +98,7 @@ export * from './ProjectDomain';
98
98
  export * from './Publish';
99
99
  export * from './PublishContentGroup';
100
100
  export * from './PublishMethod';
101
+ export * from './PublishMethodEmail';
101
102
  export * from './PublishMethodFtp';
102
103
  export * from './PublishMethodInternal';
103
104
  export * from './PublishMethodPdf';
@@ -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
  }
@@ -98,6 +98,7 @@ export * from './ProjectDomain';
98
98
  export * from './Publish';
99
99
  export * from './PublishContentGroup';
100
100
  export * from './PublishMethod';
101
+ export * from './PublishMethodEmail';
101
102
  export * from './PublishMethodFtp';
102
103
  export * from './PublishMethodInternal';
103
104
  export * from './PublishMethodPdf';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.5.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",
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
  }