@imbricate/core 1.9.0 → 1.10.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,4 +3,4 @@
3
3
  * @namespace Definition
4
4
  * @description Promise
5
5
  */
6
- export type PromiseOr<T> = T | Promise<T>;
6
+ export type PromiseOr<T> = T | PromiseLike<T>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imbricate/core",
3
3
  "main": "index.js",
4
- "version": "1.9.0",
4
+ "version": "1.10.0",
5
5
  "description": "Core for Imbricate",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,8 +11,14 @@ export type ImbricatePageSnapshot = {
11
11
  readonly title: string;
12
12
  readonly identifier: string;
13
13
  };
14
+ export type ImbricatePageHistoryRecord = {
15
+ readonly updatedAt: Date;
16
+ readonly digest: string;
17
+ };
14
18
  export type ImbricatePageMetadata = {
15
19
  readonly createdAt: Date;
16
20
  readonly updatedAt: Date;
21
+ readonly digest: string;
22
+ readonly historyRecords: ImbricatePageHistoryRecord[];
17
23
  readonly description?: string;
18
24
  } & ImbricatePageSnapshot;
@@ -4,10 +4,12 @@
4
4
  * @description Interface
5
5
  */
6
6
  import { PromiseOr } from "../definition/promise";
7
- import { ImbricatePageAttributes } from "./definition";
7
+ import { ImbricatePageAttributes, ImbricatePageHistoryRecord } from "./definition";
8
8
  export interface IImbricatePage {
9
9
  readonly title: string;
10
10
  readonly identifier: string;
11
+ readonly digest: string;
12
+ readonly historyRecords: ImbricatePageHistoryRecord[];
11
13
  readonly description?: string;
12
14
  readonly createdAt: Date;
13
15
  readonly updatedAt: Date;
@@ -11,8 +11,14 @@ export type ImbricateScriptSnapshot = {
11
11
  readonly scriptName: string;
12
12
  readonly identifier: string;
13
13
  };
14
+ export type ImbricateScriptHistoryRecord = {
15
+ readonly updatedAt: Date;
16
+ readonly digest: string;
17
+ };
14
18
  export type ImbricateScriptMetadata = {
15
19
  readonly createdAt: Date;
16
20
  readonly updatedAt: Date;
21
+ readonly digest: string;
22
+ readonly historyRecords: ImbricateScriptHistoryRecord[];
17
23
  readonly description?: string;
18
24
  } & ImbricateScriptSnapshot;
@@ -7,10 +7,12 @@ import { MarkedResult } from "@sudoo/marked";
7
7
  import { PromiseOr } from "../definition/promise";
8
8
  import { SandboxExecuteConfig, SandboxExecuteParameter } from "../sandbox/definition/config";
9
9
  import { SandboxFeature } from "../sandbox/feature/feature";
10
- import { ImbricateScriptAttributes } from "./definition";
10
+ import { ImbricateScriptAttributes, ImbricateScriptHistoryRecord } from "./definition";
11
11
  export interface IImbricateScript {
12
12
  readonly scriptName: string;
13
13
  readonly identifier: string;
14
+ readonly digest: string;
15
+ readonly historyRecords: ImbricateScriptHistoryRecord[];
14
16
  readonly description?: string;
15
17
  readonly createdAt: Date;
16
18
  readonly updatedAt: Date;