@nocobase/plugin-data-source-manager 0.20.0-alpha.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.
Files changed (119) hide show
  1. package/README.md +1 -0
  2. package/client.d.ts +2 -0
  3. package/client.js +1 -0
  4. package/dist/client/DatabaseConnectionProvider.d.ts +3 -0
  5. package/dist/client/ThridDataSource.d.ts +4 -0
  6. package/dist/client/component/BreadcumbTitle.d.ts +2 -0
  7. package/dist/client/component/CollectionsManager/AddFieldAction.d.ts +5 -0
  8. package/dist/client/component/CollectionsManager/CollectionFields.d.ts +8 -0
  9. package/dist/client/component/CollectionsManager/ConfigurationTable.d.ts +2 -0
  10. package/dist/client/component/CollectionsManager/ConfigurationTabs.d.ts +2 -0
  11. package/dist/client/component/CollectionsManager/EditCollectionAction.d.ts +6 -0
  12. package/dist/client/component/CollectionsManager/EditFieldAction.d.ts +2 -0
  13. package/dist/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.d.ts +2 -0
  14. package/dist/client/component/CollectionsManager/components/CollectionName.d.ts +1 -0
  15. package/dist/client/component/CollectionsManager/components/FieldTitleInput.d.ts +2 -0
  16. package/dist/client/component/CollectionsManager/components/FieldType.d.ts +2 -0
  17. package/dist/client/component/CollectionsManager/components/TitleField.d.ts +2 -0
  18. package/dist/client/component/CollectionsManager/components/UnSupportFields.d.ts +2 -0
  19. package/dist/client/component/CollectionsManager/components/index.d.ts +6 -0
  20. package/dist/client/component/CollectionsManager/hooks.d.ts +12 -0
  21. package/dist/client/component/CollectionsManager/index.d.ts +2 -0
  22. package/dist/client/component/CollectionsManager/schema/collectionFields.d.ts +4 -0
  23. package/dist/client/component/CollectionsManager/schema/collections.d.ts +64 -0
  24. package/dist/client/component/CreateDatabaseConnectAction.d.ts +2 -0
  25. package/dist/client/component/DatabaseConnectionManager.d.ts +2 -0
  26. package/dist/client/component/EditDatabaseConnectionAction.d.ts +2 -0
  27. package/dist/client/component/MainDataSourceManager/Configuration/AddCategoryAction.d.ts +3 -0
  28. package/dist/client/component/MainDataSourceManager/Configuration/CollectionFields.d.ts +2 -0
  29. package/dist/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.d.ts +15 -0
  30. package/dist/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.d.ts +8 -0
  31. package/dist/client/component/MainDataSourceManager/Configuration/ConfigurationTable.d.ts +2 -0
  32. package/dist/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.d.ts +2 -0
  33. package/dist/client/component/MainDataSourceManager/Configuration/EditCategoryAction.d.ts +3 -0
  34. package/dist/client/component/MainDataSourceManager/Configuration/index.d.ts +6 -0
  35. package/dist/client/component/MainDataSourceManager/Configuration/interfaces.d.ts +16 -0
  36. package/dist/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.d.ts +5 -0
  37. package/dist/client/component/MainDataSourceManager/Configuration/schemas/collections.d.ts +7 -0
  38. package/dist/client/component/MainDataSourceManager/index.d.ts +2 -0
  39. package/dist/client/component/PermissionManager/DataSourceTable.d.ts +3 -0
  40. package/dist/client/component/PermissionManager/PermisionProvider.d.ts +5 -0
  41. package/dist/client/component/PermissionManager/RoleConfigure.d.ts +2 -0
  42. package/dist/client/component/PermissionManager/RolesResourcesActions.d.ts +3 -0
  43. package/dist/client/component/PermissionManager/ScopeSelect.d.ts +3 -0
  44. package/dist/client/component/PermissionManager/StrategyActions.d.ts +2 -0
  45. package/dist/client/component/PermissionManager/index.d.ts +3 -0
  46. package/dist/client/component/PermissionManager/schemas/dataSourceTable.d.ts +2 -0
  47. package/dist/client/component/PermissionManager/schemas/roleCollections.d.ts +2 -0
  48. package/dist/client/component/PermissionManager/schemas/scopes.d.ts +122 -0
  49. package/dist/client/component/PermissionManager/schemas/useRoleResourceValues.d.ts +8 -0
  50. package/dist/client/component/PermissionManager/schemas/useSaveRoleResourceAction.d.ts +3 -0
  51. package/dist/client/component/PermissionManager/style.d.ts +1 -0
  52. package/dist/client/component/ViewDatabaseConnectionAction.d.ts +2 -0
  53. package/dist/client/constant.d.ts +1 -0
  54. package/dist/client/hooks/index.d.ts +6 -0
  55. package/dist/client/index.d.ts +9 -0
  56. package/dist/client/index.js +67 -0
  57. package/dist/client/locale/index.d.ts +2 -0
  58. package/dist/client/schema/index.d.ts +7 -0
  59. package/dist/externalVersion.js +24 -0
  60. package/dist/index.d.ts +2 -0
  61. package/dist/index.js +39 -0
  62. package/dist/locale/zh-CN.json +33 -0
  63. package/dist/server/collections/data-sources-collections.d.ts +2 -0
  64. package/dist/server/collections/data-sources-collections.js +60 -0
  65. package/dist/server/collections/data-sources-fields.d.ts +2 -0
  66. package/dist/server/collections/data-sources-fields.js +86 -0
  67. package/dist/server/collections/data-sources-roles-resources-actions.d.ts +2 -0
  68. package/dist/server/collections/data-sources-roles-resources-actions.js +52 -0
  69. package/dist/server/collections/data-sources-roles-resources-scopes.d.ts +2 -0
  70. package/dist/server/collections/data-sources-roles-resources-scopes.js +56 -0
  71. package/dist/server/collections/data-sources-roles-resources.d.ts +2 -0
  72. package/dist/server/collections/data-sources-roles-resources.js +62 -0
  73. package/dist/server/collections/data-sources-roles.d.ts +2 -0
  74. package/dist/server/collections/data-sources-roles.js +53 -0
  75. package/dist/server/collections/data-sources.d.ts +2 -0
  76. package/dist/server/collections/data-sources.js +70 -0
  77. package/dist/server/errors/type-infer-error.d.ts +2 -0
  78. package/dist/server/errors/type-infer-error.js +28 -0
  79. package/dist/server/index.d.ts +2 -0
  80. package/dist/server/index.js +39 -0
  81. package/dist/server/migrations/20240301164024-migrate-acl-resources.d.ts +7 -0
  82. package/dist/server/migrations/20240301164024-migrate-acl-resources.js +117 -0
  83. package/dist/server/models/connections-roles-resources-action.d.ts +3 -0
  84. package/dist/server/models/connections-roles-resources-action.js +29 -0
  85. package/dist/server/models/connections-roles-resources.d.ts +3 -0
  86. package/dist/server/models/connections-roles-resources.js +29 -0
  87. package/dist/server/models/data-source.d.ts +17 -0
  88. package/dist/server/models/data-source.js +166 -0
  89. package/dist/server/models/data-sources-collection-model.d.ts +7 -0
  90. package/dist/server/models/data-sources-collection-model.js +37 -0
  91. package/dist/server/models/data-sources-field-model.d.ts +10 -0
  92. package/dist/server/models/data-sources-field-model.js +48 -0
  93. package/dist/server/models/data-sources-roles-model.d.ts +11 -0
  94. package/dist/server/models/data-sources-roles-model.js +57 -0
  95. package/dist/server/plugin.d.ts +13 -0
  96. package/dist/server/plugin.js +416 -0
  97. package/dist/server/resourcers/data-sources-collections-fields.d.ts +11 -0
  98. package/dist/server/resourcers/data-sources-collections-fields.js +131 -0
  99. package/dist/server/resourcers/data-sources-collections.d.ts +8 -0
  100. package/dist/server/resourcers/data-sources-collections.js +106 -0
  101. package/dist/server/resourcers/data-sources-resources.d.ts +9 -0
  102. package/dist/server/resourcers/data-sources-resources.js +88 -0
  103. package/dist/server/resourcers/data-sources-roles.d.ts +8 -0
  104. package/dist/server/resourcers/data-sources-roles.js +72 -0
  105. package/dist/server/resourcers/roles-data-sources-collections.d.ts +7 -0
  106. package/dist/server/resourcers/roles-data-sources-collections.js +101 -0
  107. package/dist/server/services/collection-manager.d.ts +6 -0
  108. package/dist/server/services/collection-manager.js +33 -0
  109. package/dist/server/services/database-introspector.d.ts +70 -0
  110. package/dist/server/services/database-introspector.js +235 -0
  111. package/dist/server/services/full-data-repository.d.ts +8 -0
  112. package/dist/server/services/full-data-repository.js +51 -0
  113. package/dist/server/services/type-interface-map.d.ts +183 -0
  114. package/dist/server/services/type-interface-map.js +243 -0
  115. package/dist/server/utils.d.ts +1 -0
  116. package/dist/server/utils.js +38 -0
  117. package/package.json +18 -0
  118. package/server.d.ts +2 -0
  119. package/server.js +1 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @nocobase/plugin-data-source-manager
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,3 @@
1
+ import React, { FC } from 'react';
2
+ export declare const DataSourceContext: React.Context<any>;
3
+ export declare const DatabaseConnectionProvider: FC;
@@ -0,0 +1,4 @@
1
+ import { DataSourceOptions, DataSource } from '@nocobase/client';
2
+ export declare class ThirdDataSource extends DataSource {
3
+ getDataSource(): Promise<DataSourceOptions>;
4
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const BreadcumbTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const useCollectionFieldFormValues: () => {
3
+ getValues(): any;
4
+ };
5
+ export declare const AddCollectionField: (props: any) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Collection } from '@nocobase/client';
3
+ export declare const useRemoteCollectionContext: () => {
4
+ targetCollection: Collection;
5
+ refreshRM: Function;
6
+ titleField: string;
7
+ };
8
+ export declare const CollectionFields: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigurationTable: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigurationTabs: () => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const useValuesFromRecord: (options: any) => import("@nocobase/client").UseRequestResult<unknown>;
3
+ export declare const useUpdateCollectionActionAndRefreshCM: (options: any) => {
4
+ run(): Promise<void>;
5
+ };
6
+ export declare const EditCollection: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EditCollectionField: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CollectionFieldInterfaceSelect: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
@@ -0,0 +1 @@
1
+ export declare const CollectionName: any;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FieldTitleInput: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FieldType: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TitleField: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const UnSupportFields: () => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const SourceKey: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
3
+ export declare const ForeignKey: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
4
+ export declare const TargetKey: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
5
+ export declare const SourceCollection: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
6
+ export declare const ThroughCollection: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
@@ -0,0 +1,12 @@
1
+ export declare const useDestroyAction: () => {
2
+ run(): Promise<void>;
3
+ };
4
+ export declare const useBulkDestroyAction: () => {
5
+ run(): Promise<boolean>;
6
+ };
7
+ export declare const useBulkDestroyActionAndRefreshCM: () => {
8
+ run(): Promise<void>;
9
+ };
10
+ export declare const useDestroyActionAndRefreshCM: () => {
11
+ run(): Promise<void>;
12
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CollectionManagerPage: () => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ISchema } from '@formily/react';
2
+ import { CollectionOptions } from '@nocobase/client';
3
+ export declare const collection: CollectionOptions;
4
+ export declare const fieldsTableSchema: ISchema;
@@ -0,0 +1,64 @@
1
+ import { ISchema } from '@formily/react';
2
+ import { CollectionOptions } from '@nocobase/client';
3
+ export declare const compile: (source: any) => any;
4
+ export declare const collection: CollectionOptions;
5
+ export declare const getCollectionSchema: (dataSourceKey: any) => import("@formily/react").Stringify<{
6
+ [key: symbol]: any;
7
+ [key: `x-${string}`]: any;
8
+ [key: `x-${number}`]: any;
9
+ version?: string;
10
+ name?: import("@formily/react").SchemaKey;
11
+ title?: any;
12
+ description?: any;
13
+ default?: any;
14
+ readOnly?: boolean;
15
+ writeOnly?: boolean;
16
+ type?: import("@formily/react").SchemaTypes;
17
+ enum?: import("@formily/react").SchemaEnum<any>;
18
+ const?: any;
19
+ multipleOf?: number;
20
+ maximum?: number;
21
+ exclusiveMaximum?: number;
22
+ minimum?: number;
23
+ exclusiveMinimum?: number;
24
+ maxLength?: number;
25
+ minLength?: number;
26
+ pattern?: string | RegExp;
27
+ maxItems?: number;
28
+ minItems?: number;
29
+ uniqueItems?: boolean;
30
+ maxProperties?: number;
31
+ minProperties?: number;
32
+ required?: string | boolean | string[];
33
+ format?: string;
34
+ $ref?: string;
35
+ $namespace?: string;
36
+ definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
37
+ properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
38
+ items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
39
+ additionalItems?: import("@formily/react").Stringify<any>;
40
+ patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
41
+ additionalProperties?: import("@formily/react").Stringify<any>;
42
+ "x-value"?: any;
43
+ "x-index"?: number;
44
+ "x-pattern"?: any;
45
+ "x-display"?: any;
46
+ "x-validator"?: any;
47
+ "x-decorator"?: any;
48
+ "x-decorator-props"?: any;
49
+ "x-component"?: any;
50
+ "x-component-props"?: any;
51
+ "x-reactions"?: import("@formily/react").SchemaReactions<any>;
52
+ "x-content"?: any;
53
+ "x-data"?: any;
54
+ "x-visible"?: boolean;
55
+ "x-hidden"?: boolean;
56
+ "x-disabled"?: boolean;
57
+ "x-editable"?: boolean;
58
+ "x-read-only"?: boolean;
59
+ "x-read-pretty"?: boolean;
60
+ "x-compile-omitted"?: string[];
61
+ }>;
62
+ export declare const collectionTableSchema: ISchema;
63
+ export declare const collectionCategorySchema: ISchema;
64
+ export declare const collectionCategoryEditSchema: ISchema;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CreateDatabaseConnectAction: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DatabaseConnectionManagerPane: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EditDatabaseConnectionAction: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const AddCategory: (props: any) => React.JSX.Element;
3
+ export declare const AddCategoryAction: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CollectionFields: () => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { Options, Result } from 'ahooks/es/useRequest/src/types';
2
+ import { TableProps } from 'antd';
3
+ import React from 'react';
4
+ type TableVoidProps = TableProps<any> & {
5
+ request?: any;
6
+ useSelectedRowKeys?: any;
7
+ useDataSource?: (options?: Options<any, any> & {
8
+ uid?: string;
9
+ }, props?: any) => Result<any, any> & {
10
+ state?: any;
11
+ setState?: any;
12
+ };
13
+ };
14
+ export declare const CollectionFieldsTable: React.FC<TableVoidProps>;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const components: {
3
+ body: {
4
+ row: (props: any) => React.JSX.Element;
5
+ cell: (props: any) => React.JSX.Element;
6
+ };
7
+ };
8
+ export declare const CollectionFieldsTableArray: React.FC<any>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigurationTable: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigurationTabs: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const EditCategory: (props: any) => React.JSX.Element;
3
+ export declare const EditCategoryAction: (props: any) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export * from './ConfigurationTable';
2
+ export * from './CollectionFieldsTable';
3
+ export * from './schemas/collections';
4
+ export * from './ConfigurationTabs';
5
+ export * from './AddCategoryAction';
6
+ export * from './EditCategoryAction';
@@ -0,0 +1,16 @@
1
+ import { CollectionFieldInterface } from '@nocobase/client';
2
+ export declare const getOptions: (fieldInterfaces: Record<string, CollectionFieldInterface[]>, fieldGroups: Record<string, {
3
+ label: string;
4
+ order?: number;
5
+ }>) => {
6
+ key: string;
7
+ children: any[];
8
+ label: string;
9
+ order?: number;
10
+ }[];
11
+ export declare const useFieldInterfaceOptions: () => {
12
+ key: string;
13
+ children: any[];
14
+ label: string;
15
+ order?: number;
16
+ }[];
@@ -0,0 +1,5 @@
1
+ import { ISchema } from '@formily/react';
2
+ import { CollectionOptions } from '@nocobase/client';
3
+ export declare const collection: CollectionOptions;
4
+ export declare const collectionFieldSchema: ISchema;
5
+ export declare const overridingSchema: ISchema;
@@ -0,0 +1,7 @@
1
+ import { ISchema } from '@formily/react';
2
+ import type { CollectionOptions } from '@nocobase/client';
3
+ export declare const collection: CollectionOptions;
4
+ export declare const collectionSchema: ISchema;
5
+ export declare const collectionTableSchema: ISchema;
6
+ export declare const collectionCategorySchema: ISchema;
7
+ export declare const collectionCategoryEditSchema: ISchema;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MainDataSourceManager: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const useAvailableActions: () => any[];
3
+ export declare const DataSourceTable: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SettingCenterPermissionProvider: (props: any) => React.JSX.Element;
3
+ export declare const PermissionContext: React.Context<any>;
4
+ export declare const PermissionProvider: (props: any) => React.JSX.Element;
5
+ export declare const RoleRecordProvider: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const RoleConfigure: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const RoleResourceCollectionContext: React.Context<any>;
3
+ export declare const RolesResourcesActions: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const useRolesResourcesScopesSelectedRowKeys: () => any;
3
+ export declare const ScopeSelect: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const StrategyActions: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const CurrentRolesContext: React.Context<any>;
3
+ export declare const DataSourcePermissionManager: ({ role }: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ISchema } from '@formily/react';
2
+ export declare const dataSourceSchema: ISchema;
@@ -0,0 +1,2 @@
1
+ import { ISchema } from '@formily/react';
2
+ export declare const roleCollectionsSchema: ISchema;
@@ -0,0 +1,122 @@
1
+ export declare const rolesResourcesScopesCollection: (dataSourceKey?: string) => {
2
+ name: string;
3
+ fields: {
4
+ type: string;
5
+ name: string;
6
+ interface: string;
7
+ uiSchema: import("@formily/react").Stringify<{
8
+ [key: symbol]: any;
9
+ [key: `x-${string}`]: any;
10
+ [key: `x-${number}`]: any;
11
+ version?: string;
12
+ name?: import("@formily/react").SchemaKey;
13
+ title?: any;
14
+ description?: any;
15
+ default?: any;
16
+ readOnly?: boolean;
17
+ writeOnly?: boolean;
18
+ type?: import("@formily/react").SchemaTypes;
19
+ enum?: import("@formily/react").SchemaEnum<any>;
20
+ const?: any;
21
+ multipleOf?: number;
22
+ maximum?: number;
23
+ exclusiveMaximum?: number;
24
+ minimum?: number;
25
+ exclusiveMinimum?: number;
26
+ maxLength?: number;
27
+ minLength?: number;
28
+ pattern?: string | RegExp;
29
+ maxItems?: number;
30
+ minItems?: number;
31
+ uniqueItems?: boolean;
32
+ maxProperties?: number;
33
+ minProperties?: number;
34
+ required?: string | boolean | string[];
35
+ format?: string;
36
+ $ref?: string;
37
+ $namespace?: string;
38
+ definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
39
+ properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
40
+ items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
41
+ additionalItems?: import("@formily/react").Stringify<any>;
42
+ patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
43
+ additionalProperties?: import("@formily/react").Stringify<any>;
44
+ "x-value"?: any;
45
+ "x-index"?: number;
46
+ "x-pattern"?: any;
47
+ "x-display"?: any;
48
+ "x-validator"?: any;
49
+ "x-decorator"?: any;
50
+ "x-decorator-props"?: any;
51
+ "x-component"?: any;
52
+ "x-component-props"?: any;
53
+ "x-reactions"?: import("@formily/react").SchemaReactions<any>;
54
+ "x-content"?: any;
55
+ "x-data"?: any;
56
+ "x-visible"?: boolean;
57
+ "x-hidden"?: boolean;
58
+ "x-disabled"?: boolean;
59
+ "x-editable"?: boolean;
60
+ "x-read-only"?: boolean;
61
+ "x-read-pretty"?: boolean;
62
+ "x-compile-omitted"?: string[];
63
+ }>;
64
+ }[];
65
+ };
66
+ export declare const getScopesSchema: (dataSourceKey: any) => import("@formily/react").Stringify<{
67
+ [key: symbol]: any;
68
+ [key: `x-${string}`]: any;
69
+ [key: `x-${number}`]: any;
70
+ version?: string;
71
+ name?: import("@formily/react").SchemaKey;
72
+ title?: any;
73
+ description?: any;
74
+ default?: any;
75
+ readOnly?: boolean;
76
+ writeOnly?: boolean;
77
+ type?: import("@formily/react").SchemaTypes;
78
+ enum?: import("@formily/react").SchemaEnum<any>;
79
+ const?: any;
80
+ multipleOf?: number;
81
+ maximum?: number;
82
+ exclusiveMaximum?: number;
83
+ minimum?: number;
84
+ exclusiveMinimum?: number;
85
+ maxLength?: number;
86
+ minLength?: number;
87
+ pattern?: string | RegExp;
88
+ maxItems?: number;
89
+ minItems?: number;
90
+ uniqueItems?: boolean;
91
+ maxProperties?: number;
92
+ minProperties?: number;
93
+ required?: string | boolean | string[];
94
+ format?: string;
95
+ $ref?: string;
96
+ $namespace?: string;
97
+ definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
98
+ properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
99
+ items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
100
+ additionalItems?: import("@formily/react").Stringify<any>;
101
+ patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
102
+ additionalProperties?: import("@formily/react").Stringify<any>;
103
+ "x-value"?: any;
104
+ "x-index"?: number;
105
+ "x-pattern"?: any;
106
+ "x-display"?: any;
107
+ "x-validator"?: any;
108
+ "x-decorator"?: any;
109
+ "x-decorator-props"?: any;
110
+ "x-component"?: any;
111
+ "x-component-props"?: any;
112
+ "x-reactions"?: import("@formily/react").SchemaReactions<any>;
113
+ "x-content"?: any;
114
+ "x-data"?: any;
115
+ "x-visible"?: boolean;
116
+ "x-hidden"?: boolean;
117
+ "x-disabled"?: boolean;
118
+ "x-editable"?: boolean;
119
+ "x-read-only"?: boolean;
120
+ "x-read-pretty"?: boolean;
121
+ "x-compile-omitted"?: string[];
122
+ }>;
@@ -0,0 +1,8 @@
1
+ export declare const useRoleResourceValues: (options: any) => import("@nocobase/client").UseRequestResult<{
2
+ appends: string[];
3
+ filterByTk: any;
4
+ filter: {
5
+ dataSourceKey: any;
6
+ name: any;
7
+ };
8
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const useSaveRoleResourceAction: () => {
2
+ run(): Promise<void>;
3
+ };
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<import("antd-style").SerializedStyles>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ViewDatabaseConnectionAction: () => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const getConnectionCollectionPath: (name: string | number) => string;
@@ -0,0 +1,6 @@
1
+ export declare const useCreateDatabaseServer: (handleDataServerChange: any) => {
2
+ run(): Promise<void>;
3
+ };
4
+ export declare const useTestConnectionAction: () => {
5
+ run(): Promise<void>;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { Plugin } from '@nocobase/client';
2
+ export declare class PluginDataSourceManagerClient extends Plugin {
3
+ types: Map<any, any>;
4
+ load(): Promise<void>;
5
+ setDataSources(): Promise<any>;
6
+ getThirdDataSource(): Promise<any>;
7
+ registerType(name: string, options: any): void;
8
+ }
9
+ export default PluginDataSourceManagerClient;