@milaboratories/pl-model-common 1.18.0 → 1.19.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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * plblob+folder://signature@sufolder_with_unzipped_blob/
3
+ */
4
+ export type FolderURL = `plblob+folder://${string}`;
5
+
6
+ export type ArchiveFormat = 'zip' | 'tar' | 'tgz';
7
+
8
+ export interface BlobToURLDriver {
9
+ getPathForCustomProtocol(url: FolderURL): string;
10
+ }
11
+
12
+ export function isFolderURL(url: string): url is FolderURL {
13
+ const parsed = new URL(url);
14
+ return parsed.protocol == 'plblob+folder:';
15
+ }
16
+
17
+ /**
18
+ * URLs and a custom protocol for the block UI.
19
+ * block-ui://signature@folder_with_ui/
20
+ */
21
+ export type BlockUIURL = `block-ui://${string}`;
22
+
23
+ export interface FrontendDriver {
24
+ getPathForBlockUI(url: BlockUIURL): string;
25
+ }
26
+
27
+ export function isBlockUIURL(url: string): url is BlockUIURL {
28
+ const parsed = new URL(url);
29
+ return parsed.protocol == 'block-ui:';
30
+ }
@@ -1,9 +0,0 @@
1
- /**
2
- * plblob+folder://signature@sufolder_with_unzipped_blob/
3
- */
4
- export type FolderURL = `plblob+folder://${string}`;
5
- export type ArchiveFormat = 'zip' | 'tar' | 'tgz';
6
- export interface BlobToURLDriver {
7
- getPathForCustomProtocol(url: FolderURL): string;
8
- }
9
- //# sourceMappingURL=blob_to_url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blob_to_url.d.ts","sourceRoot":"","sources":["../../src/drivers/blob_to_url.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,mBAAmB,MAAM,EAAE,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,wBAAwB,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM,CAAC;CAClD"}
@@ -1,10 +0,0 @@
1
- /**
2
- * plblob+folder://signature@sufolder_with_unzipped_blob/
3
- */
4
- export type FolderURL = `plblob+folder://${string}`;
5
-
6
- export type ArchiveFormat = 'zip' | 'tar' | 'tgz';
7
-
8
- export interface BlobToURLDriver {
9
- getPathForCustomProtocol(url: FolderURL): string;
10
- }