@dialecte/core 0.0.16 → 0.0.17
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/env.d.ts +1 -0
- package/dist/index.d.ts +1 -8
- package/dist/index.js +309 -308
- package/dist/{chain-methods → src/chain-methods}/chain-assembler.d.ts +3 -4
- package/dist/{chain-methods → src/chain-methods}/chain-creator.d.ts +3 -4
- package/dist/{chain-methods → src/chain-methods}/ending/index.d.ts +0 -1
- package/dist/{chain-methods → src/chain-methods}/ending/queries/context.d.ts +2 -3
- package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/filter-utils.helper.d.ts +2 -3
- package/dist/src/chain-methods/ending/queries/descendants/find-descendants-as-tree.d.ts +51 -0
- package/dist/src/chain-methods/ending/queries/descendants/find-descendants.d.ts +59 -0
- package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/flatten-tree.helper.d.ts +1 -2
- package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/group-records.helper.d.ts +1 -2
- package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/index.d.ts +0 -1
- package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/match-conditions.helper.d.ts +2 -3
- package/dist/src/chain-methods/ending/queries/descendants/types.d.ts +34 -0
- package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/walk-ancestry.helper.d.ts +1 -2
- package/dist/src/chain-methods/ending/queries/find-children.d.ts +8 -0
- package/dist/src/chain-methods/ending/queries/find-children.types.d.ts +5 -0
- package/dist/{chain-methods → src/chain-methods}/ending/queries/get-attributes-values.d.ts +1 -2
- package/dist/{chain-methods → src/chain-methods}/ending/queries/get-parent.d.ts +1 -2
- package/dist/{chain-methods → src/chain-methods}/ending/queries/get-tree.d.ts +3 -4
- package/dist/src/chain-methods/ending/queries/get-tree.types.d.ts +17 -0
- package/dist/{chain-methods → src/chain-methods}/ending/queries/index.d.ts +0 -1
- package/dist/{chain-methods → src/chain-methods}/ending/transaction/commit.d.ts +2 -3
- package/dist/src/chain-methods/ending/transaction/index.d.ts +1 -0
- package/dist/src/chain-methods/ending/transaction/merge-operations.d.ts +20 -0
- package/dist/{chain-methods → src/chain-methods}/index.d.ts +0 -1
- package/dist/{chain-methods → src/chain-methods}/mutations/clone.d.ts +2 -3
- package/dist/src/chain-methods/mutations/clone.types.d.ts +16 -0
- package/dist/{chain-methods → src/chain-methods}/mutations/create.d.ts +3 -4
- package/dist/src/chain-methods/mutations/create.types.d.ts +31 -0
- package/dist/{chain-methods → src/chain-methods}/mutations/delete.d.ts +4 -5
- package/dist/src/chain-methods/mutations/delete.types.d.ts +5 -0
- package/dist/{chain-methods → src/chain-methods}/mutations/index.d.ts +0 -1
- package/dist/{chain-methods → src/chain-methods}/mutations/update.d.ts +3 -4
- package/dist/src/chain-methods/mutations/update.types.d.ts +5 -0
- package/dist/{chain-methods → src/chain-methods}/navigation/go-to-element.d.ts +4 -5
- package/dist/{chain-methods → src/chain-methods}/navigation/go-to-parent.d.ts +5 -6
- package/dist/{chain-methods → src/chain-methods}/navigation/index.d.ts +0 -1
- package/dist/src/chain-methods/navigation/types.d.ts +11 -0
- package/dist/{chain-methods → src/chain-methods}/types.d.ts +9 -10
- package/dist/{database → src/database}/index.d.ts +0 -1
- package/dist/src/database/instance.d.ts +6 -0
- package/dist/src/database/types.d.ts +8 -0
- package/dist/{dialecte → src/dialecte}/entrypoints.d.ts +4 -5
- package/dist/{dialecte → src/dialecte}/index.d.ts +0 -1
- package/dist/{dialecte → src/dialecte}/main.d.ts +3 -4
- package/dist/{dialecte → src/dialecte}/state.d.ts +1 -2
- package/dist/{dialecte → src/dialecte}/types.d.ts +6 -7
- package/dist/{errors → src/errors}/codes.d.ts +0 -1
- package/dist/{errors → src/errors}/errors.d.ts +2 -3
- package/dist/{errors → src/errors}/index.d.ts +0 -1
- package/dist/src/errors/types.d.ts +22 -0
- package/dist/{helpers → src/helpers}/assert.d.ts +0 -1
- package/dist/{helpers → src/helpers}/index.d.ts +0 -1
- package/dist/{helpers → src/helpers}/record/converter.d.ts +1 -2
- package/dist/{helpers → src/helpers}/record/guard.d.ts +1 -2
- package/dist/{helpers → src/helpers}/record/index.d.ts +0 -1
- package/dist/{helpers → src/helpers}/record/operations.d.ts +1 -2
- package/dist/{helpers → src/helpers}/record/query/find-by-attributes.d.ts +3 -4
- package/dist/{helpers → src/helpers}/record/query/index.d.ts +0 -1
- package/dist/{helpers → src/helpers}/record/query/record.d.ts +2 -3
- package/dist/src/helpers/record/query/types.d.ts +9 -0
- package/dist/{helpers → src/helpers}/record/standardizing.d.ts +1 -2
- package/dist/{helpers → src/helpers}/test-fixtures/config.d.ts +35 -36
- package/dist/{helpers → src/helpers}/test-fixtures/constant.d.ts +0 -1
- package/dist/{helpers → src/helpers}/test-fixtures/create-test-dialecte.d.ts +3 -4
- package/dist/{helpers → src/helpers}/test-fixtures/generated/constants.generated.d.ts +41 -42
- package/dist/src/helpers/test-fixtures/generated/definition.d.ts +1 -0
- package/dist/{helpers → src/helpers}/test-fixtures/generated/index.d.ts +0 -1
- package/dist/{helpers → src/helpers}/test-fixtures/generated/types.generated.d.ts +37 -38
- package/dist/{helpers → src/helpers}/test-fixtures/index.d.ts +0 -1
- package/dist/{helpers → src/helpers}/test-fixtures/test-operations.d.ts +4 -5
- package/dist/src/helpers/test-fixtures/test-operations.types.d.ts +19 -0
- package/dist/{helpers → src/helpers}/test-fixtures/test-record.d.ts +2 -3
- package/dist/src/index.d.ts +7 -0
- package/dist/{io → src/io}/export/constant.d.ts +0 -1
- package/dist/{io → src/io}/export/download-file.d.ts +1 -2
- package/dist/{io → src/io}/export/formatter.d.ts +0 -1
- package/dist/{io → src/io}/export/index.d.ts +0 -1
- package/dist/{io → src/io}/export/main.d.ts +1 -2
- package/dist/{io → src/io}/import/database-helpers.d.ts +1 -2
- package/dist/{io → src/io}/import/guards.d.ts +0 -1
- package/dist/{io → src/io}/import/index.d.ts +0 -1
- package/dist/{io → src/io}/import/main.d.ts +1 -2
- package/dist/{io → src/io}/import/parser.d.ts +2 -3
- package/dist/{io → src/io}/import/relationships.d.ts +1 -2
- package/dist/{io → src/io}/import/types.d.ts +4 -5
- package/dist/{io → src/io}/index.d.ts +0 -1
- package/dist/src/types/context.d.ts +15 -0
- package/dist/{types → src/types}/definition.d.ts +6 -7
- package/dist/{types → src/types}/dialecte-config.d.ts +31 -32
- package/dist/{types → src/types}/index.d.ts +0 -1
- package/dist/{types → src/types}/io.d.ts +3 -4
- package/dist/{types → src/types}/operations.d.ts +5 -6
- package/dist/src/types/records.d.ts +56 -0
- package/dist/{utils → src/utils}/attributes.d.ts +1 -2
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/vitest.shims.d.ts +1 -0
- package/package.json +8 -2
- package/dist/chain-methods/chain-assembler.d.ts.map +0 -1
- package/dist/chain-methods/chain-creator.d.ts.map +0 -1
- package/dist/chain-methods/ending/index.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/context.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/filter-utils.helper.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/find-descendants-as-tree.d.ts +0 -9
- package/dist/chain-methods/ending/queries/descendants/find-descendants-as-tree.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/find-descendants.d.ts +0 -16
- package/dist/chain-methods/ending/queries/descendants/find-descendants.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/flatten-tree.helper.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/group-records.helper.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/index.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/match-conditions.helper.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/types.d.ts +0 -35
- package/dist/chain-methods/ending/queries/descendants/types.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/descendants/walk-ancestry.helper.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/find-children.d.ts +0 -9
- package/dist/chain-methods/ending/queries/find-children.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/find-children.types.d.ts +0 -6
- package/dist/chain-methods/ending/queries/find-children.types.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/get-attributes-values.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/get-parent.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/get-tree.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/get-tree.types.d.ts +0 -18
- package/dist/chain-methods/ending/queries/get-tree.types.d.ts.map +0 -1
- package/dist/chain-methods/ending/queries/index.d.ts.map +0 -1
- package/dist/chain-methods/ending/transaction/commit.d.ts.map +0 -1
- package/dist/chain-methods/ending/transaction/index.d.ts +0 -2
- package/dist/chain-methods/ending/transaction/index.d.ts.map +0 -1
- package/dist/chain-methods/ending/transaction/merge-operations.d.ts +0 -33
- package/dist/chain-methods/ending/transaction/merge-operations.d.ts.map +0 -1
- package/dist/chain-methods/index.d.ts.map +0 -1
- package/dist/chain-methods/mutations/clone.d.ts.map +0 -1
- package/dist/chain-methods/mutations/clone.types.d.ts +0 -17
- package/dist/chain-methods/mutations/clone.types.d.ts.map +0 -1
- package/dist/chain-methods/mutations/create.d.ts.map +0 -1
- package/dist/chain-methods/mutations/create.types.d.ts +0 -32
- package/dist/chain-methods/mutations/create.types.d.ts.map +0 -1
- package/dist/chain-methods/mutations/delete.d.ts.map +0 -1
- package/dist/chain-methods/mutations/delete.types.d.ts +0 -6
- package/dist/chain-methods/mutations/delete.types.d.ts.map +0 -1
- package/dist/chain-methods/mutations/index.d.ts.map +0 -1
- package/dist/chain-methods/mutations/update.d.ts.map +0 -1
- package/dist/chain-methods/mutations/update.types.d.ts +0 -6
- package/dist/chain-methods/mutations/update.types.d.ts.map +0 -1
- package/dist/chain-methods/navigation/go-to-element.d.ts.map +0 -1
- package/dist/chain-methods/navigation/go-to-parent.d.ts.map +0 -1
- package/dist/chain-methods/navigation/index.d.ts.map +0 -1
- package/dist/chain-methods/navigation/types.d.ts +0 -12
- package/dist/chain-methods/navigation/types.d.ts.map +0 -1
- package/dist/chain-methods/types.d.ts.map +0 -1
- package/dist/database/index.d.ts.map +0 -1
- package/dist/database/instance.d.ts +0 -8
- package/dist/database/instance.d.ts.map +0 -1
- package/dist/database/types.d.ts +0 -8
- package/dist/database/types.d.ts.map +0 -1
- package/dist/dialecte/entrypoints.d.ts.map +0 -1
- package/dist/dialecte/index.d.ts.map +0 -1
- package/dist/dialecte/main.d.ts.map +0 -1
- package/dist/dialecte/state.d.ts.map +0 -1
- package/dist/dialecte/types.d.ts.map +0 -1
- package/dist/errors/codes.d.ts.map +0 -1
- package/dist/errors/errors.d.ts.map +0 -1
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/types.d.ts +0 -23
- package/dist/errors/types.d.ts.map +0 -1
- package/dist/helpers/assert.d.ts.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/record/converter.d.ts.map +0 -1
- package/dist/helpers/record/guard.d.ts.map +0 -1
- package/dist/helpers/record/index.d.ts.map +0 -1
- package/dist/helpers/record/operations.d.ts.map +0 -1
- package/dist/helpers/record/query/find-by-attributes.d.ts.map +0 -1
- package/dist/helpers/record/query/index.d.ts.map +0 -1
- package/dist/helpers/record/query/record.d.ts.map +0 -1
- package/dist/helpers/record/query/types.d.ts +0 -10
- package/dist/helpers/record/query/types.d.ts.map +0 -1
- package/dist/helpers/record/standardizing.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/config.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/constant.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/create-test-dialecte.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/generated/constants.generated.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/generated/definition.d.ts +0 -3
- package/dist/helpers/test-fixtures/generated/definition.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/generated/index.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/generated/types.generated.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/index.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/test-operations.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/test-operations.types.d.ts +0 -20
- package/dist/helpers/test-fixtures/test-operations.types.d.ts.map +0 -1
- package/dist/helpers/test-fixtures/test-record.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/io/export/constant.d.ts.map +0 -1
- package/dist/io/export/download-file.d.ts.map +0 -1
- package/dist/io/export/formatter.d.ts.map +0 -1
- package/dist/io/export/index.d.ts.map +0 -1
- package/dist/io/export/main.d.ts.map +0 -1
- package/dist/io/import/database-helpers.d.ts.map +0 -1
- package/dist/io/import/guards.d.ts.map +0 -1
- package/dist/io/import/index.d.ts.map +0 -1
- package/dist/io/import/main.d.ts.map +0 -1
- package/dist/io/import/parser.d.ts.map +0 -1
- package/dist/io/import/relationships.d.ts.map +0 -1
- package/dist/io/import/test.handler.d.ts +0 -9
- package/dist/io/import/test.handler.d.ts.map +0 -1
- package/dist/io/import/test.types.d.ts +0 -4
- package/dist/io/import/test.types.d.ts.map +0 -1
- package/dist/io/import/types.d.ts.map +0 -1
- package/dist/io/index.d.ts.map +0 -1
- package/dist/script/element-parent-mapping.d.ts +0 -2
- package/dist/script/element-parent-mapping.d.ts.map +0 -1
- package/dist/script/find-unreferenced-elements.d.ts +0 -3
- package/dist/script/find-unreferenced-elements.d.ts.map +0 -1
- package/dist/script/generate-definition.d.ts +0 -3
- package/dist/script/generate-definition.d.ts.map +0 -1
- package/dist/script/generate-definition.types.d.ts +0 -86
- package/dist/script/generate-definition.types.d.ts.map +0 -1
- package/dist/script/generate-test-fixtures.d.ts +0 -16
- package/dist/script/generate-test-fixtures.d.ts.map +0 -1
- package/dist/script/pyodide.d.ts +0 -12
- package/dist/script/pyodide.d.ts.map +0 -1
- package/dist/script/sorted-dexie-dump-json.d.ts +0 -2
- package/dist/script/sorted-dexie-dump-json.d.ts.map +0 -1
- package/dist/script/test-pyodide.d.ts +0 -9
- package/dist/script/test-pyodide.d.ts.map +0 -1
- package/dist/types/context.d.ts +0 -16
- package/dist/types/context.d.ts.map +0 -1
- package/dist/types/definition.d.ts.map +0 -1
- package/dist/types/dialecte-config.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/io.d.ts.map +0 -1
- package/dist/types/operations.d.ts.map +0 -1
- package/dist/types/records.d.ts +0 -57
- package/dist/types/records.d.ts.map +0 -1
- package/dist/utils/attributes.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FindChildrenParams, GetTreeParams, DescendantsFilter, FindDescendantsReturn } from './ending/queries';
|
|
2
|
-
import { AddChildParamsWithFocus, AddChildParamsWithoutFocus, UpdateElementParams, DeepCloneChildWithFocusParams, DeepCloneChildWithoutFocusParams, DeleteElementParams } from './mutations';
|
|
3
|
-
import { GoToElementParams, GoToParentParams } from './navigation';
|
|
4
|
-
import { Context, AnyDialecteConfig, ElementsOf, ChildrenOf, ParentsOf, ExtensionRegistry, ChainRecord, TreeRecord, FullAttributeObjectOf } from '../types';
|
|
5
|
-
export type CoreChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
|
|
2
|
+
import type { AddChildParamsWithFocus, AddChildParamsWithoutFocus, UpdateElementParams, DeepCloneChildWithFocusParams, DeepCloneChildWithoutFocusParams, DeleteElementParams } from './mutations';
|
|
3
|
+
import type { GoToElementParams, GoToParentParams } from './navigation';
|
|
4
|
+
import type { Context, AnyDialecteConfig, ElementsOf, ChildrenOf, ParentsOf, ExtensionRegistry, ChainRecord, TreeRecord, FullAttributeObjectOf } from '../types';
|
|
5
|
+
export declare type CoreChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
|
|
6
6
|
goToElement<GenericTargetElement extends ElementsOf<GenericConfig>>(params: GoToElementParams<GenericConfig, GenericTargetElement>): Chain<GenericConfig, GenericTargetElement, GenericExtensionRegistry>;
|
|
7
7
|
goToParent: GenericElement extends GenericConfig['rootElementName'] ? never : <GenericParentElement extends ParentsOf<GenericConfig, GenericElement>>(params: GoToParentParams<GenericConfig, GenericElement, GenericParentElement>) => Chain<GenericConfig, GenericParentElement, GenericExtensionRegistry>;
|
|
8
8
|
findChildren<GenericChild extends ChildrenOf<GenericConfig, GenericElement>>(params: FindChildrenParams<GenericConfig, GenericElement, GenericChild>): Promise<Record<GenericChild, ChainRecord<GenericConfig, GenericChild>[]>>;
|
|
@@ -35,26 +35,25 @@ export type CoreChain<GenericConfig extends AnyDialecteConfig, GenericElement ex
|
|
|
35
35
|
/**
|
|
36
36
|
* Extract extension methods from mapped object
|
|
37
37
|
*/
|
|
38
|
-
type ExtractExtensionMethods<GenericMethod> = {
|
|
38
|
+
declare type ExtractExtensionMethods<GenericMethod> = {
|
|
39
39
|
[K in keyof GenericMethod]: GenericMethod[K] extends (params: any) => infer Method ? Method : never;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* Extension methods for a specific element from the extension registry
|
|
43
43
|
*/
|
|
44
|
-
export type ExtensionChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = ExtractExtensionMethods<GenericExtensionRegistry[GenericElement]>;
|
|
44
|
+
export declare type ExtensionChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = ExtractExtensionMethods<GenericExtensionRegistry[GenericElement]>;
|
|
45
45
|
/**
|
|
46
46
|
* Complete chain with core and extensions methods
|
|
47
47
|
*/
|
|
48
|
-
export type Chain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = CoreChain<GenericConfig, GenericElement, GenericExtensionRegistry> & ExtensionChain<GenericConfig, GenericElement, GenericExtensionRegistry>;
|
|
48
|
+
export declare type Chain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = CoreChain<GenericConfig, GenericElement, GenericExtensionRegistry> & ExtensionChain<GenericConfig, GenericElement, GenericExtensionRegistry>;
|
|
49
49
|
/**
|
|
50
50
|
* Chain factory with bound Config and Registry - only Element varies per call.
|
|
51
51
|
* Matches the implementation's closure-based structure where Config and Registry
|
|
52
52
|
* are captured from the outer scope.
|
|
53
53
|
*/
|
|
54
|
-
export type ChainFactory<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = <GenericFocusedElement extends ElementsOf<GenericConfig>>(params: {
|
|
54
|
+
export declare type ChainFactory<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = <GenericFocusedElement extends ElementsOf<GenericConfig>>(params: {
|
|
55
55
|
contextPromise: Promise<Context<GenericConfig, GenericFocusedElement>>;
|
|
56
56
|
newFocusedTagName?: GenericFocusedElement;
|
|
57
57
|
}) => Chain<GenericConfig, GenericFocusedElement, GenericExtensionRegistry>;
|
|
58
|
-
export type AnyChain = Chain<AnyDialecteConfig, ElementsOf<AnyDialecteConfig>, ExtensionRegistry<AnyDialecteConfig>>;
|
|
58
|
+
export declare type AnyChain = Chain<AnyDialecteConfig, ElementsOf<AnyDialecteConfig>, ExtensionRegistry<AnyDialecteConfig>>;
|
|
59
59
|
export {};
|
|
60
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DatabaseInstance } from './types';
|
|
2
|
+
import type { AnyDialecteConfig } from '../types';
|
|
3
|
+
export declare function createDatabaseInstance<GenericConfig extends AnyDialecteConfig>(params: {
|
|
4
|
+
databaseName: string;
|
|
5
|
+
dialecteConfig: GenericConfig;
|
|
6
|
+
}): DatabaseInstance<GenericConfig>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Dexie from 'dexie';
|
|
2
|
+
import type { AnyDialecteConfig, ElementsOf } from '../types/dialecte-config';
|
|
3
|
+
import type { RawRecord } from '../types/records';
|
|
4
|
+
import type { EntityTable } from 'dexie';
|
|
5
|
+
export declare type DatabaseInstance<GenericConfig extends AnyDialecteConfig> = Dexie & {
|
|
6
|
+
[tableName: string]: EntityTable<RawRecord<GenericConfig, ElementsOf<GenericConfig>>, 'id'>;
|
|
7
|
+
};
|
|
8
|
+
export declare type AnyDatabaseInstance = DatabaseInstance<AnyDialecteConfig>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FromElementParams } from './types';
|
|
2
|
-
import { Chain } from '../chain-methods/types';
|
|
3
|
-
import { DatabaseInstance } from '../database';
|
|
4
|
-
import { AnyDialecteConfig, RootElementOf, ElementsOf, ExtensionRegistry } from '../types';
|
|
1
|
+
import type { FromElementParams } from './types';
|
|
2
|
+
import type { Chain } from '../chain-methods/types';
|
|
3
|
+
import type { DatabaseInstance } from '../database';
|
|
4
|
+
import type { AnyDialecteConfig, RootElementOf, ElementsOf, ExtensionRegistry } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Create a chain starting from the root element
|
|
7
7
|
*/
|
|
@@ -18,4 +18,3 @@ export declare function fromElement<GenericConfig extends AnyDialecteConfig, Gen
|
|
|
18
18
|
databaseInstance: DatabaseInstance<GenericConfig>;
|
|
19
19
|
extensions: GenericExtensionRegistry;
|
|
20
20
|
} & FromElementParams<GenericConfig, GenericElement>): Chain<GenericConfig, GenericElement, GenericExtensionRegistry>;
|
|
21
|
-
//# sourceMappingURL=entrypoints.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DialecteCore } from './types';
|
|
2
|
-
import { AnyDialecteConfig, ExtensionRegistry } from '../types';
|
|
1
|
+
import type { DialecteCore } from './types';
|
|
2
|
+
import type { AnyDialecteConfig, ExtensionRegistry } from '../types';
|
|
3
3
|
export declare function createDialecte<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>>(params: {
|
|
4
4
|
databaseName: string;
|
|
5
5
|
dialecteConfig: GenericConfig;
|
|
6
6
|
extensions: GenericExtensionRegistry;
|
|
7
|
-
}):
|
|
8
|
-
//# sourceMappingURL=main.d.ts.map
|
|
7
|
+
}): DialecteCore<GenericConfig, GenericExtensionRegistry>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DialecteState } from './types';
|
|
1
|
+
import type { DialecteState } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Mark SDK as loading and optionally set initial progress
|
|
4
4
|
*/
|
|
@@ -51,4 +51,3 @@ export declare function getState(): DialecteState;
|
|
|
51
51
|
*/
|
|
52
52
|
export declare function resetState(): void;
|
|
53
53
|
export {};
|
|
54
|
-
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Chain } from '../chain-methods';
|
|
2
|
-
import { DatabaseInstance } from '../database';
|
|
3
|
-
import { AnyDialecteConfig, ElementsOf, ExtensionRegistry, RootElementOf, SingletonElementsOf } from '../types';
|
|
4
|
-
export type DialecteCore<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
|
|
1
|
+
import type { Chain } from '../chain-methods';
|
|
2
|
+
import type { DatabaseInstance } from '../database';
|
|
3
|
+
import type { AnyDialecteConfig, ElementsOf, ExtensionRegistry, RootElementOf, SingletonElementsOf } from '../types';
|
|
4
|
+
export declare type DialecteCore<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
|
|
5
5
|
getState(): DialecteState;
|
|
6
6
|
getDatabaseInstance(): DatabaseInstance<GenericConfig>;
|
|
7
7
|
fromRoot(): Chain<GenericConfig, RootElementOf<GenericConfig>, GenericExtensionRegistry>;
|
|
8
8
|
fromElement<GenericElement extends ElementsOf<GenericConfig>>(params: FromElementParams<GenericConfig, GenericElement>): Chain<GenericConfig, GenericElement, GenericExtensionRegistry>;
|
|
9
9
|
};
|
|
10
|
-
export type DialecteState = {
|
|
10
|
+
export declare type DialecteState = {
|
|
11
11
|
loading: boolean;
|
|
12
12
|
error: Error | null;
|
|
13
13
|
progress: {
|
|
@@ -22,11 +22,10 @@ export type DialecteState = {
|
|
|
22
22
|
operation: string;
|
|
23
23
|
} | null;
|
|
24
24
|
};
|
|
25
|
-
export type FromElementParams<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>> = GenericElement extends SingletonElementsOf<GenericConfig> ? {
|
|
25
|
+
export declare type FromElementParams<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>> = GenericElement extends SingletonElementsOf<GenericConfig> ? {
|
|
26
26
|
tagName: GenericElement;
|
|
27
27
|
id?: string;
|
|
28
28
|
} : {
|
|
29
29
|
tagName: GenericElement;
|
|
30
30
|
id: string;
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DialecteErrorKey, DialecteErrorContext, DialecteCoreError } from './types';
|
|
2
|
-
import { AnyDialecteConfig } from '../types';
|
|
1
|
+
import type { DialecteErrorKey, DialecteErrorContext, DialecteCoreError } from './types';
|
|
2
|
+
import type { AnyDialecteConfig } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Create a structured error with code, message, and context
|
|
5
5
|
*
|
|
@@ -31,4 +31,3 @@ export declare function createError<GenericConfig extends AnyDialecteConfig = An
|
|
|
31
31
|
* Check if error is a CoreError
|
|
32
32
|
*/
|
|
33
33
|
export declare function isCoreError(error: unknown): error is DialecteCoreError;
|
|
34
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ERROR_CATALOG } from './codes';
|
|
2
|
+
import type { AnyDialecteConfig, ChainRecord, ElementsOf, Operation } from '../types';
|
|
3
|
+
export declare type DialecteErrorKey = keyof typeof ERROR_CATALOG;
|
|
4
|
+
export declare type DialecteErrorCode = (typeof ERROR_CATALOG)[DialecteErrorKey]['code'];
|
|
5
|
+
/**
|
|
6
|
+
* Standard error context that all errors should include
|
|
7
|
+
*/
|
|
8
|
+
export declare type DialecteErrorContext<GenericConfig extends AnyDialecteConfig = AnyDialecteConfig> = {
|
|
9
|
+
method?: string;
|
|
10
|
+
currentFocus?: ChainRecord<GenericConfig, ElementsOf<GenericConfig>>;
|
|
11
|
+
operations?: Operation<GenericConfig>[];
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Core error type with code, default message, and context
|
|
16
|
+
*/
|
|
17
|
+
export declare type DialecteCoreError<GenericConfig extends AnyDialecteConfig = AnyDialecteConfig> = Error & {
|
|
18
|
+
code: DialecteErrorCode;
|
|
19
|
+
errorKey: DialecteErrorKey;
|
|
20
|
+
defaultMessage: string;
|
|
21
|
+
context?: DialecteErrorContext<GenericConfig>;
|
|
22
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RawRecord, ChainRecord, TreeRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, OperationStatus } from '../../types';
|
|
1
|
+
import type { RawRecord, ChainRecord, TreeRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, OperationStatus } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Converts a ChainRecord | TreeRecord to RawRecord
|
|
4
4
|
* If already a RawRecord, returns as-is.
|
|
@@ -31,4 +31,3 @@ export declare function toFullAttributeArray<GenericConfig extends AnyDialecteCo
|
|
|
31
31
|
attributes: Partial<AttributesValueObjectOf<GenericConfig, GenericElement>> | Partial<FullAttributeObjectOf<GenericConfig, GenericElement>>[];
|
|
32
32
|
dialecteConfig: GenericConfig;
|
|
33
33
|
}): FullAttributeObjectOf<GenericConfig, GenericElement>[];
|
|
34
|
-
//# sourceMappingURL=converter.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RawRecord, ChainRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, TreeRecord } from '../../types';
|
|
1
|
+
import type { RawRecord, ChainRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, TreeRecord } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Type guard to check if attributes are in array format (FullAttributeObject[])
|
|
4
4
|
*/
|
|
@@ -15,4 +15,3 @@ export declare function isChainRecord<GenericConfig extends AnyDialecteConfig, G
|
|
|
15
15
|
* Type guard to check if a record is an TreeRecord
|
|
16
16
|
*/
|
|
17
17
|
export declare function isTreeRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>>(record: RawRecord<GenericConfig, GenericElement> | ChainRecord<GenericConfig, GenericElement> | TreeRecord<GenericConfig, GenericElement>): record is TreeRecord<GenericConfig, GenericElement>;
|
|
18
|
-
//# sourceMappingURL=guard.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Operation, RawRecord, ElementsOf, AnyDialecteConfig } from '../../types';
|
|
1
|
+
import type { Operation, RawRecord, ElementsOf, AnyDialecteConfig } from '../../types';
|
|
2
2
|
export declare function addStagedOperation<GenericConfig extends AnyDialecteConfig>(params: {
|
|
3
3
|
context: {
|
|
4
4
|
stagedOperations: Operation<GenericConfig>[];
|
|
@@ -21,4 +21,3 @@ export declare function addStagedOperation<GenericConfig extends AnyDialecteConf
|
|
|
21
21
|
status: 'deleted';
|
|
22
22
|
record: RawRecord<GenericConfig, ElementsOf<GenericConfig>>;
|
|
23
23
|
}): void;
|
|
24
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FilterAttributes } from './types';
|
|
2
|
-
import { DatabaseInstance } from '../../../database';
|
|
3
|
-
import { AnyDialecteConfig, Context, ChainRecord, ElementsOf, RawRecord } from '../../../types';
|
|
1
|
+
import type { FilterAttributes } from './types';
|
|
2
|
+
import type { DatabaseInstance } from '../../../database';
|
|
3
|
+
import type { AnyDialecteConfig, Context, ChainRecord, ElementsOf, RawRecord } from '../../../types';
|
|
4
4
|
/**
|
|
5
5
|
* Find elements by tagName and attributes.
|
|
6
6
|
* Core primitive for all query operations.
|
|
@@ -23,4 +23,3 @@ export declare function matchesAttributeFilter<GenericConfig extends AnyDialecte
|
|
|
23
23
|
record: RawRecord<GenericConfig, GenericElement>;
|
|
24
24
|
attributeFilter?: FilterAttributes<GenericConfig, GenericElement>;
|
|
25
25
|
}): boolean;
|
|
26
|
-
//# sourceMappingURL=find-by-attributes.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DatabaseInstance } from '../../../database';
|
|
2
|
-
import { Operation, RawRecord, ElementsOf, AnyDialecteConfig, AnyElement, ChainRecord } from '../../../types';
|
|
1
|
+
import type { DatabaseInstance } from '../../../database';
|
|
2
|
+
import type { Operation, RawRecord, ElementsOf, AnyDialecteConfig, AnyElement, ChainRecord } from '../../../types';
|
|
3
3
|
export declare function getRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends AnyElement>(params: {
|
|
4
4
|
id: string;
|
|
5
5
|
tagName: GenericElement;
|
|
@@ -68,4 +68,3 @@ export declare function getLatestStagedRecord<GenericConfig extends AnyDialecteC
|
|
|
68
68
|
record: RawRecord<GenericConfig, GenericElement>;
|
|
69
69
|
status: Operation<GenericConfig>['status'];
|
|
70
70
|
} | undefined;
|
|
71
|
-
//# sourceMappingURL=record.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnyDialecteConfig, AttributesOf, AttributesValueObjectOf, ChainRecord, ElementsOf } from '../../../types';
|
|
2
|
+
export declare type FilterAttributes<GenericVersion extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericVersion>> = {
|
|
3
|
+
[K in AttributesOf<GenericVersion, GenericElement>]?: AttributesValueObjectOf<GenericVersion, GenericElement>[K] | Array<AttributesValueObjectOf<GenericVersion, GenericElement>[K]>;
|
|
4
|
+
};
|
|
5
|
+
export declare type GroupedRecordsByTagName<GenericConfig extends AnyDialecteConfig, GenericRecords extends readonly ChainRecord<GenericConfig, any>[]> = {
|
|
6
|
+
[K in GenericRecords[number]['tagName']]?: Extract<GenericRecords[number], {
|
|
7
|
+
tagName: K;
|
|
8
|
+
}>[];
|
|
9
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, RawRecord, AttributesValueObjectOf } from '../../types';
|
|
1
|
+
import type { AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, RawRecord, AttributesValueObjectOf } from '../../types';
|
|
2
2
|
export declare function standardizeRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>>(params: {
|
|
3
3
|
record: {
|
|
4
4
|
tagName: GenericElement;
|
|
@@ -6,4 +6,3 @@ export declare function standardizeRecord<GenericConfig extends AnyDialecteConfi
|
|
|
6
6
|
} & Partial<RawRecord<GenericConfig, GenericElement>>;
|
|
7
7
|
dialecteConfig: GenericConfig;
|
|
8
8
|
}): RawRecord<GenericConfig, GenericElement>;
|
|
9
|
-
//# sourceMappingURL=standardizing.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const IO_CONFIG: {
|
|
2
2
|
readonly supportedFileExtensions: readonly [".xml"];
|
|
3
|
-
};
|
|
3
|
+
}, satisfies: any, IOConfig: any;
|
|
4
4
|
export declare const DATABASE_CONFIG: {
|
|
5
5
|
readonly tables: {
|
|
6
6
|
readonly xmlElements: {
|
|
@@ -8,7 +8,7 @@ export declare const DATABASE_CONFIG: {
|
|
|
8
8
|
readonly schema: "id, tagName, [id+tagName], parent.id, parent.tagName, *children.id, *children.tagName";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
};
|
|
11
|
+
}, satisfies: any, DatabaseConfig: any;
|
|
12
12
|
export declare const TEST_DIALECTE_CONFIG: {
|
|
13
13
|
readonly rootElementName: "Root";
|
|
14
14
|
readonly singletonElements: readonly ["Root", "A", "B", "C", "D"];
|
|
@@ -28,37 +28,37 @@ export declare const TEST_DIALECTE_CONFIG: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
readonly attributes: {
|
|
31
|
-
readonly A: import(
|
|
32
|
-
readonly AAAA_1: import(
|
|
33
|
-
readonly AAAA_2: import(
|
|
34
|
-
readonly AAAA_3: import(
|
|
35
|
-
readonly AAA_1: import(
|
|
36
|
-
readonly AAA_2: import(
|
|
37
|
-
readonly AAA_3: import(
|
|
38
|
-
readonly AA_1: import(
|
|
39
|
-
readonly AA_2: import(
|
|
40
|
-
readonly AA_3: import(
|
|
41
|
-
readonly B: import(
|
|
42
|
-
readonly BBBB_1: import(
|
|
43
|
-
readonly BBBB_2: import(
|
|
44
|
-
readonly BBBB_3: import(
|
|
45
|
-
readonly BBB_1: import(
|
|
46
|
-
readonly BBB_2: import(
|
|
47
|
-
readonly BBB_3: import(
|
|
48
|
-
readonly BB_1: import(
|
|
49
|
-
readonly BB_2: import(
|
|
50
|
-
readonly BB_3: import(
|
|
51
|
-
readonly C: import(
|
|
52
|
-
readonly CCCC_1: import(
|
|
53
|
-
readonly CCCC_2: import(
|
|
54
|
-
readonly CCCC_3: import(
|
|
55
|
-
readonly CCC_1: import(
|
|
56
|
-
readonly CCC_2: import(
|
|
57
|
-
readonly CCC_3: import(
|
|
58
|
-
readonly CC_1: import(
|
|
59
|
-
readonly CC_2: import(
|
|
60
|
-
readonly CC_3: import(
|
|
61
|
-
readonly Root: import(
|
|
31
|
+
readonly A: import("./generated").AttributesA;
|
|
32
|
+
readonly AAAA_1: import("./generated").AttributesAAAA_1;
|
|
33
|
+
readonly AAAA_2: import("./generated").AttributesAAAA_2;
|
|
34
|
+
readonly AAAA_3: import("./generated").AttributesAAAA_3;
|
|
35
|
+
readonly AAA_1: import("./generated").AttributesAAA_1;
|
|
36
|
+
readonly AAA_2: import("./generated").AttributesAAA_2;
|
|
37
|
+
readonly AAA_3: import("./generated").AttributesAAA_3;
|
|
38
|
+
readonly AA_1: import("./generated").AttributesAA_1;
|
|
39
|
+
readonly AA_2: import("./generated").AttributesAA_2;
|
|
40
|
+
readonly AA_3: import("./generated").AttributesAA_3;
|
|
41
|
+
readonly B: import("./generated").AttributesB;
|
|
42
|
+
readonly BBBB_1: import("./generated").AttributesBBBB_1;
|
|
43
|
+
readonly BBBB_2: import("./generated").AttributesBBBB_2;
|
|
44
|
+
readonly BBBB_3: import("./generated").AttributesBBBB_3;
|
|
45
|
+
readonly BBB_1: import("./generated").AttributesBBB_1;
|
|
46
|
+
readonly BBB_2: import("./generated").AttributesBBB_2;
|
|
47
|
+
readonly BBB_3: import("./generated").AttributesBBB_3;
|
|
48
|
+
readonly BB_1: import("./generated").AttributesBB_1;
|
|
49
|
+
readonly BB_2: import("./generated").AttributesBB_2;
|
|
50
|
+
readonly BB_3: import("./generated").AttributesBB_3;
|
|
51
|
+
readonly C: import("./generated").AttributesC;
|
|
52
|
+
readonly CCCC_1: import("./generated").AttributesCCCC_1;
|
|
53
|
+
readonly CCCC_2: import("./generated").AttributesCCCC_2;
|
|
54
|
+
readonly CCCC_3: import("./generated").AttributesCCCC_3;
|
|
55
|
+
readonly CCC_1: import("./generated").AttributesCCC_1;
|
|
56
|
+
readonly CCC_2: import("./generated").AttributesCCC_2;
|
|
57
|
+
readonly CCC_3: import("./generated").AttributesCCC_3;
|
|
58
|
+
readonly CC_1: import("./generated").AttributesCC_1;
|
|
59
|
+
readonly CC_2: import("./generated").AttributesCC_2;
|
|
60
|
+
readonly CC_3: import("./generated").AttributesCC_3;
|
|
61
|
+
readonly Root: import("./generated").AttributesRoot;
|
|
62
62
|
};
|
|
63
63
|
readonly children: {
|
|
64
64
|
readonly A: readonly ["AA_1", "AA_2", "AA_3"];
|
|
@@ -203,7 +203,6 @@ export declare const TEST_DIALECTE_CONFIG: {
|
|
|
203
203
|
readonly io: {
|
|
204
204
|
readonly supportedFileExtensions: readonly [".xml"];
|
|
205
205
|
};
|
|
206
|
-
readonly definition: Record<string,
|
|
206
|
+
readonly definition: Record<string, ElementDefinition>;
|
|
207
207
|
readonly hooks: {};
|
|
208
|
-
};
|
|
209
|
-
//# sourceMappingURL=config.d.ts.map
|
|
208
|
+
}, satisfies: any, AnyDialecteConfig: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TEST_DIALECTE_CONFIG } from './config';
|
|
2
|
-
import { DialecteCore } from '../../dialecte';
|
|
3
|
-
import { AnyDialecteConfig, ExtensionRegistry } from '../../types';
|
|
4
|
-
type TestDialecteConfig = typeof TEST_DIALECTE_CONFIG;
|
|
2
|
+
import type { DialecteCore } from '../../dialecte';
|
|
3
|
+
import type { AnyDialecteConfig, ExtensionRegistry } from '../../types';
|
|
4
|
+
declare type TestDialecteConfig = typeof TEST_DIALECTE_CONFIG;
|
|
5
5
|
/**
|
|
6
6
|
* Create SDK instance from XML string for testing
|
|
7
7
|
* Imports the XML into a database and returns configured SDK
|
|
@@ -16,4 +16,3 @@ export declare function createTestDialecte<GenericConfig extends AnyDialecteConf
|
|
|
16
16
|
cleanup: () => Promise<void>;
|
|
17
17
|
}>;
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=create-test-dialecte.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvailableElement
|
|
1
|
+
import type { AvailableElement } from './types.generated';
|
|
2
2
|
export declare const ELEMENT_NAMES: readonly ["A", "AAAA_1", "AAAA_2", "AAAA_3", "AAA_1", "AAA_2", "AAA_3", "AA_1", "AA_2", "AA_3", "B", "BBBB_1", "BBBB_2", "BBBB_3", "BBB_1", "BBB_2", "BBB_3", "BB_1", "BB_2", "BB_3", "C", "CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3", "CC_1", "CC_2", "CC_3", "Root"];
|
|
3
3
|
export declare const ELEMENT_NAMES_WITH_ATTRIBUTES_PATTERNS: readonly [];
|
|
4
4
|
export declare const REQUIRED_ATTRIBUTES: {
|
|
@@ -33,41 +33,41 @@ export declare const REQUIRED_ATTRIBUTES: {
|
|
|
33
33
|
readonly CC_2: readonly ["aCC_2"];
|
|
34
34
|
readonly CC_3: readonly ["aCC_3"];
|
|
35
35
|
readonly Root: readonly ["root"];
|
|
36
|
-
};
|
|
37
|
-
export declare const PATTERNS: {};
|
|
36
|
+
}, satisfies: any, Record: any;
|
|
37
|
+
export declare const PATTERNS: {}, satisfies: any, Partial: any;
|
|
38
38
|
export declare const ATTRIBUTES: {
|
|
39
|
-
readonly A:
|
|
40
|
-
readonly AAAA_1:
|
|
41
|
-
readonly AAAA_2:
|
|
42
|
-
readonly AAAA_3:
|
|
43
|
-
readonly AAA_1:
|
|
44
|
-
readonly AAA_2:
|
|
45
|
-
readonly AAA_3:
|
|
46
|
-
readonly AA_1:
|
|
47
|
-
readonly AA_2:
|
|
48
|
-
readonly AA_3:
|
|
49
|
-
readonly B:
|
|
50
|
-
readonly BBBB_1:
|
|
51
|
-
readonly BBBB_2:
|
|
52
|
-
readonly BBBB_3:
|
|
53
|
-
readonly BBB_1:
|
|
54
|
-
readonly BBB_2:
|
|
55
|
-
readonly BBB_3:
|
|
56
|
-
readonly BB_1:
|
|
57
|
-
readonly BB_2:
|
|
58
|
-
readonly BB_3:
|
|
59
|
-
readonly C:
|
|
60
|
-
readonly CCCC_1:
|
|
61
|
-
readonly CCCC_2:
|
|
62
|
-
readonly CCCC_3:
|
|
63
|
-
readonly CCC_1:
|
|
64
|
-
readonly CCC_2:
|
|
65
|
-
readonly CCC_3:
|
|
66
|
-
readonly CC_1:
|
|
67
|
-
readonly CC_2:
|
|
68
|
-
readonly CC_3:
|
|
69
|
-
readonly Root:
|
|
70
|
-
};
|
|
39
|
+
readonly A: import("./types.generated").AttributesA;
|
|
40
|
+
readonly AAAA_1: import("./types.generated").AttributesAAAA_1;
|
|
41
|
+
readonly AAAA_2: import("./types.generated").AttributesAAAA_2;
|
|
42
|
+
readonly AAAA_3: import("./types.generated").AttributesAAAA_3;
|
|
43
|
+
readonly AAA_1: import("./types.generated").AttributesAAA_1;
|
|
44
|
+
readonly AAA_2: import("./types.generated").AttributesAAA_2;
|
|
45
|
+
readonly AAA_3: import("./types.generated").AttributesAAA_3;
|
|
46
|
+
readonly AA_1: import("./types.generated").AttributesAA_1;
|
|
47
|
+
readonly AA_2: import("./types.generated").AttributesAA_2;
|
|
48
|
+
readonly AA_3: import("./types.generated").AttributesAA_3;
|
|
49
|
+
readonly B: import("./types.generated").AttributesB;
|
|
50
|
+
readonly BBBB_1: import("./types.generated").AttributesBBBB_1;
|
|
51
|
+
readonly BBBB_2: import("./types.generated").AttributesBBBB_2;
|
|
52
|
+
readonly BBBB_3: import("./types.generated").AttributesBBBB_3;
|
|
53
|
+
readonly BBB_1: import("./types.generated").AttributesBBB_1;
|
|
54
|
+
readonly BBB_2: import("./types.generated").AttributesBBB_2;
|
|
55
|
+
readonly BBB_3: import("./types.generated").AttributesBBB_3;
|
|
56
|
+
readonly BB_1: import("./types.generated").AttributesBB_1;
|
|
57
|
+
readonly BB_2: import("./types.generated").AttributesBB_2;
|
|
58
|
+
readonly BB_3: import("./types.generated").AttributesBB_3;
|
|
59
|
+
readonly C: import("./types.generated").AttributesC;
|
|
60
|
+
readonly CCCC_1: import("./types.generated").AttributesCCCC_1;
|
|
61
|
+
readonly CCCC_2: import("./types.generated").AttributesCCCC_2;
|
|
62
|
+
readonly CCCC_3: import("./types.generated").AttributesCCCC_3;
|
|
63
|
+
readonly CCC_1: import("./types.generated").AttributesCCC_1;
|
|
64
|
+
readonly CCC_2: import("./types.generated").AttributesCCC_2;
|
|
65
|
+
readonly CCC_3: import("./types.generated").AttributesCCC_3;
|
|
66
|
+
readonly CC_1: import("./types.generated").AttributesCC_1;
|
|
67
|
+
readonly CC_2: import("./types.generated").AttributesCC_2;
|
|
68
|
+
readonly CC_3: import("./types.generated").AttributesCC_3;
|
|
69
|
+
readonly Root: import("./types.generated").AttributesRoot;
|
|
70
|
+
}, satisfies: any, AttributesOf: any;
|
|
71
71
|
export declare const CHILDREN: {
|
|
72
72
|
readonly A: readonly ["AA_1", "AA_2", "AA_3"];
|
|
73
73
|
readonly AAAA_1: readonly [];
|
|
@@ -100,7 +100,7 @@ export declare const CHILDREN: {
|
|
|
100
100
|
readonly CC_2: readonly ["CCC_1", "CCC_2", "CCC_3"];
|
|
101
101
|
readonly CC_3: readonly ["CCC_1", "CCC_2", "CCC_3"];
|
|
102
102
|
readonly Root: readonly ["A", "B", "C"];
|
|
103
|
-
};
|
|
103
|
+
}, satisfies: any, Record: any;
|
|
104
104
|
export declare const PARENTS: {
|
|
105
105
|
readonly A: readonly ["Root"];
|
|
106
106
|
readonly AAAA_1: readonly ["AAA_1"];
|
|
@@ -133,7 +133,7 @@ export declare const PARENTS: {
|
|
|
133
133
|
readonly CC_2: readonly ["C"];
|
|
134
134
|
readonly CC_3: readonly ["C"];
|
|
135
135
|
readonly Root: readonly [];
|
|
136
|
-
};
|
|
136
|
+
}, satisfies: any, Record: any;
|
|
137
137
|
/**
|
|
138
138
|
* DESCENDANTS maps each element to all its possible descendants (children, grandchildren, etc.)
|
|
139
139
|
* Computed by traversing the CHILDREN graph.
|
|
@@ -170,7 +170,7 @@ export declare const DESCENDANTS: {
|
|
|
170
170
|
readonly CC_2: readonly ["CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3"];
|
|
171
171
|
readonly CC_3: readonly ["CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3"];
|
|
172
172
|
readonly Root: readonly ["A", "AAAA_1", "AAAA_2", "AAAA_3", "AAA_1", "AAA_2", "AAA_3", "AA_1", "AA_2", "AA_3", "B", "BBBB_1", "BBBB_2", "BBBB_3", "BBB_1", "BBB_2", "BBB_3", "BB_1", "BB_2", "BB_3", "C", "CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3", "CC_1", "CC_2", "CC_3"];
|
|
173
|
-
};
|
|
173
|
+
}, satisfies: any, Record: any;
|
|
174
174
|
/**
|
|
175
175
|
* ANCESTORS maps each element to all its possible ancestors (parents, grandparents, etc.)
|
|
176
176
|
* Computed by traversing the PARENTS graph.
|
|
@@ -207,13 +207,12 @@ export declare const ANCESTORS: {
|
|
|
207
207
|
readonly CC_2: readonly ["C", "Root"];
|
|
208
208
|
readonly CC_3: readonly ["C", "Root"];
|
|
209
209
|
readonly Root: readonly [];
|
|
210
|
-
};
|
|
210
|
+
}, satisfies: any, Record: any;
|
|
211
211
|
/**
|
|
212
212
|
* Type helper to get all descendants of an element
|
|
213
213
|
*/
|
|
214
|
-
export type DescendantsOf<T extends AvailableElement> = (typeof DESCENDANTS)[T][number];
|
|
214
|
+
export declare type DescendantsOf<T extends AvailableElement> = (typeof DESCENDANTS)[T][number];
|
|
215
215
|
/**
|
|
216
216
|
* Type helper to get all ancestors of an element
|
|
217
217
|
*/
|
|
218
|
-
export type AncestorsOf<T extends AvailableElement> = (typeof ANCESTORS)[T][number];
|
|
219
|
-
//# sourceMappingURL=constants.generated.d.ts.map
|
|
218
|
+
export declare type AncestorsOf<T extends AvailableElement> = (typeof ANCESTORS)[T][number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFINITION: Record<string, ElementDefinition>;
|