@genesislcap/mock-server 15.65.0 → 15.66.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 +71 -1
- package/dist/handlers/resources.d.ts +2 -1
- package/dist/handlers/resources.js +18 -2
- package/dist/presets/csv.d.ts +2 -0
- package/dist/presets/csv.js +52 -0
- package/dist/presets/index.d.ts +3 -0
- package/dist/presets/index.js +3 -0
- package/dist/presets/merge.d.ts +15 -0
- package/dist/presets/merge.js +76 -0
- package/dist/presets/platform/default-user.json +30 -0
- package/dist/presets/platform/profile-rights.json +242 -0
- package/dist/presets/platform/profiles.json +62 -0
- package/dist/presets/platform/resources.json +710 -0
- package/dist/presets/platform/rights.json +238 -0
- package/dist/presets/platform.d.ts +27 -0
- package/dist/presets/platform.js +410 -0
- package/dist/types.d.ts +1 -0
- package/package.json +8 -2
- package/src/handlers/resources.ts +19 -2
- package/src/presets/csv.ts +50 -0
- package/src/presets/index.ts +8 -0
- package/src/presets/merge.ts +79 -0
- package/src/presets/platform/default-user.json +30 -0
- package/src/presets/platform/profile-rights.json +242 -0
- package/src/presets/platform/profiles.json +62 -0
- package/src/presets/platform/resources.json +710 -0
- package/src/presets/platform/rights.json +238 -0
- package/src/presets/platform.ts +503 -0
- package/src/types.ts +7 -0
package/README.md
CHANGED
|
@@ -549,6 +549,76 @@ disappears; the watchdog exits as soon as either side is gone, so it can
|
|
|
549
549
|
never outlive the pair it watches. Set `tieLifetimes: false` and you own all
|
|
550
550
|
of this yourself — no watchdog is started.
|
|
551
551
|
|
|
552
|
+
## Platform preset
|
|
553
|
+
|
|
554
|
+
A real GSF app runs beside the platform's processes: auth (users, profiles,
|
|
555
|
+
rights, the key-value store), notify, file storage, reporting and more. Their
|
|
556
|
+
resources are in its `RESOURCES_REQUEST_ACK`, and its login ack carries the
|
|
557
|
+
rights the auth seed gives the user. `platformPreset()` serves that part, so an
|
|
558
|
+
app's config only has to describe the app:
|
|
559
|
+
|
|
560
|
+
```ts
|
|
561
|
+
import { createMockServer } from '@genesislcap/mock-server';
|
|
562
|
+
import { mergeConfigs, platformPreset } from '@genesislcap/mock-server/presets';
|
|
563
|
+
|
|
564
|
+
const server = createMockServer(
|
|
565
|
+
mergeConfigs(
|
|
566
|
+
platformPreset({
|
|
567
|
+
// Default: admin/admin in every platform profile but NOTIFICATION_SERVICE.
|
|
568
|
+
users: [{ username: 'admin', password: 'admin', profile: ['USER_ADMIN'] }],
|
|
569
|
+
// The app's own data/*.csv rows for the platform tables.
|
|
570
|
+
seed: { RIGHT: [{ CODE: 'TradeView', DESCRIPTION: 'View trades' }],
|
|
571
|
+
PROFILE_RIGHT: [{ PROFILE_NAME: 'USER_ADMIN', RIGHT_CODE: 'TradeView' }] },
|
|
572
|
+
}),
|
|
573
|
+
appConfig,
|
|
574
|
+
),
|
|
575
|
+
);
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
What it provides:
|
|
579
|
+
|
|
580
|
+
| Piece | From |
|
|
581
|
+
| --- | --- |
|
|
582
|
+
| `auth.users`: each user's `PROFILE`, and `PERMISSION` = their profiles' `PROFILE_RIGHT` codes, sorted as the real login ack lists them (`permission` overrides) | the PBCs' seed CSVs |
|
|
583
|
+
| Tables `USER`, `USER_ATTRIBUTES`, `PROFILE`, `PROFILE_USER`, `RIGHT`, `PROFILE_RIGHT`, `KEY_VALUE`, `NOTIFY_ALERT`, with their dictionary columns | GSF 8.15.29, auth 8.15.5, genesis-notify 8.15.16 dictionaries |
|
|
584
|
+
| Dataservers `ALL_USERS` (`USER_VIEW`), `ALL_PROFILES`, `ALL_RIGHTS`, `ALL_PROFILE_RIGHTS`, `ALL_PROFILE_USERS`, `ALL_NOTIFY_ALERT_RECORDS` (the user's own alerts) | `auth-dataserver.kts`, `genesis-notify-rules-dataserver.kts` |
|
|
585
|
+
| Request servers `RIGHT`, `PROFILE`, `KEY_VALUE_LIST`, `KEY_VALUE_READ` (`VALUE` in base64, as a RAW column goes out) | `auth-reqrep.kts` |
|
|
586
|
+
| Events `EVENT_KEY_VALUE_PUT` / `_DELETE`, `EVENT_DISMISS_NOTIFY_ALERT` / `_DISMISS_ALL_NOTIFY_ALERT`, with the real handlers' NACK texts | `auth-key-value-eventhandler.kts`, `genesis-notify-eventhandler.kts` |
|
|
587
|
+
| `additionalResources`: the 177 platform resources a real 8.15.29 server lists (the recorded 207 minus the showcase app's own) | `test/conformance/recordings/showcase-real/resources-request.json` |
|
|
588
|
+
|
|
589
|
+
Most platform resources in that list have no backing yet (reporting, file
|
|
590
|
+
storage, reconciliation, notify routes and rules, approvals, cron rules): they
|
|
591
|
+
are listed as the real server lists them, and a `DATA_LOGON` or `REQ_` for one
|
|
592
|
+
gets the unknown-resource reply until a config serves it.
|
|
593
|
+
|
|
594
|
+
**Composing.** `mergeConfigs(...configs)` merges later configs over earlier
|
|
595
|
+
ones: tables, views, queries, request servers, event handlers and event
|
|
596
|
+
schemas by name (a later one replaces the earlier whole), `auth.users` by
|
|
597
|
+
username, `additionalResources` without repeats, `httpRoutes` (later first) and
|
|
598
|
+
`onMessage` hooks (in order) both kept, anything else the later config's. So an
|
|
599
|
+
app overrides a platform piece by naming it, e.g. its own
|
|
600
|
+
`eventHandlers.EVENT_KEY_VALUE_PUT`.
|
|
601
|
+
|
|
602
|
+
**Resources.** `config.additionalResources` is listed after the resources the
|
|
603
|
+
engine derives from the config, skipping any already there (same name and
|
|
604
|
+
type). `config.resources` still replaces the whole list.
|
|
605
|
+
|
|
606
|
+
**Who a request runs as.** The per-user resources (the KV store, alerts) use
|
|
607
|
+
the connection's login. A client that logs in over HTTP sends no session token
|
|
608
|
+
on its WebSocket, so for a connection that never logged in they use
|
|
609
|
+
`sessionUser` (default: the first user).
|
|
610
|
+
|
|
611
|
+
**Seeds.** Rows are strings or values; declared columns convert them as GSF's
|
|
612
|
+
loader does. `parseSeedCsv(text)` reads a GSF seed CSV (empty cells left out),
|
|
613
|
+
so an app can pass its own `data/*.csv` (the showcase mock does). A seed row
|
|
614
|
+
with the key of a platform row replaces it, as the real data load upserts.
|
|
615
|
+
|
|
616
|
+
**Regenerating the data.** `src/presets/platform/*.json` is generated:
|
|
617
|
+
`npm run preset:generate` reads the recordings, the showcase server's scripts
|
|
618
|
+
and seeds, and `scripts/platform-preset/seeds/<pbc>@<version>/` (each PBC's
|
|
619
|
+
`PROFILE.csv`, `PROFILE_RIGHT.csv` and `RIGHT.csv`, copied verbatim from its
|
|
620
|
+
repository at the version the showcase server pins). Re-record, re-copy, rerun.
|
|
621
|
+
|
|
552
622
|
## Extension points
|
|
553
623
|
|
|
554
624
|
For everything the protocol handlers don't cover, three hooks avoid ever
|
|
@@ -1509,7 +1579,7 @@ files are run, so shared helpers (`test/support.ts`) can sit beside them.
|
|
|
1509
1579
|
|
|
1510
1580
|
Per-project (goes in your own config, e.g. `packages/showcase/client-app/mock-server`):
|
|
1511
1581
|
table/view schemas, seed data, event-handler names and validation rules, auth
|
|
1512
|
-
users.
|
|
1582
|
+
users (or the [platform preset](#platform-preset)'s, seeded with the app's own).
|
|
1513
1583
|
|
|
1514
1584
|
Generic (lives here): message routing, `SOURCE_REF` handling, criteria
|
|
1515
1585
|
evaluation, metadata derivation, subscription/broadcast plumbing. If you're
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Connection } from '../protocol/connection.ts';
|
|
2
|
-
import type { GenesisMessage, MockServerConfig } from '../types.ts';
|
|
2
|
+
import type { GenesisMessage, MockServerConfig, ResourceItem } from '../types.ts';
|
|
3
|
+
export declare function listResources(config: MockServerConfig): ResourceItem[];
|
|
3
4
|
export declare function handleResourcesRequest(message: GenesisMessage, connection: Connection, config: MockServerConfig): void;
|
|
@@ -6,7 +6,8 @@ import { MESSAGE_TYPE } from "../protocol/messageTypes.js";
|
|
|
6
6
|
// "not exist" client-side, before META_REQUEST or DATA_LOGON is ever tried.
|
|
7
7
|
// Auto-derive it from config.queries/requestReplies/eventHandlers (same
|
|
8
8
|
// philosophy as db/metadata.ts's field inference) so projects don't have to
|
|
9
|
-
// hand-maintain a redundant list; set config.resources explicitly to override
|
|
9
|
+
// hand-maintain a redundant list; set config.resources explicitly to override,
|
|
10
|
+
// or config.additionalResources to add to it.
|
|
10
11
|
function deriveResources(config) {
|
|
11
12
|
const resources = [];
|
|
12
13
|
for (const name of Object.keys(config.queries ?? {})) {
|
|
@@ -29,9 +30,24 @@ function deriveResources(config) {
|
|
|
29
30
|
}
|
|
30
31
|
return resources;
|
|
31
32
|
}
|
|
33
|
+
const resourceKey = (resource) => `${resource.RESOURCE_TYPE}:${resource.RESOURCE_NAME}`;
|
|
34
|
+
// The derived resources, then config.additionalResources not among them.
|
|
35
|
+
export function listResources(config) {
|
|
36
|
+
if (config.resources)
|
|
37
|
+
return config.resources;
|
|
38
|
+
const resources = deriveResources(config);
|
|
39
|
+
const listed = new Set(resources.map(resourceKey));
|
|
40
|
+
for (const resource of config.additionalResources ?? []) {
|
|
41
|
+
if (listed.has(resourceKey(resource)))
|
|
42
|
+
continue;
|
|
43
|
+
listed.add(resourceKey(resource));
|
|
44
|
+
resources.push(resource);
|
|
45
|
+
}
|
|
46
|
+
return resources;
|
|
47
|
+
}
|
|
32
48
|
export function handleResourcesRequest(message, connection, config) {
|
|
33
49
|
connection.reply(message, {
|
|
34
50
|
MESSAGE_TYPE: MESSAGE_TYPE.RESOURCES_REQUEST_ACK,
|
|
35
|
-
RESOURCES:
|
|
51
|
+
RESOURCES: listResources(config),
|
|
36
52
|
});
|
|
37
53
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// The rows of a GSF seed CSV (an app's or a PBC's data/*.csv): a header line,
|
|
2
|
+
// then one record per line; a value is bare or double-quoted ("" is a quote
|
|
3
|
+
// inside one). Values stay strings — a table's declared fields convert them
|
|
4
|
+
// when the rows are stored, as GSF's loader does. An empty cell is left out of
|
|
5
|
+
// its row (null), since SendTable sets only the non-empty cells
|
|
6
|
+
// (SendTableOperation.createRecord, genesis-db, GSF v8.15.29).
|
|
7
|
+
export function parseSeedCsv(text) {
|
|
8
|
+
const records = [];
|
|
9
|
+
let record = [];
|
|
10
|
+
let field = '';
|
|
11
|
+
let quoted = false;
|
|
12
|
+
const endRecord = () => {
|
|
13
|
+
record.push(field);
|
|
14
|
+
if (record.some((value) => value !== ''))
|
|
15
|
+
records.push(record);
|
|
16
|
+
record = [];
|
|
17
|
+
field = '';
|
|
18
|
+
};
|
|
19
|
+
for (let i = 0; i < text.length; i += 1) {
|
|
20
|
+
const char = text[i];
|
|
21
|
+
if (quoted) {
|
|
22
|
+
if (char === '"' && text[i + 1] === '"') {
|
|
23
|
+
field += '"';
|
|
24
|
+
i += 1;
|
|
25
|
+
}
|
|
26
|
+
else if (char === '"') {
|
|
27
|
+
quoted = false;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
field += char;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else if (char === '"') {
|
|
34
|
+
quoted = true;
|
|
35
|
+
}
|
|
36
|
+
else if (char === ',') {
|
|
37
|
+
record.push(field);
|
|
38
|
+
field = '';
|
|
39
|
+
}
|
|
40
|
+
else if (char === '\n' || char === '\r') {
|
|
41
|
+
if (char === '\r' && text[i + 1] === '\n')
|
|
42
|
+
i += 1;
|
|
43
|
+
endRecord();
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
field += char;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
endRecord();
|
|
50
|
+
const [header = [], ...rows] = records;
|
|
51
|
+
return rows.map((values) => Object.fromEntries(header.flatMap((name, i) => (values[i] ? [[name.trim(), values[i]]] : []))));
|
|
52
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MockServerConfig } from '../types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Merges mock-server configs into one, later configs over earlier ones:
|
|
4
|
+
* `createMockServer(mergeConfigs(platformPreset(), appConfig))`.
|
|
5
|
+
*
|
|
6
|
+
* - tables, views, queries, requestReplies, eventHandlers, eventSchemas: by
|
|
7
|
+
* name, a later entry replacing an earlier one whole.
|
|
8
|
+
* - auth.users: by username, a later user replacing an earlier one; the other
|
|
9
|
+
* auth settings, setting by setting.
|
|
10
|
+
* - additionalResources: both lists, without repeats.
|
|
11
|
+
* - httpRoutes: both, the later config's tried first. onMessage: both, in order.
|
|
12
|
+
* - Anything else (resources, fidelity, defaultEventHandler, productName, ...):
|
|
13
|
+
* the later config's, when it sets one.
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeConfigs(...configs: MockServerConfig[]): MockServerConfig;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const NAMED = [
|
|
2
|
+
'tables',
|
|
3
|
+
'views',
|
|
4
|
+
'queries',
|
|
5
|
+
'requestReplies',
|
|
6
|
+
'eventHandlers',
|
|
7
|
+
'eventSchemas',
|
|
8
|
+
];
|
|
9
|
+
function mergeUsers(a = [], b = []) {
|
|
10
|
+
const users = new Map(a.map((user) => [user.username, user]));
|
|
11
|
+
for (const user of b)
|
|
12
|
+
users.set(user.username, user);
|
|
13
|
+
return [...users.values()];
|
|
14
|
+
}
|
|
15
|
+
function mergeResources(a = [], b = []) {
|
|
16
|
+
const resources = new Map();
|
|
17
|
+
for (const resource of [...a, ...b]) {
|
|
18
|
+
resources.set(`${resource.RESOURCE_TYPE}:${resource.RESOURCE_NAME}`, resource);
|
|
19
|
+
}
|
|
20
|
+
return [...resources.values()];
|
|
21
|
+
}
|
|
22
|
+
// Both hooks, in order: the second sees what the first returned, and a
|
|
23
|
+
// message the first handled (false) goes no further.
|
|
24
|
+
function chainHooks(first, second) {
|
|
25
|
+
return (message, ctx) => {
|
|
26
|
+
const hooked = first(message, ctx);
|
|
27
|
+
if (hooked === false)
|
|
28
|
+
return false;
|
|
29
|
+
return second(hooked ?? message, ctx) ?? hooked;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function mergeTwo(base, over) {
|
|
33
|
+
const merged = { ...base };
|
|
34
|
+
for (const [key, value] of Object.entries(over)) {
|
|
35
|
+
if (value !== undefined)
|
|
36
|
+
merged[key] = value;
|
|
37
|
+
}
|
|
38
|
+
for (const key of NAMED) {
|
|
39
|
+
if (base[key] && over[key])
|
|
40
|
+
merged[key] = { ...base[key], ...over[key] };
|
|
41
|
+
}
|
|
42
|
+
if (base.auth && over.auth) {
|
|
43
|
+
merged.auth = {
|
|
44
|
+
...base.auth,
|
|
45
|
+
...over.auth,
|
|
46
|
+
users: mergeUsers(base.auth.users, over.auth.users),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (base.additionalResources && over.additionalResources) {
|
|
50
|
+
merged.additionalResources = mergeResources(base.additionalResources, over.additionalResources);
|
|
51
|
+
}
|
|
52
|
+
// The later config's routes are tried first.
|
|
53
|
+
if (base.httpRoutes && over.httpRoutes) {
|
|
54
|
+
merged.httpRoutes = [...over.httpRoutes, ...base.httpRoutes];
|
|
55
|
+
}
|
|
56
|
+
if (base.onMessage && over.onMessage) {
|
|
57
|
+
merged.onMessage = chainHooks(base.onMessage, over.onMessage);
|
|
58
|
+
}
|
|
59
|
+
return merged;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Merges mock-server configs into one, later configs over earlier ones:
|
|
63
|
+
* `createMockServer(mergeConfigs(platformPreset(), appConfig))`.
|
|
64
|
+
*
|
|
65
|
+
* - tables, views, queries, requestReplies, eventHandlers, eventSchemas: by
|
|
66
|
+
* name, a later entry replacing an earlier one whole.
|
|
67
|
+
* - auth.users: by username, a later user replacing an earlier one; the other
|
|
68
|
+
* auth settings, setting by setting.
|
|
69
|
+
* - additionalResources: both lists, without repeats.
|
|
70
|
+
* - httpRoutes: both, the later config's tried first. onMessage: both, in order.
|
|
71
|
+
* - Anything else (resources, fidelity, defaultEventHandler, productName, ...):
|
|
72
|
+
* the later config's, when it sets one.
|
|
73
|
+
*/
|
|
74
|
+
export function mergeConfigs(...configs) {
|
|
75
|
+
return configs.reduce((merged, config) => mergeTwo(merged, config), {});
|
|
76
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"USER": {
|
|
3
|
+
"USER_NAME": "admin",
|
|
4
|
+
"LAST_LOGIN": "2016-04-28",
|
|
5
|
+
"LAST_NAME": "global",
|
|
6
|
+
"FIRST_NAME": "admin",
|
|
7
|
+
"ONLINE": "false",
|
|
8
|
+
"COMPANY_NAME": "GENESIS",
|
|
9
|
+
"STATUS": "ENABLED",
|
|
10
|
+
"EMAIL_ADDRESS": "admin.global@genesis.global"
|
|
11
|
+
},
|
|
12
|
+
"USER_ATTRIBUTES": {
|
|
13
|
+
"USER_NAME": "admin",
|
|
14
|
+
"USER_TYPE": "USER",
|
|
15
|
+
"ACCESS_TYPE": "ALL"
|
|
16
|
+
},
|
|
17
|
+
"PROFILE": [
|
|
18
|
+
"FILE_STORAGE_ADMIN",
|
|
19
|
+
"FILE_STORAGE_USER",
|
|
20
|
+
"NOTIFICATION_ADMIN",
|
|
21
|
+
"NOTIFICATION_ROUTE_ADMIN",
|
|
22
|
+
"NOTIFICATION_RULE_ADMIN",
|
|
23
|
+
"NOTIFICATION_RULE_TEMPLATE_ADMIN",
|
|
24
|
+
"NOTIFICATION_RULE_USER",
|
|
25
|
+
"NOTIFICATION_USER",
|
|
26
|
+
"RECONCILIATION_USER",
|
|
27
|
+
"REPORTING_USER",
|
|
28
|
+
"USER_ADMIN"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
4
|
+
"RIGHT_CODE": "INSERT_USER"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
8
|
+
"RIGHT_CODE": "AMEND_USER"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
12
|
+
"RIGHT_CODE": "DELETE_USER"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
16
|
+
"RIGHT_CODE": "CHANGE_PWD"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
20
|
+
"RIGHT_CODE": "EXPIRE_PWD"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
24
|
+
"RIGHT_CODE": "ENABLE_USER"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
28
|
+
"RIGHT_CODE": "DISABLE_USER"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
32
|
+
"RIGHT_CODE": "INSERT_PROFILE"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
36
|
+
"RIGHT_CODE": "DELETE_PROFILE"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
40
|
+
"RIGHT_CODE": "AMEND_PROFILE"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"PROFILE_NAME": "USER_ADMIN",
|
|
44
|
+
"RIGHT_CODE": "USER_PROFILE_AMEND"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"PROFILE_NAME": "FILE_STORAGE_USER",
|
|
48
|
+
"RIGHT_CODE": "FileStorageView"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"PROFILE_NAME": "FILE_STORAGE_USER",
|
|
52
|
+
"RIGHT_CODE": "FileStorageUpload"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"PROFILE_NAME": "FILE_STORAGE_USER",
|
|
56
|
+
"RIGHT_CODE": "FileStorageReplace"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"PROFILE_NAME": "FILE_STORAGE_USER",
|
|
60
|
+
"RIGHT_CODE": "FileStorageDelete"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"PROFILE_NAME": "FILE_STORAGE_USER",
|
|
64
|
+
"RIGHT_CODE": "FileStorageDownload"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"PROFILE_NAME": "FILE_STORAGE_USER",
|
|
68
|
+
"RIGHT_CODE": "TemplateAssetsInsert"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"PROFILE_NAME": "FILE_STORAGE_ADMIN",
|
|
72
|
+
"RIGHT_CODE": "FileStorageAdminAction"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"PROFILE_NAME": "NOTIFICATION_ADMIN",
|
|
76
|
+
"RIGHT_CODE": "NotificationAdminAction"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_ADMIN",
|
|
80
|
+
"RIGHT_CODE": "NotificationRuleCreate"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_ADMIN",
|
|
84
|
+
"RIGHT_CODE": "NotificationRuleUpdate"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_ADMIN",
|
|
88
|
+
"RIGHT_CODE": "NotificationRuleDelete"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_USER",
|
|
92
|
+
"RIGHT_CODE": "NotificationRuleSubscribe"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_USER",
|
|
96
|
+
"RIGHT_CODE": "NotificationRuleUnsubscribe"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_USER",
|
|
100
|
+
"RIGHT_CODE": "NotificationRuleEnable"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_USER",
|
|
104
|
+
"RIGHT_CODE": "NotificationRuleDisable"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_USER",
|
|
108
|
+
"RIGHT_CODE": "NotificationRuleView"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
|
|
112
|
+
"RIGHT_CODE": "NotificationRuleTemplateCreate"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
|
|
116
|
+
"RIGHT_CODE": "NotificationRuleTemplateUpdate"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
|
|
120
|
+
"RIGHT_CODE": "NotificationRuleTemplateDelete"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
|
|
124
|
+
"RIGHT_CODE": "NotificationRuleTemplateView"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
|
|
128
|
+
"RIGHT_CODE": "NotificationRouteCreate"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
|
|
132
|
+
"RIGHT_CODE": "NotificationRouteDelete"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
|
|
136
|
+
"RIGHT_CODE": "NotificationRouteTopicsView"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
|
|
140
|
+
"RIGHT_CODE": "NotificationRouteUpdate"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
|
|
144
|
+
"RIGHT_CODE": "NotificationRouteView"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"PROFILE_NAME": "NOTIFICATION_USER",
|
|
148
|
+
"RIGHT_CODE": "NotificationView"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"PROFILE_NAME": "NOTIFICATION_USER",
|
|
152
|
+
"RIGHT_CODE": "NotificationAuditView"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"PROFILE_NAME": "NOTIFICATION_SERVICE",
|
|
156
|
+
"RIGHT_CODE": "SendNotificationOnBehalfOfOthers"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
160
|
+
"RIGHT_CODE": "ReconciliationConfigView"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
164
|
+
"RIGHT_CODE": "ReconciliationConfigInsert"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
168
|
+
"RIGHT_CODE": "ReconciliationConfigUpdate"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
172
|
+
"RIGHT_CODE": "ReconciliationConfigDelete"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
176
|
+
"RIGHT_CODE": "ReconciliationDictionaryView"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
180
|
+
"RIGHT_CODE": "ReconciliationDictionaryInsert"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
184
|
+
"RIGHT_CODE": "ReconciliationDictionaryUpdate"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
188
|
+
"RIGHT_CODE": "ReconciliationDictionaryDelete"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
192
|
+
"RIGHT_CODE": "ReconciliationResultView"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
196
|
+
"RIGHT_CODE": "ReconciliationComment"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
200
|
+
"RIGHT_CODE": "ReconciliationRun"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"PROFILE_NAME": "RECONCILIATION_USER",
|
|
204
|
+
"RIGHT_CODE": "ReconciliationCancel"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
208
|
+
"RIGHT_CODE": "ReportConfigurationView"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
212
|
+
"RIGHT_CODE": "ReportConfigurationUpdate"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
216
|
+
"RIGHT_CODE": "ReportConfigurationDelete"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
220
|
+
"RIGHT_CODE": "ReportDestinationView"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
224
|
+
"RIGHT_CODE": "ReportDestinationUpdate"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
228
|
+
"RIGHT_CODE": "ReportDestinationDelete"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
232
|
+
"RIGHT_CODE": "ReportRun"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
236
|
+
"RIGHT_CODE": "ReportView"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"PROFILE_NAME": "REPORTING_USER",
|
|
240
|
+
"RIGHT_CODE": "ReportDelete"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"NAME": "USER_ADMIN",
|
|
4
|
+
"DESCRIPTION": "User Admin",
|
|
5
|
+
"STATUS": "ENABLED"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"NAME": "FILE_STORAGE_USER",
|
|
9
|
+
"DESCRIPTION": "File Storage User has the ability to perform any user action related to file storage",
|
|
10
|
+
"STATUS": "ENABLED"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"NAME": "FILE_STORAGE_ADMIN",
|
|
14
|
+
"DESCRIPTION": "File Storage Admin has the ability to perform any admin action related to file storage",
|
|
15
|
+
"STATUS": "ENABLED"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"NAME": "NOTIFICATION_ADMIN",
|
|
19
|
+
"DESCRIPTION": "Notification Admin has the ability to perform any admin action related to notifications",
|
|
20
|
+
"STATUS": "ENABLED"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"NAME": "NOTIFICATION_RULE_ADMIN",
|
|
24
|
+
"DESCRIPTION": "Notification Rule Admin has the ability to create notification rules",
|
|
25
|
+
"STATUS": "ENABLED"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
|
|
29
|
+
"DESCRIPTION": "Notification Rule Template Admin has the ability to create notification rule templates",
|
|
30
|
+
"STATUS": "ENABLED"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"NAME": "NOTIFICATION_RULE_USER",
|
|
34
|
+
"DESCRIPTION": "Notification Rule User has the ability to subscribe/unsubscribe etc to notification rules",
|
|
35
|
+
"STATUS": "ENABLED"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"NAME": "NOTIFICATION_ROUTE_ADMIN",
|
|
39
|
+
"DESCRIPTION": "Notification Route Admin has the ability to create notification routes",
|
|
40
|
+
"STATUS": "ENABLED"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"NAME": "NOTIFICATION_USER",
|
|
44
|
+
"DESCRIPTION": "Notification User can manage their own notification rules and receive notifications",
|
|
45
|
+
"STATUS": "ENABLED"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"NAME": "NOTIFICATION_SERVICE",
|
|
49
|
+
"DESCRIPTION": "Notification service accounts can send notifications on behalf of other users. This role can be used to set up global system notitfication rules.",
|
|
50
|
+
"STATUS": "ENABLED"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"NAME": "RECONCILIATION_USER",
|
|
54
|
+
"DESCRIPTION": "Reconciliation User has the ability to perform any user action related to reconciliations",
|
|
55
|
+
"STATUS": "ENABLED"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"NAME": "REPORTING_USER",
|
|
59
|
+
"DESCRIPTION": "Reporting user has the ability to perform any action relating to the reporting component",
|
|
60
|
+
"STATUS": "ENABLED"
|
|
61
|
+
}
|
|
62
|
+
]
|