@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 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)
@@ -5,5 +5,6 @@ export interface Address {
5
5
  zipcode?: string;
6
6
  city?: string;
7
7
  country?: string;
8
+ country_name?: string;
8
9
  addressAddition?: string;
9
10
  }
@@ -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,6 @@
1
+ import { CustomerBase } from "./CustomerBase";
2
+ export type Contact = Omit<CustomerBase, 'id' | 'note' | 'tags' | 'company'> & {
3
+ message?: string;
4
+ category?: string;
5
+ prename?: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ export interface ContactAgreement {
2
+ id: string;
3
+ version: number;
4
+ }
@@ -1,4 +1,4 @@
1
- import { ObjectId } from "mongodb";
1
+ import type { ObjectId } from "mongodb";
2
2
  import { ChildData } from "./ChildData";
3
3
  import { GenericData } from "./GenericData";
4
4
  import { ModuleGeneric } from "./ModuleGeneric";
@@ -0,0 +1,2 @@
1
+ import { ErrorObject } from 'ajv/dist/types';
2
+ export { ErrorObject };
@@ -1,7 +1,7 @@
1
1
  export interface ListPartiticpantsDetails {
2
2
  used: number;
3
3
  categories: {
4
- id: string;
4
+ category: string;
5
5
  used: number;
6
6
  }[];
7
7
  }
@@ -0,0 +1,5 @@
1
+ import { ErrorObject } from 'ajv/dist/types';
2
+ export interface ResponseError {
3
+ errors?: ErrorObject<string, Record<string, any>, unknown>[];
4
+ message: string;
5
+ }
@@ -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';
@@ -5,5 +5,6 @@ export interface Address {
5
5
  zipcode?: string;
6
6
  city?: string;
7
7
  country?: string;
8
+ country_name?: string;
8
9
  addressAddition?: string;
9
10
  }
@@ -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,6 @@
1
+ import { CustomerBase } from "./CustomerBase";
2
+ export type Contact = Omit<CustomerBase, 'id' | 'note' | 'tags' | 'company'> & {
3
+ message?: string;
4
+ category?: string;
5
+ prename?: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Contact.js","sourceRoot":"","sources":["../../src/Contact.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface ContactAgreement {
2
+ id: string;
3
+ version: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ContactAgreement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContactAgreement.js","sourceRoot":"","sources":["../../src/ContactAgreement.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { ObjectId } from "mongodb";
1
+ import type { ObjectId } from "mongodb";
2
2
  import { ChildData } from "./ChildData";
3
3
  import { GenericData } from "./GenericData";
4
4
  import { ModuleGeneric } from "./ModuleGeneric";
@@ -0,0 +1,2 @@
1
+ import { ErrorObject } from 'ajv/dist/types';
2
+ export { ErrorObject };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ErrorObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorObject.js","sourceRoot":"","sources":["../../src/ErrorObject.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  export interface ListPartiticpantsDetails {
2
2
  used: number;
3
3
  categories: {
4
- id: string;
4
+ category: string;
5
5
  used: number;
6
6
  }[];
7
7
  }
@@ -0,0 +1,5 @@
1
+ import { ErrorObject } from 'ajv/dist/types';
2
+ export interface ResponseError {
3
+ errors?: ErrorObject<string, Record<string, any>, unknown>[];
4
+ message: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ResponseError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponseError.js","sourceRoot":"","sources":["../../src/ResponseError.ts"],"names":[],"mappings":""}
@@ -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.0.2",
3
+ "version": "1.1.2",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
- "author": "mschuebel <m.schuebel@lila2.de>",
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
@@ -5,5 +5,6 @@ export interface Address {
5
5
  zipcode?: string;
6
6
  city?: string;
7
7
  country?: string;
8
+ country_name?: string
8
9
  addressAddition?: string;
9
10
  }
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
@@ -0,0 +1,7 @@
1
+ import { CustomerBase } from "./CustomerBase"
2
+
3
+ export type Contact = Omit<CustomerBase, 'id' | 'note' | 'tags' | 'company'> & {
4
+ message?: string
5
+ category?: string
6
+ prename?: string
7
+ }
@@ -0,0 +1,5 @@
1
+
2
+ export interface ContactAgreement {
3
+ id: string
4
+ version: number
5
+ }
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
- id: string
8
- company: string
9
- project: string
10
- modules: ModuleGeneric[]
11
- tags?: string[]
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
- partial?: boolean
14
- layout?: boolean
15
- state: 'draft' | 'publish'
16
- language?: string
17
- settings: {
18
- url?: string
19
- useLayout?: ObjectId
20
- title?: string
21
- description?: string
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
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
  }
@@ -0,0 +1,5 @@
1
+ import { ErrorObject } from 'ajv/dist/types';
2
+
3
+ export {
4
+ ErrorObject
5
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  export interface ListPartiticpantsDetails {
2
2
 
3
3
  used: number
4
- categories: { id: string, used: number }[]
4
+ categories: { category: string, used: number }[]
5
5
 
6
6
  }
@@ -0,0 +1,6 @@
1
+ import { ErrorObject } from 'ajv/dist/types';
2
+
3
+ export interface ResponseError {
4
+ errors?: ErrorObject<string, Record<string, any>, unknown>[]
5
+ message: string
6
+ }
package/tsconfig.json CHANGED
@@ -27,6 +27,6 @@
27
27
  ],
28
28
  "exclude": [
29
29
  "node_modules",
30
- "dist"
30
+ "lib"
31
31
  ]
32
32
  }