@lilaquadrat/interfaces 1.32.0 → 1.33.1

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,26 @@
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.33.1](https://github.com/lilaquadrat/interfaces/compare/v1.33.0...v1.33.1) (2025-12-31)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **storage:** make 'app' property required in Storage interface and add StorageCopyAction interface ([d843000](https://github.com/lilaquadrat/interfaces/commit/d84300036ee85f97843155a5e9eb9bdbfe6e29d8))
11
+
12
+ ## [1.33.0](https://github.com/lilaquadrat/interfaces/compare/v1.32.0...v1.33.0) (2025-12-23)
13
+
14
+
15
+ ### Features
16
+
17
+ * **databasequeryoptions:** added search ([99d6a62](https://github.com/lilaquadrat/interfaces/commit/99d6a62b0be4b291d7cd69f85665bd2fb273907a))
18
+ * **mongodb:** installed version 7 ([92d072e](https://github.com/lilaquadrat/interfaces/commit/92d072e83cfec43970029e19b52f3ad51c312db8))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **storage:** company and filename are required ([c2da646](https://github.com/lilaquadrat/interfaces/commit/c2da6460ef5a2e82b034056647b7cd3b78b6ec42))
24
+
5
25
  ## [1.32.0](https://github.com/lilaquadrat/interfaces/compare/v1.31.0...v1.32.0) (2025-12-12)
6
26
 
7
27
 
@@ -28,4 +28,5 @@ export interface DatabaseQueryOptions {
28
28
  */
29
29
  keepSearch?: boolean;
30
30
  keepSort?: boolean;
31
+ search?: string[];
31
32
  }
@@ -1,7 +1,7 @@
1
1
  import { ObjectId } from "mongodb";
2
2
  import { MediaMetadata } from "./MediaMetadata";
3
3
  export interface Storage {
4
- company?: string;
4
+ company: string;
5
5
  project?: string;
6
6
  /**
7
7
  * this document can be bound to a specific customer
@@ -11,7 +11,7 @@ export interface Storage {
11
11
  * this document can be bound to a specific list and customer
12
12
  */
13
13
  list?: ObjectId;
14
- filename?: string;
14
+ filename: string;
15
15
  prefix?: string;
16
16
  path?: string;
17
17
  metadata?: MediaMetadata;
@@ -19,7 +19,7 @@ export interface Storage {
19
19
  /**
20
20
  * app functions here as a bucket
21
21
  */
22
- app?: string;
22
+ app: string;
23
23
  /**
24
24
  * for better classification
25
25
  * e.g. profilepicture
@@ -0,0 +1,10 @@
1
+ export interface StorageCopyAction {
2
+ sourceCompany: string;
3
+ sourceProject: string;
4
+ targetCompany: string;
5
+ targetProject: string;
6
+ prefix?: string;
7
+ user: string;
8
+ app: string;
9
+ overwrite?: true;
10
+ }
@@ -194,6 +194,7 @@ export * from './ShopifyProjectSettings';
194
194
  export * from './ShoppingCartModule';
195
195
  export * from './SkipLimitSort';
196
196
  export * from './Storage';
197
+ export * from './StorageCopyAction';
197
198
  export * from './StorageFilePaths';
198
199
  export * from './StorageWithVersions';
199
200
  export * from './Stored';
@@ -28,4 +28,5 @@ export interface DatabaseQueryOptions {
28
28
  */
29
29
  keepSearch?: boolean;
30
30
  keepSort?: boolean;
31
+ search?: string[];
31
32
  }
@@ -1,7 +1,7 @@
1
1
  import { ObjectId } from "mongodb";
2
2
  import { MediaMetadata } from "./MediaMetadata";
3
3
  export interface Storage {
4
- company?: string;
4
+ company: string;
5
5
  project?: string;
6
6
  /**
7
7
  * this document can be bound to a specific customer
@@ -11,7 +11,7 @@ export interface Storage {
11
11
  * this document can be bound to a specific list and customer
12
12
  */
13
13
  list?: ObjectId;
14
- filename?: string;
14
+ filename: string;
15
15
  prefix?: string;
16
16
  path?: string;
17
17
  metadata?: MediaMetadata;
@@ -19,7 +19,7 @@ export interface Storage {
19
19
  /**
20
20
  * app functions here as a bucket
21
21
  */
22
- app?: string;
22
+ app: string;
23
23
  /**
24
24
  * for better classification
25
25
  * e.g. profilepicture
@@ -0,0 +1,10 @@
1
+ export interface StorageCopyAction {
2
+ sourceCompany: string;
3
+ sourceProject: string;
4
+ targetCompany: string;
5
+ targetProject: string;
6
+ prefix?: string;
7
+ user: string;
8
+ app: string;
9
+ overwrite?: true;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StorageCopyAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageCopyAction.js","sourceRoot":"","sources":["../../src/StorageCopyAction.ts"],"names":[],"mappings":""}
@@ -194,6 +194,7 @@ export * from './ShopifyProjectSettings';
194
194
  export * from './ShoppingCartModule';
195
195
  export * from './SkipLimitSort';
196
196
  export * from './Storage';
197
+ export * from './StorageCopyAction';
197
198
  export * from './StorageFilePaths';
198
199
  export * from './StorageWithVersions';
199
200
  export * from './Stored';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.32.0",
3
+ "version": "1.33.1",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -32,7 +32,7 @@
32
32
  "@types/node": "^20.11.9",
33
33
  "ajv": "^8.12.0",
34
34
  "cz-conventional-changelog": "^3.3.0",
35
- "mongodb": "^6.12.0",
35
+ "mongodb": "^7.0.0",
36
36
  "standard-version": "^9.5.0"
37
37
  },
38
38
  "config": {
@@ -28,4 +28,5 @@ export interface DatabaseQueryOptions {
28
28
  */
29
29
  keepSearch?: boolean;
30
30
  keepSort?: boolean;
31
+ search?: string[];
31
32
  }
package/src/Storage.ts CHANGED
@@ -2,7 +2,7 @@ import { ObjectId } from "mongodb";
2
2
  import { MediaMetadata } from "./MediaMetadata";
3
3
 
4
4
  export interface Storage {
5
- company?: string
5
+ company: string
6
6
  project?: string
7
7
 
8
8
  /**
@@ -14,7 +14,7 @@ export interface Storage {
14
14
  */
15
15
  list?: ObjectId
16
16
 
17
- filename?: string
17
+ filename: string
18
18
  prefix?: string
19
19
 
20
20
  path?: string
@@ -26,7 +26,7 @@ export interface Storage {
26
26
  /**
27
27
  * app functions here as a bucket
28
28
  */
29
- app?: string
29
+ app: string
30
30
 
31
31
  /**
32
32
  * for better classification
@@ -0,0 +1,12 @@
1
+ export interface StorageCopyAction {
2
+
3
+ sourceCompany: string
4
+ sourceProject: string
5
+ targetCompany: string
6
+ targetProject: string
7
+ prefix?: string
8
+ user: string
9
+ app: string
10
+ overwrite?: true
11
+
12
+ }