@interactive-inc/docs-client 0.0.17 → 0.0.18
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/build/index.d.ts +1 -0
- package/build/index.js +12 -4
- package/debug/debug.ts +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1513,6 +1513,7 @@ declare class DocDirectoryReference<T extends DocCustomSchema> {
|
|
|
1513
1513
|
* Get single subdirectory reference
|
|
1514
1514
|
*/
|
|
1515
1515
|
directory(directoryName: string): DocDirectoryReference<T>;
|
|
1516
|
+
directory<S extends DocCustomSchema>(directoryName: string, customSchema: S): DocDirectoryReference<S>;
|
|
1516
1517
|
indexFile(): DocFileIndexReference<T>;
|
|
1517
1518
|
readIndexFile(): Promise<DocFileIndexEntity<T> | Error>;
|
|
1518
1519
|
writeFile(entity: DocFileIndexEntity<T> | DocFileMdEntity<T> | DocFileUnknownEntity): Promise<Error | null>;
|
package/build/index.js
CHANGED
|
@@ -4253,11 +4253,19 @@ var DocDirectoryReference = class _DocDirectoryReference {
|
|
|
4253
4253
|
});
|
|
4254
4254
|
});
|
|
4255
4255
|
}
|
|
4256
|
-
|
|
4257
|
-
* Get single subdirectory reference
|
|
4258
|
-
*/
|
|
4259
|
-
directory(directoryName) {
|
|
4256
|
+
directory(directoryName, customSchema) {
|
|
4260
4257
|
const dirPath = this.pathSystem.join(this.relativePath, directoryName);
|
|
4258
|
+
if (customSchema) {
|
|
4259
|
+
return new _DocDirectoryReference({
|
|
4260
|
+
path: dirPath,
|
|
4261
|
+
indexFileName: this.indexFileName,
|
|
4262
|
+
archiveDirectoryName: this.archiveDirectoryName,
|
|
4263
|
+
fileSystem: this.fileSystem,
|
|
4264
|
+
pathSystem: this.pathSystem,
|
|
4265
|
+
customSchema,
|
|
4266
|
+
config: this.props.config
|
|
4267
|
+
});
|
|
4268
|
+
}
|
|
4261
4269
|
return new _DocDirectoryReference({
|
|
4262
4270
|
path: dirPath,
|
|
4263
4271
|
indexFileName: this.indexFileName,
|
package/debug/debug.ts
CHANGED
|
@@ -12,7 +12,7 @@ const pageSchema = defineSchema({
|
|
|
12
12
|
features: docCustomSchemaField.multiRelation(true),
|
|
13
13
|
})
|
|
14
14
|
|
|
15
|
-
const pagesRef = client.directory("docs-studio
|
|
15
|
+
const pagesRef = client.directory("docs-studio").directory("pages", pageSchema)
|
|
16
16
|
|
|
17
17
|
const mdFileRef = pagesRef.file("document-editor.md")
|
|
18
18
|
|