@lilaquadrat/interfaces 1.18.1 → 1.20.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.20.0](https://github.com/lilaquadrat/interfaces/compare/v1.19.0...v1.20.0) (2025-03-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * **list & emailscontent:** refactored emailsContent ([6a96a3f](https://github.com/lilaquadrat/interfaces/commit/6a96a3f8d180c0d09731c208a1fffb72655dcb50))
11
+
12
+ ## [1.19.0](https://github.com/lilaquadrat/interfaces/compare/v1.18.1...v1.19.0) (2025-02-07)
13
+
14
+
15
+ ### Features
16
+
17
+ * **customerimportresult:** added customerimportresult ([f3bf329](https://github.com/lilaquadrat/interfaces/commit/f3bf3296038f4ea30cbb8894f1c62a21af981470))
18
+
5
19
  ### [1.18.1](https://github.com/lilaquadrat/interfaces/compare/v1.18.0...v1.18.1) (2025-02-02)
6
20
 
7
21
 
@@ -0,0 +1,19 @@
1
+ import { ErrorObject } from "ajv";
2
+ import { ObjectIdString } from "./ObjectIdString";
3
+ export interface CustomerImportResult {
4
+ duplicateEmails: string[];
5
+ statistics: {
6
+ success: number;
7
+ skipped: number;
8
+ error: number;
9
+ };
10
+ responses: {
11
+ email: string;
12
+ _id?: ObjectIdString;
13
+ id?: string;
14
+ error?: {
15
+ message: string;
16
+ errors: ErrorObject[];
17
+ };
18
+ }[];
19
+ }
@@ -1,5 +1,7 @@
1
+ import { ListParticipants } from "./ListParticipants";
2
+ import { ObjectIdString } from "./ObjectIdString";
1
3
  export interface EmailsContent {
2
- waiting: string;
3
- active: string;
4
- post: string;
4
+ contentId: ObjectIdString;
5
+ audience: 'public' | 'members';
6
+ affectedState: ListParticipants['state'];
5
7
  }
package/lib/cjs/List.d.ts CHANGED
@@ -26,5 +26,5 @@ export interface List {
26
26
  agreements: Agreement[];
27
27
  categories?: ListCategory[];
28
28
  content?: ListContent;
29
- emails: EmailsContent;
29
+ emails?: EmailsContent[];
30
30
  }
@@ -37,6 +37,7 @@ export * from './CreateResult';
37
37
  export * from './CustomerAccounts';
38
38
  export * from './CustomerBase';
39
39
  export * from './CustomerCompany';
40
+ export * from './CustomerImportResult';
40
41
  export * from './CustomerMinimal';
41
42
  export * from './CustomerPerson';
42
43
  export * from './CustomerPersonWithAddress';
@@ -0,0 +1,19 @@
1
+ import { ErrorObject } from "ajv";
2
+ import { ObjectIdString } from "./ObjectIdString";
3
+ export interface CustomerImportResult {
4
+ duplicateEmails: string[];
5
+ statistics: {
6
+ success: number;
7
+ skipped: number;
8
+ error: number;
9
+ };
10
+ responses: {
11
+ email: string;
12
+ _id?: ObjectIdString;
13
+ id?: string;
14
+ error?: {
15
+ message: string;
16
+ errors: ErrorObject[];
17
+ };
18
+ }[];
19
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CustomerImportResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerImportResult.js","sourceRoot":"","sources":["../../src/CustomerImportResult.ts"],"names":[],"mappings":""}
@@ -1,5 +1,7 @@
1
+ import { ListParticipants } from "./ListParticipants";
2
+ import { ObjectIdString } from "./ObjectIdString";
1
3
  export interface EmailsContent {
2
- waiting: string;
3
- active: string;
4
- post: string;
4
+ contentId: ObjectIdString;
5
+ audience: 'public' | 'members';
6
+ affectedState: ListParticipants['state'];
5
7
  }
package/lib/esm/List.d.ts CHANGED
@@ -26,5 +26,5 @@ export interface List {
26
26
  agreements: Agreement[];
27
27
  categories?: ListCategory[];
28
28
  content?: ListContent;
29
- emails: EmailsContent;
29
+ emails?: EmailsContent[];
30
30
  }
@@ -37,6 +37,7 @@ export * from './CreateResult';
37
37
  export * from './CustomerAccounts';
38
38
  export * from './CustomerBase';
39
39
  export * from './CustomerCompany';
40
+ export * from './CustomerImportResult';
40
41
  export * from './CustomerMinimal';
41
42
  export * from './CustomerPerson';
42
43
  export * from './CustomerPersonWithAddress';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.18.1",
3
+ "version": "1.20.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -0,0 +1,20 @@
1
+ import { ErrorObject } from "ajv"
2
+ import { ObjectIdString } from "./ObjectIdString"
3
+
4
+ export interface CustomerImportResult {
5
+ duplicateEmails: string[]
6
+ statistics: {
7
+ success: number
8
+ skipped: number
9
+ error: number
10
+ }
11
+ responses: {
12
+ email: string
13
+ _id?: ObjectIdString
14
+ id?: string
15
+ error?: {
16
+ message: string
17
+ errors: ErrorObject[]
18
+ }
19
+ }[]
20
+ }
@@ -1,11 +1,11 @@
1
+ import { ListParticipants } from "./ListParticipants"
2
+ import { ObjectIdString } from "./ObjectIdString"
3
+
1
4
  export interface EmailsContent {
2
5
 
3
- // the user is reserved but not confirmed
4
- waiting: string
6
+ contentId: ObjectIdString
5
7
 
6
- // the user is confirmed
7
- active: string
8
+ audience: 'public' | 'members'
8
9
 
9
- // the usage/event is fulfilled
10
- post: string
10
+ affectedState: ListParticipants['state']
11
11
  }
package/src/List.ts CHANGED
@@ -37,5 +37,5 @@ export interface List {
37
37
 
38
38
  content?: ListContent
39
39
 
40
- emails: EmailsContent
40
+ emails?: EmailsContent[]
41
41
  }