@lilaquadrat/interfaces 1.29.0 → 1.31.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,20 @@
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.31.0](https://github.com/lilaquadrat/interfaces/compare/v1.30.0...v1.31.0) (2025-11-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **DesignCustomModule, PlaceholderModule:** add inputData to PlaceholderModule and define value types in DesignCustomModule ([d79463f](https://github.com/lilaquadrat/interfaces/commit/d79463f666d1026c7ea67b2321e24b72a5c0ecd7))
11
+
12
+ ## [1.30.0](https://github.com/lilaquadrat/interfaces/compare/v1.29.0...v1.30.0) (2025-07-21)
13
+
14
+
15
+ ### Features
16
+
17
+ * **ShareClient:** add getDownloadUrl method and update ShareClientOptions for optional connectionString ([a4bc9de](https://github.com/lilaquadrat/interfaces/commit/a4bc9de5e7ea2dcce0ca10c8260a4d8a7406f73b))
18
+
5
19
  ## [1.29.0](https://github.com/lilaquadrat/interfaces/compare/v1.28.1...v1.29.0) (2025-06-19)
6
20
 
7
21
 
@@ -1,3 +1,37 @@
1
+ type BaseValue = {
2
+ id: string;
3
+ label: string;
4
+ description?: string;
5
+ };
6
+ type StringValue = BaseValue & {
7
+ type: 'string';
8
+ };
9
+ type TextValue = BaseValue & {
10
+ type: 'text';
11
+ max?: number;
12
+ };
13
+ type NumberValue = BaseValue & {
14
+ type: 'number';
15
+ };
16
+ type LinkValue = BaseValue & {
17
+ type: 'link';
18
+ };
19
+ type MediaValue = BaseValue & {
20
+ type: 'media';
21
+ };
22
+ type BooleanValue = BaseValue & {
23
+ type: 'boolean';
24
+ };
25
+ type SelectValue = BaseValue & {
26
+ type: 'select';
27
+ multiple?: boolean;
28
+ options: Array<{
29
+ value: string;
30
+ text: string;
31
+ description?: string;
32
+ }>;
33
+ };
34
+ type CustomModuleValue = StringValue | TextValue | NumberValue | LinkValue | MediaValue | BooleanValue | SelectValue;
1
35
  export interface DesignCustomModule {
2
36
  hint: string;
3
37
  module: string;
@@ -7,4 +41,6 @@ export interface DesignCustomModule {
7
41
  name?: string;
8
42
  description?: string;
9
43
  };
44
+ values?: CustomModuleValue[];
10
45
  }
46
+ export {};
@@ -3,4 +3,5 @@ export interface PlaceholderModule extends Module {
3
3
  type: "placeholder-module" | `${string}-placeholder-module`;
4
4
  hint?: string;
5
5
  additionalData?: string;
6
+ inputData: Record<string, unknown>[];
6
7
  }
@@ -28,4 +28,5 @@ export interface ShareClientInterface {
28
28
  fullPath?: boolean;
29
29
  }): Promise<string[]>;
30
30
  copy(files: string[], sourceFolder: string, destinationFolder: string): Promise<boolean>;
31
+ getDownloadUrl(path: string, lifetimeInSeconds?: number): Promise<string>;
31
32
  }
@@ -1,7 +1,9 @@
1
+ import { type StorageSharedKeyCredential } from '@azure/storage-blob';
1
2
  export interface ShareClientOptions {
2
- connectionString: string;
3
+ connectionString?: string;
3
4
  container?: string;
4
5
  shareName?: string;
5
6
  baseFolder?: string;
6
7
  accountName?: string;
8
+ sharedKeyCredentials?: StorageSharedKeyCredential;
7
9
  }
@@ -1,3 +1,37 @@
1
+ type BaseValue = {
2
+ id: string;
3
+ label: string;
4
+ description?: string;
5
+ };
6
+ type StringValue = BaseValue & {
7
+ type: 'string';
8
+ };
9
+ type TextValue = BaseValue & {
10
+ type: 'text';
11
+ max?: number;
12
+ };
13
+ type NumberValue = BaseValue & {
14
+ type: 'number';
15
+ };
16
+ type LinkValue = BaseValue & {
17
+ type: 'link';
18
+ };
19
+ type MediaValue = BaseValue & {
20
+ type: 'media';
21
+ };
22
+ type BooleanValue = BaseValue & {
23
+ type: 'boolean';
24
+ };
25
+ type SelectValue = BaseValue & {
26
+ type: 'select';
27
+ multiple?: boolean;
28
+ options: Array<{
29
+ value: string;
30
+ text: string;
31
+ description?: string;
32
+ }>;
33
+ };
34
+ type CustomModuleValue = StringValue | TextValue | NumberValue | LinkValue | MediaValue | BooleanValue | SelectValue;
1
35
  export interface DesignCustomModule {
2
36
  hint: string;
3
37
  module: string;
@@ -7,4 +41,6 @@ export interface DesignCustomModule {
7
41
  name?: string;
8
42
  description?: string;
9
43
  };
44
+ values?: CustomModuleValue[];
10
45
  }
46
+ export {};
@@ -3,4 +3,5 @@ export interface PlaceholderModule extends Module {
3
3
  type: "placeholder-module" | `${string}-placeholder-module`;
4
4
  hint?: string;
5
5
  additionalData?: string;
6
+ inputData: Record<string, unknown>[];
6
7
  }
@@ -28,4 +28,5 @@ export interface ShareClientInterface {
28
28
  fullPath?: boolean;
29
29
  }): Promise<string[]>;
