@lilaquadrat/interfaces 1.9.0 → 1.10.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.10.0](https://github.com/lilaquadrat/interfaces/compare/v1.9.0...v1.10.0) (2024-04-19)
6
+
7
+
8
+ ### Features
9
+
10
+ * **email confirmation, list email content:** added emails to list, email confirmation to customers ([bcc84b5](https://github.com/lilaquadrat/interfaces/commit/bcc84b5eca98a7d29f2aa4704c0b221569cdcada))
11
+
5
12
  ## [1.9.0](https://github.com/lilaquadrat/interfaces/compare/v1.8.0...v1.9.0) (2024-04-11)
6
13
 
7
14
 
@@ -2,6 +2,8 @@ export interface CustomerBase {
2
2
  type?: 'person' | 'company';
3
3
  id?: string;
4
4
  email?: string;
5
+ emailConfirmed?: boolean;
6
+ emailConfirmationCode?: string;
5
7
  /** for better sorting name will be used as lastname for persons */
6
8
  name: string;
7
9
  osm_id?: number;
@@ -1 +1 @@
1
- export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount';
1
+ export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount' | 'confirmEmail';
@@ -0,0 +1,5 @@
1
+ export interface EmailsContent {
2
+ waiting: string;
3
+ active: string;
4
+ post: string;
5
+ }
@@ -0,0 +1,12 @@
1
+ import { BasicData } from "./BasicData";
2
+ import { Content } from "./Content";
3
+ import { Customers } from "./Customers";
4
+ import { CompatibleGenericDataType } from "./GenericData";
5
+ import { List } from "./List";
6
+ import { Media } from "./Media";
7
+ type GenericDataDistributed = {
8
+ [key in CompatibleGenericDataType]: (BasicData<List>['_id'] | BasicData<Content>['_id'] | BasicData<Customers>['_id'])[];
9
+ } & {
10
+ data: Record<string, BasicData<Content | List | Customers | Media>>;
11
+ };
12
+ export { GenericDataDistributed };
package/lib/cjs/List.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ObjectId } from "mongodb";
2
2
  import { Agreement } from "./Agreement";
3
3
  import { ListCategory } from "./ListCategory";
4
4
  import { ListContent } from "./ListContent";
5
+ import { EmailsContent } from "./EmailsContent";
5
6
  export interface List {
6
7
  _id?: ObjectId;
7
8
  company: string;
@@ -24,4 +25,5 @@ export interface List {
24
25
  agreements: Agreement[];
25
26
  categories: ListCategory[];
26
27
  content: ListContent;
28
+ emails: EmailsContent;
27
29
  }
package/lib/cjs/Me.d.ts CHANGED
@@ -7,4 +7,5 @@ export interface Me {
7
7
  state?: string[];
8
8
  settings?: Settings['settings'];
9
9
  termsAccepted?: boolean;
10
+ emailConfirmed?: boolean;
10
11
  }
@@ -0,0 +1 @@
1
+ export type ObjectIdString = string;
@@ -2,9 +2,10 @@ import { ObjectId } from "mongodb";
2
2
  import { PublishMethod } from "./PublishMethod";
3
3
  import { PublishResult } from "./PublishResult";
4
4
  import { PublishResultStatistics } from "./PublishResultStatistics";
5
+ import { ObjectIdString } from "./ObjectIdString";
5
6
  export interface Publish {
6
7
  referenceId?: ObjectId;
7
- method: ObjectId;
8
+ method: ObjectIdString;
8
9
  publishMethod?: {
9
10
  label: PublishMethod['label'];
10
11
  type: PublishMethod['type'];
@@ -22,5 +23,5 @@ export interface Publish {
22
23
  id: number | string;
23
24
  name?: string;
24
25
  };
25
- recipient?: ObjectId;
26
+ recipient?: ObjectIdString;
26
27
  }
@@ -52,8 +52,10 @@ export * from './DomainsList';
52
52
  export * from './EditorActiveModule';
53
53
  export * from './EditorBase';
54
54
  export * from './EditorLegacy';
55
+ export * from './EmailsContent';
55
56
  export * from './ErrorObject';
56
57
  export * from './GenericData';
58
+ export * from './GenericDataDistributed';
57
59
  export * from './GenericDataWithContent';
58
60
  export * from './History';
59
61
  export * from './HistoryReason';
@@ -90,6 +92,7 @@ export * from './ModuleIndexOptions';
90
92
  export * from './ModulePDFOptions';
91
93
  export * from './ModuleSettings';
92
94
  export * from './MulterFile';
95
+ export * from './ObjectIdString';
93
96
  export * from './Options';
94
97
  export * from './Partner';
95
98
  export * from './Permissions';
@@ -2,6 +2,8 @@ export interface CustomerBase {
2
2
  type?: 'person' | 'company';
3
3
  id?: string;
4
4
  email?: string;
5
+ emailConfirmed?: boolean;
6
+ emailConfirmationCode?: string;
5
7
  /** for better sorting name will be used as lastname for persons */
6
8
  name: string;
7
9
  osm_id?: number;
@@ -1 +1 @@
1
- export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount';
1
+ export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount' | 'confirmEmail';
@@ -0,0 +1,5 @@
1
+ export interface EmailsContent {
2
+ waiting: string;
3
+ active: string;
4
+ post: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EmailsContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailsContent.js","sourceRoot":"","sources":["../../src/EmailsContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { BasicData } from "./BasicData";
2
+ import { Content } from "./Content";
3
+ import { Customers } from "./Customers";
4
+ import { CompatibleGenericDataType } from "./GenericData";
5
+ import { List } from "./List";
6
+ import { Media } from "./Media";
7
+ type GenericDataDistributed = {
8
+ [key in CompatibleGenericDataType]: (BasicData<List>['_id'] | BasicData<Content>['_id'] | BasicData<Customers>['_id'])[];
9
+ } & {
10
+ data: Record<string, BasicData<Content | List | Customers | Media>>;
11
+ };
12
+ export { GenericDataDistributed };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GenericDataDistributed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericDataDistributed.js","sourceRoot":"","sources":["../../src/GenericDataDistributed.ts"],"names":[],"mappings":""}
package/lib/esm/List.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ObjectId } from "mongodb";
2
2
  import { Agreement } from "./Agreement";
3
3
  import { ListCategory } from "./ListCategory";
4
4
  import { ListContent } from "./ListContent";
5
+ import { EmailsContent } from "./EmailsContent";
5
6
  export interface List {
6
7
  _id?: ObjectId;
7
8
  company: string;
@@ -24,4 +25,5 @@ export interface List {
24
25
  agreements: Agreement[];
25
26
  categories: ListCategory[];
26
27
  content: ListContent;
28
+ emails: EmailsContent;
27
29
  }
package/lib/esm/Me.d.ts CHANGED
@@ -7,4 +7,5 @@ export interface Me {
7
7
  state?: string[];
8
8
  settings?: Settings['settings'];
9
9
  termsAccepted?: boolean;
10
+ emailConfirmed?: boolean;
10
11
  }
@@ -0,0 +1 @@
1
+ export type ObjectIdString = string;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ObjectIdString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectIdString.js","sourceRoot":"","sources":["../../src/ObjectIdString.ts"],"names":[],"mappings":""}
@@ -2,9 +2,10 @@ import { ObjectId } from "mongodb";
2
2
  import { PublishMethod } from "./PublishMethod";
3
3
  import { PublishResult } from "./PublishResult";
4
4
  import { PublishResultStatistics } from "./PublishResultStatistics";
5
+ import { ObjectIdString } from "./ObjectIdString";
5
6
  export interface Publish {
6
7
  referenceId?: ObjectId;
7
- method: ObjectId;
8
+ method: ObjectIdString;
8
9
  publishMethod?: {
9
10
  label: PublishMethod['label'];
10
11
  type: PublishMethod['type'];
@@ -22,5 +23,5 @@ export interface Publish {
22
23
  id: number | string;
23
24
  name?: string;
24
25
  };
25
- recipient?: ObjectId;
26
+ recipient?: ObjectIdString;
26
27
  }
@@ -52,8 +52,10 @@ export * from './DomainsList';
52
52
  export * from './EditorActiveModule';
53
53
  export * from './EditorBase';
54
54
  export * from './EditorLegacy';
55
+ export * from './EmailsContent';
55
56
  export * from './ErrorObject';
56
57
  export * from './GenericData';
58
+ export * from './GenericDataDistributed';
57
59
  export * from './GenericDataWithContent';
58
60
  export * from './History';
59
61
  export * from './HistoryReason';
@@ -90,6 +92,7 @@ export * from './ModuleIndexOptions';
90
92
  export * from './ModulePDFOptions';
91
93
  export * from './ModuleSettings';
92
94
  export * from './MulterFile';
95
+ export * from './ObjectIdString';
93
96
  export * from './Options';
94
97
  export * from './Partner';
95
98
  export * from './Permissions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
package/src/BasicData.ts CHANGED
@@ -20,4 +20,5 @@ export type BasicData<T> = T & {
20
20
  additional?: any
21
21
  };
22
22
 
23
- }
23
+ }
24
+
@@ -5,6 +5,10 @@ export interface CustomerBase {
5
5
  id?: string
6
6
 
7
7
  email?: string
8
+
9
+ emailConfirmed?: boolean
10
+
11
+ emailConfirmationCode?: string
8
12
  /** for better sorting name will be used as lastname for persons */
9
13
  name: string
10
14
 
@@ -1,3 +1,3 @@
1
1
  export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal'
2
2
  | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal'
3
- | 'connectPersonAccount' | 'disconnectPersonAccount'
3
+ | 'connectPersonAccount' | 'disconnectPersonAccount' | 'confirmEmail'
@@ -0,0 +1,11 @@
1
+ export interface EmailsContent {
2
+
3
+ // the user is reserved but not confirmed
4
+ waiting: string
5
+
6
+ // the user is confirmed
7
+ active: string
8
+
9
+ // the usage/event is fulfilled
10
+ post: string
11
+ }
@@ -0,0 +1,14 @@
1
+ import { BasicData } from "./BasicData";
2
+ import { Content } from "./Content"
3
+ import { Customers } from "./Customers";
4
+ import { CompatibleGenericDataType } from "./GenericData";
5
+ import { List } from "./List";
6
+ import { Media } from "./Media";
7
+
8
+ type GenericDataDistributed = {
9
+ [key in CompatibleGenericDataType]: (BasicData<List>['_id']|BasicData<Content>['_id']|BasicData<Customers>['_id'])[]
10
+ } & {
11
+ data: Record<string, BasicData<Content | List | Customers | Media>>;
12
+ }
13
+
14
+ export { GenericDataDistributed };
package/src/List.ts CHANGED
@@ -2,6 +2,7 @@ import { ObjectId } from "mongodb";
2
2
  import {Agreement} from "./Agreement";
3
3
  import { ListCategory } from "./ListCategory";
4
4
  import { ListContent } from "./ListContent";
5
+ import { EmailsContent } from "./EmailsContent";
5
6
 
6
7
  export interface List {
7
8
  _id?: ObjectId
@@ -34,4 +35,6 @@ export interface List {
34
35
  categories: ListCategory[]
35
36
 
36
37
  content: ListContent
38
+
39
+ emails: EmailsContent
37
40
  }
package/src/Me.ts CHANGED
@@ -9,5 +9,6 @@ export interface Me {
9
9
  state?: string[]
10
10
  settings?: Settings['settings']
11
11
  termsAccepted?: boolean
12
+ emailConfirmed?: boolean
12
13
 
13
14
  }
@@ -0,0 +1 @@
1
+ export type ObjectIdString = string;
package/src/Publish.ts CHANGED
@@ -2,10 +2,11 @@ import { ObjectId } from "mongodb"
2
2
  import { PublishMethod } from "./PublishMethod"
3
3
  import {PublishResult} from "./PublishResult"
4
4
  import {PublishResultStatistics} from "./PublishResultStatistics"
5
+ import { ObjectIdString } from "./ObjectIdString"
5
6
 
6
7
  export interface Publish {
7
8
  referenceId?: ObjectId
8
- method: ObjectId
9
+ method: ObjectIdString
9
10
 
10
11
  publishMethod?: {
11
12
  label: PublishMethod['label']
@@ -41,5 +42,5 @@ export interface Publish {
41
42
 
42
43
  publishData?: {id: number | string, name?: string}
43
44
 
44
- recipient?: ObjectId;
45
+ recipient?: ObjectIdString;
45
46
  }