@pax2pay/model-banking 0.1.280 → 0.1.282
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/Client/Accounts/Rules.ts +16 -0
- package/Client/Accounts/index.ts +3 -0
- package/Client/Organizations/Rules.ts +13 -6
- package/Client/Rules.ts +10 -7
- package/Identity.ts +7 -2
- package/Key/Permissions.ts +12 -2
- package/dist/Client/Accounts/Rules.d.ts +10 -0
- package/dist/Client/Accounts/Rules.js +15 -0
- package/dist/Client/Accounts/Rules.js.map +1 -0
- package/dist/Client/Accounts/index.d.ts +2 -0
- package/dist/Client/Accounts/index.js +2 -0
- package/dist/Client/Accounts/index.js.map +1 -1
- package/dist/Client/Organizations/Rules.d.ts +5 -3
- package/dist/Client/Organizations/Rules.js +14 -5
- package/dist/Client/Organizations/Rules.js.map +1 -1
- package/dist/Client/Rules.d.ts +5 -3
- package/dist/Client/Rules.js +10 -5
- package/dist/Client/Rules.js.map +1 -1
- package/dist/Identity.d.ts +1 -1
- package/dist/Identity.js +4 -1
- package/dist/Identity.js.map +1 -1
- package/dist/Key/Permissions.d.ts +21 -1
- package/dist/Key/Permissions.js.map +1 -1
- package/dist/Key/Roles.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import { Rule } from "../../Rule"
|
|
4
|
+
|
|
5
|
+
export class Rules {
|
|
6
|
+
constructor(private readonly client: http.Client) {}
|
|
7
|
+
async create(account: string, rule: Rule): Promise<Rule | gracely.Error> {
|
|
8
|
+
return this.client.post<Rule>(`/account/${account}/rule`, rule)
|
|
9
|
+
}
|
|
10
|
+
async replace(account: string, rule: Rule): Promise<Rule | gracely.Error> {
|
|
11
|
+
return this.client.put<Rule>(`/account/${account}/rule/${rule.code}`, rule)
|
|
12
|
+
}
|
|
13
|
+
async remove(account: string, code: string): Promise<Rule | gracely.Error> {
|
|
14
|
+
return this.client.delete<Rule>(`/account/${account}/rule/${code}`)
|
|
15
|
+
}
|
|
16
|
+
}
|
package/Client/Accounts/index.ts
CHANGED
|
@@ -3,9 +3,12 @@ import { http } from "cloudly-http"
|
|
|
3
3
|
import * as rest from "cloudly-rest"
|
|
4
4
|
import { Account } from "../../Account"
|
|
5
5
|
import { Rails } from "./Rails"
|
|
6
|
+
import { Rules } from "./Rules"
|
|
6
7
|
|
|
7
8
|
export class Accounts extends rest.Collection<gracely.Error> {
|
|
8
9
|
readonly Rails = new Rails(this.client)
|
|
10
|
+
|
|
11
|
+
readonly rules = new Rules(this.client)
|
|
9
12
|
constructor(client: http.Client) {
|
|
10
13
|
super(client)
|
|
11
14
|
}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { gracely } from "gracely"
|
|
2
2
|
import { http } from "cloudly-http"
|
|
3
|
-
import * as rest from "cloudly-rest"
|
|
4
3
|
import { Rule } from "../../Rule"
|
|
5
4
|
|
|
6
|
-
export class Rules
|
|
7
|
-
constructor(client: http.Client) {
|
|
8
|
-
|
|
5
|
+
export class Rules {
|
|
6
|
+
constructor(private readonly client: http.Client) {}
|
|
7
|
+
async create(organization: string, rule: Rule): Promise<Rule | gracely.Error> {
|
|
8
|
+
return this.client.post<Rule>(`/organization/rule`, rule, {
|
|
9
|
+
organization,
|
|
10
|
+
})
|
|
11
|
+
}
|
|
12
|
+
async replace(organization: string, rule: Rule): Promise<Rule | gracely.Error> {
|
|
13
|
+
return this.client.put<Rule>(`/organization/rule/${rule.code}`, rule, {
|
|
14
|
+
organization,
|
|
15
|
+
})
|
|
9
16
|
}
|
|
10
|
-
async
|
|
11
|
-
return this.client.
|
|
17
|
+
async remove(organization: string, code: string): Promise<Rule | gracely.Error> {
|
|
18
|
+
return this.client.delete<Rule>(`/organization/rule/${code}`, {
|
|
12
19
|
organization,
|
|
13
20
|
})
|
|
14
21
|
}
|
package/Client/Rules.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { gracely } from "gracely"
|
|
2
2
|
import { http } from "cloudly-http"
|
|
3
|
-
import * as rest from "cloudly-rest"
|
|
4
3
|
import { Rule } from "../Rule"
|
|
5
4
|
|
|
6
|
-
export class Rules
|
|
7
|
-
constructor(client: http.Client) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
async replace(rule: Rule[]): Promise<Rule[] | gracely.Error> {
|
|
11
|
-
return this.client.put<Rule[]>(`/rule`, rule)
|
|
5
|
+
export class Rules {
|
|
6
|
+
constructor(private readonly client: http.Client) {}
|
|
7
|
+
async create(rule: Rule): Promise<Rule | gracely.Error> {
|
|
8
|
+
return this.client.post<Rule>(`/rule`, rule)
|
|
12
9
|
}
|
|
13
10
|
async list(): Promise<Rule[] | gracely.Error> {
|
|
14
11
|
return this.client.get<Rule[]>(`/rule`)
|
|
15
12
|
}
|
|
13
|
+
async replace(rule: Rule): Promise<Rule | gracely.Error> {
|
|
14
|
+
return this.client.put<Rule>(`/rule/${rule.code}`, rule)
|
|
15
|
+
}
|
|
16
|
+
async remove(code: string): Promise<Rule | gracely.Error> {
|
|
17
|
+
return this.client.delete<Rule>(`/rule/${code}`)
|
|
18
|
+
}
|
|
16
19
|
}
|
package/Identity.ts
CHANGED
|
@@ -25,7 +25,7 @@ export class Identity {
|
|
|
25
25
|
|
|
26
26
|
static async authenticate<T extends Partial<Record<"realm" | "organization", true>> = Record<string, never>>(
|
|
27
27
|
header: { authorization?: string | undefined; realm?: Realm; organization?: string },
|
|
28
|
-
constraint: Key.Permissions,
|
|
28
|
+
constraint: Key.Permissions | Key.Permissions[],
|
|
29
29
|
requires?: T,
|
|
30
30
|
verifier: userwidgets.User.Key.Verifier<Key> = productionVerifier
|
|
31
31
|
): Promise<(keyof T extends keyof Identity ? Required<Pick<Identity, keyof T>> & Identity : Identity) | undefined> {
|
|
@@ -47,7 +47,12 @@ export class Identity {
|
|
|
47
47
|
| (keyof T extends keyof Identity ? Required<Pick<Identity, keyof T>> & Identity : Identity)
|
|
48
48
|
| undefined =>
|
|
49
49
|
(requires?.organization ? !!identity?.organization : true) && (requires?.realm ? Realm.is(identity?.realm) : true)
|
|
50
|
-
return (
|
|
50
|
+
return (
|
|
51
|
+
((Array.isArray(constraint) ? constraint.some(c => identity?.check(c)) : identity?.check(constraint)) &&
|
|
52
|
+
requirement(identity) &&
|
|
53
|
+
identity) ||
|
|
54
|
+
undefined
|
|
55
|
+
)
|
|
51
56
|
}
|
|
52
57
|
static async verify(
|
|
53
58
|
authorization: string | undefined,
|
package/Key/Permissions.ts
CHANGED
|
@@ -17,14 +17,24 @@ export namespace Permissions {
|
|
|
17
17
|
| {
|
|
18
18
|
edit?: true
|
|
19
19
|
view?: true
|
|
20
|
+
customer?: { edit?: true; view?: true } | true
|
|
21
|
+
product?: { edit?: true; view?: true } | true
|
|
22
|
+
fincrime?: { edit?: true; view?: true } | true
|
|
20
23
|
}
|
|
21
24
|
| true
|
|
22
25
|
}
|
|
23
26
|
| true
|
|
24
27
|
transactions?: { create?: true; view?: true; resolve?: true; comment?: true } | true
|
|
25
28
|
cards?: { create?: true; view?: true; change?: true; cancel?: true } | true
|
|
26
|
-
rules?:
|
|
27
|
-
|
|
29
|
+
rules?:
|
|
30
|
+
| {
|
|
31
|
+
edit?: true
|
|
32
|
+
view?: true
|
|
33
|
+
product?: { edit?: true; view?: true } | true
|
|
34
|
+
fincrime?: { edit?: true; view?: true } | true
|
|
35
|
+
}
|
|
36
|
+
| true
|
|
37
|
+
settlements?: { create?: true; view?: true; amend?: true } | true
|
|
28
38
|
treasury?: { rebalance?: true; view?: true } | true
|
|
29
39
|
operations?: { view?: true } | true
|
|
30
40
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Rule } from "../../Rule";
|
|
4
|
+
export declare class Rules {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
create(account: string, rule: Rule): Promise<Rule | gracely.Error>;
|
|
8
|
+
replace(account: string, rule: Rule): Promise<Rule | gracely.Error>;
|
|
9
|
+
remove(account: string, code: string): Promise<Rule | gracely.Error>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class Rules {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async create(account, rule) {
|
|
6
|
+
return this.client.post(`/account/${account}/rule`, rule);
|
|
7
|
+
}
|
|
8
|
+
async replace(account, rule) {
|
|
9
|
+
return this.client.put(`/account/${account}/rule/${rule.code}`, rule);
|
|
10
|
+
}
|
|
11
|
+
async remove(account, code) {
|
|
12
|
+
return this.client.delete(`/account/${account}/rule/${code}`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Accounts/Rules.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,IAAU;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,YAAY,OAAO,OAAO,EAAE,IAAI,CAAC,CAAA;IAChE,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,IAAU;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAO,YAAY,OAAO,SAAS,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAA;IAC5E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,IAAY;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAO,YAAY,OAAO,SAAS,IAAI,EAAE,CAAC,CAAA;IACpE,CAAC;CACD"}
|
|
@@ -3,8 +3,10 @@ import { http } from "cloudly-http";
|
|
|
3
3
|
import * as rest from "cloudly-rest";
|
|
4
4
|
import { Account } from "../../Account";
|
|
5
5
|
import { Rails } from "./Rails";
|
|
6
|
+
import { Rules } from "./Rules";
|
|
6
7
|
export declare class Accounts extends rest.Collection<gracely.Error> {
|
|
7
8
|
readonly Rails: Rails;
|
|
9
|
+
readonly rules: Rules;
|
|
8
10
|
constructor(client: http.Client);
|
|
9
11
|
create(account: Account.Creatable): Promise<Account | gracely.Error>;
|
|
10
12
|
list(options?: {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as rest from "cloudly-rest";
|
|
2
2
|
import { Rails } from "./Rails";
|
|
3
|
+
import { Rules } from "./Rules";
|
|
3
4
|
export class Accounts extends rest.Collection {
|
|
4
5
|
constructor(client) {
|
|
5
6
|
super(client);
|
|
6
7
|
this.Rails = new Rails(this.client);
|
|
8
|
+
this.rules = new Rules(this.client);
|
|
7
9
|
}
|
|
8
10
|
async create(account) {
|
|
9
11
|
return this.client.post("/account", account);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAI3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAJL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAE9B,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
|
-
import * as rest from "cloudly-rest";
|
|
4
3
|
import { Rule } from "../../Rule";
|
|
5
|
-
export declare class Rules
|
|
4
|
+
export declare class Rules {
|
|
5
|
+
private readonly client;
|
|
6
6
|
constructor(client: http.Client);
|
|
7
|
-
|
|
7
|
+
create(organization: string, rule: Rule): Promise<Rule | gracely.Error>;
|
|
8
|
+
replace(organization: string, rule: Rule): Promise<Rule | gracely.Error>;
|
|
9
|
+
remove(organization: string, code: string): Promise<Rule | gracely.Error>;
|
|
8
10
|
}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export class Rules extends rest.Collection {
|
|
1
|
+
export class Rules {
|
|
3
2
|
constructor(client) {
|
|
4
|
-
|
|
3
|
+
this.client = client;
|
|
5
4
|
}
|
|
6
|
-
async
|
|
7
|
-
return this.client.
|
|
5
|
+
async create(organization, rule) {
|
|
6
|
+
return this.client.post(`/organization/rule`, rule, {
|
|
7
|
+
organization,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async replace(organization, rule) {
|
|
11
|
+
return this.client.put(`/organization/rule/${rule.code}`, rule, {
|
|
12
|
+
organization,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
async remove(organization, code) {
|
|
16
|
+
return this.client.delete(`/organization/rule/${code}`, {
|
|
8
17
|
organization,
|
|
9
18
|
});
|
|
10
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Organizations/Rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Organizations/Rules.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,YAAoB,EAAE,IAAU;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,oBAAoB,EAAE,IAAI,EAAE;YACzD,YAAY;SACZ,CAAC,CAAA;IACH,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,IAAU;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAO,sBAAsB,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE;YACrE,YAAY;SACZ,CAAC,CAAA;IACH,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoB,EAAE,IAAY;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAO,sBAAsB,IAAI,EAAE,EAAE;YAC7D,YAAY;SACZ,CAAC,CAAA;IACH,CAAC;CACD"}
|
package/dist/Client/Rules.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { gracely } from "gracely";
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
|
-
import * as rest from "cloudly-rest";
|
|
4
3
|
import { Rule } from "../Rule";
|
|
5
|
-
export declare class Rules
|
|
4
|
+
export declare class Rules {
|
|
5
|
+
private readonly client;
|
|
6
6
|
constructor(client: http.Client);
|
|
7
|
-
|
|
7
|
+
create(rule: Rule): Promise<Rule | gracely.Error>;
|
|
8
8
|
list(): Promise<Rule[] | gracely.Error>;
|
|
9
|
+
replace(rule: Rule): Promise<Rule | gracely.Error>;
|
|
10
|
+
remove(code: string): Promise<Rule | gracely.Error>;
|
|
9
11
|
}
|
package/dist/Client/Rules.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export class Rules extends rest.Collection {
|
|
1
|
+
export class Rules {
|
|
3
2
|
constructor(client) {
|
|
4
|
-
|
|
3
|
+
this.client = client;
|
|
5
4
|
}
|
|
6
|
-
async
|
|
7
|
-
return this.client.
|
|
5
|
+
async create(rule) {
|
|
6
|
+
return this.client.post(`/rule`, rule);
|
|
8
7
|
}
|
|
9
8
|
async list() {
|
|
10
9
|
return this.client.get(`/rule`);
|
|
11
10
|
}
|
|
11
|
+
async replace(rule) {
|
|
12
|
+
return this.client.put(`/rule/${rule.code}`, rule);
|
|
13
|
+
}
|
|
14
|
+
async remove(code) {
|
|
15
|
+
return this.client.delete(`/rule/${code}`);
|
|
16
|
+
}
|
|
12
17
|
}
|
|
13
18
|
//# sourceMappingURL=Rules.js.map
|
package/dist/Client/Rules.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Rules.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,IAAU;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,OAAO,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,OAAO,CAAC,CAAA;IACxC,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,IAAU;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAO,SAAS,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAA;IACzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAO,SAAS,IAAI,EAAE,CAAC,CAAA;IACjD,CAAC;CACD"}
|
package/dist/Identity.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class Identity {
|
|
|
14
14
|
authorization?: string | undefined;
|
|
15
15
|
realm?: Realm;
|
|
16
16
|
organization?: string;
|
|
17
|
-
}, constraint: Key.Permissions, requires?: T, verifier?: userwidgets.User.Key.Verifier<Key>): Promise<(keyof T extends keyof Identity ? Required<Pick<Identity, keyof T>> & Identity : Identity) | undefined>;
|
|
17
|
+
}, constraint: Key.Permissions | Key.Permissions[], requires?: T, verifier?: userwidgets.User.Key.Verifier<Key>): Promise<(keyof T extends keyof Identity ? Required<Pick<Identity, keyof T>> & Identity : Identity) | undefined>;
|
|
18
18
|
static verify(authorization: string | undefined, verifier?: userwidgets.User.Key.Verifier<Key>): Promise<Key | undefined>;
|
|
19
19
|
static getRealms(permissions: Key.Permissions): ("eu" | "uk" | "test" | "testUK" | "upcheck")[];
|
|
20
20
|
}
|
package/dist/Identity.js
CHANGED
|
@@ -42,7 +42,10 @@ export class Identity {
|
|
|
42
42
|
const identity = key &&
|
|
43
43
|
new Identity(key, (realms?.length == 1 ? realms[0] : header.realm), (key.organization ?? header.organization));
|
|
44
44
|
const requirement = (value) => (requires?.organization ? !!identity?.organization : true) && (requires?.realm ? Realm.is(identity?.realm) : true);
|
|
45
|
-
return (
|
|
45
|
+
return (((Array.isArray(constraint) ? constraint.some(c => identity?.check(c)) : identity?.check(constraint)) &&
|
|
46
|
+
requirement(identity) &&
|
|
47
|
+
identity) ||
|
|
48
|
+
undefined);
|
|
46
49
|
}
|
|
47
50
|
static async verify(authorization, verifier = productionVerifier) {
|
|
48
51
|
return await verifier.verify(authorization);
|
package/dist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true;
|
|
25
|
+
product?: {
|
|
26
|
+
edit?: true;
|
|
27
|
+
view?: true;
|
|
28
|
+
} | true;
|
|
29
|
+
fincrime?: {
|
|
30
|
+
edit?: true;
|
|
31
|
+
view?: true;
|
|
32
|
+
} | true;
|
|
21
33
|
} | true;
|
|
22
34
|
} | true;
|
|
23
35
|
transactions?: {
|
|
@@ -35,11 +47,19 @@ export declare namespace Permissions {
|
|
|
35
47
|
rules?: {
|
|
36
48
|
edit?: true;
|
|
37
49
|
view?: true;
|
|
50
|
+
product?: {
|
|
51
|
+
edit?: true;
|
|
52
|
+
view?: true;
|
|
53
|
+
} | true;
|
|
54
|
+
fincrime?: {
|
|
55
|
+
edit?: true;
|
|
56
|
+
view?: true;
|
|
57
|
+
} | true;
|
|
38
58
|
} | true;
|
|
39
59
|
settlements?: {
|
|
40
60
|
create?: true;
|
|
41
61
|
view?: true;
|
|
42
|
-
|
|
62
|
+
amend?: true;
|
|
43
63
|
} | true;
|
|
44
64
|
treasury?: {
|
|
45
65
|
rebalance?: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.js","sourceRoot":"../","sources":["Key/Permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGhD,MAAM,KAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"Permissions.js","sourceRoot":"../","sources":["Key/Permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGhD,MAAM,KAAW,WAAW,CA2C3B;AA3CD,WAAiB,WAAW;IAC3B,SAAgB,SAAS,CAAC,WAAwB;QACjD,OAAO,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;IAC3D,CAAC;IAFe,qBAAS,YAExB,CAAA;AAwCF,CAAC,EA3CgB,WAAW,KAAX,WAAW,QA2C3B"}
|
package/dist/Key/Roles.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export declare namespace Roles {
|
|
|
14
14
|
type Roles = Partial<Record<Role, true>>;
|
|
15
15
|
type Role = typeof roles[number];
|
|
16
16
|
const roles: readonly ["admin", "fincrime-readonly", "fincrime", "finance", "operations", "support"];
|
|
17
|
-
const type: isly.Type<"operations" | "
|
|
18
|
-
const is: isly.Type.IsFunction<"operations" | "
|
|
17
|
+
const type: isly.Type<"operations" | "fincrime" | "admin" | "fincrime-readonly" | "finance" | "support">;
|
|
18
|
+
const is: isly.Type.IsFunction<"operations" | "fincrime" | "admin" | "fincrime-readonly" | "finance" | "support">;
|
|
19
19
|
const definitions: Record<Role, Permissions.Realm | true>;
|
|
20
20
|
}
|
|
21
21
|
namespace Organization {
|