@lilaquadrat/interfaces 1.5.0 → 1.7.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.7.0](https://github.com/lilaquadrat/interfaces/compare/v1.6.0...v1.7.0) (2024-03-18)
6
+
7
+
8
+ ### Features
9
+
10
+ * **mailfrom:** added support for mailFrom ([c0eb5f8](https://github.com/lilaquadrat/interfaces/commit/c0eb5f87a85cbace9551d84f37f4afb11c357339))
11
+
12
+ ## [1.6.0](https://github.com/lilaquadrat/interfaces/compare/v1.5.0...v1.6.0) (2024-03-11)
13
+
14
+
15
+ ### Features
16
+
17
+ * **publish methods:** added support for publish methods ([2487872](https://github.com/lilaquadrat/interfaces/commit/248787278607722f9a7f0dbc35669c8707f5b029))
18
+
5
19
  ## [1.5.0](https://github.com/lilaquadrat/interfaces/compare/v1.4.0...v1.5.0) (2024-02-23)
6
20
 
7
21
 
@@ -0,0 +1,5 @@
1
+ export interface MailFrom {
2
+ email: string;
3
+ displayName: string;
4
+ restrictedTo: string[];
5
+ }
@@ -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,5 @@
1
+ import { PublishMethod } from "./PublishMethod";
2
+ export interface PublishMethodEmail extends PublishMethod {
3
+ type: 'email';
4
+ mailFrom: string;
5
+ }
@@ -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
  }
@@ -74,6 +74,7 @@ export * from './ListParticipantWithUser';
74
74
  export * from './ListParticipants';
75
75
  export * from './ListParticipantsDetails';
76
76
  export * from './Location';
77
+ export * from './MailFrom';
77
78
  export * from './Me';
78
79
  export * from './MePermissions';
79
80
  export * from './MePermissionsProject';
@@ -98,6 +99,7 @@ export * from './ProjectDomain';
98
99
  export * from './Publish';
99
100
  export * from './PublishContentGroup';
100
101
  export * from './PublishMethod';
102
+ export * from './PublishMethodEmail';
101
103
  export * from './PublishMethodFtp';
102
104
  export * from './PublishMethodInternal';
103
105
  export * from './PublishMethodPdf';
@@ -0,0 +1,5 @@
1
+ export interface MailFrom {
2
+ email: string;
3
+ displayName: string;
4
+ restrictedTo: string[];
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MailFrom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MailFrom.js","sourceRoot":"","sources":["../../src/MailFrom.ts"],"names":[],"mappings":""}
@@ -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,5 @@
1
+ import { PublishMethod } from "./PublishMethod";
2
+ export interface PublishMethodEmail extends PublishMethod {
3
+ type: 'email';
4
+ mailFrom: string;
5
+ }
@@ -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
  }
@@ -74,6 +74,7 @@ export * from './ListParticipantWithUser';
74
74
  export * from './ListParticipants';
75
75
  export * from './ListParticipantsDetails';
76
76
  export * from './Location';
77
+ export * from './MailFrom';
77
78
  export * from './Me';
78
79
  export * from './MePermissions';
79
80
  export * from './MePermissionsProject';
@@ -98,6 +99,7 @@ export * from './ProjectDomain';
98
99
  export * from './Publish';
99
100
  export * from './PublishContentGroup';
100
101
  export * from './PublishMethod';
102
+ export * from './PublishMethodEmail';
101
103
  export * from './PublishMethodFtp';
102
104
  export * from './PublishMethodInternal';
103
105
  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.7.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -0,0 +1,7 @@
1
+ export interface MailFrom {
2
+
3
+ email: string
4
+ displayName: string
5
+ restrictedTo: string[]
6
+
7
+ }
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,9 @@
1
+ import { PublishMethod } from "./PublishMethod";
2
+
3
+ export interface PublishMethodEmail extends PublishMethod {
4
+
5
+ type: 'email'
6
+
7
+ mailFrom: string
8
+
9
+ }
@@ -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
  }