@lilaquadrat/interfaces 1.20.0 → 1.21.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.21.0](https://github.com/lilaquadrat/interfaces/compare/v1.20.0...v1.21.0) (2025-03-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * **structures:** added structures types ([1523e11](https://github.com/lilaquadrat/interfaces/commit/1523e11894954e99096528a122b8550aa57ae80f))
11
+
5
12
  ## [1.20.0](https://github.com/lilaquadrat/interfaces/compare/v1.19.0...v1.20.0) (2025-03-10)
6
13
 
7
14
 
@@ -0,0 +1,10 @@
1
+ import { BasicData } from "./BasicData";
2
+ import { Structure } from "./Structure";
3
+ export interface CategoryStructure {
4
+ title?: string;
5
+ description?: string;
6
+ structures: BasicData<Structure & {
7
+ required?: boolean;
8
+ }>[];
9
+ required?: string[];
10
+ }
@@ -0,0 +1,4 @@
1
+ import { CategoryStructure } from "./CategoryStructure";
2
+ export type CategoryStructureWithRequired = CategoryStructure & {
3
+ required?: boolean;
4
+ };
@@ -3,10 +3,11 @@ import { Content } from "./Content";
3
3
  import { Customers } from "./Customers";
4
4
  import { List } from "./List";
5
5
  import { Media } from "./Media";
6
- type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
6
+ import { Structure } from "./Structure";
7
+ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media' | 'structures';
7
8
  type GenericData = {
8
9
  [key in CompatibleGenericDataType]: string[];
9
10
  } & {
10
- data: BasicData<Content | List | Customers | Media>[];
11
+ data: BasicData<Content | List | Customers | Media | Structure>[];
11
12
  };
12
13
  export { GenericData, CompatibleGenericDataType };
@@ -4,7 +4,8 @@ import { Customers } from "./Customers";
4
4
  import { CompatibleGenericDataType } from "./GenericData";
5
5
  import { List } from "./List";
6
6
  import { Media } from "./Media";
7
+ import { Structure } from "./Structure";
7
8
  type GenericDataWithContent = {
8
- [key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media>>;
9
+ [key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media | Structure>>;
9
10
  };
10
11
  export { GenericDataWithContent };
@@ -0,0 +1,38 @@
1
+ export interface Structure {
2
+ /**
3
+ * Unique identifier for the structure
4
+ */
5
+ id: string;
6
+ /**
7
+ * The question text
8
+ */
9
+ question: string;
10
+ /**
11
+ * Type of the structure
12
+ */
13
+ type: 'string' | 'text' | 'number' | 'select' | 'boolean';
14
+ model: 'listsParticipants' | 'customers';
15
+ /**
16
+ * Maximum value for number type or maximum length for text type
17
+ */
18
+ max?: number;
19
+ /**
20
+ * Minimum value for number type or minimum length for text type
21
+ */
22
+ min?: number;
23
+ multiple?: boolean;
24
+ /**
25
+ * Available options for select and multiselect types
26
+ */
27
+ options?: {
28
+ value: string;
29
+ text: string;
30
+ description?: string;
31
+ }[];
32
+ /**
33
+ * Company identifier
34
+ */
35
+ company: string;
36
+ project: string;
37
+ description?: string;
38
+ }
@@ -18,6 +18,8 @@ export * from './BaseFilterOptions';
18
18
  export * from './BasicData';
19
19
  export * from './BasicDataDatabase';
20
20
  export * from './CallResponse';
21
+ export * from './CategoryStructure';
22
+ export * from './CategoryStructureWithRequired';
21
23
  export * from './Certificate';
22
24
  export * from './CertificateAction';
23
25
  export * from './CertificateActionResult';
@@ -133,6 +135,7 @@ export * from './ShareClient';
133
135
  export * from './ShareClientOptions';
134
136
  export * from './ShopifyProjectSettings';
135
137
  export * from './SkipLimitSort';
138
+ export * from './Structure';
136
139
  export * from './StudioIframeMessage';
137
140
  export * from './SystemDomain';
138
141
  export * from './Tracker';
@@ -0,0 +1,10 @@
1
+ import { BasicData } from "./BasicData";
2
+ import { Structure } from "./Structure";
3
+ export interface CategoryStructure {
4
+ title?: string;
5
+ description?: string;
6
+ structures: BasicData<Structure & {
7
+ required?: boolean;
8
+ }>[];
9
+ required?: string[];
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CategoryStructure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryStructure.js","sourceRoot":"","sources":["../../src/CategoryStructure.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { CategoryStructure } from "./CategoryStructure";
2
+ export type CategoryStructureWithRequired = CategoryStructure & {
3
+ required?: boolean;
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CategoryStructureWithRequired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryStructureWithRequired.js","sourceRoot":"","sources":["../../src/CategoryStructureWithRequired.ts"],"names":[],"mappings":""}
@@ -3,10 +3,11 @@ import { Content } from "./Content";
3
3
  import { Customers } from "./Customers";
4
4
  import { List } from "./List";
5
5
  import { Media } from "./Media";
6
- type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
6
+ import { Structure } from "./Structure";
7
+ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media' | 'structures';
7
8
  type GenericData = {
8
9
  [key in CompatibleGenericDataType]: string[];
9
10
  } & {
10
- data: BasicData<Content | List | Customers | Media>[];
11
+ data: BasicData<Content | List | Customers | Media | Structure>[];
11
12
  };
12
13
  export { GenericData, CompatibleGenericDataType };
@@ -4,7 +4,8 @@ import { Customers } from "./Customers";
4
4
  import { CompatibleGenericDataType } from "./GenericData";
5
5
  import { List } from "./List";
6
6
  import { Media } from "./Media";
7
+ import { Structure } from "./Structure";
7
8
  type GenericDataWithContent = {
8
- [key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media>>;
9
+ [key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media | Structure>>;
9
10
  };
10
11
  export { GenericDataWithContent };
@@ -0,0 +1,38 @@
1
+ export interface Structure {
2
+ /**
3
+ * Unique identifier for the structure
4
+ */
5
+ id: string;
6
+ /**
7
+ * The question text
8
+ */
9
+ question: string;
10
+ /**
11
+ * Type of the structure
12
+ */
13
+ type: 'string' | 'text' | 'number' | 'select' | 'boolean';
14
+ model: 'listsParticipants' | 'customers';
15
+ /**
16
+ * Maximum value for number type or maximum length for text type
17
+ */
18
+ max?: number;
19
+ /**
20
+ * Minimum value for number type or minimum length for text type
21
+ */
22
+ min?: number;
23
+ multiple?: boolean;
24
+ /**
25
+ * Available options for select and multiselect types
26
+ */
27
+ options?: {
28
+ value: string;
29
+ text: string;
30
+ description?: string;
31
+ }[];
32
+ /**
33
+ * Company identifier
34
+ */
35
+ company: string;
36
+ project: string;
37
+ description?: string;
38
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Structure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Structure.js","sourceRoot":"","sources":["../../src/Structure.ts"],"names":[],"mappings":""}
@@ -18,6 +18,8 @@ export * from './BaseFilterOptions';
18
18
  export * from './BasicData';
19
19
  export * from './BasicDataDatabase';
20
20
  export * from './CallResponse';
21
+ export * from './CategoryStructure';
22
+ export * from './CategoryStructureWithRequired';
21
23
  export * from './Certificate';
22
24
  export * from './CertificateAction';
23
25
  export * from './CertificateActionResult';
@@ -133,6 +135,7 @@ export * from './ShareClient';
133
135
  export * from './ShareClientOptions';
134
136
  export * from './ShopifyProjectSettings';
135
137
  export * from './SkipLimitSort';
138
+ export * from './Structure';
136
139
  export * from './StudioIframeMessage';
137
140
  export * from './SystemDomain';
138
141
  export * from './Tracker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -0,0 +1,9 @@
1
+ import { BasicData } from "./BasicData"
2
+ import { Structure } from "./Structure"
3
+
4
+ export interface CategoryStructure {
5
+ title?: string
6
+ description?: string
7
+ structures: BasicData<Structure & {required?: boolean}>[]
8
+ required?: string[]
9
+ }
@@ -0,0 +1,3 @@
1
+ import { CategoryStructure } from "./CategoryStructure"
2
+
3
+ export type CategoryStructureWithRequired = CategoryStructure & {required?: boolean};
@@ -3,13 +3,14 @@ import { Content } from "./Content"
3
3
  import { Customers } from "./Customers";
4
4
  import { List } from "./List";
5
5
  import { Media } from "./Media";
6
+ import { Structure } from "./Structure";
6
7
 
7
- type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
8
+ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media' | 'structures';
8
9
 
9
10
  type GenericData = {
10
11
  [key in CompatibleGenericDataType]: string[]
11
12
  } & {
12
- data: BasicData<Content | List | Customers | Media>[];
13
+ data: BasicData<Content | List | Customers | Media | Structure>[];
13
14
  }
14
15
 
15
16
 
@@ -4,9 +4,10 @@ import { Customers } from "./Customers";
4
4
  import { CompatibleGenericDataType } from "./GenericData";
5
5
  import { List } from "./List";
6
6
  import { Media } from "./Media";
7
+ import { Structure } from "./Structure";
7
8
 
8
9
  type GenericDataWithContent = {
9
- [key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media>>
10
+ [key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media | Structure>>
10
11
  }
11
12
 
12
13
  export { GenericDataWithContent };
@@ -0,0 +1,44 @@
1
+ export interface Structure {
2
+ /**
3
+ * Unique identifier for the structure
4
+ */
5
+ id: string
6
+
7
+ /**
8
+ * The question text
9
+ */
10
+ question: string
11
+
12
+ /**
13
+ * Type of the structure
14
+ */
15
+ type: 'string' | 'text' | 'number' | 'select' | 'boolean'
16
+ model: 'listsParticipants' | 'customers'
17
+
18
+ /**
19
+ * Maximum value for number type or maximum length for text type
20
+ */
21
+ max?: number
22
+
23
+ /**
24
+ * Minimum value for number type or minimum length for text type
25
+ */
26
+ min?: number
27
+ multiple?: boolean
28
+
29
+ /**
30
+ * Available options for select and multiselect types
31
+ */
32
+ options?: {
33
+ value: string
34
+ text: string
35
+ description?: string
36
+ }[]
37
+ /**
38
+ * Company identifier
39
+ */
40
+ company: string
41
+ project: string
42
+
43
+ description?: string
44
+ }