@lilaquadrat/interfaces 1.0.2 → 1.1.2
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 +21 -0
- package/lib/cjs/Address.d.ts +1 -0
- package/lib/cjs/AppFilter.d.ts +1 -1
- package/lib/cjs/Contact.d.ts +6 -0
- package/lib/cjs/ContactAgreement.d.ts +4 -0
- package/lib/cjs/Content.d.ts +1 -1
- package/lib/cjs/ErrorObject.d.ts +2 -0
- package/lib/cjs/ListParticipantsDetails.d.ts +1 -1
- package/lib/cjs/ResponseError.d.ts +5 -0
- package/lib/cjs/index.d.ts +4 -0
- package/lib/esm/Address.d.ts +1 -0
- package/lib/esm/AppFilter.d.ts +1 -1
- package/lib/esm/Contact.d.ts +6 -0
- package/lib/esm/Contact.js +2 -0
- package/lib/esm/Contact.js.map +1 -0
- package/lib/esm/ContactAgreement.d.ts +4 -0
- package/lib/esm/ContactAgreement.js +2 -0
- package/lib/esm/ContactAgreement.js.map +1 -0
- package/lib/esm/Content.d.ts +1 -1
- package/lib/esm/ErrorObject.d.ts +2 -0
- package/lib/esm/ErrorObject.js +2 -0
- package/lib/esm/ErrorObject.js.map +1 -0
- package/lib/esm/ListParticipantsDetails.d.ts +1 -1
- package/lib/esm/ResponseError.d.ts +5 -0
- package/lib/esm/ResponseError.js +2 -0
- package/lib/esm/ResponseError.js.map +1 -0
- package/lib/esm/index.d.ts +4 -0
- package/package.json +7 -2
- package/src/Address.ts +1 -0
- package/src/AppFilter.ts +1 -1
- package/src/BasicData.ts +5 -2
- package/src/Contact.ts +7 -0
- package/src/ContactAgreement.ts +5 -0
- package/src/Content.ts +29 -29
- package/src/ErrorObject.ts +5 -0
- package/src/GenericData.ts +2 -1
- package/src/ListParticipantsDetails.ts +1 -1
- package/src/ResponseError.ts +6 -0
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.1.2](https://github.com/lilaquadrat/interfaces/compare/v1.1.1...v1.1.2) (2024-02-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **genericdata:** fixed genericData data ([4ca1362](https://github.com/lilaquadrat/interfaces/commit/4ca13628661e1c92594e65c18c48563cec52bb41))
|
|
11
|
+
|
|
12
|
+
### [1.1.1](https://github.com/lilaquadrat/interfaces/compare/v1.1.0...v1.1.1) (2024-02-09)
|
|
13
|
+
|
|
14
|
+
## [1.1.0](https://github.com/lilaquadrat/interfaces/compare/v1.0.2...v1.1.0) (2024-02-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **contact:** added contact, contact agreements and responseError ([72168e2](https://github.com/lilaquadrat/interfaces/commit/72168e2fbe0f6a0f5a5d87c721f5d2ab9d57fff4))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **several typings fixed:** fixed address, appfilter and more ([17e9d30](https://github.com/lilaquadrat/interfaces/commit/17e9d30765f6809682d90ad2c7d7e3a66b9e6ba0))
|
|
25
|
+
|
|
5
26
|
### [1.0.2](https://github.com/lilaquadrat/interfaces/compare/v1.0.1...v1.0.2) (2024-01-29)
|
|
6
27
|
|
|
7
28
|
### 1.0.1 (2024-01-29)
|
package/lib/cjs/Address.d.ts
CHANGED
package/lib/cjs/AppFilter.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid'> {
|
|
1
|
+
export interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid' | 'availableForActivation'> {
|
|
2
2
|
}
|
package/lib/cjs/Content.d.ts
CHANGED
package/lib/cjs/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export * from './Command';
|
|
|
22
22
|
export * from './Company';
|
|
23
23
|
export * from './CompanyAttribute';
|
|
24
24
|
export * from './CompanyProject';
|
|
25
|
+
export * from './Contact';
|
|
26
|
+
export * from './ContactAgreement';
|
|
25
27
|
export * from './Content';
|
|
26
28
|
export * from './ContentWithPositions';
|
|
27
29
|
export * from './Contract';
|
|
@@ -44,6 +46,7 @@ export * from './DomainsList';
|
|
|
44
46
|
export * from './EditorActiveModule';
|
|
45
47
|
export * from './EditorBase';
|
|
46
48
|
export * from './EditorLegacy';
|
|
49
|
+
export * from './ErrorObject';
|
|
47
50
|
export * from './GenericData';
|
|
48
51
|
export * from './GenericDataWithContent';
|
|
49
52
|
export * from './History';
|
|
@@ -94,6 +97,7 @@ export * from './PublishMethodWebhook';
|
|
|
94
97
|
export * from './PublishResult';
|
|
95
98
|
export * from './PublishResultStatistics';
|
|
96
99
|
export * from './RenderContext';
|
|
100
|
+
export * from './ResponseError';
|
|
97
101
|
export * from './Scope';
|
|
98
102
|
export * from './Secret';
|
|
99
103
|
export * from './Settings';
|
package/lib/esm/Address.d.ts
CHANGED
package/lib/esm/AppFilter.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid'> {
|
|
1
|
+
export interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid' | 'availableForActivation'> {
|
|
2
2
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Contact.js","sourceRoot":"","sources":["../../src/Contact.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactAgreement.js","sourceRoot":"","sources":["../../src/ContactAgreement.ts"],"names":[],"mappings":""}
|
package/lib/esm/Content.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorObject.js","sourceRoot":"","sources":["../../src/ErrorObject.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseError.js","sourceRoot":"","sources":["../../src/ResponseError.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export * from './Command';
|
|
|
22
22
|
export * from './Company';
|
|
23
23
|
export * from './CompanyAttribute';
|
|
24
24
|
export * from './CompanyProject';
|
|
25
|
+
export * from './Contact';
|
|
26
|
+
export * from './ContactAgreement';
|
|
25
27
|
export * from './Content';
|
|
26
28
|
export * from './ContentWithPositions';
|
|
27
29
|
export * from './Contract';
|
|
@@ -44,6 +46,7 @@ export * from './DomainsList';
|
|
|
44
46
|
export * from './EditorActiveModule';
|
|
45
47
|
export * from './EditorBase';
|
|
46
48
|
export * from './EditorLegacy';
|
|
49
|
+
export * from './ErrorObject';
|
|
47
50
|
export * from './GenericData';
|
|
48
51
|
export * from './GenericDataWithContent';
|
|
49
52
|
export * from './History';
|
|
@@ -94,6 +97,7 @@ export * from './PublishMethodWebhook';
|
|
|
94
97
|
export * from './PublishResult';
|
|
95
98
|
export * from './PublishResultStatistics';
|
|
96
99
|
export * from './RenderContext';
|
|
100
|
+
export * from './ResponseError';
|
|
97
101
|
export * from './Scope';
|
|
98
102
|
export * from './Secret';
|
|
99
103
|
export * from './Settings';
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lilaquadrat/interfaces",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "interfaces in context of lilaquadrat STUDIO",
|
|
5
|
-
"author":
|
|
5
|
+
"author": {
|
|
6
|
+
"email": "m.schuebel@lila2.de",
|
|
7
|
+
"name": "Mathias Schübel",
|
|
8
|
+
"url": "https://lilaquadrat.de"
|
|
9
|
+
},
|
|
6
10
|
"license": "MIT",
|
|
7
11
|
"dependencies": {
|
|
8
12
|
"typescript": "^5.3.3"
|
|
@@ -25,6 +29,7 @@
|
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
27
31
|
"@types/node": "^20.11.9",
|
|
32
|
+
"ajv": "^8.12.0",
|
|
28
33
|
"cz-conventional-changelog": "^3.3.0",
|
|
29
34
|
"mongodb": "^5.7.0",
|
|
30
35
|
"standard-version": "^9.5.0"
|
package/src/Address.ts
CHANGED
package/src/AppFilter.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid'> { }
|
|
1
|
+
export interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid' | 'availableForActivation'> { }
|
package/src/BasicData.ts
CHANGED
|
@@ -3,11 +3,15 @@ import { ObjectId } from 'mongodb';
|
|
|
3
3
|
export type BasicData<T> = T & {
|
|
4
4
|
|
|
5
5
|
id?: string | number
|
|
6
|
+
|
|
6
7
|
company?: string
|
|
7
8
|
project?: string
|
|
9
|
+
|
|
8
10
|
app?: string
|
|
9
11
|
model?: string
|
|
12
|
+
|
|
10
13
|
_id?: ObjectId
|
|
14
|
+
|
|
11
15
|
history?: {
|
|
12
16
|
version?: number
|
|
13
17
|
source: string
|
|
@@ -16,5 +20,4 @@ export type BasicData<T> = T & {
|
|
|
16
20
|
additional?: any
|
|
17
21
|
};
|
|
18
22
|
|
|
19
|
-
}
|
|
20
|
-
|
|
23
|
+
}
|
package/src/Contact.ts
ADDED
package/src/Content.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { ObjectId } from "mongodb"
|
|
2
|
-
import {ChildData} from "./ChildData"
|
|
3
|
-
import {GenericData} from "./GenericData"
|
|
4
|
-
import {ModuleGeneric} from "./ModuleGeneric"
|
|
1
|
+
import type { ObjectId } from "mongodb"
|
|
2
|
+
import { ChildData } from "./ChildData"
|
|
3
|
+
import { GenericData } from "./GenericData"
|
|
4
|
+
import { ModuleGeneric } from "./ModuleGeneric"
|
|
5
5
|
|
|
6
6
|
export interface Content {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
id: string
|
|
8
|
+
company: string
|
|
9
|
+
project: string
|
|
10
|
+
modules: ModuleGeneric[]
|
|
11
|
+
tags?: string[]
|
|
12
|
+
description?: string
|
|
13
|
+
partial?: boolean
|
|
14
|
+
layout?: boolean
|
|
15
|
+
state: 'draft' | 'publish'
|
|
16
|
+
language?: string
|
|
17
|
+
settings: {
|
|
18
|
+
url?: string
|
|
19
|
+
useLayout?: ObjectId
|
|
20
|
+
title?: string
|
|
12
21
|
description?: string
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
filename?: string[]
|
|
25
|
-
mode?: string
|
|
26
|
-
},
|
|
27
|
-
pdf?: {
|
|
28
|
-
filename?: string
|
|
29
|
-
versioning?: boolean
|
|
30
|
-
},
|
|
31
|
-
childData?: ChildData
|
|
32
|
-
genericData?: GenericData
|
|
22
|
+
noSSR?: boolean
|
|
23
|
+
noRendering?: boolean
|
|
24
|
+
filename?: string[]
|
|
25
|
+
mode?: string
|
|
26
|
+
},
|
|
27
|
+
pdf?: {
|
|
28
|
+
filename?: string
|
|
29
|
+
versioning?: boolean
|
|
30
|
+
},
|
|
31
|
+
childData?: ChildData
|
|
32
|
+
genericData?: GenericData
|
|
33
33
|
}
|
package/src/GenericData.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BasicData } from "./BasicData";
|
|
2
|
-
import {Content} from "./Content"
|
|
2
|
+
import { Content } from "./Content"
|
|
3
3
|
|
|
4
4
|
type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
|
|
5
5
|
|
|
@@ -9,6 +9,7 @@ type GenericData = {
|
|
|
9
9
|
data: BasicData<Content>[]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
|
|
12
13
|
export {
|
|
13
14
|
GenericData,
|
|
14
15
|
CompatibleGenericDataType
|