@imbricate/core 1.19.1 → 1.20.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.
@@ -3,6 +3,19 @@
3
3
  * @namespace BinaryStorage
4
4
  * @description Interface
5
5
  */
6
+ import { PromiseOr } from "../definition/promise";
6
7
  export interface IImbricateBinaryStorage {
7
- uploadBase64(binary: string): Promise<string>;
8
+ /**
9
+ * Store a binary file
10
+ *
11
+ * @param binary Base64 encoded binary
12
+ * @param fileName File name
13
+ */
14
+ putBinaryBase64(binary: string, fileName: string): PromiseOr<string>;
15
+ /**
16
+ * Validate if the binary is a valid base64 to be stored
17
+ *
18
+ * @param binary Base64 encoded binary
19
+ */
20
+ validateBinaryBase64(binary: string): PromiseOr<boolean>;
8
21
  }
@@ -19,6 +19,12 @@ export interface IImbricateOrigin {
19
19
  readonly capabilities: ImbricateOriginCapability;
20
20
  getFunctionManger(): IImbricateFunctionManager;
21
21
  getBinaryStorage(): IImbricateBinaryStorage;
22
+ /**
23
+ * Create a collection
24
+ *
25
+ * @param collectionName Collection name
26
+ * @param description Collection description
27
+ */
22
28
  createCollection(collectionName: string, description?: string): PromiseOr<void>;
23
29
  renameCollection(collectionUniqueIdentifier: string, newCollectionName: string): PromiseOr<void>;
24
30
  deleteCollection(collectionUniqueIdentifier: string): PromiseOr<void>;
@@ -35,4 +41,9 @@ export interface IImbricateOrigin {
35
41
  listScripts(): PromiseOr<ImbricateScriptSnapshot[]>;
36
42
  searchScripts(keyword: string, config: ImbricateSearchScriptConfig): PromiseOr<ImbricateScriptSearchResult[]>;
37
43
  queryScripts(query: ImbricateScriptQuery, config: ImbricateScriptQueryConfig): PromiseOr<IImbricateScript[]>;
44
+ /**
45
+ * Dispose the origin, optional
46
+ * This method will be called when the origin is no longer needed
47
+ */
48
+ dispose?(): PromiseOr<void>;
38
49
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imbricate/core",
3
3
  "main": "index.js",
4
- "version": "1.19.1",
4
+ "version": "1.20.0",
5
5
  "description": "Imbricate Core, Notebook for Engineers",
6
6
  "repository": {
7
7
  "type": "git",