@lilaquadrat/interfaces 1.33.0 → 1.33.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,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.33.2](https://github.com/lilaquadrat/interfaces/compare/v1.33.1...v1.33.2) (2025-12-31)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **upload:** make 'filename', 'app', and 'mimetype' properties required in Upload interface ([c361c03](https://github.com/lilaquadrat/interfaces/commit/c361c03ec6bf3060db73daaf3549c58181912d26))
11
+
12
+ ### [1.33.1](https://github.com/lilaquadrat/interfaces/compare/v1.33.0...v1.33.1) (2025-12-31)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **storage:** make 'app' property required in Storage interface and add StorageCopyAction interface ([d843000](https://github.com/lilaquadrat/interfaces/commit/d84300036ee85f97843155a5e9eb9bdbfe6e29d8))
18
+
5
19
  ## [1.33.0](https://github.com/lilaquadrat/interfaces/compare/v1.32.0...v1.33.0) (2025-12-23)
6
20
 
7
21
 
@@ -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
+ }
@@ -2,15 +2,15 @@ import { ObjectId } from 'mongodb';
2
2
  import { ObjectIdString } from './ObjectIdString';
3
3
  export interface Upload {
4
4
  _id?: ObjectId;
5
- filename?: string;
5
+ filename: string;
6
6
  prefix?: string;
7
7
  company?: string;
8
8
  project?: string;
9
9
  customer?: ObjectIdString | ObjectId;
10
10
  list?: ObjectIdString | ObjectId;
11
11
  user?: string;
12
- app?: string;
13
- mimetype?: string;
12
+ app: string;
13
+ mimetype: string;
14
14
  size?: number;
15
15
  chunks: number;
16
16
  paths?: {
@@ -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';
@@ -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":""}
@@ -2,15 +2,15 @@ import { ObjectId } from 'mongodb';
2
2
  import { ObjectIdString } from './ObjectIdString';
3
3
  export interface Upload {
4
4
  _id?: ObjectId;
5
- filename?: string;
5
+ filename: string;
6
6
  prefix?: string;
7
7
  company?: string;
8
8
  project?: string;
9
9
  customer?: ObjectIdString | ObjectId;
10
10
  list?: ObjectIdString | ObjectId;
11
11
  user?: string;
12
- app?: string;
13
- mimetype?: string;
12
+ app: string;
13
+ mimetype: string;
14
14
  size?: number;
15
15
  chunks: number;
16
16
  paths?: {
@@ -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.33.0",
3
+ "version": "1.33.2",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
package/src/Storage.ts CHANGED
@@ -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
+ }
package/src/Upload.ts CHANGED
@@ -3,15 +3,15 @@ import { ObjectIdString } from './ObjectIdString';
3
3
 
4
4
  export interface Upload {
5
5
  _id?: ObjectId;
6
- filename?: string;
6
+ filename: string;
7
7
  prefix?: string;
8
8
  company?: string;
9
9
  project?: string;
10
10
  customer?: ObjectIdString | ObjectId;
11
11
  list?: ObjectIdString | ObjectId;
12
12
  user?: string;
13
- app?: string;
14
- mimetype?: string;
13
+ app: string;
14
+ mimetype: string;
15
15
  size?: number;
16
16
  chunks: number;
17
17
  paths?: { path: string, index: number }[];