@imbricate/core 1.8.2 → 1.8.4

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.
@@ -6,12 +6,10 @@
6
6
  import { PromiseOr } from "../definition/promise";
7
7
  import { ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
8
8
  import { IImbricatePage } from "../page/interface";
9
+ import { ImbricatePageQuery } from "../query/page";
9
10
  export type ImbricateSearchPageConfig = {
10
11
  readonly exact?: boolean;
11
12
  };
12
- export type ImbricatePageQuery = {
13
- readonly limit?: number;
14
- };
15
13
  export interface IImbricateOriginCollection {
16
14
  readonly collectionName: string;
17
15
  readonly description?: string;
package/index.d.ts CHANGED
@@ -10,6 +10,9 @@ export * from "./origin/definition";
10
10
  export * from "./origin/interface";
11
11
  export * from "./page/definition";
12
12
  export * from "./page/interface";
13
+ export * from "./query/definition";
14
+ export * from "./query/page";
15
+ export * from "./query/script";
13
16
  export * from "./sandbox/definition/config";
14
17
  export * from "./sandbox/definition/environment";
15
18
  export * from "./sandbox/definition/implementation";
package/index.js CHANGED
@@ -26,6 +26,9 @@ __exportStar(require("./origin/definition"), exports);
26
26
  __exportStar(require("./origin/interface"), exports);
27
27
  __exportStar(require("./page/definition"), exports);
28
28
  __exportStar(require("./page/interface"), exports);
29
+ __exportStar(require("./query/definition"), exports);
30
+ __exportStar(require("./query/page"), exports);
31
+ __exportStar(require("./query/script"), exports);
29
32
  __exportStar(require("./sandbox/definition/config"), exports);
30
33
  __exportStar(require("./sandbox/definition/environment"), exports);
31
34
  __exportStar(require("./sandbox/definition/implementation"), exports);
@@ -5,15 +5,13 @@
5
5
  */
6
6
  import { IImbricateOriginCollection } from "../collection/interface";
7
7
  import { PromiseOr } from "../definition/promise";
8
+ import { ImbricateScriptQuery } from "../query/script";
8
9
  import { ImbricateScriptMetadata, ImbricateScriptSearchResult, ImbricateScriptSnapshot } from "../script/definition";
9
10
  import { IImbricateScript } from "../script/interface";
10
11
  import { ImbricateOriginMetadata } from "./definition";
11
12
  export type ImbricateSearchScriptConfig = {
12
13
  readonly exact?: boolean;
13
14
  };
14
- export type ImbricateScriptQuery = {
15
- readonly limit?: number;
16
- };
17
15
  export interface IImbricateOrigin {
18
16
  readonly metadata: ImbricateOriginMetadata;
19
17
  readonly payloads: Record<string, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imbricate/core",
3
3
  "main": "index.js",
4
- "version": "1.8.2",
4
+ "version": "1.8.4",
5
5
  "description": "Core for Imbricate",
6
6
  "repository": {
7
7
  "type": "git",
@@ -8,6 +8,7 @@ import { ImbricatePageAttributes } from "./definition";
8
8
  export interface IImbricatePage {
9
9
  readonly title: string;
10
10
  readonly identifier: string;
11
+ readonly description?: string;
11
12
  readonly createdAt: Date;
12
13
  readonly updatedAt: Date;
13
14
  readContent(): PromiseOr<string>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @namespace Query
4
+ * @description Definition
5
+ */
6
+ export type ImbricateQueryTime = {
7
+ readonly before?: Date;
8
+ readonly after?: Date;
9
+ };
10
+ export type ImbricateQueryString = {
11
+ readonly equal?: string;
12
+ readonly include?: string;
13
+ readonly exclude?: string;
14
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * @author WMXPY
4
+ * @namespace Query
5
+ * @description Definition
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @namespace Query
4
+ * @description Page
5
+ */
6
+ import { ImbricateQueryString, ImbricateQueryTime } from "./definition";
7
+ export type ImbricatePageQuery = {
8
+ readonly limit?: number;
9
+ readonly skip?: number;
10
+ readonly title?: ImbricateQueryString;
11
+ readonly attributes?: Record<string, ImbricateQueryString>;
12
+ readonly createdAt?: ImbricateQueryTime;
13
+ readonly updatedAt?: ImbricateQueryTime;
14
+ };
package/query/page.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * @author WMXPY
4
+ * @namespace Query
5
+ * @description Page
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @namespace Query
4
+ * @description Script
5
+ */
6
+ import { ImbricateQueryString, ImbricateQueryTime } from "./definition";
7
+ export type ImbricateScriptQuery = {
8
+ readonly limit?: number;
9
+ readonly skip?: number;
10
+ readonly scriptName?: ImbricateQueryString;
11
+ readonly attributes?: Record<string, ImbricateQueryString>;
12
+ readonly createdAt?: ImbricateQueryTime;
13
+ readonly updatedAt?: ImbricateQueryTime;
14
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * @author WMXPY
4
+ * @namespace Query
5
+ * @description Script
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,7 @@ import { ImbricateScriptAttributes } from "./definition";
11
11
  export interface IImbricateScript {
12
12
  readonly scriptName: string;
13
13
  readonly identifier: string;
14
+ readonly description?: string;
14
15
  readonly createdAt: Date;
15
16
  readonly updatedAt: Date;
16
17
  readScript(): PromiseOr<string>;