30
30
  copy(files: string[], sourceFolder: string, destinationFolder: string): Promise<boolean>;
31
+ getDownloadUrl(path: string, lifetimeInSeconds?: number): Promise<string>;
31
32
  }
@@ -1,7 +1,9 @@
1
+ import { type StorageSharedKeyCredential } from '@azure/storage-blob';
1
2
  export interface ShareClientOptions {
2
- connectionString: string;
3
+ connectionString?: string;
3
4
  container?: string;
4
5
  shareName?: string;
5
6
  baseFolder?: string;
6
7
  accountName?: string;
8
+ sharedKeyCredentials?: StorageSharedKeyCredential;
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.29.0",
3
+ "version": "1.31.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -28,6 +28,7 @@
28
28
  }
29
29
  },
30
30
  "devDependencies": {
31
+ "@azure/storage-blob": "^12.27.0",
31
32
  "@types/node": "^20.11.9",
32
33
  "ajv": "^8.12.0",
33
34
  "cz-conventional-changelog": "^3.3.0",
@@ -1,3 +1,46 @@
1
+ type BaseValue = {
2
+ id: string
3
+ label: string
4
+ description?: string
5
+ }
6
+
7
+ type StringValue = BaseValue & {
8
+ type: 'string'
9
+ }
10
+
11
+ type TextValue = BaseValue & {
12
+ type: 'text'
13
+ max?: number
14
+ }
15
+
16
+ type NumberValue = BaseValue & {
17
+ type: 'number'
18
+ }
19
+
20
+ type LinkValue = BaseValue & {
21
+ type: 'link'
22
+ }
23
+
24
+ type MediaValue = BaseValue & {
25
+ type: 'media'
26
+ }
27
+
28
+ type BooleanValue = BaseValue & {
29
+ type: 'boolean'
30
+ }
31
+
32
+ type SelectValue = BaseValue & {
33
+ type: 'select'
34
+ multiple?: boolean
35
+ options: Array<{
36
+ value: string
37
+ text: string
38
+ description?: string
39
+ }>
40
+ }
41
+
42
+ type CustomModuleValue = StringValue | TextValue | NumberValue | LinkValue | MediaValue | BooleanValue | SelectValue
43
+
1
44
  export interface DesignCustomModule {
2
45
 
3
46
  hint: string
@@ -8,5 +51,5 @@ export interface DesignCustomModule {
8
51
  name?: string
9
52
  description?: string
10
53
  }
11
-
12
- }
54
+ values?: CustomModuleValue[]
55
+ }
@@ -4,4 +4,5 @@ export interface PlaceholderModule extends Module {
4
4
  type: "placeholder-module" | `${string}-placeholder-module`
5
5
  hint?: string
6
6
  additionalData?: string
7
+ inputData: Record<string, unknown>[]
7
8
  }
@@ -33,4 +33,6 @@ export interface ShareClientInterface {
33
33
 
34
34
  copy(files: string[], sourceFolder: string, destinationFolder: string): Promise<boolean>;
35
35
 
36
+ getDownloadUrl(path: string, lifetimeInSeconds?: number): Promise<string>;
37
+
36
38
  }
@@ -1,8 +1,10 @@
1
+ import { type StorageSharedKeyCredential } from '@azure/storage-blob';
1
2
 
2
3
  export interface ShareClientOptions {
3
- connectionString: string
4
+ connectionString?: string
4
5
  container?: string
5
6
  shareName?: string
6
7
  baseFolder?: string
7
8
  accountName?: string
9
+ sharedKeyCredentials?: StorageSharedKeyCredential
8
10
  }