@erxes/plugin-sdk 0.1.0-v2.13 → 0.1.0-v2.14
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/index.d.ts +6 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
* // An invoice may list what it pays for; `plugin` names another plugin's line (it gets the events):
|
|
30
30
|
* // lines: [{ productId, quantity: 1, unitPrice: 150000 }, { name: 'Delivery', quantity: 1, unitPrice: 10000, plugin: 'tms' }]
|
|
31
31
|
*
|
|
32
|
+
* Team members who don't sign in (scope `users:write`): people a plugin keeps on the team for its own app
|
|
33
|
+
* (HR's employees). They take no seat and never sign in to erxes; a plugin adds them and changes
|
|
34
|
+
* their profile, never a member who signs in.
|
|
35
|
+
*
|
|
36
|
+
* const worker = await core.forOrg(orgId).users.add({ fullName, employeeId, phone });
|
|
37
|
+
*
|
|
32
38
|
* Branches and departments (scopes `units:read`, `units:write`; subscribe to `core.unit.*`): core's,
|
|
33
39
|
* shared by plugins. Keep a read-only copy for your own visibility queries and refresh it whenever
|
|
34
40
|
* a `core.unit.*` event arrives (the event names the unit in `entityId`); bring your old units in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erxes/plugin-sdk",
|
|
3
|
-
"version": "0.1.0-v2.
|
|
3
|
+
"version": "0.1.0-v2.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "For erxes plugin servers: a typed core client with automatic plugin tokens, verification of members' plugin session tokens and of core's deliveries, and plugin jobs",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@orpc/zod": "1.16.2",
|
|
37
37
|
"jose": "^6.2.17",
|
|
38
38
|
"zod": "^4.6.7",
|
|
39
|
-
"@erxes/core-contract": "0.1.0-v2.
|
|
39
|
+
"@erxes/core-contract": "0.1.0-v2.16"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"drizzle-orm": "0.45.4"
|