@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 +7 -0
- package/lib/cjs/CustomerBase.d.ts +2 -0
- package/lib/cjs/CustomersModelActions.d.ts +1 -1
- package/lib/cjs/EmailsContent.d.ts +5 -0
- package/lib/cjs/GenericDataDistributed.d.ts +12 -0
- package/lib/cjs/List.d.ts +2 -0
- package/lib/cjs/Me.d.ts +1 -0
- package/lib/cjs/ObjectIdString.d.ts +1 -0
- package/lib/cjs/Publish.d.ts +3 -2
- package/lib/cjs/index.d.ts +3 -0
- package/lib/esm/CustomerBase.d.ts +2 -0
- package/lib/esm/CustomersModelActions.d.ts +1 -1
- package/lib/esm/EmailsContent.d.ts +5 -0
- package/lib/esm/EmailsContent.js +2 -0
- package/lib/esm/EmailsContent.js.map +1 -0
- package/lib/esm/GenericDataDistributed.d.ts +12 -0
- package/lib/esm/GenericDataDistributed.js +2 -0
- package/lib/esm/GenericDataDistributed.js.map +1 -0
- package/lib/esm/List.d.ts +2 -0
- package/lib/esm/Me.d.ts +1 -0
- package/lib/esm/ObjectIdString.d.ts +1 -0
- package/lib/esm/ObjectIdString.js +2 -0
- package/lib/esm/ObjectIdString.js.map +1 -0
- package/lib/esm/Publish.d.ts +3 -2
- package/lib/esm/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/BasicData.ts +2 -1
- package/src/CustomerBase.ts +4 -0
- package/src/CustomersModelActions.ts +1 -1
- package/src/EmailsContent.ts +11 -0
- package/src/GenericDataDistributed.ts +14 -0
- package/src/List.ts +3 -0
- package/src/Me.ts +1 -0
- package/src/ObjectIdString.ts +1 -0
- package/src/Publish.ts +3 -2
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
|
|
|
@@ -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,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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ObjectIdString = string;
|
package/lib/cjs/Publish.d.ts
CHANGED
|
@@ -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:
|
|
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?:
|
|
26
|
+
recipient?: ObjectIdString;
|
|
26
27
|
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ObjectIdString = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectIdString.js","sourceRoot":"","sources":["../../src/ObjectIdString.ts"],"names":[],"mappings":""}
|
package/lib/esm/Publish.d.ts
CHANGED
|
@@ -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:
|
|
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?:
|
|
26
|
+
recipient?: ObjectIdString;
|
|
26
27
|
}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -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
package/src/BasicData.ts
CHANGED
package/src/CustomerBase.ts
CHANGED
|
@@ -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,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
|
@@ -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:
|
|
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?:
|
|
45
|
+
recipient?: ObjectIdString;
|
|
45
46
|
}
|