@constructive-io/schema-builder 0.2.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.
- package/CHANGELOG.md +26 -0
- package/LICENSE +21 -0
- package/README.md +33 -0
- package/dist/core.cjs +213 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +54 -0
- package/dist/core.d.ts +54 -0
- package/dist/core.js +202 -0
- package/dist/core.js.map +1 -0
- package/dist/fields.cjs +7764 -0
- package/dist/fields.cjs.map +1 -0
- package/dist/fields.d.cts +49 -0
- package/dist/fields.d.ts +49 -0
- package/dist/fields.js +7737 -0
- package/dist/fields.js.map +1 -0
- package/dist/generated-types-CnAlqHU_.d.cts +25 -0
- package/dist/generated-types-CnAlqHU_.d.ts +25 -0
- package/dist/index.cjs +13752 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +13720 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes.cjs +1043 -0
- package/dist/indexes.cjs.map +1 -0
- package/dist/indexes.d.cts +36 -0
- package/dist/indexes.d.ts +36 -0
- package/dist/indexes.js +1018 -0
- package/dist/indexes.js.map +1 -0
- package/dist/policies.cjs +5940 -0
- package/dist/policies.cjs.map +1 -0
- package/dist/policies.d.cts +103 -0
- package/dist/policies.d.ts +103 -0
- package/dist/policies.js +5913 -0
- package/dist/policies.js.map +1 -0
- package/dist/policy-types-CEYAR5TN.d.cts +79 -0
- package/dist/policy-types-CEYAR5TN.d.ts +79 -0
- package/dist/relationships.cjs +4329 -0
- package/dist/relationships.cjs.map +1 -0
- package/dist/relationships.d.cts +121 -0
- package/dist/relationships.d.ts +121 -0
- package/dist/relationships.js +4302 -0
- package/dist/relationships.js.map +1 -0
- package/dist/tables.cjs +5645 -0
- package/dist/tables.cjs.map +1 -0
- package/dist/tables.d.cts +29 -0
- package/dist/tables.d.ts +29 -0
- package/dist/tables.js +5620 -0
- package/dist/tables.js.map +1 -0
- package/dist/testing.cjs +69 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +7 -0
- package/dist/testing.d.ts +7 -0
- package/dist/testing.js +67 -0
- package/dist/testing.js.map +1 -0
- package/dist/types-Du86atZ8.d.cts +199 -0
- package/dist/types-Du86atZ8.d.ts +199 -0
- package/dist/types-bX2dCrdl.d.cts +52 -0
- package/dist/types-bX2dCrdl.d.ts +52 -0
- package/package.json +165 -0
- package/src/styles.css +2 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { G as GeneratedNode } from './generated-types-CnAlqHU_.cjs';
|
|
3
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
|
+
import { F as FieldDefinition } from './types-bX2dCrdl.cjs';
|
|
5
|
+
export { h as SchemaBuilderFieldsCapabilities } from './types-Du86atZ8.cjs';
|
|
6
|
+
|
|
7
|
+
declare function TableEditor(): react.JSX.Element;
|
|
8
|
+
|
|
9
|
+
interface CreateFieldData {
|
|
10
|
+
field: FieldDefinition;
|
|
11
|
+
tableId: string;
|
|
12
|
+
databaseId: string;
|
|
13
|
+
tableName: string;
|
|
14
|
+
existingPrimaryKeyConstraintId?: string;
|
|
15
|
+
allPrimaryKeyFieldIds?: string[];
|
|
16
|
+
}
|
|
17
|
+
interface UpdateFieldData {
|
|
18
|
+
id: string;
|
|
19
|
+
field: FieldDefinition;
|
|
20
|
+
tableId: string;
|
|
21
|
+
databaseId: string;
|
|
22
|
+
tableName: string;
|
|
23
|
+
existingPrimaryKeyConstraintId?: string;
|
|
24
|
+
existingUniqueConstraintId?: string;
|
|
25
|
+
allPrimaryKeyFieldIds?: string[];
|
|
26
|
+
wasPartOfPrimaryKey?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface DeleteFieldData {
|
|
29
|
+
id: string;
|
|
30
|
+
primaryKeyConstraintId?: string;
|
|
31
|
+
uniqueConstraintId?: string;
|
|
32
|
+
allPrimaryKeyFieldIds?: string[];
|
|
33
|
+
wasPartOfPrimaryKey?: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface FieldOrderUpdate {
|
|
36
|
+
id: string;
|
|
37
|
+
fieldOrder: number;
|
|
38
|
+
}
|
|
39
|
+
interface CreatedField {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}
|
|
44
|
+
declare function useCreateField(): _tanstack_react_query.UseMutationResult<CreatedField, Error, CreateFieldData, unknown>;
|
|
45
|
+
declare function useUpdateField(): _tanstack_react_query.UseMutationResult<GeneratedNode, Error, UpdateFieldData, unknown>;
|
|
46
|
+
declare function useDeleteField(): _tanstack_react_query.UseMutationResult<string, Error, DeleteFieldData, unknown>;
|
|
47
|
+
declare function useUpdateFieldOrder(): _tanstack_react_query.UseMutationResult<FieldOrderUpdate[], Error, FieldOrderUpdate[], unknown>;
|
|
48
|
+
|
|
49
|
+
export { type CreateFieldData, type DeleteFieldData, type FieldOrderUpdate, TableEditor, type UpdateFieldData, useCreateField, useDeleteField, useUpdateField, useUpdateFieldOrder };
|
package/dist/fields.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { G as GeneratedNode } from './generated-types-CnAlqHU_.js';
|
|
3
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
|
+
import { F as FieldDefinition } from './types-bX2dCrdl.js';
|
|
5
|
+
export { h as SchemaBuilderFieldsCapabilities } from './types-Du86atZ8.js';
|
|
6
|
+
|
|
7
|
+
declare function TableEditor(): react.JSX.Element;
|
|
8
|
+
|
|
9
|
+
interface CreateFieldData {
|
|
10
|
+
field: FieldDefinition;
|
|
11
|
+
tableId: string;
|
|
12
|
+
databaseId: string;
|
|
13
|
+
tableName: string;
|
|
14
|
+
existingPrimaryKeyConstraintId?: string;
|
|
15
|
+
allPrimaryKeyFieldIds?: string[];
|
|
16
|
+
}
|
|
17
|
+
interface UpdateFieldData {
|
|
18
|
+
id: string;
|
|
19
|
+
field: FieldDefinition;
|
|
20
|
+
tableId: string;
|
|
21
|
+
databaseId: string;
|
|
22
|
+
tableName: string;
|
|
23
|
+
existingPrimaryKeyConstraintId?: string;
|
|
24
|
+
existingUniqueConstraintId?: string;
|
|
25
|
+
allPrimaryKeyFieldIds?: string[];
|
|
26
|
+
wasPartOfPrimaryKey?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface DeleteFieldData {
|
|
29
|
+
id: string;
|
|
30
|
+
primaryKeyConstraintId?: string;
|
|
31
|
+
uniqueConstraintId?: string;
|
|
32
|
+
allPrimaryKeyFieldIds?: string[];
|
|
33
|
+
wasPartOfPrimaryKey?: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface FieldOrderUpdate {
|
|
36
|
+
id: string;
|
|
37
|
+
fieldOrder: number;
|
|
38
|
+
}
|
|
39
|
+
interface CreatedField {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}
|
|
44
|
+
declare function useCreateField(): _tanstack_react_query.UseMutationResult<CreatedField, Error, CreateFieldData, unknown>;
|
|
45
|
+
declare function useUpdateField(): _tanstack_react_query.UseMutationResult<GeneratedNode, Error, UpdateFieldData, unknown>;
|
|
46
|
+
declare function useDeleteField(): _tanstack_react_query.UseMutationResult<string, Error, DeleteFieldData, unknown>;
|
|
47
|
+
declare function useUpdateFieldOrder(): _tanstack_react_query.UseMutationResult<FieldOrderUpdate[], Error, FieldOrderUpdate[], unknown>;
|
|
48
|
+
|
|
49
|
+
export { type CreateFieldData, type DeleteFieldData, type FieldOrderUpdate, TableEditor, type UpdateFieldData, useCreateField, useDeleteField, useUpdateField, useUpdateFieldOrder };
|