@managemint-solutions/entities 1.32.0 → 1.34.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.
@@ -16,3 +16,6 @@ export type UpdateStatusDto = {
16
16
  colour: string;
17
17
  is_complete?: boolean;
18
18
  };
19
+ export type ReorderStatusesDto = {
20
+ status_ids: string[];
21
+ };
@@ -7,4 +7,5 @@ export type StatusEntity = {
7
7
  is_fail: boolean;
8
8
  is_triage: boolean;
9
9
  is_won: boolean;
10
+ position: number;
10
11
  };
@@ -6,6 +6,10 @@ export type GetSupportingFilesDto = {
6
6
  entity: SupportingFilesEntityTypes;
7
7
  entityId: string;
8
8
  };
9
- export type UploadSupportingFilesDto = {
10
- files: File[];
9
+ /**
10
+ * The client file names of one upload: what the signed upload URLs are minted for, and, once
11
+ * the browser has put the bytes in the bucket, what is recorded.
12
+ */
13
+ export type SupportingFileNamesDto = {
14
+ names: string[];
11
15
  };
@@ -8,3 +8,12 @@ export type SupportingFilePresignedUrl = {
8
8
  url: string;
9
9
  ttl: number;
10
10
  };
11
+ /**
12
+ * Where the browser puts one file's bytes: a signed upload URL into the private bucket, valid
13
+ * for two hours. One per requested name, in request order.
14
+ */
15
+ export type SupportingFileUploadTarget = {
16
+ name: string;
17
+ extension: SupportingFilesExtensions;
18
+ url: string;
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.32.0",
3
+ "version": "1.34.0",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {