@via-profit/ability 2.0.0-rc.8 → 2.1.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/README.md +328 -156
- package/build/playground.js +58 -416
- package/build/playground.js.map +1 -1
- package/dist/AbilityCode.d.ts +6 -6
- package/dist/AbilityCompare.d.ts +2 -2
- package/dist/AbilityCondition.d.ts +13 -10
- package/dist/AbilityError.d.ts +0 -3
- package/dist/AbilityMatch.d.ts +2 -2
- package/dist/AbilityPolicy.d.ts +12 -11
- package/dist/AbilityPolicyEffect.d.ts +2 -2
- package/dist/AbilityRule.d.ts +18 -3
- package/dist/AbilityRuleSet.d.ts +11 -6
- package/dist/index.js +72 -62
- package/package.json +1 -2
- package/dist/AbilityPolicyResult.d.ts +0 -6
- package/dist/playground.d.ts +0 -26
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@via-profit/ability",
|
|
3
3
|
"support": "https://via-profit.ru",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"description": "Via-Profit Ability service",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ability",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"author": {
|
|
30
30
|
"name": "Via Profit",
|
|
31
|
-
"email": "promo@via-profit.ru",
|
|
32
31
|
"url": "https://dev.via-profit.ru"
|
|
33
32
|
},
|
|
34
33
|
"contributors": [
|
package/dist/playground.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type Resources = {
|
|
2
|
-
readonly ['account.read']: {
|
|
3
|
-
readonly account: {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly roles: readonly string[];
|
|
6
|
-
} | null;
|
|
7
|
-
readonly resource: {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
readonly ['access.auth']: {
|
|
12
|
-
readonly token: {
|
|
13
|
-
readonly type: string;
|
|
14
|
-
readonly id: string;
|
|
15
|
-
} | null;
|
|
16
|
-
};
|
|
17
|
-
readonly ['order.update']: {
|
|
18
|
-
readonly account: {
|
|
19
|
-
readonly roles: readonly string[];
|
|
20
|
-
readonly department: string;
|
|
21
|
-
} | null;
|
|
22
|
-
readonly order: {
|
|
23
|
-
readonly status: string;
|
|
24
|
-
} | null;
|
|
25
|
-
};
|
|
26
|
-
};
|