@yongdall/organization 0.4.3 → 0.5.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/index.d.mts +17 -17
- package/package.json +7 -6
- package/yongdall/migration.mjs +10 -0
- package/yongdall/migration.mjs.map +1 -0
- package/yongdall/model.mjs +13 -0
- package/yongdall/model.mjs.map +1 -0
- package/yongdall.plugin.yml +1 -0
- package/hooks.yongdall.mjs +0 -15
- package/hooks.yongdall.mjs.map +0 -1
package/index.d.mts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as imodel10 from "imodel";
|
|
2
2
|
import * as _yongdall_model0 from "@yongdall/model";
|
|
3
3
|
|
|
4
4
|
//#region plugins/organization/models/OrganizationType.d.mts
|
|
5
5
|
declare const OrganizationType: _yongdall_model0.ModelTable<{
|
|
6
|
-
id:
|
|
7
|
-
label:
|
|
8
|
-
description:
|
|
9
|
-
createdAt:
|
|
10
|
-
updatedAt:
|
|
6
|
+
id: imodel10.FieldDefine<"string", false, false>;
|
|
7
|
+
label: imodel10.FieldDefine<"string", false, false>;
|
|
8
|
+
description: imodel10.FieldDefine<"string", false, true>;
|
|
9
|
+
createdAt: imodel10.FieldDefine<"timestamp", false, false>;
|
|
10
|
+
updatedAt: imodel10.FieldDefine<"timestamp", false, false>;
|
|
11
11
|
}, "organizationType">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region plugins/organization/models/Organization.d.mts
|
|
14
14
|
declare const Organization: _yongdall_model0.ModelTable<{
|
|
15
|
-
id:
|
|
16
|
-
label:
|
|
17
|
-
parentId:
|
|
18
|
-
typeId:
|
|
19
|
-
internal:
|
|
20
|
-
mainId:
|
|
21
|
-
description:
|
|
22
|
-
lft:
|
|
23
|
-
rgt:
|
|
24
|
-
createdAt:
|
|
25
|
-
updatedAt:
|
|
15
|
+
id: imodel10.FieldDefine<"uuid", false, false>;
|
|
16
|
+
label: imodel10.FieldDefine<"string", false, false>;
|
|
17
|
+
parentId: imodel10.FieldDefine<"uuid", false, true>;
|
|
18
|
+
typeId: imodel10.FieldDefine<"string", true, false>;
|
|
19
|
+
internal: imodel10.FieldDefine<"bool", false, false>;
|
|
20
|
+
mainId: imodel10.FieldDefine<"uuid", false, true>;
|
|
21
|
+
description: imodel10.FieldDefine<"text", false, true>;
|
|
22
|
+
lft: imodel10.FieldDefine<"i32", false, false>;
|
|
23
|
+
rgt: imodel10.FieldDefine<"i32", false, false>;
|
|
24
|
+
createdAt: imodel10.FieldDefine<"timestamp", false, false>;
|
|
25
|
+
updatedAt: imodel10.FieldDefine<"timestamp", false, false>;
|
|
26
26
|
}, "organization">;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { Organization, OrganizationType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yongdall/organization",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@yongdall/connection": "^0.
|
|
15
|
-
"@yongdall/context": "^0.
|
|
16
|
-
"@yongdall/model": "^0.
|
|
17
|
-
"@yongdall/core": "^0.
|
|
14
|
+
"@yongdall/connection": "^0.5.0",
|
|
15
|
+
"@yongdall/context": "^0.5.0",
|
|
16
|
+
"@yongdall/model": "^0.5.0",
|
|
17
|
+
"@yongdall/core": "^0.5.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@yongdall/
|
|
20
|
+
"@yongdall/migrate": "^0.5.0",
|
|
21
|
+
"@yongdall/types": "^0.5.0"
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { n as OrganizationType, t as Organization } from "../organization-CEkzOuGJ.mjs";
|
|
2
|
+
|
|
3
|
+
//#region plugins/organization/yongdall/migration.mjs
|
|
4
|
+
/** @import { Profile } from '@yongdall/migrate' */
|
|
5
|
+
/** @type {Profile['models']} */
|
|
6
|
+
const models = [OrganizationType, Organization];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { models };
|
|
10
|
+
//# sourceMappingURL=migration.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.mjs","names":[],"sources":["../../../plugins/organization/yongdall/migration.mjs"],"sourcesContent":["/** @import { Profile } from '@yongdall/migrate' */\nimport { OrganizationType, Organization } from '../index.mjs';\n\n\n/** @type {Profile['models']} */\nexport const models = [\n\tOrganizationType,\n\tOrganization,\n]\n"],"mappings":";;;;;AAKA,MAAa,SAAS,CACrB,kBACA,aACA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { n as OrganizationType, t as Organization } from "../organization-CEkzOuGJ.mjs";
|
|
2
|
+
|
|
3
|
+
//#region plugins/organization/yongdall/model.mjs
|
|
4
|
+
/** @import { ModelProfile } from '@yongdall/core' */
|
|
5
|
+
/** @type {ModelProfile['models']} */
|
|
6
|
+
const models = {
|
|
7
|
+
organizationType: OrganizationType,
|
|
8
|
+
organization: Organization
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { models };
|
|
13
|
+
//# sourceMappingURL=model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.mjs","names":[],"sources":["../../../plugins/organization/yongdall/model.mjs"],"sourcesContent":["/** @import { ModelProfile } from '@yongdall/core' */\nimport { OrganizationType, Organization } from '../index.mjs';\n\n/** @type {ModelProfile['models']} */\nexport const models = {\n\torganizationType: OrganizationType,\n\torganization: Organization,\n};\n"],"mappings":";;;;;AAIA,MAAa,SAAS;CACrB,kBAAkB;CAClB,cAAc;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
label: 组织架构
|
package/hooks.yongdall.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { n as OrganizationType, t as Organization } from "./organization-CEkzOuGJ.mjs";
|
|
2
|
-
|
|
3
|
-
//#region plugins/organization/hooks.yongdall.mjs
|
|
4
|
-
/** @import { Hooks } from '@yongdall/core' */
|
|
5
|
-
/** @type {Hooks.Define['models']} */
|
|
6
|
-
const models = {
|
|
7
|
-
organizationType: OrganizationType,
|
|
8
|
-
organization: Organization
|
|
9
|
-
};
|
|
10
|
-
/** @type {Hooks.Define['migrationModels']} */
|
|
11
|
-
const migrationModels = [OrganizationType, Organization];
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { migrationModels, models };
|
|
15
|
-
//# sourceMappingURL=hooks.yongdall.mjs.map
|
package/hooks.yongdall.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.yongdall.mjs","names":[],"sources":["../../plugins/organization/hooks.yongdall.mjs"],"sourcesContent":["/** @import { Hooks } from '@yongdall/core' */\nimport { OrganizationType, Organization } from './index.mjs';\n\n/** @type {Hooks.Define['models']} */\nexport const models = {\n\torganizationType: OrganizationType,\n\torganization: Organization,\n};\n\n/** @type {Hooks.Define['migrationModels']} */\nexport const migrationModels = [\n\tOrganizationType,\n\tOrganization,\n]\n"],"mappings":";;;;;AAIA,MAAa,SAAS;CACrB,kBAAkB;CAClB,cAAc;CACd;;AAGD,MAAa,kBAAkB,CAC9B,kBACA,aACA"}
|