@antelopejs/interface-dms-builder 0.4.0 → 0.4.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.
package/dist/operation-map.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const Operations: {
|
|
|
18
18
|
ConfigureModule: (id: string, entry: import("./project").ModuleEntryInput, opts?: import("./project").ProjectConfigOpts | undefined) => Promise<import("./results").OpResult<import("./project").ProjectConfigResult>>;
|
|
19
19
|
ConfigurePage: (ref: string, patch: Partial<import("./structure").EditablePageMeta>, opts?: import("./results").MutationOpts | undefined) => Promise<import("./results").OpResult<{
|
|
20
20
|
ref: import("./addressing").PageRef;
|
|
21
|
+
version: string;
|
|
21
22
|
}>>;
|
|
22
23
|
ConfigureProject: (steps: import("./project").ProjectConfigStep[], opts?: import("./project").ProjectConfigOpts | undefined) => Promise<import("./results").OpResult<import("./project").ProjectConfigResult>>;
|
|
23
24
|
ConfigureQuery: (query: string, patch: Partial<import("./queries").AddQueryInput>, opts?: import("./results").MutationOpts | undefined) => Promise<import("./results").OpResult>;
|
package/dist/operations.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare const CreatePage: (input: CreatePageInput) => Promise<OpResult<{
|
|
|
58
58
|
}>>;
|
|
59
59
|
export declare const ConfigurePage: (ref: string, patch: Partial<EditablePageMeta>, opts?: MutationOpts | undefined) => Promise<OpResult<{
|
|
60
60
|
ref: PageRef;
|
|
61
|
+
version: string;
|
|
61
62
|
}>>;
|
|
62
63
|
export declare const DeletePage: (ref: string, opts?: MutationOpts | undefined) => Promise<OpResult>;
|
|
63
64
|
export declare const CreateCategory: (input: CreateCategoryInput) => Promise<OpResult<{
|
package/dist/operations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAqGlD,QAAA,SAAS,GAAG,IAAA,kCAAiB,GAAgC,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iB,GAEd,CAAC"}
|
|
@@ -114,7 +114,7 @@ await CreatePage({
|
|
|
114
114
|
|
|
115
115
|
## Configure a page
|
|
116
116
|
|
|
117
|
-
`ConfigurePage(ref, patch, opts?)` patches the metadata of the page in place and returns its ref. The patch is a `Partial<EditablePageMeta>`. Keys left out stay untouched, and a key set to `undefined` or `null` is removed from the options of the page. A page whose options are not a plain object literal fails with `unsupported`, because the builder needs a literal to rewrite.
|
|
117
|
+
`ConfigurePage(ref, patch, opts?)` patches the metadata of the page in place and returns its ref and the `version` of the page file it wrote. A draft held across the patch saves against that version. The patch is a `Partial<EditablePageMeta>`. Keys left out stay untouched, and a key set to `undefined` or `null` is removed from the options of the page. A page whose options are not a plain object literal fails with `unsupported`, because the builder needs a literal to rewrite.
|
|
118
118
|
|
|
119
119
|
```typescript
|
|
120
120
|
import { ConfigurePage } from "@antelopejs/interface-dms-builder";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/interface-dms-builder",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "AntelopeJS interface for the DMS builder: create and edit pages, blocks, resources and queries in a DMS project from another module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|