@imbricate/core 1.12.0 → 1.14.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.
@@ -10,13 +10,13 @@ import { ImbricatePageQuery, ImbricatePageQueryConfig, ImbricateSearchPageConfig
10
10
  export interface IImbricateOriginCollection {
11
11
  readonly collectionName: string;
12
12
  readonly description?: string;
13
- createPage(title: string, initialContent?: string): PromiseOr<IImbricatePage>;
13
+ createPage(paths: string[], title: string, initialContent?: string): PromiseOr<IImbricatePage>;
14
14
  putPage(pageMetadata: ImbricatePageMetadata, content: string): PromiseOr<IImbricatePage>;
15
15
  retitlePage(identifier: string, newTitle: string): PromiseOr<void>;
16
16
  deletePage(identifier: string): PromiseOr<void>;
17
- hasPage(title: string): PromiseOr<boolean>;
17
+ hasPage(paths: string[], title: string): PromiseOr<boolean>;
18
18
  getPage(identifier: string): PromiseOr<IImbricatePage | null>;
19
- listPages(): PromiseOr<ImbricatePageSnapshot[]>;
19
+ listPages(paths: string[], limit: number): PromiseOr<ImbricatePageSnapshot[]>;
20
20
  searchPages(keyword: string, config: ImbricateSearchPageConfig): PromiseOr<ImbricatePageSearchResult[]>;
21
21
  queryPages(query: ImbricatePageQuery, config: ImbricatePageQueryConfig): PromiseOr<IImbricatePage[]>;
22
22
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imbricate/core",
3
3
  "main": "index.js",
4
- "version": "1.12.0",
4
+ "version": "1.14.0",
5
5
  "description": "Core for Imbricate",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,6 +9,7 @@ export type ImbricatePageSearchResult = ImbricateSearchResult<IMBRICATE_SEARCH_R
9
9
  export type ImbricatePageSearchSnippet = ImbricateSearchSnippet<IMBRICATE_SEARCH_RESULT_TYPE.PAGE>;
10
10
  export type ImbricatePageSnapshot = {
11
11
  readonly title: string;
12
+ readonly paths: string[];
12
13
  readonly identifier: string;
13
14
  };
14
15
  export type ImbricatePageHistoryRecord = {
@@ -17,6 +17,7 @@ export interface IImbricatePage {
17
17
  writeContent(content: string): PromiseOr<void>;
18
18
  readAttributes(): PromiseOr<ImbricatePageAttributes>;
19
19
  writeAttribute(key: string, value: string): PromiseOr<void>;
20
+ refreshUpdateMetadata(updatedAt: Date, digest: string): PromiseOr<void>;
20
21
  refreshUpdatedAt(updatedAt: Date): PromiseOr<void>;
21
22
  refreshDigest(digest: string): PromiseOr<void>;
22
23
  addHistoryRecord(record: ImbricatePageHistoryRecord): PromiseOr<void>;
@@ -20,6 +20,7 @@ export interface IImbricateScript {
20
20
  writeScript(script: string): PromiseOr<void>;
21
21
  readAttributes(): PromiseOr<ImbricateScriptAttributes>;
22
22
  writeAttribute(key: string, value: string): PromiseOr<void>;
23
+ refreshUpdateMetadata(updatedAt: Date, digest: string): PromiseOr<void>;
23
24
  refreshUpdatedAt(updatedAt: Date): PromiseOr<void>;
24
25
  refreshDigest(digest: string): PromiseOr<void>;
25
26
  addHistoryRecord(record: ImbricateScriptHistoryRecord): PromiseOr<void>;