@interactive-inc/docs-client 1.0.14 → 1.0.15
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 +16 -15
- package/build/index.js +43 -12
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { zDocFileMd, zDocFileUnknown, zDocClientConfig, zDocFilePath, zDocFileIndexSchemaField, zDocSchemaFieldText, zDocSchemaFieldNumber, zDocSchemaFieldBoolean, zDocSchemaFieldRelation, zDocSchemaFieldSelectText, zDocSchemaFieldSelectNumber, zDocSchemaFieldMultiText, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiSelectNumber, zDocRelation, zDocRelationFile, zDocMetaFieldRelation, zDocMetaFieldMultiRelation, zDocMetaFieldText, zDocMetaFieldNumber, zDocMetaFieldBoolean, zDocMetaFieldMultiText, zDocMetaFieldMultiNumber, zDocRelationField, zDocMetaField, zDocMetaFieldSelectText, zDocMetaFieldSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiSelectNumber, zDocMetaFieldTypeText, zDocMetaFieldTypeNumber, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeRelation, zDocMetaFieldType
|
|
2
|
+
import { zDocFileMd, zDocFileUnknown, zDocClientConfig, zDocFilePath, zDocFileIndexSchemaField, zDocSchemaFieldText, zDocSchemaFieldNumber, zDocSchemaFieldBoolean, zDocSchemaFieldRelation, zDocSchemaFieldSelectText, zDocSchemaFieldSelectNumber, zDocSchemaFieldMultiText, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiSelectNumber, zDocFileIndex, zDocRelation, zDocRelationFile, zDocMetaFieldRelation, zDocMetaFieldMultiRelation, zDocMetaFieldText, zDocMetaFieldNumber, zDocMetaFieldBoolean, zDocMetaFieldMultiText, zDocMetaFieldMultiNumber, zDocRelationField, zDocMetaField, zDocMetaFieldSelectText, zDocMetaFieldSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiSelectNumber, zDocMetaFieldTypeText, zDocMetaFieldTypeNumber, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeRelation, zDocMetaFieldType } from './models.js';
|
|
3
3
|
export { zDocCustomSchema, zDocCustomSchemaField, zDocCustomSchemaFieldBoolean, zDocCustomSchemaFieldMultiNumber, zDocCustomSchemaFieldMultiRelation, zDocCustomSchemaFieldMultiSelectNumber, zDocCustomSchemaFieldMultiSelectText, zDocCustomSchemaFieldMultiText, zDocCustomSchemaFieldNumber, zDocCustomSchemaFieldRelation, zDocCustomSchemaFieldSelectNumber, zDocCustomSchemaFieldSelectText, zDocCustomSchemaFieldText, zDocFile, zDocFileDirectory, zDocFileIndexContent, zDocFileIndexMeta, zDocFileIndexMetaInput, zDocFileIndexSchema, zDocFileIndexSchemaInput, zDocFileMdContent, zDocFileMdContentInput, zDocFileMdInput, zDocFileMdMeta, zDocFileMdMetaInput, zDocMetaFieldTypeMultiNumber, zDocMetaFieldTypeMultiRelation, zDocMetaFieldTypeMultiSelectNumber, zDocMetaFieldTypeMultiSelectText, zDocMetaFieldTypeMultiText, zDocTreeDirectoryNode, zDocTreeFileNode, zDocTreeNode } from './models.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -391,27 +391,27 @@ declare class DocFileUnknownEntity {
|
|
|
391
391
|
toJson(): z.infer<typeof zDocFileUnknown>;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
type Props$7 = {
|
|
394
|
+
type Props$7<T extends DocCustomSchema> = {
|
|
395
395
|
path: string;
|
|
396
396
|
fileSystem: DocFileSystem;
|
|
397
397
|
pathSystem: DocPathSystem;
|
|
398
|
+
customSchema: T;
|
|
398
399
|
config: DocClientConfig;
|
|
399
400
|
};
|
|
400
401
|
/**
|
|
401
402
|
* File reference
|
|
402
403
|
*/
|
|
403
|
-
declare class DocFileUnknownReference {
|
|
404
|
+
declare class DocFileUnknownReference<T extends DocCustomSchema> {
|
|
404
405
|
private readonly props;
|
|
405
406
|
private readonly pathSystem;
|
|
406
|
-
|
|
407
|
+
private readonly customSchema;
|
|
408
|
+
constructor(props: Props$7<T>);
|
|
407
409
|
get fileSystem(): DocFileSystem;
|
|
408
410
|
get basePath(): string;
|
|
409
411
|
get path(): string;
|
|
410
412
|
get directoryPath(): string;
|
|
411
413
|
get fileFullPath(): string;
|
|
412
|
-
|
|
413
|
-
directory<T extends DocCustomSchema>(customSchema: T): DocDirectoryReference<T>;
|
|
414
|
-
directory(): DocDirectoryReference<DocCustomSchema>;
|
|
414
|
+
directory(): DocDirectoryReference<T>;
|
|
415
415
|
read(): Promise<Error | DocFileUnknownEntity>;
|
|
416
416
|
/**
|
|
417
417
|
* Read file content
|
|
@@ -464,11 +464,11 @@ declare class DocFileUnknownReference {
|
|
|
464
464
|
/**
|
|
465
465
|
* Move file to archive and return new reference
|
|
466
466
|
*/
|
|
467
|
-
archive(archiveDirectoryName?: string): Promise<DocFileUnknownReference
|
|
467
|
+
archive(archiveDirectoryName?: string): Promise<DocFileUnknownReference<T>>;
|
|
468
468
|
/**
|
|
469
469
|
* Restore file from archive and return new reference
|
|
470
470
|
*/
|
|
471
|
-
restore(archiveDirectoryName?: string): Promise<DocFileUnknownReference
|
|
471
|
+
restore(archiveDirectoryName?: string): Promise<DocFileUnknownReference<T>>;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
/**
|
|
@@ -528,6 +528,7 @@ type DocMetaFieldMultiSelectText = z.infer<typeof zDocMetaFieldMultiSelectText>;
|
|
|
528
528
|
type DocMetaFieldMultiSelectNumber = z.infer<typeof zDocMetaFieldMultiSelectNumber>;
|
|
529
529
|
type DocMetaFieldMultiRelation = z.infer<typeof zDocMetaFieldMultiRelation>;
|
|
530
530
|
type DocFileMdMeta<T extends RecordKey> = Record<T, DocMetaField>;
|
|
531
|
+
type DocFileMdMetaAny = DocFileMdMeta<RecordKey>;
|
|
531
532
|
type DocMetaFieldTypeText = z.infer<typeof zDocMetaFieldTypeText>;
|
|
532
533
|
type DocMetaFieldTypeNumber = z.infer<typeof zDocMetaFieldTypeNumber>;
|
|
533
534
|
type DocMetaFieldTypeBoolean = z.infer<typeof zDocMetaFieldTypeBoolean>;
|
|
@@ -589,7 +590,7 @@ type DocFileIndexSchemaField = z.infer<typeof zDocFileIndexSchemaField>;
|
|
|
589
590
|
/**
|
|
590
591
|
* Schema definition type
|
|
591
592
|
*/
|
|
592
|
-
type DocFileIndexSchema<T extends RecordKey> = Record<T, DocFileIndexSchemaField>;
|
|
593
|
+
type DocFileIndexSchema<T extends RecordKey = string> = Record<T, DocFileIndexSchemaField>;
|
|
593
594
|
/**
|
|
594
595
|
* Schema field to override
|
|
595
596
|
* ex: { xxx: { type: "text", required: true } }
|
|
@@ -602,7 +603,7 @@ type DocFieldTypeLiteral = "text" | "number" | "boolean" | "relation" | "multi-t
|
|
|
602
603
|
/**
|
|
603
604
|
* Minimal schema definition type
|
|
604
605
|
*/
|
|
605
|
-
type DocCustomSchema<T extends RecordKey =
|
|
606
|
+
type DocCustomSchema<T extends RecordKey = string> = Record<T, DocCustomSchemaField>;
|
|
606
607
|
/**
|
|
607
608
|
* Union type for relation fields
|
|
608
609
|
*/
|
|
@@ -723,7 +724,7 @@ type DetectFileType<T extends string> = IsIndexMd<T> extends true ? "index" : En
|
|
|
723
724
|
/**
|
|
724
725
|
* Map file type to reference class
|
|
725
726
|
*/
|
|
726
|
-
type FileTypeToReference<FileType extends string, Schema extends DocCustomSchema> = FileType extends "index" ? DocFileIndexReference<Schema> : FileType extends "markdown" ? DocFileMdReference<Schema> : DocFileUnknownReference
|
|
727
|
+
type FileTypeToReference<FileType extends string, Schema extends DocCustomSchema> = FileType extends "index" ? DocFileIndexReference<Schema> : FileType extends "markdown" ? DocFileMdReference<Schema> : DocFileUnknownReference<Schema>;
|
|
727
728
|
/**
|
|
728
729
|
* Infer reference type from path
|
|
729
730
|
*/
|
|
@@ -1383,7 +1384,7 @@ declare class DocFileIndexEntity<T extends DocCustomSchema> {
|
|
|
1383
1384
|
/**
|
|
1384
1385
|
* z.infer<typeof zDocFileIndex>
|
|
1385
1386
|
*/
|
|
1386
|
-
toJson():
|
|
1387
|
+
toJson(): DocFileIndexAny;
|
|
1387
1388
|
}
|
|
1388
1389
|
|
|
1389
1390
|
type Props$5<T extends DocCustomSchema> = {
|
|
@@ -1460,7 +1461,7 @@ declare class DocFileIndexReference<T extends DocCustomSchema> {
|
|
|
1460
1461
|
restore(archiveDirectoryName?: string): Promise<DocFileIndexReference<T>>;
|
|
1461
1462
|
}
|
|
1462
1463
|
|
|
1463
|
-
type DocFileDirectoryReference<T extends DocCustomSchema> = DocFileMdReference<T> | DocFileUnknownReference
|
|
1464
|
+
type DocFileDirectoryReference<T extends DocCustomSchema> = DocFileMdReference<T> | DocFileUnknownReference<T>;
|
|
1464
1465
|
|
|
1465
1466
|
type DocFileEntity<T extends DocCustomSchema> = DocFileMdEntity<T> | DocFileIndexEntity<T> | DocFileUnknownEntity;
|
|
1466
1467
|
type DocFileDirectoryEntity<T extends DocCustomSchema> = DocFileMdEntity<T> | DocFileUnknownEntity;
|
|
@@ -2163,4 +2164,4 @@ declare class DocRelationFieldValue {
|
|
|
2163
2164
|
}): DocRelationFieldValue;
|
|
2164
2165
|
}
|
|
2165
2166
|
|
|
2166
|
-
export { type BaseFieldValueType, type DetectFileType, DocClient, type DocClientConfig, type DocCustomSchema, type DocCustomSchemaField, type DocCustomSchemaFieldBoolean, type DocCustomSchemaFieldMultiNumber, type DocCustomSchemaFieldMultiRelation, type DocCustomSchemaFieldMultiSelectNumber, type DocCustomSchemaFieldMultiSelectText, type DocCustomSchemaFieldMultiText, type DocCustomSchemaFieldNumber, type DocCustomSchemaFieldRelation, type DocCustomSchemaFieldSelectNumber, type DocCustomSchemaFieldSelectText, type DocCustomSchemaFieldText, DocCustomSchemaFieldValue, type DocDirectory, type DocDirectoryFile, DocDirectoryPathValue, DocDirectoryReference, type DocFieldTypeLiteral, type DocFile, type DocFileAny, type DocFileEntity, type DocFileIndex, type DocFileIndexAny, type DocFileIndexContent, DocFileIndexContentValue, DocFileIndexEntity, type DocFileIndexMeta, DocFileIndexMetaValue, DocFileIndexReference, type DocFileIndexSchema, type DocFileIndexSchemaField, DocFileIndexSchemaValue, type DocFileMd, type DocFileMdAny, type DocFileMdContent, DocFileMdContentValue, DocFileMdEntity, type DocFileMdMeta, DocFileMdMetaValue, DocFileMdReference, type DocFilePath, DocFilePathValue, DocFileRelationReference, DocFileSystem, DocFileSystemMock, DocFileTreeSystem, type DocFileUnknown, DocFileUnknownEntity, DocFileUnknownReference, DocMarkdownSystem, type DocMetaField, type DocMetaFieldBoolean, type DocMetaFieldMultiNumber, type DocMetaFieldMultiRelation, type DocMetaFieldMultiSelectNumber, type DocMetaFieldMultiSelectText, type DocMetaFieldMultiText, type DocMetaFieldNumber, type DocMetaFieldRelation, type DocMetaFieldSelectNumber, type DocMetaFieldSelectText, type DocMetaFieldText, type DocMetaFieldType, type DocMetaFieldTypeBoolean, type DocMetaFieldTypeNumber, type DocMetaFieldTypeRelation, type DocMetaFieldTypeSelectNumber, type DocMetaFieldTypeSelectText, type DocMetaFieldTypeText, DocPathSystem, DocPathSystemMock, type DocRelation, type DocRelationField, DocRelationFieldValue, type DocRelationFile, DocRelationFileValue, DocRelationValue, DocSchemaBuilder, type DocSchemaFieldBoolean, type DocSchemaFieldMultiNumber, type DocSchemaFieldMultiRelation, type DocSchemaFieldMultiSelectNumber, type DocSchemaFieldMultiSelectText, type DocSchemaFieldMultiText, type DocSchemaFieldNumber, type DocSchemaFieldRelation, type DocSchemaFieldSelectNumber, type DocSchemaFieldSelectText, type DocSchemaFieldText, type DocSchemaRelationFieldUnion, type DocTreeDirectoryNode, DocTreeDirectoryNodeValue, type DocTreeFileNode, DocTreeFileNodeValue, type DocTreeNode, type DocTreeNodeValue, type Equals, type ExtractFieldType, type ExtractRequired, type FieldValueType, type GetIndexFieldType, type GetValueType, type InferDocFileMd, type InferReference, type MultiRelationKeys, type OptionalKeys, type RecordKey, type RelationKeys, type RequiredKeys, type SchemaToValueType, assertType, defaultTestConfig, defineSchema, docCustomSchemaField, expectType, zDocClientConfig, zDocFileIndex, zDocFileIndexSchemaField, zDocFileMd, zDocFilePath, zDocFileUnknown, zDocMetaField, zDocMetaFieldBoolean, zDocMetaFieldMultiNumber, zDocMetaFieldMultiRelation, zDocMetaFieldMultiSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiText, zDocMetaFieldNumber, zDocMetaFieldRelation, zDocMetaFieldSelectNumber, zDocMetaFieldSelectText, zDocMetaFieldText, zDocMetaFieldType, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeNumber, zDocMetaFieldTypeRelation, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeText, zDocRelation, zDocRelationField, zDocRelationFile, zDocSchemaFieldBoolean, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectNumber, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiText, zDocSchemaFieldNumber, zDocSchemaFieldRelation, zDocSchemaFieldSelectNumber, zDocSchemaFieldSelectText, zDocSchemaFieldText };
|
|
2167
|
+
export { type BaseFieldValueType, type DetectFileType, DocClient, type DocClientConfig, type DocCustomSchema, type DocCustomSchemaField, type DocCustomSchemaFieldBoolean, type DocCustomSchemaFieldMultiNumber, type DocCustomSchemaFieldMultiRelation, type DocCustomSchemaFieldMultiSelectNumber, type DocCustomSchemaFieldMultiSelectText, type DocCustomSchemaFieldMultiText, type DocCustomSchemaFieldNumber, type DocCustomSchemaFieldRelation, type DocCustomSchemaFieldSelectNumber, type DocCustomSchemaFieldSelectText, type DocCustomSchemaFieldText, DocCustomSchemaFieldValue, type DocDirectory, type DocDirectoryFile, DocDirectoryPathValue, DocDirectoryReference, type DocFieldTypeLiteral, type DocFile, type DocFileAny, type DocFileEntity, type DocFileIndex, type DocFileIndexAny, type DocFileIndexContent, DocFileIndexContentValue, DocFileIndexEntity, type DocFileIndexMeta, DocFileIndexMetaValue, DocFileIndexReference, type DocFileIndexSchema, type DocFileIndexSchemaField, DocFileIndexSchemaValue, type DocFileMd, type DocFileMdAny, type DocFileMdContent, DocFileMdContentValue, DocFileMdEntity, type DocFileMdMeta, type DocFileMdMetaAny, DocFileMdMetaValue, DocFileMdReference, type DocFilePath, DocFilePathValue, DocFileRelationReference, DocFileSystem, DocFileSystemMock, DocFileTreeSystem, type DocFileUnknown, DocFileUnknownEntity, DocFileUnknownReference, DocMarkdownSystem, type DocMetaField, type DocMetaFieldBoolean, type DocMetaFieldMultiNumber, type DocMetaFieldMultiRelation, type DocMetaFieldMultiSelectNumber, type DocMetaFieldMultiSelectText, type DocMetaFieldMultiText, type DocMetaFieldNumber, type DocMetaFieldRelation, type DocMetaFieldSelectNumber, type DocMetaFieldSelectText, type DocMetaFieldText, type DocMetaFieldType, type DocMetaFieldTypeBoolean, type DocMetaFieldTypeNumber, type DocMetaFieldTypeRelation, type DocMetaFieldTypeSelectNumber, type DocMetaFieldTypeSelectText, type DocMetaFieldTypeText, DocPathSystem, DocPathSystemMock, type DocRelation, type DocRelationField, DocRelationFieldValue, type DocRelationFile, DocRelationFileValue, DocRelationValue, DocSchemaBuilder, type DocSchemaFieldBoolean, type DocSchemaFieldMultiNumber, type DocSchemaFieldMultiRelation, type DocSchemaFieldMultiSelectNumber, type DocSchemaFieldMultiSelectText, type DocSchemaFieldMultiText, type DocSchemaFieldNumber, type DocSchemaFieldRelation, type DocSchemaFieldSelectNumber, type DocSchemaFieldSelectText, type DocSchemaFieldText, type DocSchemaRelationFieldUnion, type DocTreeDirectoryNode, DocTreeDirectoryNodeValue, type DocTreeFileNode, DocTreeFileNodeValue, type DocTreeNode, type DocTreeNodeValue, type Equals, type ExtractFieldType, type ExtractRequired, type FieldValueType, type GetIndexFieldType, type GetValueType, type InferDocFileMd, type InferReference, type MultiRelationKeys, type OptionalKeys, type RecordKey, type RelationKeys, type RequiredKeys, type SchemaToValueType, assertType, defaultTestConfig, defineSchema, docCustomSchemaField, expectType, zDocClientConfig, zDocFileIndex, zDocFileIndexSchemaField, zDocFileMd, zDocFilePath, zDocFileUnknown, zDocMetaField, zDocMetaFieldBoolean, zDocMetaFieldMultiNumber, zDocMetaFieldMultiRelation, zDocMetaFieldMultiSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiText, zDocMetaFieldNumber, zDocMetaFieldRelation, zDocMetaFieldSelectNumber, zDocMetaFieldSelectText, zDocMetaFieldText, zDocMetaFieldType, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeNumber, zDocMetaFieldTypeRelation, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeText, zDocRelation, zDocRelationField, zDocRelationFile, zDocSchemaFieldBoolean, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectNumber, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiText, zDocSchemaFieldNumber, zDocSchemaFieldRelation, zDocSchemaFieldSelectNumber, zDocSchemaFieldSelectText, zDocSchemaFieldText };
|
package/build/index.js
CHANGED
|
@@ -3251,7 +3251,7 @@ var DocFileIndexEntity = class _DocFileIndexEntity {
|
|
|
3251
3251
|
* z.infer<typeof zDocFileIndex>
|
|
3252
3252
|
*/
|
|
3253
3253
|
toJson() {
|
|
3254
|
-
return
|
|
3254
|
+
return this.value;
|
|
3255
3255
|
}
|
|
3256
3256
|
};
|
|
3257
3257
|
|
|
@@ -3772,6 +3772,19 @@ var DocFileMdReference = class _DocFileMdReference {
|
|
|
3772
3772
|
return this.fileSystem.getFileCreatedTime(this.path);
|
|
3773
3773
|
}
|
|
3774
3774
|
directory() {
|
|
3775
|
+
const paths = this.directoryPath.split(this.pathSystem.separator);
|
|
3776
|
+
if (paths[paths.length - 1] === this.props.config.archiveDirectoryName) {
|
|
3777
|
+
const path = paths.slice(0, -1).join(this.pathSystem.separator);
|
|
3778
|
+
return new DocDirectoryReference({
|
|
3779
|
+
archiveDirectoryName: this.props.config.archiveDirectoryName,
|
|
3780
|
+
indexFileName: this.props.config.indexFileName,
|
|
3781
|
+
fileSystem: this.fileSystem,
|
|
3782
|
+
path,
|
|
3783
|
+
pathSystem: this.pathSystem,
|
|
3784
|
+
customSchema: this.customSchema,
|
|
3785
|
+
config: this.props.config
|
|
3786
|
+
});
|
|
3787
|
+
}
|
|
3775
3788
|
return new DocDirectoryReference({
|
|
3776
3789
|
archiveDirectoryName: this.props.config.archiveDirectoryName,
|
|
3777
3790
|
indexFileName: this.props.config.indexFileName,
|
|
@@ -3973,9 +3986,11 @@ var DocFileUnknownReference = class _DocFileUnknownReference {
|
|
|
3973
3986
|
constructor(props) {
|
|
3974
3987
|
this.props = props;
|
|
3975
3988
|
this.pathSystem = props.pathSystem;
|
|
3989
|
+
this.customSchema = props.customSchema;
|
|
3976
3990
|
Object.freeze(this);
|
|
3977
3991
|
}
|
|
3978
3992
|
pathSystem;
|
|
3993
|
+
customSchema;
|
|
3979
3994
|
get fileSystem() {
|
|
3980
3995
|
return this.props.fileSystem;
|
|
3981
3996
|
}
|
|
@@ -3991,17 +4006,27 @@ var DocFileUnknownReference = class _DocFileUnknownReference {
|
|
|
3991
4006
|
get fileFullPath() {
|
|
3992
4007
|
return this.pathSystem.join(this.basePath, this.path);
|
|
3993
4008
|
}
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
4009
|
+
directory() {
|
|
4010
|
+
const paths = this.directoryPath.split(this.pathSystem.separator);
|
|
4011
|
+
if (paths[paths.length - 1] === this.props.config.archiveDirectoryName) {
|
|
4012
|
+
const path = paths.slice(0, -1).join(this.pathSystem.separator);
|
|
4013
|
+
return new DocDirectoryReference({
|
|
4014
|
+
archiveDirectoryName: this.props.config.archiveDirectoryName,
|
|
4015
|
+
indexFileName: this.props.config.indexFileName,
|
|
4016
|
+
fileSystem: this.fileSystem,
|
|
4017
|
+
path,
|
|
4018
|
+
pathSystem: this.pathSystem,
|
|
4019
|
+
customSchema: this.customSchema,
|
|
4020
|
+
config: this.props.config
|
|
4021
|
+
});
|
|
4022
|
+
}
|
|
3998
4023
|
return new DocDirectoryReference({
|
|
3999
4024
|
archiveDirectoryName: this.props.config.archiveDirectoryName,
|
|
4000
4025
|
indexFileName: this.props.config.indexFileName,
|
|
4001
4026
|
fileSystem: this.fileSystem,
|
|
4002
4027
|
path: this.directoryPath,
|
|
4003
4028
|
pathSystem: this.pathSystem,
|
|
4004
|
-
customSchema: customSchema
|
|
4029
|
+
customSchema: this.customSchema,
|
|
4005
4030
|
config: this.props.config
|
|
4006
4031
|
});
|
|
4007
4032
|
}
|
|
@@ -4138,7 +4163,8 @@ var DocFileUnknownReference = class _DocFileUnknownReference {
|
|
|
4138
4163
|
path: archivePath,
|
|
4139
4164
|
fileSystem: this.fileSystem,
|
|
4140
4165
|
pathSystem: this.pathSystem,
|
|
4141
|
-
config: this.props.config
|
|
4166
|
+
config: this.props.config,
|
|
4167
|
+
customSchema: this.customSchema
|
|
4142
4168
|
});
|
|
4143
4169
|
}
|
|
4144
4170
|
/**
|
|
@@ -4163,7 +4189,8 @@ var DocFileUnknownReference = class _DocFileUnknownReference {
|
|
|
4163
4189
|
path: restorePath,
|
|
4164
4190
|
fileSystem: this.fileSystem,
|
|
4165
4191
|
pathSystem: this.pathSystem,
|
|
4166
|
-
config: this.props.config
|
|
4192
|
+
config: this.props.config,
|
|
4193
|
+
customSchema: this.customSchema
|
|
4167
4194
|
});
|
|
4168
4195
|
}
|
|
4169
4196
|
};
|
|
@@ -4245,7 +4272,8 @@ var DocDirectoryReference = class _DocDirectoryReference {
|
|
|
4245
4272
|
path: this.pathSystem.join(this.relativePath, fileName),
|
|
4246
4273
|
fileSystem: this.fileSystem,
|
|
4247
4274
|
pathSystem: this.pathSystem,
|
|
4248
|
-
config: this.props.config
|
|
4275
|
+
config: this.props.config,
|
|
4276
|
+
customSchema: this.customSchema
|
|
4249
4277
|
});
|
|
4250
4278
|
}
|
|
4251
4279
|
const archivedFileNames = await this.archivedFileNames();
|
|
@@ -4274,7 +4302,8 @@ var DocDirectoryReference = class _DocDirectoryReference {
|
|
|
4274
4302
|
),
|
|
4275
4303
|
fileSystem: this.fileSystem,
|
|
4276
4304
|
pathSystem: this.pathSystem,
|
|
4277
|
-
config: this.props.config
|
|
4305
|
+
config: this.props.config,
|
|
4306
|
+
customSchema: this.customSchema
|
|
4278
4307
|
});
|
|
4279
4308
|
}
|
|
4280
4309
|
}
|
|
@@ -4321,7 +4350,8 @@ var DocDirectoryReference = class _DocDirectoryReference {
|
|
|
4321
4350
|
path: filePath,
|
|
4322
4351
|
fileSystem: this.fileSystem,
|
|
4323
4352
|
pathSystem: this.pathSystem,
|
|
4324
|
-
config: this.props.config
|
|
4353
|
+
config: this.props.config,
|
|
4354
|
+
customSchema: this.customSchema
|
|
4325
4355
|
});
|
|
4326
4356
|
}
|
|
4327
4357
|
mdFile(fileName) {
|
|
@@ -4963,7 +4993,8 @@ var DocClient = class {
|
|
|
4963
4993
|
path: relativePath,
|
|
4964
4994
|
fileSystem: this.fileSystem,
|
|
4965
4995
|
pathSystem: this.pathSystem,
|
|
4966
|
-
config: this.config
|
|
4996
|
+
config: this.config,
|
|
4997
|
+
customSchema: {}
|
|
4967
4998
|
});
|
|
4968
4999
|
}
|
|
4969
5000
|
/**
|