@nocobase/plugin-data-source-manager 1.2.13-alpha → 1.3.0-alpha.20240710084543
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/package.json +2 -2
- package/dist/client/DatabaseConnectionProvider.d.ts +0 -11
- package/dist/client/ThridDataSource.d.ts +0 -12
- package/dist/client/component/BreadcumbTitle.d.ts +0 -10
- package/dist/client/component/CollectionsManager/AddFieldAction.d.ts +0 -13
- package/dist/client/component/CollectionsManager/CollectionFields.d.ts +0 -16
- package/dist/client/component/CollectionsManager/CollectionTitle.d.ts +0 -9
- package/dist/client/component/CollectionsManager/ConfigurationTable.d.ts +0 -10
- package/dist/client/component/CollectionsManager/ConfigurationTabs.d.ts +0 -10
- package/dist/client/component/CollectionsManager/EditCollectionAction.d.ts +0 -14
- package/dist/client/component/CollectionsManager/EditFieldAction.d.ts +0 -10
- package/dist/client/component/CollectionsManager/FilterTargetKeyAlert.d.ts +0 -12
- package/dist/client/component/CollectionsManager/SetFilterTargetKey.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/CollectionName.d.ts +0 -9
- package/dist/client/component/CollectionsManager/components/FieldTitleInput.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/FieldType.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/TitleField.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/UnSupportFields.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/index.d.ts +0 -14
- package/dist/client/component/CollectionsManager/hooks.d.ts +0 -20
- package/dist/client/component/CollectionsManager/index.d.ts +0 -10
- package/dist/client/component/CollectionsManager/schema/collectionFields.d.ts +0 -12
- package/dist/client/component/CollectionsManager/schema/collections.d.ts +0 -72
- package/dist/client/component/CreateDatabaseConnectAction.d.ts +0 -10
- package/dist/client/component/DatabaseConnectionManager.d.ts +0 -10
- package/dist/client/component/EditDatabaseConnectionAction.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/AddCategoryAction.d.ts +0 -11
- package/dist/client/component/MainDataSourceManager/Configuration/CollectionFields.d.ts +0 -11
- package/dist/client/component/MainDataSourceManager/Configuration/ConfigurationTable.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/EditCategoryAction.d.ts +0 -11
- package/dist/client/component/MainDataSourceManager/Configuration/index.d.ts +0 -13
- package/dist/client/component/MainDataSourceManager/Configuration/interfaces.d.ts +0 -24
- package/dist/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/schemas/collections.d.ts +0 -15
- package/dist/client/component/MainDataSourceManager/index.d.ts +0 -10
- package/dist/client/component/PermissionManager/DataSourceTable.d.ts +0 -11
- package/dist/client/component/PermissionManager/PermisionProvider.d.ts +0 -13
- package/dist/client/component/PermissionManager/RoleConfigure.d.ts +0 -10
- package/dist/client/component/PermissionManager/RolesResourcesActions.d.ts +0 -11
- package/dist/client/component/PermissionManager/ScopeSelect.d.ts +0 -11
- package/dist/client/component/PermissionManager/StrategyActions.d.ts +0 -10
- package/dist/client/component/PermissionManager/index.d.ts +0 -11
- package/dist/client/component/PermissionManager/schemas/dataSourceTable.d.ts +0 -10
- package/dist/client/component/PermissionManager/schemas/roleCollections.d.ts +0 -10
- package/dist/client/component/PermissionManager/schemas/scopes.d.ts +0 -130
- package/dist/client/component/PermissionManager/schemas/useRoleResourceValues.d.ts +0 -16
- package/dist/client/component/PermissionManager/schemas/useSaveRoleResourceAction.d.ts +0 -11
- package/dist/client/component/PermissionManager/style.d.ts +0 -9
- package/dist/client/component/ViewDatabaseConnectionAction.d.ts +0 -10
- package/dist/client/constant.d.ts +0 -9
- package/dist/client/hooks/index.d.ts +0 -14
- package/dist/client/index.d.ts +0 -17
- package/dist/client/index.js +0 -59
- package/dist/client/locale/index.d.ts +0 -11
- package/dist/client/schema/index.d.ts +0 -15
- package/dist/externalVersion.js +0 -33
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -48
- package/dist/locale/zh-CN.json +0 -40
- package/dist/server/collections/data-sources-collections.d.ts +0 -10
- package/dist/server/collections/data-sources-collections.js +0 -75
- package/dist/server/collections/data-sources-fields.d.ts +0 -10
- package/dist/server/collections/data-sources-fields.js +0 -96
- package/dist/server/collections/data-sources-roles-resources-actions.d.ts +0 -10
- package/dist/server/collections/data-sources-roles-resources-actions.js +0 -61
- package/dist/server/collections/data-sources-roles-resources-scopes.d.ts +0 -10
- package/dist/server/collections/data-sources-roles-resources-scopes.js +0 -65
- package/dist/server/collections/data-sources-roles-resources.d.ts +0 -10
- package/dist/server/collections/data-sources-roles-resources.js +0 -71
- package/dist/server/collections/data-sources-roles.d.ts +0 -10
- package/dist/server/collections/data-sources-roles.js +0 -63
- package/dist/server/collections/data-sources.d.ts +0 -10
- package/dist/server/collections/data-sources.js +0 -80
- package/dist/server/errors/type-infer-error.d.ts +0 -10
- package/dist/server/errors/type-infer-error.js +0 -37
- package/dist/server/index.d.ts +0 -10
- package/dist/server/index.js +0 -48
- package/dist/server/migrations/20240301164024-migrate-acl-resources.d.ts +0 -15
- package/dist/server/migrations/20240301164024-migrate-acl-resources.js +0 -127
- package/dist/server/migrations/20240414103927-update-snippet-name.d.ts +0 -14
- package/dist/server/migrations/20240414103927-update-snippet-name.js +0 -60
- package/dist/server/models/connections-roles-resources-action.d.ts +0 -11
- package/dist/server/models/connections-roles-resources-action.js +0 -38
- package/dist/server/models/connections-roles-resources.d.ts +0 -11
- package/dist/server/models/connections-roles-resources.js +0 -38
- package/dist/server/models/data-source.d.ts +0 -25
- package/dist/server/models/data-source.js +0 -173
- package/dist/server/models/data-sources-collection-model.d.ts +0 -15
- package/dist/server/models/data-sources-collection-model.js +0 -46
- package/dist/server/models/data-sources-field-model.d.ts +0 -18
- package/dist/server/models/data-sources-field-model.js +0 -63
- package/dist/server/models/data-sources-roles-model.d.ts +0 -17
- package/dist/server/models/data-sources-roles-model.js +0 -64
- package/dist/server/plugin.d.ts +0 -21
- package/dist/server/plugin.js +0 -443
- package/dist/server/resourcers/data-sources-collections-fields.d.ts +0 -19
- package/dist/server/resourcers/data-sources-collections-fields.js +0 -140
- package/dist/server/resourcers/data-sources-collections.d.ts +0 -16
- package/dist/server/resourcers/data-sources-collections.js +0 -115
- package/dist/server/resourcers/data-sources-resources.d.ts +0 -17
- package/dist/server/resourcers/data-sources-resources.js +0 -97
- package/dist/server/resourcers/data-sources-roles.d.ts +0 -16
- package/dist/server/resourcers/data-sources-roles.js +0 -98
- package/dist/server/resourcers/roles-data-sources-collections.d.ts +0 -15
- package/dist/server/resourcers/roles-data-sources-collections.js +0 -111
- package/dist/server/services/full-data-repository.d.ts +0 -16
- package/dist/server/services/full-data-repository.js +0 -60
- package/dist/server/services/type-interface-map.d.ts +0 -191
- package/dist/server/services/type-interface-map.js +0 -253
- package/dist/server/utils.d.ts +0 -9
- package/dist/server/utils.js +0 -47
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_collections_exports = {};
|
|
28
|
-
__export(data_sources_collections_exports, {
|
|
29
|
-
default: () => data_sources_collections_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_collections_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_collections_default = (0, import_database.defineCollection)({
|
|
34
|
-
name: "dataSourcesCollections",
|
|
35
|
-
model: "DataSourcesCollectionModel",
|
|
36
|
-
dumpRules: "required",
|
|
37
|
-
shared: true,
|
|
38
|
-
autoGenId: false,
|
|
39
|
-
timestamps: false,
|
|
40
|
-
indexes: [
|
|
41
|
-
{
|
|
42
|
-
unique: true,
|
|
43
|
-
fields: ["name", "dataSourceKey"]
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
fields: [
|
|
47
|
-
{
|
|
48
|
-
type: "uid",
|
|
49
|
-
name: "key",
|
|
50
|
-
primaryKey: true
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: "string",
|
|
54
|
-
name: "name"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: "belongsTo",
|
|
58
|
-
name: "dataSources",
|
|
59
|
-
foreignKey: "dataSourceKey",
|
|
60
|
-
onDelete: "CASCADE"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: "json",
|
|
64
|
-
name: "options"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: "hasMany",
|
|
68
|
-
name: "fields",
|
|
69
|
-
target: "dataSourcesFields",
|
|
70
|
-
sourceKey: "key",
|
|
71
|
-
targetKey: "key",
|
|
72
|
-
foreignKey: "collectionKey"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
-
export default _default;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_fields_exports = {};
|
|
28
|
-
__export(data_sources_fields_exports, {
|
|
29
|
-
default: () => data_sources_fields_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_fields_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_fields_default = (0, import_database.defineCollection)({
|
|
34
|
-
name: "dataSourcesFields",
|
|
35
|
-
model: "DataSourcesFieldModel",
|
|
36
|
-
dumpRules: "required",
|
|
37
|
-
shared: true,
|
|
38
|
-
autoGenId: false,
|
|
39
|
-
timestamps: false,
|
|
40
|
-
indexes: [
|
|
41
|
-
{
|
|
42
|
-
unique: true,
|
|
43
|
-
fields: ["name", "collectionName", "dataSourceKey"]
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
fields: [
|
|
47
|
-
{
|
|
48
|
-
type: "uid",
|
|
49
|
-
name: "key",
|
|
50
|
-
primaryKey: true
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: "string",
|
|
54
|
-
name: "name"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: "string",
|
|
58
|
-
name: "collectionName"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
type: "string",
|
|
62
|
-
name: "interface",
|
|
63
|
-
allowNull: true
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
type: "string",
|
|
67
|
-
name: "description",
|
|
68
|
-
allowNull: true
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
type: "json",
|
|
72
|
-
name: "uiSchema",
|
|
73
|
-
default: {}
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: "belongsTo",
|
|
77
|
-
name: "collection",
|
|
78
|
-
target: "dataSourcesCollections",
|
|
79
|
-
foreignKey: "collectionKey",
|
|
80
|
-
targetKey: "key",
|
|
81
|
-
onDelete: "CASCADE"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: "belongsTo",
|
|
85
|
-
name: "dataSources",
|
|
86
|
-
foreignKey: "dataSourceKey",
|
|
87
|
-
onDelete: "CASCADE"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
type: "json",
|
|
91
|
-
name: "options",
|
|
92
|
-
defaultValue: {},
|
|
93
|
-
translation: true
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
-
export default _default;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_roles_resources_actions_exports = {};
|
|
28
|
-
__export(data_sources_roles_resources_actions_exports, {
|
|
29
|
-
default: () => data_sources_roles_resources_actions_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_roles_resources_actions_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_roles_resources_actions_default = (0, import_database.defineCollection)({
|
|
34
|
-
dumpRules: "required",
|
|
35
|
-
name: "dataSourcesRolesResourcesActions",
|
|
36
|
-
model: "DataSourcesRolesResourcesActionModel",
|
|
37
|
-
fields: [
|
|
38
|
-
{
|
|
39
|
-
type: "belongsTo",
|
|
40
|
-
name: "resource",
|
|
41
|
-
foreignKey: "rolesResourceId",
|
|
42
|
-
target: "dataSourcesRolesResources"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: "string",
|
|
46
|
-
name: "name"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: "array",
|
|
50
|
-
name: "fields",
|
|
51
|
-
defaultValue: []
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
type: "belongsTo",
|
|
55
|
-
name: "scope",
|
|
56
|
-
target: "dataSourcesRolesResourcesScopes",
|
|
57
|
-
onDelete: "RESTRICT",
|
|
58
|
-
foreignKey: "scopeId"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
-
export default _default;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_roles_resources_scopes_exports = {};
|
|
28
|
-
__export(data_sources_roles_resources_scopes_exports, {
|
|
29
|
-
default: () => data_sources_roles_resources_scopes_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_roles_resources_scopes_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_roles_resources_scopes_default = (0, import_database.defineCollection)({
|
|
34
|
-
dumpRules: "required",
|
|
35
|
-
name: "dataSourcesRolesResourcesScopes",
|
|
36
|
-
fields: [
|
|
37
|
-
{
|
|
38
|
-
type: "uid",
|
|
39
|
-
name: "key"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "dataSourceKey",
|
|
43
|
-
type: "string",
|
|
44
|
-
defaultValue: "main"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: "belongsTo",
|
|
48
|
-
name: "dataSources",
|
|
49
|
-
foreignKey: "dataSourceKey",
|
|
50
|
-
onDelete: "CASCADE"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: "string",
|
|
54
|
-
name: "name"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: "string",
|
|
58
|
-
name: "resourceName"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
type: "json",
|
|
62
|
-
name: "scope"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
-
export default _default;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_roles_resources_exports = {};
|
|
28
|
-
__export(data_sources_roles_resources_exports, {
|
|
29
|
-
default: () => data_sources_roles_resources_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_roles_resources_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_roles_resources_default = (0, import_database.defineCollection)({
|
|
34
|
-
dumpRules: "required",
|
|
35
|
-
name: "dataSourcesRolesResources",
|
|
36
|
-
model: "DataSourcesRolesResourcesModel",
|
|
37
|
-
fields: [
|
|
38
|
-
{
|
|
39
|
-
name: "dataSourceKey",
|
|
40
|
-
type: "string",
|
|
41
|
-
defaultValue: "main"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
type: "belongsTo",
|
|
45
|
-
name: "dataSources",
|
|
46
|
-
foreignKey: "dataSourceKey",
|
|
47
|
-
onDelete: "CASCADE"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: "belongsTo",
|
|
51
|
-
name: "role",
|
|
52
|
-
target: "roles",
|
|
53
|
-
foreignKey: "roleName",
|
|
54
|
-
onDelete: "CASCADE"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: "string",
|
|
58
|
-
name: "name"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
type: "boolean",
|
|
62
|
-
name: "usingActionsConfig"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
type: "hasMany",
|
|
66
|
-
name: "actions",
|
|
67
|
-
target: "dataSourcesRolesResourcesActions",
|
|
68
|
-
foreignKey: "rolesResourceId"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
-
export default _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_roles_exports = {};
|
|
28
|
-
__export(data_sources_roles_exports, {
|
|
29
|
-
default: () => data_sources_roles_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_roles_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_roles_default = (0, import_database.defineCollection)({
|
|
34
|
-
name: "dataSourcesRoles",
|
|
35
|
-
dumpRules: "required",
|
|
36
|
-
autoGenId: false,
|
|
37
|
-
timestamps: false,
|
|
38
|
-
model: "DataSourcesRolesModel",
|
|
39
|
-
fields: [
|
|
40
|
-
{
|
|
41
|
-
type: "uid",
|
|
42
|
-
name: "id",
|
|
43
|
-
primaryKey: true
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
type: "belongsTo",
|
|
47
|
-
name: "dataSources",
|
|
48
|
-
foreignKey: "dataSourceKey",
|
|
49
|
-
onDelete: "CASCADE"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
type: "belongsTo",
|
|
53
|
-
name: "role",
|
|
54
|
-
target: "roles",
|
|
55
|
-
foreignKey: "roleName",
|
|
56
|
-
onDelete: "CASCADE"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: "json",
|
|
60
|
-
name: "strategy"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
-
export default _default;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var data_sources_exports = {};
|
|
28
|
-
__export(data_sources_exports, {
|
|
29
|
-
default: () => data_sources_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(data_sources_exports);
|
|
32
|
-
var import_database = require("@nocobase/database");
|
|
33
|
-
var data_sources_default = (0, import_database.defineCollection)({
|
|
34
|
-
name: "dataSources",
|
|
35
|
-
model: "DataSourceModel",
|
|
36
|
-
autoGenId: false,
|
|
37
|
-
shared: true,
|
|
38
|
-
dumpRules: "required",
|
|
39
|
-
fields: [
|
|
40
|
-
{
|
|
41
|
-
type: "string",
|
|
42
|
-
name: "key",
|
|
43
|
-
primaryKey: true
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
type: "string",
|
|
47
|
-
name: "displayName"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: "string",
|
|
51
|
-
name: "type"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
type: "json",
|
|
55
|
-
name: "options"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: "boolean",
|
|
59
|
-
name: "enabled",
|
|
60
|
-
defaultValue: true
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: "boolean",
|
|
64
|
-
name: "fixed",
|
|
65
|
-
defaultValue: false
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "hasMany",
|
|
69
|
-
name: "collections",
|
|
70
|
-
target: "dataSourcesCollections",
|
|
71
|
-
foreignKey: "dataSourceKey"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: "hasMany",
|
|
75
|
-
name: "rolesResourcesScopes",
|
|
76
|
-
target: "dataSourcesRolesResourcesScopes",
|
|
77
|
-
foreignKey: "dataSourceKey"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export declare class TypeInferError extends Error {
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var type_infer_error_exports = {};
|
|
28
|
-
__export(type_infer_error_exports, {
|
|
29
|
-
TypeInferError: () => TypeInferError
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(type_infer_error_exports);
|
|
32
|
-
class TypeInferError extends Error {
|
|
33
|
-
}
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {
|
|
36
|
-
TypeInferError
|
|
37
|
-
});
|
package/dist/server/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
export { default } from './plugin';
|
|
10
|
-
export * from './utils';
|